Analog-to-digital converter, and method and circuit for detecting defects therein

By adopting redundant coding design and self-detection methods in successive approximation analog-to-digital converter, the defects of SAR ADC are quickly judged, and the problems of long detection time and excessive overhead in the prior art are solved, and fast and low-cost detection is achieved. Effect.

CN118944669AActive Publication Date: 2024-11-12MONTAGE TECH KUNSHAN CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202311745847.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2024-11-12
Estimated Expiration
2043-12-19

AI Technical Summary

Technical Problem

The defect detection method of successive approximation analog-to-digital converter (SAR ADC) in the prior art has a long test time and a large system overhead, making it difficult to quickly and at low cost to detect defects in the circuit.

Method used

An analog-to-digital converter with built-in self-detection function is designed, using a successive approximation analog-to-digital conversion circuit based on redundant encoding design. By inputting defect-sensitive input amounts into the SAR ADC, and by setting the K-bit binary of the SAR ADC output The kth bit in the number is a fixed value. The SAR ADC is controlled to perform sequential approximation conversion, generate the output digital code Dout(k), change the value of k within the range of 1 to K, and repeat the execution to determine whether there is a defect in the SAR ADC.

Benefits of technology

It realizes fast and low-cost defect detection of SAR ADCs, shortens testing time, can integrate with SAR ADCs, and saves testing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944669A_ABST
    Figure CN118944669A_ABST
Patent Text Reader

Abstract

The invention provides an analog-to-digital converter, and a method and a circuit for detecting defects therein. The analog-to-digital converter has a built-in self-detection function, and comprises: an SAR ADC designed based on redundant coding; an input unit configured to input a defect sensitive input to the SAR ADC; the conversion control unit is configured to be used for controlling the SAR ADC to convert the defect sensitive input quantity, and the control comprises the following steps of: a, setting the kth bit in a K-bit binary number output by the SAR ADC as a fixed value; b, the SAR ADC is controlled to convert the defect sensitive input quantity so as to determine values of other bits except the kth bit in the K-bit binary number, and therefore an output digital code Dout (k) is generated; c, changing the value of k in a range from 1 to K, and repeating the steps a and b to generate K output digital codes Dout (k); and a determination unit configured to determine whether there is a defect in the SAR ADC based on the K output digital codes Dout (k).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of integrated circuits, and more specifically, to an analog-to-digital converter with a built-in self-detection function, a method for detecting defects in an analog-to-digital conversion circuit, and a test circuit for detecting defects in an analog-to-digital conversion circuit. Background Art

[0002] Analog Digital Converter (ADC) is a device used to convert analog signals into digital signals. Successive-Approximation Register Analog-to-Digital Converter (SAR ADC) is a typical ADC that samples the analog input signal and compares the sampled analog input signal with the reference voltage generated under the control of the SAR logic circuit to generate a corresponding output digital signal. SAR ADC is widely used in audio processing, video processing, and signal processing.

[0003] SAR ADCs usually include capacitors, switches, comparators and other devices. These devices may have manufacturing defects, such as inaccurate capacitor values, inoperative switches, and malfunctioning comparators. These defects can cause erroneous outputs from the SAR ADC. In order to detect defects in the SAR ADC, different analog test voltages can be provided to the SAR ADC being tested, and it can be determined whether the output value is accurate; or the SAR ADC can be tested by setting up a dedicated test circuit. However, the test method or device for SAR ADC in the prior art has the disadvantages of long test time and high system overhead. Summary of the invention

[0004] One object of the present application is to provide a method or device for defect detection of a successive approximation analog-to-digital conversion circuit, which can quickly and inexpensively perform defect detection on the successive approximation analog-to-digital conversion circuit.

[0005] According to one aspect of the present application, an analog-to-digital converter with a built-in self-detection function is provided. The analog-to-digital converter includes: a successive approximation analog-to-digital converter circuit (SAR ADC) based on redundant coding design; an input unit configured to input a defect-sensitive input quantity into the SAR ADC, wherein the defect-sensitive input quantity is an input voltage that can be represented by multiple K-bit binary numbers, K is a positive integer; a conversion control unit configured to control the SAR ADC to perform analog-to-digital conversion on the defect-sensitive input quantity, wherein the control includes: step a: setting the kth bit in the K-bit binary number output by the SAR ADC to a fixed value; step b: controlling the SAR ADC to perform successive approximation conversion on the defect-sensitive input quantity to determine the values ​​of the other bits in the K-bit binary number except the kth bit, thereby generating an output digital code D out (k); and step c: changing the value of k in the range of 1 to K, and repeating the steps a and b until K corresponding output digital codes D are generated. out (k); and a judgment unit, which is configured to output digital codes D based on the K out (k) Determine whether the SAR ADC has a defect.

[0006] According to another aspect of the present application, a method for detecting defects in an analog-to-digital conversion circuit is provided. The method comprises: inputting a defect-sensitive input quantity into a successive approximation analog-to-digital conversion circuit (SAR ADC) based on redundant coding design, wherein the defect-sensitive input quantity is an input voltage that can be represented by multiple K-bit binary numbers; controlling the SAR ADC to perform analog-to-digital conversion on the defect-sensitive input quantity, wherein the control comprises: step a: setting the kth bit in the K-bit binary number output by the SAR ADC to a fixed value; step b: controlling the SAR ADC to perform successive approximation conversion on the defect-sensitive input quantity to determine the values ​​of the other bits in the K-bit binary number except the kth bit, thereby generating an output digital code D out (k); and step c: changing the value of k in the range of 1 to K, and repeating the steps a and b until K corresponding output digital codes D are generated. out (k); and based on the K output digital codes D out (k) Determine whether the SAR ADC has a defect.

[0007] According to another aspect of the present application, a test circuit for detecting defects in an analog-to-digital conversion circuit is provided. The test circuit includes: an input unit configured to input a defect-sensitive input quantity into a successive approximation analog-to-digital conversion circuit (SAR ADC) based on redundant coding design, wherein the defect-sensitive input quantity is an input voltage that can be represented by multiple K-bit binary numbers, K is a positive integer; a conversion control unit configured to control the SAR ADC to perform analog-to-digital conversion on the defect-sensitive input quantity, and the control includes: step a: setting the kth bit in the K-bit binary number output by the SAR ADC to a fixed value; step b: controlling the SAR ADC to perform successive approximation conversion on the defect-sensitive input quantity to determine the values ​​of the other bits in the K-bit binary number except the kth bit, thereby generating an output digital code D out (k); and step c: changing the value of k in the range of 1 to K, and repeating the steps a and b until K corresponding output digital codes D are generated. out (k); and a judgment unit, which is configured to output digital codes D based on the K out (k) Determine whether the SAR ADC has a defect.

[0008] Compared with the prior art, the technical solution for defect detection on SAR ADC provided by the present application requires shorter testing time; and can be integrated with SAR ADC to achieve on-chip detection, saving testing resources.

[0009] The above is an overview of the present application, which may be simplified, summarized, and omitted in detail. Therefore, those skilled in the art should recognize that this section is only illustrative and is not intended to limit the scope of the present application in any way. This summary section is neither intended to determine the key features or essential features of the claimed subject matter, nor is it intended to be used as an auxiliary means to determine the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features of the present application will be more fully understood through the following description and the attached claims in conjunction with the accompanying drawings. It is understood that these drawings only depict several embodiments of the present application and should not be considered as limiting the scope of the present application. By using the accompanying drawings, the present application will be more clearly and detailed.

[0011] Figure 1 A logic block diagram of an analog-to-digital converter with a built-in self-detection function according to an embodiment of the present application is shown;

[0012] Figure 2A logic block diagram of a successive approximation analog-to-digital conversion circuit (SAR ADC) included in an analog-to-digital converter with a built-in self-detection function according to an embodiment of the present application is shown;

[0013] Figure 3A and Figure 3B A schematic diagram showing a capacitor array and a switch array used in a SAR ADC according to an embodiment of the present application working in a sampling phase and a conversion phase respectively;

[0014] Figure 4A shows input and output curves of a non-defective SAR ADC under different conditions according to an embodiment of the present application;

[0015] Figure 4B Shown with Figure 4A The corresponding search path of the defect-free SAR ADC under different conditions;

[0016] Figure 5A The working principle diagram of the SAR ADC circuit in the sampling phase is shown when a capacitor in the SAR ADC is disconnected;

[0017] Figure 5B The working principle diagram of the SAR ADC circuit in the conversion stage when the capacitor in the SAR ADC is disconnected is shown;

[0018] Fig. 6A shows input and output curves of a SAR ADC with a capacitor disconnection under different conditions according to an embodiment of the present application;

[0019] Figure 6B Shown with Fig. 6A The corresponding search path of the SAR ADC with capacitor disconnection under different conditions;

[0020] Fig. 7A The working principle diagram of the SAR ADC circuit in the sampling phase is shown when a capacitor in the SAR ADC is short-circuited;

[0021] Figure 7B The working principle diagram of the SAR ADC circuit in the conversion phase is shown when the capacitor in the SAR ADC is short-circuited;

[0022] Fig. 8A shows input and output curves of a SAR ADC under different conditions with a capacitor short circuit according to an embodiment of the present application;

[0023] Figure 8B Shown with Fig. 8A The corresponding search path of the SAR ADC with a shorted capacitor under different conditions;

