Sampling point identification for low-frequency asynchronous data capture

The edge extension detector and clock generator identify transitions in the asynchronous communication data stream, determine the sampling point and generate a low-frequency clock signal, solving the resource-intensive problem of traditional asynchronous communication receivers, achieving efficient data collection and reducing power consumption .

CN113544997BActive Publication Date: 2024-09-10TEXAS INSTRUMENTS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080017527.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-06-28
Filing Date
2020-01-14
Publication Date
2024-09-10
Estimated Expiration
2040-01-14

AI Technical Summary

Technical Problem

Traditional asynchronous communication receivers are resource intensive when performing oversampling and post-sampling processing, and are difficult to implement on microcontrollers with limited bandwidth and system clock frequency, resulting in high power consumption and complex storage and processing requirements.

Method used

The edge extension detector circuit and clock generator are used to determine the sampling point by identifying transitions in the data stream, and generate a low-frequency clock signal based on the sampling point for data sampling, reducing the need for resource-intensive oversampling and post-sampling processing.

Benefits of technology

It effectively reduces power consumption, reduces the need for storage and processing capabilities, and achieves efficient data collection under limited bandwidth and clock frequency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113544997B_ABST
    Figure CN113544997B_ABST
Patent Text Reader

Abstract

An asynchronous data capture device (300) includes an edge extension detector circuit (310), a clock generator (320), and a data sampling circuit (330). The edge extension detector circuit uses a first clock frequency that is a multiple of a second clock frequency, identifies a transition in a data stream transmitted to the device (305) at the second clock frequency, and determines a sampling point (315) based on the identified transition. The clock generator adjusts a phase offset based on the sampling point and generates a clock signal (325) having the second clock frequency and the adjusted phase offset. The data sampling circuit uses the second clock frequency and samples the data stream at the sampling point. In some embodiments, the edge extension detector determines a sampling point isolated from the identified transition, and the clock generator adjusts the phase offset to cause a rising edge at the sampling point.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] In an asynchronous communication system, the communication endpoints do not share a common clock signal, but instead rely on start and stop signals within the data stream itself. Conventional asynchronous communication receivers oversample the incoming data stream, typically by a factor of four or eight. For example, for each bit of incoming data, the receiver samples the incoming data eight times, resulting in eight bits of acquired data. The eight bits of acquired data are then processed to determine the value of that one incoming data bit, such as by majority polling or other filtering methods.

[0002] Eight times oversampling requires the receiver to run at a high frequency clock rate, eight times the expected data clock rate. Running at such a high frequency clock rate and performing extensive post-sampling processing to determine the value of the incoming data bit is resource intensive for the receiver. The receiver must perform high-speed data capture, store the acquired bits in a large data buffer, transfer large amounts of data, etc. The resource intensive nature of these traditional oversampling and post-sampling processing techniques is difficult to implement on traditional microcontrollers with limited bandwidth and system clock frequency. Summary of the invention

[0003] An asynchronous data capture device includes an edge extension detector circuit, a clock generator coupled to the edge extension detector circuit, and a data sampling circuit coupled to the clock generator. The edge extension detector circuit is configured to use a first clock frequency that is a multiple of a second clock frequency. The edge extension detector circuit is also configured to identify transitions in a data stream transmitted to the data capture device at the second clock frequency, and determine sampling points based on the identified transitions in the data stream. The clock generator is configured to adjust a phase offset based on the sampling point and generate a clock signal having the second clock frequency and the adjusted phase offset. The data sampling circuit is configured to use the second clock frequency and sample the data stream at the sampling point.

[0004] In some embodiments, the edge extension detector circuit is configured to determine a sampling point so that the sampling point is isolated from the identified transition. In some embodiments, the clock generator is configured to adjust the phase offset based on the sampling point so that the clock signal has a rising edge at the sampling point. In some embodiments, the edge extension detector circuit includes an edge detector subcircuit and a shift register coupled to the edge detector subcircuit. The edge detector subcircuit is configured to receive a data stream and identify a transition in the data stream. In some embodiments, the shift register includes a circular shift register.

