CN104734709B - The deviation calibration method and device of AD conversion - Google Patents
The deviation calibration method and device of AD conversion Download PDFInfo
- Publication number
- CN104734709B CN104734709B CN201510045257.3A CN201510045257A CN104734709B CN 104734709 B CN104734709 B CN 104734709B CN 201510045257 A CN201510045257 A CN 201510045257A CN 104734709 B CN104734709 B CN 104734709B
- Authority
- CN
- China
- Prior art keywords
- calibration
- values
- value
- signal
- conversion
- 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.)
- Active
Links
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
The present invention discloses a kind of deviation calibration device of AD conversion, including:Calibration signal output module, for being sequentially output the first calibration signal and the second calibration signal;AD conversion module is connect with the calibration signal output module, for being AD converted to the first calibration signal and the second calibration signal, obtains the first AD values and the 2nd AD values;It is additionally operable to be AD converted signal to be converted, obtains AD values to be calibrated;Calibrate control module, it is connect with the AD conversion module, for the first AD values and the 2nd AD values exported according to the AD conversion module, carries out calibration calculating, DC offset calibration value and linear gradient calibration value are obtained, so that the calibration control module calibrates AD values to be calibrated.The invention also discloses a kind of deviation calibration methods of AD conversion.Present invention reduces the error rates of AD conversion.
Description
Technical field
The present invention relates to AD conversion field more particularly to a kind of deviation calibration method and devices of AD conversion.
Background technology
It is continuously improved with the integrated level of field of household appliances integrated circuit, microcontroller chip operating voltage is also declining, very
The chip operating voltage in more applied power electronics fields is generally reduced 3.3V by 5V.Due to chip integration height, operating voltage
It is low, therefore the error discretization of the AD converter of built-in chip type is also increasing.
When a kind of existing AD converter carries out deviation compensation, by the practical AD values after being AD converted to normal voltage and
Preferable AD values are compared, and generate deviation signal, then carry out deviation to the transformation result of AD converter according to the deviation signal
Compensation.But the compensation method can only compensate the direct current biasing error of AD converter, it is impossible to compensate the linear gradient of AD converter
Error.Therefore for the larger AD converter of some slope errors, after being compensated by this method, output resultant error is still
Can be more than 5%, it is impossible to meet the actual needs.
Invention content
It is a primary object of the present invention to provide a kind of deviation calibration method and device of AD conversion, it is intended to reduce AD conversion
Error rate.
In order to achieve the above object, the present invention provides a kind of deviation calibration device of AD conversion, including:
Calibration signal output module, for being sequentially output the first calibration signal and the second calibration signal;
AD conversion module is connect with the calibration signal output module, for believing the first calibration signal and the second calibration
It number is AD converted, obtains the first AD values and the 2nd AD values;It is additionally operable to be AD converted signal to be converted, obtain to be calibrated
AD values;
Control module is calibrated, is connect with the AD conversion module, for the first AD exported according to the AD conversion module
Value and the 2nd AD values carry out calibration calculating, obtain DC offset calibration value and linear gradient calibration value, for the calibration control
Module calibrates AD values to be calibrated.
Preferably, the calibration signal output module includes:
Calibration signal generates unit, for generating the first calibration signal and the second calibration signal;
Calibration signal output control unit, for controlling the output of the first calibration signal and the second calibration signal.
Preferably, the calibration signal generation unit includes power supply, first resistor R1, second resistance R2,3rd resistor R3
And switching tube;The power supply, first resistor R1, second resistance R2 and 3rd resistor R3 are sequentially connected in series, the first resistor R1 and
The point of contact of second resistance R2 is calibration signal output terminal, and the control terminal of the switching tube and calibration signal output control are single
Member output terminal connection, the other both ends of the switching tube are in parallel with the 3rd resistor R3, and the 3rd resistor R3 not with
One end ground connection of second resistance R2 connections.
Preferably, the deviation calibration device further includes:Memory module, for storing the DC offset calibration value and line
Property slope calibration value, for it is described calibration control module AD values to be calibrated are calibrated.
Preferably, the calibration control module is used for:
According to following computation rule, calculate and obtain DC offset calibration value and linear gradient calibration value:
C1=(X02-X01)/(X2-X1);
C2=X01-C1*X1;
Wherein C1 is linear gradient calibration value, and C2 is DC offset calibration value, and X01 is the ideal of first calibration signal
AD values, X02 are the preferable AD values of second calibration signal, and the X1 is the practical AD values of first calibration signal, and X2 is
The practical AD values of second calibration signal.
In addition, to achieve the above object, the present invention also provides a kind of deviation calibration method of AD conversion, including following step
Suddenly:
Signal to be converted is AD converted, obtains conversion AD values to be calibrated;
Obtain DC offset calibration value and linear gradient calibration value;The DC offset calibration value and linear gradient calibration value
Acquisition is calculated to carry out deviation calibration in advance;
According to the DC offset calibration value and linear gradient calibration value, deviation school is carried out to conversion AD values to be calibrated
It is accurate.
Preferably, it is described that signal to be converted is AD converted, it is further included before obtaining conversion AD values to be calibrated:
Control being sequentially output for the first calibration signal and the second calibration signal;
First calibration signal and the second calibration signal are AD converted, obtain the first AD values and the 2nd AD values;
According to the first AD values and the 2nd AD values, carry out deviation calibration calculating, obtain the DC offset calibration value and
Linear gradient calibration value.
Preferably, it is described after the preset time of the first calibration signal or the second calibration signal is exported, it is AD converted.
Preferably, the value range of the preset time is 0.1s<t<1s.
Preferably, it is described according to the first AD values and the 2nd AD values, deviation calibration calculating is carried out, it is inclined to obtain the direct current
It puts calibration value and linear gradient calibration value further includes later:
Store the DC offset calibration value and linear gradient calibration value.
The embodiment of the present invention is by providing the first calibration signal and the second calibration signal, with the AD according to the first calibration signal
The AD values of value and the second calibration signal calculate and obtain DC offset calibration value and linear gradient calibration value, so as to turn carrying out AD
When changing, can according to DC offset calibration value and linear gradient calibration value, realize to the direct current biasing of AD conversion and it is linear tiltedly
It is compensated while rate error, reduces the error rate of AD conversion.
Description of the drawings
Fig. 1 is the high-level schematic functional block diagram of the deviation calibration device first embodiment of AD conversion of the present invention;
Fig. 2 is the refinement function module signal of the deviation calibration device calibration signal output module of AD conversion of the present invention
Figure;
Fig. 3 is the circuit module schematic diagram that Fig. 2 calibration signals generate unit;
Fig. 4 is the high-level schematic functional block diagram of the deviation calibration device second embodiment of AD conversion of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the deviation calibration device 3rd embodiment of AD conversion of the present invention;
Fig. 6 is the flow diagram of the deviation calibration method first embodiment of AD conversion of the present invention;
Fig. 7 is the flow diagram of the deviation calibration method second embodiment of AD conversion of the present invention;
Fig. 8 is the flow diagram of the deviation calibration method 3rd embodiment of AD conversion of the present invention.
In order to make technical scheme of the present invention clearer, clear, it is described in further detail below in conjunction with attached drawing.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The core concept of the present invention is in the deviation calibration being AD converted, to consider the direct current biasing of AD conversion
Error and linear gradient error provide a kind of deviation calibration method, can compensate simultaneously AD conversion direct current biasing error and
Linear gradient error reduces the error rate of AD conversion.
As shown in Figure 1, it is proposed that a kind of deviation calibration device first embodiment of AD conversion of the present invention.In the embodiment
The deviation calibration device of AD conversion includes:
Calibration signal output module 110, for being sequentially output the first calibration signal and the second calibration signal;
AD conversion module 120 is connect with the calibration signal output module 110, for the first calibration signal and second
Calibration signal is AD converted, and obtains the first AD values and the 2nd AD values;It is additionally operable to be AD converted signal to be converted, obtain
AD values to be calibrated;
Control module 130 is calibrated, is connect with the AD conversion module 120, for being exported according to the AD conversion module 120
The first AD values and the 2nd AD values, carry out calibration calculating, DC offset calibration value and linear gradient calibration value obtained, for described
Calibration control module 130 calibrates AD values to be calibrated.
The embodiment of the present invention is by providing the first calibration signal and the second calibration signal, with the AD according to the first calibration signal
The AD values of value and the second calibration signal calculate and obtain DC offset calibration value and linear gradient calibration value, so as to turn carrying out AD
When changing, can according to DC offset calibration value and linear gradient calibration value, realize to the direct current biasing of AD conversion and it is linear tiltedly
It is compensated while rate error, reduces the error rate of AD conversion.
Above-mentioned calibration control module 130 is specifically used for:According to following computation rule, calculate obtain DC offset calibration value and
Linear gradient calibration value:
C1=(X02-X01)/(X2-X1);
C2=X01-C1*X1;
Wherein C1 is linear gradient calibration value, and C2 is DC offset calibration value, and X01 is the ideal of first calibration signal
AD values, X02 are the preferable AD values of second calibration signal, and the X1 is the practical AD values of first calibration signal, and X2 is
The practical AD values of second calibration signal.
Further, as shown in Fig. 2, above-mentioned calibration signal output module 110 includes:
Calibration signal generates unit 111, for generating the first calibration signal and the second calibration signal;
Calibration signal output control unit 112, for controlling the output of the first calibration signal and the second calibration signal.
Specifically, it can be two that above-mentioned calibration signal, which generates unit 111, first calibration signal of generation, another
Generate the second calibration signal.Calibration signal output control unit 112 then after calibration signal generates unit generation calibration signal, is controlled
System is the second calibration signal of the first calibration signal of output or output.
In another example, above-mentioned calibration signal generates unit 111 or one, can be exported and controlled according to calibration signal
The control of unit 112 processed generates the first calibration signal and the second calibration signal, and exports.
Further, as shown in figure 3, when above-mentioned calibration signal is voltage signal, above-mentioned calibration signal generates unit 111 and wraps
Include power supply VCC, first resistor R1, second resistance R2,3rd resistor R3 and switching tube Q1;The power supply VCC, first resistor R1,
Second resistance R2 and 3rd resistor R3 are sequentially connected in series, and the point of contact of the first resistor R1 and second resistance R2 are defeated for calibration signal
Outlet, the control terminal of the switching tube Q1 are connect with the output terminal of the calibration signal output control unit 112, the switching tube
The other both ends of Q1 are in parallel with the 3rd resistor R3, and the termination that the 3rd resistor R3 is not connect with second resistance R2
Ground.
Above-mentioned calibration signal generates unit 111 and may also include the 4th resistance R4, the 4th resistance R4 one end and switching tube Q1
Control terminal connection, the other end and the switching tube Q1,3rd resistor R3 are connected to ground altogether.
Above-mentioned calibration signal is generated in unit 111, when switching tube Q1 is according to the first of calibration signal output control unit 112
Control signal is in the conduction state, and 3rd resistor R3 will be short-circuit at this time, then the voltage of calibration signal output terminal is flowed through for power supply VCC
Voltage on second resistance R2 and flow through the sum of voltage of switching tube Q1.When switching tube Q1 is according to calibration signal output control unit
112 second control signal is in cut-off state, and the voltage of calibration signal output terminal flows through second resistance R2 for power supply VCC at this time
Voltage and flow through the sum of voltage of 3rd resistor R3.
Further, as shown in figure 4, above-mentioned deviation calibration device further includes:Memory module 140 is described straight for storing
Offset calibration values and linear gradient calibration value are flowed, so that the calibration control module 130 calibrates AD values to be calibrated.
Above-mentioned calibration control module 130 carries out deviation calibration and calculates acquisition DC offset calibration value and linear gradient calibration value
Afterwards, memory module 140 stores DC offset calibration value and linear gradient calibration value.Therefore, it is needing to be converted
When signal is calibrated, calibration control module 130 then reads the DC offset calibration value and linear gradient from memory module 140
Calibration value, and in signal to be converted after AD conversion obtains AD conversion value, according to DC offset calibration value and linear gradient
Calibration value carries out calibration process to AD conversion value, obtains final AD conversion value.
The embodiment of the present invention is stored DC offset calibration value and linear gradient calibration value by memory module 140,
So as to calibrate control module 130 when being AD converted signal to be converted, do not need to carry out calibration calculating direct current biasing again
Calibration value and linear gradient calibration value are directly read from memory module 140.
Above-mentioned deviation calibration device can be applied to the parameter measurement in electric control field, such as the voltage survey in airconditioning control
Amount, current measurement, temperature survey etc..The constant error due to AD conversion in itself can be effectively reduced by the deviation calibration device
Caused by measurement error, play beneficial effect for improving automatically controlled control performance and reliability.It below will be with air-conditioning
For the AD conversion calibration of voltage measurement in control, the principle of deviation calibration device is specifically described.As shown in figure 5, above-mentioned AD
Modular converter, calibration control module and memory module and calibration signal output control unit can be integrated in microcontroller IC,
Such as the model of microcontroller IC is 78F0511.In above-mentioned microcontroller IC, it is used to receive calibration signal using port S1;
Port S2 is used to receive signal to be converted, such as voltage signal;Port S3 is for generating control signal, to control calibration signal
It generates unit and exports the second calibration signal of the first calibration signal or output.When microcontroller IC is powered on, microcontroller IC
Corresponding control signal is generated, and is exported by port S3, calibration signal is sequentially output so that calibration signal to be controlled to generate unit.Then
Microcontroller IC is AD converted calibration signal, and according to transformed AD values calculating acquisition DC offset calibration value and linearly
Slope calibration value.Finally, microcontroller IC stores DC offset calibration value and linear gradient calibration value.When port, S2 connects
When receiving signal to be converted, then DC offset calibration value and linear gradient calibration value are read, and according to DC offset calibration value
Deviation compensation is carried out to signal to be converted with linear gradient calibration value.
Assuming that calibration signal is generated in unit, power supply VCC is+5V, first resistor R1=30k Ω, second resistance R2=1k
Ω, 3rd resistor R3=300k Ω, the accuracy of three resistance is ± 1%.When switching tube Q1 is in cut-off state, i.e.,
When three resistance R3 are not short-circuited, the voltage of calibration signal output terminal is 4.53V;When switching tube Q1 is in the conduction state, i.e.,
When three resistance R3 are short-circuited, the voltage of calibration signal output terminal is 0.16V.That is the first calibration voltage is 0.16V, and the second calibration is electric
It presses as 4.53V.Moreover, the AD conversion module in microcontroller IC is to the preferable AD values that the first calibration voltage is AD converted
33rd, practical AD values are 34;The preferable AD values that AD conversion module in microcontroller IC is AD converted the second calibration voltage
It is 880 for 928, practical AD values.Therefore it can be calculated according to above-mentioned computation rule and obtain DC offset calibration value and linear gradient school
Quasi- value:
C1=(X02-X01)/(X2-X1)=(928-33)/(880-34)=1.06
C2=X01-C1*X1=33- (928-33)/(880-34) * 34=-3.04
Assuming that the AD conversion module in microcontroller IC signal (such as 2.5V) to be converted is AD converted after reality
Border AD values are 486, and according to the DC offset calibration value and linear gradient calibration value obtained, deviation compensation is carried out to the AD values
Afterwards, final AD values can be obtained:Y=X3*C1+C2=486*1.06-3.04=512.Show IC pairs of microcontroller by test
The ideal value that the signal to be converted is AD converted is 512, it is seen that is obtained after the calibration of above-mentioned deviation calibration device
Practical AD values it is consistent with ideal AD values, therefore compared to existing AD deviation calibrations technology, greatly reduce error rate.
Accordingly, as shown in fig. 6, proposing a kind of deviation calibration method first embodiment of AD conversion of the present invention.The implementation
The deviation calibration method of the AD conversion of example includes the following steps:
Step S110, signal to be converted is AD converted, obtains conversion AD values to be calibrated;
Step S120, DC offset calibration value and linear gradient calibration value are obtained;The DC offset calibration value and linear
Slope calibration value is to carry out deviation calibration in advance based on the first calibration signal and the second calibration signal to calculate acquisition;
Step S130, according to the DC offset calibration value and linear gradient calibration value, to conversion AD values to be calibrated into
Row deviation calibration.
The embodiment of the present invention is by providing the first calibration signal and the second calibration signal, with according to the first calibration signal and the
Two calibration signals calculate and obtain DC offset calibration value and linear gradient calibration value, thus when being AD converted, it can basis
DC offset calibration value and linear gradient calibration value are realized to being mended while the direct current biasing of AD conversion and linear gradient error
It repays, reduces the error rate of AD conversion.
Further, as shown in fig. 7, proposing a kind of deviation calibration method second embodiment of AD conversion of the present invention.The reality
The deviation calibration method for applying the AD conversion of example includes the following steps:
Step S210, being sequentially output for the first calibration signal and the second calibration signal is controlled;
Step S220, first calibration signal and the second calibration signal are AD converted, obtain the first AD values and the
Two AD values;
Step S230, according to the first AD values and the 2nd AD values, deviation calibration calculating is carried out, obtains the direct current biasing
Calibration value and linear gradient calibration value;
Step S240, signal to be converted is AD converted, obtains conversion AD values to be calibrated;
Step S250, DC offset calibration value and linear gradient calibration value are obtained;The DC offset calibration value and linear
Slope calibration value calculates acquisition to carry out deviation calibration in advance;
Step S260, according to the DC offset calibration value and linear gradient calibration value, to conversion AD values to be calibrated into
Row deviation calibration.
When carrying out deviation calibration to signal to be converted, deviation calibration calculating will be first carried out, obtains DC offset calibration
Value and linear gradient calibration value.Specially:The first calibration signal is first controlled to export, then the second calibration signal is controlled to export, and
First calibration signal is AD converted the first AD values of acquisition and the second calibration signal is AD converted after obtaining the 2nd AD values, then
Deviation calibration calculating is carried out according to the first AD values and the 2nd AD values, obtains the DC offset calibration value and linear gradient calibration
Value.Finally, deviation calibration is carried out to signal to be converted according to the DC offset calibration value and linear gradient calibration value:Y=X3*
C1+C2, wherein X3 are the AD values of signal to be converted after AD conversion;C1 is linear gradient calibration value, and C2 is direct current biasing
Calibration value.
Further, in order to enable the calibration signal of output is stabilization signal, then can export the first calibration signal or
After the preset time of second calibration signal, then the calibration signal of output is AD converted.Moreover, the value model of the preset time
It encloses for 0.1s<t<1s.
Further, as shown in figure 8, proposing a kind of deviation calibration method second embodiment of AD conversion of the present invention.The reality
The deviation calibration method for applying the AD conversion of example includes the following steps:
Step S310, being sequentially output for the first calibration signal and the second calibration signal is controlled;
Step S320, first calibration signal and the second calibration signal are AD converted, obtain the first AD values and the
Two AD values;
Step S330, according to the first AD values and the 2nd AD values, deviation calibration calculating is carried out, obtains the direct current biasing
Calibration value and linear gradient calibration value;
Step S340, the DC offset calibration value and linear gradient calibration value are stored;
Step S350, signal to be converted is AD converted, obtains conversion AD values to be calibrated;
Step S360, DC offset calibration value and linear gradient calibration value are obtained;The DC offset calibration value and linear
Slope calibration value calculates acquisition to carry out deviation calibration in advance;
Step S370, according to the DC offset calibration value and linear gradient calibration value, to conversion AD values to be calibrated into
Row deviation calibration.
In the embodiment, after acquisition DC offset calibration value and linear gradient calibration value is calculated, it can be deposited
Storage.When being calibrated so as to next time, directly extract.
Above-mentioned deviation calibration device can be applied to the parameter measurement in electric control field, such as the voltage survey in airconditioning control
Amount, current measurement, temperature survey etc..The constant error due to AD conversion in itself can be effectively reduced by the deviation calibration device
Caused by measurement error, play beneficial effect for improving automatically controlled control performance and reliability.It below will be with air-conditioning
For the AD conversion calibration of voltage measurement in control, the process of deviation calibration is specifically described, it is specific as follows:
A1, delayed 1 second, make air-conditioning enter stable state;
A2, control calibration signal output module output the first calibration voltage=0.16V;
A3, delay 1 second, with the first calibration voltage that output is stable;
A4, the first calibration voltage is AD converted, exports AD conversion value X1=34, and preserve;
A5, control calibration voltage output module output the second calibration voltage=4.53V;
A6, delay 1 second, with the second calibration voltage that output is stable;
A7, the second calibration voltage is AD converted, exports AD conversion value X2=880, and preserve;
A8, DC offset calibration value C2 and linear gradient calibration value C1 are calculated, and preserved, specific calculating process is as follows:
C1=(X02-X01)/(X2-X1)=(928-33)/(880-34)=1.06
C2=X01-C1*X1=33- (928-33)/(880-34) * 34=-3.04
Wherein, X01 is preferable AD conversion value=(0.16/5) * 1024=33 that the first calibration voltage is 0.16V;X02 is
Second calibration voltage is preferable AD conversion value=(4.53/5) * 1024=928 of 4.53V;
A9, it treats measuring signal and is AD converted, export AD conversion value X3, and preserve;By taking wherein primary sampling as an example, treat
Measuring signal is 2.5V, and the preferable AD conversion value after which is AD converted is 512, and practical AD conversion value is X3=
486, i.e. the error of AD conversion is 5%.
A10, according to DC offset calibration value C2 and linear gradient calibration value C1, calculate the measurement result Y after compensation;Meter
It is as follows to calculate formula:Y=X3*C1+C2;As an example, Y=486*1.06-3.04=512, measurement result and ideal after compensation
Value is consistent, and error greatly reduces.
The foregoing is merely the preferred embodiment of the present invention, are not intended to limit the scope of the invention, every utilization
Equivalent structure or the flow transformation that description of the invention and accompanying drawing content are made, are directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. the deviation calibration device of a kind of AD conversion, which is characterized in that the deviation calibration device of the AD conversion includes:
Calibration signal output module, for being sequentially output the first calibration signal and the second calibration signal;
AD conversion module is connect with the calibration signal output module, for the first calibration signal and the second calibration signal into
Row AD conversion obtains the first AD values and the 2nd AD values;It is additionally operable to be AD converted signal to be converted, obtains AD to be calibrated
Value;
Calibrate control module, connect with the AD conversion module, for the first AD values that are exported according to the AD conversion module and
2nd AD values carry out calibration calculating, DC offset calibration value and linear gradient calibration value are obtained, for the calibration control module
AD values to be calibrated are calibrated;
The calibration control module is used for:
According to following computation rule, calculate and obtain DC offset calibration value and linear gradient calibration value:
C1=(X02-X01)/(X2-X1);
C2=X01-C1*X1;
Wherein C1 is linear gradient calibration value, and C2 is DC offset calibration value, and X01 is the preferable AD of first calibration signal
Value, X02 are the preferable AD values of second calibration signal, and the X1 is the practical AD values of first calibration signal, and X2 is institute
State the practical AD values of the second calibration signal.
2. the deviation calibration device of AD conversion as described in claim 1, which is characterized in that the calibration signal output module packet
It includes:
Calibration signal generates unit, for generating the first calibration signal and the second calibration signal;
Calibration signal output control unit, for controlling the output of the first calibration signal and the second calibration signal.
3. the deviation calibration device of AD conversion as claimed in claim 2, which is characterized in that the calibration signal is voltage;Institute
It states calibration signal generation unit and includes power supply, first resistor R1, second resistance R2,3rd resistor R3 and switching tube;The power supply,
First resistor R1, second resistance R2 and 3rd resistor R3 are sequentially connected in series, the point of contact of the first resistor R1 and second resistance R2
For calibration signal output terminal, the control terminal of the switching tube is connect with the output terminal of the calibration signal output control unit, institute
The other both ends for stating switching tube are in parallel with the 3rd resistor R3, and the 3rd resistor R3 do not connect with second resistance R2 one
End ground connection.
4. the deviation calibration device of AD conversion as described in claim 1, which is characterized in that the deviation calibration device also wraps
It includes:Memory module, for storing the DC offset calibration value and linear gradient calibration value, for the calibration control module pair
AD values to be calibrated are calibrated.
5. a kind of deviation calibration method of AD conversion, which is characterized in that the deviation calibration method of the AD conversion includes following step
Suddenly:
Signal to be converted is AD converted, obtains conversion AD values to be calibrated;
Obtain DC offset calibration value and linear gradient calibration value;The DC offset calibration value and linear gradient calibration value are pre-
It first carries out deviation calibration and calculates acquisition;
According to the DC offset calibration value and linear gradient calibration value, deviation calibration is carried out to conversion AD values to be calibrated;
Control being sequentially output for the first calibration signal and the second calibration signal;
First calibration signal and the second calibration signal are AD converted, obtain the first AD values and the 2nd AD values;
According to the first AD values and the 2nd AD values, deviation calibration calculating is carried out, obtains the DC offset calibration value and linear
Slope calibration value;
Wherein described DC offset calibration value and linear gradient calibration value computation rule are:
C1=(X02-X01)/(X2-X1);
C2=X01-C1*X1;
Wherein C1 is linear gradient calibration value, and C2 is DC offset calibration value, and X01 is the preferable AD of first calibration signal
Value, X02 are the preferable AD values of second calibration signal, and the X1 is the practical AD values of first calibration signal, and X2 is institute
State the practical AD values of the second calibration signal.
6. the deviation calibration method of AD conversion as claimed in claim 5, which is characterized in that described to export the first calibration signal
Or second calibration signal preset time after, be AD converted.
7. the deviation calibration method of AD conversion as claimed in claim 6, which is characterized in that the value range of the preset time
For 0.1s<t<1s.
8. the deviation calibration method of AD conversion as claimed in claim 7, which is characterized in that it is described according to the first AD values and
2nd AD values carry out deviation calibration calculating, obtain the DC offset calibration value and linear gradient calibration value further includes later:
Store the DC offset calibration value and linear gradient calibration value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510045257.3A CN104734709B (en) | 2015-01-28 | 2015-01-28 | The deviation calibration method and device of AD conversion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510045257.3A CN104734709B (en) | 2015-01-28 | 2015-01-28 | The deviation calibration method and device of AD conversion |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104734709A CN104734709A (en) | 2015-06-24 |
CN104734709B true CN104734709B (en) | 2018-06-08 |
Family
ID=53458207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510045257.3A Active CN104734709B (en) | 2015-01-28 | 2015-01-28 | The deviation calibration method and device of AD conversion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104734709B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107271762A (en) * | 2017-06-14 | 2017-10-20 | 广东美的暖通设备有限公司 | The compensation circuit of sample circuit, compensation method, air conditioner |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1614894A (en) * | 2003-11-04 | 2005-05-11 | 晨星半导体股份有限公司 | Video signal processing system including analog to digital converter and related method for calibrating analog to digital converter |
CN1703831A (en) * | 2002-09-26 | 2005-11-30 | 阿纳洛格装置公司 | Integrated digital calibration circuit and digital to analog converter (DAC) |
CN101228696A (en) * | 2005-06-16 | 2008-07-23 | 高通股份有限公司 | Gain error correction in an analog-to-digital converter |
CN102365823A (en) * | 2009-03-30 | 2012-02-29 | 奥林巴斯株式会社 | Correction signal generator and analog-to-digital converter |
US8144228B2 (en) * | 2007-06-27 | 2012-03-27 | Samsung Electronics, Co., Ltd. | Image sensor having a ramp generator and method for calibrating a ramp slope value of a ramp signal |
CN102843051A (en) * | 2012-08-24 | 2012-12-26 | 天津三星电子有限公司 | Power adapter |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7031456B2 (en) * | 2003-09-26 | 2006-04-18 | Key Eye | Method, device and system for output impedance calibration that invariably maximizes hybrid performance |
-
2015
- 2015-01-28 CN CN201510045257.3A patent/CN104734709B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1703831A (en) * | 2002-09-26 | 2005-11-30 | 阿纳洛格装置公司 | Integrated digital calibration circuit and digital to analog converter (DAC) |
CN1614894A (en) * | 2003-11-04 | 2005-05-11 | 晨星半导体股份有限公司 | Video signal processing system including analog to digital converter and related method for calibrating analog to digital converter |
CN101228696A (en) * | 2005-06-16 | 2008-07-23 | 高通股份有限公司 | Gain error correction in an analog-to-digital converter |
US8144228B2 (en) * | 2007-06-27 | 2012-03-27 | Samsung Electronics, Co., Ltd. | Image sensor having a ramp generator and method for calibrating a ramp slope value of a ramp signal |
CN102365823A (en) * | 2009-03-30 | 2012-02-29 | 奥林巴斯株式会社 | Correction signal generator and analog-to-digital converter |
CN102843051A (en) * | 2012-08-24 | 2012-12-26 | 天津三星电子有限公司 | Power adapter |
Also Published As
Publication number | Publication date |
---|---|
CN104734709A (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103797359B (en) | For measuring the device of the electrical conductivity of liquid medium | |
CN111174810B (en) | High-precision IF conversion module applied to inertial navigation system | |
CN103091562A (en) | Capacitance capacity measurement circuit | |
CN203241165U (en) | Thermal resistor temperature measurement circuit based on three-wire system | |
CN107315439A (en) | High-precision voltage controlled current source circuit | |
CN104679092B (en) | The excess temperature delay protection circuit of wide power voltage | |
CN101614761B (en) | Current-sensing circuit | |
CN103743933A (en) | Compensation algorithm of single phase watt hour meter on self-heating effect and single phase watt hour meter | |
CN104076830A (en) | Mass flow control device, system and method used for integrated gas delivery system | |
CN104734709B (en) | The deviation calibration method and device of AD conversion | |
CN203177993U (en) | Temperature measuring circuit | |
CN204180034U (en) | Pulse edge rectifier circuit and reverse recovery time of diode testing apparatus | |
CN202442811U (en) | Structure of electronic temperature measurement circuit | |
CN110044510A (en) | IGBT module temperature measurement circuit, temp measuring method and computer readable storage medium | |
CN104076859A (en) | Microwave temperature compensation detector | |
CN103175633B (en) | Electron temperature measuring circuit with self-regulating function | |
CN204925248U (en) | Measure circuit of adjustable resistance resistance | |
CN101887092A (en) | Resistance measurement method with wide temperature range, wide measurement range, high precision and low cost | |
CN103412194A (en) | Capacitance measuring and calculating circuit | |
CN115459775A (en) | AD sampling circuit, sampling method and sampling device thereof, and household appliance | |
CN103197109A (en) | Circuit impedance used for electric parameter precision measurement and voltage active compensator | |
CN105137052B (en) | A kind of calibration circuit of blood glucose meter product | |
CN104287859A (en) | Calibration device and method for root canal length measurement instrument | |
CN204461518U (en) | A kind of heating type turbine integral type flowmeter | |
CN204575838U (en) | A kind of meter resistance measurement mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |