This application is based upon and claims the benefit of priority from Japanese patent application No. 2009-185104, filed on Aug. 7, 2009, the disclosure of which is incorporated herein in its entirety by reference.
1. Field of the Invention
The present invention relates to an analog-digital converter circuit and a calibration method. In particular, the present invention relates to an analog-digital converter circuit including a calibration circuit that adjusts an offset voltage of a comparator, and to a method of adjusting an offset voltage of a comparator.
2. Description of Related Art
A typical analog-digital (A/D) converter circuit includes a comparator for converting an analog signal into a digital signal. Such a comparator has an offset voltage caused by manufacturing variations. As the offset voltage increases, the accuracy of the A/D converter decreases. U.S. Pat. No. 7,075,465 and Japanese Unexamined Patent Application Publication Nos. 2002-319863, 10-65542, and 08-279752 (the specification of U.S. Pat. No. 5,696,508) each disclose an analog-digital converter circuit including a calibration circuit that adjusts an offset voltage of a comparator.
In analog-digital converter circuits disclosed in the above-mentioned related arts, assuming that the calibration circuit for adjusting an offset voltage of a comparator has a calibration resolution A, an adjusted offset voltage falls within the range of 0 to Δ.
The present inventor has found a problem that it is impossible for analog-digital converter circuits disclosed in the above-mentioned related arts to set the upper limit of an adjusted offset voltage to be smaller than a calibration resolution A.
A first exemplary aspect of the present invention is an analog-digital converter circuit having a normal mode for converting a received analog signal into a digital signal, and a calibration mode for adjusting an offset voltage of a comparator, the analog-digital converter including: a first comparator having a first analog signal input terminal supplied with an analog signal, and a first reference signal input terminal supplied with a first reference signal, in the normal mode; and a first calibration circuit that adjusts an offset voltage of the first comparator. In the calibration mode, assuming that a calibration resolution of the first calibration circuit is Δ1, a potential difference between a reference signal supplied to the first analog signal input terminal and a reference signal supplied to the first reference signal input terminal is n1Δ1+Δ1/2 (where n1 is an integer).
A second exemplary embodiment of the present invention is an analog-digital converter circuit having a normal mode for converting a received analog signal into a digital signal, and a calibration mode for adjusting an offset voltage of a comparator, the analog-digital converter circuit including: a first comparator having a first analog signal input terminal supplied with an analog signal, and a first reference signal input terminal supplied with a first reference signal, in the normal mode; and a first calibration circuit that adjusts an offset voltage of the first comparator. The first calibration circuit includes: a first main calibration unit that adjusts an offset adjustment amount so that an adjusted offset voltage has a value in a range of 0 to Δ1 (where Δ1 is a calibration resolution of the first calibration circuit); and a first fine adjustment unit that shifts the offset adjustment amount by Δ1/2.
A third exemplary embodiment of the present invention is a calibration method that adjusts an offset voltage of a comparator by a calibration circuit having a calibration resolution Δ, the calibration method including: fixing a potential difference applied to two input terminals of the comparator to nΔ+Δ/2 (where n is an integer); changing a calibration signal supplied to the comparator from the calibration circuit; and determining an offset adjustment amount based on an output signal output from the comparator.
A fourth exemplary embodiment of the present invention is a calibration method that adjusts an offset voltage of a comparator by a calibration circuit having a calibration resolution Δ, the calibration method including: causing two input terminals of the comparator to be short-circuited; changing a calibration signal supplied to the comparator from the calibration circuit; determining an offset adjustment amount based on an output signal output from the comparator; and shifting the determined offset adjustment amount by Δ/2.
The present invention can provide a highly accurate analog-digital converter circuit by determining an offset adjustment amount assuming that a potential between input terminals of a comparator is nΔ+Δ/2 (where n is an integer), or by shifting the determined offset adjustment amount by Δ/2 after the offset adjustment amount is determined.
According to exemplary aspects of the present invention, it is possible to provide a highly accurate analog-digital converter circuit capable of setting the upper limit of an adjusted offset voltage to be smaller than a calibration resolution Δ of a calibration circuit.
The above and other exemplary aspects, advantages and features will be more apparent from the following description of certain exemplary embodiments taken in conjunction with the accompanying drawings, in which:
Exemplary embodiments of the present invention will be described in detail below with reference to the drawings. The present invention is not limited to the exemplary embodiments described below. To clarify the explanation, the following description and the drawings are abbreviated or simplified as appropriate.
Referring to
In a normal mode for performing a normal operation, the comparator CMP receives an analog input signal AIN at one input terminal, and also receives a reference voltage REF at the other input terminal. The reference voltage is a ground potential 0 V, for example. The comparator CMP binarizes the analog input signal AIN to “1 (H: High)” or “0 (L: Low)”, and outputs an output signal OUTcmp. In this case, the comparator CMP has an offset voltage caused due to production variations.
The digital-analog converter DAC is one embodiment of a calibration circuit for adjusting the offset voltage of the comparator CMP. The digital-analog converter DAC generates a calibration voltage Vcal based on a digital control signal. Assume herein that the resolution of the digital-analog converter DAC is Δ.
The switch SW is a switch that switches between the normal mode and a calibration mode for adjusting the offset voltage of the comparator CMP. In the normal mode, the analog input signal AIN is input to one input terminal of the comparator CMP through the switch SW. Meanwhile, in the calibration mode, a calibration reference voltage REFcal=REF+Δ/2 is input to one input terminal of the comparator CMP through the switch SW.
Further, a calibration input signal A1 is generated by adding the adjusted offset voltage OFFadj to the calibration reference voltage REFcal=REF+Δ/2. The calibration input signal A1 is input to one input terminal of the ideal comparator ICMP. The reference voltage REF is input to the other input terminal of the ideal comparator ICMP. Based on the output signal OUTcmp from the ideal comparator ICMP, the calibration voltage Vcal for compensating for the offset voltage OFF, i.e., for setting the adjusted offset voltage OFFadj to be as close to 0 V as possible can be determined.
The digital-analog converter DAC includes four current sources CS0, CS1, CS2, and CS3. Assuming that the amount of current generated by the current source CS0 is 1, the amounts of current generated by the current sources CS1, CS2, and CS3 are 2, 4, and 8, respectively. One end of each of the four current sources CS0, CS1, CS2, and CS3 is grounded. The other end of each of the three current sources CS0, CS1, and CS2 is connected to a node between the load resistor R1 and the NMOS transistor N1 through respective switches. The other end of the current source CS3 is connected to a node (output node) between the load resistor R2 and the NMOS transistor N2 through a switch.
As shown in
Referring next to
Referring now to
Condition 1 (OFF=2.9Δ) is described in detail below. When the calibration voltage Vcal is −4Δ, OFFadj=2.9Δ−4Δ=−1.1Δ, and thus, A1=−1.1Δ+Δ/2=−0.6Δ. Accordingly, when the calibration voltage Vcal≦−4Δ, the output of the comparator CMP is L. When the calibration voltage Vcal is −3Δ, OFFadj=2.9Δ−3Δ=−0.1Δ, and thus, A1=−0.1Δ+Δ/2=0.4Δ. Accordingly, the output of the comparator CMP switches to H, and the calibration is completed. In Condition 1, the final calibration voltage Vcalf=−3Δ, and a final adjusted offset voltage OFFadjf=2.9Δ−3Δ=−0.1Δ. That is, −Δ/2<OFFadjf≦Δ/2.
Condition 2 (OFF=2.1Δ) is described in detail below. When the calibration voltage Vcal is −3Δ, OFFadj=2.1Δ−3Δ=−0.9Δ, and thus, A1=−0.9Δ+Δ/2=−0.4Δ. Accordingly, when the calibration voltage Vcal≦−3Δ, the output of the comparator CMP is L. When the calibration voltage Vcal is −2Δ, OFFadj=2.1Δ−2Δ=0.1Δ, and thus, A1=0.1Δ+Δ/2=0.6Δ. Accordingly, the output of the comparator CMP switches to H, and the calibration is completed. Therefore, in Condition 2, the final calibration voltage Vcalf=2Δ, and the final adjusted offset voltage OFFadjf=2.1Δ−2Δ=0.1Δ. That is, −Δ/2<OFFadjf≦Δ/2.
Condition 3 (OFF=−0.2Δ) is described in detail below. When the calibration voltage Vcal is −Δ, OFFadj=−0.2Δ−1Δ=−1.2Δ, and thus, A1=−1.2Δ+Δ/2=−0.7Δ. Accordingly, when calibration voltage Vcal≦−Δ, the output of the comparator CMP is L. When the calibration voltage Vcal is 0Δ, OFFadj=−0.2Δ+0Δ=−0.2Δ, and thus, A1=−0.2Δ+Δ/2=0.3Δ. Accordingly, the output of the comparator CMP switches to H, and the calibration is completed. Therefore, in Condition 3, the final calibration voltage Vcalf=0Δ, and final adjusted offset voltage OFFadjf=−0.2Δ+0Δ=−0.2Δ. That is, −Δ/2<OFFadjf≦Δ/2.
Referring next to
Referring now to
Condition 1 (OFF=2.9Δ) is described in detail below. When the calibration voltage Vcal is −3Δ, A1=2.9Δ−3Δ=−0.1Δ, and thus, the output of the comparator CMP is L. When the calibration voltage Vcal is −2Δ, A1=2.9Δ−2Δ=0.9Δ, and thus, the output of the comparator CMP switches to H, and the calibration is completed. In Condition 1, the final calibration voltage Vcalf=2Δ, and the final adjusted offset voltage OFFadjf=2.9Δ−2Δ=0.9Δ. That is, 0<OFFadjf≦Δ.
Condition 2 (OFF=2.1Δ) is described in detail below. When the calibration voltage Vcal is −3Δ, A1=2.1Δ−3Δ=−0.9Δ, and thus, the output of the comparator CMP is L. When the calibration voltage Vcal is −2Δ, A1=2.1Δ−2Δ=0.1Δ. Accordingly, the output of the comparator CMP switches to H, and the calibration is completed. Therefore, in Condition 2, the final calibration voltage Vcalf=−2Δ, and the final adjusted offset voltage OFFadjf=2.1Δ−2Δ=0.1Δ. That is, 0<OFFadjf≦Δ.
Condition 3 (OFF=−0.2Δ) is described in detail below. When the calibration voltage Vcal is 0Δ, A1=−0.2Δ+0Δ=−0.2Δ, and thus, the output of the comparator CMP is L. When the calibration voltage Vcal is 1Δ, A1=−0.2Δ+1Δ=0.8Δ. Accordingly, the output of the comparator CMP switches to H, and the calibration is completed. Therefore, in Condition 3, the final calibration voltage Vcalf=1Δ, and the final adjusted offset voltage OFFadjf=−0.2Δ+1Δ=0.8Δ. That is, 0<OFFadjf≦Δ.
As described above, in the comparative example, the final adjusted offset voltage OFFadjf satisfies 0<OFFadjf≦Δ (Δ represents the resolution of the digital-analog converter DAC). It is known that when the analog-digital converter circuit includes multiple comparators, an average component of an offset (systematic offset) of the input/output characteristics of the analog-digital converter circuit causes deterioration in performance of a device. Thus, in order to eliminate the systematic offset, it is preferable to set an average value of the adjusted offset voltage of the comparator to be close to 0. In the comparative example, the average value of the offset voltage is theoretically equal to Δ/2.
Meanwhile, in the first exemplary embodiment, a potential difference between the inputs of the comparator CMP in the calibration mode is set to Δ/2. As a result, −Δ/2<OFFadjf≦Δ/2 is satisfied with respect to the final adjusted offset voltage OFFadjf. In short, the absolute value of the final adjusted offset voltage OFFadjf can be halved without changing the resolution Δ of the digital-analog converter DAC. Therefore, a more accurate A/D converter can be provided. It is most preferable to set the potential difference between the inputs of the comparator CMP in the calibration mode to Δ/2. Alternatively, if the input potential difference is set to n t+Δ/2 (where n is an integer), the same effects can be obtained. This is because “nΔ” can be recovered logically after the calibration operation.
In a parallel A/D converter including multiple combinations of the comparator CMP and the digital-analog converter DAC according to the first exemplary embodiment, −Δ/2<OFFadjf≦Δ/2 is satisfied for each comparator CMP. Further, the average value of the offset voltage can be theoretically set to 0. Therefore, a highly accurate A/D converter having no systematic offset can be provided.
The graph on the left side in the lower portion of
When the input of the comparator CMP has no offset voltage, the gain becomes high at the input potential difference (A−B)=0 at which the output signal of the comparator CMP switches. Thus, the comparator CMP has a high accuracy. Meanwhile, when the input of the comparator CMP has an offset voltage, the input potential difference (A−B) at which the output signal of the comparator CMP switches deviates from 0. As a result, the gain becomes lower and the accuracy of the comparator is decreased.
Next, a second exemplary embodiment of the present invention will be described with reference to
In the A/D converter shown in
In the calibration mode, the input terminal for the analog input signal AIN of the comparator CMP is always supplied with REF0+Δ/2 which is shifted from the default reference voltage REF0 to the positive side by Δ/2. The reference voltage input terminal of the comparator CMP is supplied with one of the reference voltages REF-3 to REF3 through one of the switches SW-3 to SW3 selected by the digital control signal DVcal.
When the digital control signal DVcal indicates 3 (DVcal=3), for example, the reference voltage REF-3 is input to the reference voltage input terminal of the comparator CMP. When the digital control signal DVcal indicates 0 (DVcal=0), the reference voltage REF0 is input to the reference voltage input terminal of the comparator CMP. When the digital control signal DVcal indicates −3 (DVcal=−3), the reference voltage REF3 is input to the reference voltage input terminal of the comparator CMP.
In short, when the input potential difference of the comparator CMP in the calibration mode is set to nΔ+Δ/2 (where n is an integer), the final adjusted offset voltage OFFadjf satisfies −Δ/2<OFFadjf≦Δ/2, as with the first exemplary embodiment. Therefore, the same effects as those of the first exemplary embodiment can be obtained.
Next, a third exemplary embodiment of the present invention will be described with reference to
Referring now to
The graph on the left side of
At the first bit (MSB), the calibration voltage Vcal=0 Δ and A1=OFF+Vcal+Δ/2=0.8Δ+Δ/2=1.3Δ. Thus, the output of the comparator CMP is 1. At the subsequent bit, the calibration voltage Vcal=−4Δ and A1=OFF+Vcal+Δ/2=0.8Δ−4Δ+Δ/2=−2.7Δ. Thus, the output of the comparator CMP is 1. Further, at the subsequent bit, the calibration voltage Vcal=−2Δ and A1=OFF+Vcal+Δ/2=0.8Δ−2Δ+Δ/2=−0.7Δ. Thus, the output of the comparator CMP is 1. At the final bit, the calibration voltage Vcal=−Δ and A1=OFF+Vcal+Δ/2=0.8Δ−Δ+Δ/2=0.3Δ. Thus, the output of the comparator CMP is 0.
In sum, the search result for the calibration voltage Vcal is “1110”. Then, when “1” is added to the search result “1110”, “1111” is obtained. Thus, the final calibration voltage Vcalf is set to −Δ (Vcalf=−Δ). As a result, the final adjusted offset voltage OFFadjf=OFF+Vcalf=0.8Δ−Δ=−0.2Δ.
The graph on the right side of
That is, the search result for the calibration voltage Vcal is “0011”. When “1” is added to the search result “0011”, “0100” is obtained. Thus, the final calibration voltage Vcalf is set to 4Δ (Vcalf=4Δ). As a result, the final adjusted offset voltage OFFadjf=OFF+Vcalf=−3.8Δ+4Δ=0.2Δ.
The graph on the left side of
At the first bit (MSB), the calibration voltage Vcal=0Δ and A1=OFF+Vcal=0.8Δ. Thus, the output of the comparator CMP is 1. At a subsequent bit, the calibration voltage Vcal=−4Δ and A1=OFF+Vcal=0.8Δ−4Δ=−3.2Δ. Thus, the output of the comparator CMP is 1. Further, at the subsequent bit, the calibration voltage Vcal=−2Δ and A1=OFF+Vcal=0.8Δ−2Δ=−1.2Δ. Thus, the output of the comparator CMP is 1. At the final bit, the calibration voltage Vcal=−Δ and A1=OFF+Vcal=0.8Δ−Δ=−0.2Δ. Thus, the output of the comparator CMP is 1.
That is, the search result for the calibration voltage Vcal is “1111”. When “1” is added to the search result “1111”, “0000” is obtained. Thus, the final calibration voltage Vcalf is set to 0Δ (Vcalf=0Δ). As a result, the final adjusted offset voltage OFFadjf=OFF+Vcalf=0.8Δ.
The graph on the right side of
That is, the search result for the calibration voltage Vcal is “0011”. When “1” is added to the search result “0011”, “0100” is obtained. Thus, the final calibration voltage Vcalf is set to 4Δ (Vcalf=4Δ). As a result, the final adjusted offset voltage OFFadjf=OFF+Vcalf=−3.8Δ+4Δ=0.2Δ.
In the above comparative example, the final adjusted offset voltage OFFadjf satisfies 0<OFFadjf≦Δ, as with the comparative example of the first exemplary embodiment. Meanwhile, in the third exemplary embodiment, the final adjusted offset voltage OFFadjf satisfies −Δ/2<OFFadjf≦Δ/2, as with the first exemplary embodiment. Accordingly, the same effects as those of the first exemplary embodiment can be obtained.
Note that linear type search may be combined with binary search. Particularly, it is preferable that, the linear type search be performed at the subsequent stage after completion of the binary search at the pre-stage.
Next, a forth exemplary embodiment of the present invention will be described with reference to
When the number of levels H in the output of the comparator CMP is in the range of L to M (L and M are natural numbers) ((A) in ST12), the final calibration voltage Vcalf is determined and the calibration is completed (ST4). Assume herein that 0<L<M<N. When the number of H levels in the output of the comparator CMP is less than L ((B) in ST12), the calibration voltage Vcal is further increased by the resolution Δ of the digital-analog converter DAC, and the process returns to step ST11 (ST13). When the number of H levels in the output of the comparator CMP is more than M ((C) in ST12), the calibration voltage Vcal is decreased by Δ, and the process returns to step ST11 (ST14).
The calibration method according to the fourth exemplary embodiment is especially effective for use in a noisy environment. On the other hand, in a less noisy environment, (C) in step ST12 may be omitted. Then, when the number of H levels in the output of the comparator CMP becomes equal to or greater than L, the final calibration voltage Vcalf is determined and the calibration may be completed.
Next, a fifth exemplary embodiment of the present invention will be described with reference to
In the fifth exemplary embodiment, two input terminals of the comparator CMP are short-circuited in the calibration mode. In the calibration mode, the switch of the current source CS5 is always off, and the final calibration voltage Vcalf is determined. After that, the switch of the current source CS5 is turned on. Alternatively, in the calibration mode, the switch of the current source CS5 is always on, and the final calibration voltage Vcalf is determined. Then, in the normal mode, the switch of the current source CS5 may be turned off. Thus, the final adjusted offset voltage OFFadjf satisfies −Δ/2<OFFadjf≦Δ/2, as with the first exemplary embodiment. Therefore, the same effects as those of the first exemplary embodiment can be obtained.
Next, a sixth exemplary embodiment of the present invention will be described with reference to
Between the high-potential power supply VRT and the low-potential power supply VRB, a resistor ladder generates reference voltages REF1 to REF7 in the order from the reference voltage REF0 to the positive potential side at predetermined intervals. Nodes at which the reference voltages REF0 to REF7 are generated are respectively connected to the reference voltage input terminals of the comparators CMP0 to CMP7. Meanwhile, in the calibration mode, the input terminals for the analog input signal AIN of the comparators CMP0 to CMP7 are supplies with calibration reference voltages REF02 to REF72, which are obtained by adding Δ/2 (Δ: the resolution of the digital-analog converters DAC0 to DAC7) to each of the reference voltages REF0 to REF7, by switching switches SW0 to SW7.
In the sixth exemplary embodiment, when the input potential difference of each of the comparators CMP0 to CMP7 in the calibration mode is set to Δ/2, as with the first exemplary embodiment, the final adjusted offset voltage OFFadjf satisfies −Δ/2<OFFadjf≦Δ/2. That is, the absolute value of the final adjusted offset voltage OFFadjf can be halved without changing the resolution Δ of the digital-analog converters DAC0 to DAC7. Consequently, a highly accurate A/D converter can be provided. Moreover, in the parallel A/D converter according to the sixth exemplary embodiment, the average value of the offset voltage can be theoretically set to 0. Therefore, a highly accurate A/D converter having no systematic offset can be provided.
Next, a seventh exemplary embodiment of the present invention will be described with reference to
In the sixth exemplary embodiment, the switches SW0 to SW7 are respectively connected to the input terminals for the analog input signal AIN of the comparators CMP0 to CMP7. Meanwhile, in the seventh exemplary embodiment, the input terminals for the analog input signal AIN of the comparators CMP0 to CMP7 are commonly connected to the switch SW. That is, the switches SW0 to SW7 according to the sixth exemplary embodiment are combined in the switch SW. Further, switches SW11 and SW12 are provided at both ends of a resistor ladder. Specifically, the switch SW11 has one end connected to the high-potential power supply VRT, and the other end connected to the resistor ladder. The switch SW12 has one end connected to the low-potential power supply VRB, and the other end connected to the resistor ladder. The other components are similar to those of the sixth exemplary embodiment, so the description thereof is omitted. The same effects can also be obtained by providing only one of the switches SW11 and SW12.
The switches SW11 and SW12 are respectively connected to the high-potential power supply VRT and the low-potential power supply VRB in the normal mode. Meanwhile, in the calibration mode, when both the switches SW11 and SW12 are connected to the reference potential REF, the reference voltage REF is commonly supplied to the reference voltage input terminals of the comparators CMP0 to CMP7. Further, the calibration reference voltage REF+Δ/2, which is obtained by adding Δ/2 (Δ: the resolution of the digital-analog converts DAC0 to DAC7) to the reference voltage REF, is commonly supplied to the input terminals on the analog input signal AIN side of the comparators CMP0 to CMP7, by switching the switch SW.
In the seventh exemplary embodiment, when the input potential difference of each of the comparators CMP0 to CMP7 in the calibration mode is set to Δ/2, as with the first exemplary embodiment, the final adjusted offset voltage OFFadjf satisfies −Δ/2<OFFadjf≦Δ/2. That is, the absolute value of the final adjusted offset voltage OFFadjf can be halved without changing the resolution Δ of the digital-analog converters DAC0 to DAC7. Consequently, a more accurate A/D converter can be provided. Moreover, in the parallel A/D converter according to the seventh exemplary embodiment, the average value of the offset voltage can be theoretically set to 0. Therefore, a highly accurate A/D converter having no systematic offset can be provided.
The first to seventh exemplary embodiments can be combined as desirable by one of ordinary skill in the art.
While the invention has been described in terms of several exemplary embodiments, those skilled in the art will recognize that the invention can be practiced with various modifications within the spirit and scope of the appended claims and the invention is not limited to the examples described above.
Further, the scope of the claims is not limited by the exemplary embodiments described above.
Furthermore, it is noted that, Applicant's intent is to encompass equivalents of all claim elements, even if amended later during prosecution.
Number | Date | Country | Kind |
---|---|---|---|
2009-185104 | Aug 2009 | JP | national |