[0005] In some embodiments, the edge detector subcircuit includes a first flip-flop having an input for receiving a data stream and a second flip-flop coupled to the first flip-flop. The edge detector subcircuit also includes a first logic gate coupled to the first and second flip-flops and a second logic gate coupled to the first logic gate and an output of the shift register. In some embodiments, the first logic gate is an XOR logic gate and the second logic gate is an OR logic gate.

[0006] A method for sampling data in an asynchronous communication interface system includes oversampling an incoming data stream at a system clock frequency and identifying transitions in the incoming data stream. The method also includes determining an edge spread of a data clock frequency of the incoming data stream, wherein the system clock frequency is a multiple of the data clock frequency, and determining a sampling point based on the determined edge spread. The method also includes adjusting a phase offset based on the determined sampling point, and generating a clock signal having a data clock rate and an adjusted phase offset. The method also includes sampling the incoming data stream at the data clock frequency based on the generated clock signal.

[0007] In some embodiments, the method further comprises adjusting the phase offset so that the generated clock signal has a rising edge at the sampling point. In some embodiments, the method further comprises determining that the sampling point is isolated from the determined edge extension. In those embodiments, the method further comprises verifying that the sampling point is isolated from the determined edge extension. In response to the sampling point being isolated from the determined edge extension, the method comprises sampling the incoming data stream. In response to the sampling point not being isolated from the determined edge extension, the method comprises determining a revised sampling point. In some embodiments, the revised sampling point is based on the revised edge extension. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] To describe various examples in detail, reference will now be made to the accompanying drawings, in which:

[0009] Figure 1 An example asynchronous communication interface system is shown.

[0010] Figure 2 An example timing diagram for an asynchronous communication interface system is shown.

[0011] Figure 3 An example receiver included in an asynchronous communication interface system is shown in block diagram form.

[0012] Figure 4 An example edge extension detector is shown in block diagram form.

[0013] Figure 5 An example timing diagram of components in an example edge extension detector is shown.

[0014] Figure 6A-6BExample values ​​for two different edge extensions in the shift register are shown.

[0015] Figure 7 Different phase-shifted clock signals that may be generated by a phase-aligned clock generator are shown.

[0016] Figure 8 A state diagram for identifying and selecting an appropriate low frequency phase adjusted clock signal in an example asynchronous communication system is shown. DETAILED DESCRIPTION

[0017] Conventional techniques for oversampling and post-sampling processing in asynchronous communication systems are resource intensive and are often difficult to implement on devices with limited bandwidth and system clock frequency. The disclosed asynchronous communication device uses oversampling to determine the edge extension of the data clock frequency of the incoming data and selects appropriate sampling points based on the edge extension. The disclosed asynchronous communication device samples the incoming data at appropriate sampling points based on a low frequency clock corresponding to the data clock frequency. This limits the resource intensive oversampling technique to learning the edge extension rather than receiving all incoming data, thereby reducing power consumption and reducing storage and processing power used to analyze the oversampled bits.

[0018] An example asynchronous communication device includes an edge extension detector circuit, a clock generator, and a data sampling circuit. The edge extension detector circuit uses a high frequency system clock and identifies transitions in an incoming data stream. The edge extension detector also selects a sampling point based on the identified transitions. In some embodiments, the edge extension detector circuit selects a sampling point that is isolated from the determined edge extension of the incoming data stream. The clock generator adjusts a phase offset based on the sampling point and generates a low frequency clock signal with an adjusted phase offset. The data sampling circuit uses a low frequency clock based on a clock signal generated by the clock generator and samples the incoming data stream at the sampling point.

[0019] In some embodiments, the clock generator adjusts the phase offset so that the generated clock signal has a rising edge at the sampling point. In some examples, the edge extension detector circuit includes an edge detector subcircuit and a shift register. The edge detector subcircuit includes two flip-flops configured to provide an incoming data stream and a delayed copy of the incoming data stream to an XOR logic gate that identifies transitions in the incoming data stream. The OR logic gate compares the output of the XOR logic gate with the output of the shift register and outputs the result to the shift register. This ensures that changes in the incoming clock data rate due to clock jitter, etc., are reflected in the edge extension.

