WO2022048499A1 - 一种adc数模转换误差的校正方法、装置及介质 - Google Patents

一种adc数模转换误差的校正方法、装置及介质 Download PDF

Info

Publication number
WO2022048499A1
WO2022048499A1 PCT/CN2021/114975 CN2021114975W WO2022048499A1 WO 2022048499 A1 WO2022048499 A1 WO 2022048499A1 CN 2021114975 W CN2021114975 W CN 2021114975W WO 2022048499 A1 WO2022048499 A1 WO 2022048499A1
Authority
WO
WIPO (PCT)
Prior art keywords
curve
conversion curve
area
actual
conversion
Prior art date
Application number
PCT/CN2021/114975
Other languages
English (en)
French (fr)
Inventor
杨稳
沈钢
Original Assignee
三诺生物传感股份有限公司
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 三诺生物传感股份有限公司 filed Critical 三诺生物传感股份有限公司
Publication of WO2022048499A1 publication Critical patent/WO2022048499A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/06Continuously compensating for, or preventing, undesired influence of physical parameters

Definitions

  • the present application relates to the technical field of analog-to-digital conversion, and in particular, to a method, device and medium for correcting errors of ADC digital-to-analog conversion.
  • ADC Analog-to-Digital Converter
  • the purpose of this application is to provide a correction method, device and medium for ADC digital-to-analog conversion error.
  • the present application provides a correction method for ADC digital-to-analog conversion error, including:
  • the curve formed by the third point on the actual conversion curve and the slope is used as the correction conversion curve to perform signal conversion;
  • the first area is the area between the curve formed by the third point on the actual conversion curve and the slope and the actual conversion curve
  • the second area is the theoretical conversion curve and the The area between the actual conversion curves.
  • it also includes:
  • the calculating the slope corresponding to at least one set of points on the actual conversion curve specifically includes: calculating the slope corresponding to the left and right endpoints of the actual conversion curve in the effective range interval.
  • the digital quantity corresponding to the third point of the target is located at the midpoint of the effective range interval.
  • the method further includes:
  • the calculating the slope corresponding to at least one set of points on the actual conversion curve specifically includes: separately calculating the corresponding slope of the actual conversion curve in each of the effective range sub-intervals.
  • the method further includes:
  • the slope is specifically a slope determined by a set of points in the respective corresponding sub-intervals of the multiple segments of the curve.
  • the method further includes:
  • the area between the final corrected conversion curve and the actual conversion curve is the smallest.
  • the application also provides a correction device for ADC digital-to-analog conversion error, including:
  • the acquisition module is used to acquire the theoretical conversion curve and actual conversion curve corresponding to the ADC;
  • a calculation module configured to calculate the slope corresponding to at least one group of points on the actual conversion curve, wherein the group of points is any two points on the actual conversion curve;
  • a determining module configured to use the curve formed by the third point on the actual conversion curve and the slope as a correction conversion curve to perform signal conversion if the first area is smaller than the second area within the value interval;
  • the first area is the area between the curve formed by the third point on the actual conversion curve and the slope and the actual conversion curve
  • the second area is the theoretical conversion curve and the The area between the actual conversion curves.
  • it also includes:
  • the selection module is configured to select a target third point from a plurality of the third points satisfying that the first area is smaller than the second area after determining that the first area is smaller than the second area, and select The curve formed by the third point of the target and the slope is used as the final calibration conversion curve;
  • the area between the final corrected conversion curve and the actual conversion curve is the smallest.
  • the present application also provides a correction device for ADC digital-to-analog conversion error, comprising a memory for storing a computer program;
  • the processor is configured to implement the steps of the ADC digital-to-analog conversion error correction method when executing the computer program.
  • the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the ADC digital-to-analog conversion error as described above is realized. steps of the calibration method.
  • the method for correcting the ADC digital-to-analog conversion error provided by the present application firstly obtains the theoretical conversion curve and the actual conversion curve corresponding to the ADC, and then calculates the slope corresponding to at least one set of points on the actual conversion curve, within the value range , if the area between the curve formed by the third point on the actual conversion curve and the slope and the actual conversion curve is smaller than the area between the theoretical conversion curve and the actual conversion curve, the curve formed by the third point and the slope is used as the correction conversion curve .
  • the nonlinear error when the analog signal is converted into a digital signal improves the overall accuracy of the ADC.
  • the technical solution can achieve the purpose of reducing the overall error without adding additional hardware and without increasing the number of bits and performance of the ADC, the hardware cost is saved.
  • the ADC digital-to-analog conversion error correction device and medium provided by the present application correspond to the above method, and have the same beneficial effects.
  • Fig. 1 is the coordinate diagram of a kind of AD conversion curve that the embodiment of this application provides;
  • FIG. 2 is a flowchart of a method for correcting an ADC digital-to-analog conversion error provided by an embodiment of the present application
  • FIG. 3 is a coordinate diagram of another AD conversion curve provided by the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a device for correcting an ADC digital-to-analog conversion error provided by an embodiment of the present application
  • FIG. 6 is a structural diagram of an apparatus for correcting an ADC digital-to-analog conversion error provided by another embodiment of the present application.
  • the core of the present application is to provide a correction method, device and medium for ADC digital-to-analog conversion error, which reduces the nonlinear error when converting an analog signal into a digital signal in the prior art, and improves the overall accuracy of the ADC.
  • FIG. 1 is a coordinate diagram of an AD conversion curve provided by an embodiment of the present application, and a 12-bit ADC is used as an example for description.
  • the actual conversion curve 1 represents the AD conversion curve with actual distortion
  • the theoretical conversion curve 2 represents the AD conversion curve under ideal conditions without distortion
  • the corrected conversion curve 3 represents the AD conversion curve after correction, where X represents the digital quantity
  • Y represents the analog quantity.
  • X1 as the analysis point, according to the actual conversion curve 1, it can be seen that when the analog signal voltage value is Y1 P , the converted digital quantity is X1.
  • the MCU will calculate the digital quantity according to the theoretical conversion curve 2 after receiving the digital quantity X1.
  • the analog voltage signal Y1 T represented by X1, and then Y1 T is used as the basis for condition judgment, data and algorithm analysis.
  • Y1 T represented by X1
  • Y1 T is used as the basis for condition judgment, data and algorithm analysis.
  • there is a large error between the actual analog signal voltage value Y1 P and the theoretical analog voltage signal Y1 T so taking Y1 T as Y1 P will make the judgment or calculation result inaccurate.
  • the ADC when the ADC is applied to the low battery alarm function of the instrument, if the low battery alarm threshold is set between Y1 P and Y1 T , the actual battery level will be as low as Y1 P without prompting to replace the battery, resulting in the instrument Insufficient power supply will affect normal work. Similarly, if the error signal is brought into the blood sugar algorithm during blood sugar measurement, inaccurate blood sugar values will be obtained, and the guiding significance for the user's blood sugar control will be lost.
  • FIG. 2 is a flowchart of a method for correcting an ADC digital-to-analog conversion error provided by an embodiment of the application. As shown in FIG. 2 , the method includes:
  • the digital quantity after the actual AD conversion is measured through the input of the standard voltage source, and the actual conversion curve 1 shown in FIG. 1 is obtained. It should be noted that, in the actual measurement, only limited points on the actual conversion curve 1 can be measured as much as possible, and the countless points on the actual conversion curve 1 cannot be measured one by one. Therefore, the actual conversion shown in Figure 1 Curve 1 is actually a limited number of discrete points fitted.
  • S11 Calculate the slope corresponding to at least one set of points on the actual conversion curve 1. Among them, a group of points are any two points on the actual conversion curve 1.
  • S12 In the value range, determine whether the first area S1 is smaller than the second area S2, if so, go to S13, if not, go to S14.
  • the first area S1 is the area between the curve formed by the third point on the actual conversion curve 1 and the slope K and the actual conversion curve 1
  • the second area S2 is the area between the theoretical conversion curve 2 and the actual conversion curve 1 .
  • the value range here specifically refers to the value range of the ADC, which may be the value range of the corresponding digital quantity or the value range of the corresponding analog quantity, which is not limited here.
  • point a here is not a fixed point, the position of point a can fluctuate on the actual conversion curve 1 according to the actual situation, and of course its abscissa and ordinate also change accordingly.
  • S1 is the first area
  • X0 and X2 are the abscissas of the two points selected in S11
  • Y C (x) is the curve equation of the curve formed by the third point and the slope K
  • Y P (x) is the actual conversion curve 1's curve equation.
  • the correction conversion curve 3 is used to realize the conversion of the signal.
  • the signal conversion here can be converted from an analog quantity to a digital quantity, or it can be reversed according to the obtained digital quantity. Since the calibration conversion curve has been corrected, the accuracy of the signal conversion can be improved during the signal conversion process.
  • the theoretical conversion curve and the actual conversion curve corresponding to the ADC are first obtained, and then the slope corresponding to at least one set of points on the actual conversion curve is calculated. In the interval, if the area between the curve formed by the third point on the actual conversion curve and the slope and the actual conversion curve is smaller than the area between the theoretical conversion curve and the actual conversion curve, the curve formed by the third point and the slope will be used as the correction. conversion curve.
  • the corrected conversion curve is as close as possible to the actual conversion curve, reducing the number of problems in the prior art.
  • the nonlinear error when the analog signal is converted into a digital signal improves the overall accuracy of the ADC.
  • the technical solution can achieve the purpose of reducing the overall error without adding additional hardware and without increasing the number of bits and performance of the ADC, the hardware cost is saved.
  • the correction conversion curve 3 corresponding to the minimum first area S1 needs to be found.
  • the method further includes:
  • the area between the final corrected conversion curve and the actual conversion curve is the smallest.
  • the area between the curve formed by the third point on the discrete actual conversion curve 1 and the slope K and the actual conversion curve 1 in the case of n is:
  • the target third point is selected from a plurality of third points satisfying that the first area is smaller than the second area, and the curve formed by the target third point and the slope is used as the final Correction conversion curve.
  • S11 specifically includes: calculating the slope corresponding to the left and right endpoints of the actual conversion curve 1 in the effective range interval.
  • the left and right endpoints of the actual conversion curve 1 in the effective range are selected to calculate the corresponding slope K value.
  • the effective range interval is set to (X0, X2)
  • K (Y2-Y0)/( X2-X0).
  • the minimum value of the first area S1 can be quickly found according to the actual situation and the change rule of the first area S1.
  • the third point of the target is located at the midpoint of the effective range interval. .
  • S11 specifically includes: respectively calculating the slope corresponding to the actual conversion curve 1 in each effective range sub-interval.
  • FIG. 3 is a coordinate diagram of another AD conversion curve provided by the embodiment of the present application.
  • the effective range interval is the entire ADC range, and the effective range interval is divided into two parts with (X1, 0) as the dividing point.
  • the method as described in the above embodiment is used to determine the calibration conversion curve 3 corresponding to each effective range sub-interval, and the specific process will not be repeated here.
  • Y C (x) is the curve equation of the curve formed by the third point and the slope K
  • K ab is the slope determined by point a and point b
  • K bc is the slope determined by point b and point c
  • b ab is the first
  • b bc is the constant term of the curve equation of the calibration conversion curve 3 corresponding to the second effective range sub-interval.
  • this application does not limit the selection position of the demarcation point, and the most suitable point is selected according to the actual situation to divide the effective range sub-interval.
  • a group of points selected in each effective range sub-interval are any two points on the actual conversion curve 1, that is, each effective range sub-interval corresponds to The coordinates of the two points of , and the two points corresponding to other valid range sub-intervals may be the same or different, which are not limited here.
  • the points selected in the first effective range sub-interval are point a and b
  • the points selected in the second effective range sub-interval are point b and c
  • the selected point b in the two effective range sub-intervals Likewise, in other embodiments, different points may also be selected.
  • the effective range interval is divided into a plurality of effective range sub-intervals, and then two or more calibration conversion curves are determined by the above method, and combined into a piecewise function, which is composed of This has a significant correction effect on the accuracy of the ADC in a wide effective range interval or the entire ADC range.
  • FIG. 4 is a coordinate diagram of another AD conversion curve provided by the embodiment of the present application. As shown in Figure 4, after obtaining the theoretical conversion curve 2 and the actual conversion curve 1 corresponding to the ADC, if the actual conversion curve 1 and the theoretical conversion curve 2 have multiple intersections, it also includes:
  • the actual conversion curve 1 is divided into multi-segment curves according to the intersection points, wherein each segment of the curve corresponds to a sub-interval;
  • the slope is specifically the slope determined by a set of points in the respective corresponding sub-intervals of the multi-segment curves.
  • the actual conversion curve 1 is divided into a first curve 101 and a second curve 102 by the intersection point (Xi, Yi), and the sub-interval corresponding to the first curve 101 is (0, Xi), The sub-interval corresponding to the second curve 102 is (Xi, 4096), and the correction conversion curve 3 corresponding to each segment of the curve is calculated in each sub-interval according to the method in the above embodiment.
  • the actual conversion curve is divided into multiple sections of curves according to the intersection points, and then the corresponding correction conversion curve is determined for each section of the curve, thereby improving the actual conversion curve and theoretical conversion curve.
  • the accuracy of the ADC when the conversion curve has multiple intersections.
  • the calibration conversion curve 3 after obtaining the calibration conversion curve 3, it also includes:
  • the effective range applied by the relevant technical personnel to the ADC of the same model is generally unchanged, so after the calibration conversion curve is obtained, the corresponding relationship between the calibration conversion curve and the ADC is stored. into the storage device, so that the relevant technical personnel can use it directly without repeating the calibration in the future.
  • the method for correcting the digital-to-analog conversion error of the ADC is described in detail, and the present application also provides a corresponding embodiment of the device for correcting the digital-to-analog conversion error of the ADC. It should be noted that this application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.
  • FIG. 5 is a schematic structural diagram of an apparatus for correcting an ADC digital-to-analog conversion error provided by an embodiment of the present application. As shown in Figure 5, based on the perspective of functional modules, the device includes:
  • an acquisition module 10 for acquiring the theoretical conversion curve 2 and the actual conversion curve 1 corresponding to the ADC;
  • the calculation module 11 is used to calculate the slope corresponding to at least one group of points on the actual conversion curve 1, wherein a group of points is any two points on the actual conversion curve 1;
  • the determination module 12 is used for, in the value interval, if the first area S1 is smaller than the second area S2, the curve formed by the third point on the actual conversion curve 1 and the slope is used as the correction conversion curve 3 to perform signal conversion;
  • the first area S1 is the area between the curve formed by the third point on the actual conversion curve 1 and the slope and the actual conversion curve 1
  • the second area S2 is the area between the theoretical conversion curve 2 and the actual conversion curve 1 .
  • the device further includes:
  • the setting module is used to set the valid range interval within the value interval
  • a first dividing module used for dividing the effective range interval into a plurality of effective range sub-intervals
  • a second dividing module configured to divide the actual conversion curve into multiple segments of curves according to the intersection points, wherein each segment of the curve corresponds to a sub-interval
  • the selection module is used to select the target third point from a plurality of third points satisfying that the first area is smaller than the second area after determining that the first area is smaller than the second area, and use the curve formed by the target third point and the slope as The final calibration conversion curve;
  • the area between the final corrected conversion curve and the actual conversion curve is the smallest.
  • the ADC digital-to-analog conversion error correction device provided by the present application first obtains the theoretical conversion curve and the actual conversion curve corresponding to the ADC, and then calculates the slope corresponding to at least one set of points on the actual conversion curve, within the value range , if the area between the curve formed by the third point on the actual conversion curve and the slope and the actual conversion curve is smaller than the area between the theoretical conversion curve and the actual conversion curve, the curve formed by the third point and the slope is used as the correction conversion curve .
  • the corrected conversion curve is as close as possible to the actual conversion curve, reducing the number of problems in the prior art.
  • the nonlinear error when the analog signal is converted into a digital signal improves the overall accuracy of the ADC.
  • the technical solution can achieve the purpose of reducing the overall error without adding additional hardware and without increasing the number of bits and performance of the ADC, the hardware cost is saved.
  • FIG. 6 is a structural diagram of a device for correcting an ADC digital-to-analog conversion error provided by another embodiment of the application. As shown in FIG. 6 , based on the hardware structure, the device includes: a memory 20 for storing a computer program;
  • the processor 21 is configured to implement the steps of the method for correcting the digital-to-analog conversion error of the ADC in the foregoing embodiment when executing the computer program.
  • the correction device for the ADC digital-to-analog conversion error may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
  • the memory 20 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, and the like.
  • the memory 20 may be an internal storage unit of the ADC digital-to-analog conversion error correction device in some embodiments.
  • the processor 21 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip in some embodiments, for running the program code or processing stored in the memory 20 Data, for example, the program corresponding to the correction method of the ADC digital-to-analog conversion error is executed.
  • CPU Central Processing Unit
  • controller microcontroller
  • microprocessor or other data processing chip in some embodiments, for running the program code or processing stored in the memory 20 Data, for example, the program corresponding to the correction method of the ADC digital-to-analog conversion error is executed.
  • the bus 22 may also be a peripheral component interconnect standard (peripheral component interconnect, referred to as PCI) bus or an extended industry standard architecture (extended industry standard architecture, referred to as EISA) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 6, but it does not mean that there is only one bus or one type of bus.
  • FIG. 6 does not constitute a limitation on the correction device for ADC digital-to-analog conversion errors, and may include more or less components than those shown.
  • the ADC digital-to-analog conversion error correction device includes a memory and a processor.
  • the processor executes a program stored in the memory, the processor can implement the following method: first, the theoretical conversion curve and the actual conversion curve corresponding to the ADC are obtained, Then calculate the slope corresponding to at least one set of points on the actual conversion curve. In the value range, if the area between the curve formed by the third point on the actual conversion curve and the slope and the actual conversion curve is smaller than the theoretical conversion curve and The area between the actual conversion curves, the curve formed by the third point and the slope is used as the correction conversion curve.
  • the corrected conversion curve is as close as possible to the actual conversion curve, reducing the number of problems in the prior art.
  • the nonlinear error when the analog signal is converted into a digital signal improves the overall accuracy of the ADC.
  • the technical solution can achieve the purpose of reducing the overall error without adding additional hardware and without increasing the number of bits and performance of the ADC, the hardware cost is saved.
  • the present application also provides an embodiment corresponding to a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps described in the foregoing method embodiments are implemented.
  • the methods in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

