CN109245767A - A kind of software-based ADC automatic calibrating method - Google Patents

A kind of software-based ADC automatic calibrating method Download PDF

Info

Publication number
CN109245767A
CN109245767A CN201811248536.XA CN201811248536A CN109245767A CN 109245767 A CN109245767 A CN 109245767A CN 201811248536 A CN201811248536 A CN 201811248536A CN 109245767 A CN109245767 A CN 109245767A
Authority
CN
China
Prior art keywords
value
adc
voltage
control precision
standard source
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
Application number
CN201811248536.XA
Other languages
Chinese (zh)
Inventor
孙昆
赵伯阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Computer Technology and Applications
Original Assignee
Beijing Institute of Computer Technology and Applications
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Institute of Computer Technology and Applications filed Critical Beijing Institute of Computer Technology and Applications
Priority to CN201811248536.XA priority Critical patent/CN109245767A/en
Publication of CN109245767A publication Critical patent/CN109245767A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/10Calibration or testing
    • H03M1/1009Calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of software-based ADC automatic calibrating methods, wherein includes: setting externally input reference voltage y1, times of collection m;From programme control precision standard source output voltage y1 to ADC acquisition system;M acquisition operation is carried out, removes maximum value after collection result is sorted and minimum value is averaged x1, the measured value as reference voltage value y1;Step 4, externally input reference voltage y2, times of collection n are set;From programme control precision standard source output voltage y2 to ADC acquisition system;Remove maximum value after collection result is sorted and minimum value is averaged x2, the measured value as reference voltage value y2;Calculate calibration factor a=(y1-y2)/(x1-x2), b=y1- (y1-y2)/(x1-x2) * x1;Other voltage values y3 is exported from programme control precision standard source, collected voltage x3 is read, compensates error, if error is larger, re-starts adjustment, until error is acceptable.

Description