[0020] Figure 1An example of a conventional asynchronous communication interface system 100 is shown. The communication interface system 100 can be implemented in any kind of master / servo communication application, such as for a position encoder system. The communication interface system 100 includes a master microcontroller 110 and a servo microcontroller 150 interconnected by a communication cable 135. Because the master microcontroller 110 and the servo microcontroller 150 may be hundreds of meters apart, the number of cables between them is minimized to reduce cost. Therefore, the master microcontroller 110 and the servo microcontroller 150 are configured to implement asynchronous communication via the communication cable 135 and do not share a common clock signal.

[0021] The master microcontroller 110 includes a transmitter 115 and a receiver 120, and the servo microcontroller 150 includes a transmitter 155 and a receiver 160. The communication cable 135 is configured to transmit signals between the master microcontroller 110 and the servo microcontroller 150, such as a master data signal requested from the master microcontroller 110 to the servo microcontroller 150 and a servo data signal from the servo microcontroller 150 to the master microcontroller 110. Therefore, the communication interface system 100 can achieve asynchronous bidirectional communication through the cable 135.

[0022] Figure 2 An example timing diagram of an asynchronous communication interface system is shown, for example Figure 1 . The incoming data 210 shows the value of the data sent from the servo microcontroller 150 to the master microcontroller 110, and the data clock frequency 220 shows the clock frequency Fd at which the servo microcontroller 150 sends the data 210. The sampled value 230 shows the value of the sample taken from the data 210 by the master microcontroller 110, and the system clock frequency 240 shows the clock frequency Fs at which the master microcontroller 110 samples the incoming data 210.

[0023] The master microcontroller 110 and the servo microcontroller 150 do not share a common clock signal, so the master microcontroller 110 oversamples the incoming data 210 at a frequency Fs 240 such that for each bit of the incoming data D, N samples are taken and N acquisition bits are generated. The relationship between the data clock frequency 220 and the system clock frequency 240 is represented as Fs=(N)(Fd). The master microcontroller 110 then performs majority polling or other filtering on the sampled values ​​230 to identify the correct data value for each incoming data bit D. For example, the master microcontroller 110 performs majority polling on the acquisition bits corresponding to the system clock periods S1-SN in the sampled values ​​230 to determine the correct data value for the incoming data bit D1. The oversampling and post-sampling processes are resource intensive, requiring high-speed data capture, large data buffers, high bandwidth for transmitting large amounts of data, etc.

[0024] Figure 3 An example microcontroller 300 included in a data capture device for an asynchronous communication interface system is shown in block diagram form. The microcontroller 300 includes an edge extension detector 310, a phase alignment clock generator 320, and a low speed data capture circuit 330. The microcontroller 300 receives incoming data 305 via a communication cable 335, similar to the master microcontroller 110 and the communication cable 135. The edge extension detector 310 generates a phase alignment clock generator 320 at a higher frequency system clock rate (e.g., Figure 2 ) and receives incoming data 305. The edge extension detector 310 outputs a sampling edge 315 to the phase alignment clock generator 320. The sampling edge 315 (also referred to as a sampling point 315) indicates a stable point in each bit D of the incoming data 305, where the sample data 305 is away from the edge point of the data transition.

[0025] The phase-aligned clock generator 320 generates a low-frequency clock signal CLKn 325 with a phase offset so that the rising edge of CLKn 325 occurs at the received sampling edge 315. The low-frequency clock signal corresponds to the frequency of the incoming data 305, such as the data clock frequency 220. The low-frequency data sampling circuit 330 receives and samples the incoming data 305 at the rising edge of the low-frequency clock signal CLKn 325 and outputs a sampled data signal 350. Only the edge extension detector 310 and the phase-aligned clock generator 320 operate at a high-frequency clock signal (e.g., the sampling clock frequency 240). The low-frequency data sampling circuit 330 does not need to oversample the incoming data 305 or perform post-capture data processing to identify the appropriate data value because it samples the incoming data 305 at a stable point away from the edge point of the data transition in each data cycle.