一种ADC数模转换误差的校正方法,首先获取到ADC对应的理论转换曲线和实际转换曲线,然后计算所述实际转换曲线上的至少一组点对应的斜率,在取值区间内,若实际转换曲线上的第三点与斜率构成的曲线和实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,则将第三点与斜率构成的曲线作为校正转换曲线。应用以上技术方案,由于校正后的曲线与实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,将校正转换曲线尽可能的接近实际转换曲线,减小了现有技术中模拟信号转化为数字信号时的非线性误差,提升了ADC整体的准确度。此外,还节约了硬件成本。

Description

一种ADC数模转换误差的校正方法、装置及介质
本申请要求于2020年9月3日提交中国专利局、申请号为202010916080.0、发明名称为“一种ADC数模转换误差的校正方法、装置及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及模数转换技术领域,特别是涉及一种ADC数模转换误差的校正方法、装置及介质。
背景技术
随着对信号采集的准确度要求的提高,模数转换器(Analog-to-Digital Converter,ADC)的作用也越来越重要;然而在实际情况中,ADC存在非线性误差,模拟信号转化为数字信号时容易导致失真。
目前,针对上述问题主要出现了两种解决方法:其一是通过提高ADC的位数和性能从而达到提高整体精度和准确度的目的,然而这种方式会增加产品成本;其二是使用较为复杂的高阶算法对ADC中的非线性误差进行补偿,从而缩小整体的误差,进而提高准确度,然而复杂的算法会影响微控制单元(Microcontroller Unit,MCU)的运算速度,因此在高速采集的应用场景中具有很大的局限性。
鉴于上述现有技术,寻求一种既能提高准确度又能节约成本的ADC数模转换误差的校正方法是本领域技术人员亟待解决的问题。
发明内容
本申请的目的是提供一种ADC数模转换误差的校正方法、装置及介质。
为解决上述技术问题,本申请提供一种ADC数模转换误差的校正方法,包括:
获取ADC对应的理论转换曲线和实际转换曲线;
计算所述实际转换曲线上的至少一组点对应的斜率,其中,所述一组 点为所述实际转换曲线上的任意两个点;
在取值区间内,若第一面积小于第二面积,则将所述实际转换曲线上的第三点与所述斜率构成的曲线作为校正转换曲线以进行信号的转换;
其中,所述第一面积为所述实际转换曲线上的第三点与所述斜率构成的曲线和所述实际转换曲线之间的面积,所述第二面积为所述理论转换曲线和所述实际转换曲线之间的面积。
优选地,还包括:
在所述取值区间内设置有效量程区间;
所述计算所述实际转换曲线上的至少一组点对应的斜率具体包括:计算所述实际转换曲线在所述有效量程区间内的左右端点对应的斜率。
优选地,所述目标第三点对应的数字量位于所述有效量程区间的中点。
优选地,所述在所述取值区间内设置有效量程区间之后,还包括:
将所述有效量程区间划分为多个有效量程子区间;
所述计算所述实际转换曲线上的至少一组点对应的斜率具体包括:分别计算所述实际转换曲线在各所述有效量程子区间对应的斜率。
优选地,在所述获取ADC对应的理论转换曲线和实际转换曲线之后,若所述实际转换曲线和所述理论转换曲线有多个交叉点,则还包括:
根据交叉点将所述实际转换曲线划分为多段曲线,其中,每段所述曲线对应一个子区间;
所述斜率具体为多段所述曲线在各自对应的所述子区间内的一组点所确定的斜率。
优选地,在确定出所述第一面积小于所述第二面积之后,还包括:
从满足所述第一面积小于所述第二面积的多个所述第三点中选取目标第三点,将所述目标第三点与所述斜率构成的曲线作为最终校正转换曲线;
其中,所述最终校正转换曲线和所述实际转换曲线之间的面积最小。
为解决上述技术问题,本申请还提供一种ADC数模转换误差的校正装置,包括:
获取模块,用于获取ADC对应的理论转换曲线和实际转换曲线;
计算模块,用于计算所述实际转换曲线上的至少一组点对应的斜率, 其中,所述一组点为所述实际转换曲线上的任意两个点;
确定模块,用于在取值区间内,若第一面积小于第二面积,则将所述实际转换曲线上的第三点与所述斜率构成的曲线作为校正转换曲线以进行信号的转换;
其中,所述第一面积为所述实际转换曲线上的第三点与所述斜率构成的曲线和所述实际转换曲线之间的面积,所述第二面积为所述理论转换曲线和所述实际转换曲线之间的面积。
优选地,还包括:
选取模块,用于在确定出所述第一面积小于所述第二面积之后,从满足所述第一面积小于所述第二面积的多个所述第三点中选取目标第三点,将所述目标第三点与斜率构成的曲线作为最终校正转换曲线;
其中,所述最终校正转换曲线和所述实际转换曲线之间的面积最小。
为解决上述技术问题,本申请还提供一种ADC数模转换误差的校正装置,包括存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如所述的ADC数模转换误差的校正方法的步骤。
为解决上述技术问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如所述的ADC数模转换误差的校正方法的步骤。
本申请所提供的ADC数模转换误差的校正方法,首先获取到ADC对应的理论转换曲线和实际转换曲线,然后计算所述实际转换曲线上的至少一组点对应的斜率,在取值区间内,若实际转换曲线上的第三点与斜率构成的曲线和实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,则将第三点与斜率构成的曲线作为校正转换曲线。应用以上技术方案,由于校正后的曲线与实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,将校正转换曲线尽可能的接近实际转换曲线,减小了现有技术中模拟信号转化为数字信号时的非线性误差,提升了ADC整体的准确度。此外,由于该技术方案无需额外添加硬件且不需要提高ADC的位数和性能便可达到缩小整体的误差的目的,因此节约了硬件成 本。
此外,本申请所提供的ADC数模转换误差的校正装置及介质与上述方法对应,具有相同的有益效果。
附图说明
为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种AD转换曲线的坐标图;
图2为本申请实施例提供的一种ADC数模转换误差的校正方法的流程图;
图3为本申请实施例提供的另一种AD转换曲线的坐标图;
图4为本申请实施例提供的另一种AD转换曲线的坐标图;
图5为本申请实施例提供的一种ADC数模转换误差的校正装置的结构示意图;
图6为本申请另一实施例提供的ADC数模转换误差的校正装置的结构图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本申请保护范围。
本申请的核心是提供一种ADC数模转换误差的校正方法、装置及介质,减小了现有技术中模拟信号转化为数字信号时的非线性误差,提升了ADC整体的准确度。
为了使本技术领域的人员更好地理解本申请方案,下面结合附图和具体实施方式对本申请作进一步的详细说明。
图1为本申请实施例提供的一种AD转换曲线的坐标图,以12位ADC为例进行说明。如图1所示,实际转换曲线1表示实际失真的AD转换曲线,理论转换曲线2表示没有失真的理想情况下的AD转换曲线,校正转换曲线3表示校正之后的AD转换曲线,其中X代表数字量,Y代表模拟量。将X1作为分析点,根据实际转换曲线1可以看出当模拟信号电压值为Y1 P时,转换得到的数字量为X1,通常MCU接收到数字量X1后会根据理论转换曲线2计算出数字量X1表示的模拟电压信号Y1 T,然后将Y1 T作为条件判断、数据和算法分析的依据。然而实际模拟信号电压值Y1 P和理论模拟电压信号Y1 T存在较大误差,因此将Y1 T当作Y1 P会使判断或计算的结果变得不准确。
例如,当ADC应用于仪器的低电量报警功能时,如果将低电量报警阈值设置在Y1 P和Y1 T之间,则会出现实际电量已经低至Y1 P却不提示更换电池的情况,导致仪器供电不足进而影响正常工作;同样,若在血糖测量过程中,若将存在误差的信号量带入血糖算法,将得到不准确的血糖值,而失去了对用户血糖控制的指导意义。
图2为本申请实施例提供的一种ADC数模转换误差的校正方法的流程图,如图2所示,该方法包括:
S10:获取ADC对应的理论转换曲线2和实际转换曲线1。
在具体实施中,通过标准电压源输入,测量实际AD转换后的数字量,得到如图1所示的实际转换曲线1。需要说明的是,实际测量中,只能尽可能多的测量实际转换曲线1上的有限个点,无法将实际转换曲线1上的无数个点一一测量,因此,图1所示的实际转换曲线1实际上是有限的、离散的几个点拟合而成。
S11:计算实际转换曲线1上的至少一组点对应的斜率。其中,一组点为实际转换曲线1上的任意两个点。
如图1所示,在实际转换曲线1上任意选取两个点,例如(X0,Y0)和 (X2,Y2),其中,0≤X0<2 n,0<X2≤2 n,n为ADC的位数。根据(X0,Y0)和(X2,Y2)确定斜率K,K=(Y2-Y0)/(X2-X0)。
S12:在取值区间内,判断第一面积S1是否小于第二面积S2,若是,则进入S13,若否,则进入S14。
S13:将实际转换曲线1上的第三点与斜率K构成的曲线作为校正转换曲线3以进行信号的转换。
S14:调整第三点的位置,并返回S12。
其中,第一面积S1为实际转换曲线1上的第三点与斜率K构成的曲线和实际转换曲线1之间的面积,第二面积S2为理论转换曲线2和实际转换曲线1之间的面积。
在具体实施中,在取值区间内,在实际转换曲线1上任意选取第三点,即图1中的a点,a点坐标为(Xa,Ya),由a点坐标和斜率K确定一元一次方程:Y C(x)=K×x+(Ya-K×Xa),(0<Xa<2 n)。
需要说明的是,这里的取值区间具体指的是ADC的取值范围,可以是对应数字量的取值范围,也可以是对应模拟量的取值范围,这里均不作限定。此外,这里的a点并不是一个固定的点,a点的位置可以随实际情况在实际转换曲线1上波动,当然其横纵坐标也随之变化。
借助数学统计工具,计算在取值区间内,Y C(x)与实际转换曲线1之间的面积:
Figure PCTCN2021114975-appb-000001
其中,S1为第一面积,X0和X2为S11中选取的两个点的横坐标,Y C(x)为第三点与斜率K构成曲线的曲线方程,Y P(x)为实际转换曲线1的曲线方程。
判断第一面积S1是否小于第二面积S2,若是,则将实际转换曲线1上的第三点与斜率K构成的曲线作为校正转换曲线3以进行信号的转换;若否,则调整第三点的位置,直至第一面积S1小于第二面积S2。
可以理解的是,得到校正转换曲线3之后,将校正转换曲线3用于实现信号的转换,这里的信号转换可以是由模拟量转换成数字量,也可以是 根据得到的数字量反推其相应的模拟量,由于校正转换曲线经过了校正,故在信号转换过程中,能够提高信号转换的准确度。
本申请实施例所提供的ADC数模转换误差的校正方法,首先获取到ADC对应的理论转换曲线和实际转换曲线,然后计算所述实际转换曲线上的至少一组点对应的斜率,在取值区间内,若实际转换曲线上的第三点与斜率构成的曲线和实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,则将第三点与斜率构成的曲线作为校正转换曲线。应用以上技术方案,由于校正后的曲线与实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,将校正转换曲线尽可能的接近实际转换曲线,减小了现有技术中模拟信号转化为数字信号时的非线性误差,提升了ADC整体的准确度。此外,由于该技术方案无需额外添加硬件且不需要提高ADC的位数和性能便可达到缩小整体的误差的目的,因此节约了硬件成本。
在上述实施例中,在第一面积S1小于第二面积S2时,只能保证在一定程度上减小模拟信号转化为数字信号时的非线性误差,具体实施中,为了进一步提高ADC整体的准确度,需要找到第一面积S1最小时对应的校正转换曲线3。
作为一种优选地实施例,在确定出第一面积小于第二面积之后,还包括:
从满足第一面积小于第二面积的多个第三点中选取目标第三点,将目标第三点与斜率构成的曲线作为最终校正转换曲线;
其中,最终校正转换曲线和实际转换曲线之间的面积最小。
在具体实施中,不断调整第三点的位置,即调整点a(Xa,Ya)在实际转换曲线1上的位置,依次求出Xa=1、Xa=2、Xa=3……Xa=2 n情况下离散后的实际转换曲线1上的第三点与斜率K构成的曲线和实际转换曲线1之间的面积,即:
Figure PCTCN2021114975-appb-000002
Figure PCTCN2021114975-appb-000003
……
Figure PCTCN2021114975-appb-000004
通过对比,找到第一面积S1最小时对应的a点坐标,代入斜率K值,得到最终校正转换曲线。
本申请实施例所提供的ADC数模转换误差的校正方法,从满足第一面积小于第二面积的多个第三点中选取目标第三点,将目标第三点与斜率构成的曲线作为最终校正转换曲线。应用以上技术方案,得到的最终校正转换曲线和实际转换曲线之间的面积最小,进一步减小了现有技术中模拟信号转化为数字信号时的非线性误差,提升了ADC整体的准确度。
在实际应用过程中,可能并不需要用到整个ADC量程范围,仅仅需要利用ADC整体量程中的一部分区间,因此,在上述实施例的基础上,还包括:在取值区间内设置有效量程区间。
S11具体包括:计算实际转换曲线1在有效量程区间内的左右端点对应的斜率。
在具体实施中,选择实际转换曲线1在有效量程区间内的左右端点计算出对应的斜率K值。如图1所示,当有效量程区间设置为(X0,X2)时,在实际转换曲线1上选取(X0,Y0)和(X2,Y2)计算斜率K,K=(Y2-Y0)/(X2-X0)。
在选择目标第三点时,可以根据实际情况和第一面积S1的变化规律较快找到第一面积S1的最小值,作为一种优选地实施例,目标第三点位于有效量程区间的中点。
需要说明的是,第三点是在实际转换曲线1上任意选取的,如果依次求出Xa=1、Xa=2、Xa=3……Xa=2 n情况下离散后的实际转换曲线1上的第三点与斜率K构成的曲线和实际转换曲线1之间的面积,理论上可行但实际上需要耗费大量的精力,因此,在具体实施中,目标第三点对应的 数字量一般直接从有效量程区间的中点附近选取,这样能够快速找到第一面积S1最小时对应的目标第三点。
本申请实施例所提供的ADC数模转换误差的校正方法,在取值区间内设置有效量程区间,则只需要对有效量程区间内的AD转换曲线进行校正,由此得到的校正转换曲线,相对于对ADC全量程范围进行校正得到的校正转换曲线而言,能够更接近实际转换曲线,从而提高了有效量程区间内ADC的准确度。
在实际应用中,如果需要校正一个较宽的有效量程区间或整个ADC量程范围,则只确定一条校正转换曲线3可能并不能达到很好的校正效果,因此,在上述实施例的基础上,作为一种优选地实施例,在取值区间内设置有效量程区间之后,还包括:
将有效量程区间划分为多个有效量程子区间。
S11具体包括:分别计算实际转换曲线1在各有效量程子区间对应的斜率。
图3为本申请实施例提供的另一种AD转换曲线的坐标图,如图3所示,有效量程区间为整个ADC量程范围,以(X1,0)为分界点将有效量程区间划分为两个有效量程子区间,然后在每个有效量程子区间内使用如上述实施例中所述的方法确定各有效量程子区间对应的校正转换曲线3,具体过程此处不再赘述。
通过上述方法,得到两条校正转换曲线3,组合成为分段函数,得到的方程组如下:
Figure PCTCN2021114975-appb-000005
其中,Y C(x)为第三点与斜率K构成曲线的曲线方程,K ab为a点和b点确定的斜率,K bc为b点和c点确定的斜率,b ab为第一个有效量程子区间对应的校正转换曲线3的曲线方程的常数项,b bc为第二个有效量程子区间对应的校正转换曲线3的曲线方程的常数项。
需要说明的是,本申请对于分界点的选取位置不作限定,根据实际情 况选择最合适的点划分有效量程子区间即可。此外,分别计算实际转换曲线1在各有效量程子区间对应的斜率时,在各有效量程子区间内选取的一组点为实际转换曲线1上的任意两个点,即各有效量程子区间对应的两个点与其它有效量程子区间对应的两个点的坐标可以相同,也可以不同,在这里均不作限定。在图3中,第一个有效量程子区间选取的点为a点和b点,第二个有效量程子区间选取的点为b点和c点,两个有效量程子区间中选取的b点相同,在其它实施例中,也可以选取不同的点。
可以理解的是,使用多条校正转换曲线对ADC进行校正,虽然能更好的提升准确度,但也使算法变得复杂,因此建议根据实际使用场景和准确度的要求,选取最佳方程组,达到既能提升ADC的准确度的目的,也能实现处理过程的最简化。
本申请实施例所提供的ADC数模转换误差的校正方法,将有效量程区间划分为多个有效量程子区间,然后通过上述方法确定两条或多条校正转换曲线,组合成为分段函数,由此对ADC在较宽的有效量程区间或整个ADC量程范围内的准确度有明显的校正效果。
图4为本申请实施例提供的另一种AD转换曲线的坐标图。如图4所示,在获取ADC对应的理论转换曲线2和实际转换曲线1之后,若实际转换曲线1和理论转换曲线2有多个交叉点,则还包括:
根据交叉点将实际转换曲线1划分为多段曲线,其中,每段曲线对应一个子区间;
斜率具体为多段曲线在各自对应的子区间内的一组点所确定的斜率。
在具体实施中,如图4所示,实际转换曲线1被交叉点(Xi,Yi)划分为第一曲线101和第二曲线102,第一曲线101对应的子区间为(0,Xi),第二曲线102对应的子区间为(Xi,4096),分别在各子区间内按上述实施例中的方法计算各段曲线对应的校正转换曲线3。
本申请实施例所提供的ADC数模转换误差的校正方法,根据交叉点将实际转换曲线划分为多段曲线,然后分别对应每段曲线确定各自的校正转换曲线,由此提升了实际转换曲线和理论转换曲线有多个交叉点时的 ADC的准确度。
在上述实施例的基础上,作为一种优选地实施例,得到校正转换曲线3之后,还包括:
存储校正转换曲线3与ADC之间的对应关系。
在具体实施中,由于在相同应用场景下,相关技术人员针对同一型号的ADC应用的有效量程区间一般是不变的,因此在得到校正转换曲线之后将校正转换曲线与ADC之间的对应关系存储至存储设备中,以便相关技术人员后续不需要重复校正即可直接使用。
在上述实施例中,对于ADC数模转换误差的校正方法进行了详细描述,本申请还提供ADC数模转换误差的校正装置对应的实施例。需要说明的是,本申请从两个角度对装置部分的实施例进行描述,一种是基于功能模块的角度,另一种是基于硬件的角度。
图5为本申请实施例提供的一种ADC数模转换误差的校正装置的结构示意图。如图5所示,基于功能模块的角度,该装置包括:
获取模块10,用于获取ADC对应的理论转换曲线2和实际转换曲线1;
计算模块11,用于计算实际转换曲线1上的至少一组点对应的斜率,其中,一组点为实际转换曲线1上的任意两个点;
确定模块12,用于在取值区间内,若第一面积S1小于第二面积S2,则将实际转换曲线1上的第三点与斜率构成的曲线作为校正转换曲线3以进行信号的转换;
其中,第一面积S1为实际转换曲线上1的第三点与斜率构成的曲线和实际转换曲线1之间的面积,第二面积S2为理论转换曲线2和实际转换曲线1之间的面积。
作为优选地实施方式,该装置还包括:
设置模块,用于在取值区间内设置有效量程区间;
第一划分模块,用于将有效量程区间划分为多个有效量程子区间;
第二划分模块,用于根据交叉点将实际转换曲线划分为多段曲线,其中,每段所述曲线对应一个子区间;
选取模块,用于在确定出第一面积小于第二面积之后,从满足第一面积小于第二面积的多个第三点中选取目标第三点,将目标第三点与斜率构成的曲线作为最终校正转换曲线;
其中,最终校正转换曲线和实际转换曲线之间的面积最小。
由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。
本申请所提供的ADC数模转换误差的校正装置,首先获取到ADC对应的理论转换曲线和实际转换曲线,然后计算所述实际转换曲线上的至少一组点对应的斜率,在取值区间内,若实际转换曲线上的第三点与斜率构成的曲线和实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,则将第三点与斜率构成的曲线作为校正转换曲线。应用以上技术方案,由于校正后的曲线与实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,将校正转换曲线尽可能的接近实际转换曲线,减小了现有技术中模拟信号转化为数字信号时的非线性误差,提升了ADC整体的准确度。此外,由于该技术方案无需额外添加硬件且不需要提高ADC的位数和性能便可达到缩小整体的误差的目的,因此节约了硬件成本。
图6为本申请另一实施例提供的ADC数模转换误差的校正装置的结构图,如图6所示,基于硬件结构的角度,该装置包括:存储器20,用于存储计算机程序;
处理器21,用于执行计算机程序时实现如上述实施例中ADC数模转换误差的校正方法的步骤。
本实施例提供的ADC数模转换误差的校正装置可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。
其中,存储器20至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、 磁性存储器、磁盘、光盘等。存储器20在一些实施例中可以是ADC数模转换误差的校正装置的内部存储单元。
处理器21在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器20中存储的程序代码或处理数据,例如执行ADC数模转换误差的校正方法对应的程序等。
在一些实施例中,还可以包含有总线22可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
本领域技术人员可以理解,图6中示出的结构并不构成对ADC数模转换误差的校正装置的限定,可以包括比图示更多或更少的组件。
本申请实施例提供的ADC数模转换误差的校正装置,包括存储器和处理器,处理器在执行存储器存储的程序时,能够实现如下方法:首先获取到ADC对应的理论转换曲线和实际转换曲线,然后计算所述实际转换曲线上的至少一组点对应的斜率,在取值区间内,若实际转换曲线上的第三点与斜率构成的曲线和实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,则将第三点与斜率构成的曲线作为校正转换曲线。应用以上技术方案,由于校正后的曲线与实际转换曲线之间的面积小于理论转换曲线和实际转换曲线之间的面积,将校正转换曲线尽可能的接近实际转换曲线,减小了现有技术中模拟信号转化为数字信号时的非线性误差,提升了ADC整体的准确度。此外,由于该技术方案无需额外添加硬件且不需要提高ADC的位数和性能便可达到缩小整体的误差的目的,因此节约了硬件成本。
最后,本申请还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。
可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上对本申请所提供的一种ADC数模转换误差的校正方法、装置及介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。

