VOLTAGE MEASURING CIRCUIT

DE602016092677T2Active Publication Date: 2025-06-25MICROCHIP TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602016092677
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2016-12-11
Filing Date
2016-12-12
Publication Date
2025-06-25
Estimated Expiration
2036-12-12

AI Technical Summary

Technical Problem

Conventional methods for measuring battery or super-capacitor voltage in low power devices result in quiescent current discharge, which is inefficient and inaccurate due to parasitic influences and process variations.

Method used

A voltage measurement circuit utilizing a capacitive voltage divider (CVD) and analog-to-digital converter (ADC) with a control circuit to measure bandgap/reference voltage, charge capacitors to known voltages, and apply code values to calculate the actual voltage, eliminating quiescent current and accounting for parasitic capacitance.

Benefits of technology

Accurately measures battery or super-capacitor voltage without quiescent current, providing precise readings by compensating for parasitic influences and process variations, suitable for low power devices with tight power requirements.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present disclosure relates to methods and apparatus for measuring a voltage, in particular, a battery or super-capacitor voltage.

[0002] Low power devices, in particular low power battery or super-capacitor operated devices, require a measurement and monitoring of the supply voltage. Conventional measurement of the battery or super-capacitor voltage produces a quiescent current that may discharge the battery or super-capacitor. Document US 2011 / 254569 A1 describes a measurement apparatus. A measurement input is coupled with a first terminal of a capacitance via a first switch, and a reference voltage is coupled with the first terminal of the capacitance via a second switch. A measurement circuit is coupled to a second terminal of said capacitance. Document US 6 864 814 B1 discusses an analog to digital converter ("ADC") that can be used in a system with an internal or external CPU or in an ASIC. The ADC includes a band gap reference (BGR) circuit whose output is internally coupled to an analog input of the ADC; and a positive analog supply voltage (AVDD) and a positive analog reference voltage (REFP) operationally coupled to a same voltage supply; wherein a BGR value is used by a CPU as a calibration constant for determining an AVDD value, a REFP value, and a Bit Weight value. Document WO 2008 / 045426 A2 describes a system and method for measuring voltage of individual cells connected in series includes a single flying capacitor. The capacitor stores the charge of one of the cells such that an analog-to-digital converter (ADC) connected to the capacitor may process an accurate representation of the voltage of the cell being measured. A plurality of switches electrically connects and disconnects the cells from the capacitor. A controller is in communication with the ADC and the switches for sequencing the switches and recording the voltage measurements of each cell. At least one precision voltage reference device is included to provide the ADC a reference voltage to provide self-calibration. Document US 2012 / 223848 A1 discusses a calibration device for a mobile terminal and an ADC module thereof, the ADC module being disposed inside a baseband chip. The calibration device includes a bandgap voltage reference inside the mobile terminal platform for generating a reference voltage; the device further includes a circuit for connecting the bandgap voltage reference, the circuit being connected with the ADC module for providing the reference voltage generated by the bandgap voltage reference to the ADC module. The prior art uses a bandgap voltage reference inside a mobile terminal platform to provide voltage to an ADC module, which, during the ADC module calibration, does not require an external reference voltage source to perform the ADC calibration, and therefore greatly reduces calibration errors and improves calibration efficiency. Document WO 96 / 09557 A1 describes highly accurate, self-calibrating data processors and methods for calibrating the same use internal analog references with negligible time and temperature drifts. A first input reference signal set generated by any accurate, precision analog reference is applied to a data processor. The corresponding output response is compared to the theoretical ideal output response to determine the data processor's initial gain and offset errors. This information can be stored in non-volatile memory, re-called, and used to compensate for the data processor's initial gain and offset errors during actual use of the data processor. Subsequent errors due to time and temperature drifting can be determined by comparing the output responses to a second input reference signal set which is generated by the internal analog reference. The subsequent errors can be combined with the initial errors to compensate for system errors within the data processor. Document US 8 766 833 B1 discusses a method of calibrating a circuit that includes coupling a first reference voltage to a first input of the circuit, coupling a programmable reference voltage to a reference node of a digital-to-analog converter (DAC), such that the gain of the DAC is dependent on an input value at the reference node. The method further includes providing a first predetermined input code to the DAC, summing an output of the DAC with the first reference voltage to produce a summed output, comparing the summed output to a threshold, and adjusting the programmable reference voltage until the summed output is within a predetermined range of the threshold.

[0003] The invention is defined in the independent claims. Further enhancements are discussed in the dependent claims.