[0026] Figure 4 An example edge extension detector 400 is shown in block diagram form. The edge extension detector 400 includes a first flip-flop 410, a second flip-flop 415, a transition detector 430, a circular shift register 450, and a controller 460. The transition detector 430 includes an XOR logic gate 435 and an OR logic gate 440. The flip-flop 410 receives the incoming data 405 and the system clock signal Fs 495, and outputs the substantially unchanged data 405. The flip-flop 415 receives the output of the flip-flop 410 and the system clock signal Fs 495, and outputs a delayed copy of the incoming data 405, namely delayed data 420. The transition detector 430 receives the incoming data 405, the delayed data 420, and the output of the last bit of the circular shift register 450 before it is fed back to the first bit of the circular shift register 450. The transition detector 430 outputs the extension of the data transition in the incoming data 405 to the circular shift register 450.

[0027] The XOR logic gate 435 in the transition detector 430 receives the incoming data 405 and the delayed data 420 and outputs the identified edges in the incoming data 405 and the delayed data 420 . Figure 5 Shown are example inputs and outputs of XOR logic gate 435. XOR 435 outputs a signal indicating a rising edge in incoming data 405 at 510 and delayed data 420 at 520. OR logic gate 440 receives the output of XOR logic gate 435 and the output of the last bit of circular shift register 450 and outputs signal 445 into circular shift register 450. Signal 445 indicates a transition point in incoming data 405 so that a change in the incoming data clock frequency Fd is identified.

[0028] The circular shift register 450 includes N bits based on the incoming data clock frequency Fd and the system clock frequency Fs 495. For example, the system clock frequency Fs 495 is equal to N times the incoming data clock frequency Fd. The controller 460 reads each bit in the circular shift register 450 and identifies a stable point in the incoming data 405 that is away from the data transition point. The controller 460 determines the appropriate sampling point for the associated low-frequency data capture circuit to sample the incoming data 405 and outputs a sampling edge 470.

[0029] Figure 6A-6B Example values ​​for two different edge extensions in shift register 450 and the corresponding sampling edges 470 are shown. Fig. 6A 6 shows overlapping rising edges of six incoming data bits D1-D6. When data bits D1-D6 are input to transition detector 430, shift register value 620 represents the value stored in shift register 450 based on the output of transition detector 430. The N shift register values ​​represent N samples of incoming data acquired for each data bit D, with "1" representing samples identified as transition points in data bits D1-D6 and "0" representing samples identified as stable values ​​in data bits D1-D6. Sample edge 470 is selected from shift register value 620 from a cluster of zeros indicating a stable data value. Figure 6B 6 shows overlapping rising edges of three incoming data bits D1-D3. When data bits D1-D3 are input to transition detector 430, shift register value 640 represents the value stored in shift register 450 based on the output of transition detector 430. Sampling edge 470 is selected from shift register value 640 from a cluster of zeros indicating a stable data value.

[0030] Figure 7 shows that a phase-aligned clock generator (e.g. Figure 3705). The phase alignment clock generator 320 shown in FIG. 706 is a clock signal generator 720 that is used to generate different phase-shifted clock signals. The shift register value 710 indicates the value stored in the associated shift register based on the transition identified in the incoming data 705. The sampling edge 760 is selected from the shift register value 710 from the zero cluster indicating the stable data value. The group of clock signals 720 includes possible low-frequency clock signals and phase offsets that the phase alignment clock generator can generate. The phase offset between each clock signal CLK1-CLK8 corresponds to the high-frequency system clock because each clock signal CLK1-CLK8 has a unique rising edge corresponding to a different clock period S of the high-frequency system clock Fs within the data period D. The frequency of the clock signals CLK1-CLK8 corresponds to the incoming data clock frequency Fd, which is lower than the system clock frequency Fs.