Claims (10)

  1. 一种ADC数模转换误差的校正方法,其特征在于,包括:
    获取ADC对应的理论转换曲线和实际转换曲线;
    计算所述实际转换曲线上的至少一组点对应的斜率,其中,所述一组点为所述实际转换曲线上的任意两个点;
    在取值区间内,若第一面积小于第二面积,则将所述实际转换曲线上的第三点与所述斜率构成的曲线作为校正转换曲线以进行信号的转换;
    其中,所述第一面积为所述实际转换曲线上的第三点与所述斜率构成的曲线和所述实际转换曲线之间的面积,所述第二面积为所述理论转换曲线和所述实际转换曲线之间的面积。
  2. 如权利要求1所述的ADC数模转换误差的校正方法,其特征在于,还包括:
    在所述取值区间内设置有效量程区间;
    所述计算所述实际转换曲线上的至少一组点对应的斜率具体包括:计算所述实际转换曲线在所述有效量程区间内的左右端点对应的斜率。
  3. 如权利要求2所述的ADC数模转换误差的校正方法,其特征在于,所述目标第三点对应的数字量位于所述有效量程区间的中点。
  4. 如权利要求2所述的ADC数模转换误差的校正方法,其特征在于,所述在所述取值区间内设置有效量程区间之后,还包括:
    将所述有效量程区间划分为多个有效量程子区间;
    所述计算所述实际转换曲线上的至少一组点对应的斜率具体包括:分别计算所述实际转换曲线在各所述有效量程子区间对应的斜率。
  5. 如权利要求1所述的ADC数模转换误差的校正方法,其特征在于,在所述获取ADC对应的理论转换曲线和实际转换曲线之后,若所述实际转换曲线和所述理论转换曲线有多个交叉点,则还包括:
    根据交叉点将所述实际转换曲线划分为多段曲线,其中,每段所述曲线对应一个子区间;
    所述斜率具体为多段所述曲线在各自对应的所述子区间内的一组点所确定的斜率。
  6. 如权利要求1至5任一项所述的ADC数模转换误差的校正方法,其特征在于,在确定出所述第一面积小于所述第二面积之后,还包括:
    从满足所述第一面积小于所述第二面积的多个所述第三点中选取目标第三点,将所述目标第三点与所述斜率构成的曲线作为最终校正转换曲线;
    其中,所述最终校正转换曲线和所述实际转换曲线之间的面积最小。
  7. 一种ADC数模转换误差的校正装置,其特征在于,包括:
    获取模块,用于获取ADC对应的理论转换曲线和实际转换曲线;
    计算模块,用于计算所述实际转换曲线上的至少一组点对应的斜率,其中,所述一组点为所述实际转换曲线上的任意两个点;
    确定模块,用于在取值区间内,若第一面积小于第二面积,则将所述实际转换曲线上的第三点与所述斜率构成的曲线作为校正转换曲线以进行信号的转换;
    其中,所述第一面积为所述实际转换曲线上的第三点与所述斜率构成的曲线和所述实际转换曲线之间的面积,所述第二面积为所述理论转换曲线和所述实际转换曲线之间的面积。
  8. 如权利要求7所述的ADC数模转换误差的校正装置,其特征在于,还包括:
    选取模块,用于在确定出所述第一面积小于所述第二面积之后,从满足所述第一面积小于所述第二面积的多个所述第三点中选取目标第三点,将所述目标第三点与斜率构成的曲线作为最终校正转换曲线;
    其中,所述最终校正转换曲线和所述实际转换曲线之间的面积最小。
  9. 一种ADC数模转换误差的校正装置,其特征在于,包括存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至6任一项所述的ADC数模转换误差的校正方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述的ADC数模转换误差的校正方法的步骤。
PCT/CN2021/114975 2020-09-03 2021-08-27 一种adc数模转换误差的校正方法、装置及介质 WO2022048499A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010916080.0A CN112165328B (zh) 2020-09-03 2020-09-03 一种adc数模转换误差的校正方法、装置及介质
CN202010916080.0 2020-09-03

Publications (1)

Publication Number Publication Date
WO2022048499A1 true WO2022048499A1 (zh) 2022-03-10

Family

ID=73857610

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114975 WO2022048499A1 (zh) 2020-09-03 2021-08-27 一种adc数模转换误差的校正方法、装置及介质

Country Status (2)

Country Link
CN (1) CN112165328B (zh)
WO (1) WO2022048499A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314045A (zh) * 2022-10-08 2022-11-08 深圳市好盈科技有限公司 指拨输出区间的自适应校准方法、系统、设备及介质
CN117076938A (zh) * 2023-10-17 2023-11-17 四川大学华西医院 最大样本数量确定方法、装置及设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165328B (zh) * 2020-09-03 2022-05-13 三诺生物传感股份有限公司 一种adc数模转换误差的校正方法、装置及介质
CN117278121B (zh) * 2023-11-20 2024-04-16 江苏信而泰智能装备有限公司 光功率分段拟合上报偏差评估和校验点选择方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080186214A1 (en) * 2007-02-06 2008-08-07 Texas Instruments Incorporated Correcting for errors that cause generated digital codes to deviate from expected values in an adc
CN104767524A (zh) * 2015-04-17 2015-07-08 上海华虹宏力半导体制造有限公司 Adc自适应滤波数字校准方法
CN107941417A (zh) * 2017-11-10 2018-04-20 苏州华兴源创电子科技有限公司 一种压力传感器的输出校准装置及方法
CN112165328A (zh) * 2020-09-03 2021-01-01 三诺生物传感股份有限公司 一种adc数模转换误差的校正方法、装置及介质

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6963300B1 (en) * 2004-02-04 2005-11-08 National Semiconductor Corporation Pipeline analog-to-digital converter
US7671768B2 (en) * 2004-04-30 2010-03-02 Interuniversitair Microelektronica Centrum (Imec) Digital-to-analogue converter system with increased performance
EP2197117B1 (de) * 2008-12-11 2013-07-31 Siemens Aktiengesellschaft Schaltungseinheit zum Erzeugen einer Ausgangsspannung in Abhängigkeit von einem digitalen Datenwert und Verfahren zum Kalibrieren der Schaltungseinheit
US8031092B1 (en) * 2009-01-16 2011-10-04 President And Fellows Of Harvard College Dual-mode based digital background calibration of pipelined ADCs for gain variations and device mismatches
CN104678896B (zh) * 2015-02-11 2018-06-08 北京配天技术有限公司 数模转换器的校正装置、方法以及数控系统
CN106941354B (zh) * 2017-04-17 2020-10-02 北京机械设备研究所 一种基于数学拟合的硬件电路校正方法
CN107302359B (zh) * 2017-06-21 2020-10-16 中国电子科技集团公司第二十四研究所 高精度逐次逼近结构adc的变权重子dac校正方法
CN207423441U (zh) * 2017-11-10 2018-05-29 苏州华兴源创电子科技有限公司 一种压力传感器的输出校准装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080186214A1 (en) * 2007-02-06 2008-08-07 Texas Instruments Incorporated Correcting for errors that cause generated digital codes to deviate from expected values in an adc
CN104767524A (zh) * 2015-04-17 2015-07-08 上海华虹宏力半导体制造有限公司 Adc自适应滤波数字校准方法
CN107941417A (zh) * 2017-11-10 2018-04-20 苏州华兴源创电子科技有限公司 一种压力传感器的输出校准装置及方法
CN112165328A (zh) * 2020-09-03 2021-01-01 三诺生物传感股份有限公司 一种adc数模转换误差的校正方法、装置及介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314045A (zh) * 2022-10-08 2022-11-08 深圳市好盈科技有限公司 指拨输出区间的自适应校准方法、系统、设备及介质
CN117076938A (zh) * 2023-10-17 2023-11-17 四川大学华西医院 最大样本数量确定方法、装置及设备
CN117076938B (zh) * 2023-10-17 2024-01-26 四川大学华西医院 最大样本数量确定方法、装置及设备

