A Successive Approximation Analog-to-Digital Converter
By adding a metastable clearing unit and multiple processors with different thresholds to the SAR logic unit to judge and process the abnormal state of the comparator, the bit error rate and conversion speed problems of the comparator when the input voltage is small in SAR ADC are solved. , achieving higher performance.
Patent Information
- Application Number
- CN201810601646.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-06-12
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2038-06-12
AI Technical Summary
In existing SAR ADCs, the comparator changes the time when the input voltage is small or enters metastable state, resulting in an increase in bit error rate and a decrease in conversion speed, affecting performance.
Add a metastable clearing unit to the SAR logic unit, and add multiple processors with different thresholds after the comparator. The results output by the comparator are compared with the respective thresholds to determine whether the comparator is abnormal. If it is abnormal, it is based on the preset The form filling rules are processed to reduce the bit error rate.
Effectively reduce the bit error rate of SAR ADC, improve conversion speed, and thus improve performance.
Smart Images

Figure CN108494405B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of analog-to-digital conversion, and in particular to a successive approximation analog-to-digital converter. Background Art
[0002] Among various types of analog-to-digital converters, successive approximation register analog-to-digital converters (SAR ADCs) are widely used due to their low power consumption, medium accuracy, and high resolution.
[0003] like Figure 1 As shown, the existing SAR ADC includes a digital-to-analog converter capacitor array (DAC Array) 1, a comparator 2 and a SAR logic unit 3. In actual application, the DAC Array 1 in the SAR ADC samples the input signal and outputs a first voltage signal V+ and a second voltage signal V- after the sampling is completed. The first voltage signal V+ and the second voltage signal V- are respectively input to the positive terminal and the negative terminal of the comparator 2. The comparator 2 compares the input first voltage signal V+ and the second voltage signal V- to generate a comparison result Vcomp. When the first voltage signal V+ is greater than the second voltage signal V-, the comparator 2 outputs a high-level signal, such as "1" to the SAR logic unit 3, and the highest position in the SAR logic unit 3 is "1"; when the first voltage signal V+ is less than the second voltage signal V-, the comparator 2 outputs a low-level signal, such as "0" to the SAR logic unit 3, and the highest position in the SAR logic unit 3 is "0".
[0004] The clock signal clk controls the output update of the SAR logic unit 3 and the comparator 2, such as Figure 2 As shown in the figure, when the clock signal clk is in the high level stage, the comparator 2 compares the input first voltage signal V+ and the second voltage signal V-, and outputs Vcomp. After the SAR logic unit 3 completes a setting according to Vcomp, it moves to the next high position and prepares for the next comparison, and the cycle continues until the least significant bit LSB is compared. At this point, the entire successive comparison process ends, and the SAR ADC completes an analog-to-digital conversion and outputs the digital code corresponding to the analog quantity.
[0005] However, the applicant of the present application has found that in a SAR ADC, when the input voltage of comparator 2 is relatively large, that is, the first voltage signal V+ and the second voltage signal V- are far apart and far away from the threshold voltage of the next-stage circuit (i.e., the SAR logic threshold voltage), the next-stage circuit can correctly judge it, and when the input voltage of comparator 2 is relatively small, that is, the first voltage signal V+ and the second voltage signal V- are close to each other and close to the threshold voltage of the next-stage circuit, the comparison time of comparator 2 will become longer, and even metastable state will occur. Metastable state refers to the inability of the output of comparator 2 to reach a confirmed logical output state within a certain specified time period. When a comparator enters a metastable state, it is impossible to predict the comparison result or when a stable logical output result can be obtained.
[0006] In order to describe more clearly, Figure 2 , Figure 3 As shown, at time 1, assuming that the threshold of the next-stage circuit is the amplifier threshold, when the Vcomp output by comparator 2 is greater than the amplifier threshold, comparator 2 outputs a "1" level, which indicates that the first voltage signal V+ is greater than the second voltage signal V-, and SAR logic unit 3 sets the highest bit of SAR to "1". At time 2, the Vcomp output by comparator 2 is within the amplifier threshold range. At this time, it is impossible to determine the level value of the comparator 2 output, and it is also impossible to determine the magnitude of the first voltage signal V+ and the second voltage signal V-, and comparator 2 enters a metastable state. At time 3, the Vcomp output by comparator 2 is less than the amplifier threshold, and comparator 2 outputs a "0" level, which indicates that the first voltage signal V+ is less than the second voltage signal V-, and SAR logic unit 3 sets the highest bit of SAR to "0".
[0007] It can be seen that when the comparison time of the comparator becomes longer or the comparator enters a metastable state, the comparator may make an incorrect judgment or appear in an uncertain state, resulting in an increase in the bit error rate of the SAR ADC and a decrease in the conversion speed of the SAR ADC, thereby reducing the performance of the SAR ADC. Summary of the invention
[0008] In view of this, the present invention provides a successive approximation analog-to-digital converter, which can reduce the bit error rate of SAR ADC, thereby increasing the conversion speed of SAR ADC, thereby improving the performance of SAR ADC. The technical solution is as follows:
[0009] The present application provides a successive approximation analog-to-digital converter, comprising a digital-to-analog converter capacitor array DAC Array, a comparator and a SAR logic unit, wherein the SAR logic unit comprises a metastable clearing unit, and the successive approximation analog-to-digital converter further comprises: a group of processors with different thresholds connected to the output end of the comparator, wherein the output end of each processor in the group of processors with different thresholds is connected to the metastable clearing unit in the SAR logic unit;
[0010] Wherein, each processor compares the comparison result output by the comparator with its own threshold value to obtain a processing result, and sends the obtained processing result to the metastable state clearing unit;
[0011] The metastable clearing unit determines whether an abnormality occurs in the comparator according to the processing results sent by each processor;
[0012] When it is determined that the comparator is abnormal, the SAR logic unit performs table filling processing according to a preset table filling rule.
[0013] Optionally, the group of processors with different thresholds includes a first processor, a second processor and a third processor, wherein the threshold of the second processor is greater than the threshold of the first processor, and the threshold of the first processor is greater than the threshold of the third processor.
[0014] Optionally, the first processor, the second processor and the third processor are three CMOS inverters with different thresholds respectively.
[0015] Optionally, the metastable clearing unit determines whether an abnormality occurs in the comparator according to the processing results respectively sent by each processor, including:
[0016] When the processing result of the second processor is consistent with the processing result of the third processor, it is determined that no abnormality occurs in the comparator;
[0017] When the processing result of the second processor is inconsistent with the processing result of the third processor, it is determined that an abnormality occurs in the comparator.
[0018] Optionally, the processing result of the second processor is inconsistent with the processing result of the third processor, including:
[0019] The processing result of the second processor is 1, and the processing result of the third processor is 0; or,
[0020] The processing result of the third processor is 1, and the processing result of the second processor is 0.
[0021] Optionally, when it is determined that no abnormality occurs in the comparator, the SAR logic unit is further used to:
[0022] According to the processing result of the first processor, the value of the current highest bit of SAR is set to a value corresponding to the processing result of the first processor.
[0023] Optionally, the metastable clearing unit includes at least a group of triggers or a group of regenerative amplifiers.
[0024] Optionally, when it is determined that the comparator is abnormal, the SAR logic unit performs table filling processing according to a preset table filling rule, including:
[0025] Set the value of the current highest bit of SAR to 1, and set the values of the next bit to the lowest bit of the current highest bit of SAR to 0 respectively; or,
[0026] Set the value of the current highest bit of SAR to 0, and set the values of the next bit to the lowest bit of the current highest bit of SAR to 1 respectively.
[0027] Optionally, the SAR logic unit is further used to: discard a processing result of the first processor.
[0028] Optionally, the abnormality of the comparator includes: the comparator entering a metastable state, or the comparison time of the comparator is greater than a preset threshold.
[0029] The successive approximation analog-to-digital converter provided in the present application adds a metastable clearing unit in the SAR logic unit, and adds a group of processors with different thresholds between the comparator and the SAR logic unit, wherein the output end of each processor in the group of processors with different thresholds is connected to the metastable clearing unit in the SAR logic unit. Each processor in the present application compares the comparison result output by the comparator with its own threshold value to obtain a processing result, and sends the obtained processing result to the metastable clearing unit. The metastable clearing unit can determine whether the comparator is abnormal based on the processing results sent by each processor. When it is determined that the comparator is abnormal, the SAR logic unit performs the form filling process according to the preset form filling rules.
[0030] The present application adds a metastable clearing unit in the SAR logic unit, and adds a group of processors with different thresholds in the subsequent circuit of the comparator. The metastable clearing unit can effectively judge and identify whether the comparator takes a long comparison time or enters a metastable state based on the processing results obtained by each processor. Once it is determined that the comparison time taken by the comparator becomes longer or enters a metastable state, it means that the two inputs currently compared by the comparator (i.e., the first voltage signal and the second voltage signal) are very close. At this time, the SAR logic unit directly performs table filling processing according to the preset table filling rules, thereby reducing the bit error rate of the SAR ADC, and at the same time increasing the conversion speed of the SAR ADC, thereby improving the performance of the SAR ADC. The present application is particularly suitable for improving synchronous successive approximation analog-to-digital converters. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0032] Figure 1 It is a structural diagram of an existing SAR ADC;
[0033] Figure 2 Schematic diagram of the working principle of the comparator;
[0034] Figure 3 is a schematic diagram of the comparison result between the comparator output Vcomp and the threshold;
[0035] Figure 4 A schematic diagram of the structure of a successive approximation analog-to-digital converter provided in an embodiment of the present application;
[0036] Figure 5 A schematic diagram of the structure of another successive approximation analog-to-digital converter provided in an embodiment of the present application;
[0037] Figure 6 This is a schematic diagram of the structure of a CMOS inverter in an embodiment of the present application;
[0038] Figure 7 It is a schematic diagram of the processing result of the comparator output result by CMOS inverters with different thresholds in the embodiment of the present application. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] like Figure 4 As shown, it shows a schematic diagram of the structure of a successive approximation analog-to-digital converter provided in an embodiment of the present application. The successive approximation analog-to-digital converter provided in the present application may include: a DAC Array 100, a comparator 200, a SAR logic unit 300, a group of processors 400 with different thresholds, and a metastable clearing unit 310 provided in the SAR logic unit 300. Specifically:
[0041] The DAC Array 100 samples the input signal to obtain a first voltage signal V+ and a second voltage signal V−, and inputs the first voltage signal V+ and the second voltage signal V− to the positive terminal and the negative terminal of the comparator 200 respectively.
[0042] The comparator 200 compares the input first voltage signal V+ and the input second voltage signal V− to obtain a comparison result Vcomp.
[0043] A group of processors 400 with different thresholds includes multiple processors, and the output ends of the multiple processors are connected to the metastable clearing unit 310 in the SAR logic unit 300. Each processor compares the comparison result Vcomp output by the comparator 200 with its own threshold to obtain a processing result, and then sends the obtained processing result to the metastable clearing unit 310.
[0044] In the actual application process of the present application, the metastable clearing unit 310 receives the processing results sent by each processor, and determines whether an abnormality occurs in the comparator 200 according to each processing result. When the metastable clearing unit 310 determines that the comparator 200 is abnormal, the SAR logic unit 300 directly performs the table filling process according to the preset table filling rules.
[0045] It can be understood that in the embodiment of the present application, the processing results obtained by a processor connected to the SAR logic unit 300 (for the sake of ease of description, it will be referred to as the first processor) can be used as the basis for the SAR logic unit 300 to execute the bit assignment, and the processing results obtained by other processors can be used as the basis for determining whether an abnormality occurs in the current comparator 200.
[0046] Specifically, when the processing results obtained by other processors are consistent, it indicates that the current comparator 200 has no abnormality, so it can be determined that the processing result obtained by the first processor is relatively accurate, and the SAR logic unit 300 can directly obtain the value of the current highest bit of the SAR, such as "0" or "1", based on the processing result obtained by the first processor (preferably based on the processing result obtained by the first processor and the processing results of other processors at the same time). When the processing results obtained by other processors are inconsistent, it indicates that the current comparator 200 has an abnormality, and the processing result obtained by the first processor has a high bit error rate. The SAR logic unit 300 discards the processing result obtained by the first processor and directly performs table filling processing on all the remaining bits of the SAR according to the preset table filling rules.
[0047] In order to more clearly explain the technical solution provided by the present application, the present application takes a group of processors with different thresholds including three processors, namely a first processor, a second processor and a third processor as an example, wherein the threshold Vth+ of the second processor is greater than the threshold Vth0 of the first processor, and the threshold Vth0 of the first processor is greater than the threshold Vth- of the third processor.
[0048] Of course, the present application can also set two processors, four processors, five processors, etc., and set different thresholds for each processor. The present application does not limit the number of processors set and the specific size of each threshold. The present application preferably sets three processors.
[0049] More specifically, if Figure 5 As shown, the first processor, the second processor and the third processor in the present application can be specifically three CMOS inverters with different thresholds, such as a CMOS inverter 410 with a threshold of Vth0, a CMOS inverter 420 with a threshold of Vth+ and a CMOS inverter 430 with a threshold of Vth-, wherein Vth+>Vth0>Vth-.
[0050] The structure of the CMOS inverter in the embodiment of the present application is as follows Figure 6As shown, the threshold value of the CMOS inverter can be changed by changing the size ratio of P and N, that is, the threshold value of the CMOS inverter in the embodiment of the present application is adjustable. Under normal circumstances, when the input Vin is 0, the output Vout is 1, and when the input Vin is 1, the output Vout is 0. However, when the input Vin is a specific value or a value within a specific range (the specific value or the value within a specific range is the threshold value of the CMOS inverter), the COMS inverter cannot determine the value of the output Vout. For example, when the threshold is 0.6V, when the input Vin is less than 0.6V, the output Vout is 1; when the input Vin is greater than 0.6V, the output Vout is 0; and when the input Vin is 0.6V, the COMS inverter cannot determine the value of its output.
[0051] It should be noted that the use of three CMOS inverters with different thresholds is only one implementation method of the embodiment of the present application, and all components with threshold processing functions fall within the scope of application of the present application.
[0052] In the embodiment of the present application, the DAC Array 100 inputs the sampled first voltage signal V+ and the second voltage signal V- into the comparator 200, and the comparator 200 compares the first voltage signal V+ and the second voltage signal V- to obtain a comparison result Vcomp. The comparison result Vcomp is respectively input to the CMOS inverter 410 with a threshold value of Vth0, the CMOS inverter 420 with a threshold value of Vth+, and the CMOS inverter 430 with a threshold value of Vth- for secondary processing. The CMOS inverter 410 with a threshold value of Vth0 inputs its processing result Vout0 into the SAR logic unit 300 for loop processing, and also inputs its processing result Vout0 into the metastable clearing unit 310 in the SAR logic unit 300. At the same time, the CMOS inverter 420 with a threshold value of Vth+ and the CMOS inverter 430 with a threshold value of Vth- also input their processing results Vout+ and Vout- into the metastable clearing unit 310 in the SAR logic unit 300, respectively.
[0053] The metastable clearing unit 310 in the present application includes at least one group of triggers or one group of regenerative amplifiers. The present application uses triggers or regenerative amplifiers to store data, so that the SAR logic unit 300 can obtain the stored data from the triggers or regenerative amplifiers.
[0054] Preferably, the present application may set three groups of triggers corresponding to three CMOS inverters with different thresholds, namely, CMOS inverter 410 , CMOS inverter 420 , and CMOS inverter 430 , wherein each group of triggers includes at least one trigger.
[0055] Optionally, the trigger in the embodiment of the present application may be specifically a DFF (D-type trigger). The number of DFFs in each group of triggers in the present application may be 1, 2, 3 or even more, and the present application does not limit the number of DFFs in each group of triggers, and the number of DFFs in each group of triggers may be the same or different, and the present application does not limit it.
[0056] In the actual application process of the embodiment of the present application, combined with Figure 7 As shown, the clock signal clk controls the output update of the SAR logic unit 300 and the comparator 200. When the clock signal clk is at a high level, the comparison result Vcomp of the comparator 200 passes through the CMOS inverter 410 with a threshold value of Vth0, the CMOS inverter 420 with a threshold value of Vth+, and the CMOS inverter 430 with a threshold value of Vth-, and the processing results of the CMOS inverter 410, the CMOS inverter 420, and the CMOS inverter 430 are as follows:
[0057] (1) When the position relationship between the comparison result Vcomp and the threshold is as follows Figure 7 At time 1, since the comparison result Vcomp is greater than the thresholds Vth+, Vth0, and Vth-, the output Vout+ of the CMOS inverter 420, the output Vout0 of the CMOS inverter 410, and the output Vout- of the CMOS inverter 430 are 0, 0, and 0, respectively;
[0058] (2) When the position relationship between the comparison result Vcomp and the threshold is as follows Figure 7 At time 2, since the comparison result Vcomp is equal to the threshold value Vth+ and greater than the threshold values Vth0 and Vth-, the value of the output Vout+ of the CMOS inverter 420 cannot be determined, and the values of the output Vout0 of the CMOS inverter 410 and the output Vout- of the CMOS inverter 430 are 0 and 0 respectively;
[0059] (3) When the position relationship between the comparison result Vcomp and the threshold is as follows Figure 7 At time 3, since the comparison result Vcomp is less than the threshold Vth+ and greater than the thresholds Vth0 and Vth-, the output Vout+ of the CMOS inverter 420 has a value of 1, and the output Vout0 of the CMOS inverter 410 and the output Vout- of the CMOS inverter 430 have values of 0 and 0, respectively.
[0060] (4) When the position relationship between the comparison result Vcomp and the threshold is as follows Figure 7At time 4, since the comparison result Vcomp is less than the threshold Vth+, equal to the threshold Vth0, and greater than the threshold Vth-, the value of the output Vout+ of the CMOS inverter 420 is 1, the value of the output Vout0 of the CMOS inverter 410 cannot be determined, and the value of the output Vout- of the CMOS inverter 430 is 0;
[0061] (5) When the position relationship between the comparison result Vcomp and the threshold is as follows Figure 7 At time 5, since the comparison result Vcomp is smaller than the thresholds Vth+ and Vth0 and larger than the threshold Vth-, the output Vout+ of the CMOS inverter 420 and the output Vout0 of the CMOS inverter 410 are both 1, and the output Vout- of the CMOS inverter 430 is 0;
[0062] (6) When the position relationship between the comparison result Vcomp and the threshold is as follows Figure 7 At time 6, since the comparison result Vcomp is less than the thresholds Vth+ and Vth0 and equal to the threshold Vth-, the output Vout+ of the CMOS inverter 420 and the output Vout0 of the CMOS inverter 410 are both 1, and the output Vout- of the CMOS inverter 430 cannot be determined.
[0063] (7) When the position relationship between the comparison result Vcomp and the threshold is as follows Figure 7 At time 7, since the comparison result Vcomp is smaller than the thresholds Vth+, Vth0, and Vth-, the output Vout+ of the CMOS inverter 420, the output Vout0 of the CMOS inverter 410, and the output Vout- of the CMOS inverter 430 are all 1.
[0064] For the above 7 situations, we can summarize them as shown in Table 1.
[0065]
[0066]
[0067] Table 1
[0068] It can be seen that for situation 1, the output Vout+ of the CMOS inverter 420, the output Vout0 of the CMOS inverter 410, and the output Vout- of the CMOS inverter 430 are all 0. For situation 7, the output Vout+ of the CMOS inverter 420, the output Vout0 of the CMOS inverter 410, and the output Vout- of the CMOS inverter 430 are all 1. Therefore, the metastable clearing unit 310 determines that the processing results of the three CMOS inverters with different thresholds are consistent, and determines that the current comparator 200 is not abnormal. The SAR logic unit 300 directly sets the value of the current highest bit of the SAR to the value corresponding to Vout0 based on the output Vout0 of the CMOS inverter 410.
[0069] More specifically, in case 1, when the output of Vout+ is 0, the output of Vout0 is 0, and the output of Vout- is 0, because the outputs of Vout+ and Vout- are consistent, both are 0, the metastable clearing unit 310 determines that the current output of Vout0 is relatively accurate, so that the SAR logic unit 300 directly obtains the value of the current highest bit of SAR as 1 based on the output 0 of Vout0, outputs a "1" level, and sets the value of the current highest bit of SAR to 1; in case 7, when the output of Vout+ is 1, the output of Vout0 is 1, and the output of Vout- is 1, because the outputs of Vout+ and Vout- are consistent, both are 1, the metastable clearing unit 310 determines that the current output of Vout0 is relatively accurate, so that the SAR logic unit 300 directly obtains the value of the current highest bit of SAR as 0 based on the output 1 of Vout0, outputs a "0" level, and sets the value of the current highest bit of SAR to 0.
[0070] In the embodiment of the present application, when Vout+, Vout0, and Vout- are determined to be (0, 0, 0) or (1, 1, 1), the current highest bit of the output SAR is determined to be 1 or 0 according to the comparison result Vcomp of the comparator 200, and the current highest bit (MSB) is set to the corresponding level value. The clock signal clk controls the output update of the SAR logic unit 300 and the comparator 200. When the clock signal clk is in the high level stage, the SAR logic unit 300 moves to the second highest bit and waits for the next comparison until the least significant bit LSB is compared. At this point, the entire successive comparison process is completed, and the ADC completes the conversion of an analog quantity to a digital quantity and outputs the digital code corresponding to the analog quantity.
[0071] It should be noted that, in the implementation process of the above-mentioned embodiments of the present application, the CMOS inverter 420 and the CMOS inverter 430 are only used as a judgment circuit to determine whether the current comparator 200 sends an abnormality (which can also be understood as whether the output Vout0 of the current CMOS inverter 410 is accurate), which will not cause the processing delay of the SAR logic unit 300 and will not affect the loop processing process of the SAR logic unit 300.
[0072] In other cases, because the output Vout+ of the CMOS inverter 420 and the output Vout- of the CMOS inverter 430 are inconsistent, the metastable clearing unit 310 determines that the current comparator 200 is abnormal, and thus the SAR logic unit 300 directly fills the table according to the preset table filling rules and discards the output Vout0 of the CMOS inverter 410.
[0073] Specifically, for Case 2 and Case 6:
[0074] In case 2, the value of the output Vout+ of the CMOS inverter 420 is uncertain, and the register (DFF) in the metastable clearing unit 310 is continuously beat twice to determine whether the value of Vout+ is 0 or 1. When the value of Vout+ after two beats is 0, because it is consistent with the value of Vout-, the processing steps for case 1 are taken, and when the value of Vout+ after two beats is 1, the table filling process is directly performed according to the preset table filling rules. For example, when an undetermined situation occurs during the conversion process of the nth bit, the comparison of subsequent bits starting from the nth bit will no longer be performed, and the current bit (i.e., the nth bit) is directly set to 1, and the values of the next bit to the lowest bit of the current bit are set to 0 respectively; or, the current bit is set to 0, and the values of the next bit to the lowest bit of the current bit are set to 1 respectively, that is, the value of SAR from the nth bit to the lowest bit is considered to be 1000...0 or 0111...1.
[0075] In case 6, the value of the output Vout- of the CMOS inverter 430 is uncertain, and the register (DFF) in the metastable clearing unit 310 is continuously beat twice to determine whether the value of Vout- is 0 or 1. When the value of Vout+ after two beats is 1, because it is consistent with the value of Vout-, the processing steps for case 7 are taken, and when the value of Vout- after two beats is 0, the table filling process is directly performed according to the preset table filling rules. For example, when an undetermined situation occurs during the conversion process of the nth bit, the comparison of subsequent bits starting from the nth bit will no longer be performed, and the current bit (i.e., the nth bit) is directly set to 1, and the values of the next bit to the lowest bit of the current bit are set to 0 respectively; or, the current bit is set to 0, and the values of the next bit to the lowest bit of the current bit are set to 1 respectively, that is, the value of SAR from the nth bit to the lowest bit is considered to be 1000...0 or 0111...1.
[0076] For cases 3, 4, and 5, because the values of Vout+ and Vout- are inconsistent, the metastable clearing unit 310 determines that the comparator is abnormal, that is, it determines that the current output of Vout0 is inaccurate. At this time, the SAR logic unit 300 directly fills the table according to the preset table filling rules and discards Vout0. For example, when an undetermined situation occurs during the conversion of the nth bit, the comparison of subsequent bits starting from the nth bit will no longer be performed, and the current bit (i.e., the nth bit) is directly set to 1, and the values of the next bit to the lowest bit of the current bit are set to 0 respectively; or, the current bit is set to 0, and the values of the next bit to the lowest bit of the current bit are set to 1 respectively, that is, it is considered that the SAR value from the nth bit to the lowest bit is 1000...0 or 0111...1.
[0077] It is understandable that in the case of metastable state in the existing SAR ADC, the comparison time of the comparator is long and an accurate comparison result cannot be given in time, and the SAR logic unit needs to obtain an accurate comparison result before continuing the subsequent process. Therefore, for the entire process of converting a group of analog signals into a group of digital quantities, when a metastable state occurs during the conversion process of a certain digital quantity, the entire loop processing process is put on hold and the loop processing speed is greatly reduced. However, the present application sets a metastable clearing unit 310 and multiple processors, and uses the metastable clearing unit 310 to determine whether the comparator 200 is metastable based on the processing results of each processor. When it is determined that the comparator 200 is metastable, the SAR logic unit 300 no longer waits for the comparison result of the comparator 200, and even if the processing result output by the comparator 200 via the CMOS inverter 410 is received, the SAR logic unit 300 chooses to discard the comparison result and directly fills the table according to the preset table filling rules. From the perspective of the loop processing process, the SAR logic unit 300 in the present application will not be affected by the metastable state of the comparator 200 and its set operation will not be affected. The entire loop processing process will not be put on hold and the loop processing speed will not be affected.
[0078] Therefore, in the successive approximation analog-to-digital converter provided in the embodiment of the present application, a metastable clearing unit 310 is added to the SAR logic unit 300, and three CMOS inverters with different thresholds are added to the subsequent circuit of the comparator 200. The three CMOS inverters with different thresholds are all connected to the metastable clearing unit 310, and their processing results are sent to the metastable clearing unit 310. The metastable clearing unit 310 can effectively judge whether the comparator 200 enters a metastable state or the comparison time is greater than a preset threshold based on the processing results obtained by each processor, so that when it is determined that the comparison time spent by the comparator 200 becomes longer or enters a metastable state, it is determined that the two inputs currently compared by the comparator 200 are very close, and the output Vout0 of the CMOS inverter 410 has a high bit error rate, so that the SAR logic unit 300 directly performs table filling processing on the current highest bit and subsequent bits of the SAR according to the preset table filling rules, thereby effectively reducing the bit error rate of the SAR ADC, and at the same time improving the conversion speed of the SAR ADC, thereby improving the performance of the SAR ADC.
[0079] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0080] The above is a detailed introduction to a successive approximation analog-to-digital converter provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A successive approximation analog-to-digital converter, comprising a digital-to-analog converter capacitor array DAC Array, a comparator and a SAR logic unit, characterized in that: The DAC Array is connected to the input end of the comparator, the SAR logic unit is connected to the DAC Array, the SAR logic unit includes a metastable clearing unit, and the successive approximation analog-to-digital converter further includes: a group of processors with different thresholds connected to the output end of the comparator, and the output end of each processor in the group of processors with different thresholds is connected to the metastable clearing unit in the SAR logic unit; Wherein, each processor compares the comparison result output by the comparator with its own threshold value to obtain a processing result, and sends the obtained processing result to the metastable state clearing unit; The metastable clearing unit determines whether an abnormality occurs in the comparator according to the processing results sent by each processor; When it is determined that the comparator is abnormal, the value of the current highest bit of SAR is set to 1, and the values of the next bit to the lowest bit of the current highest bit of SAR are set to 0 respectively; or, the value of the current highest bit of SAR is set to 0, and the values of the next bit to the lowest bit of the current highest bit of SAR are set to 1 respectively.
2. The successive approximation analog-to-digital converter according to claim 1, characterized in that: The group of processors with different thresholds includes a first processor, a second processor, and a third processor, wherein the threshold of the second processor is greater than the threshold of the first processor, and the threshold of the first processor is greater than the threshold of the third processor.
3. The successive approximation analog-to-digital converter according to claim 2, characterized in that: The first processor, the second processor and the third processor are three CMOS inverters with different thresholds.
4. The successive approximation analog-to-digital converter according to claim 2, characterized in that: The metastable clearing unit determines whether the comparator is abnormal according to the processing results sent by each processor, including: When the processing result of the second processor is consistent with the processing result of the third processor, it is determined that no abnormality occurs in the comparator; When the processing result of the second processor is inconsistent with the processing result of the third processor, it is determined that an abnormality occurs in the comparator.
5. The successive approximation analog-to-digital converter according to claim 4, characterized in that: The processing result of the second processor and the processing result of the third processor are inconsistent including: The processing result of the second processor is 1, and the processing result of the third processor is 0; or, The processing result of the third processor is 1, and the processing result of the second processor is 0.
6. The successive approximation analog-to-digital converter according to claim 4, characterized in that: When it is determined that the comparator is not abnormal, the SAR logic unit is further used to: According to the processing result of the first processor, the value of the current highest bit of SAR is set to a value corresponding to the processing result of the first processor.
7. The successive approximation analog-to-digital converter according to any one of claims 1 to 6, characterized in that: The metastable clearing unit at least includes a group of triggers or a group of regenerative amplifiers.
8. The successive approximation analog-to-digital converter according to claim 1, characterized in that: The SAR logic unit is further configured to discard a processing result of the first processor.
9. The successive approximation analog-to-digital converter according to claim 1, characterized in that: The abnormality of the comparator includes: the comparator enters a metastable state, or the comparison time of the comparator is greater than a preset threshold.