[0024] Fig.9A shows input and output curves of a SAR ADC under different conditions with an inaccurate capacitance value of a capacitor according to an embodiment of the present application;

[0025] Fig. 9B Shown with Fig.9A The corresponding search path of the SAR ADC under different conditions with inaccurate capacitance value of the capacitor;

[0026] Fig. 10A A digital code diagram is shown in which each bit of the output digital code of the SAR ADC is set to 1 according to an embodiment of the present application;

[0027] Fig. 10B A digital code diagram is shown in which each bit of the output digital code of the SAR ADC is set to 0 according to an embodiment of the present application;

[0028] Fig.11 A structural diagram of a setting circuit in a test circuit according to an embodiment of the present application is shown;

[0029] Fig.12 A flow chart of a method for detecting defects in a SAR ADC according to an embodiment of the present application is shown;

[0030] Fig.13 A structural diagram of a test circuit for detecting defects in a SAR ADC according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] In the following detailed description, reference is made to the accompanying drawings which form a part thereof. In the drawings, similar symbols generally represent similar components unless the context indicates otherwise. The illustrative embodiments described in the detailed description, drawings, and claims are not intended to be limiting. Other embodiments may be employed and other changes may be made without departing from the spirit or scope of the subject matter of the present application. It is understood that various configurations, substitutions, combinations, and designs of various aspects of the present application generally described in this application and illustrated in the drawings may be made, all of which explicitly constitute a part of the present application.

[0032] The successive-approximation register analog-to-digital converter (SAR ADC) usually includes a sampling and holding circuit, a digital-to-analog converter (DAC), a comparator, and a successive-approximation register (SAR) logic circuit. The sampling and holding circuit is used to measure the analog input voltage A. in Sampling to get the input voltage V in , and the input voltage V in Hold; DAC is used to output reference voltage V DAC ; The comparator is used to convert the input voltage V in The DAC output reference voltage V DAC The comparison is performed to generate a comparison result, and the comparison result is sent to the SAR logic circuit. The SAR logic circuit includes a control circuit (or control logic) and a register, wherein the control circuit is used to control the reference voltage V of the DAC output according to the comparison result. DAC The voltage value of the register can store the comparison result, and after completing the analog-to-digital conversion through multiple search steps, the comparison result in the register is used as the digital code D out Output.

[0033] According to the coding design scheme of SAR ADC, it can be divided into non-redundant coding design and redundant coding design. However, there is a problem with the successive approximation algorithm based on non-redundant coding design, that is, there is no overlap between the search intervals. Once a search interval is excluded, the interval will no longer be searched. This requires that the judgment of each bit when the SAR ADC is working must be correct. Once an error occurs (for example, there is a defect in the capacitor in the DAC), the correct digital code cannot be generated, which may cause the conversion result of the ADC to have an error that is much larger than the quantization error.

[0034] The successive approximation algorithm based on redundant coding design is to set multiple overlapping search intervals. Then the error caused by the judgment error of a certain bit in the overlapping search interval will be compensated in the subsequent conversion step. The overlapping search interval can be called a redundant window, and the size of the redundant window is determined by the specific circuit design. The SAR ADC based on redundant coding design can be implemented in various ways. For example, one is to reduce the weight factor (i.e., sub_radix2 algorithm); another is to insert an additional judgment bit in the binary weight capacitor array. This judgment bit has the same weight as the adjacent bit, which is called a redundant bit; and another is to use a non-fixed weight factor, and only need to ensure that the average radix (radix) is less than 2.

[0035] Generally, for a K-bit output digital code D out The conversion result of the SAR ADC can be expressed by the following formula (1):

[0036]

