Battery electric quantity measurement control circuit and electronic equipment

By setting up a measurement control circuit between the battery and the fuel gauge, and using the processor's GPIO interface to control the fuel gauge to reset after power failure, the problem of the fuel gauge getting stuck and unable to communicate is solved, enabling a repair method that does not require battery removal and reducing the difficulty of repair.

CN120891402APending Publication Date: 2025-11-04VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511128102.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-13
Publication Date
2025-11-04

AI Technical Summary

Technical Problem

In the existing technology, when the fuel gauge is stuck and cannot communicate normally with the processor, it is very inconvenient to repair electronic equipment. It is necessary to remove the battery cover and re-remove the battery to restore its operation.

Method used

A measurement control circuit is set between the battery and the fuel gauge. The measurement control circuit is controlled by the processor's general-purpose input/output interface to first turn off and then turn on, so as to realize the power-off reset of the fuel gauge and restore normal operation.

Benefits of technology

The fuel gauge can be restored to normal operation without removing the battery cover, reducing the difficulty of maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120891402A_ABST
    Figure CN120891402A_ABST
Patent Text Reader

Abstract

The invention discloses a battery electric quantity measurement control circuit and electronic equipment, the circuit comprises a battery and a first control circuit, the battery is electrically connected with the first control circuit, the first control circuit comprises a processor, a measurement control circuit and a voltameter, and the voltameter is used for collecting electrical parameters of the battery; wherein the voltameter is electrically connected with the battery through the measurement control circuit, the processor is electrically connected with the measurement control circuit through a universal input and output interface, and the processor is in communication connection with the voltameter; and the processor controls the measurement control circuit to be switched off and then switched on through the universal input / output interface under the condition that the electrical parameters acquired by the voltameter are not acquired, so as to control the voltameter to perform power-down reset.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of electronics, and particularly relates to a battery power measurement control circuit and an electronic device. BACKGROUND

[0002] With the rapid development of electronic technology, electronic devices have been widely applied. In electronic devices, a power gauge is usually used to monitor the electrical parameters of a battery, and the monitored electrical parameters are transmitted to a processor through a protocol, so that the processor calculates the battery power by using the electrical parameters monitored by the power gauge.

[0003] At present, the power gauge can be welded on a mainboard and electrically connected with the battery through a Board To Board (BTB) connector, so that the power gauge is directly powered by the battery. However, when the power gauge is stuck and cannot normally communicate with the processor, in order to restore the normal operation of the power gauge, the power gauge can only be powered off and powered on again by re-docking the battery, which makes the maintenance very inconvenient. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a battery power measurement control circuit and an electronic device, which solve the technical problem that the electronic device is very inconvenient to maintain when the power gauge is stuck and cannot normally communicate with the processor, and can reduce the maintenance difficulty of the electronic device.

[0005] In a first aspect, the embodiments of the present application provide a battery power measurement control circuit, comprising: a battery and a first control circuit, the battery being electrically connected with the first control circuit, the first control circuit comprising a processor, a measurement control circuit and a power gauge, the power gauge being configured to collect electrical parameters of the battery; wherein,

[0006] The power gauge is electrically connected with the battery through the measurement control circuit, the processor is electrically connected with the measurement control circuit through a general-purpose input-output interface, and the processor is in communication connection with the power gauge.

[0007] The processor controls the measurement control circuit to be turned off first and then turned on through the general-purpose input-output interface in a case where the electrical parameters collected by the power gauge are not acquired, so as to control the power gauge to be powered off and reset.

[0008] In a second aspect, the embodiments of the present application provide an electronic device comprising the battery power measurement control circuit as described in the first aspect.

[0009] In the embodiment of the present application, the measurement control circuit is arranged between the battery and the battery gauge, and the measurement control circuit is controlled by the general-purpose input / output interface of the processor to be turned off and then turned on in the case that the electrical parameter collected by the battery gauge is not acquired, so that when the battery gauge is stuck and cannot normally communicate, the processor of the electronic device can directly control the battery gauge to power off and then power on through the general-purpose input / output interface (GPIO), so as to restore normal work, which can reduce the difficulty of maintenance without disassembling the battery cover and rebucking the battery. BRIEF DESCRIPTION OF DRAWINGS

