An analog-to-digital conversion method, circuit, chip, and electronic device

By using adaptive gain technology to perform coarse and fine conversion of the input voltage, the accuracy and adaptability issues of analog-to-digital converters in the AIoT smart Internet of Things sensing layer are solved, achieving a balance between high-precision analog-to-digital conversion and speed.

CN117081593BActive Publication Date: 2026-11-17CHIPSEA TECH SHENZHEN CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311087831.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2026-11-17
Estimated Expiration
2043-08-28

AI Technical Summary

Technical Problem

In existing technologies, analog-to-digital converters (ADCs) have shortcomings in signal measurement accuracy and adaptability, especially in sensors of the AIoT (Artificial Intelligence of Things) smart Internet of Things (AIIoT) sensing layer, where it is difficult to achieve high-precision measurement of extremely small and weak signals.

Method used

Adaptive gain technology is used to determine the target gain multiple through prediction, and coarse and fine conversions are performed on the input voltage. The target digital code value is determined by combining the first and second conversion results.

Benefits of technology

It improves the accuracy and adaptability of analog-to-digital conversion, ensures a high conversion speed, and reduces circuit power consumption and area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117081593B_ABST
    Figure CN117081593B_ABST
Patent Text Reader

Abstract

This application provides an analog-to-digital conversion method, circuit, chip, and electronic device, belonging to the field of electronic technology. The method includes: determining a target gain factor based on an input voltage, wherein the target gain factor is used to amplify or reduce the input voltage to a test voltage that meets a target range; performing a first conversion on the test voltage to obtain a corresponding first conversion result and a remaining voltage after conversion; performing a second conversion on the remaining voltage to obtain a corresponding second conversion result; and determining a target digital code value corresponding to the input voltage based on the first conversion result and the second conversion result. Using this application can improve the accuracy of analog-to-digital conversion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technology, and in particular to an analog-to-digital conversion method, circuit, chip, and electronic device. Background Technology

[0002] In the era of intelligence, intelligent sensing enables the Internet of Things. The first input layer of AIoT (Artificial Intelligence & Internet of Things) is the perception layer: the perception layer is mainly composed of various sensors and sensing gateways. It acquires information through sensors and receives control commands through gateways.

[0003] As the base of the "pyramid," sensors will be the most fundamental and largest component in terms of total demand across the entire chain. Sensors support IoT technology, its applications, and the future ubiquitous network; they perceive information about objects. The key to the perception layer lies in possessing more accurate and comprehensive sensing capabilities, achieving low power consumption, and miniaturization.

[0004] Currently, signal processing in the sensing layer of the Internet of Things (IoT) involves various sensors (pressure sensors, temperature sensors, current sensors, voltage sensors, photoelectric sensors, heart rate sensors, etc.), with the most crucial aspect being the measurement and acquisition of extremely small and weak signals. Improving the accuracy of signal measurement has become a key technical challenge that the AIoT intelligent IoT sensing layer needs to address. Summary of the Invention

[0005] To address the problems of existing technologies, embodiments of this application provide an analog-to-digital conversion method, circuit, chip, and electronic device, which can improve the accuracy of analog-to-digital conversion. The technical solution is as follows:

[0006] According to one aspect of this application, an analog-to-digital conversion method is provided, the method comprising:

[0007] The target gain factor is determined based on the input voltage, and the target gain factor is used to amplify or reduce the input voltage to the voltage to be measured that meets the target range;

[0008] The voltage to be measured is subjected to a first conversion to obtain the corresponding first conversion result and the remaining voltage after conversion;

[0009] The remaining voltage is then subjected to a second conversion to obtain the corresponding second conversion result;

[0010] Based on the first conversion result and the second conversion result, the target digital code value corresponding to the input voltage is determined.

[0011] According to another aspect of this application, an analog-to-digital converter circuit is provided, the circuit comprising:

[0012] A gain determination module is used to determine a target gain factor based on the input voltage. The target gain factor is used to amplify or reduce the input voltage to the voltage to be measured that meets the target range.

