This patent relates generally to analog-to-digital converters, and more specifically to an apparatus and a method for calibrating analog-to-digital converters.
Analog-to-digital converters (ADCs) are employed in a variety of electronic systems including computer modems, wireless telephones, satellite receivers, process control systems, etc. Such systems demand cost-effective ADCs that can efficiently convert an analog input signal to a digital output signal over a wide range of frequencies and signal magnitudes with minimal noise and distortion.
An ADC typically converts an analog signal to a digital signal by sampling the analog signal at pre-determined sampling intervals and generating a sequence of binary numbers via a quantizer, wherein the sequence of binary numbers is a digital representation of the sampled analog signal. Some of the commonly used types of ADCs include integrating ADCs, Flash ADCs, pipelined ADCs, successive approximation register ADCs, Delta-Sigma (ΔΣ) ADCs, two-step ADCs, etc. Of these various types, the pipelined ADCs and the ΔΣ ADCs are particularly popular in applications requiring higher resolutions.
A pipelined ADC circuit samples an analog input signal using a sample-and-hold circuit to hold the input signal steady and a first stage flash ADC to quantize the input signal. The first stage flash ADC then feeds the quantized signal to a digital-to-analog converter (DAC). The pipelined ADC circuit subtracts the output of the DAC from the analog input signal to get a residue signal of the first stage. The first stage of the pipelined ADC circuit generates the most significant bit (MSB) of the digital output signal. The residue signal of the first stage is gained up by a factor and fed to the next stage. Subsequently, the next stage of the pipelined ADC circuit further quantizes the residue signal to generate a further bit of the digital output signal, with this process being repeated for each stage of the ADC circuit.
On the other hand, a ΔΣ ADC employs over-sampling, noise-shaping, digital filtering and digital decimation techniques to provide high resolution analog-to-digital conversion. One popular design of a ΔΣ ADC is a multi-stage noise shaping (MASH) ΔΣ ADC. A MASH ΔΣ ADC is based on cascading multiple first-order or second-order ΔΣ ADCs to realize high-order noise shaping.
While both pipelined ADCs and ΔΣ ADCs provide improved signal-to-noise ratio, improved stability, etc., the performance of both pipelined ADCs and ΔΣ ADCs is bottlenecked by the linearity of the internal DAC. For example, the gain error of a DAC used in the first stage of a pipelined ADC circuit contributes to the overall gain error of the pipelined ADC circuit. The gain error of an ADC can be defined as the amount of deviation between an ideal transfer function and a measured transfer function of the ADC. One method used to overcome the limitations imposed by the gain errors of various stages of ADCs is to digitally calibrate the gain errors using calibration filters.
An illustration of a known pipelined ADC circuit 10 calibrated for gain errors using a calibration filter is shown in
The pipelined ADC circuit 10 also includes a pseudo-random signal generator 22 that generates a pseudo-random signal dt (also known as a dither signal). The pipelined ADC circuit 10 uses the signal dt for calibrating the gain errors. The signal dt is amplified by ¼ and is added to the digital output of ADC1 16. The combined output of the ADC1 16 and dt which is represented by d1, is input to the DAC1 18. Thus the signal dt flows through part of the first stage 12 and the ADC2 14 to the digital output signal y of the pipelined ADC circuit 10.
The pseudo-random signal dt, the first stage digital output d1, and the final digital output y are input into a calibration filter 24, which compares the pseudo-random signal dt to the digital output signal y. In a perfectly calibrated ADC circuit, there should be no residue of the pseudo-random signal dt in the output signal y. Therefore, based on the amount of traces of the pseudo-random signal dt signal found in the output signal y, the calibration filter 24 adjusts a calibration co-efficient l0 of a multiplier 26. A perfect calibration is obtained when there are no traces of the pseudo-random signal dt in the digital output signal y. The calibration filter 24 functions in an iterative fashion by monitoring the digital output signal y and correlating it with the pseudo-random signal dt. Such correlation is generally performed using various components including a delay circuit 28, a correlator 30, an accumulator 32 and a digital quantizer 34.
While the calibration filter 24 used with the pipelined ADC circuit 10 of
One of the disadvantages with the implementations of calibration filters using an iterative algorithm described above is the long time, usually on order of million clock cycles, that is necessary for the calibration filters to converge to a correct set of filter coefficients. Specifically, the calibration filter 24 may have to iterate several million clock cycles before it converges on the ideal calibration settings for the pipelined ADC circuit 10. Moreover, because the correlator 30 of the calibration filter 24 is effected by the analog input signal u, to suppress the effect of the analog input signal u, the output of the correlator 30 is accumulated over several thousands of samples by the accumulator 32. Therefore, in a start-up phase of an ADC circuit using a calibration filter, a large number of measurements are required before the calibration filter converges. As a result, the total startup time for such a calibration filter may become exceedingly long.
Such a long startup time for computation of calibration coefficients results in a requirement for longer testing time for circuits using ADC components, sometimes over a minute for each component, which is a major problem for volume production of circuits using ADC components. To facilitate volume production of circuits using ADC components at a reasonable cost, it is necessary to reduce the startup time required for ADC calibration filters.
The present patent is illustrated by way of examples and not limitations in the accompanying figures, in which like references indicate similar elements, and in which:
An analog-to-digital (ADC) converter circuit that converts an analog input signal into a digital output signal includes a calibration coefficient computation circuit for computing calibration filter coefficients. The calibration coefficient computation circuit includes a switching device adapted to switch the analog input signal delivered to the ADC circuit between on and off states, and includes a pseudo-random signal generator adapted to input a pseudo-random signal to the ADC circuit. During a start-up phase of the ADC circuit, the switching device turns off the analog input signal to the ADC circuit, the pseudo-random signal generator inputs a pseudo-random signal into the ADC circuit, and the calibration coefficient computation circuit computes the calibration coefficients of the calibration filter. This ADC circuit configuration reduces startup time for the calibration filter to only a few clock cycles. While the calibration coefficient computation circuit is described herein with a pipelined ADC circuit and a MASH ΔΣ ADC circuit, it may also be used with various other types of ADC circuits.
Now referring to
At the start of the fast startup method illustrated by the flowchart 80, a block 82 operates the switching device 74 to turn off the analog input signal being delivered to the ADC 66. Subsequently, with the analog input signal to the ADC 66 turned off, a block 84 inputs the pseudo-random signal generated by the pseudo-random signal generator 76 into the ADC 66. With the analog input signal to the ADC 66 turned off and only the pseudo-random signal input to the ADC 66, a block 86 measures various parameters of the ADC 66 and calculates various calibration parameters of the ADC 66. Such calibration parameters may include an estimated gain of the ADC 66, an estimated integrator pole of the ADC 60, etc. Some of the possible methodologies used for calculating the estimated gain and/or the estimated integrator pole of a pipelined ADC circuit and a MASH ΔΣ ADC circuit are described below in further detail.
Upon calculating the estimated gain and/or the estimated integrator pole of the ADC 66, a block 88 calculates various coefficients used to control the calibration filter 68. The particular calculations used to determine such calibration coefficients depend on the implementation of the ADC 66 and exemplary calculations are discussed in further detail below with respect to a pipelined ADC circuit and a MASH ΔΣ ADC circuit.
A block 90 delivers the calibration coefficients calculated at the block 88 to the calibration filter 68. The calibration filter 68 subsequently uses the calibration coefficients to filter the digital signal 70 output from the ADC 66. Finally, a block 92 operates the switching device 74 to turn on the analog input signal being delivered to the ADC 66.
The first stage 102 partially quantizes the analog input signal u to provide a digital output d1 and feeds back the digital output d1 to the feedback DAC1 108. The feedback DAC1 108 thus converts the digital output d1 into an analog feedback signal. Subsequently, a summer 109 the first stage 102 subtracts the analog output of the feedback DAC1 108 from the analog input signal u to generate an error signal e. A block 110 amplifies the error signal e by the ideal gain G to generate an analog residue signal r of the first stage 102, and the analog residue signal r is input to the ADC2 104 for further quantization. The quantization error of the ADC1 106 is assumed to be q1 and the quantization error of the ADC2 104 is assumed to be q2.
The pipelined ADC circuit 100 also includes a pseudo-random signal generator 114 that generates a pseudo-random signal dt (also known as a dither signal), which is used for calibrating the gain errors. In particular, the signal dt is amplified by ¼ and is added to the digital output of the ADC1 106 by a summer 111. The combined output of the ADC1 106 and dt is input to the feedback DAC1 108. Thus the signal dt flows through part of the first stage 102 and the ADC2 104 to the digital output signal y of the pipelined ADC circuit 100.
The pipelined ADC circuit 100 also includes a calibration filter 116 and a calibration coefficient computation circuit 118, referred to as a gain error correction (GEC) circuit. The calibration filter 116 is used to calibrate an output d2 of the ADC2 104. The calibration filter 116 includes a switching device 119 that controls which calibration co-efficient is used to control a gain filter 120. During normal operation of the ADC circuit 100, when the switching device 112 is turned on, thus allowing the analog input signal u to be delivered to the ADC circuit 100, the switching device 119 connects the control of the gain filter 120 to a continuous mode calibration circuit 122 comprising a delay 124, a correlator 126, an accumulator 128 and a quantizer 130. The continuous mode calibration circuit 122 functions in an iterative fashion by monitoring the digital output signal y and correlating it with the pseudo-random signal dt to obtain calibration coefficients for the gain filter 120.
On the other hand, during the startup phase, when the switching device 112 is turned off, thus blocking the analog input signal u from the ADC circuit 100, the switching device 119 connects the control of the gain filter 120 to the calibration coefficient computation circuit 118. As a result, during the startup phase, the calibration coefficient computation circuit 118, which computes the calibration coefficients used to control the gain filter 120, computes calibration coefficients using the transfer function of the pipelined ADC circuit 100. Based on the relationships between various signals at different stages of the pipelined ADC circuit 100, a transfer function of the pipelined ADC circuit 100 can be calculated as follows.
The difference of the analog input signal u and an output d1 of the feedback 104, designated by the error signal e, can be calculated as:
e=u−d1=u−(u+q1)=−q1.
Given the ideal gain of the pipelined ADC circuit 100 as G, the input signal r to the second stage ADC2 104 can be calculated as:
r=Ge=−Gq1.
Subsequently, the output signal d2 of the second stage ADC2 104 can be calculated as:
d2=r+q2=−Gq1+q2.
If the filter coefficient of the gain filter 120 is l0, the output y of the pipelined ADC circuit 100 can be calculated as:
y=l0d2+2d1=l0(−Gq1+q2)+2(u+q1)=2u+2q1−l0Gq1+q2.
For the pipelined ADC circuit 100 to be calibrated perfectly, there should be no leakage of the quantization error q1 of the ADC1 106 to the output y of the pipelined ADC circuit 100. Thus, in the calculation of y above, the sum of the factors containing q1 must equal zero, therefore:
2q1−l0Gq1=0.
Rearranging the equation above:
2=l0G, as a result,
l0=2/G.
Thus, from the results above, for the pipelined ADC circuit 100, the coefficient l0 of the gain filter 120 can be calculated directly if an estimate of the gain G can be found.
An estimate of gain G may be found by applying the fast startup method illustrated in the flowchart 80 of
For illustration purpose, suppose that the ADC2 104 is a 12-bit ADC, i.e., it converts an analog input into a 12 bit output. If the quantized output d2 of the ADC2 104 can be measured, then an estimate of the ideal gain G can be obtained to thereby determine the calibration coefficient l0 of the calibration filter 120. The estimate of the quantized output of the ADC2 104 can be obtained from the output d2 of the ADC2 104.
An implementation of the calibration coefficient computation circuit 114 is illustrated in
To calculate the value of estimated gain G, a multiplier 144 of the GEC circuit 118 multiplies the output of the accumulator 142 by 2/dtqideal. As previously shown, the value of filter coefficient l0 is given by a ratio of the ideal gain of the pipelined ADC circuit 100 and the estimated gain G of the pipelined ADC circuit 100. Therefore, the GEC circuit 118 includes an inverter 146 to invert the output of the multiplier 144. The following table gives an example of a computation of estimated gain for the pipelined ADC circuit 100 where the second stage ADC2 104 is a 12-bit ADC. The example below has been calculated under an assumption of 20.6 dB operational transconductive amplifier (OTA) gain for the pipelined ADC circuit 100, leading to an estimated gain of 1.5625.
Where the gain is calculated as follows:
Subsequently, the output of the GEC circuit 118 is multiplied by the ideal gain of the pipelined ADC circuit 100, which in this example is assumed to be equal to two, to get the filter coefficient l0 as follows:
While the circuits of
The first stage 162 converts the input signal u into a digital output signal, which is fed back through the feedback DAC1 168. A summer 163 within the first stage 162 subtracts an analog output of the DAC1 168 from the input signal u to generate a residue signal e. The integrator block 170 amplifies and integrates the residue signal e to generate a residue signal w, which is fed to the ADC2 164. The MASH ΔΣ ADC circuit 160 also includes a pseudo-random signal generator 174 that generates a pseudo-random signal dt, which is used to calibrate coefficients of a calibration filter 178. The pseudo-random signal dt is amplified by ¼ and is added to the digital output of the ADC1 166. The combined output of the ADC1 166 and dt is represented by d1, which is input to the feedback DAC1 168. Thus, the signal dt flows through part of the first stage 162 and the ADC2 164 to the digital output signal y of the MASH ΔΣ ADC circuit 160.
The MASH ΔΣ ADC circuit 160 also includes a calibration coefficient computation circuit 180, which is implemented by a gain error correction (GEC) circuit. The calibration filter 178, which is used to calibrate an output d2 of the ADC2 164, includes a switching device 182 that controls which calibration coefficients are used to control gain filters 184. During normal operation of the MASH ΔΣ ADC circuit 160, when the switching device 172 is turned on, thus allowing the analog input signal u to be input to the MASH ΔΣ ADC circuit 160, the switching device 182 connects the control of the gain filter 184 to a continuous mode calibration circuit 186 comprising delay units 188, correlators 190, accumulators 192 and quantizers 194. The continuous mode calibration circuit 186 functions in an iterative fashion by monitoring and correlating the digital output signal y and correlating it with the pseudo-random signal dt to obtain calibration coefficients for the gain filters 184.
On the other hand, during the startup phase, when the switching device 172 is turned off, thus blocking the analog input signal u from the MASH ΔΣ ADC circuit 160, the switching device 182 connects the control of the gain filters 184 to the calibration coefficient computation circuit 180. During the startup phase, the calibration coefficient computation circuit 180 computes the calibration coefficients used to control the gain filter 184. The calibration coefficient computation circuit 180 computes calibration coefficients using the transfer function of the MASH ΔΣ ADC circuit 160. Based on the relationships between various signals at different stages of the MASH ΔΣ ADC circuit 160, a transfer function of the MASH ΔΣ ADC circuit 160 can be calculated as follows:
For the MASH ΔΣ ADC circuit 160 to be calibrated perfectly, there should be no leakage of the quantization error q1 of the ADC1 166 to the output y of the MASH ΔΣ ADC circuit 160. Thus, in the calculation of y above, the sum of the factors containing q1 must equal zero. Therefore:
This leads to simultaneous requirements that the sum of all factors not containing z−1 must also equal zero. Therefore:
4−Gl0=0
l0=4/G
−4p+G−G+Gl1=0
l1=4p/G
Thus, in order to calculate the filter coefficients l0 and l1, estimates of the gain G and the integrator pole p are necessary.
An estimate of the gain G may be found by applying the fast startup method of the flowchart 80 of
Similarly, an estimate of the integrator pole p can be found by shorting the analog input signal u to zero (using the switching device 172) and resetting the integrator 170 at every second clock period. In this case, when the pseudo-random signal dt is applied, the output of the integrator 170 is a function of only the applied pseudo-random signal dt and the pseudo-random signal dt from the previous clock period. The analog output of the integrator 170 is given as:
w=G(p*dt0+dt1).
An estimate of p may be found by rewriting the above equation and using the previous estimate of gain G, as follows:
Because the digital signal d2 is a digital representation of the output w, the output w can be replaced by the digital signal d2. To suppress the effects of white noise and quantization noise, the terms of the equation above are summed and averaged, generating a sum of integrator pole p as follows:
Subsequently, the estimated value of p can be obtained by dividing the sum of p by a number of observations used in obtaining the sum, as follows:
The following table provides an example of a computation of an estimated gain G and estimated integrator pole p for the MASH ΔΣ ADC circuit 160, where the ADC1 166 is an 11-bit ADC. The example below has been calculated under an assumption of 50 dB operational transconductive amplifier (OTA) gain for the MASH ΔΣ ADC circuit 160, leading to an estimated gain G of 3.934 and estimated pole p of 0.987.
Where the estimated integrator pole p is calculated as follows:
An implementation of the calibration coefficient computation circuit 180 is illustrated in
The operation of the l0 computation circuit 202 is similar to the operation of the GEC circuit 118 described in
Subsequently, a first correlator 212 correlates the signal dt with its delayed signal, for example, the signal dt0 is correlated with the signal dt1. The output of the correlator 212 is summed by an accumulator 214. A correlator 216 correlates the signal dt0 with the digital signal d21, where d21 is the digital signal d2 delayed by one clock period. The output of the correlator 216 is accumulated by an accumulator 218. Subsequently, a multiplier 220 multiplies the output of the accumulator 218 by 1/(4dtqideal) and another multiplier 222 multiplies the output of the multiplier 220 with the output l0 received from the l0 computation circuit 202.
A summation circuit 224 adds the outputs of the multiplier 222 and the accumulator 214. Subsequently, another multiplier 226 multiplies the output of the summation circuit 224 by 1/N to generate an estimate of the integrator pole p. Finally a multiplier 228 uses the estimated value of the integrator pole p and the output l0 received from the l0 computation circuit 202 to generate an estimated value of the calibration coefficient l1.
Although the forgoing text sets forth a detailed description of numerous different embodiments of the invention, it should be understood that the scope of the invention is defined by the words of the claims set forth at the end of this patent. The detailed description is to be construed as exemplary only and does not describe every possible embodiment of the invention because describing every possible embodiment would be impractical, if not impossible. Numerous alternative embodiments could be implemented, using either current technology or technology developed after the filing date of this patent, which would still fall within the scope of the claims defining the invention.
Thus, many modifications and variations may be made in the techniques and structures described and illustrated herein without departing from the spirit and scope of the present invention. Accordingly, it should be understood that the methods and apparatus described herein are illustrative only and are not limiting upon the scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
5471209 | Sutterlin et al. | Nov 1995 | A |
6348885 | Munoz et al. | Feb 2002 | B1 |
6417794 | Munoz et al. | Jul 2002 | B1 |
6486806 | Munoz et al. | Nov 2002 | B1 |
6839650 | Sutton et al. | Jan 2005 | B2 |