Battery voltage acquisition system and control method thereof

By using the internal resources of the MCU, the reference voltage of the ADC and the voltage under test are determined, the battery voltage is accurately collected, and the cost and space problems caused by the introduction of external components in the prior art are solved, thereby improving the flexibility and compatibility of acquisition.

CN119667272APending Publication Date: 2025-03-21GUANGZHOU HONGBO MICROELECTRONICS TECH CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202411811730.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The prior art requires the use of external components such as high-precision reference voltage sources or low dropout linear regulators when collecting battery voltages, resulting in increased costs and severe board space.

Method used

By using the LDO output module, ADC connection module, ADC output module and battery voltage calculation module inside the MCU, the reference voltage of the ADC and the measured terminal voltage are determined according to the connection method between the battery voltage and the ADC and the output voltage of the built-in LDO, thereby achieving accurate acquisition of the battery voltage.

Benefits of technology

This solution eliminates the dependence on external components, realizes accurate acquisition of battery voltage, reduces cost and circuit complexity, and improves acquisition flexibility and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119667272A_ABST
    Figure CN119667272A_ABST
Patent Text Reader

Abstract

The invention discloses a battery voltage acquisition system and a control method thereof, and belongs to the technical field of electronic circuits. The method comprises the steps that an LDO output module is used for obtaining the output voltage of a built-in LDO; the ADC connection module is used for determining the reference voltage of the ADC and the terminal voltage to be measured according to the connection mode of the battery voltage and the ADC and the output voltage; the ADC output module is used for acquiring an output value determined by the ADC according to the reference voltage and the terminal voltage to be measured; and the battery voltage calculation module is used for determining the battery voltage according to the reference voltage, the measured terminal voltage and the output value. According to the technical scheme, the battery voltage is determined according to the connection mode of the battery voltage and the ADC, the output voltage of the built-in LDO and the output numerical value of the ADC, internal resources of the MCU can be fully utilized, dependence on external elements can be eliminated, accurate acquisition of the battery voltage is achieved, the flexibility and compatibility of battery voltage acquisition are improved, and the battery voltage acquisition efficiency is improved. And the cost and the circuit complexity are effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic circuits, and specifically relates to a battery voltage acquisition system and a control method thereof. Background Art

[0002] Real-time acquisition and monitoring of battery voltage is crucial to the stable operation of electronic devices. Battery management functions generally cover several important aspects such as battery power monitoring, overcharge protection, undervoltage detection, and power estimation. The effective implementation of these functions is often highly dependent on the accurate acquisition of battery voltage by the analog-to-digital converter built into the microcontroller. Therefore, the acquisition accuracy of the analog-to-digital converter has become the core key factor in acquiring battery voltage.

[0003] Currently, it is generally necessary to use a high-precision reference voltage source or a low-dropout linear regulator to build a stable voltage reference for the analog-to-digital converter. However, the introduction of such external components will not only significantly increase the cost, but also occupy a considerable portion of the circuit board space, which is undoubtedly a very severe challenge for the design of small electronic devices.

[0004] Therefore, how to achieve accurate acquisition of power supply voltage without introducing external components is an urgent problem to be solved by people in this field. Summary of the invention

[0005] The embodiment of the present application provides a battery voltage acquisition system and a control method thereof, which fully utilizes the internal resources of the MCU and eliminates the dependence on external components. It not only realizes the accurate acquisition of the battery voltage, improves the flexibility and compatibility of the battery voltage acquisition, but also effectively reduces the cost and circuit complexity.

[0006] In a first aspect, an embodiment of the present application provides a battery voltage acquisition system, wherein the circuit system comprises:

[0007] LDO output module, used to obtain the output voltage of the built-in LDO;

[0008] An ADC connection module, used to determine the reference voltage of the ADC and the voltage of the measured terminal according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage division connection;

[0009] An ADC output module, used for obtaining an output value determined by the ADC according to the reference voltage and the voltage of the measured end;

[0010] The battery voltage calculation module is used to determine the battery voltage according to the reference voltage, the measured terminal voltage and the output value.

[0011] In a second aspect, an embodiment of the present application provides a control method for a battery voltage acquisition system, the method comprising:

[0012] Get the output voltage of the built-in LDO through the LDO output module;

