Voltage calibration method and device of analog-to-digital converter, electronic equipment and storage medium

By obtaining the reference voltage in the analog-to-digital converter and calibrating the output voltage using a preset calibration algorithm, the digital signal inaccuracy caused by the change in the reference voltage is solved, and the accuracy of the analog-to-digital conversion is improved.

CN120185609APending Publication Date: 2025-06-20ZHONGKE HAOXIN (ZHUHAI) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510278394.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-10
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

During the analog-to-digital conversion process, changes in the reference voltage will cause inaccurate digital signals converted into by the analog signal. How to improve the accuracy of the analog-to-digital conversion is an urgent problem.

Method used

By obtaining the reference voltage of the analog-to-digital converter, the first output voltage corresponding to the reference voltage is determined. If the first output voltage does not meet the preset conditions, it is calibrated using a preset calibration algorithm to obtain the calibrated second output voltage. The preset calibration algorithm is determined based on the calibration source voltage, the actual sampling value of the calibration source, and the reference voltage.

Benefits of technology

By calibrating the output voltage in real time, it meets preset requirements, improving the conversion accuracy of the analog-to-digital converter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120185609A_ABST
    Figure CN120185609A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a voltage calibration method and device for an analog-to-digital converter, electronic equipment and a storage medium. The method comprises the following steps: acquiring a reference voltage of the analog-to-digital converter; determining a first output voltage corresponding to the reference voltage according to the reference voltage of the analog-to-digital converter; under the condition that the first output voltage does not meet the preset condition, a preset calibration algorithm is adopted to calibrate the first output voltage to obtain a calibrated second output voltage, and the preset calibration algorithm is determined according to the calibration source voltage, the calibration source actual sampling value and the reference voltage; according to the embodiment of the invention, the preset calibration algorithm is determined according to the calibration source voltage, the calibration source actual sampling value and the reference voltage, and the output voltage is calibrated by adopting the preset calibration algorithm under the condition that the output voltage of the analog-to-digital converter is changed, so that the calibrated voltage meets the preset requirement, and therefore, the calibration efficiency is improved. And the conversion accuracy of the analog-to-digital converter is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technologies, and in particular, to a voltage calibration method, apparatus, electronic device, and storage medium for an analog-to-digital converter. Background Art

[0002] An analog signal is a signal with an analog signal level having a continuous amplitude change (range), but the processor of an electronic device can only process digital data. Therefore, an intermediate device is required to convert the analog signal into a binary form of 1 and 0 for digital processing. This intermediate device is called an analog-to-digital converter (ADC). There are various ADC structures, including pipelined, flash, Sigma-Delta (∑-Δ), successive approximation, etc.

[0003] During the operation of the ADC, sampling, quantization, and encoding are included. During the sampling process, a reference voltage needs to be provided. In this way, based on this reference voltage, the analog signal is converted into a digital signal. If the reference voltage changes, the digital signal converted from the analog signal will be inaccurate. Therefore, how to improve the accuracy of analog-to-digital conversion is an urgent problem to be solved currently. Summary of the Invention

[0004] Some embodiments of the present application aim to provide a voltage calibration method, apparatus, electronic device, and storage medium for an analog-to-digital converter. Through the technical solutions of the embodiments of the present application, by obtaining the reference voltage of the analog-to-digital converter; determining a first output voltage corresponding to the reference voltage according to the reference voltage of the analog-to-digital converter; in the case where the first output voltage does not meet a preset condition, using a preset calibration algorithm to calibrate the first output voltage to obtain a calibrated second output voltage, and the preset calibration algorithm is determined according to a calibration source voltage, a calibration source actual sampling value, and the reference voltage. The embodiments of the present application determine a preset calibration algorithm according to a calibration source voltage, a calibration source actual sampling value, and the reference voltage. In the case where the output voltage of the analog-to-digital converter changes, use the preset calibration algorithm to calibrate the output voltage so that the calibrated voltage meets the preset requirements. In this way, the conversion accuracy of the analog-to-digital converter is improved.

