CN109905126A - A kind of offset compensation method and device in analog-digital converter - Google Patents
A kind of offset compensation method and device in analog-digital converter Download PDFInfo
- Publication number
- CN109905126A CN109905126A CN201910055304.0A CN201910055304A CN109905126A CN 109905126 A CN109905126 A CN 109905126A CN 201910055304 A CN201910055304 A CN 201910055304A CN 109905126 A CN109905126 A CN 109905126A
- Authority
- CN
- China
- Prior art keywords
- offset compensation
- analog
- value
- digital converter
- register
- 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
- 238000000034 method Methods 0.000 title claims abstract description 13
- 238000010586 diagram Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
The invention discloses a kind of offset compensation method and devices in analog-digital converter, are related to analog-digital converter technical field.The present invention includes: to be configured to the offset compensation register in system register;It is converted using a small signal as wait the number of accepting and believing input converter;It adjusts offset compensation register and exports AD sample value;It is identical as wait the corresponding theoretical value of the number of accepting and believing in response to the AD sample value, then stop switching motion;Analog signal is acquired, and the analog signal values are added with offset compensation device institute output signal value, then obtains AD value after carrying out successive appraximation.Offset compensation device includes 4 coding input ends, and the voltage signal values after coding and offset compensation that coding input end is inputted correspond.The present invention enhances the accuracy of the reference data of analog-digital converter in single-chip microcontroller by compensating using reference data of the offset compensation device to analog-digital converter in single-chip microcontroller.
Description
Technical field
The invention belongs to analog-digital converter technical fields, more particularly to a kind of offset compensation in analog-digital converter
Method and device.
Background technique
In practical applications, analog-digital converter is often built in single-chip microcontroller, due to single-chip microcontroller work when inside have electric current,
The reference data that will affect built-in analog-digital converter keeps reference data bigger than normal, so that measured value is less than normal.
Summary of the invention
The purpose of the present invention is to provide a kind of offset compensation method and devices in analog-digital converter, pass through utilization
Offset compensation device compensates the reference data of analog-digital converter in single-chip microcontroller, enhances the ginseng of analog-digital converter in single-chip microcontroller
The accuracy for examining benchmark, the reference data for solving analog-digital converter built in existing single-chip microcontroller are influenced vulnerable to single-chip microcontroller internal current
The problem of.
In order to solve the above technical problems, the present invention is achieved by the following technical solutions:
A kind of offset compensation method in analog-digital converter, comprising:
Offset compensation register in system register is configured;
It is converted using a small signal as wait the number of accepting and believing input converter;
It adjusts offset compensation register and exports AD sample value;
It is identical as wait the corresponding theoretical value of the number of accepting and believing in response to the AD sample value, then stop switching motion;
Acquire analog signal, and the analog signal values be added with offset compensation device institute output signal value, then into
AD value is obtained after row successive appraximation.
Preferably, the offset compensation device includes 4 coding input ends, the coding and mistake that the coding input end is inputted
Compensated voltage signal values are adjusted to correspond.
A kind of offset compensation device in analog-digital converter, comprising:
Device for being configured to the offset compensation register in system register;
For using a small signal as the device converted wait the number of accepting and believing input converter;
For adjusting offset compensation register and exporting the device of AD sample value;
For identical as wait the corresponding theoretical value of the number of accepting and believing in response to the AD sample value, then stop the dress of switching motion
It sets;
Collection of simulant signal device;
For being added the analog signal values with offset compensation device institute output signal value, then after carrying out successive appraximation
Obtain the device of AD value.
Preferably, the offset compensation device includes 4 coding input ends, the coding and mistake that the coding input end is inputted
Compensated voltage signal values are adjusted to correspond.
The invention has the following advantages:
The present invention is enhanced by being compensated using reference data of the offset compensation device to analog-digital converter in single-chip microcontroller
The accuracy of the reference data of analog-digital converter in single-chip microcontroller.
Certainly, it implements any of the products of the present invention and does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will be described below to embodiment required
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of offset compensation method flow diagram in analog-digital converter of the invention;
Fig. 2 is register-bit schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
Embodiment 1:
Refering to Figure 1, a kind of offset compensation method in analog-digital converter, comprising:
SS01: as shown in Fig. 2, being configured to the offset compensation register in system register;
SS02: it is converted using a small signal as wait the number of accepting and believing input converter;
SS03: it adjusts offset compensation register and exports AD sample value;
SS04: it is identical as wait the corresponding theoretical value of the number of accepting and believing in response to AD sample value, then stop switching motion;
SS05: acquisition analog signal, and analog signal values are added with offset compensation device institute output signal value, then into
AD value is obtained after row successive appraximation.
Wherein, offset compensation device is including 4 coding input ends, after coding and offset compensation that coding input end is inputted
Voltage signal values correspond.
Embodiment 2:
A kind of offset compensation device in analog-digital converter, comprising:
Device for being configured to the offset compensation register in system register;
For using a small signal as the device converted wait the number of accepting and believing input converter;
For adjusting offset compensation register and exporting the device of AD sample value;
For identical as wait the corresponding theoretical value of the number of accepting and believing in response to AD sample value, then stop the device of switching motion;
Collection of simulant signal device;
For being added analog signal values with offset compensation device institute output signal value, then obtained after carrying out successive appraximation
The device of AD value.
Wherein, offset compensation device is including 4 coding input ends, after coding and offset compensation that coding input end is inputted
Voltage signal values correspond.
It is worth noting that, included each unit is only drawn according to function logic in the above system embodiment
Point, but be not limited to the above division, as long as corresponding functions can be realized;In addition, each functional unit is specific
Title is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
In addition, those of ordinary skill in the art will appreciate that realizing all or part of the steps in the various embodiments described above method
It is that relevant hardware can be instructed to complete by program, corresponding program can store to be situated between in a computer-readable storage
In matter, the storage medium, such as ROM/RAM, disk or CD.
Present invention disclosed above preferred embodiment is only intended to help to illustrate the present invention.There is no detailed for preferred embodiment
All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification,
It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to better explain the present invention
Principle and practical application, so that skilled artisan be enable to better understand and utilize the present invention.The present invention is only
It is limited by claims and its full scope and equivalent.
Claims (4)
1. a kind of offset compensation method in analog-digital converter characterized by comprising
Offset compensation register in system register is configured;
It is converted using a small signal as wait the number of accepting and believing input converter;
It adjusts offset compensation register and exports AD sample value;
It is identical as wait the corresponding theoretical value of the number of accepting and believing in response to the AD sample value, then stop switching motion;
Acquire analog signal, and the analog signal values be added with offset compensation device institute output signal value, then progress by
AD value is obtained after bit comparison.
2. a kind of offset compensation method in analog-digital converter according to claim 1, which is characterized in that the mistake
Adjusting compensator includes 4 coding input ends, the voltage signal values after coding and offset compensation that the coding input end is inputted
It corresponds.
3. a kind of offset compensation device in analog-digital converter characterized by comprising
Device for being configured to the offset compensation register in system register;
For using a small signal as the device converted wait the number of accepting and believing input converter;
For adjusting offset compensation register and exporting the device of AD sample value;
For identical as wait the corresponding theoretical value of the number of accepting and believing in response to the AD sample value, then stop the device of switching motion;
Collection of simulant signal device;
For being added the analog signal values with offset compensation device institute output signal value, then obtained after carrying out successive appraximation
The device of AD value.
4. a kind of offset compensation method and device in analog-digital converter according to claim 3, which is characterized in that
The offset compensation device includes 4 coding input ends, the voltage after coding and offset compensation that the coding input end is inputted
Signal value corresponds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910055304.0A CN109905126A (en) | 2019-01-21 | 2019-01-21 | A kind of offset compensation method and device in analog-digital converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910055304.0A CN109905126A (en) | 2019-01-21 | 2019-01-21 | A kind of offset compensation method and device in analog-digital converter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109905126A true CN109905126A (en) | 2019-06-18 |
Family
ID=66943925
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910055304.0A Pending CN109905126A (en) | 2019-01-21 | 2019-01-21 | A kind of offset compensation method and device in analog-digital converter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109905126A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102291139A (en) * | 2011-03-22 | 2011-12-21 | 北京时代民芯科技有限公司 | Automatic maladjustment elimination circuit for folding and interpolating analog-digital converter |
CN202229770U (en) * | 2011-09-14 | 2012-05-23 | 深圳市亿维自动化技术有限公司 | Digital compensation device for analog quantity acquisition circuit |
CN102811057A (en) * | 2011-05-31 | 2012-12-05 | 索尼公司 | Analog-to-digital conversion apparatus and signal processing system |
CN106788429A (en) * | 2016-11-30 | 2017-05-31 | 黄山学院 | DAC offset errors calibration circuit based on charge-domain signal transacting |
-
2019
- 2019-01-21 CN CN201910055304.0A patent/CN109905126A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102291139A (en) * | 2011-03-22 | 2011-12-21 | 北京时代民芯科技有限公司 | Automatic maladjustment elimination circuit for folding and interpolating analog-digital converter |
CN102811057A (en) * | 2011-05-31 | 2012-12-05 | 索尼公司 | Analog-to-digital conversion apparatus and signal processing system |
CN202229770U (en) * | 2011-09-14 | 2012-05-23 | 深圳市亿维自动化技术有限公司 | Digital compensation device for analog quantity acquisition circuit |
CN106788429A (en) * | 2016-11-30 | 2017-05-31 | 黄山学院 | DAC offset errors calibration circuit based on charge-domain signal transacting |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103257271A (en) | Device and method for detecting micro grid harmonic wave and inter-harmonics based on STM32F107VCT6 | |
CN101889863A (en) | High-performance direct current amplification device for acquiring biological electric signals | |
CN203287435U (en) | A micro electrical network harmonic wave and inter-harmonic wave test apparatus based on an STM32F107VCT6 | |
CN104122439B (en) | Electric energy meter capable of improving phase correction precision | |
CN105680860B (en) | Improve the circuit and method of microcontroller A/D conversion accuracy | |
CN102621371A (en) | Circuit for measuring MOA (metal oxide arrester) resistive current based on capacitive current compensational method | |
CN104917514A (en) | Analog quantity collection circuit based on photoelectric isolation | |
CN102707128B (en) | A kind of ac signal acquisition circuit based on microcontroller and method | |
CN103163359B (en) | A kind of super capacitor monomer voltage sampled measurements circuit | |
CN104133189A (en) | Method and device for detecting electric quantity return and supplement error at voltage loss of one phase of three-phase four-wire electric energy meter | |
CN109905126A (en) | A kind of offset compensation method and device in analog-digital converter | |
CN205643468U (en) | Electronic voltage transformer suitable for smart power grid power quality detection | |
CN104007320A (en) | Digital RLC tester | |
CN209707590U (en) | A kind of three phase dynamic harmonic electric energy meter apparatus | |
CN201698397U (en) | Data acquisition card based on ISA bus | |
CN203720258U (en) | Voltage and current transient signal high-speed synchronous data sampling device | |
CN107179432A (en) | A kind of automobile charging box and its current effective value measuring method | |
CN102226820A (en) | Circuit for detecting intermediate voltage | |
CN102332829A (en) | Zero drift digital suppression device for sampling practical value of AC-AC (Alternating-Current-Alternating-Current) frequency converter | |
CN204631129U (en) | A kind of electric harmonic 16 channel signal input synchronized sampling conversion and acquisition device | |
CN201429708Y (en) | Data acquisition system for induction logger | |
CN104202050B (en) | A kind of non-uniform sampling circuit of multichannel multi slope | |
CN201993416U (en) | Intermediate voltage detection circuit | |
CN203149016U (en) | Super capacitor single body voltage sampling measuring circuit | |
CN203086437U (en) | Level switching circuit |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190618 |