[0013] Determine the reference voltage of the ADC and the voltage of the terminal to be measured according to the connection mode between the battery voltage and the ADC and the output voltage through the ADC connection module; wherein the connection mode includes direct connection and voltage division connection;

[0014] Acquire, through an ADC output module, an output value determined by the ADC according to the reference voltage and the voltage of the measured terminal;

[0015] The battery voltage is determined by a battery voltage calculation module according to the reference voltage, the measured terminal voltage and the output value.

[0016] In the embodiment of the present application, the LDO output module is used to obtain the output voltage of the built-in LDO; the ADC connection module is used to determine the reference voltage of the ADC and the voltage of the measured end according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage-dividing connection; the ADC output module is used to obtain the output value determined by the ADC according to the reference voltage and the voltage of the measured end; the battery voltage calculation module is used to determine the battery voltage according to the reference voltage, the voltage of the measured end and the output value. This technical solution can make full use of the internal resources of the MCU and eliminate the dependence on external components by determining the battery voltage according to the connection mode between the battery voltage and the ADC, the output voltage of the built-in LDO and the output value of the ADC, which not only realizes the accurate acquisition of the battery voltage, improves the flexibility and compatibility of the battery voltage acquisition, but also effectively reduces the cost and circuit complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a structural schematic diagram of a battery voltage acquisition system provided in Example 1 of the present application;

[0018] Figure 2 is a structural diagram of a battery voltage acquisition system provided in Embodiment 2 of the present application;

[0019] Figure 3 This is a circuit diagram showing a direct connection between a battery voltage and an ADC provided in Embodiment 2 of the present application;

[0020] Figure 4 is a structural diagram of a battery voltage acquisition system provided in Embodiment 3 of the present application;

[0021] Figure 5 This is a circuit diagram showing the connection between the battery voltage and the ADC voltage divider provided in the third embodiment of the present application;

[0022] Figure 6 is a circuit diagram of a first voltage divider module provided in Embodiment 3 of the present application;

[0023] Figure 7 is a circuit diagram of a second voltage divider module provided in Embodiment 3 of the present application;

[0024] Figure 8 is a structural diagram of a battery voltage acquisition system provided in Embodiment 4 of the present application;

[0025] Fig. 9 This is a circuit diagram of a filter voltage regulator module provided in the fourth embodiment of the present application when the battery voltage is directly connected to the ADC;

[0026] Fig.10 It is a flow chart of the control method of the battery voltage acquisition system provided in the fifth embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0030] The battery voltage acquisition system and control method thereof provided in the embodiment of the present application are described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0031] Embodiment 1

[0032] Figure 1 Schematic diagram of the structure of the battery voltage acquisition system provided in the first embodiment of the present application. Figure 1 As shown, the battery voltage acquisition system includes:

[0033] An LDO output module 110 is used to obtain the output voltage of a built-in LDO;

[0034] The ADC connection module 120 is used to determine the reference voltage of the ADC and the voltage of the measured terminal according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage division connection;

[0035] An ADC output module 130, configured to obtain an output value determined by the ADC according to the reference voltage and the voltage of the measured terminal;

[0036] The battery voltage calculation module 140 is used to determine the battery voltage according to the reference voltage, the measured terminal voltage and the output value.

[0037] First of all, this application is applicable to scenarios where the battery voltage of the battery needs to be collected, for example, scenarios where the operating status of the battery needs to be detected based on the battery voltage. Based on the above usage scenarios, it can be understood that the execution subject of this application can be an MCU (Micro-Controller Unit).

[0038] A battery is a device that can convert chemical energy into electrical energy. Among them, lithium batteries are widely used in various terminal products, such as smart bracelets, sensor nodes, and portable electronic devices, due to their high energy density, long cycle life, and low self-discharge rate.

[0039] The LDO output module 110 is used to obtain the output voltage of the built-in LDO.

[0040] LDO (Low Dropout Regulator) adjusts its internal resistance to keep the output voltage stable when the input voltage and load current change. Compared with traditional linear regulators, its significant feature is that it can still work normally when the input-output voltage difference is very low. Among them, built-in LDO can refer to the LDO built into the MCU.

[0041] The output voltage of the built-in LDO refers to the stable DC voltage value obtained at its output end after being regulated by the built-in LDO. In this solution, the output voltage of the built-in LDO can be a stable 1.2V (volts).

[0042] The output voltage of the built-in LDO mainly depends on the internal reference voltage of the built-in LDO, that is, the output voltage of the built-in LDO can be preset and stored, so the output voltage of the built-in LDO can be directly read.

[0043] The ADC connection module 120 is used to determine the reference voltage of the ADC and the voltage of the measured terminal according to the connection mode between the battery voltage and the ADC and the output voltage.

[0044] Battery voltage refers to the potential difference between the positive and negative electrodes of the battery. It is a physical quantity that measures the uniformity of charge distribution inside the battery.

[0045] ADC (Analog-to-Digital Converter) is an electronic device or circuit that converts analog signals into digital signals. In this solution, ADC is also built into the MCU. Furthermore, the reference voltage of ADC is a stable and known voltage reference, which provides a quantitative standard for the ADC conversion process; the measured terminal voltage of ADC refers to the analog voltage signal that needs to be converted into a digital quantity by ADC.

[0046] The connection mode of the battery voltage and the ADC may refer to the battery voltage as the power supply mode of the MCU. The battery voltage as the power supply mode of the MCU depends on the size of the battery voltage and the size of the operating voltage of the MCU. The connection modes of the battery voltage and the ADC include direct connection and voltage-dividing connection. Accordingly, the connection mode of the battery voltage and the ADC is direct connection, which may refer to the situation where the battery voltage is lower than the operating voltage of the MCU and the battery voltage can directly power the MCU; the connection mode of the battery voltage and the ADC is voltage-dividing connection, which may refer to the situation where the battery voltage is higher than the operating voltage of the MCU and the battery voltage needs to be divided so that the power supply voltage received by the MCU is lower than the operating voltage.

[0047] The reference voltage of the ADC and the voltage of the measured end are determined according to the connection mode between the battery voltage and the ADC and the output voltage. When the connection mode between the battery voltage and the ADC is a direct connection, the battery voltage is determined as the reference voltage of the ADC and the output voltage is determined as the voltage of the measured end of the ADC. When the connection mode between the battery voltage and the ADC is a voltage division connection, the output voltage is determined as the reference voltage of the ADC and the first voltage division result of the battery voltage is determined as the voltage of the measured end of the ADC.

[0048] The ADC output module 130 is used to obtain an output value determined by the ADC according to the reference voltage and the voltage at the measured end.

[0049] The output value of the ADC is a digital quantity, which represents the result obtained by quantizing the input voltage of the measured end according to the reference voltage.

[0050] The principle formula of ADC determining the output value based on the reference voltage and the voltage at the measured end is:

[0051]

[0052] The output value of ADC can be directly obtained by MCU.

[0053] The battery voltage calculation module 140 is used to determine the battery voltage according to the reference voltage, the measured terminal voltage and the output value.

[0054] The battery voltage can be determined according to the reference voltage, the voltage at the measured end and the output value. The order parameters of the ADC can be obtained, and the output resolution of the ADC can be determined according to the order parameters. The battery voltage can be determined according to the reference voltage, the voltage at the measured end, the output value and the output resolution.

[0055] In this technical solution, optionally, the battery voltage calculation module includes:

[0056] An ADC parameter acquisition unit, used to acquire an order parameter of the ADC and determine an output resolution of the ADC according to the order parameter;

[0057] The battery voltage calculation unit is used to determine the battery voltage according to the reference voltage, the measured terminal voltage, the output value and the output resolution.

[0058] The order parameter of ADC refers to the number of bits of ADC, that is, the number of bits of binary number used to represent the output value. The order parameter of ADC mainly depends on the size of the capacitor array inside the ADC or the number of cascaded stages, that is, the order parameter of ADC can be pre-set and stored, so the order parameter of ADC can be directly read.

[0059] The output resolution of an ADC refers to the number of different digital values ​​that the ADC can obtain after discretizing the analog signal, reflecting the degree of precision of the ADC in quantizing the analog signal. The output resolution of an ADC can be determined based on the order parameter by using the following formula:

[0060] Output resolution = 2 阶数参数

[0061] For example, if the order parameter of the ADC is 12, the output resolution of the ADC is 4096.