[0005] In a first aspect, some embodiments of the present application provide a voltage calibration method for an analog-to-digital converter, including: Obtaining the reference voltage of the analog-to-digital converter; Determining a first output voltage corresponding to the reference voltage according to the reference voltage of the analog-to-digital converter; In the case that the first output voltage does not meet the preset conditions, a preset calibration algorithm is used to calibrate the first output voltage to obtain a calibrated second output voltage, and the preset calibration algorithm is determined according to the calibration source voltage, the actual sampled value of the calibration source, and the reference voltage.

[0006] Some embodiments of the present application determine a preset calibration algorithm according to the calibration source voltage, the actual sampled value of the calibration source, and the reference voltage. In the case that the output voltage of the analog-to-digital converter changes, the preset calibration algorithm is used to calibrate the output voltage, so that the calibrated voltage meets the preset requirements. In this way, the conversion accuracy of the analog-to-digital converter is improved.

[0007] Optionally, the preset calibration algorithm specifically includes: Obtain the sampling accuracy of the analog-to-digital converter; Determine a first calculation result according to the sampling accuracy and the calibration source voltage; Determine a calibration parameter according to the first calculation result, the actual sampled value of the calibration source, and the reference voltage.

[0008] Some embodiments of the present application add a calibration calculation circuit and update the calibration value in real time according to the sampling conversion result of the sampling calibration voltage, so as to be able to calibrate the sampling result more accurately.

[0009] Optionally, the step of using the preset calibration algorithm to calibrate the first output voltage to obtain a calibrated second output voltage includes: Determine a target calibration parameter corresponding to the reference voltage according to the preset calibration algorithm; Calculate the product of the target calibration parameter and the first output voltage; Determine the product result as the second output voltage.

[0010] Some embodiments of the present application can perform real-time calibration using only one calibration voltage. This calibration voltage is provided externally to the chip or by the internal power supply module of the chip according to the design. When the application environment is determined, the calibration voltage is stable and will not fluctuate.

[0011] Optionally, before obtaining the reference voltage of the analog-to-digital converter, the method further includes: Set configuration information, where the configuration information at least includes whether to calibrate. Some embodiments of the present application can be configured flexibly according to application requirements to meet the customer's selection of speed priority and performance priority. Optionally, the method further includes: When the configuration information is not to calibrate, output the first output voltage. Second aspect, some embodiments of the present application provide a voltage calibration device for an analog-to-digital converter, including: An acquisition module, configured to acquire a reference voltage of the analog-to-digital converter; A determination module, configured to determine a first output voltage corresponding to the reference voltage according to the reference voltage of the analog-to-digital converter; A calibration module, configured to, when the first output voltage does not meet a preset condition, calibrate the first output voltage by using a preset calibration algorithm to obtain a calibrated second output voltage, where the preset calibration algorithm is determined according to a calibration source voltage, an actual sampling value of the calibration source, and the reference voltage.

[0012] In the embodiments of the present application, by determining a preset calibration algorithm according to a calibration source voltage, an actual sampling value of the calibration source, and the reference voltage, when the output voltage of the analog-to-digital converter changes, the preset calibration algorithm is used to calibrate the output voltage, so that the calibrated voltage meets the preset requirements. In this way, the conversion accuracy of the analog-to-digital converter is improved.

[0013] Optionally, the preset calibration algorithm specifically includes: Acquiring the sampling accuracy of the analog-to-digital converter; Determining a first calculation result according to the sampling accuracy and the calibration source voltage; Determining a calibration parameter according to the first calculation result, the actual sampling value of the calibration source, and the reference voltage.

[0014] In some embodiments of the present application, by adding a calibration calculation circuit and updating the calibration value in real time according to the sampling conversion result of the sampling calibration voltage, the sampling result can be calibrated more accurately.

