Analog-to-digital converter calibration system and method

By controlling the decreasing gradient of the output voltage of the reference power supply, a gradually decreasing voltage value is generated for the analog to digital converter, and its output value is collected and compared with the factory calibration reference value, it solves the problem of the difficulty of comprehensive calibration of the analog to digital converter in the prior art. The problem has achieved the improvement of multi-point sampling and diagnostic efficiency.

CN111010180BActive Publication Date: 2024-11-15XTR SOLUTIONS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911316330.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-19
Publication Date
2024-11-15
Estimated Expiration
2039-12-19

Smart Images

  • Figure CN111010180B_ABST
    Figure CN111010180B_ABST
Patent Text Reader

Abstract

The present invention discloses an analog-to-digital converter calibration system and method, wherein the analog-to-digital converter calibration system includes: a standard reference unit and a data acquisition processing unit. The output end of the standard reference unit is connected to the input end of the analog-to-digital converter for generating a standard voltage. The data acquisition processing unit is respectively connected to the output end of the analog-to-digital converter and the standard reference source for data acquisition, processing and control of the operation of the standard reference unit. According to the analog-to-digital converter calibration system of the above technical solution, the data acquisition processing unit controls the standard reference unit to output a plurality of step-decreasing voltage values ​​to the analog-to-digital converter, and the data acquisition processing unit simultaneously acquires the output value of the analog-to-digital converter and compares it with the reference value stored in the data acquisition processing unit, thereby realizing a comprehensive calibration of the analog-to-digital converter, which is beneficial to the troubleshooting of problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of data acquisition, in particular to an analog-to-digital converter calibration system, and also to an analog-to-digital converter calibration method. Background Art

[0002] Analog-to-digital converters are devices that convert analog quantities to digital quantities and are widely used in various systems. Since complex systems have complex links and many nodes, it is difficult to achieve online diagnosis, so it is often necessary to actively calibrate the analog-to-digital converter.

[0003] Existing ADC calibration systems only sample a fixed point, which can cause difficult-to-troubleshoot problems when the ADC experiences non-fatal performance degradation due to aging. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides an analog-to-digital converter calibration system, which can achieve comprehensive calibration of the analog-to-digital converter by controlling the output voltage gradient of a standard reference power supply to decrease.

[0005] The invention also provides an analog-to-digital converter calibration method.

[0006] According to the first aspect of the present invention, the analog-to-digital converter calibration system includes: a standard reference unit, whose output end is connected to the input end of the analog-to-digital converter and is used to generate a standard voltage; a data acquisition and processing unit, which is respectively connected to the output end of the analog-to-digital converter and the standard reference unit, and is used to control the standard reference unit to output a set of gradually decreasing voltage values ​​to the analog-to-digital converter, and to collect actual values ​​converted by the analog-to-digital converter, and then process the actual values.

[0007] The analog-to-digital converter calibration system according to the embodiment of the present invention has at least the following beneficial effects: the data acquisition processing unit controls the standard reference unit to output a set of gradually decreasing voltage values ​​to the analog-to-digital converter, and at the same time the data acquisition processing unit receives the actual digital quantity converted by the analog-to-digital converter and compares it with the factory calibration reference value stored in the data acquisition processing unit to achieve comprehensive calibration of the analog-to-digital converter.

[0008] According to some embodiments of the present invention, a single-pole double-throw switch is also included between the standard reference unit and the analog-to-digital converter, the output end of the standard reference unit is connected to a fixed end of the single-pole double-throw switch, the other fixed end of the single-pole double-throw switch is connected to the sampling signal, and the fixed end of the single-pole double-throw switch is connected to the analog-to-digital converter.

[0009] According to some embodiments of the present invention, the standard reference unit includes: a first power supply; a digital-to-analog converter, whose output end is connected to the analog-to-digital converter; a reference voltage chip, whose input end is connected to the first power supply and whose output end is connected to the digital-to-analog converter; wherein the first power supply is used to provide electrical energy for the normal operation of the digital-to-analog converter and the reference voltage chip, the number of bits of the digital-to-analog converter is higher than that of the analog-to-digital converter, and the integral nonlinearity, differential nonlinearity error and temperature drift characteristics of the digital-to-analog converter are all better than those of the analog-to-digital converter.