[0013] The first conversion module is used to perform a first conversion on the voltage to be measured, and obtain the corresponding first conversion result and the remaining voltage after conversion;

[0014] The second conversion module is used to perform a second conversion on the remaining voltage to obtain a corresponding second conversion result;

[0015] The output module is used to determine the target digital code value corresponding to the input voltage based on the first conversion result and the second conversion result.

[0016] According to another aspect of this application, a chip is provided, including circuitry for implementing the analog-to-digital conversion method described above.

[0017] According to another aspect of this application, an electronic device is provided, including circuitry for implementing the analog-to-digital conversion method described above.

[0018] In this application, the input voltage is predicted to determine the target gain factor. Then, the voltage under test after gain is subjected to a first coarse conversion and a second fine conversion. Based on the results of the first and second conversions, the target digital code value corresponding to the input voltage is determined. This enables adaptive gain for the input voltage, improving the adaptability of the analog-to-digital conversion. Furthermore, the combination of the first and second conversions improves the accuracy of the analog-to-digital conversion while ensuring a high conversion speed. Attached Figure Description

[0019] Further details, features, and advantages of this application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A flowchart of an analog-to-digital conversion method provided according to an exemplary embodiment of this application is shown;

[0021] Figure 2 A schematic diagram of an analog-to-digital converter circuit provided according to an exemplary embodiment of this application is shown;

[0022] Figure 3 A schematic diagram of another analog-to-digital converter circuit provided according to an exemplary embodiment of this application is shown;

[0023] Figure 4 A schematic block diagram of an analog-to-digital conversion circuit provided according to an exemplary embodiment of this application is shown. Detailed Implementation

[0024] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.

[0025] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc., mentioned in this application are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.

[0026] It should be noted that the terms "a" and "a plurality of" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0027] The names of the messages or information exchanged between multiple devices in the embodiments of this application are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0028] This application provides an analog-to-digital conversion method that can be applied in a chip or installed in an electronic device.

[0029] Reference Figure 1 The flowchart shown is for an analog-to-digital conversion method, which may include the following steps 101-104.

[0030] Step 101: Determine the target gain factor based on the input voltage.

[0031] The aforementioned target gain factor can be used to amplify or reduce the input voltage to the voltage to be measured that meets the target range.

[0032] In one possible implementation, whenever an input voltage is received, if the corresponding target gain factor is not determined, a predictive value can be generated for the input voltage, and the absolute value of the input voltage can be estimated based on the result of the prediction. Therefore, based on the absolute value of the input voltage, an appropriate target gain factor can be selected to amplify or reduce the input voltage to within the target range of the analog-to-digital converter (ADC), avoiding exceeding the ADC's range during measurement. Based on this, adaptive gain for the input voltage can be achieved, improving the adaptability of the analog-to-digital conversion.

[0033] Optionally, any analog-to-digital converter (ADC) can be used to predict the input voltage, and the target gain factor can be selected based on the conversion result of the ADC. Accordingly, the above process of determining the target gain factor based on the input voltage can be as follows:

[0034] The input voltage is subjected to a third conversion for a third number of cycles to obtain a third number of third digital code values;

[0035] The third number of third digital code values ​​are weighted and summed to obtain a first cumulative value, which is used to estimate the voltage range of the input voltage;

[0036] Among multiple preset threshold intervals, determine the target threshold interval in which the first cumulative value is located;

[0037] Based on the preset correspondence between the threshold range and the gain factor, the target gain factor corresponding to the target threshold range is determined.

[0038] The third number mentioned above can be an integer greater than 1, and can be pre-configured according to specific circumstances. The third transformation can refer to the modulus-to-digital transformation process in the predicted quantity.

[0039] In one possible implementation, the input voltage can be connected to an analog-to-digital converter (ADC) for prediction, and the ADC can perform multiple (i.e., a third number of) conversions to obtain multiple corresponding third digital code values. Furthermore, these multiple third digital code values ​​can be weighted and summed. The weights can be preset according to the specific ADC, application scenario, etc., and this embodiment does not limit this.