A kind of software-based ADC automatic calibrating method
Technical field
The present invention relates to analog-digital converter technology, in particular to a kind of software-based ADC automatic calibrating method.
Background technique
With the development of science and technology, analog-digital converter (Analog to Digital Converter, ADC) obtains Very extensive application has huge application in the fields such as wireless communication, digital instrumentation, medical imaging, high definition television Prospect.Most of signal in nature exists all in the form of analog signal, and ADC is as connection simulated world and digital world Bridge, carry important task that is analog signal is reported as precisely as possible, being rapidly converted into corresponding digital signal, be signal processing system System whether successful key factor.
Typical ADC converts analog signals into the digital signal of certain proportion voltage value.Preferably ADC transformation model is One linear function, analog signal can be put before carrying out conversion ADC by signal conditioning circuit, isolation operation in practical application The processing such as big device, to introduce error.Laser trimming is the ADC collimation technique of early application, but this technology has destructiveness, The injury caused by calibrating for the first time can not be reversed, there is certain limitation, so in recent years gradually by various self calibration skills Replaced art.Self-calibration technique is compensated by ADC system itself detection error, can be divided into mould again by required circuit types Quasi- calibration and digital calibration.
Summary of the invention
The purpose of the present invention is to provide a kind of software-based ADC automatic calibrating methods, for solving above-mentioned existing skill The problem of art.
A kind of software-based ADC automatic calibrating method of the present invention, wherein include: the electricity for setting and being exported through ADC acquisition system Pressure value is measured value x, value y on the basis of the voltage value exported by programme control precision standard source, and a reference value=a* measured value+b is expressed as Y=a*x+b;Step 1, externally input reference voltage y1, times of collection m are set;Step 2, it is exported from programme control precision standard source Voltage y1 to ADC acquisition system;Step 3, m acquisition operation is carried out, removes maximum value and minimum value after collection result is sorted It is averaged x1, the measured value as reference voltage value y1;Step 4, externally input reference voltage y2, times of collection n are set; Step 5, from programme control precision standard source output voltage y2 to ADC acquisition system;Step 6, n times acquisition operation is carried out, acquisition is tied Remove maximum value after fruit sequence and minimum value is averaged x2, the measured value as reference voltage value y2;Step 7, pass through equation Group y1=a*x1+b and y2=a*x2+b calculates calibration factor a=(y1-y2)/(x1-x2), b=y1- (y1-y2)/(x1-x2) * x1;Step 8, other voltage values y3 is exported from programme control precision standard source, reads collected voltage x3, passes through formula y=a*x+b Error is compensated, if error is larger, 1-7 is re-execute the steps and is adjusted, until error is acceptable, executes step 9;Step 9, each channel of ADC is calibrated all in accordance with step 1-8.
One embodiment of software-based ADC automatic calibrating method according to the present invention, wherein updated after the completion of calibration pre- The calibration parameter file set.
One embodiment of software-based ADC automatic calibrating method according to the present invention, wherein inside ADC acquisition system Circuit includes cable and connector, signal conditioning circuit, isolation operational amplifier and ADC chip.
Software-based ADC automatic calibrating method of the invention can be at any time using soft under the premise of not modifying hardware The method of part calibrates ADC, and is directed to application, and calibration region is adjusted flexibly, accomplishes sectional calibration.
Detailed description of the invention
Fig. 1 show system connection schematic diagram;
Fig. 2 show software-based ADC automatic calibrating method flow chart.
Specific embodiment
To keep the purpose of the present invention, content and advantage clearer, with reference to the accompanying drawings and examples, to of the invention Specific embodiment is described in further detail.
Fig. 1 show system connection schematic diagram, and Fig. 2 show software-based ADC automatic calibrating method flow chart, such as schemes Shown in 1 and Fig. 2,
The present invention includes programme control precision standard source and ADC acquisition system, and the effect of programme control precision standard source is outputting reference Voltage, it is also possible to carry the industrial personal computer substitution of high precision digital-to-analog converter (Digital to Analog Converter, DAC); ADC acquisition system includes cable and connector, signal conditioning circuit, isolation operational amplifier, ADC chip.External reference voltages Voltage division processing is carried out by signal conditioning circuit, the voltage before converting ADC can satisfy the input voltage range of chip.
As shown in Figure 1 and Figure 2, a kind of software-based ADC automatic calibrating method of the present invention, comprising:
Arranging the voltage value exported through ADC acquisition system is measured value x, is by the voltage value that programme control precision standard source exports A reference value y, in a certain range, the two meet linear rule, and a reference value=a* measured value+b is expressed as y=with mathematical formulae a*x+b;
The ADC calibration method comprises the steps of:
Step 1, calibration procedure is run in ADC acquisition system, externally input reference voltage y1, times of collection m is set;
Step 2, from programme control precision standard source output voltage y1 to ADC acquisition system;
Step 3, calibration procedure executes m acquisition operation, removes maximum value after collection result is sorted and minimum value is made even Mean value x1, the measured value as reference voltage value y1;
Step 4, externally input reference voltage y2, times of collection n is arranged in calibration procedure;
Step 5, from programme control precision standard source output voltage y2 to ADC acquisition system;
Step 6, calibration procedure executes n times acquisition operation, removes maximum value after collection result is sorted and minimum value is made even Mean value x2, the measured value as reference voltage value y2;
Step 7, calibration factor a=(y1-y2)/(x1-x2) is calculated by equation group y1=a*x1+b and y2=a*x2+b, B=y1- (y1-y2)/(x1-x2) * x1;
Step 8, other voltage values are exported from programme control precision standard source, is missed after collecting voltage using calibration parameter compensation Difference re-execute the steps 1-7 and is adjusted if error is larger, until error is acceptable;
Step 9, each channel of ADC is calibrated all in accordance with above step, preset calibration is updated after the completion of calibration Parameter File.
As shown in Figure 1 and Figure 2, the calibration result of an ADC channel is provided using method of the invention:
Programme control precision standard source exports 10.001V, 20.001V voltage respectively, and each acquisition 10 times is thrown away before calculating average value Every group of maximum value and minimum value.Obtained initial data and average value is shown in Table 1.
1 acquired original test data of table
Calibration parameter a=0.989775, b=0.202468 is calculated.Data after calibration are shown in Table 2.
Data after table 2 is calibrated
Compare Tables 1 and 2 as it can be seen that error reduction after calibrating using the method for the present invention, is especially 10.001V in reference voltage Shi Xiaoguo is obvious.To improve the conversion accuracy near 20.001V, reference voltage can be increased near the voltage value, be divided Section sampling.
The present invention is the power supply of ADC acquisition system using programme control precision standard source, and ADC acquisition system internal circuit includes cable With connector, signal conditioning circuit, isolation operational amplifier and ADC chip.ADC acquisition system of the invention can be certainly after powering on Dynamic to start to convert, the time needed for the ADC chip that this example uses completes primary conversion is within 10us.The present invention calibrates When, two groups of reference voltages y1, y2 are exported by programme control precision standard source respectively, after calibration procedure carries out multi collect to every group of voltage Average value x1 is calculated, then x2 utilizes equation group y1=a*x1+b and y2=a*x2+b calculating parameter a and b as measured value.From Programme control precision standard source exports several groups of other voltage values as benchmark again, collects and carries out error benefit by formula after original value It repays, whether the calibration parameter calculated before judgement can be used.If it is available, the calibration parameter file in more new system, otherwise again It is calibrated, until error is met the requirements;After the completion of calibration, user program obtains conversion value by AD driving interface, drives journey Calibration parameter file, which can be read automatically, inside sequence carries out error compensation.
In conclusion the technical solution adopted by the present invention design is simple and convenient to operate, the benchmark that can be inputted with flexible setting Voltage value, the extreme value number arranging times of collection and giving up when calculating average value, to improve calibration accuracy.In entire mistake Cheng Zhong, does not need to modify to hardware circuit or programming program again, reduces operation difficulty, calibrates convenient for staff ADC device.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, several improvement and deformations can also be made, these improvement and deformations Also it should be regarded as protection scope of the present invention.

