Analog-to-digital conversion circuit and method, chip and electronic equipment

By introducing a gain module and a control module into the analog-to-digital conversion circuit, dynamically adjusting the gain and multiplexing the analog-to-digital conversion module, the problem of high cost during multi-channel signal measurement is solved, and efficient and flexible signal measurement is achieved.

CN119030542APending Publication Date: 2024-11-26CHIPSEA TECH SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310573166.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Existing analog-to-digital conversion circuits require multiple analog-to-digital converters when measuring multiple signals, resulting in higher costs.

Method used

Design an analog-to-digital conversion circuit. Through the gain module and the control module, the gain is dynamically adjusted according to the different input signals, and multiplexed the analog-to-digital conversion module for multiple signal measurements to ensure that the gain corresponds to the signal.

Benefits of technology

It reduces the cost of analog-to-digital conversion circuit, realizes efficient measurement of multiple signals, and improves measurement accuracy and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030542A_ABST
    Figure CN119030542A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an analog-to-digital conversion circuit, an analog-to-digital conversion method, a chip and electronic equipment, and the analog-to-digital conversion circuit comprises a gain module; an analog-to-digital conversion module; the control module is used for controlling the gain module to generate a first gain if analog-to-digital conversion is carried out on the first path of input signal, and the analog-to-digital conversion module carries out analog-to-digital conversion based on the first gain; if analog-to-digital conversion is carried out on the second input signal, the gain module is controlled to generate a second gain, and the analog-to-digital conversion module carries out analog-to-digital conversion based on the second gain. According to the embodiment of the invention, multi-path signal measurement can be carried out; applying a first gain to the first path of input signal, and applying a second gain to the second path of input signal, so that the gains correspond to the signals; the multiplexing analog-to-digital conversion module performs analog-to-digital conversion according to the corresponding gain, so that the cost of the analog-to-digital conversion circuit can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Signal measurement involves converting analog-to-digital signals into digital signals. In some cases, it involves measuring multiple signals, such as measuring multiple analog signals output by multiple sensors or measuring signals such as the voltage and current values ​​of a battery.

[0003] In the related art, multiple analog-to-digital converters (ADCs) are used for separate measurements. For example, in battery testing, one ADC measures the current value, and another ADC measures the voltage value. The measurement circuit in the related art uses multiple ADCs, so the cost is relatively high. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide an analog-to-digital conversion circuit, method, chip and electronic device to solve the above technical problems.

[0005] In the first aspect, the embodiment of the present application provides an analog-to-digital conversion circuit, including: a gain module; an analog-to-digital conversion module; a control module, which is used to control the gain module to generate a first gain if the first input signal is analog-to-digital converted, and the analog-to-digital conversion module performs analog-to-digital conversion based on the first gain; if the second input signal is analog-to-digital converted, the control gain module generates a second gain, and the analog-to-digital conversion module performs analog-to-digital conversion based on the second gain. Through this embodiment, multi-channel signal measurement can be performed; the first gain is applied to the first input signal, and the second gain is applied to the second input signal, so that the gain corresponds to the signal; the multiplexing analog-to-digital conversion module performs analog-to-digital conversion according to the corresponding gain, which can reduce the cost of the analog-to-digital conversion circuit.

[0006] Optionally, the gain module includes: a first gain unit and a second gain unit; a control module, which is used to select the first gain unit to generate the above-mentioned first gain if the first input signal is subjected to analog-to-digital conversion; and select the second gain unit to generate the above-mentioned second gain if the second input signal is subjected to analog-to-digital conversion.

[0007] Optionally, the analog-to-digital conversion circuit also includes: a first input terminal, used to receive the above-mentioned first input signal; a second input terminal, used to receive the above-mentioned second input signal; wherein, a control module is used to connect one of the first input terminal and the second input terminal to the analog-to-digital conversion module based on the first control signal; if the first input terminal is connected to the analog-to-digital conversion module, the control gain module generates the above-mentioned first gain; if the second input terminal is connected to the analog-to-digital conversion module, the control gain module generates the above-mentioned second gain.

[0008] Optionally, the control module includes: a first switch connected between the analog-to-digital conversion module and the first input terminal; and a second switch connected between the analog-to-digital conversion module and the second input terminal.

[0009] Optionally, the above-mentioned gain module includes: a first gain unit, used to generate the above-mentioned first gain; a second gain unit, used to generate the above-mentioned second gain; the first gain unit is connected in series with the first switch between the analog-to-digital conversion module and the first input terminal; the second gain unit is connected in series with the second switch between the analog-to-digital conversion module and the second input terminal.

[0010] Optionally, the analog-to-digital conversion module includes a modulation unit and a feedback loop, the feedback loop is between the input end and the output end of the modulation unit, and the gain module is located at the input end of the feedback loop and / or the modulation unit.

[0011] Optionally, the gain module is located in the feedback loop, and the gain module includes: a third gain unit and a fourth gain unit; a control module, including: a third switch, the third switch and the third gain unit are connected in series in the feedback loop; a fourth switch, the fourth switch is connected in parallel with the third switch and is connected in series with the fourth gain unit in the feedback loop.

[0012] Optionally, the above-mentioned gain module is also located at the input end of the above-mentioned modulation unit; the gain module also includes: a fifth gain unit and a sixth gain unit; a control module, which is used to select the third gain unit and / or the fifth gain unit to generate the above-mentioned first gain if the first input signal is subjected to analog-to-digital conversion; if the second input signal is subjected to analog-to-digital conversion, select the fourth gain unit and / or the sixth gain unit to generate the above-mentioned second gain.

[0013] Optionally, the control module is also used to control the modulation unit to perform a first modulation of a first order if analog-to-digital conversion is performed on the first input signal; and to control the modulation unit to perform a second modulation of a second order if analog-to-digital conversion is performed on the second input signal; wherein the first order is the same as or different from the second order.

[0014] Optionally, the control module is further configured to adjust the magnitude of the first gain according to the first input signal.

[0015] Optionally, the control module is further configured to adjust the second gain according to the second input signal.

[0016] Optionally, the gain of the first gain unit is variable, and the first gain is generated based on a second control signal.

[0017] Optionally, the gain of the second gain unit is variable, and the second gain is generated based on a third control signal.

[0018] Optionally, the analog-to-digital conversion module includes a Σ-Δ analog-to-digital conversion module.

[0019] Optionally, the analog-to-digital conversion circuit is used to measure the voltage value or current value of the battery.

[0020] Optionally, the control module is further configured to adjust the voltage gain according to the measured number of batteries.

[0021] Optionally, one of the first gain and the second gain is a gain for amplification, and the other is a gain for reduction.

[0022] In the second aspect, the embodiment of the present application provides an analog-to-digital conversion method, which is applied to an analog-to-digital conversion circuit, the analog-to-digital conversion circuit includes a gain module and an analog-to-digital conversion module, the method includes: in a first period, receiving a first input signal, the gain module generates a first gain, and the analog-to-digital conversion module performs analog-to-digital conversion on the first input signal based on the first gain; in a second period, receiving a second input signal, the gain module generates a second gain, and the analog-to-digital conversion module performs analog-to-digital conversion on the second input signal based on the second gain. Through this embodiment, multi-channel signal measurement can be performed; the first gain is applied to the first input signal, and the second gain is applied to the second input signal, so that the gain corresponds to the signal; the multiplexing analog-to-digital conversion module performs analog-to-digital conversion according to the corresponding gain, which can reduce the cost of the analog-to-digital conversion circuit.

[0023] In a third aspect, an embodiment of the present application provides a chip, including the above-mentioned analog-to-digital conversion circuit. Through this embodiment, it is possible to measure multiple signals; apply a first gain to a first input signal and a second gain to a second input signal, so that the gain corresponds to the signal; and multiplex the analog-to-digital conversion module to perform analog-to-digital conversion according to the corresponding gain, which can reduce the cost of the analog-to-digital conversion circuit.

[0024] In a fourth aspect, an embodiment of the present application provides an electronic device, including a device body and a chip or an analog-to-digital conversion circuit as described above, which is disposed in the device body. Through this embodiment, it is possible to measure multiple signals; apply a first gain to a first input signal and a second gain to a second input signal, so that the gain corresponds to the signal; and multiplex the analog-to-digital conversion module to perform analog-to-digital conversion according to the corresponding gain, which can reduce the cost of the analog-to-digital conversion circuit.

[0025] The analog-to-digital conversion circuit, method, chip and electronic device provided by the embodiment of the present application, if the first input signal is subjected to analog-to-digital conversion, the control module controls the gain module to generate a first gain, and the analog-to-digital conversion module performs analog-to-digital conversion on the first input signal based on the first gain; if the second input signal is subjected to analog-to-digital conversion, the control module controls the gain module to generate a second gain, and the analog-to-digital conversion module performs analog-to-digital conversion on the second input signal based on the second gain. Through this embodiment, multi-channel signal measurement can be performed; and the first gain is applied to the first input signal, and the second gain is applied to the second input signal, so that the gain corresponds to the signal; the multiplexed analog-to-digital conversion module performs analog-to-digital conversion according to the gain corresponding to the input signal, which can reduce the cost of the analog-to-digital conversion circuit.

[0026] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A schematic diagram of an analog-to-digital conversion circuit provided in an embodiment of the present application is shown.

[0029] Figure 2 A schematic diagram of a gain module provided in an embodiment of the present application is shown.

[0030] Figure 3 A schematic diagram of another analog-to-digital conversion circuit provided in an embodiment of the present application is shown.

[0031] Figure 4 A schematic diagram of another analog-to-digital conversion circuit provided in an embodiment of the present application is shown.

[0032] Figure 5A A schematic diagram of yet another analog-to-digital conversion circuit provided in an embodiment of the present application is shown.

[0033] Figure 5B A schematic diagram of yet another analog-to-digital conversion circuit provided in an embodiment of the present application is shown.

[0034] Figure 6 A schematic diagram of a battery detection circuit provided in an embodiment of the present application is shown.

[0035] Figure 7 A schematic diagram of another battery detection circuit provided in an embodiment of the present application is shown.

[0036] Figure 8 A flow chart of an analog-to-digital conversion method provided in an embodiment of the present application is shown.

[0037] Fig. 9 Various situations of the first period and the second period in one measurement cycle are shown.

[0038] Fig.10 The situations of the first period and the second period in a plurality of measurement cycles are shown. DETAILED DESCRIPTION

[0039] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0040] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0041] In the embodiments of the present application, at least one refers to one or more; multiple refers to two or more. In the description of the present application, the words "first", "second", "third", etc. are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0042] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include a particular feature, structure or characteristic described in conjunction with the embodiment. Thus, in this specification, the terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0043] It should be noted that in the embodiments of the present application, "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone.

[0044] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.

[0045] The analog-to-digital conversion circuit provided in the embodiment of the present application can be used to measure at least two signals. The analog-to-digital conversion circuit can be applied to fields such as instrumentation and sensor measurement. It should be understood that the "first input signal" and "second input signal" in the embodiment of the present application are not limitations on the number of signals, and more than two signals are also feasible, and the comparison of the embodiment of the present application will not be repeated.

[0046] An embodiment of the present application provides an analog-to-digital conversion circuit.

[0047] Figure 1 The analog-to-digital conversion circuit provided in the embodiment of the present application is shown. Figure 1 As shown, the analog-to-digital conversion circuit 100 includes: a gain module 110, an analog-to-digital conversion module 120 and a control module 130. The control module 130 is used to control the gain module 110 to generate a first gain if the first input signal is analog-to-digital converted, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the first input signal based on the first gain; if the second input signal is analog-to-digital converted, the gain module 110 is controlled to generate a second gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the second input signal based on the second gain. Through this embodiment, at least two signal measurements can be performed; the first gain is applied to the first input signal, and the second gain is applied to the second input signal, so that the gain corresponds to the signal; the multiplexed analog-to-digital conversion module performs analog-to-digital conversion according to the corresponding gain, which can reduce the cost of the analog-to-digital conversion circuit.

[0048] As an implementation mode, one of the first gain and the second gain is a gain for amplification, and the other is a gain for reduction. The analog-to-digital conversion circuit of this implementation mode can multiplex the analog-to-digital conversion module to measure small signals (i.e., small amplitude) and large signals (i.e., relatively large amplitude).

[0049] Exemplarily, the first gain is a gain for amplification, and the second gain is a gain for reduction, and accordingly, the first input signal is a signal with a smaller amplitude, and the second input signal is a signal with a larger amplitude. In another example, the first gain is a gain for reduction, and the second gain is a gain for amplification, and accordingly, the first input signal is a signal with a larger amplitude, and the second input signal is a signal with a smaller amplitude.

[0050] For example, in battery detection, the battery current and battery voltage are detected. Exemplarily, the current is converted into voltage for measurement. The voltage signal amplitude corresponding to the battery current is small, and the voltage signal amplitude corresponding to the battery voltage is large. The voltage signal corresponding to the battery current is used as the first input signal, the first gain is the gain for amplifying the voltage signal corresponding to the battery current, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the voltage signal based on the first gain; the voltage signal corresponding to the battery voltage is used as the second input signal, the second gain is the gain for reducing the voltage signal corresponding to the battery voltage, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the voltage signal based on the second gain.

[0051] As an implementation mode, the control module 130 performs analog-to-digital conversion on one of the first input signal and the second input signal based on the first control signal. When performing analog-to-digital conversion on the first input signal, the control gain module 110 generates a first gain so that the analog-to-digital conversion module 120 performs analog-to-digital conversion on the first input signal based on the first gain; when performing analog-to-digital conversion on the second input signal, the control gain module 110 generates a second gain so that the analog-to-digital conversion module 120 performs analog-to-digital conversion on the second input signal based on the second gain.

[0052] Exemplarily, the first control signal can be set to: in the first period, instructing to perform analog-to-digital conversion on the first input signal, the gain module 110 generates a first gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the first input signal based on the first gain; in the second period, instructing to perform analog-to-digital conversion on the second input signal, the gain module 110 generates a second gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the second input signal based on the second gain. In practical applications, the first period and the second period can be configured as needed, for example, by configuring the first period and the second period through computer program instructions.

[0053] In some possible implementations, the gain module 110 may be located at the input end of the analog-to-digital conversion module 120 , that is, the first input signal or the second input signal is input to the analog-to-digital conversion module 120 for analog-to-digital conversion after corresponding gain control.

[0054] In some possible implementations, the analog-to-digital conversion module 120 may include a modulation unit and a feedback loop. As an implementation, the gain module 110 may be located at the input end of the modulation unit, that is, the first input signal or the second input signal is input to the modulation unit for modulation after corresponding gain control. As another implementation, the gain module 110 may be located in the feedback loop. As yet another implementation, the gain module 110 may be located at the input end and the feedback loop of the modulation unit.

[0055] Exemplary implementations of the gain module are described below.

[0056] As an implementation method, Figure 2 As shown, the gain module 110 may include: a first gain unit 111 and a second gain unit 112. The first gain unit 111 is used to generate the above-mentioned first gain. The second gain unit 112 is used to generate the above-mentioned second gain. The control module 130 is used to select the first gain unit 111 to generate the above-mentioned first gain if analog-to-digital conversion is performed on the first input signal, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the first input signal based on the first gain. The control module 130 is used to select the second gain unit 112 to generate the above-mentioned second gain if analog-to-digital conversion is performed on the second input signal, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the second input signal based on the second gain.

[0057] like Figure 2 The gain module 110 shown in the figure generates the first gain through the first gain unit 111 and generates the second gain through the second gain unit 112, so as to realize different gain controls. For example, one of the first gain and the second gain is a gain for amplification, and the other is a gain for reduction. In this case, one gain unit generates the gain for amplification, and the other gain unit generates the gain for reduction, which can reduce the engineering difficulty.

[0058] As an implementation mode, the gain of the first gain unit 111 is variable, and the first gain is generated based on the second control signal. Exemplarily, the first gain unit 111 may output a plurality of discrete gains, and select a gain from the plurality of discrete gains as the first gain based on the second control signal. Exemplarily, the second control signal may be generated based on the amplitude of the first input signal so that the first gain matches the amplitude of the first input signal.

[0059] As an implementation manner, the gain of the second gain unit 112 is variable, and the second gain is generated based on the third control signal. Exemplarily, the second gain unit 112 may output a plurality of discrete gains, and select a gain from the plurality of discrete gains as the second gain based on the third control signal. Exemplarily, the third control signal may be generated based on the amplitude of the second input signal so that the second gain matches the amplitude of the second input signal.

[0060] As an implementation manner, the gain of the first gain unit 111 is variable, and the first gain is generated based on the second control signal. The gain of the second gain unit 112 is variable, and the second gain is generated based on the third control signal.

[0061] An exemplary implementation of selecting the first input signal and the second input signal is described below.

[0062] As an implementation method, Figure 3 As shown, the analog-to-digital conversion circuit 100 further includes: a first input terminal 141, for receiving the first input signal; and a second input terminal 142, for receiving the second input signal. The control module 130 is used to connect one of the first input terminal 141 and the second input terminal 142 to the analog-to-digital conversion module 120 based on the first control signal, so as to input the corresponding input signal into the analog-to-digital conversion module 120. When the control module 130 connects the first input terminal 141 to the analog-to-digital conversion module 120, the gain module 110 is controlled to generate the first gain. When the control module 130 connects the second input terminal 142 to the analog-to-digital conversion module 120, the gain module 110 is controlled to generate the second gain.

[0063] Exemplary, combined Figure 2 and Figure 3 As shown, the control module 130 connects one of the first input terminal 141 and the second input terminal 142 to the analog-to-digital conversion module 120 based on the first control signal. When the first input terminal 141 is connected to the analog-to-digital conversion module 120, the control module 130 selects the first gain unit 111, the first gain unit 111 generates the above-mentioned first gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the first input signal received by the first input terminal 141 based on the first gain. When the second input terminal 142 is connected to the analog-to-digital conversion module 120, the control module 130 selects the second gain unit 112, the second gain unit 112 generates the above-mentioned second gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the second input signal received by the second input terminal 142 based on the second gain.

[0064] For example, taking the measurement of the current value and voltage value of the battery as an example, taking the conversion of the current into the voltage as an example, the first input terminal 141 receives the voltage signal corresponding to the battery current (i.e., the first input signal), and the second input terminal 142 receives the voltage signal corresponding to the battery voltage (i.e., the second input signal). The control module 130 receives the first control signal, and in the case of connecting the first input terminal 141 with the analog-to-digital conversion module 120 based on the first control signal, the control module 130 selects the first gain unit 111 to generate the first gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the voltage signal corresponding to the battery current based on the first gain; in the case of connecting the second input terminal 142 with the analog-to-digital conversion module 120 based on the first control signal, the control module 130 selects the second gain unit 112 to generate the second gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the voltage signal corresponding to the battery voltage based on the second gain. In some cases, the voltage signal amplitude corresponding to the battery current is small, so the first gain can be a gain for amplifying the voltage signal to amplify the voltage signal; the voltage signal amplitude corresponding to the battery voltage is large, so the second gain can be a gain for reducing the voltage signal to reduce the voltage signal.

[0065] As an implementation method, refer to Figure 3 As shown, the control module 130 may include: a first switch 131, connected between the analog-to-digital conversion module 120 and the first input terminal 141; a second switch 132, connected between the analog-to-digital conversion module 120 and the second input terminal 142. The first switch 131 and the second switch 132 are turned on and off based on the above-mentioned first control signal. The first control signal is set to: when performing analog-to-digital conversion on the first input signal received by the first input terminal 141, the first switch 131 is turned on to connect the first input terminal 141 with the analog-to-digital conversion module 120, and the second switch 132 is turned off to disconnect the second input terminal 142 from the analog-to-digital conversion module 120, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the first input signal received by the first input terminal 141.

[0066] Combine the following Figure 4 A possible implementation of the analog-to-digital conversion circuit is described.

[0067] like Figure 4As shown, the analog-to-digital conversion circuit 100 may include: a first input terminal 141, for receiving the above-mentioned first input signal; a second input terminal 142, for receiving the above-mentioned second input signal. The control module 130 is used to connect one of the first input terminal 141 and the second input terminal 142 to the analog-to-digital conversion module 120 based on the first control signal, so as to input the corresponding input signal into the analog-to-digital conversion module 120. The control module 130 includes: a first switch 131, connected between the analog-to-digital conversion module 120 and the first input terminal 141; a second switch 132, connected between the analog-to-digital conversion module 120 and the second input terminal 142. The gain module 110 may include a first gain unit 111 and a second gain unit 112, the first gain unit 111 is connected between the analog-to-digital conversion module 120 and the first input terminal 141, and the second gain unit 112 is connected between the analog-to-digital conversion module 120 and the second input terminal.

[0068] refer to Figure 4 As shown, the first switch 131 and the first gain unit 111 are connected in series between the first input terminal 141 and the analog-to-digital conversion module 120, and the second switch 132 and the second gain unit 111 are connected in series at the second input terminal 142. When the first switch 131 is turned on, the first input terminal 141 and the first gain unit 111 are connected to the analog-to-digital conversion module 120, the first input terminal 141 receives the first input signal, the first input signal is processed by the first gain generated by the first gain unit 111, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the first input signal processed by the first gain. When the second switch 132 is turned on, the second input terminal 142 and the second gain unit 112 are connected to the analog-to-digital conversion module 120, the second input terminal 142 receives the second input signal, the second input signal is processed by the second gain generated by the second gain unit 112, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the second input signal processed by the second gain. Signal reception and gain selection can be controlled simultaneously by the first switch 131 and the second switch 132.

[0069] As an implementation manner, the control module 130 may also adjust the magnitude of the first gain based on the first input signal. Figure 4 As shown, when the first switch 131 is turned on, the control module 130 generates the second control signal based on the first input signal, and the first gain unit 111 generates the first gain based on the second control signal. Exemplarily, the control module 130 can generate the second control signal based on the amplitude of the first input signal so that the first gain matches the amplitude of the first input signal.

[0070] As an implementation manner, the control module 130 may also adjust the magnitude of the second gain according to the second input signal. Figure 4As shown, when the second switch 132 is turned on, the control module 130 generates a third control signal based on the second input signal, and the second gain unit 112 generates the second gain based on the third control signal. Exemplarily, the control module 130 can generate the third control signal based on the amplitude of the second input signal so that the second gain matches the amplitude of the second input signal.

[0071] Combine the following Figure 5A A possible implementation of the analog-to-digital conversion circuit is described. Figure 5A The mid-gain block 110 is located in the feedback loop.

[0072] As an implementation method, refer to Figure 5A As shown, the analog-to-digital conversion module 120 may include a modulation unit 121 and a feedback loop 123, the feedback loop 123 is between the input end and the output end of the modulation unit 121, and the gain module 110 is located in the feedback loop 123. The modulation unit 121 can be a first-order or multi-order modulation unit, which is not limited in this embodiment. Optionally, the gain module 110 acts on the pre-stage modulation unit (i.e., the low-order modulation unit). Exemplarily, the modulation unit 121 can be a Sigma-Delta integral modulation unit.

[0073] As a further embodiment, refer to Figure 5A As shown, the gain module 110 may include a third gain unit 113 and a fourth gain unit 114. The control module 130 may include a third switch 133 and a fourth switch 134. The third switch 133 is connected in series with the third gain unit 113 in the feedback loop 123. The fourth switch 134 is connected in parallel with the third switch 133 and is connected in series with the fourth gain unit 114 in the feedback loop 123. The third gain unit 113 and the fourth gain unit 114 may refer to the description of the first gain unit 111 and the second gain unit 112 in the previous description of this specification, and will not be repeated here.

[0074] As a further embodiment, refer to Figure 5A As shown, the analog-to-digital conversion circuit 100 may include: a first input terminal 141 and a second input terminal 142. The first input terminal 141 is used to receive the first input signal, and the second input terminal 142 is used to receive the second input signal. The control module 130 may include a first switch 131 and a second switch 132.

[0075] Exemplary, reference Figure 5AAs shown, in the case of performing analog-to-digital conversion on the first input signal, the first switch 131 is turned on, the first input terminal 141 is connected to the modulation unit 121 of the analog-to-digital conversion module 120, and the modulation unit 121 receives the first input signal and modulates it to generate a modulated output; in addition, the third switch 133 is turned on, and the third gain unit 113 is connected in series to the feedback loop 123, that is, between the input terminal and the output terminal of the modulation unit 121. The analog-to-digital conversion module 120 performs analog-to-digital conversion based on the first gain generated by the third gain unit 113 to output the analog-to-digital conversion result of the first input signal.

[0076] Exemplary, reference Figure 5A As shown, in the case of performing analog-to-digital conversion on the second input signal, the second switch 132 is turned on, the second input terminal 142 is connected to the modulation unit 121 of the analog-to-digital conversion module 120, and the modulation unit 121 receives the second input signal and modulates it to generate a modulated output; in addition, the fourth switch 134 is turned on, and the fourth gain unit 114 is connected in series to the feedback loop 123, that is, between the input terminal and the output terminal of the modulation unit 121. The analog-to-digital conversion module 120 performs analog-to-digital conversion based on the second gain generated by the fourth gain unit 114 to output the analog-to-digital conversion result of the second input signal.

[0077] like Figure 5A As shown, the analog-to-digital conversion module 120 may further include a digital filtering unit 122, which may filter the modulation output result of the modulation unit 121 to obtain a digital signal. Exemplarily, the modulation unit 121 may include a Σ-Δ integral modulator, and the digital filtering unit 122 may be a low-pass digital filter.

[0078] Combine the following Figure 5B A possible implementation of the analog-to-digital conversion circuit is described. Figure 5B The medium gain block 110 is located in the feedback loop and on the input side.

[0079] Compared to Figure 5A For example, Figure 5B As shown, the gain module 110 further includes a fifth gain unit 115 and a sixth gain unit 116. The control module 130 is configured to select the third gain unit 113 and / or the fifth gain unit 115 to generate the first gain if analog-to-digital conversion is performed on the first input signal; and select the fourth gain unit 114 and / or the sixth gain unit 116 to generate the second gain if analog-to-digital conversion is performed on the second input signal.

[0080] Further, such as Figure 5BAs shown, the analog-to-digital conversion circuit 100 may include: a first input terminal 141 and a second input terminal 142. The first input terminal 141 is used to receive the first input signal, and the second input terminal 142 is used to receive the second input signal. The control module 130 may include a first switch 131 and a second switch 132. The fifth gain unit 115 is connected in series with the first switch 131 between the first input terminal 141 and the input terminal of the modulation unit 121, and the sixth gain unit 116 is connected in series with the second switch 132 between the second input terminal 142 and the input terminal of the modulation unit 121.

[0081] Exemplary, reference Figure 5B As shown, in the case of performing analog-to-digital conversion on the first input signal, the first switch 131 is turned on, the first input terminal 141 and the fifth gain unit 115 are connected to the modulation unit 121 of the analog-to-digital conversion module 120, and the modulation unit 121 receives the first input signal that has been gain-processed by the fifth gain unit 115 and modulates it to generate a modulated output; in addition, the third switch 133 is turned on, and the third gain unit 113 is connected in series to the feedback loop 123, that is, between the input terminal and the output terminal of the modulation unit 121. The analog-to-digital conversion module 120 performs analog-to-digital conversion based on the third gain unit 113 and the first gain generated by the fifth gain unit 115 to output the analog-to-digital conversion result of the second input signal.

[0082] Exemplary, reference Figure 5B As shown, in the case of performing analog-to-digital conversion on the second input signal, the second switch 132 is turned on, the second input terminal 142 and the sixth gain unit 116 are connected to the modulation unit 121 of the analog-to-digital conversion module 120, and the modulation unit 121 receives the second input signal that has been subjected to gain processing by the sixth gain unit 116 and modulates it to generate a modulated output; in addition, the fourth switch 134 is turned on, and the fourth gain unit 114 is connected in series to the feedback loop 123, that is, between the input terminal and the output terminal of the modulation unit 121. The analog-to-digital conversion module 120 performs analog-to-digital conversion based on the second gain generated by the fourth gain unit 114 and the sixth gain unit 116 to output the analog-to-digital conversion result of the second input signal.

[0083] In some possible implementations, the control module 130 is further used to control the modulation unit 121 to perform a first modulation of a first order if the first input signal is subjected to analog-to-digital conversion; and to control the modulation unit 121 to perform a second modulation of a second order if the second input signal is subjected to analog-to-digital conversion; wherein the first order is the same as or different from the second order. Generally, the higher the modulation order, the higher the accuracy and the longer the time required. The order can be selected according to the time and accuracy requirements.

[0084] As an implementation mode, the analog-to-digital conversion module 120 includes a Σ-Δ analog-to-digital conversion module. The Σ-Δ analog-to-digital conversion module has a high analog-to-digital conversion accuracy. In the case of performing analog-to-digital conversion on the first input signal, the control module 130 controls the gain module 110 to generate a first gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the first input signal based on the first gain; in the case of performing analog-to-digital conversion on the second input signal, the control module 130 controls the gain module 110 to generate a second gain, and the analog-to-digital conversion module 120 performs analog-to-digital conversion on the second input signal based on the second gain. This implementation mode not only has a high conversion accuracy, but also applies the first gain to the first input signal and the second gain to the second input signal, so that the gain corresponds to the signal.

[0085] Exemplarily, the analog-to-digital conversion module 120 includes an incremental Σ-Δ analog-to-digital conversion module. The incremental Σ-Δ analog-to-digital conversion module can quantize signals within the input signal amplitude range with the same accuracy and has high linearity.

[0086] The following takes the analog-to-digital conversion circuit used to measure the voltage and current of a battery as an example to illustrate an exemplary measurement system. In this example, the analog-to-digital conversion module 120 is a Σ-Δ analog-to-digital conversion module as an example.

[0087] Figure 6 The battery detection circuit provided in the embodiment of the present application is shown as follows: Figure 6 As shown, the battery detection circuit 600 includes: a first gain module 611, a second gain module 612, a first switch 621, a second switch 622, a Σ-Δ integration module 630, a quantization module 640 and a digital filtering module 650. The gain generated by the first gain module 611 is represented as a1, and the gain generated by the second gain module 612 is represented as a2.

[0088] The first gain module 611 can be used to receive the voltage detection signal Vbat (i.e., the voltage signal corresponding to the battery voltage), and the second gain module 612 can be used to receive the current detection signal Vcur (i.e., the voltage signal corresponding to the battery current). The first switch 621 is connected in series between the first gain module 611 and the Σ-Δ integration module 630. The second switch 622 is connected in series between the second gain module 612 and the Σ-Δ integration module 630.

[0089] In some embodiments, the battery detection circuit 600 further includes a time division multiplexing module 660. The time division multiplexing module 660 can control the first switch 621 and the second switch 622. Exemplarily, the time division multiplexing module 660 can turn on the first switch 621 and turn off the second switch 622 during the first period to perform analog-to-digital conversion on the voltage detection signal Vbat, and the voltage detection signal Vbat is processed according to the gain a1 by the first gain module 611; turn on the second switch 622 and turn off the first switch 621 during the second period to perform analog-to-digital conversion on the current detection signal Vcur, and the current detection signal Vcur is processed according to the gain a2 by the second gain module 612.

[0090] The Σ-Δ integration module 630 may be a first-order or multi-order Σ-Δ integration modulation, and the embodiment of the present application does not limit the order of the integration modulation.

[0091] When the Σ-Δ integration module 630 is a multi-order Σ-Δ integration modulation, modulators of different orders can be selected according to different input signals. As an implementation mode, if the voltage detection signal Vbat is converted into analog-to-digital, the modulation unit is controlled to perform a first modulation of a first order; if the current detection signal Vcur is converted into analog-to-digital, the modulation unit is controlled to perform a second modulation of a second order.

[0092] like Figure 6 As shown, the Σ-Δ integration module 630 may include a first integrator 631 and a second integrator 632. The first integrator 631 and the second integrator 632 are connected in series, the first integrator 631 is called a pre-stage modulator, and the second integrator 632 is called a post-stage modulator. The input signal may be modulated by the first integrator 631 and the second integrator 632 in sequence.

[0093] Further, such as Figure 6 As shown, the Σ-Δ integration module 630 may include a first feedback loop 633 and a second feedback loop 634. The first feedback loop 633 inputs a feedback signal based on the quantized output of the quantization module 640 to the input end of the first integrator 631, and the gain of the first feedback loop 633 is represented by c. The second feedback loop 634 inputs a feedback signal based on the quantized output of the quantization module 640 to the input end of the second integrator 632, and the gain of the second feedback loop 634 is represented by d.

[0094] Exemplarily, the quantized output of the quantization module 640 is converted into a feedback signal through digital-to-analog conversion, and the digital-to-analog conversion can be performed by a digital-to-analog converter (DAC).

[0095] The quantization module 640 is connected in series with the Σ-Δ integration module 630. The power module 640 can be a single-bit quantizer or a multi-bit quantizer, which is not limited in the present embodiment. The digital filter module 650 can generate a digital signal corresponding to the input based on the output of the Σ-Δ integration module 630.