[0040] The first cumulative value after weighted summation can be converted into a corresponding voltage value, or has a corresponding relationship with a corresponding voltage value, and therefore can be used to estimate the voltage range of the input voltage. The gain factors corresponding to different voltage ranges can be pre-designed; for example, an input voltage of ±6V can correspond to a gain factor of 1 / 2, an input voltage of ±3V can correspond to a gain factor of 1, an input voltage of ±1.5V can correspond to a gain factor of 2, and an input voltage of ±0.75V can correspond to a gain factor of 4.

[0041] Different input voltages can correspond to different threshold ranges of the first accumulated value, thus establishing a correspondence between the threshold ranges of the first accumulated value and the gain factor. In application, the target threshold range in which the calculated first accumulated value is located is determined, thereby obtaining the target gain factor corresponding to that target threshold range for subsequent adjustment of the PGA (Programmable Gain Amplifier) ​​setting.

[0042] Optionally, among multiple threshold intervals, the first threshold interval corresponds to the first gain factor, and the second threshold interval corresponds to the second gain factor. If the first threshold interval is greater than the second threshold interval, then the first gain factor is less than the second gain factor. In other words, the correspondence between the threshold intervals and the gain factors allows for the selection of a smaller PGA range when the absolute value of the input voltage is large, preventing the measurement from exceeding the ADC range; and for a smaller absolute value of the input voltage, a larger PGA range can be selected to provide higher accuracy.

[0043] Optionally, the third conversion mentioned above is implemented by a second cyclic analog-to-digital converter (Cyclic ADC). Since the conversion speed of the cyclic ADC is higher than that of the incremental ADC, the signal range can be quickly determined during the prediction process, thereby further improving the efficiency of the analog-to-digital conversion.

[0044] As an example, the conversion result of the second cyclic analog-to-digital converter can be weighted by binary summation to obtain the following first cumulative value:

[0045]

[0046] Where Sum1 represents the first cumulative value, m represents the third number of periods mentioned above, and D i The third digital code value represents each cycle. This represents the binary weight, i∈0,1,…,m-1. If a feedback coefficient exists, it can be multiplied by the corresponding feedback coefficient.

[0047] Step 102: Perform a first conversion on the voltage to be measured to obtain the corresponding first conversion result and the remaining voltage after conversion.

[0048] In one possible implementation, after determining the target gain factor in step 101, the PGA can be configured accordingly to adjust its gain factor to the target gain factor. Thus, the input voltage is input to the PGA, and after appropriate amplification or attenuation, the voltage to be measured is output.

[0049] To achieve high-precision conversion, this embodiment divides the conversion process of the voltage under test into a coarse conversion process and a fine conversion process. The first conversion mentioned above corresponds to the coarse conversion process. After the coarse conversion is completed, the conversion result (i.e., the first conversion result) can be obtained. Furthermore, a residual voltage may exist after the coarse conversion, which can be converted in subsequent processes to improve the conversion accuracy.

[0050] Optional, refer to Figure 2 The schematic diagram of the analog-to-digital conversion circuit shown illustrates that the first conversion can be implemented by an incremental analog-to-digital converter (ADC). The incremental ADC includes a discrete integrator and may have a corresponding digital filter, as well as a comparator, feedback module, etc. This incremental ADC can be a first-order or multi-order incremental ADC; this embodiment does not limit its implementation.

[0051] Accordingly, the processing in step 102 above can be as follows:

[0052] The voltage under test is converted by an incremental analog-to-digital converter for a first number of cycles to obtain a first number of first digital code values.

[0053] A first number of first digital code values ​​are transmitted to a digital filter for processing to determine the corresponding first conversion result;

[0054] After the first conversion is completed for a first number of cycles, the current output voltage of the discrete integrator is used as the remaining voltage after conversion. The first number can be the OSR (Oversampling Ratio) of the incremental analog-to-digital converter, and is an integer greater than 1.

