Nonlinear compensation circuit and method for sampling capacitor of successive approximation analog-to-digital converter
By designing the nonlinear compensation circuit of the resistor voltage dividing signal generator and the compensation logic in the successive approximation analog-to-digital converter, the problem of correcting the nonlinear error of the sampling capacitor under high signal amplitude is solved, and a low-cost, low-power consumption circuit is realized. Integral nonlinear correction improves the performance of analog-to-digital converters.
Patent Information
- Application Number
- CN202410240939.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-03-04
AI Technical Summary
In existing successive approximation analog-to-digital converters, the nonlinear error of the sampling capacitor is difficult to effectively correct under high signal amplitude, resulting in an increase in the integral nonlinear error and affecting the accuracy of analog-to-digital conversion. Traditional circuits pay less attention to the nonlinearity of the sampling capacitor. Linear correction increases chip production costs.
A nonlinear compensation circuit including a resistor voltage-dividing signal generator, a gate, a capacitor array, a comparator, successive approximation logic and compensation logic is designed. Through multi-bit voltage test signals and pseudo-random number sequences, the sampling capacitance is realized. Individual correction of nonlinearity, reducing power consumption and cost.
Through the correction method of this circuit, it can reach or approach the integral nonlinear index achieved by using high linear capacitors, reduce analog-to-digital conversion errors, reduce chip production costs, and improve the efficiency of the analog-to-digital converter.
Smart Images