[0062] The method of determining the battery voltage based on the reference voltage, the voltage at the measured end, the output value and the output resolution can be adopted. When the connection mode of the battery voltage and the ADC is a direct connection, the output voltage and the output resolution are multiplied, and the product result is divided by the output value to obtain the battery voltage; when the connection mode of the battery voltage and the ADC is a voltage division connection, the output value, the output voltage and the voltage division ratio are multiplied, and the product result is divided by the output resolution to obtain the battery voltage.

[0063] The benefit of this arrangement of the present solution is that by determining the output resolution of the ADC according to the order parameters of the ADC, and determining the battery voltage according to the reference voltage, the voltage at the measured end, the output value, and the output resolution, the acquisition error caused by the difference in ADC characteristics can be reduced under different ADC configurations and application scenarios, and the accuracy of the determined battery voltage can be improved.

[0064] In the embodiment of the present application, the LDO output module is used to obtain the output voltage of the built-in LDO; the ADC connection module is used to determine the reference voltage of the ADC and the voltage of the measured end according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage-dividing connection; the ADC output module is used to obtain the output value determined by the ADC according to the reference voltage and the voltage of the measured end; the battery voltage calculation module is used to determine the battery voltage according to the reference voltage, the voltage of the measured end and the output value. This technical solution can make full use of the internal resources of the MCU and eliminate the dependence on external components by determining the battery voltage according to the connection mode between the battery voltage and the ADC, the output voltage of the built-in LDO and the output value of the ADC, which not only realizes the accurate acquisition of the battery voltage, improves the flexibility and compatibility of the battery voltage acquisition, but also effectively reduces the cost and circuit complexity.

[0065] Embodiment 2

[0066] Figure 2This is a schematic diagram of the structure of the battery voltage acquisition system provided in the second embodiment of the present application. This solution makes a better improvement on the basis of the above embodiment, and the specific improvement is: the ADC connection module is specifically used to: when the connection mode between the battery voltage and the ADC is a direct connection, determine the battery voltage as the reference voltage of the ADC, and determine the output voltage as the measured terminal voltage of the ADC; wherein the battery voltage is also used to provide electrical energy.

[0067] like Figure 2 As shown, the battery voltage acquisition system includes:

[0068] LDO output module 210, used to obtain the output voltage of the built-in LDO;

[0069] The ADC connection module 220 is used to determine the reference voltage of the ADC and the voltage of the measured terminal according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage division connection;

[0070] An ADC output module 230, configured to obtain an output value determined by the ADC according to the reference voltage and the voltage of the measured terminal;

[0071] The battery voltage calculation module 240 is used to determine the battery voltage according to the reference voltage, the measured terminal voltage and the output value.

[0072] The ADC connection module 220 is specifically used for:

[0073] When the battery voltage is directly connected to the ADC, the battery voltage is determined as the reference voltage of the ADC, and the output voltage is determined as the measured terminal voltage of the ADC; wherein the battery voltage is also used to provide electrical energy.

[0074] Wherein, the battery voltage calculation module 240 includes:

[0075] An ADC parameter acquisition unit 2401 is used to acquire an order parameter of the ADC and determine an output resolution of the ADC according to the order parameter;

[0076] The battery voltage calculation unit 2402 is used to determine the battery voltage according to the reference voltage, the measured terminal voltage, the output value and the output resolution.

[0077] The connection between the battery voltage and the ADC is a direct connection, which means that the battery voltage is lower than the operating voltage of the MCU. The battery voltage can directly provide power to the MCU, and the battery voltage is higher than the output voltage at this time. The higher voltage is taken as the reference voltage of the ADC, and the lower voltage is taken as the measured end voltage of the ADC. That is, the battery voltage is determined as the reference voltage of the ADC, and the output voltage is determined as the measured end voltage of the ADC.

[0078] Figure 3 This is a circuit diagram showing a direct connection between the battery voltage and the ADC provided in the second embodiment of the present application. Figure 3 As shown, U1 represents the MCU in which the connection mode between the battery voltage and the ADC is directly connected, VDD represents the operating voltage of U1, ADC_VREF represents the reference voltage of the ADC, VBAT represents the power supply voltage, VDD and ADC_VREF are both connected to VBAT, ADC_CH_REF_1V2 represents the output voltage as the voltage of the measured end of the ADC, and GND represents the ground end.

[0079] In the technical solution, optionally, the battery voltage calculation unit is specifically used to:

[0080] The output voltage is multiplied by the output resolution, and the product is divided by the output value to obtain the battery voltage.