[0055] In one possible implementation, the voltage to be measured is input to an incremental analog-to-digital converter. In the first cycle, the voltage to be measured is connected to a discrete integrator, and then compared with a first reference voltage in a comparator. The corresponding comparison result (i.e., the first digital code value) is output and stored in a digital filter. In the second cycle, the comparison result of the previous cycle is multiplied by a feedback coefficient to obtain a feedback value. The voltage to be measured is then subtracted from the feedback value and input to the discrete integrator. The voltage to be measured is then compared with the first reference voltage in a comparator, and the corresponding comparison result is output and stored in a digital filter. This process is repeated.

[0056] In a digital filter, multiple stored first digital code values ​​can be calculated to obtain a second cumulative value, which can be used as the result of the first conversion mentioned above. As an example, in the case of a first-order COI (Cascaded Of Integer) type digital filter, the following second cumulative value can be obtained:

[0057]

[0058] Where Sum2 represents the second cumulative value, OSR represents the first number of periods mentioned above, and D k This represents the first digital code value for each cycle, k∈1,2,…,OSR. If a feedback coefficient exists, it can be multiplied by the corresponding feedback coefficient.

[0059] Step 103: Perform a second conversion on the remaining voltage to obtain the corresponding second conversion result.

[0060] In one possible implementation, after the coarse conversion is completed in step 102, a second conversion, namely a fine conversion process, can be performed on the remaining voltage. After the fine conversion is completed, the corresponding conversion result can be obtained. The conversion accuracy of the second conversion can be higher than that of the first conversion. On this basis, the accuracy of analog-to-digital conversion can be improved. At the same time, the combination of the first and second conversions can also ensure a high conversion speed.

[0061] Optionally, the second conversion can be implemented by the first cyclic analog-to-digital converter.

[0062] Accordingly, the processing in step 103 above can be as follows:

[0063] The remaining voltage is converted by the first cyclic analog-to-digital converter for a second number of cycles to obtain a second number of second digital code values.

[0064] The second number of second digital code values ​​are weighted and summed to determine the corresponding second conversion result.

[0065] The second number can be an integer greater than 1.

[0066] In one possible implementation, the residual voltage in the incremental analog-to-digital converter can be connected to a first cyclic analog-to-digital converter. In the first cycle, the residual voltage is compared with a second reference voltage in the comparator, and the corresponding comparison result (i.e., the second digital code value) is output. In the second cycle, the comparison result of the previous cycle is multiplied by a feedback coefficient to obtain a feedback value. At this time, the input of the first cyclic analog-to-digital converter is 0. The new residual voltage is obtained by subtracting the feedback value from 0. Then, the new residual voltage is compared with the second reference voltage in the comparator, and the corresponding comparison result is output, and so on.

[0067] After completing the conversion of the second number of cycles, the corresponding second digital code values ​​are weighted and summed to obtain a third cumulative value, which can be used as the result of the first conversion. As an example, the calculation of the third cumulative value can be as follows:

[0068]

[0069] Where Sum3 represents the third cumulative value, n represents the number of periods mentioned above, and D j The second digital code value represents each cycle. This represents the binary weight, j∈1,…,n. If a feedback coefficient exists, it can be multiplied by the corresponding feedback coefficient.

[0070] Optionally, the second cyclic analog-to-digital converter (ADC) and the first cyclic ADC used to implement the second conversion share the same cyclic ADC.

[0071] In one possible implementation, after predicting the target gain using a cyclic analog-to-digital converter (ADC), the ADC can be reset and then used in the second conversion process. This approach can reduce circuit power consumption and area.

[0072] Step 104: Based on the first conversion result and the second conversion result, determine the target digital code value corresponding to the input voltage.

[0073] In one possible implementation, the first conversion result of the coarse conversion and the second conversion result of the fine conversion can be combined to jointly determine the final output target digital code value.

[0074] The specific steps can be as follows:

[0075] Based on the first number, determine the constants required to output the target digital code value;

[0076] The target digital code value corresponding to the input voltage is determined by summing the first conversion result and the second conversion result and dividing by the constant.