Figure CN118074714B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of integrated circuits, and in particular to a circuit and method for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter. Background Art
[0002] Most successive approximation (SAR) analog-to-digital converters (ADCs) use switched capacitor circuits for sampling. The capacitors provided by low-cost integrated circuit production processes have voltage coefficients, and the integral nonlinearity (INL) of the analog-to-digital converters implemented with such capacitors becomes larger, especially when the input signal amplitude becomes higher. In order to reduce the INL error of the analog-to-digital conversion, correction is required.
[0003] The nonlinearity of the sampling capacitor is usually included in the nonlinear error caused by capacitor mismatch. The traditional SAR ADC circuit focuses on the problem of capacitor mismatch, pays less attention to the nonlinear correction of the sampling capacitor when the input swing is large, and rarely corrects the nonlinearity of the sampling capacitor alone. However, when the input signal amplitude is high enough, it is necessary to correct the capacitor nonlinearity first and then correct the nonlinear error caused by capacitor mismatch. The correction method for capacitor nonlinearity should be low-cost, low-power, and high-efficiency. Summary of the invention
[0004] The purpose of the present application is to provide a circuit and method for nonlinear compensation of the sampling capacitor of a successive approximation analog-to-digital converter, which can correct the nonlinearity of the capacitor alone and easily reach or approach the INL index that can only be achieved by using high-linearity capacitors under the same conditions, thereby reducing the chip production cost.
[0005] The present application discloses a circuit for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter, comprising:
[0006] A resistor voltage-dividing signal generator, used to generate a multi-bit voltage test signal;
[0007] a first gate connected to the resistor voltage division signal generator and selecting one of the multi-bit voltage test signals;
[0008] A second gate, used for gate a chip external input signal and one of the voltage test signals output by the first gate;
[0009] A capacitor array, wherein one end of each capacitor in the capacitor array is respectively connected to one of the chip external input signal or the voltage test signal output by the first gate, and one of the first reference voltage or the second reference voltage, and the other end of each capacitor in the capacitor array is connected to a fixed potential through a switch;
[0010] A comparator, wherein a first input terminal of the comparator is connected to the other end of each capacitor in the capacitor array, and a second input terminal of the comparator is connected to the fixed potential;
[0011] a successive approximation logic connected to an output terminal of the comparator and outputting a digital signal to the capacitor array according to a comparison result of the comparator;
[0012] a compensation logic, the compensation logic being connected to the successive approximation logic and configured to determine, according to the digital signal, a normalization interval in which the digital signal is located and to query a compensation value corresponding to the normalization interval from a compensation lookup table; and
[0013] The modified digital-to-analog converter is used to convert the compensation value into an analog signal and output the analog signal to the first input terminal of the comparator.
[0014] In a preferred embodiment, it also includes:
[0015] A pseudo-random number generator, which is connected to the compensation logic and is used to generate a pseudo-random sequence; wherein the compensation logic determines an interval correction value according to the pseudo-random sequence and a preset variable, and the compensation logic determines a normalized interval in which the digital signal is located according to the interval correction value and the digital signal, and queries a compensation value corresponding to the normalized interval from a compensation lookup table.
[0016] In a preferred example, when the current value in the pseudo-random sequence is 1, the interval correction value is +Δ or -Δ, and when the current value in the pseudo-random sequence is 0, the interval correction value is -Δ or +Δ, wherein Δ is the preset variable, and the compensation logic adds the normalized interval of the digital signal determined according to the digital signal to the interval correction value to obtain a corrected normalized interval.
[0017] In a preferred example, the resistor voltage-dividing signal generator includes m resistors connected in series to a third reference voltage and a ground terminal, and outputs m voltage test signals to the first selector.
[0018] In a preferred example, the first gate is a 1 / m gate.
[0019] In a preferred embodiment, m is 4, 8, 16 or 32.
[0020] In a preferred example, the second gate is a half gate.
[0021] In a preferred example, the capacitor array determines, according to the digital signal, that one end of each capacitor is connected to the first reference voltage or the second reference voltage.
[0022] The present application discloses a method for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter, which is applied to the above-mentioned circuit for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter. The method comprises:
[0023] The second gate selects one of the voltage test signals output by the first gate;
[0024] Under a fourth reference voltage, outputting a multi-bit voltage test signal to one end of each capacitor of the capacitor array in sequence, and obtaining a normalized first digital signal measurement value under the fourth reference voltage according to a digital signal output by the successive approximation logic;
[0025] Under a fifth reference voltage, sequentially output a multi-bit voltage test signal to one end of each capacitor of the capacitor array, and obtain a normalized second digital signal measurement value under the fifth reference voltage according to a digital signal output by the successive approximation logic, wherein the fifth reference voltage is much smaller than the fourth reference voltage; and
[0026] The difference between the first digital signal measurement value and the second digital signal measurement value is used as the compensation value and stored in the compensation lookup table of the compensation logic.
[0027] In a preferred example, the fifth reference voltage is one quarter of the fourth reference voltage.
[0028] In the implementation manner of the present application, the capacitor nonlinearity is corrected alone, and the INL index that can be achieved or approached by using a high linear capacitor under the same conditions can be easily reached. The correction method only requires simple digital calculations and a small amount of analog circuits, reducing power consumption and cost.
[0029] The specification of the present application records a large number of technical features, which are distributed in various technical solutions. If all possible combinations of technical features of the present application (i.e., technical solutions) are to be listed, the specification will be too long. In order to avoid this problem, the various technical features disclosed in the above-mentioned invention content of the present application, the various technical features disclosed in the various embodiments and examples below, and the various technical features disclosed in the accompanying drawings can be freely combined with each other to form various new technical solutions (these technical solutions should all be regarded as having been recorded in this specification), unless the combination of such technical features is technically infeasible. For example, in one example, feature A+B+C is disclosed, and in another example, feature A+B+D+E is disclosed, and features C and D are equivalent technical means that play the same role. Technically, only one can be used, and it is impossible to use them at the same time. Feature E can be combined with feature C technically. Then, the solution of A+B+C+D should not be regarded as having been recorded because it is technically infeasible, and the solution of A+B+C+E should be regarded as having been recorded. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of a resistor voltage divider signal generator and a gate according to an embodiment of the present application.
[0031] Figure 2 It is a schematic diagram of a circuit for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter according to an embodiment of the present application.
[0032] Figure 3 Schematic diagram of a total sampling capacitor according to an embodiment of the present application.
[0033] Figure 4 is a schematic diagram of normalized INL error curves under different reference voltages according to an embodiment of the present application.
[0034] Figure 5 It is a schematic diagram of the INL error before and after the nonlinearity of the sampling capacitor is compensated according to an embodiment of the present application.
[0035] Figure 6 It is a schematic diagram of a circuit for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter according to another embodiment of the present application.
[0036] Figure 7 It is a schematic diagram of the change of the INL interval after adding random disturbance according to an embodiment of the present application.
[0037] Figure 8 The present invention is a flowchart of a method for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter according to one embodiment of the present application. DETAILED DESCRIPTION
[0038] In the following description, many technical details are provided to help readers better understand the present application. However, those skilled in the art can understand that the technical solution claimed in the present application can be implemented even without these technical details and various changes and modifications based on the following embodiments.
[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0040] Some explanations of terms:
[0041] Integral Nonlinearity (INL) is the error value of the point where the error between the analog value and the true value corresponding to all numerical points of the analog-to-digital converter is the largest, that is, the distance where the output value deviates from the linearity the most. The unit is LSB, i.e. the least significant bit. INL is the mathematical integral of the DNL (Differential nonlinearity) error, i.e. an ADC with good INL is guaranteed to have good DNL.
[0042] The first embodiment of the present application relates to a circuit for nonlinear compensation of a sampling capacitor of a successive approximation register analog-to-digital converter (SAR ADC), referring to Figure 1 and Figure 2 As shown, the compensation circuit includes a resistor voltage divider signal generator (RDAC) 101, a first gate 102, a second gate 103, a capacitor array 104, a comparator 105, a successive approximation (SAR) logic 106, a compensation logic 107 and a modified digital-to-analog converter 108. The resistor voltage divider signal generator 101, the first gate 102 and the second gate 103 are connected in sequence. The second gate 103 is connected to the capacitor array 104. The capacitor array 104 and the modified digital-to-analog converter 108 are respectively connected to the input of the comparator 105, and the output of the comparator 105 is connected to the successive approximation logic 106 and the compensation logic 107 in sequence. The successive approximation logic 106 outputs a digital signal to the capacitor array 104.
[0043] refer to Figure 1As shown, the resistor voltage-dividing signal generator 101 is used to generate a multi-bit voltage test signal. The first selector 102 is connected to the resistor voltage-dividing signal generator 101 and selects one of the multi-bit voltage test signals. In one embodiment, the resistor voltage-dividing signal generator 101 includes m resistors R connected in series between the third reference voltage VREF and the ground terminal gnd, and outputs m voltage test signals to the first selector 102. In one embodiment, the first selector 102 is a one-m-th selector. In one embodiment, m is 4, 8, 16 or 32. It should be understood that in the embodiment of the present application, m can be any positive integer, and the present invention is not limited thereto.
[0044] The resistor voltage-dividing signal generator 101 generates and outputs m voltage test signals from V1 to VREF to the first selector 102, such as V1, V2, V3, ..., Vm-3, Vm-2, Vm-1 and VREF, and the voltages between two adjacent resistors R differ by VREF / m. The voltages of the m voltage test signals are sequentially selected by the first selector 102. For example, taking m=8 as an example, 8 resistors R are connected in series between VREF and the ground terminal gnd, and the resistor voltage-dividing signal generator 101 generates and outputs VREF / 8, 2*VREF / 8, 3*VREF / 8, ..., 7*VREF / 8, VREF to the first selector 102 respectively. The first selector 102 is a 1 / 8 selector and sequentially outputs VREF / 8, 2*VREF / 8, 3*VREF / 8, ..., 7*VREF / 8, VREF to the second selector 103.
[0045] The second gate 103 is used to gate the chip external input signal Vin and one of the voltage test signals output from the first gate 101, and output the signal Ain. In one embodiment, the second gate 102 is a half gate. It should be understood that the second gate 103 is used to realize the selection of the working mode and the test mode. When the second gate 103 gates the voltage test signal output by the first gate 101 to the successive approximation logic 106, the test mode is entered at this time. In the test mode, the nonlinear measurement of the sampling capacitor is realized and the compensation value obtained by the measurement is stored in the compensation lookup table (Lookup table, LUT) of the compensation logic 107. When the second gate 103 gates the chip external input signal Vin, the working mode is entered at this time, and the SAR ADC performs analog-to-digital conversion on the chip external input signal Vin, and the compensation logic 107 can realize the nonlinear compensation of the sampling capacitor for the result of the analog-to-digital conversion.
[0046] refer to Figure 2 As shown, the successive approximation analog-to-digital converter is an n-bit ADC, and the capacitor array 104 includes n sampling capacitors. The capacitance values of the n sampling capacitors from low to high are C, 2C, 2 2C. ……. 2 n-1 C. In one embodiment, n is 4, 8, 16 or 32. It should be understood that in the embodiments of the present application, n can be any positive integer, and the present invention is not limited thereto.
[0047] Specifically, one end of each capacitor in the capacitor array 104 is respectively connected to the output Ain signal of the second gate 103 (i.e., the chip external input signal Vin or the voltage test signal output by the first gate 101). One end of each capacitor in the capacitor array 104 is also connected to one of the first reference voltage Refp or the second reference voltage Refn, for example, according to the digital signal obtained by the SAR logic, it is confirmed whether one end of each capacitor is connected to the first reference voltage Refp or the second reference voltage Refn. The other end of each capacitor in the capacitor array 104 is connected to a fixed potential (e.g., ground terminal gnd) through a switch sp. The first input end of the comparator 105 is connected to the other end of each capacitor in the capacitor array 104, and the second input end of the comparator 105 is connected to a fixed potential (e.g., ground terminal gnd). The successive approximation logic 106 is connected to the output end of the comparator 105 and outputs a digital signal D(n-1), D(n-2), ..., D(0) to the capacitor array 104 according to the comparison result of the comparator 105. The capacitor array 104 determines whether one end of each capacitor is connected to the first reference voltage Refp or the second reference voltage Refn according to the digital signals D(n-1), D(n-2), . . . , D(0).
[0048] The sampling capacitor is usually based on a binary capacitor array. The capacitor with the least significant bit (LSB) weight is 2^0*C, and the capacitor with the most significant bit (MSB) weight is 2^n-1. There are n capacitors in total. The process of implementing n-bit ADC conversion encoding is as follows:
[0049] 1. The input signal Ain is connected to one port of all sampling capacitors through the switch sin, and the other port of all capacitors is connected to the switch sp. The switch sp is connected to a fixed potential. Through reasonable timing control, the input signal Ain can be sampled on a binary-based capacitor array.
[0050] 2. In addition to the input signal Ain, the sampling capacitor is also connected to a fixed reference voltage Refp / Refn. After sampling, whether Refp or Refn is connected to the capacitor is determined based on the value of the code D(n-1), D(n-2), ..., D(0) output by the successive approximation logic 106. After sampling, the successive approximation logic 106 will connect the highest bit of the sampling capacitor to Refp and the rest to Refn. This is equivalent to D(n-1) = 1, D(n-2), ..., D(0) = 0.
[0051] 3. After the operation in step 2, the signal at the input end of the comparator 105 changes from Ain to Ain-1 / 2*(Refp-Refn), and then the comparator 105 compares the signal with the fixed potential, i.e., determines whether Ain-1 / 2*(Refp-Refn)>0 is established. If established, D(n-1)=1, otherwise D(n-1)=0. After determining the value of D(n-1), the successive approximation logic 106 sets D(n-2) to 1, and the remaining D(i) continue to maintain 0, i.e., D(n-3), ..., D(0)=0.
[0052] 4. The comparator 105 continues to determine whether the new input signal Ain-1 / 2*(Refp-Refn)*D(n-1)-1 / 4*(Refp-Refn) is greater than or less than 0, and sets the final value of D(n-2) according to the determination result.
[0053] 5. Repeat the operations of 3 and 4 until all values of D(n-1), D(n-2), ..., D(0) are determined, that is, n-bit ADC encoding is achieved.
[0054] Continue to refer Figure 2 As shown, the compensation logic 107 is also connected to the successive approximation logic 106, and is used to determine the normalization interval (i.e., the value between 0 and 1) where the digital signal is located according to the digital signal obtained by the successive approximation logic 106, and query the compensation value (or correction value) corresponding to the normalization interval from its compensation lookup table, and output the compensation value to the correction digital-to-analog converter (DAC) 108. The correction DAC 108 converts the compensation value into an analog signal and outputs it to the first input terminal of the comparator 105, thereby realizing the nonlinear error compensation of the sampling capacitor.
[0055] In this application, a correction DAC and compensation logic are added to the traditional SAR ADC circuit structure. In addition, in order to generate an input excitation signal, a set of resistor divider signal generators RDAC and gate MUX (such as Figure 1 The RDAC and the gate MUX are used to test the error caused by the nonlinearity of the capacitor in the test mode. The compensation logic is used to store the data of the correction of the nonlinearity of the capacitor. The correction DAC is used to convert the correction data into analog charge for compensation.
[0056] In the test mode, the connection between the input Ain of the sampling capacitor and the outside of the chip is disconnected and connected to the output of the RDAC and the strobe MUX (the output of the second strobe). Under different VREF conditions, the error value of the capacitor non-linearity is measured using the RDAC output level. This error value is stored in the compensation look-up table LUT of the compensation logic. The RDAC can be turned off to save power when the test mode ends. During the operation of the SAR ADC, the compensation logic determines the approximate range of the signal according to the output code of the SAR logic, and then compensates for the non-linearity of the sampling capacitor according to the previously determined correction value.
[0057] During the process of a traditional SAR ADC, it is assumed that Refp = Vref, Refn = 0, and Vin is a signal within the range of 0 to Vref. Therefore, Vin = k * Vref, where 0 < k < 1. Refer to Figure 3 As shown, according to the working principle of the SAR ADC, it can be known that when the conversion is completed, approximately a capacitance of k * Cs in the total sampling capacitor Cs is connected to Refp, and a capacitance of (1 - k) * Cs is connected to Refn. The capacitance value of the capacitor is correlated with the V voltage across the capacitor and can be expressed as C = (1 + V^3) * C0. According to this formula, the larger the voltage across the capacitor, the larger the capacitance value. According to the working principle of the SAR ADC, the final ADC coding error e can be expressed as e = Vref^3 * (k - k^3) - Vref^3 * [1 - k - (1 - k)^3]. This expression reaches its maximum value when k = 0.78. The error e is proportional to the cube of Vref, and e will increase sharply when Vref increases.
[0058] According to the error principle caused by capacitor non-linearity, the error caused by capacitor non-linearity at different input signals can be measured through testing. Figure 4 The schematic diagram of the INL error curve at different Vrefs is given. The INL error caused by capacitor non-linearity is proportional to the cube of Vref. Figure 4 This is an example of generating an input excitation signal. First, different VREF values are set, and different test values are generated through resistor voltage division. Different excitation signals are selected through a 1:m MUX to the SAR ADC to measure the capacitor non-linearity error at different signal amplitudes.
[0059] When the ADC tests the nonlinearity of the capacitor, two measurements are performed. In the first measurement, the resistor divider signal generator uses a higher Vref to obtain the normalized digital signal measurement value emax1. In the second measurement, a lower Vref is used to obtain the normalized digital signal measurement value emax2. For example, the Vref value used in the second measurement is 1 / 4 of the first one. The emax1 and emax2 obtained by the two calculations will differ by 64 times. The emax2 obtained in the second measurement is almost negligible. Therefore, the ADC encoding of the second test is close to the ideal value, containing only a small amount of capacitor nonlinearity error, and can be used as a benchmark value. The INL error caused by capacitor nonlinearity when Vref is high can be calculated by subtracting the two measurement values.
[0060] The principle of RDAC division of different amplitudes: The nonlinear error caused by the capacitor is not a fixed value in the entire signal range, but changes with the signal amplitude. The error e is a value that changes with the signal amplitude. When the signal is full or 0, e is very small. The error e reaches its maximum value when the signal amplitude is close to 0.78*VREF. Therefore, it is necessary to compensate for the nonlinear error of the capacitor according to different signal amplitudes.
[0061] The principle of nonlinear compensation is: divide the entire signal amplitude range into several ranges, set different compensation values in different ranges, and determine the compensation value of the current input signal by looking up a table (LUT). The compensation value is converted into the analog signal to be compensated through the DAC and deducted from the comparator input. Figure 5 The INL error before and after the nonlinearity of the sampling capacitor is compensated is shown in Figure 2. Figure 5 The solid line part shows the INL curve after the area correction. Figure 5 The dotted line part. Obviously, the maximum INL value of the dotted line part is much lower than that before correction.
[0062] from Figure 5 It can be seen that there are some mutation points in the corrected INL curve. The principle of generating these mutation points is that different correction values are set in different amplitude regions, resulting in discontinuous mutations at the boundaries of the amplitude regions. These mutations in INL are equivalent to introducing DNL errors.
[0063] To this end, this application introduces random perturbations in the correction, and the circuit structure is as follows Figure 6As shown, the compensation circuit includes a resistor voltage divider signal generator (not shown), a first gate (not shown), a second gate (not shown), a capacitor array 104', a comparator 105', a successive approximation logic 106', a compensation logic 107', a modified digital-to-analog converter 108' and a pseudo-random number generator (PRN) 109'. Unless otherwise specified, the resistor voltage divider signal generator (not shown), the first gate (not shown), the second gate (not shown), the capacitor array 104', the comparator 105', the successive approximation logic 106' work in the same manner as Figure 1 and Figure 2 The compensation circuit in FIG. 1 is similar. The pseudo-random number generator 109' is connected to the compensation logic 107' and is used to generate a pseudo-random sequence. The compensation logic 107' determines the interval correction value according to the pseudo-random sequence and the preset variable. The compensation logic 107' determines the normalized interval where the digital signal is located (i.e., updates the normalized interval where the digital signal is located) according to the interval correction value and the digital signal, and queries the compensation value corresponding to the normalized interval from the compensation lookup table.
[0064] In one embodiment, when the current value in the pseudo-random sequence is 1, the interval correction value may be +Δ, and when the current value in the pseudo-random sequence is 0, the interval correction value may be -Δ. Δ is a preset variable. The compensation logic 107' adds the normalized interval where the digital signal is located determined according to the digital signal to the interval correction value to obtain a corrected normalized interval. In another embodiment, when the current value in the pseudo-random sequence is 1, the interval correction value may be -Δ, and when the current value in the pseudo-random sequence is 0, the interval correction value may be +Δ.
[0065] In this way, the boundaries of the amplitude regions with different correction values are in random disturbance, and the discontinuous mutations occurring at the boundaries are suppressed. This reduces the deterioration of DNL caused by improving INL. For the change of the boundaries, refer to Figure 7 shown. Figure 7 (a) is the boundary of the normalized interval without adding random perturbations (shown by the dotted line in the figure). Figure 7 (b) shows the change in the boundary of the normalized interval when the interval correction value is +Δ. Figure 7 (c) shows the change in the boundary of the normalized interval when the interval correction value is -Δ.
[0066] In one example, for example, the random sequence is 1011000101, and there is no fixed pattern for the occurrence of 1 and 0 in the sequence. As mentioned above, the nonlinear correction of the ADC needs to first determine which interval the currently sampled signal is in (for example, one of the 8 ranges). Then the table is looked up to generate the corresponding compensation value according to which interval the current signal falls in. When the pseudo-random sequence is 1, add a Δ to the boundary of this range, and if it is 0, reduce the boundary of this range by a Δ. Δ is a value representing the signal range given in advance. The purpose of the above operation is to make the boundary of the corrected interval range change randomly. For example, the current sampling obtains a signal with a value of 0.76 in the normalized ADC, which falls within the range of 0.75 to 0.875. In theory, the correction value corresponding to the interval range of 0.75 to 0.875 should be used. However, the current random sequence value is exactly 1 (if it is 0, the boundary changes in the other direction), resulting in the original interval range becoming 0.75+0.1 to 0.875+0.1, where 0.1 is a preset variable. Obviously, 0.75 is no longer within this range, and the corresponding correction value within this range cannot be used. However, the original interval of 0.625 to 0.75 becomes 0.625+0.1 to 0.75+0.1 after adding Δ, so the actual correction value should be the corresponding correction value within this range.
[0067] The second embodiment of the present application also relates to a method for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter, which is applied to the above-mentioned circuit for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter. The process of the method is referred to as follows: Figure 8 As shown, the following steps are included:
[0068] Step 801: The second gate selects one of the voltage test signals output by the first gate.
[0069] Step 802: Under a fourth reference voltage, output a multi-bit voltage test signal to one end of each capacitor of the capacitor array in sequence, and obtain a normalized first digital signal measurement value emax1 under the fourth reference voltage according to a digital signal output by successive approximation logic.
[0070] Step 803: Under a fifth reference voltage, a multi-bit voltage test signal is sequentially output to one end of each capacitor of the capacitor array, and a normalized second digital signal measurement value emax2 under the fifth reference voltage is obtained according to the digital signal output by the successive approximation logic, wherein the fifth reference voltage is much smaller than the fourth reference voltage. In one embodiment, the fifth reference voltage is one quarter of the fourth reference voltage.
[0071] Step 804: Use the difference between the first digital signal measurement value and the second digital signal measurement value as a compensation value and store it in a compensation lookup table of the compensation logic.
[0072] When the test mode ends, the RDAC can be turned off to save power. During the operation of the SAR ADC, the input Ain of the sampling capacitor is connected to the external input signal Vin of the chip. The compensation logic determines the signal range according to the output code of the SAR logic, and then corrects the nonlinearity of the sampling capacitor according to the compensation value determined in the test mode.
[0073] The first embodiment is a circuit implementation method corresponding to the present embodiment. The technical details in the first embodiment can be applied to the present embodiment, and the technical details in the present embodiment can also be applied to the first embodiment.
[0074] It should be noted that in the application documents of this patent, relational terms such as first and second 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 the 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 "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements. In the application documents of this patent, if it is mentioned that an action is performed according to an element, it means that the action is performed at least according to the element, which includes two situations: performing the action only according to the element, and performing the action according to the element and other elements. Expressions such as multiple, multiple, and multiple include 2, 2 times, 2 kinds, and more than 2, more than 2 times, and more than 2 kinds.
[0075] This specification includes combinations of the various embodiments described herein. Individual references to an embodiment (e.g., "one embodiment" or "some embodiments" or "preferred embodiments") do not necessarily refer to the same embodiment; however, these embodiments are not mutually exclusive unless indicated as mutually exclusive or it is clear to a person skilled in the art that they are mutually exclusive. It should be noted that the word "or" is used in this specification in a non-exclusive sense unless the context clearly indicates or requires otherwise.
[0076] All documents mentioned in this specification are considered to be included in the disclosure of this application as a whole, so that they can be used as a basis for modification when necessary. In addition, it should be understood that the above is only a preferred embodiment of this specification and is not intended to limit the scope of protection of this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification should be included in the scope of protection of one or more embodiments of this specification.
[0077] In some cases, the actions or steps described in the claims may be performed in a different order than in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A circuit for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter, characterized in that: include: A resistor voltage-dividing signal generator, used to generate a multi-bit voltage test signal; a first gate connected to the resistor voltage division signal generator and selecting one of the multi-bit voltage test signals; A second gate, used for gate a chip external input signal and one of the voltage test signals output by the first gate; A capacitor array, wherein one end of each capacitor in the capacitor array is respectively connected to one of the chip external input signal or the voltage test signal output by the first gate, and one of the first reference voltage or the second reference voltage, and the other end of each capacitor in the capacitor array is connected to a fixed potential through a switch; A comparator, wherein a first input terminal of the comparator is connected to the other end of each capacitor in the capacitor array, and a second input terminal of the comparator is connected to the fixed potential; a successive approximation logic connected to an output terminal of the comparator and outputting a digital signal to the capacitor array according to a comparison result of the comparator; A compensation logic, the compensation logic being connected to the successive approximation logic and configured to determine a normalization interval in which the digital signal is located according to the digital signal and to query a compensation value corresponding to the normalization interval from a compensation lookup table; as well as The modified digital-to-analog converter is used to convert the compensation value into an analog signal and output the analog signal to the first input terminal of the comparator.
2. The circuit according to claim 1, characterized in that Also includes: A pseudo-random number generator, which is connected to the compensation logic and is used to generate a pseudo-random sequence; wherein the compensation logic determines an interval correction value according to the pseudo-random sequence and a preset variable, and the compensation logic determines a normalized interval in which the digital signal is located according to the interval correction value and the digital signal, and queries a compensation value corresponding to the normalized interval from a compensation lookup table.
3. The circuit according to claim 2, characterized in that When the current value in the pseudo-random sequence is 1, the interval correction value is +Δ, and when the current value in the pseudo-random sequence is 0, the interval correction value is -Δ, or: when the current value in the pseudo-random sequence is 1, the interval correction value is -Δ, and when the current value in the pseudo-random sequence is 0, the interval correction value is +Δ; wherein Δ is the preset variable, and the compensation logic adds the normalized interval of the digital signal determined according to the digital signal to the interval correction value to obtain a corrected normalized interval.
4. The circuit according to claim 1, characterized in that The resistor voltage division signal generator includes m resistors connected in series to a third reference voltage and a ground terminal, and outputs m voltage test signals to the first selector.
5. The circuit according to claim 4, characterized in that The first gate is a 1 / m gate.
6. The circuit according to claim 4, characterized in that The m is 4, 8, 16 or 32.
7. The circuit according to claim 1, characterized in that The second gate is a half gate.
8. The circuit according to claim 1, characterized in that The capacitor array determines, according to the digital signal, that one end of each capacitor is connected to the first reference voltage or the second reference voltage.
9. A method for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter, the method being applied to a circuit for nonlinear compensation of a sampling capacitor of a successive approximation analog-to-digital converter as claimed in any one of claims 1 to 8, characterized in that: The method comprises: The second gate selects one of the voltage test signals output by the first gate; Under a fourth reference voltage, outputting a multi-bit voltage test signal to one end of each capacitor of the capacitor array in sequence, and obtaining a normalized first digital signal measurement value under the fourth reference voltage according to a digital signal output by the successive approximation logic; Under a fifth reference voltage, sequentially output a multi-bit voltage test signal to one end of each capacitor of the capacitor array, and obtain a normalized second digital signal measurement value under the fifth reference voltage according to a digital signal output by the successive approximation logic, wherein the fifth reference voltage is less than the fourth reference voltage; and The difference between the first digital signal measurement value and the second digital signal measurement value is used as the compensation value and stored in the compensation lookup table of the compensation logic.
10. The method according to claim 9, characterized in that The fifth reference voltage is one quarter of the fourth reference voltage.