[0081] Substitute the battery voltage into the reference voltage, substitute the output voltage into the voltage of the measured end, and according to the principle formula of the ADC determining the output value according to the reference voltage and the voltage of the measured end, the following formula can be obtained:

[0082]

[0083]

[0084] That is, the output voltage is multiplied by the output resolution, and the product is divided by the output value to obtain the battery voltage.

[0085] The benefit of this arrangement of the present solution is that by multiplying the output voltage and the output resolution and dividing the product by the output value to obtain the battery voltage, the key parameters acquired during the ADC conversion process can be fully utilized to achieve accurate reverse calculation of the battery voltage in a concise and efficient mathematical calculation method. This method does not require complex additional hardware circuits or cumbersome multi-step measurement processes, and effectively reduces the complexity and cost of battery voltage acquisition.

[0086] The benefit of this arrangement of the present solution is that, by determining the battery voltage as the reference voltage of the ADC and the output voltage as the voltage at the measured end of the ADC when the battery voltage is directly connected to the ADC, the circuit structure can be simplified, the design of additional voltage reference source circuits can be reduced, the hardware cost and the space occupied by the circuit board can be reduced, and the reference voltage and the voltage at the measured end can be highly matched during the ADC conversion process, thereby effectively improving the acquisition accuracy and reliability of the battery voltage.

[0087] Embodiment 3

[0088] Figure 4 This is a schematic diagram of the structure of the battery voltage acquisition system provided in the third embodiment of the present application. This solution makes a better improvement on the basis of the above-mentioned first embodiment, and the specific improvement is: the ADC connection module is specifically used to: when the connection mode between the battery voltage and the ADC is a voltage division connection, determine the output voltage as the reference voltage of the ADC, and determine the first voltage division result of the battery voltage as the measured terminal voltage of the ADC; wherein the first voltage division result is less than the output voltage.

[0089] like Figure 4 As shown, the battery voltage acquisition system includes:

[0090] LDO output module 410, used to obtain the output voltage of the built-in LDO;

[0091] The ADC connection module 420 is used to determine the reference voltage of the ADC and the voltage of the measured terminal according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage division connection;

[0092] An ADC output module 430 is used to obtain an output value determined by the ADC according to the reference voltage and the voltage of the measured terminal;

[0093] The battery voltage calculation module 440 is used to determine the battery voltage according to the reference voltage, the measured terminal voltage and the output value.

[0094] The ADC connection module 420 is specifically used for:

[0095] When the connection mode between the battery voltage and the ADC is a voltage division connection, the output voltage is determined as the reference voltage of the ADC, and the first voltage division result of the battery voltage is determined as the measured terminal voltage of the ADC; wherein the first voltage division result is smaller than the output voltage.

[0096] Wherein, the battery voltage calculation module 440 includes:

[0097] An ADC parameter acquisition unit 4401 is used to acquire an order parameter of the ADC and determine an output resolution of the ADC according to the order parameter;

[0098] The battery voltage calculation unit 4402 is used to determine the battery voltage according to the reference voltage, the measured terminal voltage, the output value and the output resolution.

[0099] The connection between the battery voltage and the ADC is a voltage division connection, which means that the battery voltage is higher than the working voltage of the MCU, and the battery voltage cannot directly provide power to the MCU. One is to divide the battery voltage to obtain a first voltage division result, so that the first voltage division result is less than the output voltage, and the higher voltage is taken as the reference voltage of the ADC, and the lower voltage is taken as the measured end voltage of the ADC, that is, the output voltage is determined as the reference voltage of the ADC, and the first voltage division result is determined as the measured end voltage of the ADC; the second is to divide the battery voltage to obtain a second voltage division result, so that the second voltage division result is less than the working voltage of the MCU, and the second voltage division result provides power to the MCU.

[0100] Figure 5 This is a circuit diagram showing the connection between the battery voltage and the ADC voltage divider provided in the third embodiment of the present application. Figure 5 As shown, U2 represents the MCU in which the connection mode between the battery voltage and the ADC is a voltage division connection, VDD represents the operating voltage of U2, ADC_REF_1V2 represents the output voltage used as the reference voltage of the ADC, ADC_CH0 represents the measured terminal voltage of the ADC, ADC_VBAT represents the first voltage division result of the battery voltage, ADC_CH0 is connected to ADC_VBAT, and GND represents the ground terminal.