[0010] Figure 1 is an architecture diagram of the battery power measurement control circuit provided by the embodiment of the present application;

[0011] Figure 2 is an architecture diagram of the battery power measurement control circuit in the related art;

[0012] Figure 3 is a structural schematic diagram of the battery power measurement control circuit in the related art;

[0013] Figure 4 is a structural schematic diagram of the battery power measurement control circuit provided by the embodiment of the present application;

[0014] Figure 5 is a second structural schematic diagram of the battery power measurement control circuit provided by the embodiment of the present application. DETAILED DESCRIPTION

[0015] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0016] The terms "first", "second", and the like 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 terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", and the like are generally of a kind and are not limited to the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in an "or" relationship.

[0017] The battery power measurement and control circuit provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0018] Figure 1 This is an architectural diagram of the battery power measurement and control circuit provided in an embodiment of this application, such as... Figure 1 As shown, the battery power measurement and control circuit includes a battery 11 and a first control circuit 12. The battery 11 is electrically connected to the first control circuit 12. The first control circuit 12 includes a processor 121, a measurement and control circuit 122, and a fuel gauge 123. The fuel gauge 123 is used to collect the electrical parameters of the battery 11.

[0019] The fuel gauge 123 is electrically connected to the battery 11 through the measurement and control circuit 122, and the processor 121 is electrically connected to the measurement and control circuit 122 through a general-purpose input / output interface. The processor is also communicatively connected to the fuel gauge 123.

[0020] If the processor 121 fails to acquire the electrical parameters collected by the fuel gauge 123, it controls the measurement control circuit 122 to first turn off and then turn on through the general-purpose input / output interface, so as to control the fuel gauge 123 to perform a power-off reset.

[0021] In this embodiment, the battery has charging and discharging capabilities and its function is to provide power to electronic devices such as mobile phones and tablets. The battery supplies power to the fuel gauge and is also the object monitored by the fuel gauge.

[0022] The fuel gauge can be a system-side fuel gauge, soldered onto the motherboard and electrically connected to the battery via a BTB connector on the motherboard, directly powered by the battery. Its function is to collect electrical parameters such as the voltage across the battery terminals and the current flowing into or out of the battery, calculate the battery's charge level using an internal algorithm, and transmit the collected electrical parameters to the processor via a protocol, allowing the processor to calculate the battery's charge level. In some embodiments, the initial battery charge level can be obtained by querying a voltage-charge curve.

[0023] The fuel gauge can communicate with the processor via a protocol and send the collected electrical parameters to the processor.

[0024] In related technologies, the system-side fuel gauge is directly powered by a battery, and the two are directly connected via a BTB connector, such as... Figure 2 and 3 As shown. Among them, as Figure 3As shown, CELL refers to a battery, the voltage across the battery is VCELL, the system-side battery gauge is powered through the BAT pin and the VSS pin, and the voltage between the two pins is also collected, and the battery capacity is calculated by querying the voltage-capacity curve. When the battery gauge is stuck and cannot communicate normally, the system-side battery gauge can only be powered off and powered on again by re-attaching the battery, so as to restore normal work, which is very inconvenient to maintain.

[0025] In the embodiment, the first control circuit is provided, the battery is connected with the first control circuit through the BTB connector, the first control circuit includes a measurement control circuit, the battery gauge is electrically connected with the battery through the measurement control circuit, and the measurement control circuit can provide a power-off reset function for the battery gauge. That is, the processor can determine that the battery gauge is stuck and cannot normally monitor the electrical parameters of the battery when the electrical parameters collected by the battery gauge are not acquired, and at this time, the measurement control circuit can be controlled to be first turned off and then turned on through the general-purpose input / output interface electrically connected with the measurement control circuit, so as to control the battery gauge to be powered off and powered on again.

[0026] In this way, when the battery gauge is stuck and cannot communicate normally, the processor of the electronic device can directly control the battery gauge to be powered off and powered on again through the general-purpose input / output (GPIO) interface, so as to restore normal work, and the battery does not need to be re-attached after the battery cover is disassembled, and the maintenance difficulty can be reduced.