[0077] In one possible implementation, the aforementioned constant can be related to the oversampling rate (OSR) of the incremental analog-to-digital converter. As an example, this constant can be the digital filter decimation factor, i.e., M = OSR·gain_error, or it can be the product of the digital filter decimation factor and the gain calibration coefficient, i.e., M = OSR·gain_error·gain_PGA.

[0078] If the first conversion result is Sum2 as described above, and the second conversion result is Sum3 as described above, then the output target numeric code value can be as follows:

[0079]

[0080] Where Dout is the target numeric code value.

[0081] The embodiments of this application can achieve the following beneficial effects:

[0082] (1) The input voltage is predicted to determine the target gain factor. Then, the voltage under test after gain is subjected to a first coarse conversion and a second fine conversion. Based on the results of the first and second conversions, the target digital code value corresponding to the input voltage is determined. This can achieve adaptive gain for the input voltage, improving the adaptability of analog-to-digital conversion. Furthermore, the combination of the first and second conversions improves the accuracy of analog-to-digital conversion and ensures a high conversion speed.

[0083] (2) For cases where the absolute value of the input voltage is large, a smaller PGA range can be selected to prevent the measurement from exceeding the ADC range; for cases where the absolute value of the input voltage is small, a larger PGA range can be selected to provide higher accuracy.

[0084] (3) The prediction process and the fine conversion process can reuse the same cyclic analog-to-digital converter, reducing circuit power consumption and area.

[0085] Based on the same inventive concept, this application also provides an analog-to-digital conversion circuit, which can be used to implement the above-described analog-to-digital conversion method.

[0086] Reference Figure 4 The schematic diagram of the analog-to-digital converter circuit shown indicates that the analog-to-digital converter circuit 400 may include a gain determination module 401, a first conversion module 402, a second conversion module 403, and an output module 404. Wherein:

[0087] The gain determination module 401 is used to determine a target gain multiple based on the input voltage, wherein the target gain multiple is used to amplify or reduce the input voltage to the voltage to be measured that meets the target range;

[0088] The first conversion module 402 is used to perform a first conversion on the voltage to be measured to obtain the corresponding first conversion result and the remaining voltage after conversion.

[0089] The second conversion module 403 is used to perform a second conversion on the remaining voltage to obtain a corresponding second conversion result;

[0090] The output module 404 is used to determine the target digital code value corresponding to the input voltage based on the first conversion result and the second conversion result.

[0091] Optionally, the first conversion module 402 includes an incremental analog-to-digital converter, the incremental analog-to-digital converter includes a discrete integrator, and the incremental analog-to-digital converter has a corresponding digital filter;

[0092] The first conversion module 402 is used for:

[0093] The voltage to be measured is converted by the incremental analog-to-digital converter for a first number of cycles to obtain a first number of first digital code values.

[0094] The first number of first digital code values ​​are transmitted to the digital filter for processing to determine the corresponding first conversion result;

[0095] Wherein, after the first conversion of the first number of cycles is completed, the current output voltage of the discrete integrator is used as the remaining voltage after conversion.

[0096] Optionally, the output module 404 is used for:

[0097] Based on the first number, determine the constants required to output the target digital code value;

[0098] The target digital code value corresponding to the input voltage is determined by summing the first conversion result and the second conversion result and dividing by the constant.

[0099] Optionally, the second conversion module 403 includes a first cyclic analog-to-digital converter;

[0100] The second conversion module 403 is used for:

[0101] The remaining voltage is converted by the first cyclic analog-to-digital converter for a second number of cycles to obtain a second number of second digital code values.

[0102] The second number of second digital code values ​​are weighted and summed to determine the corresponding second conversion result.

[0103] Optionally, the gain determination module 401 is used for:

[0104] The input voltage is subjected to a third conversion for a third number of cycles to obtain a third number of third digital code values;

[0105] The third number of third digital code values ​​are weighted and summed to obtain a first cumulative value, which is used to estimate the voltage range of the input voltage.

