Method and device for calibrating pipelineADC (Analog to Digital Converter)

Calibration is performed by calculating the output encoding mean and variance of the pipelineADC, which solves the problems of low accuracy and high resource consumption in the existing technology, achieves higher-precision calibration and reduces hardware costs.

CN118764028AInactive Publication Date: 2024-10-11无锡芯亿集成电路有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411248804.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, pipeline ADC calibration methods such as the coded averaging method and the voltage dithering method have low accuracy, and using the variance method to calculate the Gain error requires consuming additional buffer resources, resulting in higher costs.

Method used

Calculate the mean and variance of the pipelineADC output code, perform offset and gain calibration, and use the mean and variance to determine whether the error adjustment register needs to be adjusted to achieve accurate calibration without the involvement of buffer resources.

Benefits of technology

It improves the calibration accuracy of the pipelineADC, reduces the hardware cost, and avoids the insufficient accuracy of the coding average method and voltage jitter method and the resource consumption problem of the variance method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764028A_ABST
    Figure CN118764028A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of pipeline ADC calibration, and discloses a pipeline ADC calibration method and device, and the method comprises the steps: calculating a mean value mean and a variance var of a pipeline ADC output code, and carrying out offset calibration and gain calibration according to the mean value mean and the variance var; in actual use, compared with calibration by using a coding average method and a voltage jitter method, the method provided by the invention performs calibration by calculating the mean value mean and the variance var of the output code of the pipelineADC, the precision is higher, and the whole method does not need the participation of buffer resources, so that the hardware cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pipeline ADC calibration, and in particular to a pipeline ADC calibration method and device. Background Art

[0002] Compared with ADCs of other structures, the biggest advantage of pipelineADC is that it has a good balance in terms of accuracy, speed and power consumption. In addition, due to its high accuracy, fast conversion speed, low power consumption and small chip area, it is increasingly used in high-speed and high-precision fields such as wireless communications and digital video.

[0003] When pipelineADC is actually used, due to the mismatch of internal MOS tubes and capacitors, as well as factors such as temperature drift and process deviation, there is a fixed voltage offset between the actual input and output characteristic curve of pipelineADC and the ideal input and output characteristic curve. This voltage offset is called Offset error. Although Offset error does not introduce nonlinearity to pipelineADC, excessive Offset error will also affect the dynamic performance of the system to a certain extent. Currently, most Offset error is calculated by measuring the voltage difference between the first conversion point and the theoretical zero point.

[0004] For pipeline ADC, when its offset error is eliminated, due to the influence of factors such as the offset or nonlinearity of the input voltage reference source of pipeline ADC and the gain drift of the amplifier, the slope of the actual input-output characteristic curve of pipeline ADC deviates from that of the ideal input-output characteristic curve. This deviation is called Gain error. It is usually expressed by the offset value of the actual input-output characteristic curve and the ideal input-output characteristic curve at the maximum output code. Similar to the offset error, it will not introduce system nonlinearity, but excessive Gain error will also affect the dynamics of the system to a certain extent.

[0005] At present, in order to find the zero point and the last conversion point to calculate the offset and gain error, the coding average method and the voltage jitter method are mostly used for measurement and calculation; The code average measurement is to continuously increase the input voltage of the pipelineADC device and then detect the conversion output result. Each time the input voltage is increased, some conversion codes will be obtained. The sum of these codes is used to calculate an average value. The input voltage that produces these average conversion codes is measured, so as to calculate the device offset and gain error. The voltage jitter method is similar to the code averaging method, except that it uses a dynamic feedback loop to control the input voltage of the pipeline ADC device. The input voltage is increased or decreased according to the difference between the conversion code and the expected code until the difference between the two codes is zero. When the expected conversion code is close to the input voltage or changes near the conversion point, the average value of the applied "jitter" voltage is measured.

[0006] In actual use, the calculation accuracy of the code average method and the voltage jitter method is limited. In addition, when using the variance method to calculate the gain error, additional buffer resources are required to store a large number of ADC output codes, which is costly. Summary of the invention

[0007] In view of the shortcomings of the background technology, the present invention provides a pipelineADC calibration method and device, and all the technical problems to be solved are that the coding average method and the voltage jitter method currently used to calibrate the pipelineADC have low accuracy, and the variance method needs to consume additional buffer resources when calculating the gain error.

[0008] To solve the above technical problems, in a first aspect, the present invention provides the following technical solutions: a pipeline ADC calibration method, comprising the following steps: S1: Calculate the mean and variance var of the pipelineADC output code; S2: Perform offset calibration, specifically, determine whether the mean value mean is within the required range. If the mean value is within the required range, execute step S3. Otherwise, first adjust the offset error adjustment register of pipelineADC, and then execute step S1. S3: Perform gain calibration, specifically, determine whether the variance var is within the target range. If the variance is within the target range, re-execute step S1; otherwise, first adjust the gain error adjustment register of pipelineADC, and then execute step S1.

[0009] In a certain implementation manner of the first aspect, the formula for calculating the mean in step S1 is as follows: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