[0010] According to some embodiments of the present invention, the data acquisition and processing unit includes: a second power supply; an MCU, connected to an analog-to-digital converter and the standard reference unit, respectively; and a non-volatile memory, connected to the MCU; wherein the second power supply is used to provide electrical energy for normal operation of the MCU, the non-volatile memory and the analog-to-digital converter.

[0011] According to some embodiments of the present invention, the first power supply includes a DC-DC conversion chip and a first low-voltage dropout linear regulator and a second low-voltage dropout linear regulator respectively connected to the output ends thereof, the input end of the DC-DC converter is connected to the bus voltage, the output end of the first low-voltage dropout linear regulator is connected to the reference voltage chip, and the output end of the second low-voltage dropout linear regulator is connected to the digital-to-analog converter.

[0012] According to the second aspect of the present invention, the analog-to-digital converter calibration method comprises the following steps:

[0013] S100: When powered on, the standard reference unit sequentially outputs a set of voltage values ​​A with an initial value of A0 and a step value of A0 / N that gradually decreases. i =A0-(i-1)A0 / N to the input end of the analog-to-digital converter, where i=1, 2, 3...N, the data acquisition processing unit obtains the N corresponding output values ​​of the analog-to-digital converter as N reference values ​​X1, X2...X N , where N is a natural number;

[0014] S200: Calibration starts. The standard reference unit outputs a set of voltage values ​​A with an initial value of A0 and a step value of A0 / N that decreases gradually. i =A0-(i-1)A0 / N to the input end of the analog-to-digital converter, where i=1, 2, 3...N, the data acquisition processing unit obtains the N corresponding output values ​​of the analog-to-digital converter as N actual values ​​Y1, Y2...Y N , where N is a natural number;

[0015] S300: Calculate the difference between the corresponding actual value and the reference value respectively to obtain N drift values ​​Z1, Z2, ..., Z N , where Z i =Y i -X i ;

[0016] S400: Compare each drift amount Z1, Z2, ... Z N The relationship between the value and the accuracy value is used to determine the point where drift occurs.

[0017] The analog-to-digital converter calibration method according to the embodiment of the present invention has at least the following beneficial effects: the analog-to-digital converter is calibrated once when it is powered on for the first time after leaving the factory, and a number of gradually decreasing voltage values ​​are provided to the analog-to-digital converter, and its output is recorded as a reference value. The same standard voltage value is provided during calibration, and the actual output of the analog-to-digital converter is measured, and the offset of each point is determined by comparing it with the reference value. The analog-to-digital converter is sampled at multiple points to achieve a comprehensive calibration of the analog-to-digital converter, which is convenient for finding out the cause of the problem.

[0018] According to some embodiments of the present invention, in step S100, the data acquisition processing unit obtains N corresponding output values ​​of the analog-to-digital converter as N reference values ​​X1, X2, ..., X N The specific method includes the following steps:

[0019] S110: The analog-to-digital converter samples the input voltage value of the current input terminal for a certain time T1;

[0020] S120: The data acquisition processing unit calculates the average value of the output value of the analog-to-digital converter during the period T1;

[0021] S130: Subtracting the average value from the input voltage value to obtain a difference C;

[0022] S140: If the difference C is not 0, proceed to step S150; if the difference C is 0, proceed to step S160;

[0023] S150: the data acquisition processing unit controls the standard reference unit to output a voltage value B to the input end of the analog-to-digital converter, and enters step S110, wherein if the difference C is a negative value, the voltage value B is higher than the last output voltage value of the standard reference unit by |C| / RES1 voltage units; if the difference C is a positive value, the voltage value B is lower than the last output voltage value of the standard reference unit by |C| / RES1 voltage units; wherein RES1 is the resolution of the digital-to-analog converter in the standard reference voltage unit;

[0024] S160: The average value is A iThe corresponding reference value X i , store the X i into the non-volatile memory. If i < N, the data acquisition and processing unit controls the standard reference unit to output the next voltage value A i+1 to the input end of the analog-to-digital converter, and enter step S110; if i = N, enter step S200.

[0025] According to some embodiments of the present invention, in S200, the data acquisition and processing unit obtains N corresponding output values of the analog-to-digital converter as N actual values Y1, Y2... Y N The specific method includes the following steps:

[0026] S210: The analog-to-digital converter samples the input voltage value at the current input end for a certain time T2;

[0027] S220: The data acquisition and processing unit calculates the average value of the output values of the analog-to-digital converter during this time T2;

[0028] S230: Subtract the average value from the input voltage value to obtain a difference C';

[0029] S240: If the difference C' is not 0, enter step S150; if the difference C' is 0, enter step S160;

[0030] S250: The data acquisition and processing unit controls the standard reference unit to output a voltage value B' to the input end of the analog-to-digital converter, and enter step S210, where if the difference C' is negative, the voltage value B' is higher than the previous output voltage value of the standard reference unit by |C'| / RES1 voltage units; if the difference C' is positive, the voltage value B' is lower than the previous output voltage value of the standard reference unit by |C'| / RES1 voltage units; where RES1 is the resolution of the digital-to-analog converter in the standard reference voltage unit;

[0031] S260: The average value is A i The corresponding reference value Y i , store the Y i into the data and processing unit. If i < N, the data acquisition and processing unit controls the standard reference voltage unit to output the next voltage value A i+1 to the input end of the analog-to-digital converter, and enter step S210; if i = N, enter step S300.

[0032] According to some embodiments of the present invention, the precision value in step S400 is 1 / N, and in step S400: respectively compare each drift amount Z1, Z2... Z NThe specific method for determining the point where drift occurs is: if the i-th drift value | Z i |≥1 / N, the analog-to-digital converter has drifted at this point; if the i-th drift Z i 、i+1th drift Z i+1 and the i+2th drift Z i+2 At the same time, 0<|Z n |<1 / N、0<|Z i+1 |<1 / N and 0<|Z i+2 |<1 / N, the analog-to-digital converter has drifted at this point; if the i-th drift Z i If it is 0, the analog-to-digital converter has no offset at this point.

[0033] According to some embodiments of the present invention, the number N=1 / RES2, RES2 is the resolution of the analog-to-digital converter.

[0034] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0036] Figure 1 A system block diagram of an embodiment of an analog-to-digital converter calibration system of the present invention;

[0037] Figure 2 is a system block diagram of an embodiment of a standard reference unit of the present invention;

[0038] Figure 3 is a circuit diagram of an embodiment of a first power supply of the present invention;

[0039] Figure 4 is a circuit schematic diagram of an embodiment of a first low voltage dropout linear regulator of the present invention;

[0040] Figure 5 is a circuit schematic diagram of an embodiment of a second low voltage dropout linear regulator of the present invention;

[0041] Figure 6 is a circuit diagram of an embodiment of a digital to analog converter of the present invention;

[0042] Figure 7 is a flow chart of an embodiment of an analog-to-digital converter calibration method of the present invention;

[0043] Figure 8is a flowchart of a specific method for obtaining a reference value of the present invention;

[0044] Fig. 9 The figure is a flow chart of a specific method for obtaining actual values ​​of the present invention.

[0045] Reference numerals:

[0046] A standard reference unit 100, a first power supply 110, a digital-to-analog converter 120, a reference voltage chip 130, a first low-dropout linear regulator 140, a second low-dropout linear regulator 150,

[0047] Data acquisition processing unit 200, second power supply 210, MCU 220, non-volatile memory 230,

[0048] SPDT switch 300. DETAILED DESCRIPTION

[0049] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0050] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0051] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0052] Reference Figure 1According to the embodiment of the first aspect of the present invention, the analog-to-digital converter calibration system includes a standard reference unit 100 and a data acquisition processing unit 200. The standard reference unit 100 is connected to the data acquisition processing unit 200, the output end of the standard reference unit 100 is connected to the analog-to-digital converter to be detected, and the output end of the analog-to-digital converter to be detected is connected to the data acquisition processing unit 200. When working, the data acquisition processing unit 200 controls the standard reference unit 100 to output a set of voltage values ​​with decreasing gradients as voltage values ​​to the input end of the analog-to-digital converter, the analog-to-digital converter converts the voltage value into a corresponding digital quantity actual value and transmits it to the data acquisition processing unit 200, the data acquisition processing unit 200 compares the actual value with the reference value pre-stored in the data acquisition processing unit 200, and judges the drift of the analog-to-digital converter according to the comparison result. Since multiple points are sampled, the performance of the analog-to-digital converter can be fully detected, which is convenient for troubleshooting in the communication system.