Also Published As

Publication number Publication date
CN112165328A (zh) 2021-01-01
CN112165328B (zh) 2022-05-13

Similar Documents

Publication Publication Date Title
WO2022048499A1 (zh) 一种adc数模转换误差的校正方法、装置及介质
WO2021036905A1 (zh) 数据处理方法、装置、计算机设备和存储介质
WO2021036904A1 (zh) 数据处理方法、装置、计算机设备和存储介质
CN103051339B (zh) 一种ad采样值校正方法及系统
CN112085183A (zh) 一种神经网络运算方法及装置以及相关产品
WO2023061309A1 (zh) 一种运算放大电路失调电压的校准方法、装置及系统
CN111145820B (zh) 一种数据读取方法及装置、存储介质和设备
WO2024087589A1 (zh) 磁性编码器的自校准方法、电机及校准角度检测值的方法
WO2023040389A1 (zh) 转数方法、存储介质、装置及板卡
CN112085176B (zh) 数据处理方法、装置、计算机设备和存储介质
CN105450224A (zh) 直接数字频率合成方法和直接数字频率合成器
CN108228136A (zh) 基于优化查找表法的对数函数计算的方法及装置
US9813074B2 (en) Calibration of interpolating string digital-to-analog converters
CN111210442B (zh) 图纸图像定位与校对方法、装置及电子设备
CN105811978B (zh) 一种用于流水线adc的校准电路设计方法
CN115913227A (zh) 模数转换器非线性修正方法、装置、设备以及存储介质
US20220214974A1 (en) Method and apparatus for parsing contiguous system addresses, and electronic device
CN116346128A (zh) 模数转换器的校准方法、系统、电子设备和介质
CN2601395Y (zh) 数字化称重模块
CN117221747B (zh) 一种基于sopc的单周期坏点补偿与非均匀校正方法
CN104753530A (zh) Dds中相位修正及非均匀相幅转换方法及装置
CN109687870A (zh) 电荷重分配型saradc电容失配校正方法及系统
Santrs et al. Spiral site percolation on the square and triangular lattices
CN115453397B (zh) 电池的电流监测方法、装置、控制器、电路
CN115775279B (zh) 点胶定位方法、装置及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21863564

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21863564

Country of ref document: EP

Kind code of ref document: A1