[0027] In some embodiments, the measurement control circuit can include a control switch, and the processor controls the path between the power supply end of the battery and the battery gauge to be first disconnected and then connected through the GPIO interface. Since the voltage of the battery in a mobile phone, a tablet computer or the like is relatively high, for example, the voltage VCELL of the battery in a common mobile phone, a tablet computer or the like is in the range of 2.6V to 4.5V, and the voltage output by the GPIO interface of the processor is relatively low, it is relatively difficult to directly control the path between the power supply end of the battery and the battery gauge through the GPIO interface of the processor through a control switch, and therefore, the measurement control circuit can also be provided with multiple control switches.

[0028] In some embodiments, as shown in FIG. 1, Figure 4 As shown, the measurement control circuit 122 includes a first switch sub-circuit 1221 and a second switch sub-circuit 1222; wherein,

[0029] The power supply end of the battery 11 is connected with the battery gauge 123 through the first switch sub-circuit 1221, and the first switch sub-circuit 1221 is connected with the general-purpose input / output interface of the processor 121 and the ground end of the battery 11 through the second switch sub-circuit 1222;

[0030] The processor 121 controls the power supply end of the battery 11 to be disconnected from the battery gauge 123 first and then connected to the battery gauge 123 by controlling the second switch sub-circuit 1222 and the first switch sub-circuit 1221 to be turned off first and then turned on in the case where the electrical parameter collected by the battery gauge 123 is not acquired.

[0031] The first switch sub-circuit and the second switch sub-circuit can each include a switch element, which can be a MOS tube, a transistor or a compound switch, etc. The first switch sub-circuit and the second switch sub-circuit can also include other devices such as resistors, which are not specifically limited here.

[0032] The processor can be connected with the second switch sub-circuit and can control the second switch sub-circuit to be turned off first through a GPIO interface, control the first switch sub-circuit to be turned off successively in the case where the second switch sub-circuit is turned off, thereby controlling the path between the power supply end of the battery and the battery gauge to be disconnected. Then, the second switch sub-circuit can be controlled to be turned on again through the GPIO interface, the first switch sub-circuit can be controlled to be turned on successively in the case where the second switch sub-circuit is turned on, thereby controlling the path between the power supply end of the battery and the battery gauge to be connected, so that the power reset of the battery gauge can be realized, thereby resuming normal work.

[0033] In this way, the control voltage can be pulled down by the second switch sub-circuit, so that the voltage output by the GPIO of the processor can meet the control voltage of the second switch sub-circuit, thereby the first switch sub-circuit can be controlled by the second switch sub-circuit to control the path between the power supply end of the battery and the battery gauge.

[0034] In some embodiments, the GPIO interface of the processor can be connected with the control end of the second switch sub-circuit, and the processor outputs a level through the GPIO interface to control the second switch sub-circuit to be turned off or turned on. For example, the processor can output a low level through the GPIO interface to control the second switch sub-circuit to be turned off, and output a high level through the GPIO interface to control the second switch sub-circuit to be turned on.

[0035] In the normal operation of the battery gauge, the path between the power supply end of the battery and the battery gauge is connected, so that the processor needs to continuously give a control signal to the second switch sub-circuit through the GPIO interface to control the second switch sub-circuit to be in the on state.

[0036] In some embodiments, as shown in Figure 4 The measurement control circuit 122 further includes a voltage division sub-circuit 1223; wherein,

[0037] The first end of the voltage divider sub-circuit 1223 is connected with the power supply end of the battery 11, the second end of the voltage divider sub-circuit 1223 is connected with the ground end of the battery 11, and the voltage dividing end of the voltage divider sub-circuit 1223 is connected with the control end of the second switch sub-circuit 1222.

[0038] The second switch sub-circuit 1222 controls the off or conduction of the second switch sub-circuit 1222 through the voltage of the voltage dividing end of the voltage divider sub-circuit 1223 and the voltage output by the general-purpose input and output interface of the processor 121.

[0039] In some embodiments, the GPIO interface of the processor can be connected with another port of the second switch sub-circuit, and the voltage difference between the control end of the second switch sub-circuit and the other port can control the off or conduction of the second switch sub-circuit. For example, as shown in Figure 4 The second switch sub-circuit can be an NMOS tube, the GPIO interface of the processor can be connected with the source electrode of the NMOS tube, the GPIO interface of the processor can output a voltage, and the voltage difference between the voltage and the gate voltage of the NMOS tube can control the off or conduction of the NMOS tube.