[0101] In this technical solution, optionally, the device further includes:

[0102] A first voltage dividing module, comprising at least one voltage dividing resistor, configured to divide the battery voltage to obtain a first voltage dividing result;

[0103] The second voltage division module includes at least one series diode, which is used to divide the battery voltage to obtain a second voltage division result; wherein the second voltage division result is used to provide electrical energy.

[0104] A resistor is a two-terminal electronic component made of resistive material and having a certain structure that can limit the flow of current in a circuit. A voltage divider resistor is a resistor used in a circuit to divide the input voltage in a certain proportion.

[0105] Figure 6 is a circuit diagram of the first voltage divider module provided in the third embodiment of the present application. Figure 6As shown, VBAT is the battery voltage, R1 and R2 are voltage-dividing resistors, ADC_VBAT is the first voltage-dividing result of the battery voltage, and GND is the ground terminal. Among them, R1 can be 750 kΩ (kilo ohms), and R2 can be 300 kΩ.

[0106] A diode is an electronic component with two electrodes that allows current to flow in only one direction. Series connection is a basic way of connecting circuits. In a series circuit, multiple components are connected one by one to form a single current path.

[0107] Figure 7 is a circuit diagram of the second voltage divider module provided in the third embodiment of the present application. Figure 7 As shown, B2_BAT is the battery power supply when the connection mode between the battery voltage and the ADC is a voltage division connection, VBAT is the battery voltage, GND is the ground terminal, D1 and D2 are diodes connected in series, and VDD is the second voltage division result of the battery voltage. Among them, D1 can be a diode of model M71N4007, and D2 can be a diode of model B5819WT.

[0108] The advantage of such a configuration of the present solution is that the battery voltage is divided by at least one voltage-dividing resistor to obtain a first voltage-dividing result, and at least one series diode is used to divide the battery voltage to obtain a second voltage-dividing result. The adjustability of the resistance value of the voltage-dividing resistor can be utilized to accurately obtain the first voltage-dividing result adapted to different measurement requirements and circuit conditions. At the same time, the unidirectional conductivity and specific voltage drop characteristics of the series diode can be used to effectively reduce the battery voltage and play an isolation and protection role, thereby preventing reverse current from damaging the battery and other circuit components, and improving the safety and reliability of the entire circuit.

[0109] In the technical solution, optionally, the battery voltage calculation unit is specifically used to:

[0110] The output value, the output voltage and the voltage division ratio are multiplied, and the product result is divided by the output resolution to obtain the battery voltage; wherein the voltage division ratio is the ratio of the battery voltage to the first voltage division result.

[0111] Substitute the output voltage into the reference voltage, substitute the first voltage division result of the power supply voltage into the voltage of the measured end, and according to the principle formula of the ADC determining the output value according to the reference voltage and the voltage of the measured end, the following formula can be obtained:

[0112]

[0113] The voltage division ratio is the ratio of the battery voltage to the first voltage division result. The voltage division ratio can be determined according to the resistance value of each voltage division resistor and the connection method between each voltage division resistor. It can be understood that:

[0114]

[0115]

[0116]

[0117]

[0118] That is, the output value, the output voltage and the voltage division ratio are multiplied, and the product is divided by the output resolution to obtain the battery voltage.

[0119] The benefit of this arrangement of the present invention is that by multiplying the output value, the output voltage and the voltage division ratio and dividing the product by the output resolution to obtain the battery voltage, the existing circuit parameter information can be fully utilized to accurately infer the battery voltage in a systematic and efficient calculation method under the voltage division connection architecture. This calculation method does not require additional complex measuring equipment or cumbersome measurement steps, and effectively reduces the complexity and cost of battery voltage acquisition.

[0120] The advantage of this arrangement of the present solution is that, by determining the output voltage as the reference voltage of the ADC and determining the first voltage division result of the battery voltage as the measured terminal voltage of the ADC when the battery voltage is connected to the ADC as a voltage division connection, it can flexibly adapt to a wider range of battery voltage inputs and avoid measurement errors caused by the battery voltage being too high and exceeding the ADC input range, as well as the risk of damaging the MCU.

[0121] Embodiment 4

