[go: up one dir, main page]

CN105337615A - Method for generating high-accuracy DAC voltage - Google Patents

Method for generating high-accuracy DAC voltage Download PDF

Info

Publication number
CN105337615A
CN105337615A CN201510864979.1A CN201510864979A CN105337615A CN 105337615 A CN105337615 A CN 105337615A CN 201510864979 A CN201510864979 A CN 201510864979A CN 105337615 A CN105337615 A CN 105337615A
Authority
CN
China
Prior art keywords
voltage
dac
analog voltage
analog
input
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
CN201510864979.1A
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.)
Shenzhen Strong Technology Co Ltd
Original Assignee
Shenzhen Strong Technology Co Ltd
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 Shenzhen Strong Technology Co Ltd filed Critical Shenzhen Strong Technology Co Ltd
Priority to CN201510864979.1A priority Critical patent/CN105337615A/en
Publication of CN105337615A publication Critical patent/CN105337615A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

The invention discloses a method for generating high-accuracy DAC voltage. The method includes the following steps that s1, an MCU transmits a communication command to a DAC; s2, the DAC generates analog voltage U1 after receiving the command of the MCU and then inputs the analog voltage U1 into a buffering and filtering circuit; s3, the buffering and filtering circuit buffers the input analog voltage U1 and outputs analog voltage U2 after filtering processing. The method is characterized by further including the steps that the buffering and filtering circuit outputs the analog voltage U2 to an analog measuring circuit; s4, the analog measuring circuit feeds the input analog voltage U2 back to the DAC in a communication command form; the step s2 is repeated till the high-accuracy analog voltage meeting requirements is output. According to the method, the inherent error of the circuits is considered; the measuring circuit for the output result is additionally arranged, the inherent error is eliminated, and therefore output accuracy is improved.

Description