[0053] Reference Figure 1 In some embodiments, specifically, the output end of the standard reference unit 100 is connected to the analog-to-digital converter through a single-pole double-throw switch 300, the input end of the analog-to-digital converter is connected to the moving end of the single-pole double-throw switch 300, the output end of the standard reference unit 100 is connected to a fixed end of the single-pole double-throw switch 300, and the other fixed end of the single-pole double-throw switch 300 is connected to the sampling signal. By switching the single-pole double-throw switch 300, the sampling source of the analog-to-digital converter can be changed, and when the analog-to-digital converter needs to be calibrated, the standard reference unit 100 is switched to serve as the signal source of the analog-to-digital converter.

[0054] In some embodiments, specifically, the standard reference unit 100 includes a first power supply 110, a digital-to-analog converter 120 and a reference voltage chip 130. The digital-to-analog converter 120 is used to generate a standard voltage, and the digital-to-analog converter 120 is connected to the data acquisition processing unit 200, and the output end of the digital-to-analog converter 120 is connected. The reference voltage chip 130 provides a reference voltage for the digital-to-analog converter 120 to further improve the accuracy of the digital-to-analog converter 120, and the output end of the reference voltage chip 130 is connected to the digital-to-analog converter 120. The first power supply 110 provides working power for the digital-to-analog converter 120 and the reference voltage chip 130, and the input end of the first power supply 110 is connected to the bus. It can be understood that since the digital-to-analog converter 120 is used as the reference of the analog-to-digital converter, the number of bits, integral nonlinearity, differential nonlinearity error and temperature drift characteristics of the digital-to-analog converter 120 need to be better than the analog-to-digital converter being calibrated. In some embodiments, reference Figure 2As shown, the first power supply 110 provides working power to the reference voltage chip 130 and the digital-to-analog converter 120 through two low voltage dropout linear regulators, namely, low voltage dropout linear regulators.

[0055] Reference Figure 1 In some embodiments, specifically, the data acquisition processing unit 200 includes a second power supply 210, an MCU 220, and a non-volatile memory 230. The MCU 220 is connected to the analog-to-digital converter and the standard reference unit 100, respectively, controls the voltage output of the standard reference unit 100, and collects the output of the analog-to-digital converter. The non-volatile memory 230 is connected to the MCU 220, and the non-volatile memory 230 stores a reference value for determining whether the analog-to-digital converter drifts. It is understandable that the MCU 220 can select a microprocessor such as FPGA, ARM or DSP, and the non-volatile memory 230 can select FLASH or EEPROM.

[0056] Reference below Figures 1 to 5 The analog-to-digital converter calibration system according to the embodiment of the present invention is described in detail with a specific embodiment. It is worth noting that the following description is only an exemplary description and is not a specific limitation of the present invention.

[0057] Reference Figure 1 In this embodiment, MCU220 is connected to the input terminal of the digital-to-analog converter 120, MCU220 transmits the digital quantity to the digital-to-analog converter 120, and the digital-to-analog converter 120 converts the digital quantity into a corresponding voltage value, thereby controlling the output voltage of the digital-to-analog converter 120, and the non-volatile memory is selected from EEPROM. Figure 3 In this embodiment, the first power supply 110 uses the LTM4622 chip, which has an overvoltage protection function and can adapt to an ambient temperature of -40 to 85 degrees Celsius. Figure 4 5 , in this embodiment, the first low-dropout linear regulator 140 and the second low-dropout linear regulator 150 are both LT3025, wherein the first low-dropout linear regulator 140 is used to output a 1.8V DC voltage to the reference voltage chip 130, and the second low-dropout linear regulator 150 is used to output to the digital-to-analog converter 120. LT3025 has extremely low noise and can adapt to environments between -40 and 125 degrees Celsius. Figure 6 In this embodiment, the digital-to-analog converter 120 selects the 16-bit AD5693R. In this embodiment, the reference voltage chip 130 selects the LT6657-1.25.

[0058] Reference Figure 7According to the analog-to-digital converter calibration method of the embodiment of the second aspect of the present invention, the method specifically comprises the following steps:

[0059] S100: When powered on, the standard reference unit 100 sequentially outputs a set of voltage values ​​A with an initial value of A0 and a step value of A0 / N that gradually decreases. i =A0-(i-1)A0 / N to the input terminal of the analog-to-digital converter, where i=1, 2, 3...N, the data acquisition processing unit 200 obtains N corresponding output values ​​of the analog-to-digital converter as N reference values ​​X1, X2...X N , where N is a natural number. It is understood that the maximum number of samples N should not exceed the reciprocal of the resolution of the analog-to-digital converter. The reference value of the analog-to-digital converter is generally calibrated once when it is powered on for the first time and is permanently stored in the non-volatile memory 230 as a standard for subsequent calibration.

[0060] S200: Calibration starts. The standard reference unit 100 sequentially outputs a set of voltage values ​​A with an initial value of A0 and a step value of A0 / N that decreases gradually. i =A0-(i-1)A0 / N to the input end of the analog-to-digital converter, where i=1, 2, 3...N, the data acquisition processing unit 200 obtains the N corresponding output values ​​of the analog-to-digital converter as N actual values ​​Y1, Y2...Y N , where N is a natural number. That is, the control standard reference unit 100 outputs a set of gradually decreasing voltage values ​​that are the same as the reference value to the input end of the analog-to-digital converter, and the data acquisition processing unit 200 detects a corresponding set of outputs of the analog-to-digital converter as actual values, and compares the actual values ​​with the reference values ​​to calibrate the errors of each point of the analog-to-digital converter.

[0061] S300: Calculate the difference between the corresponding actual value and the reference value respectively to obtain N drift values ​​Z1, Z2, ..., Z N , where Z i =Y i -X i ;

[0062] S400: Compare the drift amount and the accuracy respectively to determine the point where the drift occurs.

[0063] Reference Figure 8 In some embodiments, since different analog-to-digital converters have different performances, and the accuracy of the digital-to-analog converter 120 used as a calibration standard is higher than the accuracy of the analog-to-digital converter, when obtaining the reference value, it is necessary to take the output of the point where the input and output of the analog-to-digital converter are exactly the same as the reference value. Specifically, the method for obtaining the reference value in step S100 adopts the following method:

[0064] S110: The analog-to-digital converter samples the input voltage value at the current input terminal for a certain time T1;

[0065] S120: The data acquisition and processing unit calculates the average value of the output values of the analog-to-digital converter during this time T1;

[0066] S130: Subtract the average value from the input voltage value to obtain a difference C;

[0067] S140: If the difference C is not 0, go to step S150; if the difference C is 0, go to step S160;

[0068] S150: The data acquisition and processing unit 200 controls the standard reference unit 100 to output a voltage value B to the input terminal of the analog-to-digital converter, and enter step S110. If the difference C is negative, the voltage value B is higher than the previous output voltage value of the standard reference unit 100 by |C| / RES1 voltage units; if the difference C is positive, the voltage value B is lower than the previous output voltage value of the standard reference unit 100 by |C| / RES1 voltage units; where RES1 is the resolution of the digital-to-analog converter 120 in the standard reference voltage unit 100. That is, according to the value of the difference C, a certain voltage value A i is finely adjusted to gradually approach the point near the voltage value A i where the input and output of the analog-to-digital converter exactly correspond.

[0069] S160: The average value is the corresponding reference value X i of A, store the X i into the non-volatile memory 230. If i < N, the data acquisition and processing unit 200 controls the standard reference unit 100 to output the next voltage value A i to the input terminal of the analog-to-digital converter, and enter step S110; if i = N, enter step S200. i+1 The following takes obtaining the reference value X1 as an example for specific description. At this time, i = 1. When step S110 is executed for the first time, under the control of the data acquisition and processing unit 200, the standard reference unit 100 outputs a voltage value A1 = A0 to the analog-to-digital converter. The average value obtained after step S120 is D

