Calibration circuit and calibration method for ADC
10862498 ยท 2020-12-08
Assignee
Inventors
Cpc classification
H03M1/68
ELECTRICITY
H03M1/1033
ELECTRICITY
H03M1/468
ELECTRICITY
H03M1/462
ELECTRICITY
International classification
Abstract
The invention discloses a calibration circuit and a calibration method for an analog-to-digital converter (ADC). The calibration method of the ADC includes the following steps: (a) resetting the voltage at the first input of the comparator and the voltage at the second input of the comparator; (b) changing a terminal voltage of at least one capacitor in the first capacitor group; (c) the ADC generating a first digital code; (d) after the first digital code is obtained, resetting the voltage at the first input of the comparator and the voltage at the second input of the comparator; (e) changing a terminal voltage of at least one capacitor in the third capacitor group; and (f) the ADC generating a second digital code. The first digital code and the second digital code are used to correct the output of the ADC.
Claims
1. A method for calibrating an analog-to-digital converter (ADC), the ADC including a bridge digital-to-analog converter (DAC), the bridge DAC including a first capacitor array and a second capacitor array, the first capacitor array being coupled to a first input terminal of a comparator of the ADC, the second capacitor array being coupled to a second input terminal of the comparator, the first capacitor array including a first capacitor group, a second capacitor group and a first bridge capacitor, the first capacitor group being electrically connected to the comparator, the second capacitor group being coupled to the comparator through the first bridge capacitor, the second capacitor array including a third capacitor group, a fourth capacitor group and a second bridge capacitor, the third capacitor group being electrically connected to the comparator, and the fourth capacitor group being coupled to the comparator through the second bridge capacitor, the method comprising: (a) resetting a voltage of the first input terminal of the comparator and a voltage of the second input terminal of the comparator; (b) changing a terminal voltage of at least one capacitor in the first capacitor group; (c) the ADC generating a first digital code; (d) resetting the voltage of the first input terminal of the comparator and the voltage of the second input terminal of the comparator after the first digital code is generated; (e) changing a terminal voltage of at least one capacitor in the third capacitor group; and (f) the ADC generating a second digital code; wherein the first digital code and the second digital code are utilized to correct an output of the ADC.
2. The method of claim 1, wherein step (b) causes at least one capacitor in the first capacitor group to switch from a first voltage to a third voltage, step (c) causes at least one capacitor in the fourth capacitor group to switch from a second voltage to a fourth voltage, and a voltage difference between the first voltage and the third voltage is substantially equal to a voltage difference between the second voltage and the fourth voltage.
3. The method of claim 2, wherein the first voltage is equal to the second voltage, and the third voltage is equal to the fourth voltage.
4. The method of claim 2, wherein step (e) causes at least one capacitor in the third capacitor group to switch from a fifth voltage to a seventh voltage, step (f) causes at least one capacitor in the second capacitor group to switch from a sixth voltage to an eighth voltage, a voltage difference between the fifth voltage and the seventh voltage is substantially equal to a voltage difference between the sixth voltage and the eighth voltage, and a voltage difference between the first voltage and the third voltage is substantially equal to a voltage difference between the fifth voltage and the seventh voltage.
5. The method of claim 4, wherein the fifth voltage is equal to the sixth voltage, and the seventh voltage is equal to the eighth voltage.
6. A calibration circuit for calibrating an analog-to-digital converter (ADC), the ADC including a bridge digital-to-analog converter (DAC), the bridge DAC including a first capacitor array and a second capacitor array, the first capacitor array being coupled to a first input terminal of a comparator of the ADC, the second capacitor array being coupled to a second input terminal of the comparator, the first capacitor array including a first capacitor group, a second capacitor group and a first bridge capacitor, the first capacitor group being electrically connected to the comparator, the second capacitor group being coupled to the comparator through the first bridge capacitor, the second capacitor array including a third capacitor group, a fourth capacitor group and a second bridge capacitor, the third capacitor group being electrically connected to the comparator, and the fourth capacitor group being coupled to the comparator through the second bridge capacitor, the calibration circuit comprising: a register; and a control circuit, coupled to the bridge DAC and the register and configured to perform a calibration procedure including following steps: (a) resetting a voltage of the first input terminal of the comparator and a voltage of the second input terminal of the comparator; (b) changing a terminal voltage of at least one capacitor in the first capacitor group; (c) storing a first digital code of the ADC to the register; (d) resetting the voltage of the first input terminal of the comparator and the voltage of the second input terminal of the comparator after the first digital code is generated; (e) changing a terminal voltage of at least one capacitor in the third capacitor group; (f) storing a second digital code of the ADC to the register; wherein the first digital code and the second digital code are utilized to correct an output of the ADC.
7. The calibration circuit of claim 6, wherein step (b) causes at least one capacitor in the first capacitor group to switch from a first voltage to a third voltage, step (c) causes at least one capacitor in the fourth capacitor group to switch from a second voltage to a fourth voltage, and a voltage difference between the first voltage and the third voltage is substantially equal to a voltage difference between the second voltage and the fourth voltage.
8. The calibration circuit of claim 7, wherein the first voltage is equal to the second voltage, and the third voltage is equal to the fourth voltage.
9. The calibration circuit of claim 7, wherein step (e) causes at least one capacitor in the third capacitor group to switch from a fifth voltage to a seventh voltage, step (f) causes at least one capacitor in the second capacitor group to switch from a sixth voltage to an eighth voltage, a voltage difference between the fifth voltage and the seventh voltage is substantially equal to a voltage difference between the sixth voltage and the eighth voltage, and a voltage difference between the first voltage and the third voltage is substantially equal to a voltage difference between the fifth voltage and the seventh voltage.
10. The calibration circuit of claim 9, wherein the fifth voltage is equal to the sixth voltage, and the seventh voltage is equal to the eighth voltage.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION OF THE EMBODIMENTS
(6) The following description is written by referring to terms of this technical field. If any term is defined in this specification, such term should be interpreted accordingly. In addition, the connection between objects or events in the below-described embodiments can be direct or indirect provided that these embodiments are practicable under such connection. Said indirect means that an intermediate object or a physical space exists between the objects, or an intermediate event or a time interval exists between the events.
(7) The disclosure herein includes calibration circuits and calibration methods for ADCs. On account of that some or all elements of the calibration circuits could be known, the detail of such elements is omitted provided that such detail has little to do with the features of this disclosure, and that this omission nowhere dissatisfies the specification and enablement requirements. Some or all of the processes of the calibration methods may be implemented by software and/or firmware, and can be performed by the calibration circuits or their equivalents. A person having ordinary skill in the art can choose components or steps equivalent to those described in this specification to carry out the present invention, which means that the scope of this invention is not limited to the embodiments in the specification.
(8)
(9) In the following description, it is assumed that the capacitance values of the capacitors 411, 412, 413, 451, 452, 453, 454, 455 are 4 C, 2 C, 1 C, 8 C, 4 C, 2 C, 1 C and 1 C, respectively, and the capacitance values of the capacitors 421, 422, 423, 461, 462, 463, 464, and 465 are 4 C, 2 C, 1 C, 8 C, 4 C, 2 C, 1 C and 1 C, respectively. In addition, in the following description, two ends of a capacitor are defined as a top plate and a bottom plate, respectively; the top plate refers to the end coupled to the comparator 205, whereas the bottom plate refers to the end not coupled to the comparator 205. Such definition is made only for the ease of discussion and not necessarily related to top and bottom in the actual circuit.
(10) Before the calibration starts, the control circuit 230 first controls the SA ADC not to receive any input signal. In the calibration process, the control circuit 230 first resets the voltages of the two input terminals of the comparator 205 of the SA ADC through the control signal Rst, that is, the control circuit 230 controls the positive and negative input terminals of the comparator 205 to have the same voltage (step S310). For example, in step 310, the control circuit 230 may control the switch 270 to turn on so that the voltages of the two input terminals of the comparator 205 are equal (as shown in
(11) After the reset operation is completed, the control circuit 230 controls the switch 270 to turn off, and then controls the bottom plate of the smallest capacitor 413 in the first capacitor group to be coupled to the first voltage V1 and controls the bottom plates of all capacitors in the fourth capacitor group to be coupled to the second voltage V2 (as shown in
(12) Next, the control circuit 230 controls the bottom plate of the smallest capacitor 413 in the first capacitor group to switch from the first voltage V1 to the third voltage V3, so as to increase the voltage difference between the two input terminals of the comparator 205 by a first voltage difference V1. The third voltage is different from the first voltage (as shown in
(13) Next, in several operation cycles (controlled by the clock signal) of the SA ADC, the successive approximation register (SAR) 220 generates a digital code Dn according to the outputs of the comparator 205, and the control circuit 230 then determines, according to the digital code Dn, the ON/OFF states of the switches SW4 to SW8 (i.e., determines the voltages (electrical potentials) to which each of the capacitors 461, 462, 463, 464 and 465 couples) (step S316). In other words, the SA ADC is subject to multiple capacitor switching operations, which determine the voltages of the bottom plates of the capacitors in the fourth capacitor group, and multiple comparison operations in step S316. The final switching state is shown in
(14) Next, the control circuit 230 resets the voltages of the two input terminals of the comparator 205 of the SA ADC again through the control signal Rst (as shown in
(15) After the reset operation is completed, the control circuit 230 controls the switch 270 to turn off, and then controls the bottom plate of the smallest capacitor 423 in the third capacitor group to be coupled to the fifth voltage V5 and controls the bottom plates of all capacitors in the second capacitor group to be coupled to the sixth voltage V6 (as shown in
(16) Next, the control circuit 230 controls the bottom plate of the smallest capacitor 423 in the third capacitor group to switch from the fifth voltage V5 to the seventh voltage V7, so as to increase the voltage difference between the two input terminals of the comparator 205 by a second voltage difference V2. The seventh voltage is different from the fifth voltage (as shown in
(17) Next, in several operation cycles (controlled by the clock signal) of the SA ADC, the SAR 220 generates the digital code Dn according to the outputs of the comparator 205, and the control circuit 230 then determines, according to the digital code Dn, the ON/OFF states of the switches SW4 to SW8 (i.e., determines the voltages (electrical potentials) to which each of the capacitors 451, 452, 453, 454 and 455 couples) (step S326). In other words, the SA ADC is subject to multiple capacitor switching operations, which determine the voltages of the bottom plates of the capacitors in the second capacitor group, and multiple comparison operations in step S326. The final switching state is shown in
(18) Finally, in some embodiments, the control circuit 230 calculates an average of the first digital code D1 and the second digital code D2 (step S330). More specifically, assuming that there is a voltage offset Vos=V.sub.+V.sub. between the positive input terminal (V.sub.+) and the negative input terminal (V.sub.) of the comparator 205, the first digital code D1 reflects the sum of the first voltage difference V1 and the voltage offset Vos, namely, D1=V1+Vos, and the second digital code D2 reflects the difference between the second voltage difference V2 and the voltage offset Vos, namely, D2=V2Vos. The average of the first digital code D1 and the second digital code D2 is (D1+D2)/2=(V1+V2)/2. When the capacitor 413 and the capacitor 423 are substantially the same (i.e., V1=V2=V), (D1+D2)/2=V. In other words, (D1+D2)/2 can represent the analog ratio (which is also the digital ratio) of the capacitance value of the capacitor 413 to the capacitance value of the smallest capacitor (454 or 455) in the second capacitor group, or represent the analog ratio (which is also the digital ratio) of the capacitance value of the capacitor 423 to the capacitance value of the smallest capacitor (464 or 465) in the fourth capacitance group. For the example circuits of
(19) The control circuit 230 may calculate the calibration factor of the SA ADC according to the average R. The calibration factor is the ratio of the average R to the ideal weight of the smallest capacitor in the first capacitor group (i.e., the capacitor 413) or to the ideal weight of the smallest capacitor in the third capacitor group (i.e., the capacitor 423). The circuit (not shown) that follows the SA ADC (i.e., the post-stage circuit of the SA ADC) can correct, according to the calibration factor , the digital code Dn generated by the SA ADC. Take the first capacitor array as an example, because the ideal digital weights (decimal) of the capacitors 454, 453, 452, 451, 413, 412 and 411 are 1, 2, 4, 8, 16, 32 and 64, respectively, the calibration factor is 14/16. Only the first capacitor group and the third capacitor group need correct the weight, while the second capacitor group and the fourth capacitor group need not correct the weight. After corrected with the calibration factor , the actual weights of the capacitors 413 (or 423), 412 (or 422), 411 (or 421) become 16*=14, 32*=28, and 64*=56, respectively.
(20) In some embodiments, the control circuit 230 does not calculate the average R and the calibration factor . Instead, the circuit that follows the SA ADC reads the first digital code D1 and the second digital code D2 from the register 250 and calculate the average R and the calibration factor accordingly.
(21) The invention has the following advantages: (1) there is no need to calibrate the offset of the comparator; (2) there is no need to calibrate the capacitance values of the bridge DAC 210; (3) the calibration factor of the ADC can be obtained quickly (only two digital codes are needed); and (4) no specific input signal is required.
(22) The above-mentioned calibration process can be summarized in
(23) In some embodiments, V1=V2 and V3=V4. In some embodiments, V5=V6 and V7=V8. In other embodiments, V1=V2=V5=V6 and V3=V4=V7=V8. The voltages V1 to V8 may be generated by the reference voltage generating unit 260.
(24) Although the above description takes SA ADC as an example, the calibration circuit and the calibration method of the present invention can be applied to other circuits employing a bridge DAC, such as the analog gain stage of an operational amplifier. For operational amplifiers, whether the operational amplifier has offset or not, the present invention can obtain the ratio of the equivalent capacitance value on the left side of the bridge capacitor and to the equivalent capacitance value on the right side of the bridge capacitor.
(25) Since a person having ordinary skill in the art can appreciate the implementation detail and the modification thereto of the present method invention through the disclosure of the device invention, repeated and redundant description is thus omitted. Please note that there is no step sequence limitation for the method inventions as long as the execution of each step is applicable. Furthermore, the shape, size, and ratio of any element and the step sequence of any flow chart in the disclosed figures are exemplary for understanding, not for limiting the scope of this invention.
(26) The aforementioned descriptions represent merely the preferred embodiments of the present invention, without any intention to limit the scope of the present invention thereto. Various equivalent changes, alterations, or modifications based on the claims of the present invention are all consequently viewed as being embraced by the scope of the present invention.