[0040] In some embodiments, the voltage divider sub-circuit can include at least two resistors, which can divide the voltage across the battery, and can further include a capacitor or other devices, which are not limited here.

[0041] The voltage dividing end of the voltage divider sub-circuit is connected with the control end of the second switch sub-circuit, so that the voltage of the control end of the second switch sub-circuit is reduced, and the off or conduction of the second switch sub-circuit is controlled through the voltage difference between the voltage of the voltage dividing end of the voltage divider sub-circuit and the voltage output by the general-purpose input and output interface of the processor, that is, the GPIO interface of the processor is connected with another port of the second switch sub-circuit except the control end, and the off or conduction of the second switch sub-circuit is controlled through the voltage difference between the other port and the control end, so that the control voltage output by the GPIO interface of the processor is further reduced.

[0042] In some embodiments, as shown in Figure 4 The voltage divider sub-circuit 1223 includes a first resistor 12231 and a second resistor 12232, the first resistor 12231 and the second resistor 12232 are connected in series, the first end of the first resistor 12231 is connected with the power supply end of the battery 11, the second end of the first resistor 12231 is connected with the ground end of the battery 11 through the second resistor

[0043] 12232.

[0044] That is, the embodiment divides the voltage across the battery by the first resistor and the second resistor, and when the battery is buckled

[0045] After stabilization, the voltage at the control end of the second switch sub-circuit is the voltage divided by the second resistor for the voltage VCELL across the power supply, that is, where R1 is the resistance of the first resistor, and R2 is the resistance of the second resistor.

[0046] In some embodiments, as shown in FIG. 12, the first switch sub-circuit 1221 includes a first switch element 12211 and a first resistor 12231. Figure 4

[0047] The first switch element 12211 includes a first end, a second end, and a control end.

[0048] The first end of the first switch element 12211 is connected to the first end of the first resistor 12231, and the second end of the first switch element 12211 is connected to the power supply end of the coulomb counter 123.

[0049] The control end of the first switch element 12211 is connected to the second switch sub-circuit 1222, and one end of the third resistor 12212 is connected to the first end of the first switch element 12211.

[0050] The other end of the third resistor 12212 is connected to the control end of the first switch element 12211.

[0051] In some embodiments, as shown in FIG. 12, the first switch element 12211 is a PMOS tube or a transistor of the same type as the PMOS tube.

[0052] In some embodiments, as shown in FIG. 12, the second switch sub-circuit 1222 includes a second switch element 12221 and a second resistor 12232. Figure 4 The second switch element 12221 includes a first end, a second end, and a control end.

[0053] Figure 4 The first end of the second switch element 12221 is connected to the second end of the fourth resistor 12222 and the first end of the second resistor 12232.

[0054] The first end of the second switch element 12221 is also connected to the general-purpose input / output interface of the processor 121, the second end of the second switch element 12221 is connected to the first switch sub-circuit 1221, and the control end of the second switch element 12221 is connected to the voltage dividing end of the voltage dividing sub-circuit 1223.

[0055] In some embodiments, as shown in FIG. 12, the second switch element 12221 is a PMOS tube or a transistor of the same type as the PMOS tube.

[0056] In some embodiments, as shown in FIG. 12, the second switch element 12221 is a PMOS tube or a transistor of the same type as the PMOS tube.

[0057] In some embodiments, as shown in FIG. 12, the second switch element 12221 is a PMOS tube or a transistor of the same type as the PMOS tube.

[0058] In some embodiments, as shown in FIG. 12, the second switch element 12221 is a PMOS tube or a transistor of the same type as the PMOS tube. ​​

[0059] The second switching device can be an NMOS transistor, or a transistor of the same type as an NMOS transistor, such as... Figure 4 As shown, the second switching device is an NMOS transistor. At this time, the voltage divider terminal of the voltage divider circuit is connected to the gate of the NMOS transistor, and the processor's GPIO interface can be connected to the source of the NMOS transistor.

[0060] like Figure 4 As shown, after the battery is locked and stabilized, and after a sufficiently long (∞) time, the voltage V1 across the voltage divider circuit will...