[0070] , and the difference obtained after step S130 is denoted as C 11 , if C 11 is 0, the value of X1 is B 11 , make the standard reference unit 100 output the next voltage value A2 = A0 - A0 / N, and then return to S110 to obtain the next reference value X2; if C 11 is not 0, make the standard reference unit 100 output the next voltage value A2 = A0 - A0 / N, and then return to S110 to obtain the next reference value X2; if C 11If it is not 0, then according to C 11 The positive and negative values ​​of the standard reference unit 100 are adjusted and output again, C 11 When the voltage is negative, the voltage value output by the standard reference unit 100 when executing S110 next time is recorded as B 11 =A0+|C 11 | / RES1,C 11 When the voltage is positive, the voltage value output by the standard reference unit 100 when executing S110 next time is recorded as B 11 =A0-|C 11 | / RES1. Then return to step S110 and obtain B through steps S120 and S130 respectively. 12 and C 12 , and go to step S140 again. 12 If it is 0, the value of X1 is B 12 , so that the standard reference unit 100 outputs the next voltage value A2 = A0-A0 / N, and then returns to S110 to obtain the next reference value X2; if C 12 When the voltage is negative, the voltage value output by the standard reference unit 100 when executing S110 next time is recorded as B 12 =B 11 +|C 12 | / RES1,C 12 When the voltage is positive, the voltage value output by the standard reference unit 100 when executing S110 next time is recorded as B 12 =B 11 -|C 12 | / RES1, and return to step S110 again until C is obtained for the jth time 1j Time C 1j =0, then the value of X1 is B 1j , so that the standard reference unit 100 outputs the next voltage value A2 = A0-A0 / N, to obtain the reference value X2 corresponding to the next voltage value A2. Finally, after multiple cycles, that is, all A i After i=1, 2, 3...N are all output by the standard reference unit 100, all the reference values ​​are obtained.

[0071] Reference Fig. 9 In some embodiments, the process of measuring the actual value is substantially the same as the process of obtaining the reference value, except that the obtained actual value is used for comparison with the reference value and is only stored in the cache of MCU220. The specific steps include:

[0072] S210: The analog-to-digital converter samples the input voltage value of the current input terminal for a certain time T2;

[0073] S220: The data acquisition and processing unit 200 calculates the average value of the output values of the analog-to-digital converter during this period T2;

[0074] S230: Subtract the average value from the input voltage value to obtain a difference C';

[0075] S240: If the difference C' is not 0, go to step S150; if the difference C' is 0, go to step S160;

[0076] S250: The data acquisition and processing unit 200 controls the standard reference unit to output a voltage value B' to the input end of the analog-to-digital converter, and enters step S210. If the difference C' is negative, the voltage value B' is higher than the previous output voltage value of the standard reference unit 100 by |C'| / RES1 voltage units; if the difference C' is positive, the voltage value B' is lower than the previous output voltage value of the standard reference unit 100 by |C'| / RES1 voltage units; where RES1 is the resolution of the digital-to-analog converter 120 in the standard reference voltage unit 100;

[0077] S260: The average value is A i The corresponding reference value Y i , store the Y i in the data and processing unit 200. If i < N, the data acquisition and processing unit 200 controls the standard reference voltage unit 100 to output the next voltage value A i+1 to the input end of the analog-to-digital converter, and enters step S210; if i = N, go to step S300.

[0078] In some embodiments, the standard for judging the i-th point is based on the resolution of the analog-to-digital converter. If the drift amount |Z i | = 0 at the i-th point, there is no drift at this point; if the drift amounts at this point and the next two consecutive points after this point satisfy 0 < |Z i | < RES2, there is drift at this point, where RES2 is the resolution of the analog-to-digital converter, and the number of sampled points N = 1 / RES2; if the drift amount at this point is not less than the resolution RES2 of the analog-to-digital converter, that is, |Z i | ≥ RES2, there is also drift at this point. It can be understood that the initial value A0 of the output decreasing voltage can be 1V for easy calculation, or any value within the measurement range of the analog-to-digital converter.

[0079] Taking the example that the number of bits of the digital-to-analog converter 120 is 16 bits and the number of bits of the analog-to-digital converter to be calibrated is 12 bits, the resolution RES1 of the digital-to-analog converter 120 is 1 / 65536, and the resolution RES2 of the analog-to-digital converter is 1 / 4096. The analog-to-digital converter needs to be sampled 4096 times during calibration and calibration. After each sampling, the step value of the output voltage drop of the standard reference unit 100 is A0 / 4096.