[0010] In certain implementations of the first aspect, the formula for calculating the variance var in step S1 is as follows: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

[0011] In a certain implementation of the first aspect, in step S2, after adjusting the offset error adjustment register of the pipeline ADC, a delay is then performed before executing step S1.

[0012] In a certain implementation of the first aspect, in step S3, if the variance is within the target range, step S1 is executed again after a delay.

[0013] In a certain implementation of the first aspect, in step S3, after adjusting the gain error adjustment register of pipelineADC, a delay is then performed before executing step S1.

[0014] In certain implementations of the first aspect, the pipeline ADC is an eight-bit ADC, a 12-bit ADC, or a 16-bit ADC.

[0015] In a second aspect, the present invention provides a pipeline ADC calibration device, comprising an output code calculation unit, an offset calibration unit and a gain calibration unit, wherein the output code calculation unit calculates a mean value mean and a variance var of the pipeline ADC output code after receiving a calibration start signal; The offset calibration unit is electrically connected to the output coding calculation unit, and is used to obtain a mean value mean from the output coding calculation unit, and determine whether the mean value mean is within a required range. If the mean value is within the required range, an offset calibration qualified signal is output, otherwise, the content of the offset error adjustment register of the pipelineADC is adjusted; The gain calibration unit is electrically connected to the offset calibration unit and the output coding calculation unit respectively. After receiving the offset calibration qualified signal, it is judged whether the variance var obtained from the output coding calculation unit is within the target range. If the variance is within the target range, the gain calibration is considered qualified. Otherwise, the gain error adjustment register content of the pipelineADC is adjusted.

[0016] In a certain implementation manner of the second aspect, the output code calculation unit calculates the mean value mean of the pipelineADC output code according to the following formula: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

[0017] In a certain implementation manner of the second aspect, the output code calculation unit calculates the variance var of the pipelineADC output code according to the following formula: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

[0018] Compared with the prior art, the present invention has the following beneficial effects: compared with the use of coding average method and voltage jitter method for calibration, the method of the present invention performs calibration by calculating the mean mean and variance var of the output code of pipelineADC, which has higher accuracy, and the entire method does not require the participation of buffer resources, thereby reducing hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of the method of the present invention in Example 1; Figure 2 Schematic diagram of the structure of the device of the present invention in Example 2. DETAILED DESCRIPTION

[0020] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0021] Embodiment 1 like Figure 1 As shown, a pipeline ADC calibration method includes the following steps: S1: Calculate the mean and variance var of the pipelineADC output code.

[0022] Specifically, in this embodiment, the formula for calculating the mean in step S1 is as follows: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

[0023] Specifically, in this embodiment, the formula for calculating the variance var in step S1 is as follows: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

[0024] Specifically, in this embodiment, the number of bits of the pipeline ADC is not restrictive, and illustratively, it can be an 8-bit ADC, a 12-bit ADC, or a 16-bit ADC.

[0025] S2: Perform offset calibration, specifically, determine whether the mean value mean is within the required range. If the mean value is within the required range, execute step S3. Otherwise, first adjust the offset error adjustment register of pipelineADC, and then execute step S1.

[0026] In addition, in this step, after adjusting the offset error adjustment register of pipelineADC, a delay wait is performed before executing step S1.

[0027] Since the offset error is the difference between the ideal output and the actual output of the ADC, an offset error adjustment register is set in the ADC. By writing a value to the offset error adjustment register, the output value of the ADC can be adjusted so that the ideal output of the ADC matches the actual output. This application is to adjust the value of the offset error adjustment register by judging the mean value, so as to achieve offset calibration. For example, for the ADC chip model TS5120-C, there are the following offset error adjustment registers: VCM_COMPP1 register and VCM_COMPN1 register; VCM_COMPP2 register and VCM_COMPN2 register; VCM_COMPP3 register and VCM_COMPN3 register; vosp_gm1 register and vosn_gm1 register; vosp1_gm2 register and vosn2_gm2 register; vosn1_gm2 register and vosp2_gm2 register.

[0028] S3: Perform gain calibration, specifically, determine whether the variance var is within the target range. If the variance is within the target range, re-execute step S1. Otherwise, first adjust the gain error adjustment register of pipelineADC, and then execute step S1.

[0029] In addition, in this embodiment, in step S3, if the variance is within the target range, step S1 is executed again after a delay.

[0030] In addition, in this embodiment, in step S3, after adjusting the gain error adjustment register of pipelineADC, a delay is performed and then step S1 is executed.

[0031] Similarly, since the gain error is the difference between the actual output slope and the ideal output slope, a gain error adjustment register is set in the ADC. By writing a value to the gain error adjustment register, the output value of the ADC can be adjusted so that the ideal output slope of the ADC matches the actual output slope. This application is to adjust the value of the gain error adjustment register by judging the variance var, so as to achieve gain calibration. For example, for the ADC chip model TS5120-C, there are the following gain error adjustment registers: VREF2 register and VREF3 register.