Claims (3)

1. a kind of software-based ADC automatic calibrating method characterized by comprising
If the voltage value exported through ADC acquisition system is measured value x, it is worth on the basis of the voltage value exported by programme control precision standard source Y, a reference value=a* measured value+b, is expressed as y=a*x+b;
Step 1, externally input reference voltage y1, times of collection m are set;
Step 2, from programme control precision standard source output voltage y1 to ADC acquisition system;
Step 3, m acquisition operation is carried out, removes maximum value after collection result is sorted and minimum value is averaged x1, as base The measured value of quasi- voltage value y1;
Step 4, externally input reference voltage y2, times of collection n are set;
Step 5, from programme control precision standard source output voltage y2 to ADC acquisition system;
Step 6, n times acquisition operation is carried out, removes maximum value after collection result is sorted and minimum value is averaged x2, as base The measured value of quasi- voltage value y2;
Step 7, calibration factor a=(y1-y2)/(x1-x2), b=are calculated by equation group y1=a*x1+b and y2=a*x2+b y1-(y1-y2)/(x1-x2)*x1;
Step 8, other voltage values y3 is exported from programme control precision standard source, reads collected voltage x3, passes through formula y=a*x+ B compensates error, if error is larger, re-execute the steps 1-7 and is adjusted, and until error is acceptable, executes step 9;
Step 9, each channel of ADC is calibrated all in accordance with step 1-8.
2. software-based ADC automatic calibrating method as described in claim 1, which is characterized in that updated after the completion of calibration pre- The calibration parameter file set.
3. software-based ADC automatic calibrating method as described in claim 1, which is characterized in that electricity inside ADC acquisition system Road includes cable and connector, signal conditioning circuit, isolation operational amplifier and ADC chip.
CN201811248536.XA 2018-10-25 2018-10-25 A kind of software-based ADC automatic calibrating method Pending CN109245767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811248536.XA CN109245767A (en) 2018-10-25 2018-10-25 A kind of software-based ADC automatic calibrating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811248536.XA CN109245767A (en) 2018-10-25 2018-10-25 A kind of software-based ADC automatic calibrating method

Publications (1)

Publication Number Publication Date
CN109245767A true CN109245767A (en) 2019-01-18

Family

ID=65081969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811248536.XA Pending CN109245767A (en) 2018-10-25 2018-10-25 A kind of software-based ADC automatic calibrating method

Country Status (1)