[0061] Once the voltage stabilizes and reaches VCELL, the gate voltage of the second switching element, i.e., the NMOS transistor, is as follows:

[0062]

[0063] When the system-side fuel gauge freezes and fails to communicate normally, the processor's GPIO interface is configured to output a high level V. H At this time, the source voltage V of the NMOS transistor Q2_source =V H .

[0064] By selecting appropriate resistance values ​​for R1 and R2, the voltage difference between the gate and source voltages of the NMOS transistor can be made less than the threshold voltage, thus achieving... When this condition is met, the processor's GPIO interface can output a high-level voltage V. H The NMOS transistor is turned off at that time. Where V... Q2_GSth To make NMOS transistor

[0065] The threshold voltage for conduction.

[0066] At this time, the gate voltage of the first switching device, i.e., the PMOS transistor, is VCELL, i.e., V. Q1_gate =VCELL, because

[0067] |V Q1_gate -V Q1_source |=VCELL-VCELL=0<|V Q1_GSth The PMOS transistor is turned off, thereby powering down the system-side fuel gauge.

[0068] Among them, V Q1_GSth The threshold voltage required for a PMOS transistor to turn on, V Q1_source This is the source voltage of the PMOS transistor.

[0069] At this time, the processor's GPIO interface controls the second switch to be off by outputting a high level, so as to control the first switch to be off. After the first switch is off, the path between the power supply end of the battery and the power gauge is disconnected. Then, if the processor's GPIO interface is configured to output a low level V L at a preset time period, the source voltage of the NMOS transistor is V Q2_source . L The preset time period can be set according to actual needs, for example, 1 s.

[0070] By selecting appropriate R1 and R2 resistance values, the voltage difference between the gate voltage and the source voltage of the NMOS transistor is greater than the threshold voltage, that is, the following condition can be established: When the condition can be established, the NMOS transistor is turned on when the processor's GPIO interface outputs a low level V L .

[0071] At this time, the gate voltage of the PMOS transistor is V L , that is, V Q1_gate = V L . By selecting an appropriate PMOS transistor, the condition |V Q1_gate -V Q1_source | = |V L -VCELL|> |V Q1_GSth | can be established, and the PMOS transistor is turned on, so that the system end power gauge is powered on again, and the system end power gauge resumes normal work.

[0072] For the selection of the resistance values of R1 and R2, in some embodiments, the following condition is met between the first resistance and the second resistance:

[0073]

[0074] wherein R1 is the resistance value of the first resistance, R2 is the resistance value of the second resistance, VCELL max and VCELL min are the maximum and minimum values of the voltage between the battery, V Q2_GSth_max and V Q2_GSth_min are the maximum and minimum values of the threshold voltage for controlling the second switch subcircuit to be turned on, and V H and V L are the voltages for the processor to control the second switch subcircuit to be turned off and turned on.

[0075] From the above analysis, in order to control the second switch, that is, the NMOS transistor, to be turned off first and then turned on through the processor's GPIO interface, the following inequality needs to be established constantly:

[0076]

[0077] means that the following inequality group needs to be established:

[0078]

[0079] The whole back gets

[0080] In some embodiments, the range of the battery voltage VCELL of the electronic device such as a mobile phone, a tablet, etc. is 2.6V-4.5V, i.e. VCELL max and VCELL min are 4.5V and 2.6V respectively, and the threshold voltage of the second switch subcircuit is different according to the model of the selected NMOS tube, for example, the minimum threshold voltage V Q2__GSth_min of a certain NMOS tube is 0.45V, and the maximum threshold voltage V Q2__GSth_max is 0.95V, while the high level V H and the low level V L of the GPIO interface of the processor are 1.8V and 0V respectively, and the relationship between the resistance of the first resistor and the resistance of the second resistor can be obtained by substituting the above formula as i.e. If the value of R2 is 100kΩ, the value of R1 should satisfy 100kΩ<R1<3300 / 19kΩ.

[0081] Further, as shown in Figure 4 , after the NMOS tube and the PMOS tube are turned on by the GPIO interface output V L , at this time, by selecting appropriate resistance values of the third resistor R3 and the fourth resistor R4, the NMOS tube and the PMOS tube can still be continuously turned on in the case of the GPIO interface being set to the high impedance state, and the GPIO interface no longer needs to continuously output the control signal, so that the control process of the processor can be simplified.