A kind of method producing high accuracy DAC voltage
Technical field
The invention belongs to circuit engineering field, specifically relate to a kind of method producing high accuracy DAC voltage.
Background technology
DAC(Digitaltoanalogconverter) i.e. digital analog converter is a kind of equipment being analog signal with formal transformations such as electric current, voltage or electric charges by digital signal.In a lot of digital system, such as in computer systems, which, signal carries out storing and transmitting in a digital manner, because these signals can be converted to analog signal by digital analog converter and DAC, thus them can be made to be identified by the external world such as people or other nonnumeric systems, therefore, DAC obtains and applies more and more widely.
In the actual production life of electron trade, people often can run into needs continuously adjustable analog voltage as the occasion comparing reference, thus uses DAC module and high accuracy output voltage required by making it to produce just becomes and is extremely necessary.
In prior art, the method producing the voltage that meets the requirements mainly contains: the analog voltage required by 1, realizing by simple potentiometer manual adjustments; 2, with the digital adjustable analog voltage that digital regulation resistance+processor realizes; 3, the digital adjustable analog voltage adopting DAC module to realize.
But because circuit inevitably also exists intrinsic error, processing mode of the prior art all fails effectively to eliminate the intrinsic error of circuit, and it is large that the voltage using said method to produce also exists Output rusults error, the not high and defects such as adjustment trouble of precision.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, provide the method for the generation high accuracy DAC voltage that a kind of Output rusults error is little, precision is high, the technical scheme that the present invention solves the employing of its technical problem is:
Produce a method for high accuracy DAC voltage, comprise the following steps:
Step s1: Micro-processor MCV assigns communication instruction to DAC D/A converter module;
Step s2:DAC D/A converter module produces analog voltage U1 after receiving the instruction of Micro-processor MCV, and then described analog voltage U1 is inputted buffering and filter circuit;
Step s3: described buffering and the filter circuit analog voltage U1 to input cushions, export analog voltage U2 after filtering process;
Key is, also comprises and described buffering and filter circuit are exported the step s4 that analog voltage U2 inputs analog measuring circuit;
The analog voltage U2 of input is fed back to DAC D/A converter module with the form of communication instruction by analog measuring circuit;
Repeat step s2, until export satisfactory high-precision analog voltage.
The present invention solves the further technical scheme of its technical problem and also comprises:
Before step s2, also comprise the step to described DAC D/A converter module input reference voltage, described reference voltage input terminal is connected with high precision reference voltage output.
The determination of described reference voltage comprises the steps:
Step a1: system initialization;
Step a2: export analog voltage with maximum and measure the magnitude of voltage of output;
Step a3: export analog voltage with minimum value and measure the magnitude of voltage of output;
Step a4: the digital input value calculating the best of the digital-to-analogue conversion required for voltage that user inputs;
Step a5: calculated value is write DAC D/A converter module and complete output.
In step a4, the method calculating best digital input value is specially:
If represent that user inputs with inputValaue;
Maximum analog voltage output value is represented with maxOutVolt;
The digital-to-analogue conversion input value that maximum analog voltage output value is corresponding is represented with maxDacInput;
Minimum simulation voltage output value is represented with minOutVolt;
The result of calculation to digital to analog converter input is represented with inputDacValaue;
So,
inputDacValaue=inputValaue/((maxOutVolt-minOutVolt)/maxDacInput)。
Compared with prior art, Advantageous Effects of the present invention is: method of the present invention considers the intrinsic error that circuit exists, and adds and removes intrinsic error to the measuring circuit of Output rusults, thus improve output accuracy.
Accompanying drawing explanation
Fig. 1 is the system block diagram of the inventive method;
Fig. 2 is the numerical computation method flow chart of the best D/A converter module input of the present invention.
Embodiment
Below in conjunction with accompanying drawing, further describe the specific embodiment of the present invention.
Refer to Fig. 1, a kind of method producing high accuracy DAC voltage of the present invention, comprises the following steps:
Step s1: Micro-processor MCV assigns communication instruction to DAC D/A converter module;
Step s2:DAC D/A converter module produces analog voltage U1 after receiving the instruction of Micro-processor MCV, and then described analog voltage U1 is inputted buffering and filter circuit;
Step s3: described buffering and the filter circuit analog voltage U1 to input cushions, export analog voltage U2 after filtering process;
Key is, also comprises and described buffering and filter circuit are exported the step s4 that analog voltage U2 inputs analog measuring circuit;
The analog voltage U2 of input is fed back to DAC D/A converter module with the form of communication instruction by analog measuring circuit;
Repeat step s2, until export satisfactory high-precision analog voltage.
In the present invention, we can arrange a normal voltage U0, if in step s3, through buffering, to export analog voltage U2 after filtering reprocessing little with normal voltage U0 deviation, then the direct satisfactory high-precision analog voltage of output; If through buffering, export analog voltage U2 after filtering reprocessing and normal voltage U0 deviation is larger, then U2 is fed back in DAC D/A converter module with the form of communication instruction and form a feedback loop, carrying out again through DAC D/A converter module and buffering and filter circuit processes, till exporting satisfactory high-precision analog voltage.
As preferably, method of the present invention is before step s2, and also comprise the step to described DAC D/A converter module input reference voltage, described reference voltage input terminal is connected with high precision reference voltage output.
The determination of reference voltage of the present invention comprises the steps:
Step a1: system initialization;
Step a2: export analog voltage with maximum and measure the magnitude of voltage of output;
Step a3: export analog voltage with minimum value and measure the magnitude of voltage of output;
Step a4: the digital input value calculating the best of the digital-to-analogue conversion required for voltage that user inputs;
Step a5: calculated value is write DAC D/A converter module and complete output.
As preferably, the present invention is in step a4, and the method calculating best digital input value is specially:
With inputValaue, we represent that user inputs;
Maximum analog voltage output value is represented with maxOutVolt;
The digital-to-analogue conversion input value that maximum analog voltage output value is corresponding is represented with maxDacInput;
Minimum simulation voltage output value is represented with minOutVolt;
The result of calculation to digital to analog converter input is represented with inputDacValaue;
So,
inputDacValaue=inputValaue/((maxOutVolt-minOutVolt)/maxDacInput)。
So far, the input process of whole reference voltage completes.
In the present invention, the output analog voltage after buffering, filtering reprocessing feeds back in DAC D/A converter module by analog measuring circuit, removes intrinsic error, thus improves output accuracy.
These are only preferred embodiment of the present invention, not in order to limit the present invention, protection scope of the present invention is as the criterion with claims, and other its structures all are identical with the present invention or similar with principle, all should be included within protection scope of the present invention.

Claims (4)

1. produce a method for high accuracy DAC voltage, comprise the following steps:
Step s1: Micro-processor MCV assigns communication instruction to DAC D/A converter module;
Step s2:DAC D/A converter module produces analog voltage U1 after receiving the instruction of Micro-processor MCV, and then described analog voltage U1 is inputted buffering and filter circuit;
Step s3: described buffering and the filter circuit analog voltage U1 to input cushions, export analog voltage U2 after filtering process;
It is characterized in that, also comprise and described buffering and filter circuit are exported the step s4 that analog voltage U2 inputs analog measuring circuit;
The analog voltage U2 of input is fed back to DAC D/A converter module with the form of communication instruction by analog measuring circuit;
Repeat step s2, until export satisfactory high-precision analog voltage.
2. a kind of method producing high accuracy DAC voltage according to claim 1, it is characterized in that, before step s2, also comprise the step to described DAC D/A converter module input reference voltage, described reference voltage input terminal is connected with high precision reference voltage output.
3. a kind of method producing high accuracy DAC voltage according to claim 2, it is characterized in that, the determination of described reference voltage comprises the steps:
Step a1: system initialization;
Step a2: export analog voltage with maximum and measure the magnitude of voltage of output;
Step a3: export analog voltage with minimum value and measure the magnitude of voltage of output;
Step a4: the digital input value calculating the best of the digital-to-analogue conversion required for voltage that user inputs;
Step a5: calculated value is write DAC D/A converter module and complete output.
4. a kind of method producing high accuracy DAC voltage according to claim 3, is characterized in that, in step a4, the method calculating best digital input value is specially:
If represent that user inputs with inputValaue;
Maximum analog voltage output value is represented with maxOutVolt;
The digital-to-analogue conversion input value that maximum analog voltage output value is corresponding is represented with maxDacInput;
Minimum simulation voltage output value is represented with minOutVolt;
The result of calculation to digital to analog converter input is represented with inputDacValaue;
So,
inputDacValaue=inputValaue/((maxOutVolt-minOutVolt)/maxDacInput)。
CN201510864979.1A 2015-12-01 2015-12-01 Method for generating high-accuracy DAC voltage Pending CN105337615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510864979.1A CN105337615A (en) 2015-12-01 2015-12-01 Method for generating high-accuracy DAC voltage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510864979.1A CN105337615A (en) 2015-12-01 2015-12-01 Method for generating high-accuracy DAC voltage