[0015] Optionally, the calibration module is configured to: Determine a target calibration parameter corresponding to the reference voltage according to the preset calibration algorithm; Calculate the product of the target calibration parameter and the first output voltage; Determine the product result as the second output voltage.

[0016] In some embodiments of the present application, real-time calibration can be performed using a calibration voltage. The calibration voltage is provided externally by the chip or by the internal power supply module of the chip according to the design. When the application environment is determined, the calibration voltage is stable and does not fluctuate.

[0017] Optionally, the calibration module is further configured to: Set configuration information, where the configuration information at least includes whether to calibrate. Some embodiments of the present application are flexibly configured according to application requirements to meet the customer's selection of speed priority and performance priority. Optionally, the calibration module is used for: When the configuration information is not calibrated, output the first output voltage. In a third aspect, some embodiments of the present application provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the voltage calibration method of the analog-to-digital converter as described in any embodiment of the first aspect can be implemented.

[0018] In a fourth aspect, some embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the voltage calibration method of the analog-to-digital converter as described in any embodiment of the first aspect can be implemented.

[0019] In a fifth aspect, some embodiments of the present application provide a computer program product, which includes a computer program. When the computer program is executed by a processor, the voltage calibration method of the analog-to-digital converter as described in any embodiment of the first aspect can be implemented. Description of the Drawings

[0020] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings required to be used in some embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation of the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0021] Figure 1 It is a schematic flowchart of a voltage calibration method for an analog-to-digital converter provided by an embodiment of the present application; Figure 2 It is a schematic flowchart of another voltage calibration method for an analog-to-digital converter provided by an embodiment of the present application; Figure 3 It is a schematic flowchart of yet another voltage calibration method for an analog-to-digital converter provided by an embodiment of the present application; Figure 4 It is a calibration parameter calculation circuit provided by an embodiment of the present application; Figure 5 It is a schematic diagram of calibration results provided by an embodiment of the present application; Figure 6 It is a schematic structural diagram of a voltage calibration device for an analog-to-digital converter provided by an embodiment of the present application; Figure 7Schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0022] Next, the technical solutions in some embodiments of the present application will be described with reference to the accompanying drawings in some embodiments of the present application.

[0023] It should be noted that similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, the terms "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0024] An analog signal is a signal with a continuously varying amplitude (range) of the analog signal level. However, the processor of an electronic device can only process digital data. Therefore, an intermediate device is required to convert the analog signal into a binary form of 1 and 0 for digital processing. This intermediate device is called an analog-to-digital converter (ADC). There are various ADC structures, including pipelined, flash, Sigma-Delta (∑-Δ), successive approximation type, etc.

[0025] During the operation of the ADC, it includes sampling, quantization, and encoding. During the sampling process, a reference voltage needs to be provided. In this way, based on this reference voltage, the analog signal is converted into a digital signal. If the reference voltage changes, the digital signal converted from the analog signal will be inaccurate. Therefore, how to improve the accuracy of analog-to-digital conversion is an urgent problem to be solved at present. In view of this, some embodiments of the present application provide a voltage calibration method for an analog-to-digital converter. The method includes obtaining the reference voltage of the analog-to-digital converter; determining a first output voltage corresponding to the reference voltage according to the reference voltage of the analog-to-digital converter; in the case where the first output voltage does not meet the preset condition, using a preset calibration algorithm to calibrate the first output voltage to obtain a calibrated second output voltage. The preset calibration algorithm is determined according to the calibration source voltage, the actual sampling value of the calibration source, and the reference voltage. By determining the preset calibration algorithm according to the calibration source voltage, the actual sampling value of the calibration source, and the reference voltage, and using the preset calibration algorithm to calibrate the output voltage in the case where the output voltage of the analog-to-digital converter changes, the calibrated voltage meets the preset requirements. In this way, the conversion accuracy of the analog-to-digital converter is improved.