[0031] The phase aligned clock generator receives sampling edge 760 and generates a clock signal (CLK6 in this example) having a phase offset corresponding to sampling edge 760. The low frequency phase offset clock signal CLK6 can be provided to a low frequency data sampling circuit, such as Figure 3 , the low frequency data sampling circuit will sample the incoming data 705 at the rising edge of the clock signal CLK 6. This allows the low frequency data capture circuit to sample the incoming data 705 at a stable data value point and avoid resource intensive oversampling and majority polling or other post-sampled data processing.

[0032] Figure 8 Shown for Figure 3 Flowchart of a process 800 for identifying and selecting an appropriate low frequency phase adjusted clock signal in an example asynchronous communication system 300 is shown. The process begins at reset 805 and proceeds to learn 810. The edge extension detector 310 samples the incoming data 305 to identify transitions. The amount of data required to adequately identify an edge extension of the data clock depends on the noise in the communication system. For example, in some embodiments, several data packets totaling one kilobyte or more of data are required to confidently identify an edge extension of the incoming data clock.

[0033] At 815, the edge extension detector 310 determines an appropriate sampling point based on the identified transition. At 820, the asynchronous communication system 300 compares the determined sampling point with the incoming data to confirm that the sampling point captures a stable data value. In an initial system setup, the asynchronous communication system 300 performs multiple iterations 825 of steps 810-820. The number of iterations depends in part on the noise of the communication system 300, where more iterations are required in response to more noise. Once a suitable sampling point is confirmed at step 820 and no further iterations are required, the asynchronous communication system 300 operates at step 830 to sample the incoming data at a low frequency at the sampling point it determined at step 815.

[0034] If the asynchronous communication system 300 determines that the sampling point is different from the stable data value point in too many iterations of the series of steps 810-820, thereby identifying a fault at step 835, it returns to a system reset at step 805. Periodically during operation of the system at step 830, the asynchronous communication system 300 verifies the sampling point at step 845. If the system determines at step 850 that the sampling point has failed during runtime, such as in response to a fault in another component in the communication system, the asynchronous communication system 300 returns to a system reset at step 805 and determines a new sampling point.

[0035] In this specification, the term "coupled" or "coupled" refers to an indirect or direct wired or wireless connection. Thus, if a first device is coupled to a second device, the connection may be through a direct connection or through an indirect connection via other devices and connections. The expression "based on" means "based at least in part on." Thus, if X is based on Y, then X may be a function of Y and any number of other factors.

[0036] Modifications to the described embodiments are possible within the scope of the claims, and other embodiments are possible.

Claims

1. An asynchronous data capture device, comprising: An edge extension detector circuit comprising a shift register, wherein the edge extension detector circuit is configured to: using a first clock frequency, wherein the first clock frequency is a multiple of a second clock frequency; identifying a set of transitions associated with a set of data values ​​in a data stream transmitted to the data capture device using the second clock frequency; storing, in the shift register, a set of values ​​based on the set of transitions; determining a sampling point based on the set of values ​​stored in the shift register; a clock generator coupled to the edge extension detector circuit and configured to: adjusting a phase offset based on the sampling point, and generating a clock signal having the second clock frequency and the adjusted phase offset; and a data sampling circuit coupled to the clock generator and configured to: using the second clock frequency, and The data stream is sampled at the sampling points. 2 . The data capture device according to claim 1 , wherein the clock generator is configured to adjust the phase offset based on the sampling point so that the clock signal has a rising edge at the sampling point. 3 . The data capture device of claim 1 , wherein the edge extension detector circuit is configured to determine the sampling point such that the sampling point is isolated from the set of transitions.

4. The data capture device of claim 1 , wherein the edge extension detector circuit comprises: An edge detector subcircuit is coupled to the shift register and is configured to receive the data stream and identify transitions in the data stream.

5. The data capture device of claim 4, wherein the shift register comprises a circular shift register.