[0122] Figure 8 This is a structural diagram of the battery voltage acquisition system provided in the fourth embodiment of the present application. This solution makes a better improvement on the basis of the above embodiments, and the specific improvement is that the device further includes: a dynamic calibration module for dynamically calibrating the output voltage according to the real-time temperature.

[0123] like Figure 8 As shown, the battery voltage acquisition system includes:

[0124] LDO output module 810, used to obtain the output voltage of the built-in LDO;

[0125] The ADC connection module 820 is used to determine the reference voltage of the ADC and the voltage of the measured terminal according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage division connection;

[0126] An ADC output module 830, configured to obtain an output value determined by the ADC according to the reference voltage and the voltage of the measured terminal;

[0127] A battery voltage calculation module 840, configured to determine the battery voltage according to the reference voltage, the measured terminal voltage and the output value;

[0128] The dynamic calibration module 850 is used to dynamically calibrate the output voltage according to the real-time temperature.

[0129] Temperature changes will cause the parameters of the semiconductor devices inside the LDO to change, thus causing the output voltage to change. Therefore, the output voltage of the LDO can be calibrated according to the temperature in advance, and the calibration data can be stored in the Flash area of ​​the MCU, so that the output voltage can be dynamically calibrated according to the calibration data and real-time temperature during actual use.

[0130] The benefit of this setting is that by dynamically calibrating the output voltage according to the real-time temperature, the output voltage deviation of the built-in LDO caused by temperature changes can be effectively compensated, and the stability and accuracy of the output voltage can be significantly improved, thereby ensuring the accuracy of the collected battery voltage.

[0131] In this technical solution, optionally, the device further includes:

[0132] The filtering and voltage stabilizing module includes at least one capacitor, and is used for filtering and stabilizing the battery voltage.

[0133] A capacitor is a component that stores charge. It is composed of two conductors that are close to each other but insulated from each other. Electric field energy can be stored between the two conductors. Its ability to store charge is measured by capacitance, and the unit can be μF (microfarad) and nF (nanofarad).

[0134] Fig. 9 1 is a circuit diagram of a filter voltage regulator module provided in the fourth embodiment of the present application when the battery voltage is directly connected to the ADC. Fig. 9 As shown in the figure, B1_BAT is the battery power supply when the connection mode between the battery voltage and the ADC is directly connected, VBAT is the battery voltage, GND is the ground terminal, and C4 and C5 are capacitors used to filter and stabilize the battery voltage. Among them, C4 can be 10μF and C5 can be 100nF.

[0135] Figure 6 C1 in Figure 7 C2 and C3 in the figure are both capacitors, which are used to filter and stabilize the battery voltage when the battery voltage is connected to the ADC voltage divider. Among them, C1 can be 100nF, C2 can be 10μF, and C3 can be 100nF.

[0136] The benefit of this arrangement is that by filtering and stabilizing the battery voltage through at least one capacitor, the operating voltage of the MCU and the voltage input to the ADC can be smoother and more stable, creating a good power supply environment for accurate sampling of the ADC, thereby improving the accuracy of battery voltage acquisition.

[0137] Embodiment 5

[0138] Fig.10 1 is a flow chart of a control method of a battery voltage acquisition system provided in Embodiment 5 of the present application. Fig.10 As shown, the specific steps include:

[0139] S1001, obtaining the output voltage of the built-in LDO through the LDO output module;

[0140] S1002, determining the reference voltage of the ADC and the voltage of the terminal to be measured by the ADC connection module according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage division connection;

[0141] S1003, obtaining, through an ADC output module, an output value determined by the ADC according to the reference voltage and the voltage of the measured terminal;

[0142] S1004. Determine the battery voltage according to the reference voltage, the measured terminal voltage and the output value by a battery voltage calculation module.

[0143] In an embodiment of the present application, the output voltage of the built-in LDO is obtained through the LDO output module; the reference voltage and the measured terminal voltage of the ADC are determined through the ADC connection module according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage-dividing connection; the output value determined by the ADC according to the reference voltage and the measured terminal voltage is obtained through the ADC output module; the battery voltage is determined according to the reference voltage, the measured terminal voltage and the output value through the battery voltage calculation module. The control method of the above-mentioned battery voltage acquisition system can make full use of the internal resources of the MCU and eliminate the dependence on external components by determining the battery voltage according to the connection mode between the battery voltage and the ADC, the output voltage of the built-in LDO and the output value of the ADC, which not only realizes the accurate acquisition of the battery voltage, but also improves the flexibility and compatibility of the battery voltage acquisition, and effectively reduces the cost and circuit complexity.