[0037] Among them, D out Indicates the output digital code, SAR k Indicates the output digital code D out The value of the kth bit of (hereinafter, SAR k Also use Bit k W k Indicates the output digital code D out The weight value of the kth bit, e q Represents the conversion error. For the SAR ADC based on redundant coding design, its output digital code D out The weight value of each bit satisfies the following formula (2), and its weight base satisfies the following formula (3):

[0038]

[0039]

[0040] Among them, K represents the output digital code D out The total number of digits; W k and W n Respectively represent the output digital code D out The weight values ​​of the kth and nth bits of ; Et represents the error tolerance, that is, the size of the redundant window, and Et(n) represents the output digital code D out The nth redundant window of ; α represents the weight radix; and 2 N Represents the output digital code D out The maximum value that can be represented.

[0041] An embodiment of the present application provides an analog-to-digital converter with a built-in self-test (BIST) function, which includes the aforementioned SAR ADC based on redundant coding design and can detect defects in the SAR ADC.

[0042] refer to Figure 1 , which shows a logic block diagram of an analog-to-digital converter 10 with a built-in self-test function according to an embodiment of the present application. The analog-to-digital converter 10 includes a SAR ADC 100 and a test circuit 200 coupled to the SAR ADC 100, wherein the test circuit 200 is configured to detect defects in the SAR ADC 100.

[0043] SAR ADC 100 is a SAR ADC based on redundant coding design. For example, it can be implemented by using the aforementioned coding design with reduced weight factor or coding design with unfixed weight factor. SAR ADC 100 is configured to convert the input voltage V in Converted into output digital code D out , input voltage V in Can be quantized into a value in the range of 0 to (M-1). Each value in the range of 0 to (M-1) represents a quantization interval, and the total number of quantization intervals is M. Each quantization interval is the smallest unit that the ADC can distinguish and represent, and the size of each quantization interval can be expressed as LSB = V ref / M, where V ref is the reference voltage provided to the SARADC 100. Output digital code D out can be represented by a K-bit binary number, where M and K are both positive integers and 2 K >M.

[0044] refer to Figure 2 , which shows a block diagram of a SAR ADC 100 according to an embodiment of the present application. Specifically, the SAR ADC 100 includes a capacitor array 102, a switch array 104, a common mode voltage (V cm ) generating circuit 106, comparator 108 and SAR logic circuit 110. In SAR ADC 100, the functions of sampling and holding the voltage to be converted and the DAC circuit can be realized by capacitor array 102 and switch array 104.

[0045] SAR ADC 100 can receive a power signal (Power) and a clock signal (Clock). The clock signal includes a sampling clock signal and a conversion clock signal, which respectively control SAR ADC 100 to operate in a sampling phase (Sample Phase) or a conversion phase (Conversion Phase). In the sampling phase, capacitor array 102 and switch array 104 sample the voltage to be converted under the control of the sampling clock signal. In the conversion phase, capacitor array 102 and switch array 104 sample the input voltage V based on the sampled input voltage V under the control of the conversion clock signal. in and the code word (eg, a K-bit binary number) provided by the SAR logic circuit 110 to generate a comparison voltage V cmp ; Comparator 108 compares the voltage V cmp and common mode voltage V cm Compare and generate comparison result D k The comparison result is sent to the SAR logic circuit 110 for storage and output as the digital code D out After completing the analog-to-digital conversion, the comparison result D stored in the SAR logic circuit 110 is k The sequence constitutes the output digital code D out .

[0046] refer to Figure 3A and Figure 3B , which shows a specific example with a 5-bit output digital code D out Schematic diagram of the structure of the capacitor array 102 and the switch array 104 used in the SAR ADC 100, wherein Figure 3A FIG. 1 shows a circuit connection diagram of the capacitor array 102 and the switch array 104 when the SAR ADC 100 operates in the sampling phase; Figure 3B FIG. 1 shows a circuit connection diagram of the capacitor array 102 and the switch array 104 when the SAR ADC 100 operates in a holding or conversion phase.

[0047] like Figure 3A and Figure 3B As shown, the capacitor array 102 includes five capacitors C1 to C5 connected in parallel, and the switch array 104 includes five switches S1 to S5 connected in parallel. The first end of each of the capacitors C1 to C5 is coupled to the switch Sa and the inverting input end of the comparator 108, and the second end is coupled to the first end of a corresponding one of the switches S1 to S5. The second end of each of the switches S1 to S5 can be connected to the input voltage V in , ground voltage V ss And the reference voltage V ref Switch between.

[0048] exist Figure 3A and Figure 3B In the example of FIG. 1 , the capacitance values ​​of the five parallel capacitors C1 to C5 of the capacitor array 102 may be 1C, 2C, 3C, 4C, and 5C, respectively, where C is a common capacitance unit. In addition, the capacitor array 102 further includes a redundant capacitor (dummy capacitor) Cd, and the capacitance value of the redundant capacitor Cd may be 1C. The sum of the capacitance values ​​of all capacitors in the capacitor array 102 corresponds to the total number of quantization intervals (i.e., M) of the SAR ADC 100, i.e., 5C+4C+3C+2C+1C+1C=16C. The digital code D output by the SAR ADC 100 is out The maximum capacitance that can be matched is: 5C+4C+3C+2C+1C=15C. In this example, switches S1 to S5 can be switched between V ref 、V in and V ss Similarly, the first end of the redundant capacitor Cd is coupled to the switch Sa and the inverting input terminal of the comparator 108, and the second end is coupled to the first end of the switch Sd, and the second end of the switch Sd can switch between the input voltage V in With ground voltage V ss Switch between.

[0049] Before the SAR ADC 100 operates, the charge amounts in all capacitors (Cd and C1 to C5) in the capacitor array 102 are zero. Figure 3A As shown, in the sampling phase, the switch Sa and the switch Sb are closed, and all switches (Sd and S1 to S5) in the switch array 104 are switched to the input voltage V in At this time, the first terminals of all capacitors (Cd and C1 to C5) are coupled to the common mode voltage V cm The second end is connected to the input voltage V through the switches Sd and S1 to S5 in the switch array 104. in Electrical connection, through the input voltage V in Charge each capacitor so that the voltage difference between the two ends of each capacitor reaches a voltage (V cm -V in ).

[0050] Then, if Figure 3B As shown, the switch Sa and the switch Sb are disconnected, and the capacitors Cd and C1 to C5 are connected to the ground voltage V through the switches Sd and S1 to S5. ss Since each capacitor has no discharge path, the voltage difference between its two ends remains unchanged. At this time, the comparison voltage V cmp =V cm -V in .

[0051] Next, the switches S1 to S5 in the switch array 104 receive the codeword from the SAR logic circuit 110 and control the switches S1 to S5 to switch to the reference voltage V ref Or still with ground voltage V ss Connect to generate the voltage to be compared (the formula of the voltage to be compared can be found below), and the input voltage V in The SAR logic circuit 110 outputs different code words and corresponding comparison results, and uses the successive approximation algorithm to search for the code words that match the input voltage V in the search interval. in The closest voltage to be compared, the code word corresponding to the closest voltage to be compared is the output digital code D out Specifically, in the jth (j is any positive integer between 1 and K) search step, the comparison voltage V at the negative input terminal of the comparator 108 is cmp It can be expressed by the following formula (4):

[0052]

[0053] Among them, ∑ j C vref represents the number of all capacitors in the capacitor array 102 coupled to the reference voltage V in the jth search step. ref ΣC represents the sum of the capacitance values ​​of all capacitors in the capacitor array 102 .

[0054] The voltage difference V between the positive input terminal and the negative input terminal of the comparator 108 diff It can be expressed by the following formula (5):

[0055]

[0056] It can be seen from formula (5) that the comparator 108 compares the common mode voltage V cm Compare with voltage V cmp When the input voltage V in The voltage to be compared If the common mode voltage V cm Greater than the comparison voltage V at the negative input cmp , refer to formula (5), that is The comparison result D output by the comparator 108 is k =1, the SAR logic circuit 110 further determines the comparison result D output by the comparator 108. k =1, the voltage to be compared corresponding to the code word in this comparison is used as the lower limit of the next search interval; conversely, if the common mode voltage V cm Less than the comparison voltage V at the negative inputcmp , refer to formula (5), that is The comparison result D output by the comparator 108 is k = logic 0, the SAR logic circuit 110 further determines the comparison result D output by the comparator 108. k =0 The voltage to be compared corresponding to the code word in this comparison is used as the upper limit of the next search interval. Comparison result D k will be sent to the SAR logic circuit 110 for storage and used as the output digital code D out It should be noted that in the first search step, the highest bit (MSB) of the codeword output by the SAR logic circuit 110 is set to 1, and the remaining bits are set to 0. In a specific example, for example, partially referring to Figure 3A SAR logic circuit 110 provides a code word "10000", the lowest bit to the highest bit of which respectively controls switches S1 to S5, so that switch S5 is coupled to the reference voltage V ref , and switches S1 to S4 are coupled to the ground voltage V ss , at this time∑ j C vref =5C,∑C=16C, then the voltage to be compared Therefore When the input voltage V in Greater than the voltage to be compared When the comparison result D output by the comparator 108 is k is logic 1; when the input voltage V in Less than the voltage to be compared When the comparison result D output by the comparator 108 is k is logic 0.

[0057] The following combination Figure 4A and Figure 4B right Figure 2 The analog-to-digital conversion process of the SAR ADC 100 shown in FIG. 3 is described. Figure 4A is a graph showing the input and output of the SAR ADC 100 under different conditions. Figure 4B Shown with Figure 4A The corresponding search paths of the SAR ADC 100 under different conditions.

[0058] With input voltage V in The value is slightly greater than For example, Figure 4A The curve 410 in FIG. 4 shows that in normal operation, the output digital code D is determined from the most significant bit (MSB) Bit5 to the least significant bit (LSB) Bit1 in sequence.out process; Figure 4B The first row of the table in shows the search path of SARADC 100. Figure 4A and 4B In the first step, the SAR logic circuit 110 provides the code word "10000", that is, the control switch S5 is coupled to the reference voltage V ref , and switches S1 to S4 are coupled to the ground voltage V ss ,at this time After being judged by the comparator 108, V cmp Less than V cm , that is, the voltage to be compared Less than the input voltage V in , the output comparison result D5 is logic 1, thus determining the output digital code D out The second step is based on the value of Bit5, the SAR logic circuit 110 sets the value of Bit4 to 1 and provides the code word "11000", that is, controls the control switches S5 and S4 to couple to the reference voltage V ref , and switches S1 to S3 are coupled to the ground voltage V ss ,at this time After being judged by the comparator 108, V cmp is still less than V cm , that is, the voltage to be compared Less than the input voltage V in , the output comparison result D4 is logic 1, thus determining the output digital code D out The third step is that based on the values ​​of Bit5 and Bit4, the SAR logic circuit 110 sets the value of Bit3 to 1 and provides the code word "11100", that is, the switches S5, S4 and S3 are coupled to the reference voltage V ref , and switches S1 to S2 are coupled to the ground voltage V ss ,at this time After being judged by the comparator 108, V cmp Greater than V cm , that is, the voltage to be compared Greater than the input voltage V in , the output comparison result D3 is logic 0, thus determining the output digital code D out The fourth step is that based on the values ​​of Bit5 to Bit3, the SAR logic circuit 110 provides the code word "11010", that is, the switches S5, S4 and S2 are coupled to the reference voltage V ref , and switches S1 and S3 are coupled to the ground voltage V ss ,at this time After being judged by the comparator 108, V cmp Greater than V cm, that is, the voltage to be compared Greater than the input voltage V in , the output comparison result D2 is logic 0, thus determining the output digital code D out The fifth step is that based on the values ​​of Bit5 to Bit2, the SAR logic circuit 110 sets the value of Bit1 to 1 and provides the code word "11001", that is, the switches S5, S4 and S1 are coupled to the reference voltage V ref , and switches S2 and S3 are coupled to the ground voltage V ss ,at this time After being judged by the comparator 108, V cmp Still greater than V cm , that is, the voltage to be compared Greater than the input voltage V in , the output comparison result D1 is logic 0, thus determining the output digital code D out Bit 1 is 0. At this point, the output digital code D out The values ​​of each bit of SARADC 100 are determined, and the output conversion result is "11000". After weighted conversion, it is 5×1+4×1+3×0+2×0+1×0=9, which means that the input voltage

[0059] For SAR ADCs with redundant coding design, there are overlapping windows between some of its search intervals. During the conversion process, the error caused by the previous erroneous codeword may be compensated by the subsequent codeword. Figure 2 and Figure 3A and 3B The SAR ADC 100 shown in FIG. 1 outputs a digital code D out The weight value W of each bit k Corresponding to the capacitance values ​​of the five capacitors C1 to C5 in the capacitor array 102, that is, W5=5, W4=4, W3=3, W2=2, and W1=1. It can be seen that the above weight values ​​satisfy the aforementioned formulas (2) and (3), that is, the SAR ADC 100 includes a redundant capacitor array and has a redundant window. Therefore, for some specific input voltages V in There may be multiple solutions that give the same conversion value for different search paths or different encoding sequences.

[0060] refer to Figure 4A The curves 420 and Figure 4B The second row of the table shows the search path for the input voltage V in The value is slightly greater than And the digital code D will be output outIn the case where Bit4 of is forced to be set to 0, the SAR ADC 100 searches the path "10000" → "10000" → "10100" → "10110" → "10101" and finally outputs the digital code "10101". Similarly, refer to Figure 4A Curve 430 and Figure 4B The third row of the table shows the search path for the input voltage V in The value is slightly greater than And the digital code D will be output out When Bit5 of is forcibly set to 0, the SAR ADC 100 searches the path "00000" → "01000" → "01100" → "01110" → "01111" and finally outputs the digital code "01110". Figure 4A Curve 440 and Figure 4B The search path in the fourth row of the table shows the input voltage V in The value is slightly greater than And the digital code D will be output out In the case where Bit3 of ADC100 is forced to be set to 1, SAR ADC100 searches the path "10100" → "11100" → "10100" → "10110" → "10101" and finally outputs the digital code "10101". Based on the above formula (1), it can be seen that the digital codes "11000", "10101" and "01110" can all represent the value 9, which is consistent with the input voltage V in The value corresponds to .

[0061] Based on the above discussion, it can be seen that when the SAR ADC 100 works normally, when Bit4 is forced to be set to 0, Bit5 is forced to be set to 0, or Bit3 is forced to be set to 1, the SAR ADC 100 can output the correct digital code D out The following will combine Figure 5A and Figure 5B ,to Fig.9A and Fig. 9B When the SAR ADC 100 has defects, its output conditions under different search paths are discussed to illustrate the principle of detecting defects of the SAR ADC 100 in the present application.

[0062] refer to Figure 5A and Figure 5B , which shows a capacitor C in a capacitor array of a SAR ADC in an example k The two ends of the capacitor C j,j≠k Circuit diagram for normal operation. Figure 5AThe SAR ADC is shown in the sampling phase. k The two ends of the circuit are broken, and the capacitor C cannot be charged during the sampling phase. k to charge. Figure 5B The SAR ADC is shown in the conversion phase. k The two ends are broken, and the comparison voltage V cmp It is expressed by the following formula (6):

[0063]

[0064] Among them, ∑CC k Indicates the number of capacitors in the capacitor array except capacitor C k The sum of the capacitance values ​​of all capacitors except j≠k C vref Indicates the number of capacitors in the capacitor array except capacitor C k All other voltages are coupled to the reference voltage V ref The sum of the capacitance values ​​of the capacitors. Comparing formula (4) and formula (6), we can see that due to the capacitor C k A circuit breaker at both ends will cause the comparison voltage V at the negative input of the comparator to drop during the SAR ADC conversion process. cmp This is inconsistent with the situation when there is no defect, resulting in inaccurate conversion results of the SAR ADC.

[0065] Fig. 6A and Figure 6B by Figure 3A and Figure 3B The conversion process of the SAR ADC 100 is illustrated by taking the case where both ends of the capacitor C5 in the capacitor array 102 of the SAR ADC 100 are broken as an example. Fig. 6A shows the input and output curves of the SAR ADC 100 under different conditions, Figure 6B Shown with Fig. 6A The corresponding search path of the SAR ADC 100 under different conditions. in The value is slightly greater than For example, referring to curves 610 and 6A Figure 6B The search path of the first row of the table in FIG. 1 shows the determination of the output digital code D from MSB to LSB in normal operation (Normal). out In the process, SAR ADC 100 searches the path “10000”→“11000”→“11100”→“11010”→“11011” and finally outputs the digital code “11010”. Fig. 6A Curve 620 and Figure 6BThe search path in the second row of the table shows the output digital code D out In the case where Bit4 of is forcibly set to 0, SAR ADC 100 searches the path “10000” → “10000” → “10100” → “10110” → “10111” and finally outputs the digital code “10111”. Fig. 6A Curve 630 and Figure 6B The search path in the third row of the table shows the output digital code D out In the case where Bit5 of is forcibly set to 0, the SAR ADC 100 searches the path “00000” → “01000” → “01100” → “01010” → “01011” and finally outputs the digital code “01010”. Fig. 6A Curve 640 and Figure 6B The search path in the fourth row of the table shows the output digital code D out In the case where Bit3 of is forcibly set to 1, the SAR ADC 100 searches the path “10100” → “11000” → “10100” → “10110” → “10111” and finally outputs the digital code “10111”.

[0066] In the above example, although a defect occurs inside the SAR ADC 100 (ie, the capacitor is disconnected), the defect cannot be known from outside the circuit at this time, and it is still considered that the D output by the SAR ADC 100 is out The digital code value is credible, and the conversion result is calculated using formula (1). Based on the above formula (1), it can be seen that the digital codes "11010", "10111", "01010" and "10111" output under four different search paths represent the values ​​"11", "11", "6" and "11" respectively, and none of them can accurately represent the input voltage V in The value of .

[0067] refer to Fig. 7A and Figure 7B , which shows a capacitor C in a capacitor array of a SAR ADC in an example k The two ends of the capacitor C j,j≠k The circuit schematic diagram for normal operation. Fig. 7A The SAR ADC is shown in the sampling phase. k The two ends of the short circuit is equivalent to the input voltage V in Connect to the negative input of the comparator through an equivalent resistor. Figure 7B Figure 2 shows the SAR ADC working in the conversion phase. Similarly, due to the capacitor C kThe two ends of the comparator are short-circuited, and the comparison voltage V cmp It is expressed by the following formula (7):

[0068] V cmp =SAR k ×V ref (7)

[0069] Among them, SAR k Indicates the codeword provided by the SAR logic circuit and the capacitor C k Comparing formula (7) with formula (4), it can be seen that due to the capacitor C k A short circuit at both ends will also cause the comparison voltage V at the negative input of the comparator to increase during the SAR ADC conversion process. cmp This is inconsistent with the situation when there is no defect, resulting in inaccurate conversion results of the SAR ADC.

[0070] Fig. 8A and Figure 8B by Figure 3A and Figure 3B The conversion process of the SAR ADC 100 is illustrated by taking the short circuit of both ends of the capacitor C3 in the capacitor array 102 of the SAR ADC 100 as an example. Fig. 8A shows the input and output curves of the SAR ADC 100 under different conditions, Figure 8B Shown with Fig. 8A The corresponding search path of the SAR ADC 100 under different conditions. in The value is slightly greater than For example, referring to curves 810 and 8A Figure 8B The search path of the first row of the table in FIG. 1 shows the determination of the output digital code D from MSB to LSB in normal operation (Normal). out In the process, SAR ADC100 searches the path “10000”→“11000”→“11000”→“11010”→“11011” and finally outputs the digital code “11011”. Fig. 8A Curve 820 and Figure 8B The search path in the second row of the table shows the output digital code D out In the case where Bit4 of is forcibly set to 0, SAR ADC 100 searches the path “10000” → “10000” → “10100” → “10010” → “10011” and finally outputs the digital code “10011”. Fig. 8A Curve 830 and Figure 8B The search path in the third row of the table shows the output digital code D outIn the case where Bit5 of is forcibly set to 0, the SAR ADC 100 searches the path “00000” → “01000” → “01100” → “01010” → “01011” and finally outputs the digital code “01011”. Fig. 8A Curve 840 and Figure 8B The search path in the fourth row of the table shows the output digital code D out In the case where Bit3 of is forcibly set to 1, the SAR ADC 100 searches the path “10100” → “01100” → “00100” → “00110” → “00101” and finally outputs the digital code “00100”.

[0071] Similarly, when the internal defect of the SAR ADC 100 (i.e., the capacitor is short-circuited) cannot be known from outside the circuit, the conversion result is still calculated using the above formula (1). It can be seen that the digital codes "11011", "10011", "01011" and "00100" output under four different search paths represent the values ​​"12", "8", "7" and "3" respectively, and none of them can accurately represent the input voltage V in The value of .

[0072] In addition, in some circuit designs, a capacitor in a SAR ADC may be composed of multiple unit capacitors. When a defect (e.g., short circuit or open circuit) occurs, one or more unit capacitors that make up the capacitor may fail, which in turn causes the capacitance value of the capacitor in the SAR ADC to be inaccurate, thereby affecting the accuracy of the SAR ADC conversion. For example, Figure 3A and Figure 3B The capacitance value of the capacitor C3 in the capacitor array 102 of the SAR ADC 100 shown in FIG. 1 is normally 3C, but due to manufacturing defects, its capacitance value may be only 2C.

[0073] Fig.9A and Fig. 9B by Figure 3A and Figure 3B Taking the case where the capacitance value of the capacitor C4 in the capacitor array 102 of the SAR ADC 100 shown in FIG. 1 changes from 4C to 2C due to a defect as an example, the conversion process of the SAR ADC 100 is described. Specifically, Fig.9A shows the input and output curves of the SAR ADC 100 under different conditions, Fig. 9B Shown with Fig.9A The corresponding search path of the SAR ADC 100 under different conditions. in The value is slightly greater than For example, referring to curves 910 and 911 in FIG. Fig. 9BThe search path of the first row of the table in FIG. 1 shows the determination of the output digital code D from MSB to LSB in normal operation (Normal). out In the process, SAR ADC 100 searches the path “10000”→“11000”→“11100”→“11010”→“11001” and finally outputs the digital code “11000”. Fig.9A The curves 920 and Fig. 9B The search path in the second row of the table shows the output digital code D out In the case where Bit4 of is forcibly set to 0, SAR ADC 100 searches the path “10000” → “10000” → “10100” → “10010” → “10011” and finally outputs the digital code “10010”. Fig.9A Curve 930 and Fig. 9B The search path in the third row of the table shows the output digital code D out In the case where Bit5 of is forcibly set to 0, the SAR ADC 100 searches the path “00000” → “01000” → “01100” → “01110” → “01111” and finally outputs the digital code “01110”. Fig.9A Curve 940 and Fig. 9B The search path in the fourth row of the table shows the output digital code D out In the case where Bit3 of is forcibly set to 1, the SAR ADC 100 searches the path “10100” → “01100” → “01100” → “01110” → “01111” and finally outputs the digital code “01110”.

[0074] Similarly, when the internal defects of the SAR ADC 100 (i.e., the capacitance value is inaccurate) cannot be known from outside the circuit, the conversion result is still calculated using the above formula (1). It can be seen that the digital codes "11000", "10010", "01110" and "01110" output under four different search paths represent the values ​​"9", "7", "9" and "9" respectively, and some of the digital codes cannot accurately represent the input voltage V in The value of .

[0075] In summary, Figure 4A and Figure 4B The SAR ADC 100 is shown to operate normally compared to Fig. 6A and Figure 6B The SARADC 100 is shown to have a capacitor open circuit condition. Fig. 8A and Figure 8B The SAR ADC 100 is shown to have a capacitor short circuit condition, and Fig.9Aand Fig. 9B It is shown that when the capacitance value of the capacitor in the SAR ADC 100 is inaccurate, all correct digital codes D cannot be output in multiple search paths. out Based on the above discussion, for a specific input voltage V corresponding to multiple digital codes in , if we strategically or intentionally change the search path based on these multiple digital codes, when the SAR ADC 100 is not defective, its output result should remain unchanged; however, when the SAR ADC 100 is defective, its output result may not accurately represent the input voltage V in This is also the basic principle of the technical solution described in this application for performing defect detection on the SAR ADC 100.

[0076] Back to Figure 1 The test circuit 200 of the present application includes an input unit 210 , a conversion control unit 220 and a judgment unit 230 , and is used to detect defects of the SAR ADC 100 .

[0077] The input unit 210 is configured to input the defect sensitive input quantity to the SAR ADC 100. out Taking K-bit binary representation as an example, the defect sensitive input refers to the input voltage V that can be represented by multiple K-bit binary numbers (also called K-bit digital codes) after conversion by the SAR ADC 100. in .

[0078] refer to Fig. 10A and Fig. 10B , which shows the corresponding Figure 2 The digital code diagram of the SAR ADC 100 in FIG. 1 shows the input voltage V in The corresponding quantization interval is 0 to 15, and the vertical axis shows the output digital code D when K is 5 out Each bit, namely Bit1 to Bit5. Corresponding to any input voltage V in the quantization interval in , at the input voltage V in Before the successive approximation conversion, the kth bit (any bit from 1 to K) in the K-bit digital code is set to 1 (or 0), and then the input voltage V in The K-bit digital code is converted to obtain the other bits except the k-th bit in the K-bit digital code. If the K-bit digital code finally obtained can correctly represent the input voltage V in , it means that the kth bit is a sensitive bit, or the input voltage V in The input voltage is sensitive to the kth bit and is a defect-sensitive input.

[0079] Fig. 10AThe white area in the figure indicates that after setting the value of a bit from Bit1 to Bit5 to 1, there are K bits of digital code in the digital code domain that can represent the corresponding input voltage V in The black area indicates that after the value of a bit from Bit1 to Bit5 is set to 1, there is no digital code in the digital code domain that can represent the corresponding input voltage V in For example, corresponding to the input voltage in the quantization interval 0 to 1, setting any bit from Bit1 to Bit5 to 1 will not result in a value that correctly represents the input voltage V in K-bit digital code, that is, the input voltage V corresponding to the quantization interval 0 to 1 in It is not a defect sensitive input quantity; corresponding to the input voltage of quantization interval 1 to 2, Bit1 is the sensitive bit. When Bit1 is set to 1, a value that can correctly represent the input voltage V can be obtained through successive approximation conversion. in If the other bits are set to 1, the K-bit digital code cannot correctly represent the input voltage V in K-bit digital code; corresponding to the input voltage of quantization interval 3 to 4, Bit1 to Bit3 are sensitive bits. When Bit1 to Bit3 are set to 1 respectively, 3 bits can be obtained that can correctly represent the input voltage V in K-bit digital code; corresponding to the input voltage of quantization interval 8 to 9, any bit from Bit1 to Bit5 is a sensitive bit. When Bit1 to Bit5 are set to 1 respectively, 5 K-bit digital codes that can correctly represent the input voltage can be obtained. in Equal to 8.5LSB (i.e., ) as an example, whether it is output digital code D out If any of Bit 1 to Bit 5 is set to 1, there is a digital code in the digital code domain that can represent an input voltage V equal to 8.5 LSB. in That is to say, the input voltages V corresponding to the quantization intervals 1 to 2, quantization intervals 3 to 4, and quantization intervals 8 to 9 listed in the above example are in They are all defect-sensitive input quantities. However, the input voltage corresponding to quantization interval 1 to 2 can only obtain a K-bit digital code that can correctly compare the input voltage, and it is impossible to accurately judge the defects in the circuit based on the K-bit digital code. In order to improve the accuracy and efficiency of defect judgment, the embodiment of the present application preferentially selects input voltages that can be represented by multiple K-bit digital codes as defect-sensitive input quantities input to the SAR ADC 100, such as input voltages corresponding to quantization intervals 3 to 4 and quantization intervals 8 to 9. In actual applications, in order to further improve the judgment efficiency, input voltages corresponding to K sensitive bits can be further selected, such as input voltages corresponding to quantization intervals 8 to 9. Fig. 10AIn the area below the horizontal axis, the white area shows the defect-sensitive input quantities corresponding to K sensitive bits, which are the input voltages corresponding to quantization intervals 5 to 7, 8 to 9, 10 to 11, 12 to 13, and 15 to 16.

[0080] Similarly, refer to Fig. 10B The white area indicates that after setting the value of a bit from Bit1 to Bit5 to 0, there is a digital code in the digital code domain that can represent the corresponding input voltage V in The black area indicates that after setting the value of a bit from Bit1 to Bit5 to 0, there is no digital code in the digital code domain that can represent the corresponding input voltage V in . Continue with input voltage V in For example, if the output digital code D out Which of Bit1 to Bit5 is set to 0? There is a digital code in the digital code domain that can represent an input voltage V equal to 8.5LSB. in .exist Fig. 10B In the area below the abscissa of , the white area shows the defect-sensitive input quantities corresponding to K sensitive bits, which are input voltages corresponding to quantization intervals 0 to 1, 3 to 6, and 8 to 10.

[0081] comprehensive Fig. 10A and Fig. 10B , Table 1 below shows the input voltage V in When it is equal to 8.5LSB and the SAR ADC100 is not defective, the output digital code D out When any bit from Bit1 to Bit5 is set to 1 or 0, the output digital code D out The value of each bit and its corresponding numerical value.

[0082] Table 1V in Conversion result when the LSB is equal to 8.5LSB and the SAR ADC is not defective

[0083]

[0084]

[0085] The defect-sensitive input quantity can be determined in the circuit design stage. For example, in some embodiments, in the circuit design stage, after confirming the weight of each bit in the K-bit digital code, the behavioral model of the SAR ADC 100 can be established according to the formula (4) in the previous text. The default (i.e., no operation is performed on the digital code) and the k-th bit of the K-bit digital code corresponding to the input voltage is set to 1 (or 0) respectively. After the successive approximation conversion operation is completed, the output in the default state is compared with the output when the k-th bit of the K-bit digital code is set to 1 (or 0). If the two are consistent, it means that the input voltage is sensitive to the k-th bit, that is, the input voltage is a defect-sensitive input quantity. All defect-sensitive input quantities can be obtained by traversing the entire input range using the above method. In practical applications, all defect-sensitive input quantities can be determined manually or with the assistance of a computer. For each specific design, a specific set of defect-sensitive input quantities can be obtained.

[0086] After the defect sensitive input quantity is determined, the defect sensitive input quantity can be input into the SAR ADC 100 through the input unit. The conversion control unit 220 is configured to control the SAR ADC 100 to perform analog-to-digital conversion on the defect sensitive input quantity received from the input unit 210 .

[0087] Specifically, the conversion control unit 220 controls the SAR ADC 100 including step a: setting the kth bit of the K-bit binary number output by the SAR ADC 100 to a fixed value, where 1≤k≤K.

[0088] In some embodiments, the conversion control unit 220 may set the kth bit of the K-bit binary number output by the SAR ADC 100 to 1. In other embodiments, the conversion control unit 220 may set the kth bit of the K-bit binary number output by the SAR ADC 100 to 0.

[0089] In some embodiments, Figure 1 As shown, the conversion control unit 220 includes a setting circuit 222. The setting circuit 222 is configured to set the trigger signal Set <k>, Polarity <k>And the initial control value SAR <k>Generates a rewrite signal SAR_ow for setting the k-th bit in a K-bit binary number to a fixed value <k>, where the trigger signal Set <k>Indicates that the kth bit in the K-bit binary number is reset, the polarity signal Polarity <k>Indicates that the kth bit in a K-bit binary number is set to 0 or 1, the initial control value SAR <k>Indicates the initial value of the k-th bit of the codeword provided by the SAR logic circuit 110 of the SAR ADC 100 .

[0090] refer to Fig.11 , which shows a specific structure of a setting circuit 222 in a specific example. The setting circuit 222 includes an OR gate 2221, an AND gate 2222, a NAND gate 2223, and an OR gate 2224. The first input terminal of the OR gate 2221 receives the inverted setting trigger signal Set <k>The second input terminal receives the polarity signal Polarity <k>The output terminal is coupled to the first input terminal of the AND gate 2222. The first input terminal of the AND gate 2222 receives the output of the OR gate 2221, and the second input terminal receives the initial control value SAR <k>The output terminal is coupled to the first input terminal of the OR gate 2224. The three input terminals of the NAND gate 2223 receive the trigger signal Set <k>, Polarity <k>and the initial control value SAR <k>The signal at the output end is inverted and coupled to the second input end of the OR gate 2224. The OR gate 2224 performs an OR operation on the output of the AND gate 2222 and the inverted signal output by the NAND gate 2223 and outputs the rewrite signal SAR_ow. <k>, and rewrite the signal SAR_ow <k>Provided to the SAR ADC 100, for setting the kth bit of the K-bit binary number output by the SAR ADC 100 to 0. It can be understood that the specific implementation of the setting circuit 222 is not limited to Fig.11 In other embodiments, other structures may be used to implement the setting circuit 22, and the setting circuit 22 may also be designed to set the kth bit of the K-bit binary number output by the SAR ADC100 to 1.

[0091] Continue with Figure 2 , Figure 3A and Figure 3B The SAR ADC 100 shown in FIG. 1 is taken as an example, which can convert a defect sensitive input quantity (eg, 8.5 LSB) into a digital code D represented by a 5-bit binary number. out When executing step a, the conversion control unit 220 may set the fifth bit (ie, Bit5) of the 5-bit binary number output by the SAR ADC 100 to 1.

[0092] The conversion control unit 220 controls the SAR ADC 100 and further comprises step b: controlling the SAR ADC 100 to perform successive approximation conversion on the defect sensitive input quantity to determine the values ​​of other bits in the K-bit binary number except the k-th bit, thereby generating an output digital code D out (k).

[0093] Continue with Figure 2 , Figure 3A and Figure 3B Taking the SAR ADC 100 shown in FIG. 1 as an example, when the conversion control unit 220 executes step b, it controls the SAR ADC 100 to perform successive approximation conversion on the defect sensitive input 8.5LSB to determine the values ​​of the other bits (i.e., Bit4, Bit3, Bit2, and Bit1) in the 5-bit binary output except Bit5. As shown in Table 1 above, when the SAR ADC 100 works normally, after performing successive approximation conversion on the defect sensitive input 8.5LSB, it can determine that the values ​​of Bit4 to Bit1 are "0", "1", "0", and "0", respectively. Therefore, the digital code D output by the SAR ADC 100 is out (5) is "10100".

[0094] Furthermore, the conversion control unit 220 controls the SAR ADC 100 to further include step c: changing the value of k within the range of 1 to K, and repeatedly executing step a and step b until K corresponding output digital codes D are generated. out (k).

[0095] Or Figure 2 , Figure 3A and Figure 3B Taking the SAR ADC 100 shown in FIG. 1 as an example, the conversion control unit 220 changes the value of k within the range of 1 to 5, and repeatedly executes the aforementioned steps a and b until the corresponding 5 output digital codes D are generated. out (k). Specifically, the conversion control unit 220 can change the value of k from 5 to 4, set the 4th bit (i.e., Bit4) of the 5-bit binary number output by the SAR ADC 100 to 1, and then control the SAR ADC 100 to perform successive approximation conversion on the defect sensitive input quantity 8.5LSB to determine the values ​​of the other bits (i.e., Bit5, Bit3, Bit2, and Bit1) in the 5-bit binary number output except Bit4. Referring to Table 1, when the SAR ADC 100 works normally, the digital code D output by the SAR ADC 100 is out (4) is "01101". Similarly, the conversion control unit 220 can also control the value of k to be 3, 2, and 1 in sequence, and repeat the above steps a and b to generate digital codes D respectively. out (3) = "10100"; D out (2) = "10011"; D out (1) = "10011".

[0096] It should be noted that in the above example, the value of k decreases from 5 to 1 one by one, that is, the output digital code D is set from MSB to LSB in sequence. out The value of each bit of the digital code D may be set from LSB to MSB in sequence in other embodiments. out The value of each bit, or set the output digital code D in random order out In addition, in the above example, the conversion control unit sets each bit in the K-bit binary number output by the SAR ADC 100 to 1, but the present application is not limited thereto. In other embodiments, the conversion control unit sets each bit in the K-bit binary number output by the SAR ADC 100 to 0. As shown in Table 1 above, when the defect sensitive input amount is 8.5LSB, each bit in the 5-bit binary number output by the SAR ADC 100 is set to 0, and the corresponding 5 output digital codes D with correct values ​​can also be obtained. out (5) to D out (1).

[0097] Combination of the above Figure 2 , Figure 3A and Figure 3B The SAR ADC 100 shown in FIG. 1 and Table 1 illustrate the conversion process and conversion results when the SAR ADC 100 is free of defects. However, as mentioned above, defects such as capacitor disconnection, capacitor short circuit, or inaccurate capacitance value of the capacitor may exist in the SAR ADC 100. For a defective SAR ADC 100, the test circuit controls the SAR ADC 100 to perform analog-to-digital conversion on the defect-sensitive input quantity, and different results will be generated.

[0098] Refer to Table 2 below, which shows the output digital codes D when the defect sensitive input is equal to 8.5LSB and the capacitor C4 in the SAR ADC 100 is disconnected. out When any bit from Bit1 to Bit5 is set to 1 or 0, the output digital code D out As discussed above, when the capacitor in the SAR ADC 100 is disconnected, the comparison voltage V at the negative input terminal of the comparator during the conversion process of the SAR ADC 100 will be cmp Inaccurate, resulting in inaccurate conversion results of SARADC 100. Comparing Table 2 with Table 1, it can also be seen that due to the open circuit of capacitor C4, multiple conversion results of SARADC 100 are wrong.

[0099] Table 2 V in Conversion result when the LSB is equal to 8.5LSB and C4 is open in the SAR ADC

[0100]

[0101] Refer to Table 3 below, which shows the output digital codes D when the defect sensitive input is equal to 8.5LSB and the capacitor C4 in the SAR ADC 100 is short-circuited. out When any bit from Bit1 to Bit5 is set to 1 or 0, the output digital code D out Comparing Table 3 with Table 1, it can be seen that due to the short circuit of capacitor C4, multiple conversion results of SAR ADC 100 are erroneous.

[0102] Table 3V in Conversion result when equal to 8.5LSB and C4 is short-circuited in SAR ADC

[0103]

[0104] Referring to Table 4 below, it shows that when the defect sensitive input amount is equal to 8.5LSB and the capacitance value of the capacitor C5 in the SAR ADC 100 is inaccurate (for example, reduced from 5C to 2C), the output digital code D is respectively out When any bit from Bit1 to Bit5 is set to 1 or 0, the output digital code D out Comparing Table 4 with Table 1, it can also be seen that due to the inaccurate capacitance value of capacitor C5, multiple conversion results of SAR ADC 100 are wrong.

[0105] Table 4V in Conversion results when the value of C5 is wrong and equal to 8.5LSB in SAR ADC

[0106]

[0107] Back to Figure 1 The test circuit 200 of the present application further includes a judgment unit 230. The judgment unit 230 is configured to determine the K output digital codes D generated by the SAR ADC 100. out (k) Determine whether the SAR ADC 100 is defective.

[0108] In some embodiments, Figure 1 As shown, the judgment unit 230 also includes a storage module 232, which is configured to store the K output digital codes D out (k). For example, each time the conversion control unit 220 controls the SAR ADC 100 to perform analog-to-digital conversion on the defect sensitive input quantity to generate a digital code D out (k), the digital code D out (k) is sent to the storage module 232 for storage.

[0109] In some embodiments, the determination unit 230 determines whether the SAR ADC 100 has a defect by: out The maximum value max(D out (k)) and the minimum value min(D out (k)) is compared with a predefined threshold ε; when the above difference is less than the predefined threshold ε, it is determined that the SAR ADC 100 is not defective; and when the above difference is greater than or equal to the predefined threshold ε, it is determined that the SAR ADC 100 is defective. The predefined threshold ε can be determined according to the deterministic error and random error of the SAR ADC, and can vary with the specific design indicators of the SAR ADC.

[0110] Specifically, the conversion process of ADC is affected by various non-ideal factors and there are conversion errors, including deterministic errors and random errors. Among them, the deterministic error can be characterized by the nonlinear characteristics of ADC, DNL (Differential Non-linearity) and INL (Integral Non-linearity). DNL, ​​also known as differential nonlinearity, refers to the difference between the distance between two adjacent scales of ADC and the minimum resolution unit (LSB) of ADC, reflecting the local microscopic nonlinearity within the entire range; while INL represents the accuracy of ADC, which refers to the error value between the quantized value and the true value corresponding to each numerical point of ADC, indicating the absolute error of the measured value. Due to the influence of various non-ideal factors, the DNL and INL of ADC are usually not 0. The larger the DNL / INL, the more serious the nonlinearity of ADC itself, and the greater the error between the output digital result and the analog input. For SAR ADC, nonlinearity comes from circuit mismatch, nonlinearity of sampling circuit and comparator circuit, limited bandwidth of DAC, etc. For a SAR ADC with a given design index, its nonlinearity degree (maximum value of DNL / INL) can be determined according to the above sources. Therefore, for a certain analog input quantity, the error of the conversion output result can also be determined. For a SAR ADC based on redundant coding design, the maximum value max(D out (k)) and the minimum value min(D out (k)), denoted as the deterministic error ∈ deterministic .

[0111] Furthermore, in addition to deterministic errors, there are also random errors in the ADC. Random errors mainly come from noise and aperture uncertainty. For a SAR ADC with a given design specification, the level of its random error can be well estimated. Therefore, the maximum value max (D out (k)) and the minimum value min(D out (k)) is the difference between the random error ∈ random .

[0112] Taking into account the deterministic error ∈ deterministic And the random error ∈ random Under the premise of , the above predefined threshold ε can be determined by the following formula (8):

[0113] ε≥∈ deterministic +∈ random (8)

[0114] It can be seen that the selection of the predefined threshold ε can be determined by the SAR ADC design index, wherein when the above formula (8) takes an equal sign, it indicates that the tolerance to SAR ADC defects is the minimum.

[0115] In one example, assuming that the predefined threshold ε is set to 2, the conversion results in Tables 1 to 4 are used as examples for judgment. It can be seen that max(D out (k))-min(D out (k))=0, which is less than the predefined threshold 2, then the SARADC can be judged to be defect-free; max(D out (k))-min(D out (k))=4,max(D out (k))-min(D out (k))=7, max(D out (k))-min(D out (k))=3, which are all greater than the predefined threshold 2, it can be determined that the SAR ADC has defects.

[0116] In the above embodiment, the working process of the analog-to-digital converter 10 with built-in self-detection function of the present application is described with the defect sensitive input amount of 8.5LSB. In other embodiments, the number of defect sensitive input amounts can be multiple. For example, Fig. 10A As shown, the digital code D will be output out When any of Bit 1 to Bit 5 in is set to 1, the defect sensitive input quantities include the input voltages from 5 to 7, 8 to 9, 10 to 11, 12 to 13, and 15 to 16; or Fig. 10B As shown, the digital code D will be output out When any bit from Bit1 to Bit5 is set to 0, the defect sensitive input includes any input voltage from 0 to 1, 3 to 6, and 8 to 10. The input unit 210 is configured to sequentially input the above-mentioned multiple defect sensitive inputs into the SAR ADC 100; the conversion control unit 220 performs the above-mentioned operations from step a to step c on each defect sensitive input and obtains corresponding K output digital codes D out (k); The judgment unit 230 outputs the K digital codes D corresponding to each defect sensitive input quantity. out (k) Determine whether there is a defect in the SAR ADC 100. Based on the conversion of multiple defect-sensitive input quantities, the accuracy and coverage of defect judgment can be increased.

[0117] In other embodiments, the determination unit 230 not only determines whether the SAR ADC 100 has a defect, but also determines the specific type of the SAR ADC 100. Continuing to refer to Tables 2 to 4 in the foregoing text, it can be seen that under different defect types, the K output digital codes D output by the SAR ADC 100 are out (k) are not the same, but have different characteristics. The judgment unit 230 is based on these digital codes D out (k) The different features of the SAR ADC 100 can be used to determine the defect type and locate the defect position.

[0118] In some examples, the determination unit 230 may pre-store a defect lookup table, in which different defect types and digital codes D are pre-stored. out The judgment unit 230 receives the K output digital codes D output by the SAR ADC 100. out (k) After that, the corresponding defect type can be determined by consulting the defect lookup table.

[0119] It should be noted that in the above embodiments, Figure 2 ,as well as Figure 3A and 3B The specific SAR ADC structure in the embodiment of the present invention is used to illustrate the analog-to-digital converter with built-in self-detection function. However, those skilled in the art will appreciate that the structure or configuration of the above SAR ADC may be modified without departing from the scope of the present invention. For example, the number of capacitors or switches included in the capacitor or switch array in the SAR ADC may be increased or decreased; for example, the specific implementation of the comparator or SAR logic circuit may be changed; for another example, the reference voltage V ref That is, the power supply voltage V dd With ground voltage V ss The difference can also be generated by any two voltages V1 and V2 with a difference in the SAR ADC, and so on. Further, in the above embodiments, the analog-to-digital converter with a built-in self-detection function of the present application is described by using a redundant-cap-array-based SAR ADC. However, the present application is not limited to this, and the technical solution of the present application is also used to perform defect detection on other types of SAR ADCs based on redundant coding designs, such as a SAR ADC based on a redundant mixed capacitor / resistor array (redundant-mixed-C / R).

[0120] According to another aspect of the present application, a method for detecting defects in a SAR ADC is provided.

[0121] refer to Fig.12 , which shows a flow chart of a method 1200 for detecting defects in a SAR ADC according to an embodiment of the present application. The SAR ADC is designed based on redundant coding and is configured to convert an input voltage V in Converted into output digital code D out , where the input voltage V in Can be quantized into a value in the range of 0 to M-1, and output digital code D out can be represented by a K-bit binary number, where M and K are both positive integers, and 2 K >M. For example, the method 1200 may be performed by, for example Figure 1 The test circuit 200 shown is implemented to test the SAR ADC 100 .

[0122] like Fig.12 As shown, in step S1210, the defect sensitive input quantity is input into the SAR ADC, wherein the defect sensitive input quantity can be represented by a plurality of K-bit binary numbers. Then, in step S1220, the SAR ADC is controlled to perform analog-to-digital conversion on the defect sensitive input quantity. Fig.12 Step S1220 may include three sub-steps S1222, S1224 and S1226, wherein in sub-step S1222, the k-th bit in the K-bit binary number output by the SAR ADC is set to a fixed value, wherein 1≤k≤K; in sub-step S1224, the SAR ADC is controlled to perform successive approximation conversion on the defect sensitive input quantity to determine the values ​​of the other bits in the K-bit binary number except the k-th bit, thereby generating an output digital code D out (k); and in sub-step S1226, the value of k is changed within the range of 1 to K, for example, k is set to be equal to K, K-1, ..., 1 in sequence, and steps a and b are repeatedly performed until K corresponding output digital codes D are generated. out (k). Then, in step S1230, based on the K output digital codes D out (k) Determine whether the SAR ADC is defective.

[0123] In some embodiments, in sub-step S1222 , setting the kth bit in the K-bit binary number output by the SAR ADC to a fixed value includes: setting the kth bit in the K-bit binary number output by the SAR ADC to 0 or 1.

[0124] In some embodiments, setting the kth bit in the K-bit binary number output by the SAR ADC to 0 or 1 in sub-step 1222 includes: generating a rewrite signal for setting the kth bit in the K-bit binary number to a fixed value based on a set trigger signal, a polarity signal and an initial control value, wherein the set trigger signal indicates that the kth bit in the K-bit binary number is to be reset, the polarity signal indicates that the fixed value is 0 or 1, and the initial control value indicates the initial value of the kth bit of the codeword provided by the successive approximation logic circuit of the SAR ADC; and setting the kth bit in the K-bit binary number output by the SAR ADC to 0 or 1 based on the rewrite signal.

[0125] In some embodiments, the most significant bit of the K-bit binary number corresponds to k=K, the least significant bit of the K-bit binary number corresponds to k=1, and changing the value of k within the range of 1 to K in sub-step 1225 includes: decreasing the value of k from K to 1 one by one.

[0126] In some embodiments, the method 1200 further includes: storing the K output digital codes D out (k).

[0127] In some embodiments, in step S1230, based on the K output digital codes D out (k) Determining whether the SAR ADC is defective includes: out The difference between the maximum value and the minimum value in (k) is compared with a predefined threshold ε; when the difference is less than the predefined threshold ε, it is determined that the SAR ADC is not defective; and when the difference is greater than or equal to the predefined threshold ε, it is determined that the SAR ADC is defective.

[0128] In some embodiments, the number of defect-sensitive input quantities is multiple, and the method 1200 further includes: inputting the multiple defect-sensitive input quantities into the SAR ADC in sequence; performing the operations of steps a to c on each defect-sensitive input quantity and obtaining corresponding K output digital codes D out (k); and K output digital codes D corresponding to each defect sensitive input quantity out (k) Determine whether the SAR ADC is defective.

[0129] In some embodiments, the method 1200 further includes: determining the defect type of the SAR ADC based on the K output digital codes Dout(k).

[0130] The above detection method 1200 can be performed by, for example Figure 1 The test circuit 200 shown executes, therefore, more details about the method 1200 can refer to the above description of the test circuit 200, which will not be repeated here.

[0131] According to yet another aspect of the present application, a test circuit for detecting defects in a SAR ADC is provided.

[0132] refer to Fig.13 , which shows a logic block diagram of a test circuit 1300 for detecting defects in a SAR ADC according to an embodiment of the present application. The SAR ADC is based on a redundant coding design and is configured to convert an input voltage V in Converted into output digital code D out , where the input voltage V in Can be quantized into a value in the range of 0 to M-1, and output digital code D out can be represented by a K-bit binary number, where M and K are both positive integers, and 2 K >M.

[0133] like Fig.13 As shown, the test circuit 1300 includes an input unit 1310, a conversion control unit 1320, and a judgment unit 1330. The input unit 1310 is configured to input a defect-sensitive input quantity into the SAR ADC, and the defect-sensitive input quantity can be represented by a plurality of K-bit binary numbers. The conversion control unit 1320 is configured to control the SAR ADC to perform analog-to-digital conversion on the defect-sensitive input quantity, and the control includes: step a: setting the kth bit in the K-bit binary number output by the SAR ADC to a fixed value, where 1≤k≤K; step b: controlling the SAR ADC to perform successive approximation conversion on the defect-sensitive input quantity to determine the values ​​of the other bits in the K-bit binary number except the kth bit, thereby generating an output digital code D out (k); and step c: changing the value of k in the range of 1 to K, and repeating steps a and b until K corresponding output digital codes D are generated out (k). The judgment unit 1330 is configured to output the K digital codes D based on the above out (k) Determine whether the SAR ADC is defective.

[0134] The test circuit 1300 and Figure 1 The test circuit 1300 is similar to the test circuit 200 shown in the figure, except that the test circuit 1300 is not integrated into the analog-to-digital converter, but can be used independently, so that different SAR ADCs can be tested. For more details about the test circuit 1300, please refer to the description of the test circuit 200 above, which will not be repeated here.

[0135] It should be noted that the device or circuit embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be realized through a specific interface, and the indirect coupling or communication connection of the device or unit can be electrical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, the steps of the method described above can be omitted or added as needed. In addition, multiple steps can be executed simultaneously or sequentially. When multiple different steps are executed sequentially, the execution order may also be different in different embodiments.

[0136] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for enabling a computer device (which may be a personal computer, a mobile terminal, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0137] A person skilled in the art may understand and implement other changes to the disclosed embodiments by studying the specification, the disclosed contents, the drawings and the appended claims. In the claims, the word "comprising" does not exclude other elements and steps, and the words "a" and "an" do not exclude the plurality. In the actual application of this application, a part may perform the functions of multiple technical features cited in the claims. Any reference signs in the claims should not be construed as limiting the scope.< / k> < / k> < / k> < / k> < / k> < / k> < / k> < / k> < / k> < / k> < / k> < / k> < / k> < / k> < / k>

Claims

1. An analog-to-digital converter with a built-in self-detection function, characterized in that: The analog-to-digital converter comprises: Successive approximation analog-to-digital conversion circuit (SAR ADC) based on redundant coding design; An input unit configured to input a defect-sensitive input quantity into the SAR ADC, wherein the defect-sensitive input quantity is an input voltage that can be represented by a plurality of K-bit binary numbers, where K is a positive integer; A conversion control unit is configured to control the SAR ADC to perform analog-to-digital conversion on the defect-sensitive input quantity, wherein the control comprises: Step a: setting the kth bit of the K-bit binary number output by the SAR ADC to a fixed value; Step b: Control the SAR ADC to perform successive approximation conversion on the defect sensitive input quantity to determine the values ​​of the other bits in the K-bit binary number except the k-th bit, thereby generating an output digital code D out (k); and Step c: Change the value of k within the range of 1 to K, and repeat the steps a and b until K corresponding output digital codes D are generated. out (k); and A judging unit is configured to determine the K output digital codes D based on the K output digital codes D out (k) Determine whether the SAR ADC has a defect.

2. The analog-to-digital converter according to claim 1, characterized in that: The SAR ADC converts the input voltage into a quantization interval of 0 to (M-1), where M is a positive integer greater than 1, and M<2 K .

3. The analog-to-digital converter according to claim 1, characterized in that: The fixed value is 0 or 1.

4. The analog-to-digital converter according to claim 3, characterized in that: The conversion control unit includes a setting circuit, which generates a rewrite signal for setting the kth bit of the K-bit binary number to a fixed value based on a setting trigger signal, a polarity signal and an initial control value, wherein the setting trigger signal indicates that the kth bit of the K-bit binary number is to be reset, the polarity signal indicates that the fixed value is 0 or 1, and the initial control value indicates an initial value of the kth bit of the codeword provided by the successive approximation logic circuit in the SARADC.

5. The analog-to-digital converter according to claim 1, characterized in that: The most significant bit of the K-bit binary number corresponds to k=K, the least significant bit of the K-bit binary number corresponds to k=1, and the conversion control unit is configured to reduce the value of k from K to 1 one by one.

6. The analog-to-digital converter according to claim 1, characterized in that: The judgment unit further includes a storage module, which is configured to store the K output digital codes D out (k).

7. The analog-to-digital converter according to claim 6, characterized in that: The determining unit is further configured to: The K output digital codes D out The difference between the maximum and minimum values ​​in (k) is compared with a predefined threshold ε; When the difference is less than the predefined threshold ε, it is determined that the SAR ADC has no defects; as well as When the difference is greater than or equal to the predefined threshold ε, it is determined that the SAR ADC has a defect.

8. The analog-to-digital converter according to claim 1, characterized in that: The number of the defect-sensitive input quantities is multiple, the input unit is configured to input the multiple defect-sensitive input quantities into the SAR ADC in sequence, and the conversion control unit is configured to perform the operations of steps a to c on each defect-sensitive input quantity and obtain corresponding K output digital codes D out (k), the judgment unit is configured to output K digital codes D corresponding to each defect sensitive input quantity. out (k) Determine whether the SAR ADC has a defect.

9. The analog-to-digital converter according to claim 1, characterized in that: The judging unit is further configured to output the K digital codes D out (k) Determining the defect type of the SAR ADC.

10. The analog-to-digital converter according to claim 1, characterized in that: The SAR ADC includes a redundant capacitor array.

11. A method for detecting defects in an analog-to-digital conversion circuit, characterized in that: The method comprises: Inputting a defect-sensitive input quantity into a successive approximation analog-to-digital conversion circuit (SARADC) based on redundant coding design, wherein the defect-sensitive input quantity is an input voltage that can be represented by a plurality of K-bit binary numbers; Controlling the SAR ADC to perform analog-to-digital conversion on the defect-sensitive input quantity, the controlling comprising: Step a: setting the kth bit of the K-bit binary number output by the SAR ADC to a fixed value; Step b: Control the SAR ADC to perform successive approximation conversion on the defect sensitive input quantity to determine the values ​​of the other bits in the K-bit binary number except the k-th bit, thereby generating an output digital code D out (k); and Step c: Change the value of k within the range of 1 to K, and repeat the steps a and b until K corresponding output digital codes D are generated. out (k); and Based on the K output digital codes D out (k) Determine whether the SAR ADC has a defect.

12. The method according to claim 11, characterized in that The SAR ADC converts the input voltage into a quantization interval of 0 to (M-1), where M is a positive integer greater than 1, and M<2 K .

13. The method according to claim 11, characterized in that Setting the kth bit of the K-bit binary number output by the SAR ADC to a fixed value includes: setting the kth bit of the K-bit binary number output by the SAR ADC to 0 or 1.

14. The method according to claim 13, characterized in that Setting the kth bit of the K-bit binary number output by the SAR ADC to 0 or 1 comprises: generating a rewrite signal for setting the kth bit of the K-bit binary number to a fixed value based on a set trigger signal, a polarity signal, and an initial control value, wherein the set trigger signal indicates that the kth bit of the K-bit binary number is to be reset, the polarity signal indicates that the fixed value is 0 or 1, and the initial control value indicates an initial value of the kth bit of the codeword provided by the successive approximation logic circuit of the SAR ADC; and The k-th bit of the K-bit binary number output by the SAR ADC is set to 0 or 1 based on the rewrite signal.

15. The method according to claim 11, characterized in that The most significant bit of the K-bit binary number corresponds to k=K, the least significant bit of the K-bit binary number corresponds to k=1, and changing the value of k within the range of 1 to K includes: decreasing the value of k from K to 1 one by one.

16. The method according to claim 11, characterized in that The method further comprises: Store the K output digital codes D out (k).

17. The method according to claim 16, characterized in that Based on the K output digital codes D out (k) Determining whether the SAR ADC has a defect includes: The K output digital codes D out The difference between the maximum and minimum values ​​in (k) is compared with a predefined threshold ε; When the difference is less than the predefined threshold ε, it is determined that the SAR ADC has no defects; and When the difference is greater than or equal to the predefined threshold ε, it is determined that the SAR ADC has a defect.

18. The method according to claim 11, characterized in that The number of the defect-sensitive input quantities is multiple, and the method further includes: Inputting the plurality of defect-sensitive input quantities into the SAR ADC in sequence; Perform the operations of steps a to c for each defect-sensitive input quantity and obtain the corresponding K output digital codes D out (k); and Based on the K output digital codes D corresponding to each defect sensitive input out (k) Determine whether the SAR ADC has a defect.

19. The method according to claim 11, characterized in that The method further comprises: Based on the K output digital codes D out (k) Determining the defect type of the SAR ADC.

20. A test circuit for detecting defects in an analog-to-digital conversion circuit, characterized in that: The test circuit comprises: An input unit configured to input a defect-sensitive input quantity into a successive approximation analog-to-digital conversion circuit (SAR ADC) based on redundant coding design, wherein the defect-sensitive input quantity is an input voltage that can be represented by a plurality of K-bit binary numbers, where K is a positive integer; A conversion control unit is configured to control the SAR ADC to perform analog-to-digital conversion on the defect-sensitive input quantity, wherein the control comprises: Step a: setting the kth bit of the K-bit binary number output by the SAR ADC to a fixed value; Step b: Control the SAR ADC to perform successive approximation conversion on the defect sensitive input quantity to determine the values ​​of the other bits in the K-bit binary number except the k-th bit, thereby generating an output digital code D out (k); and Step c: Change the value of k within the range of 1 to K, and repeat the steps a and b until K corresponding output digital codes D are generated. out (k); and A judging unit is configured to determine the K output digital codes D based on the K output digital codes D out (k) Determine whether the SAR ADC has a defect.

Citation Information

Patent Citations

  • Methods and circuits for encoding and transmitting numerical values ​​from analog-to-digital conversion processing.

    CN102291143A

  • Analog to digital converters

    CN104917524A

  • Successive approximation analog to digital converter testing method and circuit

    CN106712772A

  • Successive approximation register analog to digital converter and self-checking method thereof

    CN107171667A

  • Capacitance measurement circuit and measurement method based on analog-to-digital converter

    CN112202449A