[0082] In the related art, as shown in Figure 3 , there is a problem of bucking jitter when the production line buckles the charged battery to the mainboard, V1 is not equal to VCELL before bucking is stable, and V1 is equal to VCELL after bucking is stable. If V1 has met the working voltage of the system end power gauge before bucking is stable, this will cause the voltage collected by the system end power gauge to fluctuate, the system end power gauge will collect V1, and the initial power of the battery is obtained by querying the voltage-power curve, and since the voltage collected by the power supply is not accurate, the initial power of the battery obtained will be inaccurate. Therefore, the power gauge needs to be powered on after bucking is stable, i.e. the second switch subcircuit and the second switch subcircuit are turned on only after the battery is buckled for a period of time, so that the voltage collected by the power gauge is accurate, and the calculated battery power is accurate.

[0083] In some embodiments, as shown in FIG. 12B, the voltage dividing sub-circuit 1223 further comprises a first capacitor 12233 connected in parallel with the second resistor 12232. Figure 5

[0084] When the production line clamps the charged battery to the mainboard, there will be a clamping jitter. The clamping jitter time can be defined as t1, which can be set according to an empirical value, such as 5s. After the time t1, the battery clamping is stable, and the voltage V1(t) at both ends of the voltage dividing sub-circuit will be equal to VCELL.

[0085] As shown in FIG. 12B, the first resistor R1, the second resistor R2 and the first capacitor C1 constitute an RC delay circuit. When the production line clamps the charged battery to the mainboard, the source voltage V Q1_source of the PMOS transistor is V Q1_source = V1(t), and the gate voltage V Q2_gate of the NMOS transistor is V Figure 5 Among them, R1 / / R2 represents the parallel resistance of R1 and R2, and C1 represents the capacitance value of the first capacitor.

[0086] By selecting appropriate R1, R2 and C1, the rising speed of the gate voltage V Q2_gate of the NMOS transistor can be adjusted. When the GPIO interface of the processor is in a high resistance state, and V Q2_gate rises to meet the condition V Q2_gate -V Q2_source >V Q2_GSth , the NMOS transistor is turned on, and the gate voltage of the PMOS transistor is equal to the source voltage of the NMOS transistor, which is V Among them, in order to avoid the problem that the clamping jitter of the charged battery clamped to the mainboard causes inaccurate measurement of the power of the power gauge, it is necessary to set the resistance values of R1 and R2 and the capacitance value of C1 to adjust the rising speed of the gate voltage V Q2_gate of the NMOS transistor, so that when the condition V Q2_gate -V Q2_source >V Q2_GSth is met, the time from the start of clamping the battery to the mainboard to the present time is greater than t1.

[0087] In some embodiments, the third resistor and the fourth resistor satisfy the following condition:

[0088]

[0089] Among them, R3 is the resistance value of the third resistor, R4 is the resistance value of the fourth resistor, VCELL is the voltage between the battery, and V Q1_GSth ​​is a threshold voltage for controlling the first switch to be turned on.

[0090] That is, by selecting appropriate third resistor R3 and fourth resistor R4, When the above condition can be established, the PMOS transistor is turned on, and the system terminal power meter starts to power on, so as to achieve the purpose of delaying the power on of the system terminal power meter.

[0091] That is, when the production line buckles the charged battery to the mainboard, the system terminal power meter will be powered on after a period of time. Since the process of battery buckling jitter is avoided, the system terminal power meter collects stable battery voltage after power on, so as to improve the measurement accuracy of battery power.

[0092] The embodiment of the present application also provides an electronic device, which can include the battery power measurement control circuit provided by the above embodiment, and the battery power measurement control circuit can measure the initial power of the battery of the electronic device.

[0093] It should be noted that in this document, the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles, or devices that include a series of elements not only include those elements, but also include other elements not explicitly listed, or include elements inherent to such processes, methods, articles, or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or device that includes 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 the order of performing the functions shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from the described order, and various steps can be added, omitted, or combined. In addition, the features described with reference to certain examples can be combined in other examples.