[0026] As Figure 1 shown, an embodiment of the present application provides a voltage calibration method for an analog-to-digital converter. The method includes: S101. Obtain the reference voltage of the analog-to-digital converter; Specifically, the embodiments of the present application are applied to various types of chips. The chip includes an analog-to-digital converter, i.e., an ADC or A / D converter (Analog to Digital Converter). The analog-to-digital converter is a circuit for converting an analog signal into a digital signal. The function of the analog-to-digital converter is to convert an analog signal that is continuous in time and continuous in amplitude into a digital signal that is discrete in time and discrete in amplitude. Therefore, the analog-to-digital converter goes through four processes: sampling, holding, quantization, and encoding. In an actual circuit, some of these processes are combined. For example, sampling and holding, quantization and encoding are often implemented simultaneously during the conversion process.

[0027] During the process of converting the analog signal into a digital signal, the processing module in the chip acquires the reference voltage of the analog-to-digital converter.

[0028] S102. Determine a first output voltage corresponding to the reference voltage according to the reference voltage of the analog-to-digital converter; Specifically, according to the reference voltage, through the analog-to-digital converter, after sampling, holding, quantization, and encoding the input analog signal, a digital signal is obtained, and the first output voltage corresponding to the reference voltage is determined. The first output voltage is the digital signal.

[0029] S103. In the case where the first output voltage does not meet the preset condition, use a preset calibration algorithm to calibrate the first output voltage to obtain a calibrated second output voltage. The preset calibration algorithm is determined according to the calibration source voltage, the actual sampling value of the calibration source, and the reference voltage.

[0030] Specifically, in the embodiments of the present application, the preset calibration algorithm is determined according to the calibration source voltage, the actual sampling value of the calibration source, and the reference voltage. The processing module in the chip judges the first output voltage. If the first output voltage does not meet the preset condition, the preset condition is the preset value. If the first output voltage does not match the preset value, then the first output voltage needs to be calibrated. For example, use the preset calibration algorithm to calibrate the first output voltage to obtain a calibrated second output voltage. That is to say, the inaccurate first output voltage is adjusted to the preset value to improve the conversion accuracy of the analog-to-digital converter.

[0031] Exemplarily, for a reference voltage of 3.3V, the analog-to-digital converter converts the input analog signal into a first output voltage of 9V, and the preset value is 10V, indicating that the analog-to-digital converter is affected by other conditions, resulting in an inaccurate output digital signal. Therefore, it is necessary to calibrate the output first output voltage of 9V. Use the preset calibration algorithm, such as 9V×10 / 9 = 10V, to obtain the second output voltage.

[0032] Some embodiments of the present application determine a preset calibration algorithm according to the calibration source voltage, the actual sampling value of the calibration source, and the reference voltage. In the case where the output voltage of the analog-to-digital converter changes, the preset calibration algorithm is used to calibrate the output voltage so that the calibrated voltage meets the preset requirements. In this way, the conversion accuracy of the analog-to-digital converter is improved.

[0033] Another embodiment of the present application further supplements and explains the voltage calibration method of the analog-to-digital converter provided in the above embodiment.

[0034] As Figure 2 shown, an embodiment of the present application provides a fast calibration implementation method for the reference voltage of an ADC analog-to-digital converter, which at least includes a sampling part and a calibration part, wherein: The sampling part samples and converts the input voltage and sends the conversion result to the calibration part; The calibration part is used to calculate the calibration parameter according to the calibration formula for the conversion result if the current conversion result is a sampling of the calibration voltage. After the calculation is completed, the latest calibration parameter is saved, and the subsequent sampling results are calibrated using this calibration parameter. If the current conversion result is a sampling of the input voltage, the calibration part directly calibrates the conversion result and outputs the calibrated result.

[0035] The ADC operation process is as Figure 3 shown, including: 1. The analog-to-digital converter samples the input analog signal; 2. Determine whether to update the calibration parameter, and whether to update can be set in advance; 3. If it is necessary to update the calibration parameter, perform calibration source sampling; if not, directly perform sampling source sampling; 4. Calculate and update the calibration parameter; 5. Perform sampling source sampling; 6. Determine whether to perform calibration; if so, calibrate the sampling result, if not, output the sampling result.

