Successive approximation analog-to-digital converter error code correction method and successive approximation analog-to-digital converter
By introducing a time decision module and a data comparator into the successive approximation analog-to-digital converter, we can detect and correct the bit errors caused by the dead-zone voltage of the comparator and glitch interference in the asynchronous logic, solving the bit error problem in the asynchronous SAR ADC and improving the efficiency of the asynchronous SAR ADC. Conversion accuracy and speed for high-speed applications.
Patent Information
- Application Number
- CN202410867618.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-13
AI Technical Summary
Successive approximation analog-to-digital converters (SAR ADCs) have bit error problems caused by dead-zone voltage and glitch interference when dynamic latch flips in asynchronous logic, which affects conversion accuracy and speed.
By introducing a time decision module, it detects whether the comparator completes the data comparison within the specified time. If it is not completed, the conversion cycle is interrupted, and it is judged whether the positive and negative terminal outputs are consistent before outputting the data. If they are inconsistent, the output is corrected as a bit error signal to ensure that the data accuracy.
It effectively prevents bit errors caused by dead zone voltage and glitch interference, improves the speed and conversion accuracy of the comparator, and is suitable for the needs of high-speed asynchronous SAR ADC without affecting the main circuit speed and conversion rate.
Smart Images

Figure CN118646413A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of integrated circuits, and in particular to a successive approximation register analog-to-digital converter (SAR ADC), and more specifically to a successive approximation register analog-to-digital converter error correction method and a successive approximation register analog-to-digital converter. Background Art
[0002] Successive approximation analog-to-digital converter (SAR ADC), including synchronous SAR ADC and asynchronous SAR ADC.
[0003] The synchronous SAR ADC clock signal is connected externally, and the comparison period of each bit of data is equal. In order to ensure the resolution accuracy of the comparator, each comparison period needs to be long enough, which is generally used in low-speed analog-to-digital converters.
[0004] The asynchronous SAR ADC automatically determines the state of the comparator and automatically generates a clock signal. The comparison period of each bit of data can be unequal. In addition to avoiding the external input of a high-speed clock signal, it can also increase the speed. Asynchronous SAR ADC is usually used for high-speed analog-to-digital converters.
[0005] SAR ADC inevitably has the problem of bit error, which is mainly caused by the dead zone voltage of the comparator in asynchronous logic and the glitch interference when the dynamic latch flips.
[0006] For the convenience of description, a 10-bit SAR ADC is used as an example to describe the working process of a traditional asynchronous SAR ADC.
[0007] Figure 1 This is the asynchronous structure block diagram of the traditional asynchronous SAR ADC. When the external CLK_ST signal is "0", the asynchronous logic does not work, the comparator Comp outputs OUTN and OUTP are both "0", the dynamic latch Dynamic Latch is in the reset state, the judgment module Comp Finish outputs "0", the clock signal generator CLK_GEN does not flip, and the SAR Logic count value is "0".
[0008] When the external CLK_ST signal is "1", the clock signal generator generates the first pulse, and the comparator performs the first comparison after receiving the first pulse. After the comparison result is obtained, "01" or "10" is output. One side of the output data is given to the dynamic latch for latching, and the SAR Logic module reads the latch for processing and output and counts to "1"; the other side of the output data is given to the judgment module. After the judgment module detects that the output of the comparator is no longer the initial all "0", the judgment comparison is completed, and the control clock signal generator generates the next pulse. After receiving the second pulse, the comparator resets the output to all "0" and starts the second comparison. After the comparison result is obtained, "01" or "10" is output. One side of the output data is given to the dynamic latch for storage, and the SAR Logic module reads the latch for processing and output and counts to 2; the other side of the output data is given to the judgment module. After the judgment module detects that the output of the comparator is no longer the initial all "0", the judgment comparison is completed, and the control clock signal generator generates the next pulse. The same process continues until the tenth comparator resets its output to all "0" after receiving the tenth pulse and starts the tenth comparison. After the comparison result is obtained, "01" or "10" is output. The output data is given to the dynamic latch for storage. The SAR Logic module reads the latch for processing and outputs, and the count is "10". The output Count signal stops the CLK_GEN module from generating clock pulses. The cycle ends and data is output.
[0009] Bit errors caused by dead zone voltage.
[0010] As mentioned above, the logic of the asynchronous SAR ADC, whether it can enter the next cycle (generate the next clock pulse) from the current working cycle depends on when the comparator completes the comparison output "01" or "10". However, the speed of the comparator is limited, and there is always a dead zone voltage. When the input DACN and DACP differ very little or even completely the same, the comparator will not be able to complete the comparison output "01" or "10" within the specified time. This makes the subsequent conversion cycle impossible, and thus the correct number cannot be output, resulting in bit errors, such as Figure 2 shown.
[0011] Another source of SAR ADC bit errors is the glitch interference when the dynamic latch flips.
[0012] like Figure 3 As shown in the figure, when the comparator has not yet completely compared the result and the output is relatively close, if there is a glitch interference that causes the output result to be "1" at the same time for a short period of time, the dynamic latch will latch the result and it cannot be restored. The reason is that the dynamic latch uses semi-dynamic logic in order to pursue speed. Once the result is latched, it cannot be restored.
[0013] Or when the comparator has not yet completely compared the result and the output is relatively close, if there is a glitch interference that causes the output result to be close to the threshold voltage for a short period of time, the decision circuit has already flipped but the output result has not actually become high, and the dynamic latch will read the wrong result "0". Figure 4 shown.
[0014] Obviously, these two situations come from the interference of the circuit and have nothing to do with the dead zone voltage of the comparator. No matter how fast the comparator is or how small the dead zone voltage is, this situation can still occur. Summary of the invention
[0015] The main purpose of the present application is to provide a successive approximation analog-to-digital converter error correction method and a successive approximation analog-to-digital converter, which can correct the errors caused by the dead-zone voltage of the comparator in asynchronous logic and / or the glitch interference when the dynamic latch is flipped without affecting the speed of the main circuit.
[0016] In order to achieve the above object, according to one aspect of a specific implementation of the present application, a successive approximation analog-to-digital converter error correction method is provided, comprising the following steps:
[0017] a. Check whether the comparator completes data comparison within the specified time. If yes, go to step b; if no, go to step c;
[0018] b. The comparator outputs data, starts the next data comparison process, and returns to step a;
[0019] c. Interrupt the conversion cycle, wait for the signal to start the next conversion, start the next data comparison process, and return to step a.
[0020] In some embodiments, in step c, the clock signal generator is turned off, a forced interrupt signal is output, and the SAR Logic module sends a bit error signal.
[0021] In some embodiments, the bit error signal is consistent with information output when the comparator input signal is the same.
[0022] In some embodiments, the steps are further included:
[0023] d. Read the final output data of the positive and negative terminals of the comparator stored in the latch and store it;
[0024] e. Before outputting the data, perform a comparison to determine whether the positive and negative data of a certain bit are both "1" or "0". If so, execute step f; if not, execute step g;
[0025] f. Correct the output starting from the current bit to a bit error, output a forced interrupt signal, and the SAR Logic module sends a bit error signal and interrupts the current conversion, waiting for the next conversion start signal, starting the data comparison process for the next conversion, and returning to step d to read the next bit of data;
[0026] g. Output the data and return to step d to read the next bit of data.
[0027] In order to achieve the above-mentioned purpose, according to another aspect of the specific implementation of the present application, a successive approximation analog-to-digital converter is provided, including a comparator, a clock signal generator, and a SAR Logic module, characterized in that it also includes a time judgment module, the input end of the time judgment module is connected to the output end of the comparator, the output end of the time judgment module is respectively connected to the clock signal generator and the SAR Logic module, and the timing end of the time judgment module is connected to the trigger signal of the clock signal generator.
[0028] In some embodiments, the time judgment module is used to detect whether the comparator completes data comparison within a specified time; if so, the comparator outputs data and starts the next data comparison process; if not, the time judgment module outputs a forced interrupt signal, causing the SAR Logic module to send an error signal to interrupt the conversion cycle, and the comparator waits for the signal to start the next conversion and starts the next data comparison process.
[0029] In some embodiments, the bit error signal is consistent with information output when the comparator input signal is the same.
[0030] In some embodiments, a memory and a data comparator are further included, wherein the memory is connected to the SAR Logic module, and the data comparator is connected to the memory.
[0031] In some embodiments, the storage is used to store the data outputted from the positive and negative terminals of the comparator outputted by the SAR Logic module; the data comparator is used to compare whether a certain bit of data outputted from the positive and negative terminals of the comparator stored in the storage is simultaneously "1" or "0";
[0032] Once it is found that the positive and negative data of a certain bit are both "1" or "0", it is determined that there is a bit error; the output starting from the current bit is corrected to a bit error signal, the data comparator outputs a forced interrupt signal, causing the SAR Logic module to send a bit error signal, and the data comparator reads the next bit of data for comparison.
[0033] In some embodiments, the storage is a DFF storage.
[0034] According to the technical solution of the present application and the further improved technical solution in certain exemplary embodiments thereof, the present application has the following beneficial effects:
[0035] It can effectively prevent the slowdown of the comparator caused by the dead zone voltage. The time judgment module is parallel to the main circuit and does not occupy the time of the main cycle, so it will not reduce the overall conversion rate.
[0036] Furthermore, the present application can effectively prevent the bit errors caused by glitch interference, and in the process of preventing the bit errors caused by glitch interference, the result in the latch is used to judge and process the bit errors, which is a digital processing method. The whole process is not within the conversion cycle and does not occupy the time of the conversion cycle. Therefore, it will not reduce the speed of the converter, which is very suitable for the needs of high-speed asynchronous SARADC.
[0037] The present application is further described below in conjunction with the accompanying drawings and specific embodiments. Additional aspects and advantages of the present application will be partially given in the following description, partially become apparent from the following description, or be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings constituting a part of this application are used to provide a further understanding of this application. The specific implementation modes, illustrative embodiments and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0039] Figure 1 It is a schematic diagram of the structure of asynchronous SAR ADC in the prior art;
[0040] Figure 2 It is a schematic diagram of the signal levels that cannot be compared under the dead zone voltage;
[0041] Figure 3 This is a schematic diagram of the signal levels when the output is an error of "1" due to glitch interference;
[0042] Figure 4 This is a schematic diagram of the signal levels when the output is "0" due to glitch interference;
[0043] Figure 5 This is a schematic diagram of the structure of the time detection circuit of Example 1;
[0044] Figure 6 This is a flow chart of the analog-to-digital converter error correction method of embodiment 1;
[0045] Figure 7 A schematic diagram of the timing relationship of the time detection circuit signals of Example 1;
[0046] Among them, Figure a is a schematic diagram of the timing relationship of normal state signals, and Figure b is a schematic diagram of the timing relationship of abnormal state signals;
[0047] Figure 8Flow chart of the analog-to-digital converter error correction method of embodiment 2;
[0048] Fig. 9 This is a schematic diagram of a logic circuit of the error correction method of Example 2;
[0049] Fig.10 This is a schematic diagram of the structure of an asynchronous SAR ADC according to Example 3. DETAILED DESCRIPTION
[0050] It should be noted that, in the absence of conflict, the specific implementation modes, exemplary embodiments and features thereof in this application can be combined with each other. The present application will now be described in detail with reference to the accompanying drawings and in combination with the following content.
[0051] In order to enable those skilled in the art to better understand the solution of this application, the following will be combined with the drawings in the specific implementation methods and exemplary embodiments of this application to clearly and completely describe the technical solutions in the specific implementation methods and exemplary embodiments of this application. Obviously, the described exemplary embodiments are only part of the embodiments of this application, not all of them. Based on the specific implementation methods and exemplary embodiments in this application, all other implementation methods and embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of this application.
[0052] Example 1
[0053] like Figure 1 Whether the working logic of the asynchronous SAR ADC shown in the figure can enter the next cycle (generate the next clock pulse) from the current working cycle depends on when the comparator Comp completes the comparison output "01" or "10". However, the speed of the comparator Comp is limited, and there is always a dead zone voltage. When the input difference is very small or even completely consistent, the comparator Comp will not be able to complete the comparison output "01" or "10" within the specified time. At this time, the SAR Logic module will issue a bit error signal "1000000000" (taking 10-bit ADC as an example), which makes the subsequent conversion cycle impossible, and the asynchronous SAR ADC generates a bit error.
[0054] In this case, this example uses the time judgment module Time_MAX to judge the output of the comparator, such as Figure 5As shown. Not only does it determine whether the output of the comparator Comp is "10" or "01", but it also detects the comparison time of the comparator, and uses the signal CLK_ST as the start signal to time the comparison time. If the comparison time of the comparator exceeds a certain threshold, the conversion cycle is interrupted, the clock signal generator CLK_GEN is turned off, and the forced interrupt signal Force_out is output, so that the SAR Logic module outputs the error signal "1000000000" and waits for the next start conversion signal to arrive. The error correction method flow is as follows Figure 6 This time detection method can effectively prevent the slowdown of the comparator caused by the dead zone voltage. The time judgment module is parallel to the main circuit and does not occupy the main cycle time, so it will not reduce the overall conversion rate.
[0055] In this example, the time judgment module is as follows Figure 5 As shown, the logic circuit consists of logic gates, delay unit DEL, selector DFF, and SAR_LOGIC module. DACP, DATAN and OUTP, OUTN are the input and output of the comparator respectively, COV_EN is the conversion end signal, COV_END is the forced interrupt signal, VLD is the conversion process (indicates the time taken for each comparison in the conversion cycle), DATA_OK is the data completion signal, COV_OK is the conversion completion signal, CLK_ST is the conversion start signal, Cout_over is the detection result, and Force_out is the forced interrupt signal. Signal flow: The comparator judges the results OUTP and OUTN, and obtains the conversion process VLD through the NOR gate. If it is completed normally, it is terminated by COV_EN. When the comparator is too slow and the result has not been obtained, VLD will not give a result for a long time, and then it is ANDed with the delay of CLK_ST to obtain the detection result Count_over (normally 0, and an error will generate a pulse signal). The selector passes the result to the SAR_LOGIC module, generates DATA_OK signal and COV_OK signal, ends the conversion, and feeds back to the time judgment module to reset the detection result to prevent affecting the next conversion.
[0056] Figure 7 The figure shows the timing relationship of each signal in the time judgment module. Figure 7 As shown in a, under normal conversion conditions, the overlap time of VLD and CLK_ST is too short to generate a pulse signal, so Cout_over and Force_out are always 0 and the conversion will not be interrupted.
[0057] In error cases, such as Figure 7 As shown in b, if OUTP and OUTN do not produce results for too long, VLD will also not produce a falling edge for too long, and its AND with CLK_ST will generate a pulse signal Cout_over, thus interrupting the conversion.
[0058] Example 2
[0059] Another source of asynchronous SAR ADC bit errors is the glitch interference when the dynamic latch flips. The traditional solution is to use XOR to determine whether the comparator has completed the comparison. This method has two obvious problems: 1. As a digital circuit, the XOR logic circuit still has the problem of intermediate state in its judgment, that is, when both inputs are near the threshold, the judgment of the XOR gate cannot be guaranteed to be correct. In a broader sense, any judgment gate will have its own threshold voltage. When the input is near this voltage, misjudgment may occur. 2. Compared with a simple NOR gate, the XOR gate greatly increases the circuit delay, which is very unfavorable for high-speed asynchronous SAR ADC.
[0060] The error correction method of the analog-to-digital converter in this example adopts a posteriori method, directly storing the final output OUTP and OUTN of the positive and negative ends of each comparator (using DFF as storage). Before the output, a comparison is made. Once it is found that the positive and negative ends of a certain bit are both "1" or "0", it is determined that there is an error. Immediately correct the output starting from the current bit to 1000000000 (for a 10-bit ADC). The correction method process of this example is as follows Figure 8 As shown. Since what is read is the final output result in the latch, rather than the direct output of the comparator, there will be no intermediate state problem close to the threshold. Thus, the intermediate state problem of error judgment is avoided. Another advantage of this example is that the result in the latch is used to handle the error. The whole process is not within the ADC conversion cycle and does not take up the conversion cycle time, so it does not reduce the speed of the converter, which is very suitable for the requirements of high-speed asynchronous SAR ADC.
[0061] like Fig. 9 The logic circuit of the error correction method of this example is shown, and the signal processing flow of the logic circuit is as follows:
[0062] a. Read the comparator decision result Latch_data in the latch <n>, and the result data <n>Generate a reference data of the comparison process through the OR gate, so as to obtain the start and completion time of each comparison;
[0063] b. Enable en to output the nth judgment result to data_out <n>;
[0064] c. According to the comparator completion time obtained in a, shorten the enable effective range of en to obtain en_next;
[0065] d. Pass en_next to the n-1th logic circuit for enabling (make sure to do so after the last comparison result is read to prevent data conflict).
[0066] Example 3
[0067] like Fig.10 The error correction circuit shown has the following working process:
[0068] a. The comparator Comp compares the inputs DACN and DACP to obtain the results OUTP and OUTN, which are given to the time decision module Time_MAX and stored in the latch Dynamic Latch;
[0069] b. The time judgment module Time_MAX determines whether the comparison is not completed for a long time. If yes, proceed to step c, otherwise proceed to step d;
[0070] c. Determine that the comparison time is too long, generate a forced interrupt signal Force_out to the SAR LOGIC module and the CLK_GEN module, and the SAR LOGIC module stops the subsequent process of this conversion. Go to step e;
[0071] d. SAR LOGIC determines that this comparison is completed, outputs this comparison data, and gives the CLK_GEN module a comparison completion signal at the same time, until the conversion is completed and all the final data is output. Go to step e;
[0072] e. Control the start and interruption of the comparator according to the results of the SAR LOGIC module and the time judgment module. After the conversion is completed / interrupted, proceed to step f;
[0073] f. SAR LOGIC final data Datap and Datan are given to DFF;
[0074] g. Judgment data Datap <n>and Datan <n>Are they the same? If yes, it means a bit error occurs, and the data_cal module is selected to generate 1000000000 (taking 10-bit ADC as an example). Otherwise, it is normal and the data Out_data is directly output.
[0075] like Fig.10 As shown, the SAR ADC in this example includes a comparator, a clock signal generator, a SAR Logic module, a time judgment module, a memory and a data comparator ( Fig.10 dotted box).
[0076] The input end of the time determination module is connected to the output end of the comparator, the output end of the time determination module is respectively connected to the clock signal generator and the SAR Logic module, and the timing end of the time determination module is connected to the trigger signal CLK_ST of the clock signal generator.
[0077] The storage is connected to the SAR Logic module, and the data comparator is connected to the storage.
[0078] The storage is used to store the data outputted from the positive and negative ends of the comparator outputted by the SAR Logic module; the data comparator is used to compare whether a certain bit of data outputted from the positive and negative ends of the comparator is the same as "1" or "0";
[0079] Once it is found that the positive and negative data of a certain bit are both "1" or "0", it is determined that there is a bit error; the output starting from the current bit is corrected to a bit error signal, the data comparator outputs a forced interrupt signal (Force_out), causing the SARLogic module to send a bit error signal (1000000000), and the data comparator reads the next bit of data for comparison.
[0080] The memory in this example uses DFF memory, which is actually a D-type flip-flop that can store the data output from the positive and negative ends of the comparator output by the SAR Logic module.< / n> < / n> < / n> < / n> < / n>
Claims
1. A method for correcting bit errors in a successive approximation analog-to-digital converter, characterized in that: The following steps are involved: a. Check whether the comparator completes data comparison within the specified time. If yes, go to step b; if no, go to step c; b. The comparator outputs data, starts the next data comparison process, and returns to step a; c. Interrupt the conversion cycle, wait for the signal to start the next conversion, start the next data comparison process, and return to step a.
2. The method for correcting bit errors of a successive approximation analog-to-digital converter according to claim 1, characterized in that: In step c, the clock signal generator is turned off, a forced interrupt signal is output, and the SAR Logic module sends a bit error signal.
3. The method for correcting bit errors of a successive approximation analog-to-digital converter according to claim 2, characterized in that: When the bit error signal is the same as the comparator input signal, the output information is consistent.
4. The method for correcting bit errors of a successive approximation analog-to-digital converter according to claim 1, characterized in that: Also includes the steps: d. Read the final output data of the positive and negative terminals of the comparator stored in the latch and store it; e. Before outputting the data, perform a comparison to determine whether the positive and negative data of a certain bit are both "1" or "0". If so, execute step f; if not, execute step g; f. Correct the output starting from the current bit to a bit error, output a forced interrupt signal, and the SAR Logic module sends a bit error signal and interrupts the current conversion, waiting for the next conversion start signal, starting the data comparison process for the next conversion, and returning to step d to read the next bit of data; g. Output the data and return to step d to read the next bit of data.
5. A successive approximation analog-to-digital converter, comprising a comparator, a clock signal generator, and a SAR Logic module, characterized in that: It also includes a time judgment module, the input end of the time judgment module is connected to the output end of the comparator, the output end of the time judgment module is respectively connected to the clock signal generator and the SAR Logic module, and the timing end of the time judgment module is connected to the trigger signal of the clock signal generator.
6. The successive approximation analog-to-digital converter according to claim 5, characterized in that: The time judgment module is used to detect whether the comparator completes data comparison within the specified time; if so, the comparator outputs data and starts the next data comparison process; if not, the time judgment module outputs a forced interrupt signal, causing the SAR Logic module to send an error signal to interrupt the conversion cycle, and the comparator waits for the signal to start the next conversion and starts the next data comparison process.
7. The successive approximation analog-to-digital converter according to claim 5, characterized in that: When the bit error signal is the same as the comparator input signal, the output information is consistent.
8. The successive approximation analog-to-digital converter according to claim 5, characterized in that: It also includes a memory and a data comparator, wherein the memory is connected to the SAR Logic module, and the data comparator is connected to the memory.
9. The successive approximation analog-to-digital converter according to claim 8, characterized in that: The storage is used to store the data outputted from the positive and negative ends of the comparator outputted by the SARLogic module; the data comparator is used to compare whether a certain bit of data outputted from the positive and negative ends of the comparator is the same as "1" or "0"; Once it is found that the positive and negative data of a certain bit are both "1" or "0", it is determined that there is a bit error; the output starting from the current bit is corrected to a bit error signal, the data comparator outputs a forced interrupt signal, causing the SAR Logic module to send a bit error signal, and the data comparator reads the next bit of data for comparison.
10. The successive approximation analog-to-digital converter according to claim 5, characterized in that: The storage is a DFF storage.
Citation Information
Cited By
Metastable state error field correction circuit of successive approximation analog-to-digital converter
CN120281319A
Metastability error field correction circuit for successive approximation analog-to-digital converter
CN120281319B
Code error correction method for successive-approximation register analog-to-digital converter, and successive-approximation register analog-to-digital converter
WO2026007389A1