[0094] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a plurality of instructions for making an electronic device (which can be a mobile phone, computer, server, or network device, etc.) execute the methods described in various embodiments of the present application.

[0095] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the specific embodiments described above, and the specific embodiments described above are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims.

Claims

1. A battery charge measurement control circuit, comprising: The application relates to a battery and a first control circuit, wherein the battery is electrically connected with the first control circuit, the first control circuit comprises a processor, a measurement control circuit and a coulometer, and the coulometer is used for collecting electrical parameters of the battery; wherein, the coulometer is electrically connected with the battery through the measurement control circuit, the processor is electrically connected with the measurement control circuit through a general-purpose input-output interface, and the processor is communicatively connected with the coulometer; the processor controls the measurement control circuit to be first turned off and then turned on through the general-purpose input-output interface, so as to control the coulometer to be reset in the case that the electrical parameters collected by the coulometer are not acquired. the measurement control circuit comprises a first switch sub-circuit and a second switch sub-circuit; wherein, 2. The circuit of claim 1, wherein, a power supply end of the battery is connected with the coulometer through the first switch sub-circuit, and the first switch sub-circuit is connected with the general-purpose input-output interface of the processor and the ground end of the battery through the second switch sub-circuit; the processor controls the second switch sub-circuit and the first switch sub-circuit to be first turned off and then turned on, so as to control the power supply end of the battery to be first disconnected and then connected with the coulometer in the case that the electrical parameters collected by the coulometer are not acquired. the measurement control circuit further comprises a voltage division sub-circuit; wherein, 3. The circuit of claim 2, wherein, a first end of the voltage division sub-circuit is connected with the power supply end of the battery, a second end of the voltage division sub-circuit is connected with the ground end of the battery, and a voltage division end of the voltage division sub-circuit is connected with the control end of the second switch sub-circuit; the second switch sub-circuit controls the second switch sub-circuit to be turned off or turned on through the voltage of the voltage division end of the voltage division sub-circuit and the voltage output by the general-purpose input-output interface of the processor. the voltage division sub-circuit comprises a first resistor and a second resistor, and the first resistor and the second resistor are connected in series, wherein a first end of the first resistor is connected with the power supply end of the battery, and a second end of the first resistor is connected with the ground end of the battery through the second resistor.

4. The circuit of claim 3, wherein, the voltage division sub-circuit further comprises a first capacitor, and the first capacitor is connected with the second resistor in parallel.

5. The circuit of claim 4, wherein, the first resistor and the second resistor satisfy the following condition:

6. The circuit of claim 4, wherein, the first switch sub-circuit comprises a first switch element and a third resistor; wherein, Wherein, R1 is the resistance of the first resistor, R2 is the resistance of the second resistor, VCELL max and VCELL min are the maximum and minimum of the voltage across the battery, respectively, V Q2_GSth_max and V Q2_GSth_min are the maximum and minimum of the threshold voltage for controlling the second switch sub-circuit to turn on, respectively, V H and V L are the voltage for the processor to control the second switch sub-circuit to turn off and turn on, respectively.

7. The circuit of claim 4, wherein, a first end of the first switch element is connected with the first end of the first resistor, a second end of the first switch element is connected with the power supply end of the coulometer, a control end of the first switch element is connected with the second switch sub-circuit, one end of the third resistor is connected with the first end of the first switch element, and the other end of the third resistor is connected with the control end of the first switch element. the second switch sub-circuit comprises a second switch element and a fourth resistor; wherein, 8. The circuit of claim 4 or 7, wherein, a first end of the second switch element is connected with the second end of the second resistor through the fourth resistor, the first end of the second switch element is also connected with the general-purpose input-output interface of the processor, a second end of the second switch element is connected with the first switch sub-circuit, and a control end of the second switch element is connected with the voltage division end of the voltage division sub-circuit. ​ 9. The circuit of claim 8, wherein, The following condition is satisfied between the third resistance and the fourth resistance: Wherein, R3 is the resistance of the third resistor, R4 is the resistance of the fourth resistor, VCELL is the voltage across the battery, V Q1_GSth is the threshold voltage for controlling the first switch to be turned on.

10. An electronic device, comprising: A battery power measurement control circuit comprising the battery power measurement control circuit as claimed in any one of claims 1 to 9.