[0106] Among a number of preset threshold intervals, the target threshold interval in which the first cumulative value is located is determined;

[0107] The target gain factor corresponding to the target threshold range is determined based on the preset correspondence between the threshold range and the gain factor.

[0108] Optionally, among the plurality of threshold intervals, the first threshold interval corresponds to the first gain multiple, the second threshold interval corresponds to the second gain multiple, and if the first threshold interval is greater than the second threshold interval, then the first gain multiple is less than the second gain multiple.

[0109] Optionally, the gain determination module 401 includes a second cyclic analog-to-digital converter.

[0110] Optionally, the second cyclic analog-to-digital converter and the first cyclic analog-to-digital converter used to implement the second conversion share the same cyclic analog-to-digital converter.

[0111] The embodiments of this application can achieve the following beneficial effects:

[0112] (1) The input voltage is predicted to determine the target gain factor. Then, the voltage under test after gain is subjected to a first coarse conversion and a second fine conversion. Based on the results of the first and second conversions, the target digital code value corresponding to the input voltage is determined. This can achieve adaptive gain for the input voltage, improving the adaptability of analog-to-digital conversion. Furthermore, the combination of the first and second conversions improves the accuracy of analog-to-digital conversion and ensures a high conversion speed.

[0113] (2) For cases where the absolute value of the input voltage is large, a smaller PGA range can be selected to prevent the measurement from exceeding the ADC range; for cases where the absolute value of the input voltage is small, a larger PGA range can be selected to provide higher accuracy.

[0114] (3) The prediction process and the fine conversion process can reuse the same cyclic analog-to-digital converter, reducing circuit power consumption and area.

[0115] This application also provides a chip, including circuitry for implementing the analog-to-digital conversion method provided in this application. The chip may be, but is not limited to, a System-on-Chip (SoC) chip or a System-in-Package (SIP) chip. By configuring the chip with the aforementioned analog-to-digital conversion method, the accuracy of the analog-to-digital conversion can be improved.

[0116] This application also provides an electronic device, which includes a device body and a chip as described above disposed within the device body. The electronic device may be, but is not limited to, a weight scale, body fat scale, nutrition scale, infrared electronic thermometer, pulse oximeter, body composition analyzer, power bank, wireless charger, fast charger, car charger, adapter, display, USB (Universal Serial Bus) docking station, stylus, true wireless earphones, car infotainment screen, automobile, smart wearable device, mobile terminal, and smart home device. Smart wearable devices include, but are not limited to, smartwatches, smart bracelets, and neck massagers. Mobile terminals include, but are not limited to, smartphones, laptops, tablets, and POS (point of sales terminal) machines. Smart home devices include, but are not limited to, smart sockets, smart rice cookers, smart robot vacuums, and smart lights. By configuring the above-described analog-to-digital conversion method, this electronic device can improve the accuracy of analog-to-digital conversion.

[0117] The above are merely preferred embodiments of this application and are not intended to limit this application in any way. Although this application has disclosed preferred embodiments as above, it is not intended to limit this application. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the technical solution of this application. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of this application without departing from the scope of the technical solution of this application shall still fall within the scope of the technical solution of this application.

Claims

1. An analog-to-digital conversion method, characterized in that, The method includes: The input voltage is connected to the first cyclic analog-to-digital converter, which performs a third conversion on the input voltage for a third number of cycles to obtain a third number of third digital code values. The third number of third digital code values ​​are weighted and summed to obtain a first cumulative value, which is used to estimate the voltage range of the input voltage. Among a number of preset threshold intervals, the target threshold interval in which the first cumulative value is located is determined; Based on the preset correspondence between the threshold range and the gain factor, the target gain factor corresponding to the target threshold range is determined. The target gain factor is used to amplify or reduce the input voltage to the voltage to be measured that meets the target range. The first cyclic analog-to-digital converter is reset; The gain of the programmable gain amplifier (PGA) is adjusted to the target gain, the input voltage is input to the PGA, and the voltage to be measured is output after being amplified or reduced by the target gain. The voltage to be measured is first converted by an incremental analog-to-digital converter to obtain the corresponding first conversion result and the remaining voltage after conversion. The remaining voltage in the incremental analog-to-digital converter is connected to the first cyclic analog-to-digital converter, and the first cyclic analog-to-digital converter performs a second conversion on the remaining voltage to obtain the corresponding second conversion result; Based on the first conversion result and the second conversion result, the target digital code value corresponding to the input voltage is determined.