[0032] In actual use, compared with the use of coding average method and voltage jitter method for calibration, the method of the present invention performs calibration by calculating the mean mean and variance var of the output code of pipelineADC, which has higher accuracy, and the entire method does not require the participation of buffer resources, thereby reducing hardware costs.

[0033] Embodiment 2 like Figure 2 As shown, this embodiment provides a pipeline ADC calibration device, including an output code calculation unit 1, an offset calibration unit 2 and a gain calibration unit 3. After receiving a calibration start signal, the output code calculation unit 1 calculates a mean value mean and a variance var of the pipeline ADC output code; The offset calibration unit 2 is electrically connected to the output coding calculation unit 1, and is used to obtain the mean value mean from the output coding calculation unit 1, and determine whether the mean value mean is within the required range. If the mean value is within the required range, an offset calibration qualified signal is output, otherwise, the content of the offset error adjustment register of the pipelineADC is adjusted; The gain calibration unit 3 is electrically connected to the offset calibration unit 2 and the output coding calculation unit 1 respectively. After receiving the offset calibration qualified signal, it determines whether the variance var obtained from the output coding calculation unit 1 is within the target range. If the variance is within the target range, it is considered that the gain calibration is qualified. Otherwise, the gain error adjustment register content of the pipelineADC is adjusted.

[0034] Specifically, in this embodiment, the output code calculation unit 1 calculates the mean value mean of the pipelineADC output code according to the following formula: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

[0035] Specifically, in this embodiment, the output code calculation unit 1 calculates the variance var of the pipelineADC output code according to the following formula: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

[0036] The above is based on the present invention as an inspiration. Through the above description, relevant staff can make various changes and modifications without departing from the technical idea of ​​this invention. The technical scope of this invention is not limited to the content in the specification, and its technical scope must be determined according to the scope of the claims.

Claims

1. A pipeline ADC calibration method, characterized in that: The steps include: S1: Calculate the mean and variance var of the pipelineADC output code; S2: Perform offset calibration, specifically, determine whether the mean value mean is within the required range. If the mean value is within the required range, execute step S3. Otherwise, first adjust the offset error adjustment register of pipelineADC, and then execute step S1. S3: Perform gain calibration, specifically, determine whether the variance var is within the target range. If the variance is within the target range, re-execute step S1; otherwise, first adjust the gain error adjustment register of pipelineADC, and then execute step S1.

2. A pipeline ADC calibration method according to claim 1, characterized in that: The formula for calculating the mean in step S1 is as follows: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

3. The pipeline ADC calibration method according to claim 1, characterized in that: The formula for calculating the variance var in step S1 is as follows: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

4. The pipeline ADC calibration method according to claim 1, characterized in that: In step S2, after adjusting the offset error adjustment register of pipelineADC, step S1 is executed after a delay.

5. The pipeline ADC calibration method according to claim 1, characterized in that: In step S3, if the variance is within the target range, step S1 is executed again after a delay.

6. The pipeline ADC calibration method according to claim 1, characterized in that: In step S3, after adjusting the gain error adjustment register of pipelineADC, step S1 is executed after a delay.

7. The pipeline ADC calibration method according to claim 1, characterized in that: The pipelineADC is an 8-bit ADC, a 12-bit ADC or a 16-bit ADC.

8. A pipeline ADC calibration device, characterized in that: It includes an output code calculation unit, an offset calibration unit and a gain calibration unit. After receiving a start calibration signal, the output code calculation unit calculates the mean and variance var of the pipelineADC output code; The offset calibration unit is electrically connected to the output coding calculation unit, and is used to obtain a mean value mean from the output coding calculation unit, and determine whether the mean value mean is within a required range. If the mean value is within the required range, an offset calibration qualified signal is output, otherwise, the content of the offset error adjustment register of the pipelineADC is adjusted; The gain calibration unit is electrically connected to the offset calibration unit and the output coding calculation unit respectively. After receiving the offset calibration qualified signal, it is judged whether the variance var obtained from the output coding calculation unit is within the target range. If the variance is within the target range, the gain calibration is considered qualified. Otherwise, the gain error adjustment register content of the pipelineADC is adjusted.

9. The pipeline ADC calibration device according to claim 8, characterized in that: The output code calculation unit calculates the mean value mean of the pipelineADC output code according to the following formula: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

10. The pipeline ADC calibration device according to claim 8, characterized in that: The output code calculation unit calculates the variance var of the pipelineADC output code according to the following formula: ; Among them, xi is the code of the i-th sampling, and n is the total number of samples.

Citation Information

Patent Citations

  • Analog-to-digital converter with reference ADC path and non-linear background correction algorithm thereof

    CN117411484A

  • System and Method For Digitally Correcting Mismatches In Multipath ADCs

    US20120293348A1

  • Method and apparatus for providing digital background calibration for mismatches in m-channel time-interleved adcs (ti-adcs)

    US20170117914A1

  • Methods and apparatus for calibrating pipeline analog-to-digital converters

    US8344920B1