[0004] Embodiments of the present disclosure include a voltage measurement circuit that includes a sensor configured to measure a bandgap / reference voltage, a capacitive voltage divider (CVD), an analog-to-digital converter (ADC), and a control circuit configured to: measure, with the ADC, a bandgap / reference voltage and determining a first code value of the bandgap voltage, charge a first capacitor to a voltage to be measured and determine, with the ADC, a second code value of voltage of the first capacitor, charge a second capacitor to a second known voltage and determine, with the ADC, a third code value of voltage of the second capacitor, and determine the voltage to be measured by applying the first, second, and third code values.

[0005] In combination with any of the above embodiments, a computer, electronic device, system, or apparatus may include such a voltage measurement circuit. In combination with any of the above embodiments, a method may be performed. A method for measuring a voltage using a CVD and an analog-to-digital converter includes the steps of measuring a bandgap / reference voltage and determining a first code value of the bandgap / reference voltage, charging a first capacitor to a voltage to be measured and determining a second code value of voltage of the first capacitor, charging a second capacitor to a second known voltage and determining a third code value of voltage of the second capacitor, and determining the voltage to be measured by applying the first, second, and third code values.

[0006] In combination with any of the above embodiments, the voltage to be measured is further determining by applying a factor to convert the code values. In combination with any of the above embodiments, the factor is based upon a bit size of an analog to digital converter that is to determine the code values. In combination with any of the above embodiments, the first capacitor and the second capacitor are a same capacitor. In combination with any of the above embodiments, performing analog to digital conversion to find the voltage to be measured produces no quiescent current. In combination with any of the above embodiments, the voltage to be measured is further determined by dividing the value of the battery or super-capacitor measurement by the value of the bandgap / reference and by the known voltage. FIGURE 1 illustrates an example of a system for measuring a voltage, in accordance with embodiments of the present disclosure; FIGURE 2 illustrates an example of a circuit for providing a resistive divider to divide battery or super-capacitor voltage according to the range required by an ADC, the example not forming part of the claimed subject-matter; ; and FIGURE 3 illustrates an example of a method for measuring a voltage, in accordance with embodiments of the present disclosure.

[0007] FIGURE 1 illustrates an example of a system 100 for measuring a voltage, in accordance with embodiments of the present disclosure. In one embodiment, system 100 may be configured to measure a battery or super-capacitor voltage. In another embodiment, system 100 may be configured to measure a voltage without quiescent current. In yet another embodiment, system 100 may be configured to adjust a battery or super-capacitor voltage measurement by performing another measurement of bandgap voltage. System 100 may be implemented in any suitable device that has a voltage or battery or super-capacitor voltage that is to be measured, such as a microcontroller, computer, mobile device, wearable, or integrated circuit.

[0008] System 100 is configured to measure a voltage such as vbat 102. Vbat 102 may include the voltage of a battery, super-capacitor, or other power source of a device. Vbat 102 may include the voltage at the positive terminal of such a battery or super-capacitor or other power source. Vbat 102 may include the voltage of a back-up source of power for the device. Measuring vbat 102 directly might not provide entirely accurate readings due to parasitic influences from other portions of the device. Specifically, measuring vbat 102 might require use of a voltage divider and such a voltage divider may cause various side-effects.

[0009] Accordingly, system 100 measures vbat 102 in conjunction with other voltages of the device, such as a bandgap voltage from the device on which system 100 resides so that a measurement for vbat 102 can be adjusted for the parasitic influence. The bandgap voltage may represent a fixed value of the system and, as such, a code value of an analog to digital converter for the bandgap voltage can be used to adjust the measurement of vbat 102. Instead of the bandgap voltage, another known reference voltage may be used. System 100 measures another voltage vdd3 104. Vdd3 104 may include voltage from another power supply of the same device, such as a positive supply rail. Vdd3 104 may represent positive supply voltage from a field-effect transistor (FET)-based power supply. Vdd3 104 may be implemented by any known voltage. Vbat 102 may, directly or indirectly, provide power to vdd3 104. Each of vdd3 104 and vbat 102 may be pins of the same integrated circuit device.

[0010] In a further embodiment, system 100 may include a switch 114 that may optionally switch between measurement of vdd3 104 and vbat 102. Switch 114 may be controlled by control and calculation circuitry (CCC) 116. Switch 114 may be implemented in any suitable manner, such as by switching or routing circuitry. Switch 114 may control access to a sensor such a voltage sensor 106, labeled "Vbatmon" in FIGURE 1. Sensor 106 may be implemented in any suitable manner. In one embodiment, sensor 106 may route a voltage sense node from one of vdd3 104 or vbat 102 to an analog to digital converter (ADC) 110. ADC 110 may be implemented in any suitable manner to generate a digital value from an analog value. ADC 110 may output its value to CCC 116. Although a single instance of switch 114, sensor 106, and ADC 110, system 100 may be implemented with any suitable number and combination of these elements. For example, a switch may be omitted while multiple sensors 106 are each respectively connected to vbat 102 and vdd3 104, and furthermore each respectively connected to ADCs 110, which are each in turn connected to CCC 116.