2. The analog-to-digital conversion method according to claim 1, characterized in that, The incremental analog-to-digital converter includes a discrete integrator and has a corresponding digital filter; The first conversion of the voltage to be measured to obtain the corresponding first conversion result and the remaining voltage after conversion includes: The voltage to be measured is converted by the incremental analog-to-digital converter for a first number of cycles to obtain a first number of first digital code values. The first number of first digital code values ​​are transmitted to the digital filter for processing to determine the corresponding first conversion result; Wherein, after the first conversion of the first number of cycles is completed, the current output voltage of the discrete integrator is used as the remaining voltage after conversion.

3. The analog-to-digital conversion method according to claim 2, characterized in that, The step of determining the target digital code value corresponding to the input voltage based on the first conversion result and the second conversion result includes: Based on the first number, determine the constants required to output the target digital code value; The target digital code value corresponding to the input voltage is determined by summing the first conversion result and the second conversion result and dividing by the constant.

4. The analog-to-digital conversion method according to claim 1, characterized in that, The second conversion of the remaining voltage to obtain the corresponding second conversion result includes: The remaining voltage is converted by the first cyclic analog-to-digital converter for a second number of cycles to obtain a second number of second digital code values. The second number of second digital code values ​​are weighted and summed to determine the corresponding second conversion result.

5. The analog-to-digital conversion method according to claim 1, characterized in that, In the plurality of threshold intervals, the first threshold interval corresponds to the first gain multiple, the second threshold interval corresponds to the second gain multiple, and if the first threshold interval is greater than the second threshold interval, then the first gain multiple is less than the second gain multiple.

6. An analog-to-digital converter circuit, characterized in that, The circuit includes: The gain determination module is used to connect the input voltage to the first cyclic analog-to-digital converter, and the first cyclic analog-to-digital converter performs a third conversion on the input voltage for a third number of cycles to obtain a third number of third digital code values ​​respectively; The third number of third digital code values ​​are weighted and summed to obtain a first cumulative value, which is used to estimate the voltage range of the input voltage. Among a plurality of preset threshold intervals, a target threshold interval in which the first cumulative value is located is determined. Based on a preset correspondence between threshold intervals and gain factors, a target gain factor corresponding to the target threshold interval is determined. This target gain factor is used to amplify or reduce the input voltage to a test voltage that meets the target range. The first cyclic analog-to-digital converter is reset. The gain factor of the programmable gain amplifier (PGA) is adjusted to the target gain factor. The input voltage is input to the PGA, and after being amplified or reduced by the target gain factor, the test voltage is output. The first conversion module is used to perform a first conversion on the voltage to be measured by an incremental analog-to-digital converter to obtain the corresponding first conversion result and the remaining voltage after conversion. The second conversion module is used to connect the remaining voltage in the incremental analog-to-digital converter to the first cyclic analog-to-digital converter, and the first cyclic analog-to-digital converter performs a second conversion on the remaining voltage to obtain a corresponding second conversion result; The output module is used to determine the target digital code value corresponding to the input voltage based on the first conversion result and the second conversion result.

7. A chip, characterized in that, Includes a circuit for implementing the analog-to-digital conversion method as described in any one of claims 1-5.

8. An electronic device, characterized in that, Includes a circuit for implementing the analog-to-digital conversion method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Hybrid analog-to-digital converter system

    CN112929028A

  • Automatic gain control method, device and equipment and computer storage medium

    CN113015233A

  • Analog-to-digital converter, electric quantity detection circuit and battery management system

    CN114696826A