[0036] Optionally, the preset calibration algorithm specifically includes: Obtain the sampling accuracy of the analog-to-digital converter; Determine the first calculation result according to the sampling accuracy and the calibration source voltage; Determine the calibration parameter according to the first calculation result, the actual sampling value of the calibration source, and the reference voltage.

[0037] Some embodiments of the present application can update the calibration value in real time according to the sampling conversion result of the sampling calibration voltage by adding a calibration calculation circuit, and can calibrate the sampling result more accurately.

[0038] Specifically, the preset calibration algorithm is as follows: 1) Calibration algorithm: Let the ADC have an n-bit sampling accuracy, the theoretical reference voltage of the ADC be VREF (unit: V), the actual reference voltage be VREF' (unit: V), the calibration source voltage be AB (unit: V), the actual sampled value of the calibration source be ab (unit: LSB), the sampling source voltage be XX (unit: V), the actual sampled value of the sampling source be xx, and the sampled value of the sampling source after calibration be xx'.

[0039] Among them, VREF' (actual reference voltage) and XX (sampling source voltage) are unknown and only used as intermediate data during the derivation process. VREF (theoretical reference voltage) and AB (calibration source voltage) are application parameters that need to be determined during the design.

[0040] The actual sampling formula for the calibration source is: The derived formula is

[0041] The actual sampling formula for the sampling source is: The derived formula is

[0042] The calibrated value of the sampling source sampling is: The derived formula is

[0043] The calibration parameter formula is: .

[0044] Optionally, a preset calibration algorithm is used to calibrate the first output voltage to obtain the calibrated second output voltage, including: Determine the target calibration parameter corresponding to the reference voltage according to the preset calibration algorithm; Calculate the product of the target calibration parameter and the first output voltage; Determine the product result as the second output voltage.

[0045] In the embodiments of the present application: 1. Determine the theoretical reference voltage VREF and the calibration source voltage AB during the design; 2. Sample the calibration voltage, and the actual sampled value is ab; 3. Calculate the calibration parameter as ; as Figure 4 shown.

[0046] 4. Sample the actual sampled voltage, and the sampling result is the product of the first output voltage and the target calibration parameter to obtain the calibration result, as Figure 5 shown.

[0047] Some embodiments of the present application can perform real-time calibration using a calibration voltage, which is provided externally to the chip or by the internal power supply module of the chip according to the design. When the application environment is determined, the calibration voltage is stable and does not fluctuate.

[0048] Optionally, before obtaining the reference voltage of the analog-to-digital converter, the method further includes: Setting configuration information, which at least includes whether to calibrate.

[0049] In the embodiments of the present application, users can set the configuration information as needed. The configuration information includes whether to calibrate. If the conversion speed is prioritized, it can be configured not to calibrate. In this case, the sampling result will deviate due to fluctuations in the reference voltage. If performance is prioritized, calibration is performed, which can sample and calibrate the input voltage more accurately.

[0050] Some embodiments of the present application are flexibly configured according to application requirements, meeting the customer's selection of speed priority and performance priority. The calibration uses hardware design and is faster. Optionally, the method further includes: When the configuration information is not to calibrate, output the first output voltage.

[0051] In the embodiments of the present application, in order to perform analog-to-digital conversion as soon as possible, calibration is not required, and the first output voltage is directly output to improve processing efficiency. The embodiments of the present application add a function of whether to perform real-time calibration. According to the configuration, it is determined whether to perform real-time calibration, and according to the configuration information, it is determined whether to calibrate; if calibration is required, first sample the reference voltage, and calculate the calibration parameter through the formula Calculate the calibration parameter; sample the input voltage (analog signal) to obtain a sampling result, and multiply the sampling result by the calculated calibration parameter to obtain a calibration result, that is, the second output result.