[0011] CCC 116 may be configured to control operation of system 100 to correctly calculate, measure, and monitor voltage such as those from vbat 102. CCC 116 may be implemented in any suitable manner, such as by analog circuitry, digital circuitry, digital logic, instructions of execution in a processor, or any suitable combination thereof.

[0012] Vbat 102 may include a smaller or larger voltage range than vdd3 104, and as such one of vbat 102 or vdd3 104 may be adjusted according to the available range of ADC 110. In one embodiment, vdd3 104 may include voltages in the range of 1.71V to 3.63V. In another embodiment, vbat 102 may include voltages in the range of 2.0V to 3.63V. In such embodiments, as the full scale of ADC 110 is defined by vdd3 104 (with the wider voltage than vbat 102), then vbat 102 could have its scale increased with a higher, larger scale. In order to achieve a larger scale to match, for example, that of vdd3 104 (or any other range causing ADC 110 to be implemented with a wider range), system 100 may include any suitable mechanism. For example, system 100 may include a resistive divider to cause the voltage of vbat 102 to be divided in half. The actual value of vbat 102 would be later compensated for such a correction by, for example, multiplying by two. Another example of such system could be to add an additional capacitor along with parasitic capacitor 118 on ADC 110 input so further attenuate the signal.

[0013] However, system 100 may be implemented in a device with tight power requirements. For example, system 100 may be implemented in a device that includes a sleep or hibernation mode in which the total budget is 800nA. A resistive divider, even though configured to duty-cycle and turn once in ten minutes, can consume 25-50nA. Thus, the problems of the resistive divider may be addressed. Some solutions might use a larger resister in the resistive divider to address these problems. However, using a larger resister in the resistive divider to address these problems may further cause issues with a necessary larger area on die for the semiconductor device. Furthermore, longer time might be required to settle capacitors of ADC 110. In addition, this may cause additional shoot-through current. Some solutions might use a PMOS as resistor to address these problems, as a PMOS requires less area on die than other resistors. However, using a PMOS as a resister might require a longer settling time. Furthermore, the diode and transistor current consumption may burn quiescent current at a rate of, for example, 2-5uA at full-charge and -500nA at low-charge, or 3-10uA at higher voltages (such as above 2.5V). The algorithm to measure the absolute vbat 102 in such cases may include first determining bandgap / reference voltage of a device upon which system 100 resides. The bandgap / reference voltage may be measured by ADC 110 while CCC 116 detaches Vbatmon 106 and the left-hand of the circuit. A code value produced by ADC 110 corresponding to the bandgap / reference voltage mat be designated as Cx. The actual voltage represented by Cx (or other code values produced by CCC 116) may be determined through, for example, normalization according to the accuracy and range of ADC 110. For example, with a given range of 4,096 values (when ADC 110 is a twelve-bit converter), the code output of ADC 110 for measuring the bandgap / reference voltage (saved as Cx) might correspond to 1.2 volts in an example circuit. In other circuits, the bandgap / reference voltage may be different. A battery or super-capacitor measurement of vbat 102 may be designated, in terms of a code output of ADC 110, as Cy. Thus, in other systems such as those that use resistive dividers that fail to take into account the code values of vdd3 104, the actual (as opposed to measured) value of vbat 102 may be given as (VBAT = 2*1.2 / Cx*Cy).

[0014] According to various embodiments, instead of a resistive divider which has a shoot-through current, a charge-sharing from a capacitor is used to measure the battery or super-capacitor voltage. In one embodiment, system 100 may include a capacitor, such as Cbat 112 connected in series between switch 114 and ground. Such a Cbat 112 may be used to counteract a shoot-through current that may occur in system 100. However, inclusion of Cbat 112 may require calculations to determine that absolute vbat 102. Such calculations may be performed by CCC 116 to adjust measurements otherwise made by ADC 110.

[0015] The adjustments needed to determine the absolute value of vbat 102 may arise from the fact that sensor 106 is placed at a shared channel of ADC 110 which includes a variable parasitic 118. The value of the parasitic 118, in terms of capacitance, is an attenuation factor that is dependent upon system parasitics and process variations, which may vary from device to device. Thus, in some embodiments, parasitic 118 cannot be determined in advance and accounted-for.