Country Link
CN (1) CN109245767A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545103A (en) * 2019-10-15 2019-12-06 上海磐启微电子有限公司 ADC calibration method based on least square method
CN110907721A (en) * 2019-11-08 2020-03-24 浙江高成绿能科技有限公司 Control panel test system
CN112362955A (en) * 2020-10-22 2021-02-12 深圳力维智联技术有限公司 ADC (analog to digital converter) acquisition method, device and equipment based on self calibration and storage medium
CN112578270A (en) * 2020-12-29 2021-03-30 深圳市芯天下技术有限公司 Test method and device for automatic calibration of reference voltage, storage medium and terminal
CN114153786A (en) * 2021-11-26 2022-03-08 山东云海国创云计算装备产业创新中心有限公司 Server and SOC system thereof
CN114167120A (en) * 2021-12-14 2022-03-11 国网山东省电力公司淄博供电公司 Method for improving dynamic range and precision of low-voltage distribution network monitoring terminal measuring current

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5361067A (en) * 1992-11-30 1994-11-01 Motorola Inc. Digital linearization calibration for analog to digital converter
US6111529A (en) * 1998-09-30 2000-08-29 Cirrus Logic, Inc. Accurate gain calibration of analog to digital converters
US20030146861A1 (en) * 2002-02-01 2003-08-07 Poulton Kenneth D. Method of calibrating an analog-to-digital converter and a circuit implementing the same
CN102163972A (en) * 2010-02-18 2011-08-24 英特希尔美国公司 Correction of non-linearities in adcs
US8816886B1 (en) * 2013-03-15 2014-08-26 Pmc-Sierra Us, Inc. Method and apparatus to control the effective gain of a statistically calibrated analog to digital converter
CN105811977A (en) * 2015-01-16 2016-07-27 联发科技股份有限公司 Calibration circuit and method for analog-to-digital converter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5361067A (en) * 1992-11-30 1994-11-01 Motorola Inc. Digital linearization calibration for analog to digital converter
US6111529A (en) * 1998-09-30 2000-08-29 Cirrus Logic, Inc. Accurate gain calibration of analog to digital converters
US20030146861A1 (en) * 2002-02-01 2003-08-07 Poulton Kenneth D. Method of calibrating an analog-to-digital converter and a circuit implementing the same
CN102163972A (en) * 2010-02-18 2011-08-24 英特希尔美国公司 Correction of non-linearities in adcs
US8816886B1 (en) * 2013-03-15 2014-08-26 Pmc-Sierra Us, Inc. Method and apparatus to control the effective gain of a statistically calibrated analog to digital converter
CN105811977A (en) * 2015-01-16 2016-07-27 联发科技股份有限公司 Calibration circuit and method for analog-to-digital converter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程曙霞: "《工程试验理论》", 31 May 1992 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545103A (en) * 2019-10-15 2019-12-06 上海磐启微电子有限公司 ADC calibration method based on least square method
CN110907721A (en) * 2019-11-08 2020-03-24 浙江高成绿能科技有限公司 Control panel test system
CN112362955A (en) * 2020-10-22 2021-02-12 深圳力维智联技术有限公司 ADC (analog to digital converter) acquisition method, device and equipment based on self calibration and storage medium
CN112578270A (en) * 2020-12-29 2021-03-30 深圳市芯天下技术有限公司 Test method and device for automatic calibration of reference voltage, storage medium and terminal
CN114153786A (en) * 2021-11-26 2022-03-08 山东云海国创云计算装备产业创新中心有限公司 Server and SOC system thereof
CN114153786B (en) * 2021-11-26 2023-08-04 山东云海国创云计算装备产业创新中心有限公司 Server and SOC (system on chip) system thereof
CN114167120A (en) * 2021-12-14 2022-03-11 国网山东省电力公司淄博供电公司 Method for improving dynamic range and precision of low-voltage distribution network monitoring terminal measuring current
CN114167120B (en) * 2021-12-14 2023-09-19 国网山东省电力公司淄博供电公司 Method for improving dynamic range and accuracy of measuring current of low-voltage distribution network monitoring terminal

Similar Documents

Publication Publication Date Title
CN109245767A (en) A kind of software-based ADC automatic calibrating method
WO2006119303A3 (en) Apparatus and methods for measurement of analog voltages in an integrated circuit
CN103675384B (en) Multifunctional handheld double-channel touch oscilloscope and using method thereof
CN103457603A (en) ADC dynamic parameter testing method based on average frequency spectra
CN103245776A (en) Blood glucose detection system based on intelligent mobile terminal
CN106053899A (en) Reference signal generation system and method
CN106645942B (en) Low-cost high-precision embedded signal acquisition and analysis system and method
Arpaia et al. Metrological characterization of a low-cost electroencephalograph for wearable neural interfaces in industry 4.0 applications
CN102445608B (en) Monitoring device and calibration method for electric energy quality
CN103926550B (en) A kind of device and method that electric power mutual-inductor is verified based on virtual instrument
CN108873786A (en) Data collection system based on digital quantity conditioning
Wang et al. FPGA-based design and implementation of arterial pulse wave generator using piecewise Gaussian–cosine fitting
Wright et al. Development of an ethernet-enabled digitizer for on-site AC measurements
KR101811661B1 (en) Apparatus and method for testing power converter of new renewable energy
CN205430258U (en) Radio frequency transmiting receiving component's radio frequency index measuring device
CN109450564B (en) A kind of PA sends the calibration of power and compensation method
CN110827636A (en) Measurement and control circuit teaching experiment system with simulation function and experiment method
CN213875999U (en) Digital direct current electric energy meter calibration device
CN203325292U (en) An analog circuit and digital signal processing experiment platform used for experiments in institutions of higher learning
CN204241442U (en) Hyperchannel indoor gas parameter tester and indoor gas parameter test system
CN202939298U (en) Alternating current sampling transmitter calibration instrument
CN104215597A (en) Methane concentration reference information obtaining method and device
CN215769467U (en) Pump truck controller hardware-in-loop test system
CN105989200B (en) The emulation mode and device of analog-digital converter
CN204228773U (en) A kind of conditioning circuit for rotary transformer for testing

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: 20190118

RJ01 Rejection of invention patent application after publication