[0096] In some embodiments, the battery may include multiple battery cells, and a switch network may be connected between the first gain module 611 and the battery circuit, and the switch network may select to measure the voltage of any one or more battery cells based on the control signal. Figure 6 As shown, the switch network may include switches S0 to Sn. The battery detection circuit 600 may include a plurality of input terminals ( Figure 6 Each input terminal is connected in series with a switch, such as Figure 6 As shown, S0 is connected in series with B0, B1 is connected in series with S1, Bn-1 is connected in series with Sn-1, and Bn is connected in series with Sn. One or more battery cells can be connected between any two input terminals.

[0097] In some embodiments, Figure 6 As shown, the number of batteries to be measured can be selected through the switch network. The first gain module 611 can adjust the size of a1 (i.e., the first gain) according to the number of batteries measured, that is, adjust the voltage gain. Exemplarily, the more batteries there are, the greater the voltage value is, and the smaller the first gain is.

[0098] In some embodiments, reference Figure 6 As shown, a switch Si may be connected in series between the second gain module 612 and the current detection signal output terminal of the battery circuit.

[0099] In some embodiments, the first gain module 611 may generate a variable gain, and illustratively, the gain size may be determined based on the amplitude of the voltage detection signal. For example, the amplitude of the voltage detection signal may be detected, and a gain matching the amplitude of the voltage detection signal may be selected from a plurality of discrete gains based on the amplitude of the voltage detection signal to adjust the amplitude of the voltage detection signal to an appropriate size.

[0100] The following takes the battery detection circuit working in incremental Σ-Δ ADC mode as an example to analyze the gain of analog-to-digital conversion. The incremental Σ-Δ ADC can reset the integrator and digital filter module after each quantization, eliminate the information of the previous quantization state, and ensure that the initial state of each quantization is the same.

[0101] During voltage detection:

[0102]

[0103] Among them, E[n] is the quantization error, D[k] is the quantization output; the integration module gain G is reduced, G=a1 / c and G<1.

[0104] During current detection:

[0105]

[0106] Among them, E[n] is the quantization error, D[k] is the quantization output; the integration module gain G is the amplification, G=a2 / c and G>1.

[0107] Figure 7 The battery detection circuit provided in the embodiment of the present application is shown as follows: Figure 7 As shown, the battery detection circuit 700 includes: a first gain module 711, a second gain module 712, a first switch 721, a second switch 722, a third switch 723, a fourth switch 724, a Σ-Δ integration module 730, a quantization module 740 and a digital filtering module 750. The gain generated by the first gain module 711 (i.e., the first gain) is represented as c1, and the gain generated by the second gain module 712 (i.e., the second gain) is represented as c2.

[0108] One end of the first switch 721 can receive a voltage detection signal Vbat (i.e., a voltage signal corresponding to the battery voltage), and the other end of the first switch 721 is connected to the Σ-Δ integration module 730. One end of the second switch 722 can receive a current detection signal Vcur (i.e., a voltage signal corresponding to the battery current), and the other end of the second switch 722 is connected to the Σ-Δ integration module 730. Exemplarily, when detecting voltage, the first switch 721 is turned on, and the second switch 722 is turned off, and the Σ-Δ integration module 730 receives the voltage detection signal Vbat; when detecting current, the first switch 721 is turned off, and the second switch 722 is turned on, and the Σ-Δ integration module 730 receives the current detection signal Vcur.

[0109] The Σ-Δ integration module 730 may be a first-order or multi-order Σ-Δ integration modulation. Figure 7 The second-order modulation is shown, but the order of integral modulation is not limited in the present embodiment. Figure 7 As shown, the Σ-Δ integration module 730 may include a first integrator 731 and a second integrator 732. The first integrator 731 and the second integrator 732 are connected in series, the first integrator 731 is called a pre-stage modulator, and the second integrator 732 is called a post-stage modulator. The input signal may be modulated by the first integrator 731 and the second integrator 732 in sequence.

[0110] Further, such as Figure 7As shown, the Σ-Δ integration module 730 may include a first feedback loop 733 and a second feedback loop 734. The first feedback loop 733 inputs a feedback signal based on the quantization output of the quantization module 740 to the input end of the first integrator 731. The second feedback loop 734 inputs a feedback signal based on the quantization output of the quantization module 740 to the input end of the second integrator 732, and the gain of the second feedback loop 734 is represented by d. Exemplarily, the quantization output of the quantization module 740 is converted by digital-to-analog conversion to obtain a feedback signal, and the digital-to-analog conversion can be performed by a digital-to-analog converter (DAC).

[0111] like Figure 7 As shown, the first gain module 711 and the third switch 723 are connected in series in the first feedback loop 733, the second gain module 712 and the fourth switch 724 are connected in series in the first feedback loop 733, and the first gain module 711 is connected in parallel with the second gain module 712. Exemplarily, when the first switch 721 is turned on and the second switch 722 is turned off, the voltage detection signal Vbat is detected, the third switch 723 is turned on and the fourth switch 724 is turned off, the first gain module 711 generates a first gain, and the first integrator 731 performs modulation based on the first gain; when the second switch 722 is turned on and the first switch 721 is turned off, the current detection signal Vcur is detected, the fourth switch 724 is turned on and the third switch 723 is turned off, the second gain module 712 generates a second gain, and the second integrator 732 performs modulation based on the second gain.

[0112] In some embodiments, the battery detection circuit 700 further includes a time division multiplexing module 760. The time division multiplexing module 760 can control the first switch 721, the second switch 722, the third switch 723, and the fourth switch 724. Exemplarily, the time division multiplexing module 760 can turn on the first switch 721 and the third switch 723 and turn off the second switch 722 and the fourth switch 724 during the first period to perform analog-to-digital conversion on the voltage detection signal Vbat based on the first gain; turn on the second switch 722 and the fourth switch 724 during the second period and turn off the first switch 721 and the second switch 722 to perform analog-to-digital conversion on the current detection signal Vcur based on the second gain.

[0113] The quantization module 740 is connected in series with the Σ-Δ integration module 730. The quantization module 740 can be a single-bit quantizer or a multi-bit quantizer, which is not limited in the present embodiment. The digital filter module 750 can generate a digital signal corresponding to the input based on the output of the Σ-Δ integration module 730.

[0114] In some embodiments, the battery may include multiple battery cells, and a switch network may be connected between the first gain module 711 and the battery circuit, and the switch network may select to measure the voltage of any one or more battery cells based on the control signal. Figure 7 As shown, the switch network may include switches S0 to Sn. The battery detection circuit 700 may include a plurality of input terminals ( Figure 7 Each input terminal is connected in series with a switch, such as Figure 7 As shown, S0 is connected in series with B0, B1 is connected in series with S1, Bn-1 is connected in series with Sn-1, and Bn is connected in series with Sn. One or more battery cells can be connected between any two input terminals.

[0115] In some embodiments, Figure 7 As shown, the number of batteries to be measured can be selected through the switch network. The first gain module 711 can adjust the size of the first gain according to the number of batteries measured, that is, adjust the voltage gain. Exemplarily, the more batteries there are, the greater the voltage value is, and the smaller the first gain is.

[0116] refer to Figure 6 The circuit of or 7 introduces a multiplexed incremental Σ-Δ ADC architecture. By controlling the input switch, different pre-stage integral modulations are adopted for the voltage and current input signals, and the post-stage high-order integral modulation is shared. Different input pre-stage mode controls are performed in the time domain window. The voltage control signal adopts the pre-stage scaling processing, the current signal adopts the pre-stage amplification processing, and the post-stage signal integral modulation processing is shared, so as to achieve power consumption optimization, area optimization, and realize configurable dynamic measurement.

[0117] An embodiment of the present application also provides an analog-to-digital conversion method, which is applied to an analog-to-digital conversion circuit. The analog-to-digital conversion circuit includes a gain module and an analog-to-digital conversion module.

[0118] Figure 8 The analog-to-digital conversion method provided by the embodiment of the present application is shown. Figure 8 As shown, the method includes steps S802 to S804.

[0119] Step S802: During a first period, a first input signal is received, a gain module generates a first gain, and an analog-to-digital conversion module performs analog-to-digital conversion on the first input signal based on the first gain.

[0120] Step S804: during the second period, a second input signal is received, the gain module generates a second gain, and the analog-to-digital conversion module performs analog-to-digital conversion on the second input signal based on the second gain.

[0121] Through this embodiment, multi-channel signal measurement can be performed; a first gain is applied to a first input signal, and a second gain is applied to a second input signal, so that the gain corresponds to the signal; a multiplexed analog-to-digital conversion module performs analog-to-digital conversion according to corresponding gains, thereby reducing the cost of the analog-to-digital conversion circuit.

[0122] In the embodiment of the present application, polling detection is performed between the first input signal and the second input signal. Taking battery measurement as an example, Fig. 9 shows various situations of the first period and the second period in a measurement cycle, referring to Fig. 9 As shown, within a measurement cycle, the duration for voltage measurement and the duration for current measurement may be different, the order may be different, and the time distribution may be different. Fig.10 The first period and the second period in multiple measurement cycles are shown, referring to Fig.10 As shown, the duration, sequence, and time distribution of the voltage measurement and the current measurement in multiple measurement cycles may be different.

[0123] Exemplary, reference Figure 6 The battery detection circuit shown can, during a first period: turn on the first switch 621 and turn off the second switch 622 to perform analog-to-digital conversion on the voltage detection signal Vbat, and the voltage detection signal Vbat is processed according to the first gain (i.e., a1) through the first gain module 611; and can, during a second period: turn on the second switch 622 and turn off the first switch 621 to perform analog-to-digital conversion on the current detection signal Vcur, and the current detection signal Vcur is processed according to the second gain (i.e., a2) through the second gain module 612.

[0124] Exemplary, reference Figure 7 The battery detection circuit shown can, during a first period: turn on the first switch 721 and the third switch 723 and turn off the second switch 722 and the fourth switch 724 to perform analog-to-digital conversion on the voltage detection signal Vbat based on a first gain (i.e., C1); and can, during a second period: turn on the second switch 722 and the fourth switch 724 and turn off the first switch 721 and the second switch 722 to perform analog-to-digital conversion on the current detection signal Vcur based on a second gain (i.e., C2).

[0125] The embodiment of the present application also provides a chip, which includes the above-mentioned analog-to-digital conversion circuit. The chip is also called an integrated circuit (IC), and the chip can be, but is not limited to, a SOC (System on Chip) chip or a SIP (system in package) chip. The chip can measure at least two signals; a first gain is applied to the first input signal, and a second gain is applied to the second input signal, so that the gain corresponds to the signal; the multiplexing analog-to-digital conversion module performs analog-to-digital conversion according to the corresponding gain, which can reduce the cost of the analog-to-digital conversion circuit.

[0126] The embodiment of the present application also provides an electronic device, which includes a device body and a chip as described above disposed in the device body. The electronic device may be, but is not limited to, a weight scale, a body fat scale, a nutrition scale, an infrared electronic thermometer, a pulse oximeter, a human body composition analyzer, a mobile power supply, a wireless charger, a fast charger, a car charger, an adapter, a display, a USB (Universal Serial Bus) docking station, a stylus, a true wireless headset, a car central control screen, a car, a smart wearable device, a mobile terminal, and a smart home device. Smart wearable devices include, but are not limited to, smart watches, smart bracelets, and cervical massagers. Mobile terminals include, but are not limited to, smart phones, laptops, tablet computers, and POS (point of sales terminal). Smart home devices include, but are not limited to, smart sockets, smart rice cookers, smart sweepers, and smart lights. The electronic device is capable of measuring at least two signals; applying a first gain to a first input signal and a second gain to a second input signal so that the gain corresponds to the signal; the multiplexing analog-to-digital conversion module performs analog-to-digital conversion according to the corresponding gain, which can reduce the cost of the analog-to-digital conversion circuit.

[0127] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. An analog-to-digital conversion circuit, characterized in that: include: Gain module; Analog-to-digital conversion module; A control module is used to control the gain module to generate a first gain if analog-to-digital conversion is performed on a first input signal, and the analog-to-digital conversion module performs analog-to-digital conversion based on the first gain; if analog-to-digital conversion is performed on a second input signal, control the gain module to generate a second gain, and the analog-to-digital conversion module performs analog-to-digital conversion based on the second gain.

2. The analog-to-digital conversion circuit according to claim 1, characterized in that: Also includes: A first input terminal, used for receiving the first input signal; A second input terminal, used for receiving the second input signal; Wherein, the control module is used to connect one of the first input terminal and the second input terminal to the analog-to-digital conversion module based on a first control signal; If the first input terminal is connected to the analog-to-digital conversion module, the gain module is controlled to generate the first gain; If the second input terminal is connected to the analog-to-digital conversion module, the gain module is controlled to generate the second gain.

3. The analog-to-digital conversion circuit according to claim 2, characterized in that: The control module comprises: A first switch connected between the analog-to-digital conversion module and the first input terminal; The second switch is connected between the analog-to-digital conversion module and the second input terminal.

4. The analog-to-digital conversion circuit according to claim 3, characterized in that: The gain module comprises: A first gain unit, connected in series with the first switch between the analog-to-digital conversion module and the first input terminal, for generating the first gain; A second gain unit is connected in series with the second switch between the analog-to-digital conversion module and the second input terminal, and is used to generate the second gain.

5. The analog-to-digital conversion circuit according to any one of claims 1 to 3, characterized in that: The analog-to-digital conversion module includes a modulation unit and a feedback loop, wherein the feedback loop is between the input end and the output end of the modulation unit, and the gain module is located at the input end of the feedback loop and / or the input end of the modulation unit.

6. The analog-to-digital conversion circuit according to claim 5, characterized in that: The gain module is located in the feedback loop; The gain module comprises: a third gain unit and a fourth gain unit; The control module comprises: A third switch, wherein the third switch and the third gain unit are connected in series in the feedback loop; A fourth switch is connected in parallel with the third switch and in series with the fourth gain unit in the feedback loop.

7. The analog-to-digital conversion circuit according to claim 6, characterized in that: The gain module is also located at the input end of the modulation unit; The gain module further includes: a fifth gain unit and a sixth gain unit; The control module is used to select the third gain unit and / or the fifth gain unit to generate the first gain if analog-to-digital conversion is performed on the first input signal; and to select the fourth gain unit and / or the sixth gain unit to generate the second gain if analog-to-digital conversion is performed on the second input signal.

8. The analog-to-digital conversion circuit according to claim 5, characterized in that: The control module is also used to control the modulation unit to perform a first modulation of a first order if analog-to-digital conversion is performed on the first input signal; and to control the modulation unit to perform a second modulation of a second order if analog-to-digital conversion is performed on the second input signal; wherein the first order is the same as or different from the second order.

9. The analog-to-digital conversion circuit according to any one of claims 1 to 4, characterized in that: The control module is further configured to adjust the first gain according to the first input signal.

10. The analog-to-digital conversion circuit according to claim 9, characterized in that: The control module is further used to adjust the second gain according to the second input signal.

11. The analog-to-digital conversion circuit according to any one of claims 1 to 4, characterized in that: The analog-to-digital conversion module includes a Σ-Δ analog-to-digital conversion module.

12. The analog-to-digital conversion circuit according to any one of claims 1 to 4, characterized in that: The analog-to-digital conversion circuit is used to measure the voltage value or current value of the battery.

13. The analog-to-digital conversion circuit according to claim 12, characterized in that: The control module is further used to adjust the voltage gain according to the measured number of batteries.

14. The analog-to-digital conversion circuit according to any one of claims 1 to 4, characterized in that: One of the first gain and the second gain is a gain for performing amplification, and the other is a gain for performing reduction.

15. An analog-to-digital conversion method, characterized in that: Applied to an analog-to-digital conversion circuit, the analog-to-digital conversion circuit includes a gain module and an analog-to-digital conversion module, and the method includes: During a first period, a first input signal is received, the gain module generates a first gain, and the analog-to-digital conversion module performs analog-to-digital conversion on the first input signal based on the first gain; During the second period, a second input signal is received, the gain module generates a second gain, and the analog-to-digital conversion module performs analog-to-digital conversion on the second input signal based on the second gain.

16. A chip, characterized in that: The analog-to-digital conversion circuit comprises the above-mentioned claims 1 to 14.

17. An electronic device, characterized in that: It comprises a device body and a chip as described in claim 16 or an analog-to-digital conversion circuit as described in claims 1 to 14 arranged on the device body.