CN116073829A - LMS foreground calibration method and system of successive approximation type ADC - Google Patents
LMS foreground calibration method and system of successive approximation type ADC Download PDFInfo
- Publication number
- CN116073829A CN116073829A CN202310206695.8A CN202310206695A CN116073829A CN 116073829 A CN116073829 A CN 116073829A CN 202310206695 A CN202310206695 A CN 202310206695A CN 116073829 A CN116073829 A CN 116073829A
- Authority
- CN
- China
- Prior art keywords
- offset
- digital
- adc
- cdac
- weight
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 239000003990 capacitor Substances 0.000 claims abstract description 103
- UDQDXYKYBHKBTI-IZDIIYJESA-N 2-[4-[4-[bis(2-chloroethyl)amino]phenyl]butanoyloxy]ethyl (2e,4e,6e,8e,10e,12e)-docosa-2,4,6,8,10,12-hexaenoate Chemical compound CCCCCCCCC\C=C\C=C\C=C\C=C\C=C\C=C\C(=O)OCCOC(=O)CCCC1=CC=C(N(CCCl)CCCl)C=C1 UDQDXYKYBHKBTI-IZDIIYJESA-N 0.000 claims abstract description 53
- 238000013139 quantization Methods 0.000 claims description 26
- 238000004364 calculation method Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 9
- 238000003756 stirring Methods 0.000 claims description 9
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 5
- 238000004422 calculation algorithm Methods 0.000 abstract description 30
- 238000006243 chemical reaction Methods 0.000 abstract description 6
- 238000004088 simulation Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 4
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000024241 parasitism Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/10—Calibration or testing
- H03M1/1009—Calibration
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/34—Analogue value compared with reference values
- H03M1/38—Analogue value compared with reference values sequentially only, e.g. successive approximation type
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Analogue/Digital Conversion (AREA)
Abstract
The invention provides a LMS foreground calibration method and system of successive approximation type ADC, wherein the method comprises that a pseudo random signal or a sequence signal is utilized to generate any sequence to toggle CDAC so that the CDAC generates an analog signal; the method comprises the steps of firstly dialing 1 and then dialing 0 by utilizing a target capacitor in a capacitor array, so that analog signals of upper polar plates of all capacitors in the capacitor array are respectively provided with two offset quantities with the same size and opposite polarities; quantizing two analog signals with offset to obtain two quantized results; multiplying the two digital results with the target capacitance weight respectively to obtain two digital results; calculating the deviation of the difference value of the two digital results and the digital quantity corresponding to the preset offset; and adjusting the weight of the target capacitor and the digital quantity corresponding to the preset offset. The method solves the problem that the background calibration LMS algorithm needs to reduce the conversion speed of the ADC by half, can calculate the capacitance weight of each bit, and improves the calibration precision.
Description
Technical Field
The invention belongs to the technical field of analog-to-digital conversion, and particularly relates to an LMS foreground calibration method and system of a successive approximation type ADC.
Background
The successive approximation (Successive Approximation Register, SAR) analog-to-digital converter (Analog to Digital Converter, ADC) can achieve both ADC accuracy and chip power consumption and area without the need for a residual amplifier and a multi-bit comparator by using a dichotomy. However, non-ideal factors such as nonlinearity of a capacitor digital-to-analog converter (Capacitor Digital to Analog Converter, CDAC) in the SAR ADC severely limit the SAR ADC to realize high precision, and error reference voltage is generated when the reference voltage is changed every time the capacitor is shifted by taking capacitance mismatch and layout parasitism into consideration if each bit of comparison result still adopts the traditional binary capacitor weight. Because the mismatch of the capacitors is random, the capacitor stirred by each comparison result is likely to be larger or smaller, so that the residual transfer curve of the ADC has different offsets at different results, the linearity of the ADC is greatly deteriorated, and meanwhile, the mismatch of the high-order capacitor directly influences the effective digits of the ADC. The conventional foreground capacitance calibration method often needs to use a low-order capacitance array to quantify the mismatch generated by a high-order capacitance, so that the mismatch of the low-order capacitance is not calibrated, inaccurate results are overlapped on each to-be-calibrated capacitance, and the calibration accuracy is limited.
The least mean square (Least Mean Square, LMS) algorithm is often used in background capacitance calibration, and the input signal is compared after being quantized by two different paths to obtain an error result, and the error result is iteratively calibrated, and the calibration range can be expanded to each bit of capacitance along with the change of the input signal. However, twice quantization in background calibration necessarily results in halving the ADC conversion speed, and each quantization needs to be calibrated to increase the power consumption and hardware cost of the circuit.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides an LMS foreground calibration method and system of a successive approximation type ADC.
In a first aspect, the present invention provides a LMS foreground calibration method for a successive approximation ADC, comprising:
generating any sequence by using the pseudo-random signal or the sequence signal to stir the CDAC so that the CDAC generates an analog signal covering the range of the ADC part;
the method comprises the steps of firstly dialing 1 and then dialing 0 by utilizing a target capacitor in a capacitor array, so that analog signals of upper polar plates of all capacitors in the capacitor array are respectively provided with two offset quantities with the same size and opposite polarities; the offset exists in the analog signal in the form of offset voltage;
quantizing two analog signals with offset to obtain two quantized results;
multiplying the two quantized results with the target capacitance weight respectively to obtain two digital results;
calculating the deviation of the difference value of the two digital results and the digital quantity corresponding to the preset offset;
and adjusting the weight of the target capacitor and the digital quantity corresponding to the preset offset to make the change quantity of the target capacitor proportional to the deviation, wherein the deviation and the preset offset reach a convergence stable state.
Further, the generating any sequence of toggling CDAC using pseudo-random signals or sequential signals to cause the CDAC to generate analog signals covering the ADC part range includes:
the analog signal is calculated according to the following formula:
wherein ,is an analog signal;Is the first of the digital calibration signalsiThe value of the bit;Differential pair positive pole of CDAC array>A plurality of capacitors;Negative pole of CDAC array differential pair +.>A plurality of capacitors;For CDAC array differential pair positive total capacitance, < >>The total capacitance of the negative electrode of the CDAC array differential pair;Is the total number of capacitors in the capacitor array.
Further, the calculating the deviation between the difference value of the two digital results and the digital quantity corresponding to the preset offset includes:
calculating the deviation of the difference value of the two digital results and the digital quantity of the preset offset according to the following formula:
wherein ,is->In secondary calibration, the difference value of the two digital results is deviated from the digital quantity of the preset offset;Is->During secondary calibration, the +.>The weight of the individual capacitances;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is the offset;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is an offset +.>Corresponding digital quantities.
Further, the adjusting the weight of the target capacitor and the digital quantity corresponding to the preset offset to make the change of the target capacitor proportional to the deviation, and the deviation and the preset offset reach the convergence stable state includes:
the weight of the adjusted target capacitance is calculated according to the following formula:
wherein ,is->During secondary calibration, the +.>The weight of the individual capacitances;Step length is adjusted for the weight;
calculating the number corresponding to the adjusted preset offset according to the following formula:
wherein ,is->Offset +.>Corresponding digital quantity, < > for>Is->Offset +.>Corresponding digital quantities.
In a second aspect, the present invention provides an LMS foreground calibration system for a successive approximation ADC comprising:
the signal generation module is used for generating any sequence by utilizing the pseudo-random signal or the sequence signal to stir the CDAC so as to enable the CDAC to generate an analog signal covering the range of the ADC part;
the offset generating module is used for firstly shifting 1 and then shifting 0 by utilizing a target capacitor in the capacitor array, so that analog signals of all upper electrode plates of the capacitors in the capacitor array are respectively provided with two offsets with the same size and opposite polarities; the offset exists in the analog signal in the form of offset voltage;
the signal quantization module is used for quantizing two analog signals with offset to obtain two quantized results;
the first calculation module is used for multiplying the two quantized results with the target capacitance weight respectively to obtain two digital results;
the second calculation module is used for calculating the deviation of the difference value of the two digital results and the digital quantity corresponding to the preset offset;
the adjusting module is used for adjusting the weight of the target capacitor and the digital quantity corresponding to the preset offset, so that the change quantity of the target capacitor is in direct proportion to the deviation, and the deviation and the preset offset reach a convergence stable state.
Further, the signal generating module includes:
a first calculation unit for calculating an analog signal according to the following formula:
wherein ,is an analog signal;Is the +.>The value of the bit;Differential pair positive pole of CDAC array>A plurality of capacitors;Negative pole of CDAC array differential pair +.>A plurality of capacitors;For CDAC array differential pair positive total capacitance, < >>The total capacitance of the negative electrode of the CDAC array differential pair;Is the total number of capacitors in the capacitor array.
Further, the second computing module includes:
a second calculating unit for calculating the deviation of the difference between the two digital results and the digital quantity of the preset offset according to the following formula:
wherein ,is->In secondary calibration, the difference value of the two digital results is deviated from the digital quantity of the preset offset;Is->During secondary calibration, the +.>The weight of the individual capacitances;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is the offset;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is an offset +.>Corresponding digital quantities.
Further, the adjustment module includes:
a third calculation unit for calculating the weight of the adjusted target capacitance according to the following formula:
wherein ,is->During secondary calibration, the +.>The weight of the individual capacitances;Step length is adjusted for the weight;
a fourth calculation unit, configured to calculate a digital quantity corresponding to the adjusted preset offset according to the following formula:
wherein ,is->Offset +.>Corresponding digital quantity, < > for>Is->Offset +.>Corresponding digital quantities.
In a third aspect, the present invention provides a computer device comprising a processor and a memory; the steps of the LMS foreground calibration method of the successive approximation type ADC in the first aspect are realized when the processor executes a computer program stored in a memory.
In a fourth aspect, the present invention provides a computer-readable storage medium for storing a computer program; the computer program when executed by a processor implements the steps of the LMS foreground calibration method of a successive approximation ADC of the first aspect.
The invention provides a LMS foreground calibration method and system of successive approximation type ADC, wherein the method comprises that a pseudo random signal or a sequence signal is utilized to generate any sequence to stir CDAC, so that the CDAC generates an analog signal covering the range of the ADC part; the method comprises the steps of firstly dialing 1 and then dialing 0 by utilizing a target capacitor in a capacitor array, so that analog signals of upper polar plates of all capacitors in the capacitor array are respectively provided with two offset quantities with the same size and opposite polarities; the offset exists in the analog signal in the form of offset voltage; quantizing two analog signals with offset to obtain two quantized results; multiplying the two digital results with the target capacitance weight respectively to obtain two digital results; calculating the deviation of the difference value of the two digital results and the digital quantity corresponding to the preset offset; and adjusting the weight of the target capacitor and the digital quantity corresponding to the preset offset to make the change quantity of the target capacitor proportional to the deviation, wherein the deviation and the preset offset reach a convergence stable state.
When the foreground is calibrated, the pseudo-random signal is utilized to randomly stir or the sequence generator is utilized to sequentially stir the CDAC to generate an input signal of the SAR ADC, an LMS algorithm is utilized, the capacitance weight is gradually adjusted and iterated through comparing the deviation between the actual value and the ideal value, and finally, the accurate capacitance weight value is calculated, so that errors caused by capacitance mismatch are eliminated. According to the invention, the capacitance is calibrated only by utilizing the LMS algorithm in the foreground, twice quantization is not needed in the working process of the ADC, the problem that the conversion speed of the ADC needs to be reduced by the LMS algorithm in the background calibration is avoided, in addition, the weight of each capacitance can be calculated, the problem that the low-order capacitance cannot be calibrated in the traditional foreground calibration is solved, the error of the low-order capacitance cannot influence the calibration precision, and the calibration precision is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an LMS foreground calibration method of a successive approximation ADC according to an embodiment of the present invention;
fig. 2 is a block diagram of an LMS foreground calibration method of a successive approximation ADC according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a foreground calibration signal generation portion according to an embodiment of the present invention;
fig. 4 is a graph of a convergence result of a capacitance weight error simulated by an LMS algorithm in MATLAB, wherein the capacitance mismatch is 5% provided by the embodiment of the present invention;
fig. 5 is a graph of a Δd convergence result of an LMS algorithm in MATLAB simulation, with a capacitance mismatch of 5% provided by an embodiment of the present invention;
FIG. 6 is a graph of the convergence result of the LMS algorithm on the first bit capacitance simulated by MATLAB, wherein the mismatch of the capacitance is 5% provided by the embodiment of the invention;
FIG. 7 is a graph of a second bit capacitance convergence result of an LMS algorithm in MATLAB simulation, wherein the capacitance mismatch is 5% in the embodiment of the invention;
FIG. 8 is a graph of a third-bit capacitance convergence result of the LMS algorithm in MATLAB simulation, wherein the capacitance mismatch is 5% in the embodiment of the invention;
FIG. 9 is a graph of a fourth bit capacitance convergence result of the LMS algorithm in MATLAB simulation, wherein the capacitance mismatch is 5% in the embodiment of the invention;
fig. 10 is a diagram of a fifth capacitor convergence result of the LMS algorithm in MATLAB simulation, where the capacitor mismatch provided by the embodiment of the present invention is 5%;
FIG. 11 is a graph of a sixth-bit capacitance convergence result of the LMS algorithm in MATLAB simulation, wherein the capacitance mismatch is 5% in the embodiment of the invention;
fig. 12 is a graph of a seventh capacitance convergence result of 5% of capacitance mismatch provided by the embodiment of the present invention, where the MATLAB simulation is performed by the LMS algorithm;
fig. 13 is a graph of a capacitance convergence result of an eighth bit of an LMS algorithm in MATLAB simulation, where the capacitance mismatch provided by the embodiment of the present invention is 5%;
fig. 14 is a graph of a ninth-bit capacitance convergence result of the LMS algorithm in MATLAB simulation, where the capacitance mismatch provided by the embodiment of the present invention is 5%;
fig. 15 is a graph of a tenth capacitor convergence result of an LMS algorithm in MATLAB simulation, where the capacitor mismatch provided by the embodiment of the present invention is 5%;
FIG. 16 is a graph of the eleventh capacitance convergence result of the LMS algorithm in MATLAB simulation, with a capacitance mismatch of 5% provided by an embodiment of the present invention;
FIG. 17 is a graph of a twelfth-bit capacitance convergence result of an LMS algorithm in MATLAB simulation, wherein the capacitance mismatch is 5% in the embodiment of the invention;
FIG. 18 is a graph of a thirteenth capacitance convergence result of the LMS algorithm in MATLAB simulation, with a capacitance mismatch of 5% provided by an embodiment of the present invention;
FIG. 19 is a graph of a fourteenth bit capacitance convergence result of an LMS algorithm in MATLAB simulation, wherein the capacitance mismatch is 5% in the embodiment of the present invention;
FIG. 20 is a graph of a fifteenth capacitance convergence result of an LMS algorithm in MATLAB simulation, with a capacitance mismatch of 5% provided by an embodiment of the present invention;
FIG. 21 is a graph of a sixteenth-bit capacitance convergence result of an LMS algorithm in MATLAB simulation, wherein the capacitance mismatch is 5% in the embodiment of the present invention;
FIG. 22 is a graph of the result of a fast Fourier transform of an output signal simulated in MATLAB using an ideal capacitance weight, with a capacitance mismatch of 5% provided by an embodiment of the present invention;
FIG. 23 is a graph of the result of a fast Fourier transform of the output signal simulated in MATLAB using calibrated capacitance weights at a capacitance mismatch of 5% provided by an embodiment of the present invention;
fig. 24 is a flowchart of an LMS foreground calibration system for a successive approximation ADC according to an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In an embodiment, as shown in fig. 1 and fig. 2, an embodiment of the present invention provides an LMS foreground calibration method of a successive approximation ADC, including:
101, generating any sequence by using pseudo-random signals or sequential signals to toggle the CDAC so that the CDAC generates analog signals covering the range of the ADC part.
In an SAR ADC with an accuracy of N bits, when a pseudo-random signal randomly toggles its CDAC capacitor array, the CDAC will be randomly generatedDifferent analog signals.
Illustratively, the analog signal is calculated according to the following formula:
wherein ,is an analog signal;Is the +.>The value of the bit;Differential pair positive pole of CDAC array>A plurality of capacitors;Negative pole of CDAC array differential pair +.>A plurality of capacitors;For CDAC array differential pair positive total capacitance, < >>The total capacitance of the negative electrode of the CDAC array differential pair;Is the total number of capacitors in the capacitor array.
102, firstly dialing 1 and then dialing 0 by utilizing a target capacitor in the capacitor array, so that analog signals of all upper electrode plates of the capacitors in the capacitor array are respectively provided with two offset amounts with the same size and opposite polarities; the offset exists in the analog signal in the form of an offset voltage.
The input signal of the SAR ADC is generated by randomly toggling the CDAC capacitor with a Pseudo-Noise (PN) signal or sequentially toggling the CDAC capacitor with a sequencer. As shown in FIG. 3, the pseudo random signal generator is used to randomly toggle the capacitors to generate analog input signals, the sequence generator is composed of linear feedback shift registers (Linear Feedback Shifting Register, LFSR) (or composed of sequential sequence generator, according to the use scenario), pseudo random numbers of M sequences can be generated, when the sequence generator generates such sequences as 0111100110111001, the corresponding capacitors C1, C2, C5, C8, C9, C11, C12, C13 and C16 are respectively toggled to "1" (the embodiment of the invention is based on Vcm-based algorithm, the Vref is toggled, different switching algorithms can be selected according to the use scenario), the rest bit capacitors are respectively toggled to "0" (toggled Gnd), so that analog signals corresponding to the sequences in CDAC are generated, and when in the capacitor array, additional capacitors Cos (CDAC self bit weight capacitors can be used as Cos) are respectively toggled to "1" and "0", the analog signals have the same offset of opposite polarities。
103, quantizing the two analog signals with the offset to obtain two quantized results.
After the two analog signals with offset are quantized by ADC, quantization results 1000011011100011 and 0110001001000000 are obtained.
104, multiplying the two quantized results by the target capacitance weight respectively to obtain two digital results.
And 105, calculating the deviation of the difference value of the two digital results and the digital quantity corresponding to the preset offset.
Illustratively, the deviation of the difference of the two digital results from the digital quantity of the preset offset is calculated according to the following formula:
wherein ,is->In secondary calibration, the difference value of the two digital results is deviated from the digital quantity of the preset offset;Is->During secondary calibration, the +.>The weight of the individual capacitances;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is the offset;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is an offset +.>Corresponding digital quantities.
The result of the digital quantity corresponding to the two analog signals is differenced and doubledSubtracting the error amount caused by the capacitance weighterror=0.0003.
106, adjusting the weight of the target capacitor and the digital quantity corresponding to the preset offset, so that the change quantity of the target capacitor is in direct proportion to the deviation, and the deviation and the preset offset reach a convergence stable state.
Illustratively, the weight of the adjusted target capacitance is calculated according to the following formula:
wherein ,is->During secondary calibration, the +.>The weight of the individual capacitances;The step size is adjusted for the weight.
Calculating the number corresponding to the adjusted preset offset according to the following formula:
wherein ,is->Offset +.>Corresponding digital quantity, < > for>Is->Offset +.>Corresponding digital quantities.
Because the actual capacitance weight of the capacitance array is different from the ideal capacitance weight, the difference between the quantized result of the two signals and the multiplied result of the ideal capacitance weight is different from the actual value, and therefore the deviation between the current capacitance weight and the ideal capacitance weight can be obtained. According to the LMS algorithm, the capacitance weight is iteratively modified according to the deviation until the two are no longer different, namely error converges to 0, so that the actual capacitance weight is obtained. Because of storage in digital circuitsSignal and->There is also a mismatch and therefore a corresponding adjustment of +.>Is of a size of (a) and (b).
If it iserrorIs positive andthe target capacitance weight is reduced, and the digital quantity corresponding to the offset is increased>The method comprises the steps of carrying out a first treatment on the surface of the If it iserrorIs positive and +.>The weight of the target capacitance is increased, and the digital quantity corresponding to the offset is increasedThe method comprises the steps of carrying out a first treatment on the surface of the If it iserrorIs negative and->The weight of the target capacitance is increased, and the digital quantity corresponding to the offset is reducedThe method comprises the steps of carrying out a first treatment on the surface of the If it iserrorIs negative and->The weight of the target capacitance is reduced, and the digital quantity corresponding to the offset is reduced。
In the quantization results, the quantization results corresponding to the capacitors C4, C5, C7, C8, C10, C12, C13 and C14 are the same, and the dialing method is the same in the SAR ADC conversion, so that the mismatch of the capacitors does not affect the current result, and therefore, the capacitance weight of the capacitor is not changed. Capacitors C6, C9, C11, C15 and C16The iterative procedure reduces its weight because its weight is too large resulting in error > 0. Similarly, the capacitance weights corresponding to C2 and C3 are too small to cancel the effect of the excessive remaining bits, and thus the weights are increased. The signal generator generates a plurality of different voltages, so that the weight of each capacitor can be calibrated by the calibration program.
As shown in fig. 4 and 5, respectively, simulated in MATLABerrorSignals and methodsIn a SAR ADC with 14bit precision and two bit redundancy, setting non-ideal factor capacitance mismatch 5% and comparator noise200 μA, at which time the LMS algorithm calibration procedure iterates in 0.0005 steps, when +.>And->The difference of (2) is greater than +.>The weights of the capacitors with different quantization results are correspondingly adjusted and +.>The value of>And->The difference of (2) is less than +.>The reverse operation is performed, finally +>Convergence can be achieved within a few sampling points.
Fig. 6 to 21 are sequentially diagrams of calibration convergence of each capacitor. As can be seen from fig. 6 to 21, the present invention enables each bit capacitor to be calibrated and converged in the foreground. As shown in fig. 22 and 23, the fast fourier transform results of the output signals of the ADC before and after calibration respectively show that, by comparing, the mismatch of the high-order capacitor directly causes the low-order quantization result to lose meaning due to the ideal capacitor weight used for the comparison result of the SAR ADC comparator before calibration, so the effective number of bits (Effective Numbers of Bits, ENOB) of the ADC does not reach the design index at all, and because the quantization error is large, the generated harmonic wave related to the input signal greatly affects the spurious free dynamic range (Spurious Free Dynamic Range, SFDR) of the ADC, which determines the linearity of the ADC. When the calibration procedure is used, the ADC can quantize using the real capacitance weight, and the quantization error between the quantized output result and the input analog is reduced to the minimum, so that the ENOB performance and the SFDR performance are greatly improved.
According to the LMS foreground calibration method of the successive approximation type ADC, when foreground calibration is carried out, a pseudo-random signal is utilized to randomly stir or a sequence generator is utilized to sequentially stir CDAC to generate an input signal of the SAR ADC, an LMS algorithm is used, the capacitance weight is adjusted step by step through comparing the deviation between an actual value and an ideal value, iteration is carried out, an accurate capacitance weight value is finally calculated, and errors caused by capacitance mismatch are eliminated. According to the invention, the capacitance is calibrated only by utilizing the LMS algorithm in the foreground, twice quantization is not needed in the working process of the ADC, the problem that the conversion speed of the ADC needs to be reduced by the LMS algorithm in the background calibration is avoided, in addition, the weight of each capacitance can be calculated, the problem that the low-order capacitance cannot be calibrated in the traditional foreground calibration is solved, the error of the low-order capacitance cannot influence the calibration precision, and the calibration precision is improved.
Based on the same inventive concept, the embodiment of the invention also provides an LMS foreground calibration system of the successive approximation type ADC, and because the principle of solving the problem of the system is similar to that of the LMS foreground calibration method of the successive approximation type ADC, the implementation of the system can refer to the implementation of the LMS foreground calibration method of the successive approximation type ADC, and the repetition is omitted.
In another embodiment, an LMS foreground calibration system for a successive approximation ADC according to an embodiment of the invention, as shown in fig. 24, includes:
the signal generating module 10 is configured to generate any sequence of toggling CDAC using the pseudo-random signal or the sequential signal, so that the CDAC generates an analog signal covering the range of the ADC portion.
The offset generating module 20 is configured to dial "1" first and dial "0" later by using the target capacitors in the capacitor array, so that analog signals of all the upper plates of the capacitors in the capacitor array have two offsets with the same size and opposite polarities respectively; the offset exists in the analog signal in the form of an offset voltage.
The signal quantization module 30 is configured to quantize two analog signals with offset to obtain two quantized results.
The first calculation module 40 is configured to multiply the two quantized results with the target capacitance weights respectively, so as to obtain two digital results.
The second calculating module 50 is configured to calculate a deviation between a difference between the two digital results and a digital value corresponding to the preset offset.
The adjusting module 60 is configured to adjust the weight of the target capacitor and the digital quantity corresponding to the preset offset, so that the variation of the target capacitor is proportional to the deviation, and the deviation and the preset offset reach the convergence steady state.
Illustratively, the signal generation module includes:
a first calculation unit for calculating an analog signal according to the following formula:
wherein ,is an analog signal;Is the first of the digital calibration signalsiThe value of the bit;Differential pair positive pole of CDAC array>A plurality of capacitors;Negative pole of CDAC array differential pair +.>A plurality of capacitors;For CDAC array differential pair positive total capacitance, < >>The total capacitance of the negative electrode of the CDAC array differential pair;Is the total number of capacitors in the capacitor array.
Illustratively, the second computing module includes:
a second calculating unit for calculating the deviation of the difference between the two digital results and the digital quantity of the preset offset according to the following formula:
wherein ,is->In secondary calibration, the difference value of the two digital results is deviated from the digital quantity of the preset offset;Is->During secondary calibration, the +.>The weight of the individual capacitances;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization time of the firstiA bit result;Is the offset;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization time of the firstiA bit result;Is an offset +.>Corresponding digital quantities.
Illustratively, the adjustment module includes:
a third calculation unit for calculating the weight of the adjusted target capacitance according to the following formula:
wherein ,is->During secondary calibration, the +.>The weight of the individual capacitances;The step size is adjusted for the weight.
A fourth calculation unit, configured to calculate a digital quantity corresponding to the adjusted preset offset according to the following formula:
wherein ,is->Offset +.>Corresponding digital quantity, < > for>Is->Offset in secondary calibrationaCorresponding digital quantities.
For more specific working procedures of the above modules, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In another embodiment, the present invention also provides a computer device, including a processor and a memory; the LMS foreground calibration method of the successive approximation ADC disclosed in the previous embodiment is realized when the processor executes the computer program stored in the memory.
For more specific procedures of the above method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In another embodiment, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program; the computer program, when executed by the processor, implements the LMS foreground calibration method of the successive approximation ADC disclosed previously.
For more specific procedures of the above method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the system, the device and the storage medium disclosed in the embodiments, the description is relatively simple, and the relevant places refer to the description of the method part because the system, the device and the storage medium correspond to the methods disclosed in the embodiments.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The invention has been described in detail in connection with the specific embodiments and exemplary examples thereof, but such description is not to be construed as limiting the invention. It will be understood by those skilled in the art that various equivalent substitutions, modifications or improvements may be made to the technical solution of the present invention and its embodiments without departing from the spirit and scope of the present invention, and these fall within the scope of the present invention. The scope of the invention is defined by the appended claims.
Claims (10)
1. An LMS foreground calibration method for a successive approximation ADC, comprising:
generating any sequence by using the pseudo-random signal or the sequence signal to stir the CDAC so that the CDAC generates an analog signal covering the range of the ADC part;
the method comprises the steps of firstly dialing 1 and then dialing 0 by utilizing a target capacitor in a capacitor array, so that analog signals of upper polar plates of all capacitors in the capacitor array are respectively provided with two offset quantities with the same size and opposite polarities; the offset exists in the analog signal in the form of offset voltage;
quantizing two analog signals with offset to obtain two quantized results;
multiplying the two quantized results with the target capacitance weight respectively to obtain two digital results;
calculating the deviation of the difference value of the two digital results and the digital quantity corresponding to the preset offset;
and adjusting the weight of the target capacitor and the digital quantity corresponding to the preset offset to make the change quantity of the target capacitor proportional to the deviation, wherein the deviation and the preset offset reach a convergence stable state.
2. The LMS front calibration method of a successive approximation ADC of claim 1, wherein generating either sequence of toggle CDAC using a pseudo random signal or a sequential signal such that the CDAC generates an analog signal covering a portion of the ADC range comprises:
the analog signal is calculated according to the following formula:
wherein ,is an analog signal;Is the first of the digital calibration signalsiThe value of the bit;Differential pair positive pole of CDAC arrayiA plurality of capacitors;Negative pole of CDAC array differential pairiA plurality of capacitors;For CDAC array differential pair positive total capacitance, < >>The total capacitance of the negative electrode of the CDAC array differential pair;Is the total number of capacitors in the capacitor array.
3. The LMS front calibration method of a successive approximation ADC of claim 2, wherein calculating a deviation of a difference between two digital results from a digital quantity corresponding to a preset offset comprises:
calculating the deviation of the difference value of the two digital results and the digital quantity of the preset offset according to the following formula:
wherein ,is->In secondary calibration, the difference value of the two digital results is deviated from the digital quantity of the preset offset;Is->During secondary calibration, the +.>The weight of the individual capacitances;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is the offset;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is an offset +.>Corresponding digital quantities.
4. A LMS front calibration method for a successive approximation ADC according to claim 3, wherein the adjusting the weight of the target capacitance and the digital amount corresponding to the preset offset to make the change amount of the target capacitance proportional to the deviation, and the deviation and the preset offset reach the convergence steady state comprises:
the weight of the adjusted target capacitance is calculated according to the following formula:
wherein ,is->During secondary calibration, the +.>The weight of the individual capacitances;Step length is adjusted for the weight;
calculating the number corresponding to the adjusted preset offset according to the following formula:
5. An LMS foreground calibration system for a successive approximation ADC comprising:
the signal generation module is used for generating any sequence by utilizing the pseudo-random signal or the sequence signal to stir the CDAC so as to enable the CDAC to generate an analog signal covering the range of the ADC part;
the offset generating module is used for firstly shifting 1 and then shifting 0 by utilizing a target capacitor in the capacitor array, so that analog signals of all upper electrode plates of the capacitors in the capacitor array are respectively provided with two offsets with the same size and opposite polarities; the offset exists in the analog signal in the form of offset voltage;
the signal quantization module is used for quantizing two analog signals with offset to obtain two quantized results;
the first calculation module is used for multiplying the two quantized results with the target capacitance weight respectively to obtain two digital results;
the second calculation module is used for calculating the deviation of the difference value of the two digital results and the digital quantity corresponding to the preset offset;
the adjusting module is used for adjusting the weight of the target capacitor and the digital quantity corresponding to the preset offset, so that the change quantity of the target capacitor is in direct proportion to the deviation, and the deviation and the preset offset reach a convergence stable state.
6. The LMS front calibration system of a successive approximation ADC of claim 5, wherein said signal generation module comprises:
a first calculation unit for calculating an analog signal according to the following formula:
wherein ,is an analog signal;Is the +.>The value of the bit;Differential pair positive pole of CDAC array>A plurality of capacitors;Negative pole of CDAC array differential pair +.>A plurality of capacitors;For CDAC array differential pair positive total capacitance, < >>The total capacitance of the negative electrode of the CDAC array differential pair;Is the total number of capacitors in the capacitor array.
7. The LMS foreground calibration system of a successive approximation ADC of claim 6, wherein said second calculation module comprises:
a second calculating unit for calculating the deviation of the difference between the two digital results and the digital quantity of the preset offset according to the following formula:
wherein ,is->In secondary calibration, the difference value of the two digital results is deviated from the digital quantity of the preset offset;is->During secondary calibration, the +.>The weight of the individual capacitances;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is the offset;Is->In the secondary calibration, successive approximation type ADC is added to the analog signal>Quantization is performed at->A bit result;Is an offset +.>Corresponding digital quantities.
8. The LMS foreground calibration system of a successive approximation ADC of claim 7, wherein said adjustment module comprises:
a third calculation unit for calculating the weight of the adjusted target capacitance according to the following formula:
wherein ,is->During secondary calibration, the +.>The weight of the individual capacitances;Step length is adjusted for the weight;
a fourth calculation unit, configured to calculate a digital quantity corresponding to the adjusted preset offset according to the following formula:
9. A computer device comprising a processor and a memory; wherein the processor, when executing the computer program stored in the memory, implements the steps of the LMS foreground calibration method of the successive approximation ADC of any one of claims 1-4.
10. A computer-readable storage medium storing a computer program; the computer program, when executed by a processor, implements the steps of the LMS foreground calibration method of a successive approximation ADC of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310206695.8A CN116073829A (en) | 2023-03-07 | 2023-03-07 | LMS foreground calibration method and system of successive approximation type ADC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310206695.8A CN116073829A (en) | 2023-03-07 | 2023-03-07 | LMS foreground calibration method and system of successive approximation type ADC |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116073829A true CN116073829A (en) | 2023-05-05 |
Family
ID=86183807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310206695.8A Pending CN116073829A (en) | 2023-03-07 | 2023-03-07 | LMS foreground calibration method and system of successive approximation type ADC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116073829A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117254811A (en) * | 2023-11-14 | 2023-12-19 | 北京智联安科技有限公司 | Successive approximation type analog-to-digital converter, and calibration method and medium for capacitor array of successive approximation type analog-to-digital converter |
CN117375611A (en) * | 2023-05-31 | 2024-01-09 | 中国移动通信有限公司研究院 | ADC chip, capacitance deviation adjusting method, device and system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108988860A (en) * | 2017-05-31 | 2018-12-11 | 深圳市中兴微电子技术有限公司 | A kind of calibration method and SAR ADC system based on SAR ADC |
CN109120268A (en) * | 2018-08-28 | 2019-01-01 | 电子科技大学 | A kind of dynamic comparer offset voltage calibration method |
CN110350918A (en) * | 2019-07-17 | 2019-10-18 | 电子科技大学 | A kind of digital Background calibration method based on least mean square algorithm |
CN110880934A (en) * | 2019-12-06 | 2020-03-13 | 清华大学深圳国际研究生院 | Successive approximation type analog-to-digital converter and calibration method |
US10917105B1 (en) * | 2018-08-29 | 2021-02-09 | Shenzhen Goodix Techology Co., Ltd | Successive approximation analog-to-digital converter with nonlinearity compensation |
CN113037287A (en) * | 2021-04-07 | 2021-06-25 | 西安交通大学 | Background calibration method and system for high-precision successive approximation analog-to-digital converter |
CN113938135A (en) * | 2021-10-21 | 2022-01-14 | 中国科学院半导体研究所 | Successive approximation type analog-to-digital converter and calibration method |
CN114050827A (en) * | 2021-11-17 | 2022-02-15 | 东南大学 | Digital calibration method applied to capacitance three-section successive approximation type analog-to-digital converter |
CN114389613A (en) * | 2022-03-24 | 2022-04-22 | 南京航空航天大学 | Capacitance mismatch calibration method of segmented successive approximation ADC |
-
2023
- 2023-03-07 CN CN202310206695.8A patent/CN116073829A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108988860A (en) * | 2017-05-31 | 2018-12-11 | 深圳市中兴微电子技术有限公司 | A kind of calibration method and SAR ADC system based on SAR ADC |
CN109120268A (en) * | 2018-08-28 | 2019-01-01 | 电子科技大学 | A kind of dynamic comparer offset voltage calibration method |
US10917105B1 (en) * | 2018-08-29 | 2021-02-09 | Shenzhen Goodix Techology Co., Ltd | Successive approximation analog-to-digital converter with nonlinearity compensation |
CN110350918A (en) * | 2019-07-17 | 2019-10-18 | 电子科技大学 | A kind of digital Background calibration method based on least mean square algorithm |
CN110880934A (en) * | 2019-12-06 | 2020-03-13 | 清华大学深圳国际研究生院 | Successive approximation type analog-to-digital converter and calibration method |
CN113037287A (en) * | 2021-04-07 | 2021-06-25 | 西安交通大学 | Background calibration method and system for high-precision successive approximation analog-to-digital converter |
CN113938135A (en) * | 2021-10-21 | 2022-01-14 | 中国科学院半导体研究所 | Successive approximation type analog-to-digital converter and calibration method |
CN114050827A (en) * | 2021-11-17 | 2022-02-15 | 东南大学 | Digital calibration method applied to capacitance three-section successive approximation type analog-to-digital converter |
CN114389613A (en) * | 2022-03-24 | 2022-04-22 | 南京航空航天大学 | Capacitance mismatch calibration method of segmented successive approximation ADC |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117375611A (en) * | 2023-05-31 | 2024-01-09 | 中国移动通信有限公司研究院 | ADC chip, capacitance deviation adjusting method, device and system |
CN117254811A (en) * | 2023-11-14 | 2023-12-19 | 北京智联安科技有限公司 | Successive approximation type analog-to-digital converter, and calibration method and medium for capacitor array of successive approximation type analog-to-digital converter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116073829A (en) | LMS foreground calibration method and system of successive approximation type ADC | |
CN110880934B (en) | Successive approximation type analog-to-digital converter and calibration method | |
CN109150183B (en) | Metastable state detection-based capacitance mismatch calibration method for SAR-ADC | |
CN102075189B (en) | Pipelined analog-to-digital converter (ADC) capable of carrying out background digital calibration | |
CN104518797B (en) | A kind of dither circuit being used in high-precision adc | |
CN109347477B (en) | Successive approximation type analog-to-digital converter weight calibration method | |
CN110768670B (en) | Digital piecewise linear calibration method for successive approximation type analog-to-digital converter | |
CN108988860B (en) | Calibration method based on SAR ADC and SAR ADC system | |
CN109361392B (en) | Successive approximation type analog-to-digital converter and weight calibration method thereof | |
CN113659984B (en) | Capacitance mismatch calibration method and system of successive approximation type analog-to-digital converter | |
CN111900983A (en) | Background calibration method based on related SAR ADC capacitance mismatch error | |
CN110880935A (en) | Error calibration method and system for high-speed analog-to-digital converter | |
US20240120932A1 (en) | Circuits, chips, systems and methods for eliminating random perturbation | |
CN102723951B (en) | Pipelined ADC (Analog-to-Digital Converter) digital background correcting circuit with translation technology | |
CN106899300A (en) | A kind of redundant cyclic averaging method for gradually-appoximant analog-digital converter | |
CN110768671B (en) | Off-chip calibration method and system for successive approximation type analog-to-digital converter | |
CN113938135B (en) | Successive approximation type analog-to-digital converter and calibration method | |
CN114553226A (en) | Calibration method and calibration system for analog-to-digital converter | |
CN109818617A (en) | A kind of high-precision calibration device of SAR type ADC | |
Murmann et al. | Digital domain measurement and cancellation of residue amplifier nonlinearity in pipelined ADCs | |
CN112468146B (en) | Calibration method and device for successive approximation register analog-to-digital converter | |
CN114024550A (en) | Analog-to-digital converter and automatic power distribution equipment | |
CN114553229B (en) | Capacitor mismatch calibration method and circuit | |
Lee et al. | Single-bin DFT-based digital calibration technique for CDAC in SAR ADCs | |
CN110048716B (en) | Digital-to-analog converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20230505 |
|
RJ01 | Rejection of invention patent application after publication |