Publications (1)

Publication Number Publication Date
CN105337615A true CN105337615A (en) 2016-02-17

Family

ID=55287953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510864979.1A Pending CN105337615A (en) 2015-12-01 2015-12-01 Method for generating high-accuracy DAC voltage

Country Status (1)

Country Link
CN (1) CN105337615A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1307749A (en) * 1998-06-30 2001-08-08 夸尔柯姆股份有限公司 Method and apparatus for d.c. offset carrection in digital-to-analog converters
CN202231703U (en) * 2011-09-14 2012-05-23 深圳市亿维自动化技术有限公司 Self-calibration circuit for digital-to-analog conversion output voltage
CN102571089A (en) * 2011-12-31 2012-07-11 北京雪迪龙科技股份有限公司 Analog-to-digital conversion/digital-to-analog conversion self-calibration method and control system applying same
CN102653168A (en) * 2011-03-02 2012-09-05 北京美科艺数码科技发展有限公司 Nozzle driving circuit for inkjet printers
CN104980155A (en) * 2014-04-07 2015-10-14 美国亚德诺半导体公司 Cancellation of feedback digital-to-analog converter errors in multi-stage delta-sigma analog-to-digital converters

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1307749A (en) * 1998-06-30 2001-08-08 夸尔柯姆股份有限公司 Method and apparatus for d.c. offset carrection in digital-to-analog converters
CN102653168A (en) * 2011-03-02 2012-09-05 北京美科艺数码科技发展有限公司 Nozzle driving circuit for inkjet printers
CN202231703U (en) * 2011-09-14 2012-05-23 深圳市亿维自动化技术有限公司 Self-calibration circuit for digital-to-analog conversion output voltage
CN102571089A (en) * 2011-12-31 2012-07-11 北京雪迪龙科技股份有限公司 Analog-to-digital conversion/digital-to-analog conversion self-calibration method and control system applying same
CN104980155A (en) * 2014-04-07 2015-10-14 美国亚德诺半导体公司 Cancellation of feedback digital-to-analog converter errors in multi-stage delta-sigma analog-to-digital converters

Similar Documents

Publication Publication Date Title
Shen et al. Fuzzy tracking control for Markov jump systems with mismatched faults by iterative proportional–integral observers
CN103051339B (en) A kind of AD sampling value correcting method and system
CN108037475B (en) A test system for harmonic transfer characteristics of capacitive voltage transformers
JP2017505092A5 (en)
WO2019228301A1 (en) Current-equalising control method, apparatus, and device, and computer readable storage medium
CN102230959A (en) Method and system for calibrating electric energy meter and electric energy meter
CN109726437B (en) Cabin door pneumatic load equivalent node force processing method
CN104298287A (en) Current correcting method and device and resistance correcting method and device
CN107908171B (en) Fault diagnosis and redundancy method for dual-redundancy electric feedback servo actuator
CN110739707A (en) Reactive power closed-loop control method and device for single-phase grid-connected inverter
CN105446408A (en) Self-inspection 4-20 mA output circuit with high precision
CN202094908U (en) Three-dimensional digital chaotic signal generator based on DSP
CN105337615A (en) Method for generating high-accuracy DAC voltage
CN108710290A (en) A kind of design method for High Order Nonlinear System recurrence integral terminal sliding mode face
CN103383552A (en) Random plane circular interpolation motion controller and control method thereof
CN102981540B (en) Power feedforward control method and related device
CN107220214B (en) Variable-order fractional calculus frequency domain analysis method based on polynomial fitting
CN113741859B (en) Memory device and operation result compensation method thereof
CN105004899A (en) DC signal variance adaptive detection method and device
CN111913391B (en) A Stabilization Method for Discrete-Time Non-Minimum Phase Systems with Adaptive Control
WO2019080303A1 (en) Power supply device, and current equalization method therefor
CN204009521U (en) Large-scale thermal power machine group AGC signal disturbance disposal system
CN202586930U (en) Capacitor mismatch correction circuit
CN104848194B (en) It is applicable to the air output control method and system of fired power generating unit under environment protection control technology
CN203012564U (en) Numerical controlled constant-current source

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217

RJ01 Rejection of invention patent application after publication