CN113055007A - Low-cost zero-delay SAR-ADC hardware correction algorithm - Google Patents
Low-cost zero-delay SAR-ADC hardware correction algorithm Download PDFInfo
- Publication number
- CN113055007A CN113055007A CN202110321763.6A CN202110321763A CN113055007A CN 113055007 A CN113055007 A CN 113055007A CN 202110321763 A CN202110321763 A CN 202110321763A CN 113055007 A CN113055007 A CN 113055007A
- Authority
- CN
- China
- Prior art keywords
- register
- adc
- sign bit
- output data
- temp1
- 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
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/10—Calibration or testing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Analogue/Digital Conversion (AREA)
Abstract
A low-cost zero-delay SAR-ADC hardware correction algorithm adopts the following processing steps: s1, defining a register AM and a register AK, configuring a hardware algorithm circuit through the register AM and the register AK, wherein the sign bit of the register AM is Fm, the sign bit of the register AK is Fk, and the hardware algorithm circuit takes ADC output data Ya as input; s2, the arithmetic circuit obtains a correction value TEMP1 through Ya, wherein TEMP1 is Ya + (FmAM: -AM); s3, the arithmetic circuit obtains a corrected value TEMP2 through TEMP1, wherein TEMP2 is (FkAK: -AK) × TEMP 1; and S4, the algorithm circuit obtains the ADC output data correction value Yb according to the correction value TEMP1 and the correction value TEMP2, wherein Yb is TEMP1+ TEMP 2. The register is provided with a hardware algorithm circuit, the calculation method is simple, the sampling time of the ADC is not occupied, the correction of the ADC can be simplified, and the method has the characteristics of low consumption and zero time delay.
Description
Technical Field
The invention relates to the technical field of SAR-ADC, in particular to a low-cost zero-delay SAR-ADC hardware correction algorithm.
Background
Successive approximation register analog-to-digital converters (SAR-ADCs) occupy most of the medium to high resolution ADC markets, with sampling rates up to 5Msps and resolutions of 8-bit to 18-bit. In view of the fact that the SAR framework allows the high-performance and low-power consumption ADC to be packaged in a small size and has the characteristics of high speed, low cost and high precision, the SAR-ADC is particularly suitable for a system with strict requirements on size and is widely integrated in an MCU chip.
However, due to the deviation of the production process, the ADC characteristics of each chip will have a little deviation, so that calibration and compensation are required to obtain better consistency. At present, a conventional compensation method is implemented through software compensation, and the currently known hardware compensation method generally has the defects of large resource consumption, clock occupation and the like.
Disclosure of Invention
In order to make up for the above defects in the prior art, the invention provides a low-cost zero-delay SAR-ADC hardware correction algorithm, and the technical scheme is as follows.
A low-cost zero-delay SAR-ADC hardware correction algorithm adopts the following processing steps:
s1, defining a register AM and a register AK, configuring a hardware algorithm circuit through the register AM and the register AK, wherein the sign bit of the register AM is Fm, the sign bit of the register AK is Fk, and the hardware algorithm circuit takes ADC output data Ya as input;
s2, the arithmetic circuit obtains the correction value TEMP1 through Ya, wherein
TEMP1=Ya+(FmAM:-AM);
S3, the arithmetic circuit obtains the correcting value TEMP2 through TEMP1, wherein
TEMP2=(FkAK:-AK)*TEMP1;
S4, the algorithm circuit obtains the correction value Yb of the ADC output data according to the correction value TEMP1 and the correction value TEMP2
Yb=TEMP1+TEMP2。
Compared with the prior art, the invention has the beneficial effects that: the register is provided with a hardware algorithm circuit, the calculation method is simple, the sampling time of the ADC is not occupied, the correction of the ADC can be simplified, and the method has the characteristics of low consumption and zero time delay.
The present invention will be further described with reference to specific embodiments.
Detailed Description
A low-cost zero-delay SAR-ADC hardware correction algorithm adopts the following processing steps:
s1, defining a register AM and a register AK, configuring a hardware algorithm circuit through the register AM and the register AK, wherein the sign bit of the register AM is Fm, the sign bit of the register AK is Fk, and the hardware algorithm circuit takes ADC output data Ya as input;
s2, the arithmetic circuit obtains the correction value TEMP1 through Ya, wherein
TEMP1=Ya+(FmAM:-AM);
S3, the arithmetic circuit obtains the correcting value TEMP2 through TEMP1, wherein
TEMP2=(FkAK:-AK)*TEMP1;
S4, the algorithm circuit obtains the correction value Yb of the ADC output data according to the correction value TEMP1 and the correction value TEMP2
Yb=TEMP1+TEMP2。
In the embodiment, a hardware algorithm circuit is configured through the register, the calculation method is simple, the sampling time of the ADC is not occupied, the correction of the ADC can be calculated in the simplest mode, and the method has the advantages of being low in consumption and zero in time delay.
In addition to the above embodiment, in step S1, the register AM and its sign bit Fm, and the register AK and its sign bit Fk are defined as follows:
s11, sampling ADC output data under two ideal ADC input voltages, and fitting a unary linear equation of the ADC input voltage X and the ADC output data Ya according to the two ideal ADC input voltages to be Ya (Ka X + Ma);
wherein Ka and Ma are preset equation coefficients;
s12, presetting ideal ADC output data Yb ═ Kb × X;
kb is a preset equation coefficient;
accordingly, the ideal ADC output data Yb ═ Kb/Ka ═ Ya-Ma;
on the basis, the ideal ADC output data Yb is further converted into the ideal ADC output data Yb by substituting the register AM and the sign bit Fm thereof, the register AK and the sign bit Fk thereof
Yb=(1+(Fk?|(Kb-Ka)/Ka|:-|(Kb-Ka)/Ka|)*(Ya+(Fm?|Ma|:-|Ma|))
AM, AK, Fm and Fk which need to be configured are calculated according to the calculation, and the definitions of the register AM and the sign bit Fm thereof, the register AK and the sign bit Fk thereof are carried out according to the calculation.
Further, in step S12, since | Kb-Ka/Ka | is a relatively small decimal, Kc/16384 is used instead, where Kc is a number smaller than 256 and | Ma | is also a number smaller than 256; defining register AM ═ Ma |, defining register AK ═ Kc, ideal ADC output data Yb are further converted into
Yb=(1+(FkAK:-AK)/16384)&(Ya+(FmAM:-AM));
AM, AK, Fm and Fk which need to be configured are calculated according to the calculation, and the definitions of the register AM and the sign bit Fm thereof, the register AK and the sign bit Fk thereof are carried out according to the calculation.
It will be clear to a person skilled in the art that the scope of protection of the present invention is not limited to details of the foregoing illustrative embodiments, and that all changes which come within the meaning and range of equivalency of the claims are intended to be embraced therein by the appended claims without departing from the spirit or essential characteristics thereof.
Claims (3)
1. A low-cost zero-delay SAR-ADC hardware correction algorithm is characterized by comprising the following processing steps:
s1, defining a register AM and a register AK, configuring a hardware algorithm circuit through the register AM and the register AK, wherein the sign bit of the register AM is Fm, the sign bit of the register AK is Fk, and the hardware algorithm circuit takes ADC output data Ya as input;
s2, the arithmetic circuit obtains the correction value TEMP1 through Ya, wherein
TEMP1=Ya+(FmAM:-AM);
S3, the arithmetic circuit obtains the correcting value TEMP2 through TEMP1, wherein
TEMP2=(FkAK:-AK)*TEMP1;
S4, the algorithm circuit obtains the correction value Yb of the ADC output data according to the correction value TEMP1 and the correction value TEMP2
Yb=TEMP1+TEMP2。
2. The low-cost zero-delay SAR-ADC hardware correction algorithm of claim 1, wherein in step S1, the definition of the register AM and its sign bit Fm, the register AK and its sign bit Fk adopts the following steps:
s11, sampling ADC output data under two ideal ADC input voltages, and fitting a unary linear equation of the ADC input voltage X and the ADC output data Ya according to the two ideal ADC input voltages to be Ya (Ka X + Ma);
wherein Ka and Ma are preset equation coefficients;
s12, presetting ideal ADC output data Yb ═ Kb × X;
kb is a preset equation coefficient;
accordingly, the ideal ADC output data Yb ═ Kb/Ka ═ Ya-Ma;
on the basis, the ideal ADC output data Yb is further converted into the ideal ADC output data Yb by substituting the register AM and the sign bit Fm thereof, the register AK and the sign bit Fk thereof
Yb=(1+(Fk?|(Kb-Ka)/Ka|:-|(Kb-Ka)/Ka|)*(Ya+(Fm?|Ma|:-|Ma|))
AM, AK, Fm and Fk which need to be configured are calculated according to the calculation, and the definitions of the register AM and the sign bit Fm thereof, the register AK and the sign bit Fk thereof are carried out according to the calculation.
3. A low cost zero delay SAR-ADC hardware correction algorithm as claimed in claim 2, wherein in step S12, given that | Kb-Ka/Ka | is a relatively small decimal, it is replaced by Kc/16384, where Kc is a number less than 256 and | Ma | is also a number less than 256; defining register AM ═ Ma |, defining register AK ═ Kc, ideal ADC output data Yb are further converted into
Yb=(1+(FkAK:-AK)/16384)&(Ya+(FmAM:-AM));
AM, AK, Fm and Fk which need to be configured are calculated according to the calculation, and the definitions of the register AM and the sign bit Fm thereof, the register AK and the sign bit Fk thereof are carried out according to the calculation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110321763.6A CN113055007A (en) | 2021-03-25 | 2021-03-25 | Low-cost zero-delay SAR-ADC hardware correction algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110321763.6A CN113055007A (en) | 2021-03-25 | 2021-03-25 | Low-cost zero-delay SAR-ADC hardware correction algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113055007A true CN113055007A (en) | 2021-06-29 |
Family
ID=76515714
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110321763.6A Pending CN113055007A (en) | 2021-03-25 | 2021-03-25 | Low-cost zero-delay SAR-ADC hardware correction algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113055007A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938647A (en) * | 2012-11-20 | 2013-02-20 | 华为技术有限公司 | Conversion circuit and chip |
CN106941354A (en) * | 2017-04-17 | 2017-07-11 | 北京机械设备研究所 | A kind of hardware circuit bearing calibration based on Mathematical Fitting |
CN109802675A (en) * | 2019-01-21 | 2019-05-24 | 电子科技大学 | A kind of SAR ADC high-accuracy capacitor array correcting method |
CN110061743A (en) * | 2019-04-17 | 2019-07-26 | 中国电子科技集团公司第二十四研究所 | A kind of error extracting method of production line analog-digital converter foreground digital calibration |
CN111800131A (en) * | 2019-04-03 | 2020-10-20 | 半导体元件工业有限责任公司 | Calibration circuit and method for calibrating ADC output codes from a set of analog-to-digital converters |
-
2021
- 2021-03-25 CN CN202110321763.6A patent/CN113055007A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938647A (en) * | 2012-11-20 | 2013-02-20 | 华为技术有限公司 | Conversion circuit and chip |
CN106941354A (en) * | 2017-04-17 | 2017-07-11 | 北京机械设备研究所 | A kind of hardware circuit bearing calibration based on Mathematical Fitting |
CN109802675A (en) * | 2019-01-21 | 2019-05-24 | 电子科技大学 | A kind of SAR ADC high-accuracy capacitor array correcting method |
CN111800131A (en) * | 2019-04-03 | 2020-10-20 | 半导体元件工业有限责任公司 | Calibration circuit and method for calibrating ADC output codes from a set of analog-to-digital converters |
CN110061743A (en) * | 2019-04-17 | 2019-07-26 | 中国电子科技集团公司第二十四研究所 | A kind of error extracting method of production line analog-digital converter foreground digital calibration |
Non-Patent Citations (2)
Title |
---|
王伟等: "提高DSP的AD转换器精度的研究与实现", 《现代制造工程》 * |
郭晓光等: "A/D转换校正方法的研究与实现", 《信息系统工程》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101977058B (en) | Sequential approximation analog to digital converter with digital correction and processing method thereof | |
US8223044B2 (en) | INL correction circuitry and method for SAR ADC | |
CN104917527A (en) | Capacitance mismatch calibrating circuit and calibrating method applied to single-end SAR ADC | |
CN107302359B (en) | Variable weight sub-DAC (digital-to-analog converter) correction method of high-precision successive approximation structure ADC (analog-to-digital converter) | |
CN104518797B (en) | A kind of dither circuit being used in high-precision adc | |
CN110768670B (en) | Digital piecewise linear calibration method for successive approximation type analog-to-digital converter | |
CN109347477A (en) | A kind of gradual approaching A/D converter weight calibration method | |
CN104242935A (en) | SAR ADC segmented capacitor mismatch correction method | |
CN108365847A (en) | For the calibration method of charge type SAR-ADC parasitic capacitances | |
CN106899299A (en) | A kind of electric capacity reconstructing method for improving resistance-capacitance type gradually-appoximant analog-digital converter SFDR and SNDR | |
EP3047574A1 (en) | Pipelined successive approximation analog-to-digital converter | |
TW201306493A (en) | Analog-to-digital converter and analog-to-digital conversion method | |
CN109120263B (en) | Successive approximation analog-digital converter based on digital modulation correction | |
CN113055007A (en) | Low-cost zero-delay SAR-ADC hardware correction algorithm | |
CN109462399B (en) | Background capacitance mismatch calibration method suitable for successive approximation analog-to-digital converter | |
JPWO2011039859A1 (en) | Analog-digital converter and semiconductor integrated circuit device using the same | |
Mao et al. | A configurable nonbinary 7/8-bit 800-400 MS/s SAR ADC in 65 nm CMOS | |
Guan et al. | A low-cost digital-domain foreground calibration for high resolution SAR ADCs | |
CN115021749A (en) | Dynamic range compensation method suitable for first-order error feedback type mismatch error shaping | |
KR20090070770A (en) | Current cell circuit in digital-analog converter | |
CN111371456B (en) | Second-order mismatch error shaping technique in full dynamic range NS SAR ADC | |
TWI568192B (en) | Analog-to-Digital Converting Device, Related Calibration Method and Calibration Module | |
US20210058091A1 (en) | Method of calibrating capacitive array of successive approximation register analog-to-digital converter | |
Kvashina et al. | A 12-bit current-steering segmented DAC with digital foreground calibration | |
CN210274034U (en) | High-precision DAC |
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: 20210629 |