[0016] The attenuated voltage due to parasitic 118 may be given by C VBAT / (C VBAT +C PAR +C ADC ). However, as discussed above, the parasitic capacitance due to parasitic 118 might not be known. Thus, it is impossible to calculate the absolute value of vbat 102 with this formula.

[0017] When using two capacitors the following equations should be considered: V m 1 = C b 1 ⋅ C A + C p C b 1 + C A + C p = M 1 ; V m 2 = C b 2 ⋅ C A + C p C b 2 + C A + C p = M 2 ; V bg = M bg V m 1 − V m 2 V m 1 + V m 2 = C b 1 ⋅ C A + C p C b 2 + C A + C p − C b 2 ⋅ C A + C p C b 1 + C A + C p C b 1 ⋅ C A + C p C b 2 + C A + C p + C b 2 ⋅ C A + C p C b 1 + C A + C p = C b 1 ⋅ C b 2 + C A + C p − C b 2 ⋅ C b 1 + C A + C p C b 1 ⋅ C b 2 + C A + C p + C b 2 ⋅ C b 1 + C A + C p = C b 1 − C b 2 ⋅ C A + C p 2 C b 1 C b 2 + C A + C p C b 1 + C b 2 C b 1 = 2 × C b 2 = 2 C b = C b C A + C p 2 C b 2 + 3 C b C A + C p = C A + C p 2 C b + 3 C A + C p

[0018] In the claimed invention, system 100 performs three voltage measurements, one of a bandgap / reference, a second to capacitor charged with vdd3 104, and a third of a capacitor charged with vbat 102. The code value of the measured voltage of the capacitor charged with vdd3 104 may be designated as Cz. System 100 thus solves problems associated with the impossibility of calculating the absolute value of vbat 102 as described above when using other methods. In another, further embodiment, system 100 may thus eliminate quiescent current. In yet another embodiment, system 100 may add a step to the battery or super-capacitor voltage measurement. The measurements and calculations may be directed by, for example, CCC 116.

[0019] In one embodiment, the actual value of vbat 102 may be defined by 1.2 * (2 N< ) *Cy / (Cz * Cx), where N is the resolution of ADC 110.

[0020] In the claimed invention, the known bandgap / reference voltage of a system including ADC 110 is measured and its code value assigned to the value of Cx. Furthermore, the number of bits of ADC 110 may be defined by N and may be, for example, twelve, leading to the factor of 4,096. The factor of 1.2 may arise from the known (as opposed to measured) bandgap / reference voltage value of, for example, 1.2V.

[0021] In another embodiment, the voltage of vbat 102 may be measured by or at sensor 106 when switch 114 is switched to vbat 102. The code value of the measured voltage of vbat 102 is assigned to the value of Cy. The measurement of vbat 102 is made when Cbat 112 is charged with voltage from vbat 102.

[0022] In yet another embodiment, the voltage of vdd3 104 may be measured by or at sensor 106 when switch 114 is switched to vdd3 104. The code vale of the measured voltage of vdd3 104 is assigned to the value of Cz. The measurement of vdd3 104 is made when Cbat 112 is charged with voltage from vdd3 104. As discussed above, any known reference voltage may be used for vdd3 104.

[0023] The calculation of the actual voltage of the battery or super-capacitor, given by 1.2 * (2 N< ) *Cy / (Cz * Cx), may be performed by, for example, CCC 116. The calculation may be performed through any suitable adder, multiplier, or divisor circuits or instructions. The result of the calculation may be stored in memory, a register, or other suitable destination.

[0024] FIGURE 2 is an illustration of an example of a circuit for providing a resistive divider to divide battery or super-capacitor voltage according to the range required by an ADC. The divider may be accomplished by a transistor network. However, as discussed above, this may cause a quiescent current of 3-10uA at higher voltages (>2.5V). Thus, in embodiments of the claimed invention, the system 100 of FIGURE 1 is used instead, wherein a capacitor is used between the battery or super-capacitor voltage and ground, and the voltage of the battery or super-capacitor is measured and adjusted.

[0025] FIGURE 3 illustrates an example of a method 300 for measuring a voltage, in accordance with embodiments of the present disclosure.

[0026] At 305, a battery or super-capacitor to be measured may be switched so as to be applied to a capacitor. At 310, the capacitor may be charged by the battery or super-capacitor. At 315, the voltage across the capacitor, representing the voltage of the battery or super-capacitor, is measured. This measurement, in terms of a code value, is defined as Cy.

[0027] At 320, a known voltage may be switched to as to be applied to the capacitor. At 325, the capacitor may be charged by the battery or super-capacitor. At 330, the voltage across the capacitor representing the known voltage, is measured. This measurement, in terms of a code value, is defined as Cz.