[0080] According to the analog-to-digital converter calibration system of the first embodiment of the present invention, the data acquisition processing unit controls the standard reference unit to output multiple gradually decreasing voltage values ​​to the analog-to-digital converter. The data acquisition processing unit simultaneously acquires the output value of the analog-to-digital converter and compares it with the reference value stored in the data acquisition processing unit, so as to realize comprehensive analog-to-digital converter calibration and facilitate the troubleshooting of problems. At the same time, the standard reference unit adopts a more accurate digital-to-analog converter as a standard, which is easy to implement and has low cost.

[0081] According to the analog-to-digital converter calibration method of the second embodiment of the present invention, the analog-to-digital converter is sampled multiple times to achieve a comprehensive calibration of the analog-to-digital converter. At the same time, the reference value is obtained by the gradual approximation method, so that a more accurate reference value of the analog-to-digital converter can be obtained before leaving the factory.

[0082] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0083] The embodiments of the present invention are described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.

Claims

1. An analog-to-digital converter calibration method, applied to an analog-to-digital converter calibration system, characterized in that: The steps include: S100: When powered on, the standard reference unit (100) sequentially outputs a set of voltage values ​​A with an initial value of A0 and a step value of A0 / N that decreases gradually. i =A0-(i-1)A0 / N is given to the input terminal of the analog-to-digital converter, where i=1, 2, 3...N, and the data acquisition processing unit (200) obtains N corresponding output values ​​of the analog-to-digital converter as N reference values ​​X1, X2...X N , where N is a natural number; S200: Calibration starts. The standard reference unit (100) sequentially outputs a set of voltage values ​​A with an initial value of A0 and a step value of A0 / N that decreases gradually. i =A0-(i-1)A0 / N is given to the input terminal of the analog-to-digital converter, where i=1, 2, 3...N, and the data acquisition processing unit (200) obtains N corresponding output values ​​of the analog-to-digital converter as N actual values ​​Y1, Y2...Y N , where N is a natural number; S300: Calculate the difference between the corresponding actual value and the reference value respectively to obtain N drift values ​​Z1, Z2, ... Z N , where Z i =Y i -X i ; S400: Compare each drift amount Z1, Z2, ... Z N The relationship between the value and the precision value determines the point where the drift occurs; In step S100, the data acquisition processing unit (200) obtains N corresponding output values ​​of the analog-to-digital converter as N reference values ​​X1, X2, ..., X N The specific method includes the following steps: S110: The analog-to-digital converter samples the input voltage value of the current input terminal for a certain time T1; S120: the data acquisition processing unit (200) calculates the average value of the output value of the analog-to-digital converter within the period T1; S130: Subtract the average value from the input voltage value to obtain a difference C; S140: If the difference C is not 0, proceed to step S150; if the difference C is 0, proceed to step S160; S150: the data acquisition processing unit (200) controls the standard reference unit to output a voltage value B to the input end of the analog-to-digital converter, and enters step S110, wherein if the difference C is a negative value, the voltage value B is higher than the last output voltage value of the standard reference unit (100) by |C| / RES1 voltage units; if the difference C is a positive value, the voltage value B is lower than the last output voltage value of the standard reference unit (100) by |C| / RES1 voltage units; wherein RES1 is the resolution of the digital-to-analog converter (120) in the standard reference voltage unit (100); S160: The average value is A i The corresponding reference value X i , store the X i in the non-volatile memory. If i < N, the data acquisition and processing unit (200) controls the standard reference unit (100) to output the next voltage value A i+1 to the input terminal of the analog-to-digital converter, and enter step S110; if i = N, enter step S200.

2. The method for calibrating an analog-to-digital converter according to claim 1, wherein: In S200, the data acquisition processing unit (200) obtains N corresponding output values ​​of the analog-to-digital converter as N actual values ​​Y1, Y2, ..., Y N The specific method includes the following steps: S210: The analog-to-digital converter samples the input voltage value of the current input terminal for a certain time T2; S220: the data acquisition processing unit (200) calculates the average value of the output value of the analog-to-digital converter within the period T2; S230: Subtract the average value from the input voltage value to obtain a difference value C'; S240: If the difference C' is not 0, proceed to step S150; if the difference C' is 0, proceed to step S160; S250: the data acquisition processing unit (200) controls the standard reference unit to output a voltage value B' to the input end of the analog-to-digital converter, and enters step S210, wherein if the difference C' is a negative value, the voltage value B' is higher than the last output voltage value of the standard reference unit (100) by |C'| / RES1 voltage units; if the difference C' is a positive value, the voltage value B' is lower than the last output voltage value of the standard reference unit (100) by |C'| / RES1 voltage units; wherein RES1 is the resolution of the digital-to-analog converter (120) in the standard reference voltage unit (100); S260: The average value is A i The corresponding reference value Y i , store the Y i in the data and processing unit (200). If i < N, the data acquisition and processing unit (200) controls the standard reference voltage unit (100) to output the next voltage value A i+1 to the input end of the analog-to-digital converter, and enter step S210; if i = N, enter step S300.

