Autonomous transmission error detection for a serial communication link receiver-transmitter and microcontroller system peripheral implementing the same
By introducing an autonomous error detection function into the serial communication link receiver-transmitter system, the problem of central processing unit intervention during transmission error detection is solved and efficient, low-power transmission error monitoring and detection is achieved.
Patent Information
- Application Number
- CN202080090236.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-27
- Filing Date
- 2020-09-03
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-09-03
AI Technical Summary
The existing technology requires the intervention of a central processing unit during the transmission error detection process in a serial communication link, resulting in resource consumption and low efficiency, and it is difficult to autonomously monitor transmission errors.
A serial communication link receiver-transmitter system is designed, consisting of a transmitter, a receiver, and an error detector capable of autonomously detecting transmitted data versus observed data without the intervention of a central processing unit. differences, generate transmission error indications, and perform error detection in the hardware module.
It achieves autonomous transmission error detection in serial communication links without the intervention of a central processing unit, improves detection efficiency and resource utilization, reduces power consumption, and can continuously monitor errors during the transmission process.
Smart Images

Figure CN114846456B_ABST
Abstract
Description
[0001] Cross-references to related patent applications
[0002] This application claims the benefit of the priority date of U.S. Provisional Patent Application No. 62 / 954,144, filed on December 27, 2019, entitled “TRANSMIT ERROR DETECTION AND MICROCONTROLLER SYSTEMS IMPLEMENTING THE SAME,” the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] Embodiments discussed herein generally relate to serial communications. More specifically, some embodiments relate to transmission error detection at a receiver-transmitter, and circuits for such transmission error detection that can operate autonomously without supervision or interruption by a central processing unit. Background Art
[0004] Microcontrollers typically include peripherals that can be configured to perform various tasks. Non-limiting examples of peripherals include those for serial communications, analog-to-digital signal conversion, threshold detection, counters, interrupt control, and timers. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] To easily identify the discussion of any particular element or act, the most significant digit or digits in a reference number refer to the figure number in which the element is first introduced.
[0006] Figure 1 is a block diagram of a communication peripheral according to one or more embodiments.
[0007] Figure 2 is a timing diagram of a transmission error detection process according to one or more embodiments.
[0008] Figure 3 is a block diagram of a microcontroller system configured to implement an error detection process according to one or more embodiments.
[0009] Figure 4 is a timing diagram of a specific example of the operation of a microcontroller system during which a transfer error flag is asserted in response to an error detection process according to one or more embodiments.
[0010] Figure 5 Process 500 is shown according to one embodiment.
[0011] Figure 6 A circuit 600 is shown according to one embodiment. DETAILED DESCRIPTION
[0012] In the following detailed description, reference is made to the accompanying drawings which form a part of the present disclosure and in which are shown by way of example specific examples of embodiments in which the present disclosure may be implemented. These embodiments are described in sufficient detail to enable one of ordinary skill in the art to practice the present disclosure. However, other embodiments enabled herein may be utilized and structural, material and process changes may be made without departing from the scope of the present disclosure.
[0013] The illustrations presented herein are not intended to be actual views of any particular method, system, device, or structure, but are merely idealized representations for describing embodiments of the present disclosure. In some cases, similar structures or components in the various drawings may retain the same or similar numbering for the convenience of the reader; however, the similarity of numbering does not necessarily mean that the structures or components are identical in size, composition, construction, or any other attribute.
[0014] The following description may include examples to help those skilled in the art practice the embodiments disclosed in the present invention. The use of the terms "exemplary", "by way of example" and "for example" means that the relevant description is illustrative, and although the scope of the present disclosure is intended to cover examples and legal equivalents, the use of such terms is not intended to limit the scope of the embodiments or the present disclosure to the specified components, steps, features or functions, etc.
[0015] It should be readily understood that the components of the embodiments as generally described herein and illustrated in the accompanying drawings may be arranged and designed in many different configurations. Therefore, the following description of various embodiments is not intended to limit the scope of the present disclosure, but is merely representative of various embodiments. Although various aspects of these embodiments may be presented in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
[0016] In addition, the specific embodiments shown and described are examples only and should not be construed as the only way to implement the present disclosure, unless otherwise specified herein. Elements, circuits, and functions can be shown in block diagram form so as not to obscure the present disclosure with unnecessary details. On the contrary, the specific embodiments shown and described are exemplary only and should not be construed as the only way to implement the present disclosure, unless otherwise specified herein. In addition, the partitioning of logic between block definitions and individual blocks is an example of a specific embodiment. It will be apparent to those of ordinary skill in the art that the present disclosure can be practiced through many other partitioning solutions. In most cases, details about timing considerations, etc. have been omitted, where such details are not required to obtain a complete understanding of the present disclosure and are within the capabilities of those of ordinary skill in the relevant art.
[0017] Those of ordinary skill in the art will appreciate that any of a variety of different technologies and techniques may be used to represent information and signals. For clarity of presentation and description, some figures may show signals as a single signal. Those of ordinary skill in the art will appreciate that a signal may represent a signal bus, where the bus may have a variety of bit widths, and that the present disclosure may be implemented on any number of data signals, including a single data signal.
[0018] The various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein may be implemented or executed with a general purpose processor, a special purpose processor, a digital signal processor (DSP), an integrated circuit (IC), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, designed to perform the functions described herein. A general purpose processor (also referred to herein as a "host processor" or simply "host") may be a microprocessor, but in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. A general purpose computer including a processor is considered a special purpose computer when the general purpose computer is configured to execute computing instructions (e.g., software code) associated with the embodiments disclosed herein.
[0019] Embodiment can be described according to the process described or depicted as flow, flow chart, flow diagram, structure diagram or block diagram.Although flow chart can describe operation action as continuous process, many of these actions can be performed in accordance with another sequence, in parallel or substantially simultaneously.In addition, the order of action can be rearranged.The process herein can correspond to method, thread, function, process (procedure), subroutine, subprogram, other structure or their combination.In addition, the method disclosed herein can be implemented by hardware, software or both.If implemented in software, these functions can be stored or transmitted to computer-readable medium as one or more instructions or codes.Computer-readable medium includes both computer storage medium and communication medium, and this communication medium includes any medium that is conducive to transferring computer program from one location to another location.
[0020] Any reference to an element herein using names such as "first," "second," etc. does not limit the number or order of those elements unless such limitations are explicitly stated. Instead, these names may be used herein as a convenient method of distinguishing between two or more elements or instances of elements. Thus, reference to a first element and a second element does not mean that only two elements can be employed there, or that the first element must precede the second element in some manner. Furthermore, unless otherwise indicated, a group of elements may include one or more elements.
[0021] As used herein, the term "substantially" in reference to a given parameter, attribute, or condition refers to and includes the degree to which a person of ordinary skill in the art would understand that the given parameter, attribute, or condition is satisfied with a small degree of variance, such as, for example, within acceptable manufacturing tolerances. By way of example, depending on the specific parameter, attribute, or condition that is substantially satisfied, the parameter, attribute, or condition may be satisfied by at least 90%, at least 95%, or even at least 99%.
[0022] In this description, the term "coupled" and its derivatives may be used to indicate that two elements cooperate or interact with each other. When an element is described as being "coupled" to another element, then the elements may be in direct physical or electrical contact, or there may be intervening elements or layers. In contrast, when an element is described as being "directly coupled" to another element, then there are no intervening elements or layers. The term "connected" may be used interchangeably with the term "coupled" in this specification and has the same meaning, unless otherwise expressly indicated or the context would otherwise indicate to one of ordinary skill in the art.
[0023] When a serial communication device (e.g., a universal synchronous / asynchronous receiver / transmitter (USART)) transmits to the TX line, external forces may interfere with the line and the transmitted data. As non-limiting examples, there may be crosstalk from another device transmitting on the same line or a physically close line, or there may be electromagnetic interference (EMI). In some cases, the effects of such interference may corrupt the signal carrying the transmitted data to the point where it would be time consuming or even impossible to recover the message in the transmitted data.
[0024] One or more embodiments generally relate to autonomous transmission error detection of a serial communication link receiver-transmitter. The error detector is arranged to observe the transmission data on the transmission data path and observe the corresponding transmission data of the transmitted data frame on the serial communication link. The error detector is configured to generate an error indication in response to the difference between the data observed on the transmission data path and the corresponding transmission data. The user notified by the error indication can take any appropriate action. In one or more embodiments, the disclosed transmission error detection can be performed substantially autonomously during the data transmission of the serial communication link receiver-transmitter. In other words, the autonomous transmission error detection can be performed by the serial communication link receiver-transmitter, including but not limited to during the normal data transmission mode, and substantially without the need to be started, interrupted or intervened by the central processing unit of the computing system (for example, but not limited to the microcontroller system) including such serial communication link receiver-transmitter.
[0025] Figure 1 is a diagram illustrating a serial communication link receiver-transmitter 100 configured to detect certain transmission errors, according to one or more embodiments.
[0026] like Figure 1 As shown, the serial communication link receiver-transmitter 100 includes at least three functional blocks: a transmitter 102 forming at least a portion of a transmitter input 104 , a receiver 134 forming at least a portion of a receiver output 150 , and an error detector 122 .
[0027] The transmitter 102 and the receiver 134 may generally be arranged to handle the transmission of serial data sent from the serial communication link receiver-transmitter 100, and the reception of data sent to the serial communication link receiver-transmitter 100, respectively.
[0028] The transmitter 102 may generally be configured to receive transmission data 106 ("TX data 106") supplied to the transmitter input 104 in parallel form, and to provide a transmitted data frame 116 at a transmitter output 114 in serial form, i.e., sequentially outputting the transmitted data frame 116 one bit at a time. The transmitter 102 includes a transmission data register 108 for storing the transmission data 106 received at the transmitter input 104, and a transmission shift register 112 for handling conversion of the transmission data 106 from parallel form to serial form. The transmission shift register 112 shifts the bits of the transmitted data frame 116 to the transmitter output 114. The transmission line 120 ("TxD 120") receives the transmitted data frame 116 via a transmission pad 118, which is operatively coupled to the transmitter output 114 and the transmission line 120. As described above, transmitted data frame 116 should include at least transmission data 106, and the inclusion of additional bits, such as (but not limited to) timing bits and error correction bits inserted when framing transmission data 106, is within the scope of the present disclosure.
[0029] The receiver 134 may be generally configured to serially receive a data frame (here, received data frame 160) at a receiver input 136, and to output the received data 142 in parallel form at a receiver output 150. In other words, the receiver 134 may be configured for typical reception of data frames during serial communication. In addition, the receiver 134 may be generally configured to serially receive an observed transmission data frame 154 at the receiver input 136, and to store the observed transmission data 144 at a receive buffer 140 for transmission error detection, as discussed herein.
[0030] The receiver 134 may be arranged to receive an observed transmission data frame 154 corresponding to the transmitted data frame 116. In one or more embodiments, the observed transmission data frame 154 may correspond to an instance of the transmission data frame 116 at any desired portion of the transmission path, such as at the transmitter output 114, the transmission pad 118, along the transmission line 120, and anywhere in between. Figure 1 In the particular non-limiting embodiment shown, the receiver 134 is arranged to receive an observed transmission data frame 154 that corresponds to an instance of the transmission data frame 116 at the transmission pad 118, and more specifically, the receiver input 136 of the receiver 134 is operatively coupled to the transmission pad 118 via a selection circuit 156 discussed later.
[0031] The receiver 134 may include a receive shift register 138 for converting the received data frame 160 and the observed transmission data frame 154, as this may be the case, from serial form to parallel form (i.e., for conversion to received data 142 or observed transmission data 144, respectively); and a receive data register 146 for storing the received data 142 and / or observed transmission data 144. Figure 1 In the particular non-limiting embodiment of the receiver 134 shown, the receiver 134 includes an optional receive buffer 140 disposed on the data path between the receive shift register 138 and the receive data register 146. The receive buffer 140 may be included to hold data blocks, thereby providing additional time for the application to read the previous data block from the receive data register 146. Figure 1 In the particular non-limiting embodiment of the receiver 134 shown, a receive buffer 140 is included and operatively coupled to the error detection logic 126. In one or more other embodiments, the receive buffer 140 may or may not be included, and if not, a receive data register 146 may store the observed transmitted data 144, and the error detection logic 126 may be operatively coupled to the receive data register 146.
[0032] Error detector 122 is typically configured to receive two data blocks and assert transmission error indicator 132 when the two data blocks are different. Figure 1 In the particular non-limiting example shown, the error detector 122 is arranged to receive observed transmission data 110 from an input of a transmission shift register 112 operatively coupled to the error detector 122, and to receive observed transmitted data 144 from a receive buffer 140 operatively coupled to the error detector 122. In some embodiments, a tap-type connection may operatively couple bits of the transmission data 106 to bit positions of the comparison register 124. By way of non-limiting example, such tap-type connections may be formed between lines of a communication bus that operatively couple the transmission data register 108 and the transmission shift register 112 and the comparison register 124. As another non-limiting example, such tap-type connections may be formed directly between the transmission data register 108 and the bit positions of the comparison register 124, and latched when the transmission data 106 is shifted into the transmission shift register 112.
[0033] During transmissions by the serial communication link receiver-transmitter 100 , the contents of the compare register 124 may be identical to (ie, store the same data as) the contents of the transmit data register 108 .
[0034] The error detector 122 comprises a compare register 124 arranged to receive and store the observed transmission data 110, and an error detection logic 126 arranged to assert a transmission error indicator 132 when the contents of the receive buffer 140 and the contents of the compare register 124 are different. The error detection logic 126 comprises a difference logic circuit 128 configured to perform a bit-level comparison of two data blocks (here, the observed transmission data 110 stored at the compare register 124 and the observed transmitted data 144 stored at the receive buffer 140), and output TRUE if and only if the two data blocks are different, thereby asserting the transmission error indicator 132. In general, the comparison of the error detection logic 126 and / or the assertion of the transmission error indicator 132 may be performed when all bits of the observed transmission data 110 and the observed transmitted data 144 are present at the respective inputs of the error detection logic 126.
[0035] In one or more embodiments, the error detection logic 126 may be configured to control the timing of the comparison and / or the assertion of the transmission error indicator 132. Figure 1 In the particular non-limiting embodiment shown, the output of the difference logic circuit 128 is coupled to the data input D of the latch 130, which has a latch output Q coupled to the input of the transmission error indicator 132. When the enable input E of the latch 130 is asserted, the data input D is latched and presented at the latch output Q. The receive completion indicator 148 can be operatively coupled to the enable input E of the latch 130. When the receive completion indicator 148 is asserted (e.g., the output changes from "0" to "1") and its output is received at the enable input E of the latch 130, the comparison result output by the difference logic circuit 128 is latched at the latch output Q. As a non-limiting example, when the receive completion indicator 148 is deasserted, the transmission error indicator 132 can be reset by internal logic components or a user of the transmission error indicator 132. In one non-limiting embodiment, when the receive completion indicator 148 is deasserted, the latch 130 is reset, thereby deasserting the transmission error indicator 132. As a non-limiting example, the receive completion indicator 148 may be reset by a receiver logic component (not shown) at the start of the next data reception or when the receive data register 146 is read by the central processing unit.
[0036] Thus, the difference result may be provided to the output of error detection logic 126 and assert transmission error indicator 132 until enable input E of latch 130 is toggled. Latch 130 may be cleared using any suitable technique known to those of ordinary skill in the art.
[0037] Notably, in the case of data reception, the receive completion indicator 148 may signal to a user of the serial communication link receiver-transmitter 100 that there is valid data to be read at the receive data register 146. In a transmission error detection use case, the receive completion indicator 148 may be suppressed by the serial communication link receiver-transmitter 100 in response to the asserted transmission error indicator 132, such that the asserted receive completion indicator 148 is received at the error detection logic 126, but is not received or readable external to the serial communication link receiver-transmitter 100 (e.g., but not limited to, by a user of the serial communication link receiver-transmitter 100).
[0038] The selection circuit 156 is arranged to selectively provide one of the receive data frame 160 or the observed transmit data frame 154 to the receiver input 136. A first input of the selection circuit 156 is operatively coupled to the receive line 158 via the input pad 152, and a second input of the selection circuit 156 is operatively coupled to the transmit pad 118. The selection circuit 156 is configured to provide one of the first input and the second input in response to a selection signal 162.
[0039] In one or more embodiments, the communication of the serial communication link receiver-transmitter 100 can be performed using the same line (e.g., single-wire mode) or different lines for the transmit line 120 and the receive line 158. Additionally or alternatively, the communication of the serial communication link receiver-transmitter 100 can be performed using simplex mode (in one direction without receiving at the same time), full-duplex (the transmit / receive device transmits and receives at the same time), and half-duplex (the transmit / receive device transmits and receives alternately). In the case of single-wire mode, the receiver 134 receives data from the same line on which the transmitter 102 transmits, that is, the transmit line 120 and the receive line 158 are the same.
[0040] When error detection is desired at the transmitter 102, the selection circuit 156 may be controlled by a selection signal 162 to provide the observed transmitted data frame 154 to the receiver 134. Another connection (not shown) may provide the selection signal 162 to an enable input (not shown) of the error detector 122 such that the observed transmitted data frame 154 is selected by the selection circuit when the error detector 122 is enabled.
[0041] Some communication devices, such as but not limited to universal asynchronous receiver-transmitter (UART), have a feature for coupling the transmitter output to the receiver. In the specific non-limiting case of UART, it can be referred to as "loopback mode" (LBM). For example, enabling LBM (for example but not limited to, by setting a control bit) activates LBM logic, which is configured to operably couple the output of the UART transmitter to the input of the UART receiver and disconnect the receive data pad from the input of the UART receiver. In some embodiments, the selection circuit 156 and the connection of the transmitted data frame 154 observed by the carrier can include a serial communication link receiver-transmitter 100 configured to be enabled / disabled LBM type circuit. Some conventional UARTs include LBM for so-called "single-line mode", a mode of single-line half-duplex communication. When enabled, the LBM connects the transmission pad to the receiver internally. In some such devices, when LBM is enabled, the central processing unit (CPU) can read the contents of the receive data register 146 and compare the received data 142 with the transmission data 106. The error detection performed by the error detector 122 may be implemented in an autonomous hardware module, such as in a microcontroller peripheral, and autonomously reads the contents of the receive data register 146 and autonomously compares the received data 142 to the transmit data 106 .
[0042] Figure 2 is a timing diagram of a transmission 200 of a serial communication link receiver-transmitter 100 according to one or more embodiments, which includes a transmission 200 by an autonomous hardware module (e.g., Figure 1 The automatic error detection performed by the serial communication link receiver-transmitter 100) is performed by the serial communication link receiver-transmitter 100). The time units are defined by the vertical dashed lines, and each time unit substantially corresponds to a clock cycle. Figure 2 In the specific example shown, both the transmitted data frame 116 (at the transmit shift register 112 ) and the observed frame of transmitted data frames 154 (at the receive shift register 138 ) are defined between time 206 and time 210 .
[0043] At time 204, transmit data 106 has been received by transmitter input 104 at transmit data register 108. The data is received by Figure 2 The use of the convenient label "0x55" is arbitrarily indicated and is not intended to limit the present disclosure.
[0044] At time 206 (here, one clock cycle after time 204), transmit shift register 112 has received transmit data 106, and in parallel, compare register 124 has received observed transmit data 110. Transmit shift register 112 begins shifting out transmitted data frame 116 one bit at a time to transmit pad 118 via transmitter output 114. Figure 2 The signal shown at the transmission pad 118 is a bit of the transmitted data frame 116 at the transmission pad 118 . Figure 2 The signal shown at the receiver input 136 is the bits shifted into the receive shift register 138 , ie, the bits of the observed transmitted data frame 154 .
[0045] Notably, at time 208 , an error bit 202 is present in the observed transmitted data 144 of the observed transmitted data frame 154 received at the receiver input 136 , and the error bit 202 is shifted in through the receive shift register 138 .
[0046] At time 210, the receive completion indicator 148 is asserted (e.g., but not limited to, pulsed), which corresponds to the reception of the observed transmitted data frame 154 (e.g., but not limited to, the reception of an end-of-frame indicator such as an end-of-frame bit), wherein the last bit of the transmitted data frame 116 is shifted out of the transmit shift register 112, and the last bit of the observed transmitted data frame 154 is shifted into the receive shift register 138. The observed transmitted data 144 (i.e., the data portion of the observed transmitted data frame 154) is moved immediately (or with negligible delay) to the receive buffer 140 after reception, where it is moved within a single clock cycle, and thus appears in the receive buffer 140 after time 210 as an error bit 202, thereby producing a different value from the transmitted data 106.
[0047] It is noteworthy that the hexadecimal value of the transmission data 106 included in the transmission data 106 and received at the comparison register 124 as the observed transmission data 110 is shown as 0x55 at the comparison register 124, and the hexadecimal value of the observed transmitted data 144 included in the observed transmitted data frame 154 is shown as 0x45 at the receive buffer 140. At time 210, and in response to the assertion of the receive completion indicator 148, the contents of the compare register 124 and the receive buffer 140 are compared by the error detection logic component 126. At time 210, in response to the above comparison results indicating that the contents of the receive buffer 140 and the compare register 124 are different, and more specifically, indicating that the observed transmission data 110 and the observed transmitted data 144 are different due to the observed transmitted data frame 154 including the error bit 202, the transmission error indicator 132 is asserted.
[0048] In one or more embodiments, the whole frame of the transmitted data can be compared with the whole frame of the observed transmitted data or the data portion of only these frames. As a non-limiting example, data bits, start bits, stop bits, parity bits and their combinations can be compared. In some embodiments, the content of the subset of the part of the frame can be compared, including but not limited to one or more of control bits, source address and / or destination address, start / stop bits, data bits, error detection bits and error correction bits. Because the formation of the data frame is usually prophetic, the position of each part of the frame corresponding to the expectation comparison at the receiving buffer 140 and the comparison register 124 can be coupled to the error detection logic unit 126.
[0049] Figure 3 is a block diagram illustrating a microcontroller system 300 configured to detect transmission errors on a transmission line according to one or more embodiments. Figure 3 In the particular embodiment shown, the microcontroller system 300 includes a processor 304, a memory 306, and peripherals 302 that can communicate via a system bus 316. The peripherals 302 can include any number of peripherals configured to perform various tasks and operations of the microcontroller system 300, and can include a serial port 308, an interrupt control 310, and a peripheral bus 318.
[0050] like Figure 3 As shown, the peripheral device 302 includes a serial port 308 and an interrupt control 310 that can communicate through a peripheral bus 318. The serial port 308 may include one or more communication peripherals configured as a serial communication link receiver-transmitter 100 for forming and performing serial communications through a transmit communication link 314 and a receive communication link 312. The transmit communication link 314 and the receive communication link 312 may include one or more lines for conveying data frames. As discussed herein, the transmission may be performed with error detection.
[0051] The interrupt control 310 may be one of the peripheral devices 302 that is configured to assert an interrupt at the processor 304. In the event of a transmission error detection according to the disclosed embodiments, the interrupt control 310 may be alerted via the peripheral bus 318 (e.g., by Figure 1 132) and is configured to enable an interrupt at the processor 304 via the system bus 316 in response to detecting a transmission error at the serial port 308.
[0052] Upon receiving the interrupt, the processor 304 may run an error handler 320 that, among other things, controls the retransmission of transmission data and error frames, logs the error, notifies a user of the serial port 308, i.e., the serial port 308 of the communication peripheral 100 (e.g., but not limited to, an application running at the microcontroller system 300), of the transmission error, or a combination thereof, but not limited to.
[0053] It is noteworthy that the serial port 308 comprising the serial communication link receiver-transmitter 100 can autonomously perform ongoing transmission error monitoring and detection according to the disclosed embodiments without interrupting the processor 304 until an error is detected. As a non-limiting example, the processor 304 can perform a main function or control loop, be available, or be in a low power mode (such as but not limited to, a sleep mode) while autonomously monitoring the transmission data for errors through the serial port 308. Until the transmission error indicator 132 is asserted and the interrupt control 310 asserts an interrupt at the processor 304, the CPU is not affected by the error monitoring and detection process performed at the serial port 308.
[0054] Some conventional transmission error detection processes known to the inventors of the present disclosure are implemented in software of a microcontroller (for example, but not limited to, firmware stored in RAM, ROM, or flash memory), and the CPU performs some or all of the operations of such transmission error detection. In such conventional systems, the CPU is not available for other processes and consumes power. Various embodiments of the present disclosure can improve and / or overcome some shortcomings of this and other conventional transmission error processes. In addition, in such conventional systems, error detection is actually a collision or potential collision on the detection line, and does not necessarily detect one or more erroneous bits.
[0055] Figure 4 is a timing diagram illustrating an example of operation 400 of the microcontroller system 300 , and during operation 400 , the peripheral device 1 detects a transmission error.
[0056] exist Figure 4In the specific example shown, peripheral device 1 is a serial communication link receiver-transmitter 100 of serial port 308. In block 402, peripheral device 1 receives a block of data (e.g., but not limited to, on receive communication link 312). The data is then passed directly to peripheral device 2, which acts on the data in block 404 and then passes the result of the action performed in block 404 to peripheral device 3, which acts on the result of block 404 in block 406 and then passes the result of block 406 to peripheral device 2. In block 408, peripheral device 2 acts on the result of block 406 and then passes the result of block 408 to peripheral device 4, which acts on the result of block 408 in block 410 and then passes the result of block 410 to peripheral device 1. In block 412, peripheral device 1 receives the result of block 410 and transmits the result. In block 412, peripheral 1 transmits a computation response based on the actions performed by the other peripherals in blocks 402, 404, 406, 408, and 410. During block 412, peripheral 1 performs an error detection process and detects an error in the transmitted computation response and asserts interrupt 414 to notify the CPU of the unsuccessful transmission (TXERR indicator).
[0057] Notably, during the actions performed during blocks 402, 404, 406, 408, 410, and 412, the CPU in this particular example may be used to execute other processes and / or sleep (ie, low power mode).
[0058] Figure 5 is a flow chart illustrating a process 500 for detecting transmission errors in a serial communication link receiver-transmitter according to one or more embodiments.
[0059] In operation 502, process 500 observes transmission data received at a transmitter of a serial communication link receiver-transmitter.
[0060] In operation 504, process 500 stores observed transmission data when the transmitter serially outputs a transmission data frame, wherein the transmission data frame includes the received transmission data. In one embodiment, process 500 stores observed transmission data in parallel within one clock cycle.
[0061] At operation 506, process 500 observes the transmitted data frames as they are serially output by the transmitter.
[0062] In operation 508, process 500 receives an observed transmitted data frame at a receiver of the serial communication link receiver-transmitter. As a non-limiting example, the observed transmitted data frame may be received via a data receive transaction process of the receiver. The data portion of the observed transmitted data frame is stored in a data buffer as observed transmitted data 144.
[0063] In operation 510, after completing the data reception of the observed transmitted data frame, process 500 compares the observed transmitted data of the observed transmitted data frame with the observed transmission data.
[0064] In operation 512, process 500 asserts an error indicator in response to determining that the observed transmitted data is different from the observed transmission data. In response to determining that the observed transmitted data is not different from the observed transmission data, the error indicator is not asserted.
[0065] Those of ordinary skill in the art will appreciate that the functional elements (eg, functions, operations, actions, processes and / or methods) of the embodiments disclosed herein may be implemented in any suitable hardware, software, firmware, or a combination thereof. Figure 6 Non-limiting examples of specific implementations of the functional elements disclosed herein are shown.In some embodiments, some or all of the functional elements disclosed herein may be performed by hardware specifically configured to perform these functional elements.
[0066] Figure 6 600 is a block diagram of a circuit 600 that can be used to implement various functions, operations, actions, processes and / or methods disclosed herein in some embodiments. The circuit 600 includes one or more processors 602 (sometimes referred to herein as "processor 602") operably coupled to one or more data storage devices (sometimes referred to herein as "storage device 604"). The storage device 604 includes a machine executable code 606 stored thereon, and the processor 602 includes a logic circuit 608. The machine executable code 606 includes information describing functional elements that can be implemented (e.g., executed) by the logic circuit 608. The logic circuit 608 is suitable for implementing (e.g., executing) the functional elements described in the machine executable code 606. When executing the functional elements described in the machine executable code 606, the circuit 600 should be regarded as dedicated hardware configured to execute the functional elements disclosed herein. In some embodiments, the processor 602 can be configured to execute the functional elements described in the machine executable code 606 in sequence, simultaneously (e.g., on one or more different hardware platforms), or in one or more parallel process flows.
[0067] When implemented by logic circuitry 608 of processor 602, machine executable code 606 is configured to adjust processor 602 to perform operations of the embodiments disclosed herein. For example, machine executable code 606 may be configured to adjust processor 602 (e.g., but not limited to, a peripheral processor) to perform at least a portion or all of process 500 and discussed in connection with transmission 200. For another example, machine executable code 606 may be configured to adjust processor 602 to perform at least a portion or all of the operations discussed with respect to: Figure 1 A serial communication link receiver-transmitter 100, transmitter 102, error detector 122, and receiver 134; and Figure 3 The microcontroller system 300, serial port 308, interrupt control 310 and peripheral bus 318 of the machine executable code 606 can be configured to adjust other processors of the processor 602 (such as but not limited to, a microcontroller or an embedded system processor) to perform a specific Figure 3 The processor 304, error handler 320 and system bus 316 may perform at least a portion or all of the operations discussed above.
[0068] Processor 602 may include a general purpose processor, a special purpose processor, a central processing unit (CPU), a microcontroller, a programmable logic controller (PLC), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, other programmable devices, or any combination thereof designed to perform the functions disclosed herein. A general purpose computer including a processor is considered a special purpose computer, and the general purpose computer is configured to execute functional elements corresponding to a machine executable code 606 (e.g., software code, firmware code, hardware description) associated with an embodiment of the present disclosure. It should be noted that a general purpose processor (also referred to herein as a host processor or simply a host) may be a microprocessor, but in an alternative, processor 602 may include any conventional processor, controller, microcontroller, or state machine. Processor 602 may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.
[0069] In some embodiments, the memory 604 includes volatile data storage (e.g., random access memory (RAM)), non-volatile data storage (e.g., flash memory, hard disk drive, solid state drive, erasable programmable read-only memory (EPROM), etc.). In some embodiments, the processor 602 and the storage device 604 can be implemented as a single device (e.g., semiconductor device product, system on chip (SOC), etc.). In some embodiments, the processor 602 and the storage device 604 can be implemented as separate devices.
[0070] In some embodiments, machine executable code 606 may include computer readable instructions (e.g., software code, firmware code). As a non-limiting example, the computer readable instructions may be stored by storage device 604, directly accessed by processor 602, and executed by processor 602 using at least logic circuit 608. Also as a non-limiting example, the computer readable instructions may be stored on storage device 604, transferred to a memory device (not shown) for execution, and executed by processor 602 using at least logic circuit 608. Thus, in some embodiments, logic circuit 608 includes logic circuit 608 that can be configured electrically.
[0071] In some embodiments, machine executable code 606 may describe hardware (e.g., circuits) to be implemented in logic circuit 608 to perform a functional element. The hardware may be described at any of a variety of abstraction levels from low-level transistor layout to a high-level description language. At a high level of abstraction, a hardware description language (HDL) may be used, such as an IEEE standard hardware description language (HDL). As non-limiting examples, Verilog™, SystemVerilog™, or a very large scale integration (VLSI) hardware description language (VHDL™) may be used.
[0072] The HDL description may be converted into a description at any of a variety of other abstraction levels as desired. As a non-limiting example, the high-level description may be converted into a logic-level description, such as a register transfer language (RTL), a gate-level (GL) description, a layout-level description, or a mask-level description. As a non-limiting example, the micro-operations performed by the hardware logic circuits (e.g., gates, flip-flops, registers, but not limited thereto) of the logic circuit 608 may be described in RTL and then converted into a GL description by a synthesis tool, and the GL description may be converted into a layout-level description by a placement and routing tool, which corresponds to the physical layout of an integrated circuit, a discrete gate or transistor logic component, a discrete hardware component, or a combination thereof of a programmable logic device. Therefore, in some embodiments, the machine executable code 606 may include an HDL, RTL, GL description, a mask-level description, other hardware descriptions, or any combination thereof.
[0073] In embodiments where the machine executable code 606 includes a hardware description (at any level of abstraction), a system (not shown, but including the storage device 604) may be configured to implement the hardware description described by the machine executable code 606. As a non-limiting example, the processor 602 may include a programmable logic device (such as, but not limited to, an FPGA or a PLC), and the logic circuit 608 may be electrically controlled to implement circuits corresponding to the hardware description into the logic circuit 608. Also as a non-limiting example, the logic circuit 608 may include hard-wired logic components that are manufactured by a manufacturing system (not shown, but including the storage device 604) according to the hardware description of the machine executable code 606. Such manufacturing of hard-wired logic components may also be characterized herein as permanently configuring the logic circuits of the processor.
[0074] Regardless of whether the machine executable code 606 includes computer readable instructions or a hardware description, the logic circuit 608 is suitable for performing the functional elements described by the machine executable code 606 when implementing the functional elements of the machine executable code 606. It should be noted that although the hardware description may not directly describe the functional elements, the hardware description indirectly describes the functional elements that the hardware elements described by the hardware description are capable of performing.
[0075] Any characterization of something in this disclosure as "typical", "conventional" or "known" does not necessarily mean that it is disclosed in the prior art or understood in the prior art for the aspect in question. Such characterization also does not necessarily mean that it is well-known, well-understood or conventionally used in the relevant art.
[0076] As used in this disclosure, the term "module" or "component" may refer to a specific hardware implementation that is configured to perform the actions of a module or component and / or software object or software routine that may be stored on and / or executed by general-purpose hardware of a computing system (e.g., a computer-readable medium, a processing device, without limitation). In some embodiments, the various components, modules, engines, and services described in this disclosure may be implemented as objects or processes executed on a computing system (e.g., as separate threads, etc.). Although some of the systems and methods described in this disclosure are generally described as being implemented in software (stored on and / or executed by general-purpose hardware), specific hardware implementations or combinations of software and specific hardware implementations are possible and contemplated.
[0077] As used in this disclosure, the term "combination" referring to a plurality of elements may include a combination of all elements or any of various subcombinations of certain elements. For example, the phrase "A, B, C, D, or a combination thereof" may refer to any one of A, B, C, or D; a combination of each of A, B, C, and D; and any subcombination of A, B, C, or D, such as A, B, and C; A, B, and D; A, C, and D; B, C, and D; A and B; A and C; A and D; B and C; B and D; or C and D.
[0078] The terms used in this disclosure and in particular in the appended claims (e.g., the bodies of the appended claims, etc.) are generally intended to be "open" terms (e.g., the term "including" should be interpreted as "including but not limited to", the term "having" should be interpreted as "having at least", the term "includes" should be interpreted as "including but not limited to", etc.). As used herein, the term "each" means some or all. As used herein, the term "each" means all.
[0079] Additionally, if a specific number of an introduced claim recitation is intended, such intent will be expressly recited in the claim, and in the absence of such a recitation, no such intent is present. For example, as an aid to understanding, the following appended claims may contain the use of the introductory phrases "at least one" and "one or more" to introduce claim recitations. However, the use of such phrases should not be construed to imply that a claim recitation introduced by the indefinite article "a" or "an" will limit any particular claim containing such introduced claim recitation to an embodiment containing only one such recitation, even when the same claim includes the introductory phrases "one or more" or "at least one" and an indefinite article, such as "a" or "an" (e.g., "a" and / or "an" may be interpreted to mean "at least one" or "one or more"); the same is true when a definite article is used to introduce a claim recitation.
[0080] In addition, even if a specific number of an introduced claim recitation is explicitly recited, one skilled in the art will recognize that such recitation should be interpreted to mean at least the recited number (e.g., the unmodified recitation "two recitations" means at least two recitations, or two or more recitations, in the absence of other modifiers). Moreover, in those cases where a convention similar to "at least one of A, B, and C, etc." or "one or more of A, B, and C, etc." is used, such construction is generally intended to include only A, only B, only C, both A and B, both A and C, both B and C, or all three of A, B, and C, etc.
[0081] In addition, any separate word or phrase presenting two or more alternative terms, whether in the specification, claims or drawings, should be understood to include the possibility of one of the terms, any one of the terms, or both of the terms. For example, the phrase "A or B" should be understood to include the possibility of "A" or "B" or "A and B".
[0082] Additional non-limiting embodiments of the present disclosure include:
[0083] Embodiment 1: A serial communication link receiver-transmitter, comprising: a transmitter and a receiver, wherein the transmitter and the receiver are configured to respectively perform data transmission and data reception on the same side of a serial communication link; and an error detector, wherein the error detector is operatively coupled to the transmitter and the receiver, wherein the error detector is configured to provide a transmission error indication in response to a difference between transmission data received at the transmitter and transmitted data output by the transmitter.
[0084] Embodiment 2: A serial communication link receiver-transmitter according to embodiment 1, wherein the error detector includes: a transmission error indicator; a comparison register; and an error detection logic unit, the error detection logic unit including: a first input, the first input is operatively coupled to the comparison register; a second input, the second input is operatively coupled to the memory of the receiver; and an output, the output is operatively coupled to the transmission error indicator.
[0085] Embodiment 3: A serial communication link receiver-transmitter according to any one of Embodiments 1 and 2, wherein the enable input of the error detection logic component is coupled to a receive completion indicator of the receiver.
[0086] Embodiment 4: A serial communication link receiver-transmitter according to any one of Embodiments 1 to 3, wherein the transmitter includes a data buffer operatively coupled to the error detector.
[0087] Embodiment 5: A serial communication link receiver-transmitter according to any one of Embodiments 1 to 4, wherein the error detector is arranged to observe transmission data provided to a transmission shift register and is configured to store the observed transmission data.
[0088] Embodiment 6: A serial communication link receiver-transmitter according to any one of Embodiments 1 to 5, wherein the output of the transmitter is operatively coupled to an output pad and operatively coupled to the input of the receiver.
[0089] Embodiment 7: A serial communication link receiver-transmitter according to any one of Embodiments 1 to 6, wherein the receiver is configured to receive an observed transmitted data frame and obtain observed transmitted data of the observed transmitted data frame.
[0090] Embodiment 8: According to any one of embodiments 1 to 7, the serial communication link receiver-transmitter further includes: a selection circuit, which is configured to alternately couple and decouple the input of the receiver with the output of the transmitter in response to a selection signal, and the selection signal is generated in response to enabling / disabling of the error detector.
[0091] Embodiment 9: According to any one of embodiments 1 to 8, the serial communication link receiver-transmitter further includes: a selection circuit, which is configured to alternately couple and decouple the input of the receiver to the input pad in response to a selection signal, and the selection signal is generated in response to enabling / disabling of the error detector.
[0092] Embodiment 10: A method for detecting transmission errors in a transmitted data frame on a serial communication link, the method comprising: serially outputting a transmitted data frame including transmission data; and enabling an error indicator in response to determining that the observed transmitted data is different from the observed transmission data.
[0093] Embodiment 11: The method according to embodiment 10 also includes: observing the transmission data at the transmitter of the serial communication link receiver-transmitter.
[0094] Embodiment 12: The method according to any one of Embodiments 10 and 11 further includes: observing the transmitted data frame serially output by the transmitter.
[0095] Embodiment 13: The method according to any one of embodiments 10 to 12 further includes: receiving observed transmitted data at a receiver of the serial communication link receiver-transmitter according to a data reception transaction process of the receiver.
[0096] Embodiment 14: The method according to any one of embodiments 10 to 13 also includes: after completing the normal data reception process of the observed transmitted data, comparing the observed transmitted data of the observed transmitted data frame with the observed transmission data.
[0097] Embodiment 15: The method according to any one of embodiments 10 to 14 also includes: comparing the observed transmitted data with the observed transmission data; and in response to the comparison, determining that the observed transmitted data is different from the observed transmission data.
[0098] Embodiment 16: A computing system comprising: a processor; and a memory storage device having machine executable code thereon, the machine executable code being suitable for permanently configuring the logic circuit of the processor to: observe received transmission data for transmission by a transmitter of a serial communication link; serially output a transmission data frame including the transmitted data; observe the transmitted data of the transmission data frame; and enable an error indicator in response to determining that the observed transmitted data is different from the observed transmission data.
[0099] Embodiment 17: The computing system of Embodiment 16, wherein the machine executable code includes code adapted to permanently configure the logic circuitry of the processor to perform the following operations: observe transmitted data at a transmitter of a serial communication link receiver-transmitter.
[0100] Embodiment 18: A computing system according to any of Embodiments 16 and 17, wherein the machine executable code includes code suitable for permanently configuring the logic circuit of the processor to perform the following operations: observe the transmitted data frame serially output by the transmitter.
[0101] Embodiment 19: A computing system according to any one of Embodiments 16 to 18, wherein the machine executable code includes code suitable for permanently configuring the logic circuit of the processor to perform the following operations: receiving observed transmitted data frames at a receiver of a serial communication link receiver-transmitter according to a data receive transaction process of the receiver.
[0102] Embodiment 20: A computing system according to any one of Embodiments 16 to 19, wherein the machine executable code includes code suitable for permanently configuring the logic circuit of the processor to perform the following operations: after completing the data reception process of the observed transmitted data frame, compare the observed transmitted data of the observed transmitted data frame with the observed transmission data.
[0103] Embodiment 21: A computing system according to any one of Embodiments 16 to 20, wherein the machine executable code includes code suitable for permanently configuring the logic circuit of the processor to perform the following operations: comparing observed transmitted data and observed transmission data; and in response to the comparison, determining that the observed transmitted data is different from the observed transmission data.
[0104] Although the present invention is described herein with respect to certain illustrated embodiments, those of ordinary skill in the art will recognize and appreciate that the present invention is not so limited. Rather, many additions, deletions, and modifications may be made to the illustrated embodiments and the described embodiments without departing from the scope of the present invention as claimed below and its legal equivalents. Furthermore, features from one embodiment may be combined with features of another embodiment while still being included within the scope of the present invention as contemplated by the inventor.
Claims
1. A serial communication link receiving and transmitting device, comprising: a transmitter and a receiver configured to perform data transmission and data reception, respectively, on the same side of a serial communication link; as well as an error detector operatively coupled to the transmitter and the receiver, the error detector being configured to provide a transmission error indication during a normal data transmission mode of the serial communication link receiving and transmitting device in response to a difference between transmission data received at the transmitter and transmitted data output by the transmitter observed at the receiver.
2. The serial communication link receiving and transmitting device according to claim 1, wherein the error detector comprises: Transmission error indicator; Compare registers; as well as An error detection logic unit, the error detection logic unit comprising: a first input operatively coupled to the compare register; a second input operatively coupled to a memory of the receiver; and An output is operatively coupled to the transmission error indicator.
3. The serial communication link receiving and transmitting device according to claim 2, wherein the enable input of the error detection logic component is coupled to the reception completion indicator of the receiver.
4. The serial communication link receiving and transmitting device according to claim 1, wherein the transmitter includes a data buffer operatively coupled to the error detector.
5. The serial communication link receiving and transmitting device according to claim 4, wherein the error detector is arranged to observe the transmission data provided to the transmission shift register and is configured to store the observed transmission data.
6. The serial communication link receiving and transmitting device according to claim 1, wherein the output of the transmitter is operatively coupled to an output pad and operatively coupled to an input of the receiver. 7 . The serial communication link receiving and transmitting device according to claim 6 , wherein the receiver is configured to receive the observed transmitted data frame and obtain the observed transmitted data of the observed transmitted data frame.
8. The serial communication link receiving and transmitting device according to claim 1, further comprising: A selection circuit is configured to alternately couple and decouple an input of the receiver from an output of the transmitter in response to a selection signal generated in response to enabling / disabling of the error detector.
9. The serial communication link receiving and transmitting device according to claim 1, further comprising: A selection circuit is configured to alternately couple and decouple an input of the receiver to an input pad in response to a selection signal generated in response to enabling / disabling of the error detector.
10. A method for detecting a transmission error in a transmitted data frame on a serial communication link, the method comprising: During a normal data transmission mode of the serial communication link receiving and transmitting device according to claim 1: The serial output includes a transmitted data frame of the transmitted data; as well as In response to determining that the observed transmitted data is different than the observed transmitted data, an error indicator is asserted.
11. The method according to claim 10, further comprising: The serial communication link is observed to receive transmission data at a transmitter of a transmitting device.
12. The method according to claim 10, further comprising: Observe the transmitted data frame serially output by the transmitter of the serial communication link receiving and transmitting device.
13. The method according to claim 10, further comprising: Observed transmitted data is received at a receiver of a serial communication link receiving and transmitting device according to a data receiving transaction process of the receiver.
14. The method according to claim 13, further comprising: After completing a normal data reception transaction process for the observed transmitted data, the observed transmitted data of the observed transmitted data frame is compared with the observed transmission data.
15. The method according to claim 10, further comprising: comparing the observed transmitted data with the observed transmitted data; And responsive to the comparing, determining that the observed transmitted data is different from the observed transmitted data.
16. A computing system, the computing system comprising: processor; as well as a memory storage device having machine executable code thereon, the machine executable code being adapted to permanently configure the logic circuitry of the processor to: During a normal data transmission mode of the serial communication link receiving and transmitting device according to claim 1: observing received transmission data sent by a transmitter of the serial communication link receiving transmission device; The serial output includes a transmission data frame of the transmitted data; Observing the transmitted data of the transmission data frame; as well as In response to determining that the observed transmitted data is different than the observed transmitted data, an error indicator is asserted.
17. The computing system of claim 16, wherein the machine executable code comprises code adapted to permanently configure the logic circuitry of the processor to: The serial communication link is observed to receive transmission data at a transmitter of a transmitting device.
18. The computing system of claim 17, wherein the machine executable code includes code adapted to permanently configure logic circuitry of the processor to observe a transmitted data frame serially output by the transmitter.
19. The computing system of claim 16, wherein the machine executable code comprises code adapted to permanently configure logic circuitry of the processor to: The observed transmitted data of the transmission data frame is received at the receiver of the serial communication link receiving and transmitting device according to the data receiving transaction process of the receiver.
20. The computing system of claim 19, wherein the machine executable code comprises code adapted to permanently configure logic circuitry of the processor to: After completing the data reception transaction of the observed transmitted data frame, the observed transmitted data of the transmitted data frame is compared with the observed transmission data.
21. The computing system of claim 19, wherein the machine executable code comprises code adapted to permanently configure logic circuitry of the processor to: comparing the observed transmitted data to the observed transmitted data; and Responsive to the comparing, it is determined that the observed transmitted data is different than the observed transmitted data.