[0052] It should be noted that each feasible implementation mode in this embodiment can be implemented independently, or can be combined in any combination manner without conflict. The present application does not make a limitation.

[0053] Another embodiment of the present application provides a voltage calibration device for an analog-to-digital converter, which is used to execute the voltage calibration method for the analog-to-digital converter provided in the above embodiment.

[0054] As Figure 6 shown, it is a schematic structural diagram of the voltage calibration device for the analog-to-digital converter provided in the embodiments of the present application. The voltage calibration device for the analog-to-digital converter includes an acquisition module 601, a determination module 602, and a calibration module 603, where: The acquisition module 601 is used to acquire the reference voltage of the analog-to-digital converter; The determination module 602 is configured to determine a first output voltage corresponding to a reference voltage according to the reference voltage of the analog-to-digital converter; The calibration module 603 is configured to, when the first output voltage does not meet a preset condition, calibrate the first output voltage by using a preset calibration algorithm to obtain a calibrated second output voltage, where the preset calibration algorithm is determined according to a calibration source voltage, an actual sampled value of the calibration source, and the reference voltage.

[0055] In the embodiments of the present application, by determining a preset calibration algorithm according to a calibration source voltage, an actual sampled value of the calibration source, and a reference voltage, when the output voltage of the analog-to-digital converter changes, the preset calibration algorithm is used to calibrate the output voltage, so that the calibrated voltage meets the preset requirements. In this way, the conversion accuracy of the analog-to-digital converter is improved.

[0056] Regarding the device in this embodiment, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0057] Another embodiment of the present application further supplements the voltage calibration device of the analog-to-digital converter provided in the above embodiment.

[0058] Optionally, the preset calibration algorithm specifically includes: Obtaining the sampling accuracy of the analog-to-digital converter; Determining a first calculation result according to the sampling accuracy and the calibration source voltage; Determining a calibration parameter according to the first calculation result, the actual sampled value of the calibration source, and the reference voltage.

[0059] In some embodiments of the present application, by adding a calibration calculation circuit and updating the calibration value in real time according to the sampling conversion result of the sampling calibration voltage, the sampling result can be calibrated more accurately.

[0060] Optionally, the calibration module is configured to: Determining a target calibration parameter corresponding to the reference voltage according to the preset calibration algorithm; Calculating the product of the target calibration parameter and the first output voltage; Determining the product result as the second output voltage.

[0061] In some embodiments of the present application, real-time calibration can be performed using only one calibration voltage. This calibration voltage is provided externally to the chip or by the internal power supply module of the chip according to the design. When the application environment is determined, the calibration voltage is stable and does not fluctuate.

[0062] Optionally, the calibration module is further configured to: Setting configuration information, where the configuration information at least includes whether to calibrate. Some embodiments of the present application can be flexibly configured according to application requirements to meet the customer's selection of speed priority and performance priority. Optionally, a calibration module is configured to: When the configuration information is not to calibrate, output the first output voltage.

[0063] Regarding the device in this embodiment, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0064] It should be noted that each implementable manner in this embodiment can be implemented alone or in any combination manner without conflict. The present application does not make any limitations.

[0065] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it can implement the operations corresponding to any of the methods in the voltage calibration method of the analog-to-digital converter provided in the above embodiments.

[0066] The embodiments of the present application also provide a computer program product. The computer program product includes a computer program. When the computer program is executed by a processor, it can implement the operations corresponding to any of the methods in the voltage calibration method of the analog-to-digital converter provided in the above embodiments.

[0067] As Figure 7 shown, some embodiments of the present application provide an electronic device 700, which includes: a memory 710, a processor 720, and a computer program stored on the memory 710 and executable on the processor 720. When the processor 720 reads the program from the memory 710 through a bus 730 and executes the program, it can implement the methods of any of the embodiments included in the above voltage calibration method of the analog-to-digital converter.

