CN101764610A - Hardware and software implementation method for improving digital-analog/analog-digital conversion accuracy - Google Patents
Hardware and software implementation method for improving digital-analog/analog-digital conversion accuracy Download PDFInfo
- Publication number
- CN101764610A CN101764610A CN200910312137A CN200910312137A CN101764610A CN 101764610 A CN101764610 A CN 101764610A CN 200910312137 A CN200910312137 A CN 200910312137A CN 200910312137 A CN200910312137 A CN 200910312137A CN 101764610 A CN101764610 A CN 101764610A
- Authority
- CN
- China
- Prior art keywords
- analog
- voltage
- software
- digital
- hardware
- 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
Images
Abstract
The invention discloses a hardware and software implementation method for improving digital-analog/analog-digital conversion accuracy, which comprises the following four steps: (1) treatment on the error caused by earth wires; (2) reference voltage generation; (3) A/D protection circuit; and (4) software treatment. A reference voltage generating circuit of the invention can provide a high-precision reference voltage source, thereby reducing the cost for buying accurate voltage source; the software is used for processing the converted signals so as to further revise the errors generated in a hardware circuit and improve the accuracy; the invention carries out buffering and limiting processing on the acquired signals so as to limit the voltage accessing an A/D converter, and protect an A/D conversion chip. The invention provides a hardware and software implementation mechanism for effectively improving the digital-analog/analog-digital conversion accuracy.
Description
Technical field
The present invention relates to a kind of method of software and hardware, be specifically related to a kind of method of software and hardware that improves digital-analog/analog-digital conversion accuracy.
Background technology
Along with development of auto-control technology, utilize digital computer to realize the collection and the processing of analog signal have been become the most general way.The parameters of controlled device is normally reflected by analog quantity, so the processing accuracy of analog signal is directly connected to control precision.Conversion between the analog quantity digital quantity (hereinafter to be referred as digital-to-analogue/analog-to-digital conversion) circuit is indispensable in an electronic system part, and the precision problem of conversion is to weigh the important technology index that whether superior change-over circuit is.
At present, utilize the computer system processor analog signal to popularize, every utilize computer to detect automatically and automatically control all can use the problem of analog quantity to the digital quantity conversion.The analog to digital converter of high accuracy, long number costs an arm and a leg at present, and precisely the price of voltage source is also high.
Summary of the invention
The object of the present invention is to provide a kind of method of software and hardware that improves digital-analog/analog-digital conversion accuracy, it has solved the technical problem of cost height in the background technology and digital-analog/analog-digital conversion accuracy difference.
Technical solution of the present invention is:
A kind of method of software and hardware that improves digital-analog/analog-digital conversion accuracy, its special character are that this method of software and hardware may further comprise the steps:
1) ground wire causes the processing of error
Concrete operations are that various ground wires on AD module and DA module are connected together altogether;
2) generation of reference voltage
A kind of generating circuit from reference voltage is provided, and this circuit utilizes voltage-stabiliser tube and operational amplifier to produce reference voltage; In this circuit, resistance R 33 provides negative feedback, resistance R 28, and R27, R26 sets up gain and produces voltage;
3) A/D protective circuit
Input voltage is carried out amplitude limit, and described amplitude limit to input voltage is shown below:
V
IN_MAX=(R2/R1) * V
MAX... ... ... ... ... ... formula 2
V wherein
INMAXThe maximum voltage value of the signal of expression input A/D,
When input voltage less than V
IN_MAXThe time, can normally import;
When input voltage surpasses V
IN_MAXThe time, diode V conducting immediately is controlled at V with input voltage again
IN_MAX
4) software processes
When processor is handled the analog signal of gathering, the data of gathering are proofreaied and correct by the method for software.
The method of above-mentioned software specifically is meant:
Before input D/A, elder generation is through MUX MUX at signal;
The data of gathering are proofreaied and correct, must be in advance with CH
GNDAs one tunnel input;
Before carrying out the D/A conversion, earlier by MUX MUX gating CH
GND, read it then and carry out the numerical value that produces behind the D/A, be designated as V
GND
Read V
GNDAfter, to CH
NWhen handling, reality magnitude of voltage accurately is shown below
CH
N_PRX=CH
N-V
GND... ... ... ... ... ... formula 3.
The electric current that resistance R 30 and resistance R 31 flow through V5 by optimization in the above-mentioned generating circuit from reference voltage provides temperature-compensating.
Above-mentioned generating circuit from reference voltage generation+10V voltage.
The present invention has the following advantages:
1) generating circuit from reference voltage can be exported high precision reference voltage source, can reduce the cost of buying accurate voltage source;
2) utilize software that the signal that converts is handled, further revise the error that produces in the hardware circuit, improved precision;
3) to the signal of gathering cushion, amplitude limiting processing, restriction enters the voltage of A/D converter, protection A/D conversion chip
Description of drawings
Fig. 1 is a generating circuit from reference voltage;
Fig. 2 is the protective circuit of A/D input signal;
Fig. 3 improves A/D conversion accuracy schematic diagram for software processes.
Embodiment
The list of abbreviations of using in the description of the embodiment of the invention is shown:
A/D Analog to Digital analog quantity is to digital quantity
D/A Digital to Analog digital quantity is to analog quantity
V
REFReference Voltage reference voltage
MUX Multiplex MUX
Earth signal in the GND Ground circuit refers to various ground wires altogether at this
A kind of method of software and hardware that improves digital-analog/analog-digital conversion accuracy, its special character are that this method of software and hardware may further comprise the steps:
1) ground wire causes the processing of error
Concrete operations are that various ground wires on AD module and DA module are connected together altogether;
2) generation of reference voltage
A kind of generating circuit from reference voltage is provided, and this circuit utilizes voltage-stabiliser tube and operational amplifier to produce reference voltage; In this circuit, one tunnel resistance R 1 provides negative feedback, and another road resistance R 2 is set up gain and produced voltage;
3) A/D protective circuit
Input voltage is carried out amplitude limit, and described amplitude limit to input voltage is shown below:
V
IN_MAX=(R2/R1) * V
MAX... ... ... ... ... ... formula 2
V wherein
IN_MAXThe maximum voltage value of the signal of expression input A/D,
When input voltage less than V
IN_MAXThe time, can normally import;
When input voltage surpasses V
IN_MAXThe time, diode V conducting immediately is controlled at V with input voltage again
IN_MAX
4) software processes
When processor is handled the analog signal of gathering, the data of gathering are proofreaied and correct by the method for software.
The method of above-mentioned software specifically is meant:
Before input D/A, elder generation is through MUX MUX at signal;
The data of gathering are proofreaied and correct, must be in advance with CH
GNDAs one tunnel input;
Before carrying out the D/A conversion, earlier by MUX MUX gating CH
GND, read it then and carry out the numerical value that produces behind the D/A, be designated as V
GND
Read V
GNDAfter, to CH
NWhen handling, reality magnitude of voltage accurately is shown below
CH
N_PRX=CH
N-V
GND... ... ... ... ... ... formula 3.
Specifically:
1) ground wire causes the processing of error
The signal kinds of handling in the control system is various, and analog signal, digital signal need with reference to different ground wires.Because the existence of disturbing has certain error between several ground wires.Along with the difference of system, error size is also different.Therefore, need in the circuit various ground wires are received together altogether.
Usually, have special A/D, D/A module in the system, various signals all will be handled on this module, and best bet is on this module various ground wires to be connect altogether.
2) generation of reference voltage
The D/A conversion chip needs accurate reference voltage source usually.It is all very expensive itself to have the A/D conversion chip price that produces accurate reference voltage, utilizes commercially available accurate source of stable pressure price also high.This project has proposed a kind of generating circuit from reference voltage, utilizes voltage-stabiliser tube and operational amplifier to produce reference voltage.Simultaneously, for the precision of the reference voltage that improves generation, also considered the temperature drift problem of voltage-stabiliser tube.
The numerical expression of the aanalogvoltage of the output after the process D/A conversion is as follows:
(the conversion figure place of supposing D/A converter is N, and D represents to convert the digital quantity D of back output in the formula
N... D
1, V represents the magnitude of voltage through the analog signals that is calculated after the D/A conversion)
V=(D/2
N) * V
REF... ... ... ... ... ... (formula 1)
Can draw the result and the V of D/A conversion according to following formula
REFClosely related.V
REFWhether stablize the stability that has directly determined the D/A transformation result.Traditional D/A change-over circuit often directly or indirectly with the supply voltage of work as reference voltage, the long-term work variation of temperature can cause V
REFFloat, and then can influence the precision of D/A conversion.V
REFVariation particularly evident to the influence of high accuracy change-over circuit.Therefore, this project has proposed a kind of reference voltage and has produced scheme, also can guarantee the precision of D/A conversion under the situation of not using commercially available accurate voltage source.The circuit of the generation that realizes in the project+10V reference voltage as shown in Figure 1.
3) A/D protective circuit
In actual application, the voltage range of collection often relatively extensively.The input voltage of A/D converter is all restricted, surpasses to limit very likely defective chip.In order to prevent that extreme case from producing excessive voltage, this project has adopted following protective circuit, as shown in Figure 2.Wherein, R4 provides negative feedback, sets up suitable gain by adjusting R1 and produces+10V voltage.The electric current that R5 flows through V5 by optimization provides temperature-compensating.
This project is shown below to the amplitude limit of input voltage:
(V
IN_MAXThe maximum voltage value of the signal of expression input A/D)
V
IN_MAX=(R2/R1) * V
MAX... ... ... ... ... ... formula 2
When input voltage less than V
IN_MAXThe time, can normally import;
When input voltage surpasses V
IN_MAXThe time, diode V conducting immediately is controlled at V with input voltage again
IN_MAX
Thereby can reach the effect of protection A/D conversion chip.
4) software processes
When handling, can proofread and correct the data of gathering the analog signal (being converted to digital signal) of gathering at processor through D/A by the method for software.Signal all can pass through MUX before input D/A.For the data of gathering are proofreaied and correct, must be in advance with CH
GNDAs one tunnel input.Before carrying out D/A conversion, first gating CHGND reads it then and carries out the numerical value that produces behind the D/A, is designated as V
GNDAs shown in Figure 3.
Read V
GNDAfter, to CH
NWhen handling, reality magnitude of voltage accurately is shown below.
CH
N_PRX=CH
N-V
GND... ... ... ... ... ... ... formula 3
In sum, the present invention has saved the cost that uses commercially available accurate source of stable pressure by optimizing generating circuit from reference voltage under the prerequisite that guarantees reference voltage precision, also improved the D/A conversion accuracy simultaneously; With software approach the analog signal that collects is carried out preliminary treatment, further improved the A/D conversion accuracy; The voltage that is input to A/D converter is carried out amplitude limiting processing, protected the A/D conversion chip.
Claims (4)
1. a method of software and hardware that improves digital-analog/analog-digital conversion accuracy is characterized in that, this method of software and hardware may further comprise the steps:
1) ground wire causes the processing of error
Concrete operations are that various ground wires on AD module and DA module are connected together altogether;
2) generation of reference voltage
A kind of generating circuit from reference voltage is provided, and this circuit utilizes voltage-stabiliser tube and operational amplifier to produce reference voltage; In this circuit, one tunnel resistance R 1 provides negative feedback, and another road resistance R 2 is set up gain and produced voltage;
3) A/D protective circuit
Input voltage is carried out amplitude limit, and described amplitude limit to input voltage is shown below:
V
IN_MAX=(R2/R1) * V
MAXFormula 2
V wherein
IN_MAXThe maximum voltage value of the signal of expression input A/D,
When input voltage less than V
IN_MAXThe time, can normally import;
When input voltage surpasses V
IN_MAXThe time, diode V conducting immediately is controlled at V with input voltage again
IN_MAX
4) software processes
When processor is handled the analog signal of gathering, the data of gathering are proofreaied and correct by the method for software.
2. according to the method for software and hardware of the described raising digital-analog/analog-digital conversion accuracy of claim 1, it is characterized in that the method for described software specifically is meant:
Before input D/A, elder generation is through MUX MUX at signal;
The data of gathering are proofreaied and correct, must be in advance with CH
GNDAs one tunnel input;
Before carrying out the D/A conversion, earlier by MUX MUX gating CH
GND, read it then and carry out the numerical value that produces behind the D/A, be designated as V
GND
Read V
GNDAfter, to CH
NWhen handling, reality magnitude of voltage accurately is shown below
CH
N_PRX=CH
N-V
GNDFormula 3.
3. according to the method for software and hardware of claim 1 or 2 described raising digital-analog/analog-digital conversion accuracies, it is characterized in that the electric current that resistance R 30 and resistance R 31 flow through V5 by optimization in the described generating circuit from reference voltage provides temperature-compensating.
4. according to the method for software and hardware of the described raising digital-analog/analog-digital conversion accuracy of claim 3, it is characterized in that described generating circuit from reference voltage generation+10V voltage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910312137A CN101764610A (en) | 2009-12-23 | 2009-12-23 | Hardware and software implementation method for improving digital-analog/analog-digital conversion accuracy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910312137A CN101764610A (en) | 2009-12-23 | 2009-12-23 | Hardware and software implementation method for improving digital-analog/analog-digital conversion accuracy |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101764610A true CN101764610A (en) | 2010-06-30 |
Family
ID=42495616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910312137A Pending CN101764610A (en) | 2009-12-23 | 2009-12-23 | Hardware and software implementation method for improving digital-analog/analog-digital conversion accuracy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101764610A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964660A (en) * | 2010-09-07 | 2011-02-02 | 株洲南车时代电气股份有限公司 | Self-correcting analog quantity output circuit |
WO2012022175A1 (en) * | 2010-08-17 | 2012-02-23 | 惠州Tcl移动通信有限公司 | Mobile terminal and calibration device for analog-to-digital conversion (adc) module thereof |
CN102821254A (en) * | 2011-06-08 | 2012-12-12 | 北京中科美伦科技有限公司 | Pre-amplifying processing circuit of charge coupled device (CCD) image signals obtained under X-rays |
CN102916697A (en) * | 2012-10-25 | 2013-02-06 | 西安电子工程研究所 | Low-zero-offset 16-bit dual-channel DA (Digital-Analog) bipolar output circuit |
CN103840779A (en) * | 2014-03-21 | 2014-06-04 | 航天科技控股集团股份有限公司 | Analog voltage high-speed following switching circuit and following switching method of analog voltage high-speed following switching circuit |
CN104615048A (en) * | 2015-01-05 | 2015-05-13 | 深圳市南方通用电气有限公司 | AD acquisition method and device |
CN103634009B (en) * | 2013-12-06 | 2017-01-04 | 上海贝电实业(集团)股份有限公司 | The method improving analog acquisition device A/D conversion accuracy |
CN108387834A (en) * | 2018-01-22 | 2018-08-10 | 航天科工防御技术研究试验中心 | A kind of wide area ADC error corrects test method and device |
-
2009
- 2009-12-23 CN CN200910312137A patent/CN101764610A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012022175A1 (en) * | 2010-08-17 | 2012-02-23 | 惠州Tcl移动通信有限公司 | Mobile terminal and calibration device for analog-to-digital conversion (adc) module thereof |
US8547261B2 (en) | 2010-08-17 | 2013-10-01 | Huizhou Tcl Mobile Communication Co., Ltd. | Calibration device for mobile terminal and ADC module thereof |
CN101964660A (en) * | 2010-09-07 | 2011-02-02 | 株洲南车时代电气股份有限公司 | Self-correcting analog quantity output circuit |
CN101964660B (en) * | 2010-09-07 | 2013-04-03 | 株洲南车时代电气股份有限公司 | Self-correcting analog quantity output circuit |
CN102821254A (en) * | 2011-06-08 | 2012-12-12 | 北京中科美伦科技有限公司 | Pre-amplifying processing circuit of charge coupled device (CCD) image signals obtained under X-rays |
CN102916697A (en) * | 2012-10-25 | 2013-02-06 | 西安电子工程研究所 | Low-zero-offset 16-bit dual-channel DA (Digital-Analog) bipolar output circuit |
CN103634009B (en) * | 2013-12-06 | 2017-01-04 | 上海贝电实业(集团)股份有限公司 | The method improving analog acquisition device A/D conversion accuracy |
CN103840779A (en) * | 2014-03-21 | 2014-06-04 | 航天科技控股集团股份有限公司 | Analog voltage high-speed following switching circuit and following switching method of analog voltage high-speed following switching circuit |
CN104615048A (en) * | 2015-01-05 | 2015-05-13 | 深圳市南方通用电气有限公司 | AD acquisition method and device |
CN104615048B (en) * | 2015-01-05 | 2017-11-14 | 深圳市南方通用电气有限公司 | A kind of AD acquisition methods and device |
CN108387834A (en) * | 2018-01-22 | 2018-08-10 | 航天科工防御技术研究试验中心 | A kind of wide area ADC error corrects test method and device |
CN108387834B (en) * | 2018-01-22 | 2020-08-18 | 航天科工防御技术研究试验中心 | Wide area ADC error correction test method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101764610A (en) | Hardware and software implementation method for improving digital-analog/analog-digital conversion accuracy | |
CN103091552A (en) | Pre-calibrated electric energy metering circuit and calibration method | |
CN103235202B (en) | A kind of multichannel analog signals acquisition system with automatic compensation function | |
CN103051339B (en) | A kind of AD sampling value correcting method and system | |
CN104076196B (en) | High-precision direct current Hall digit sensing system and current measuring method | |
CN106685421B (en) | Analog signal acquisition method and device | |
CN105680860B (en) | Improve the circuit and method of microcontroller A/D conversion accuracy | |
CN201233288Y (en) | Multipath data acquisition system | |
CN101964660B (en) | Self-correcting analog quantity output circuit | |
CN205563343U (en) | Analog quantity voltage current output circuit of low -cost high accuracy | |
CN112556735A (en) | Absolute photoelectric encoder | |
CN102829714A (en) | Method for realizing absolute angle measurement based on round inductosyn | |
CN102074055A (en) | Multi-machine collaboration framework based fast recorder and self-calibration and multi-machine collaboration method | |
CN105300269B (en) | A kind of wireless accurate strain gauge means and a kind of wireless accurate strain measurement method | |
CN207910744U (en) | A kind of signal processing circuit based on quartz resonance | |
CN103148779B (en) | The adjusting gear of light source in position measurement apparatus | |
US20120130668A1 (en) | System and method of generating external parameter value for separately excited motor controller | |
CN211296612U (en) | Voice coil motor driving chip and intelligent terminal | |
CN110243486B (en) | Full-temperature high-precision temperature sensing system, method and medium | |
CN204028707U (en) | A kind of solar panel automatic tracking system | |
CN101499801B (en) | A/D conversion circuit and conversion method thereof | |
CN210835059U (en) | nA-level current measuring system for test equipment | |
US20100194617A1 (en) | Transimpedance amplifier and analog-digital converter circuit | |
CN208224799U (en) | Pointing control system | |
CN105353295A (en) | Operation amplifier gain measurement circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20100630 |