6. The data capture device of claim 4, wherein the edge detector subcircuit comprises: a first flip-flop having an input configured to receive the data stream; a second trigger coupled to the first trigger; a first logic gate coupled to the first flip-flop and the second flip-flop; as well as A second logic gate is coupled to the first logic gate and to an output of the shift register.

7. The data capture device of claim 6, wherein the first logic gate is an XOR logic gate.

8. The data capture device of claim 6, wherein the second logic gate is an OR logic gate.

9. A device comprising: a data terminal configured to receive a data stream comprising a set of data values; a first clock generator; An edge extension detector circuit comprising: coupled to an input of said data terminal; a clock input coupled to an output of said first clock generator; a shift register configured to store a set of values ​​based on a transition of the set of data values; and configured to provide an output of a signal based on a set of values ​​stored in the shift register; a second clock generator having an input coupled to the output of the edge extension detector circuit and having an output providing a clock signal having an adjusted phase offset, wherein the second clock generator is configured to adjust the phase offset based on the output of the edge extension detector circuit; and A data capture circuit has a first input coupled to the data terminal and has a clock input coupled to the output of the second clock generator, the data capture circuit having a data output. 10 . The device of claim 9 , wherein the first clock generator is configured to output a first clock signal having a first clock frequency. 11 . The apparatus of claim 10 , wherein the second clock generator is configured to output the clock signal having a second clock frequency, and wherein the first clock frequency is a multiple of the second clock frequency.

12. The apparatus of claim 11, wherein the second clock frequency corresponds to a clock frequency of a data stream received by the data terminal.

13. The apparatus of claim 9, wherein the signal provided by the output of the edge extension detector circuit specifies a sampling point. The apparatus of claim 13 , wherein the sampling points are isolated from the transitions of the set of data values.

15. The apparatus of claim 9, wherein the edge extension detector circuit comprises: An edge detector subcircuit has an input coupled to the data terminal and an output coupled to the shift register.

16. The apparatus of claim 15, wherein the shift register comprises a circular shift register.

17. The apparatus of claim 15, wherein the edge detector subcircuit comprises: a first flip-flop having an input coupled to the data terminal; a second flip-flop having an input coupled to the output of the first flip-flop; a first logic gate having a first input coupled to the output of the first flip-flop and a second input coupled to the output of the second flip-flop; as well as A second logic gate has a first input coupled to the output of the first logic gate and a second input coupled to the output of the shift register.

18. The apparatus of claim 17, wherein the first logic gate comprises an XOR logic gate.

19. The apparatus of claim 17, wherein the second logic gate comprises an OR logic gate.

20. A method for sampling data in an asynchronous communication interface system, comprising: Oversample the incoming data stream using the system clock frequency; identifying a set of transitions in the incoming data stream associated with a set of data values; determining an edge extension of a data clock frequency of the incoming data stream based on the set of transitions, wherein the system clock frequency is a multiple of the data clock frequency; determining a sampling point based on the determined edge extension; adjusting a phase offset based on the determined sampling point; generating a clock signal having the data clock frequency and an adjusted phase offset; as well as The incoming data stream is sampled using the data clock frequency based on the generated clock signal. 21 . The method of claim 20 , wherein adjusting the phase offset based on the determined sampling point comprises adjusting the phase offset so that the generated clock signal has a rising edge at the sampling point.

22. The method of claim 20, wherein determining the sampling point based on the determined edge extension comprises determining that the sampling point is isolated from the determined edge extension.

23. The method according to claim 22, further comprising: verifying that the sampling point is isolated from the determined edge extension; In response to the sampling point being isolated from the determined edge extension, sampling the incoming data stream at the data clock frequency based on the generated clock signal; as well as In response to the sampling point not being isolated from the determined edge extension, a revised sampling point is determined.

24. The method of claim 23, further comprising determining a modified edge spread of the data clock frequency of the incoming data stream, wherein verifying that the sampling point is isolated from the determined edge spread comprises verifying that the sampling point is isolated from the modified edge spread.