[0068] The processor 720 can process digital signals and can include various computing architectures. For example, a complex instruction set computer architecture, a reduced instruction set computer architecture, or an architecture that implements a combination of multiple instruction sets. In some examples, the processor 720 can be a microprocessor.

[0069] The memory 710 can be used to store instructions executed by the processor 720 or data related to the execution of the instructions. These instructions and / or data can include code for implementing some or all of the functions of one or more modules described in the embodiments of the present application. The processor 720 of the present disclosure embodiment can be used to execute the instructions in the memory 710 to implement the method shown above. The memory 710 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memories well known to those skilled in the art.

[0070] The above are only embodiments of the present application and are not used to limit the protection scope of the present application. For those skilled in the art, various modifications and changes can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application. It should be noted that similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0071] As described above, the above are only the specific implementation manners of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, and all of them should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

[0072] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.

Claims

1. A voltage calibration method for an analog-to-digital converter, characterized in that: The method comprises: Get the reference voltage of the analog-to-digital converter; Determining, according to a reference voltage of the analog-to-digital converter, a first output voltage corresponding to the reference voltage; When the first output voltage does not meet the preset conditions, a preset calibration algorithm is used to calibrate the first output voltage to obtain a calibrated second output voltage, and the preset calibration algorithm is determined based on the calibration source voltage, the actual sampling value of the calibration source and the reference voltage.

2. The voltage calibration method of the analog-to-digital converter according to claim 1, characterized in that: The preset calibration algorithm specifically includes: Get the sampling accuracy of the analog-to-digital converter; Determining a first calculation result according to the sampling accuracy and the calibration source voltage; A calibration parameter is determined according to the first calculation result, the actual sampling value of the calibration source and the reference voltage.

3. The voltage calibration method of the analog-to-digital converter according to claim 2, characterized in that: The method of using a preset calibration algorithm to calibrate the first output voltage to obtain a calibrated second output voltage includes: Determining a target calibration parameter corresponding to the reference voltage according to the preset calibration algorithm; calculating a product of the target calibration parameter and the first output voltage; The multiplication result is determined as the second output voltage.

4. The voltage calibration method of an analog-to-digital converter according to claim 1, characterized in that: Before obtaining the reference voltage of the analog-to-digital converter, the method further includes: Configuration information is set, where the configuration information at least includes whether to calibrate.

5. The voltage calibration method of the analog-to-digital converter according to claim 4, characterized in that: The method further comprises: When the configuration information indicates no calibration, the first output voltage is output.

6. A voltage calibration device for an analog-to-digital converter, characterized in that: The device comprises: An acquisition module, used for acquiring a reference voltage of an analog-to-digital converter; A determination module, configured to determine a first output voltage corresponding to the reference voltage according to the reference voltage of the analog-to-digital converter; A calibration module is used to calibrate the first output voltage using a preset calibration algorithm to obtain a calibrated second output voltage when the first output voltage does not meet a preset condition, wherein the preset calibration algorithm is determined based on a calibration source voltage, an actual sampling value of the calibration source and the reference voltage.

7. The voltage calibration device of the analog-to-digital converter according to claim 6, characterized in that: The preset calibration algorithm specifically includes: Get the sampling accuracy of the analog-to-digital converter; Determining a first calculation result according to the sampling accuracy and the calibration source voltage; A calibration parameter is determined according to the first calculation result, the actual sampling value of the calibration source and the reference voltage.

8. The voltage calibration device for an analog-to-digital converter according to claim 7, characterized in that: The calibration module is used for: Determining a target calibration parameter corresponding to the reference voltage according to the preset calibration algorithm; calculating a product of the target calibration parameter and the first output voltage; The multiplication result is determined as the second output voltage.

9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor can implement the voltage calibration method of the analog-to-digital converter as claimed in any one of claims 1 to 5 when executing the program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the program is executed by a processor, the voltage calibration method for the analog-to-digital converter described in any one of claims 1 to 5 can be implemented.