3. The method for calibrating an analog-to-digital converter according to claim 1, wherein: The precision value in step S400 is 1 / N. Step S400: compare each drift amount Z1, Z2, ... Z N The specific method to determine the point where drift occurs is as follows: If the i-th drift |Z i |≥1 / N, the analog-to-digital converter has drifted at this point; If the i-th drift Z i 、i+1th drift Z i+1 and the i+2th drift Z i+2 At the same time, 0<|Z n |<1 / N、0<|Z i+1 |<1 / N and 0<|Z i+2 |<1 / N, the analog-to-digital converter has drifted at this point; If the i-th drift Z i If it is 0, the analog-to-digital converter has no offset at this point.

4. The method for calibrating an analog-to-digital converter according to any one of claims 1 to 3, characterized in that: The number N = 1 / RES2, RES2 is the resolution of the analog to digital converter.

5. The method for calibrating an analog-to-digital converter according to claim 1, wherein: The analog-to-digital converter calibration system comprises: A standard reference unit (100), the output end of which is connected to the input end of the analog-to-digital converter, for generating a standard voltage; The data acquisition processing unit (200) is respectively connected to the output end of the analog-to-digital converter and the standard reference unit, and is used to control the standard reference unit (100) to output a set of gradually decreasing voltage values ​​to the analog-to-digital converter, and to acquire actual values ​​converted by the analog-to-digital converter, and then process the actual values.

6. The method for calibrating an analog-to-digital converter according to claim 5, characterized in that: A single-pole double-throw switch (300) is further provided between the standard reference unit (100) and the analog-to-digital converter; the output end of the standard reference unit (100) is connected to a fixed end of the single-pole double-throw switch (300); the other fixed end of the single-pole double-throw switch (300) is connected to a sampling signal; and the fixed end of the single-pole double-throw switch (300) is connected to the analog-to-digital converter.

7. The method for calibrating an analog-to-digital converter according to claim 5, characterized in that: The standard reference unit (100) comprises: A first power source (110); A digital-to-analog converter (120), the output end of which is connected to the analog-to-digital converter, and the input end of which is connected to the data acquisition processing unit (200); A reference voltage chip (130), having an input end connected to the first power source (110) and an output end connected to the digital-to-analog converter (120); The first power supply (110) is used to provide electric energy for the normal operation of the digital-to-analog converter (120) and the reference voltage chip (130); the number of bits of the digital-to-analog converter (120) is higher than that of an analog-to-digital converter; and the integral nonlinearity, differential nonlinearity error and temperature drift characteristics of the digital-to-analog converter (120) are better than those of an analog-to-digital converter.

8. The method for calibrating an analog-to-digital converter according to claim 5, wherein: The data acquisition and processing unit (200) comprises: A second power source (210); The MCU (220) is connected to the analog-to-digital converter and the standard reference unit (100) respectively; A non-volatile memory (230), connected to the MCU (220); The second power supply (210) is used to provide electrical energy for normal operation of the MCU (220), the non-volatile memory (230) and the analog-to-digital converter.

9. The method for calibrating an analog-to-digital converter according to claim 7, wherein: The first power supply (110) comprises a DC-DC conversion chip and a first low-voltage dropout linear regulator (140) and a second low-voltage dropout linear regulator (150) respectively connected to the output ends thereof, the input end of the DC-DC conversion chip being connected to a bus voltage, the output end of the first low-voltage dropout linear regulator (140) being connected to the reference voltage chip (130), and the output end of the second low-voltage dropout linear regulator (150) being connected to the digital-to-analog converter (120).