[0144] The control method of the battery voltage acquisition system provided in the embodiment of the present application corresponds to the battery voltage acquisition system provided in the above embodiment, has the same functional modules and beneficial effects, and will not be described again here to avoid repetition.

[0145] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0147] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0148] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A battery voltage acquisition system, characterized in that: The battery voltage acquisition system comprises: LDO output module, used to obtain the output voltage of the built-in LDO; An ADC connection module, used to determine the reference voltage of the ADC and the voltage of the measured terminal according to the connection mode between the battery voltage and the ADC and the output voltage; wherein the connection mode includes direct connection and voltage division connection; An ADC output module, used for obtaining an output value determined by the ADC according to the reference voltage and the voltage of the measured end; The battery voltage calculation module is used to determine the battery voltage according to the reference voltage, the measured terminal voltage and the output value.

2. The battery voltage acquisition system according to claim 1, characterized in that: The battery voltage calculation module comprises: An ADC parameter acquisition unit, used to acquire an order parameter of the ADC and determine an output resolution of the ADC according to the order parameter; The battery voltage calculation unit is used to determine the battery voltage according to the reference voltage, the measured terminal voltage, the output value and the output resolution.

3. The battery voltage acquisition system according to claim 2, characterized in that: The ADC connection module is specifically used for: When the battery voltage is directly connected to the ADC, the battery voltage is determined as the reference voltage of the ADC, and the output voltage is determined as the measured terminal voltage of the ADC; wherein the battery voltage is also used to provide electrical energy.

4. The battery voltage acquisition system according to claim 3, characterized in that: The battery voltage calculation unit is specifically used for: The output voltage is multiplied by the output resolution, and the product is divided by the output value to obtain the battery voltage.

5. The battery voltage acquisition system according to claim 2, characterized in that: The ADC connection module is specifically used for: When the connection mode between the battery voltage and the ADC is a voltage division connection, the output voltage is determined as the reference voltage of the ADC, and the first voltage division result of the battery voltage is determined as the measured terminal voltage of the ADC; wherein the first voltage division result is smaller than the output voltage.

6. The battery voltage acquisition system according to claim 5, characterized in that: The battery voltage calculation unit is specifically used for: The output value, the output voltage and the voltage division ratio are multiplied, and the product result is divided by the output resolution to obtain the battery voltage; wherein the voltage division ratio is the ratio of the battery voltage to the first voltage division result.

7. The battery voltage acquisition system according to claim 5, characterized in that: The device also includes: A first voltage dividing module, comprising at least one voltage dividing resistor, configured to divide the battery voltage to obtain a first voltage dividing result; The second voltage division module includes at least one series diode, which is used to divide the battery voltage to obtain a second voltage division result; wherein the second voltage division result is used to provide electrical energy.

8. The battery voltage acquisition system according to claim 1, characterized in that: The device also includes: The dynamic calibration module is used to dynamically calibrate the output voltage according to the real-time temperature.

9. The battery voltage acquisition system according to claim 1, characterized in that: The device also includes: The filtering and voltage stabilizing module includes at least one capacitor, and is used for filtering and stabilizing the battery voltage.

10. A control method for a battery voltage acquisition system, characterized in that: The method comprises: Get the output voltage of the built-in LDO through the LDO output module; Determine the reference voltage of the ADC and the voltage of the terminal to be measured according to the connection mode between the battery voltage and the ADC and the output voltage through the ADC connection module; wherein the connection mode includes direct connection and voltage division connection; Acquire, through an ADC output module, an output value determined by the ADC according to the reference voltage and the voltage of the measured terminal; The battery voltage is determined by a battery voltage calculation module according to the reference voltage, the measured terminal voltage and the output value.

Citation Information

Patent Citations

  • Battery voltage detecting device in serially-connected battery pack and method of battery voltage detecting device

    CN102162834A

  • Battery voltage detecting circuit and method

    CN105699904A

  • Battery voltage acquisition system, acquisition control system and acquisition control method

    CN107221719A

  • Battery voltage measurement device and measurement method thereof

    CN110673044A

  • Methods and systems for managing multi-cell batteries

    CN111344582A