[0028] At 335, a bandgap / reference voltage is measured with respect to a system on which the ADC making the measurements resides. This measurement, in terms of a code value, is defined as Cx.

[0029] At 340, the real, or actual, battery or super-capacitor voltage may be calculated and compensated for parasitic capacitance. The real battery or super-capacitor voltage may be defined as 1.2 * 4096 * Cy / (Cx * Cz). The factor of 1.2 may be the known bandgap / reference voltage value. The factor of 4,096 may be derived from the size of an ADC performing the measurements of method 300. Thus, these factors may vary for different hardware. Method 300 may be optionally repeated or may terminate.

[0030] Method 300 may be implemented by any suitable mechanism, such as by system 100 and the elements of FIGURE 1. In particular, method 300 may be operated by CCC 116. Method 300 may optionally repeat or terminate at any suitable point. Moreover, although a certain number of steps are illustrated to implement method 300, the steps of method 300 may be optionally repeated, performed in parallel or recursively with one another, omitted, or otherwise modified as needed, the resulting modified method not necessarily forming part of the claimed subject-matter.

[0031] For example, the groups of steps 305 / 310 / 315, 320 / 325 / 330, and 335 may be performed in any order. Method 300 may initiate at any suitable point, such as at 305.

Claims

1. A capacitive voltage divider (CVD) method for measuring a voltage using a capacitor (112) and an analog-to-digital converter (ADC) (110) comprising a sample and hold capacitor, comprising the steps of: measuring a bandgap or reference voltage by the ADC (110) and determining a first code value of the bandgap or reference voltage; charging the capacitor (112) to a voltage to be measured and coupling the charged capacitor (112) in parallel with the sample and hold capacitor of the ADC (110) to share a sampled charge to perform a first CVD measurement thereby determining a second code value; and charging the capacitor (112) to a known second voltage and coupling the charged capacitor (112) in parallel with the sample and hold capacitor of the ADC (110) to share a sampled charge to perform a second CVD measurement thereby determining a third code value; characterized in determining the voltage to be measured by calculating Vbg * 2N * Cy / (Cz*Cx), wherein Vbg represents the bandgap or reference voltage, N represents the number of bits of the ADC (110), Cx represents the first code value, Cy represents the second code value, and Cz represents the third code value, and wherein the second voltage defines the full scale of the ADC (110).

2. The method of Claim 1, wherein the bandgap voltage is 1.2V.

3. The method of Claim 1 or 2, wherein N=12 and 2N = 4096.

4. The method of one of the preceding Claims, wherein the steps are performed by a control and calculation circuitry (116).

5. The method of one of the preceding Claims, wherein performing analog to digital conversion to find the voltage to be measured produces no quiescent current.

6. The method one of the preceding Claims, wherein the known second voltage is a supply voltage.

7. A voltage measurement circuit, comprising: a capacitive voltage divider (CVD) measurement circuit (100) comprising a capacitor (112), a switching circuit (114) and an analog-to-digital converter (ADC) comprising a sample and hold capacitor; and a control circuit (116) configured to: measure, with the ADC (110), a bandgap or reference voltage thereby determining a first code value; charge the capacitor (112) to a voltage to be measured and couple the charged capacitor (112) in parallel with the sample and hold capacitor of the ADC (110) to share a sampled charge to perform a first CVD measurement thereby determining, with the ADC, a second code value; and to charge the capacitor (112) to a known second voltage and couple the charged capacitor (112) in parallel with the sample and hold capacitor of the ADC (110) to perform a second CVD measurement thereby determining, with the ADC, a third code value; characterized in that the control circuit (116) is further configured to: determine the voltage by calculating Vbg * 2N * Cy / (Cz*Cx), wherein Vbg represents the bandgap or reference voltage, N represents the number of bits of the ADC (110), Cx represents the first code value, Cy represents the second code value, and Cz represents the third code value, and wherein the second voltage defines the full scale of the ADC (110).

8. The voltage measurement circuit of Claim 7, wherein the bandgap voltage is 1.2V.

9. The voltage measurement circuit of Claim 7 or 8, wherein N=12 and 2N = 4096.

10. The voltage measurement circuit of one of Claims 7 - 9, wherein the CVD measurement circuit comprises a parasitic capacitance (Cpar).

11. The voltage measurement circuit of one of Claims 7 - 10, wherein performing the analog to digital conversion produces no quiescent current.

12. The voltage measurement circuit of one of Claims 7-11, wherein the known second voltage is a supply voltage.

13. A microcontroller, comprising a voltage measurement circuit according to one of the preceding claims 7-12.