Battery control circuit, battery power supply system and processing method thereof

By introducing components such as NMOS tubes and voltage stabilization diodes into the battery control circuit, and using long presses to achieve slow charging and reset signals, the problem of MCU processor program crashing and unable to turn off the power chip, improving the stability of the battery-powered system and user experience.

CN119070425APending Publication Date: 2024-12-03HUNAN YIMAITONG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411173556.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In existing low-power battery-powered systems, the program of the MCU processor crashes, causing the power chip to be unable to turn off normally, affecting product use and battery life.

Method used

A battery control circuit is designed, including NMOS tube, resistor, capacitor, voltage regulator diode and multi-function button. By pressing the button for a long time, it can achieve slow charging and reset signals, ensuring that the EN pin of the power chip becomes low to turn off the power supply. And restore the power switch function through rapid discharge.

Benefits of technology

It realizes that the program can be prevented from crashing and turning off the power when the battery cannot be removed or unplugged, improves user experience and battery protection, meets one-click function switching and prevents program crashing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070425A_ABST
    Figure CN119070425A_ABST
Patent Text Reader

Abstract

The invention relates to a battery control circuit, a battery power supply system and a processing method thereof, and the battery control circuit is characterized in that an OUT pin of a power supply chip (U1) is connected with a first VCC voltage end, a second VCC voltage end is electrically connected with a second multifunctional key (SW2), the second multifunctional key (SW2) is electrically connected with a fifth resistor (R5), a sixth resistor (R6) and a voltage stabilizing diode (D2), and the fifth resistor (R5) is electrically connected with the sixth resistor (R6). The sixth resistor (R6) is further electrically connected with a fourth capacitor (C4), a voltage stabilizing diode (D2) and a grid electrode G of an NMOS tube (Q2), the fourth capacitor (C4) is further electrically connected with a fifth resistor (R5) and a source electrode S of the NMOS tube (Q2), a drain electrode D of the NMOS tube (Q2) is further electrically connected with a seventh resistor (R7) and a dual-diode (D1), the dual-diode (D1) is further electrically connected with an EN pin of a power supply chip (U1), and the power supply chip (U1) is further electrically connected with a power supply chip (U1). And the seventh resistor (R7) is also electrically connected with the ON / OFF end, so that the problem that a power supply cannot be turned off when a program crashes is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery power supply technology, and in particular to a battery control circuit, a battery power supply system and a processing method thereof. Background Art

[0002] In a low-power battery-powered system, it is generally necessary to turn off the power supply chip and completely power off the system to achieve ultra-long battery standby and ultra-low power consumption. Therefore, a low-power power supply chip with an enable pin is generally selected. The enable pin has a power switch function, and the enable pin of the power switch chip is controlled by the MCU processor port. The system power supply is turned off when the port outputs a low level. However, the MCU processor may cause the program to run away or the system to be unstable due to external interference or abnormal reset signals. At this time, the MCU processor port no longer outputs a reliable shutdown signal and cannot shut down normally. At this time, the system cannot work normally, and the battery cannot be plugged in and out inside the product. It can only wait until the battery is completely exhausted, which seriously affects the use of the product and the battery life. Summary of the invention

[0003] 1. Technical issues to be resolved

[0004] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a battery control circuit, a battery power supply system and a processing method thereof, which solve the technical problem in the prior art that the power chip cannot be turned off due to a program freeze of the battery power supply system.

[0005] (II) Technical solution

[0006] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0007] In a first aspect, an embodiment of the present invention provides a battery control circuit, comprising an NMOS tube (Q2), a fifth resistor (R5), a sixth resistor (R6), a seventh resistor (R7), a fourth capacitor (C4), a power chip (U1), a voltage regulator diode (D2), a first VCC voltage terminal, a second VCC voltage terminal, a dual diode (D1), a second multi-function button (SW2) and an ON / OFF terminal of an MCU processor;

[0008] The battery (BT) is electrically connected to the IN pin of the power chip (U1), the OUT pin of the power chip (U1) is electrically connected to the first VCC voltage terminal, the second VCC voltage terminal is electrically connected to the second multi-function button (SW2), the second multi-function button (SW2) is also electrically connected to the fifth resistor (R5), the sixth resistor (R6) and the voltage-stabilizing diode (D2), the sixth resistor (R6) is also electrically connected to the fourth capacitor (C4), the voltage-stabilizing diode (D2) and the gate G of the NMOS tube (Q2), the fourth capacitor (C4) is also electrically connected to the fifth resistor (R5) and the source S of the NMOS tube (Q2), the drain D of the NMOS tube (Q2) is also electrically connected to the seventh resistor (R7) and the dual diode (D1), the dual diode (D1) is also electrically connected to the EN pin of the power chip (U1), and the seventh resistor (R7) is also electrically connected to the ON / OFF terminal.

[0009] In a possible embodiment, the battery control circuit further includes a first GND ground terminal, a first capacitor (C1), a first resistor (R1) and a first multi-function button (SW1);

[0010] The first capacitor (C1) is electrically connected to the battery (BT), the first multi-function button (SW1) and the IN pin of the power chip (U1) respectively, and the GND pin of the power chip (U1) is electrically connected to the battery (BT), the first capacitor (C1), the first resistor (R1) and the first GND ground terminal respectively, and the first resistor (R1) is also connected to the dual diode (D1) and the EN pin of the power chip (U1) respectively.

[0011] In a possible embodiment, the battery control circuit further includes a second resistor (R2), a third resistor (R3), a fourth resistor (R4), a transistor (Q1) and a second GND ground terminal;

[0012] The first multi-function button (SW1) is also electrically connected to the second resistor (R2), and the base B of the transistor (Q1) is electrically connected to the second resistor (R2) and the third resistor (R3), respectively, and the collector C of the transistor (Q1) is electrically connected to the fourth resistor (R4), and the fourth resistor (R4) is also electrically connected to the second VCC voltage terminal and the second multi-function button (SW2), respectively, and the emitter E of the transistor (Q1) is electrically connected to the third resistor (R3), the second GND ground terminal, the fifth resistor (R5), the fourth capacitor (C4) and the source S of the NMOS tube (Q2), respectively.

[0013] In a possible embodiment, the battery control circuit further includes a second capacitor (C2), a third capacitor (C3) and a third GND ground terminal;

[0014] The second capacitor (C2) is electrically connected to the OUT pin of the power chip (U1), the third capacitor (C3) and the first VCC voltage terminal respectively, and the second capacitor (C2) is also electrically connected to the third capacitor (C3) and the third GND ground terminal respectively.

[0015] In a second aspect, an embodiment of the present invention provides a battery powered system, comprising any battery control circuit of the first aspect.

[0016] In a third aspect, an embodiment of the present invention provides a method for solving a program crash of an MCU processor when a battery-powered system is running, wherein the battery-powered system is the battery-powered system as described in the second aspect; the method comprises:

[0017] In the case of a program crash of the MCU processor, in response to a long press operation on the second multi-function button (SW2), the second VCC voltage terminal slowly charges the fourth capacitor (C4) through the sixth resistor (R6); wherein the long press operation refers to an operation in which the second multi-function button (SW2) is pressed for a time period exceeding a preset time period;

[0018] After the charging voltage of the NMOS tube (Q2) is greater than the specified voltage, the long-press reset power signal POW_RST between the dual diode (D1) and the NMOS tube (Q2) becomes a low-level signal. The long-press reset power signal POW_RST will pull down the voltage of the ON / OFF terminal of the MCU processor and make the EN pin of the power chip (U1) become a low level to turn off the power chip (U1);

[0019] In response to a release operation on the second multi-function button (SW2), the voltage of the fourth capacitor (C4) is quickly discharged through the voltage-stabilizing diode (D2) and the fifth resistor (R5) to restore the on / off function of the battery-powered system.

[0020] (III) Beneficial effects

[0021] The beneficial effects of the present invention are:

[0022] The embodiments of the present application provide a battery control circuit, a battery power supply system and a processing method thereof, by adding a battery control circuit to the original design button to prevent the program from freezing, especially when the battery cannot be removed and plugged in inside the product and buttons cannot be added. This not only realizes the function of the button, but also solves the problem of being unable to turn off the power when the program freezes. This not only satisfies the one-key function switching and prevention of program freezing functions, but also improves the user experience and protects the battery from over-discharge.

[0023] In order to make the above-mentioned objectives, features and advantages to be achieved by the embodiments of the present application more obvious and understandable, the following specifically cites preferred embodiments and describes them in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A schematic diagram of a battery control circuit provided in an embodiment of the present application is shown;

[0026] Figure 2 A schematic diagram of a battery power supply system provided in an embodiment of the present application is shown;

[0027] Figure 3 A flowchart of a method for solving a program freeze of an MCU processor when a battery-powered system is running is shown in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0029] In order to solve the problem in the prior art that the power chip cannot be turned off due to program crash in the battery-powered system, the present application adds a battery control circuit to the original design button to prevent the program from crashing. In particular, when the battery cannot be removed and plugged in inside the product and buttons cannot be added, this not only realizes the function of the button, but also solves the problem of not being able to turn off the power when the program crashes. This not only satisfies the one-click function switching and program crash prevention functions, but also improves the user experience and protects the battery from over-discharge.

[0030] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0031] First embodiment

[0032] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of a battery control circuit provided in an embodiment of the present application. Figure 1As shown, the battery control circuit includes an NMOS tube (Q2), a fifth resistor (R5), a sixth resistor (R6), a seventh resistor (R7), a fourth capacitor (C4), a power chip (U1), a voltage regulator diode (D2), a first VCC voltage terminal (i.e., VCC1), a second VCC voltage terminal (i.e., VCC2), a double diode (D1), a second multi-function button (SW2), and an ON / OFF terminal of an MCU processor. The first VCC voltage terminal and the second VCC voltage terminal are both used to power the MCU processor and other circuits;

[0033] The battery (BT) is electrically connected to the IN pin of the power chip (U1), the OUT pin of the power chip (U1) is connected to the first VCC voltage terminal, the second VCC voltage terminal is electrically connected to the second multi-function button (SW2), the second multi-function button (SW2) is also electrically connected to the fifth resistor (R5), the sixth resistor (R6) and the voltage-stabilizing diode (D2), the sixth resistor (R6) is also electrically connected to the fourth capacitor (C4), the voltage-stabilizing diode (D2) and the gate G of the NMOS tube (Q2), the fourth capacitor (C4) is also electrically connected to the fifth resistor (R5) and the source S of the NMOS tube (Q2), the drain D of the NMOS tube (Q2) is also electrically connected to the seventh resistor (R7) and the dual diode (D1), the dual diode (D1) is also electrically connected to the EN pin of the power chip (U1), and the seventh resistor (R7) is also electrically connected to the ON / OFF terminal.

[0034] It should be noted here that, based on the above circuit, one-key function switching and prevention of program crash can be achieved, as shown in the following description for details.

[0035] Specifically, when the power chip (U1) is working, the first VCC voltage terminal supplies power to the system, and when the second multi-function button (SW2) is short pressed, the button detection signal FUN_KEY is high level indicating that the button is pressed, and after the second multi-function button (SW2) is released, the button detection signal FUN_KEY is low level indicating that the button is released, and the short press / double click of SW2 can realize the working mode switching, and has a multiplexed button function. Among them, short press refers to a pressing operation with a pressing duration less than a preset duration, and the specific duration of the preset duration can be set according to actual needs; long press refers to a pressing operation with a pressing duration longer than the preset duration. For example, when the second multi-function button (SW2) is short pressed, the button detection signal FUN_KEY level is high, and the MCU processor starts timing when it detects that the button detection signal FUN_KEY has a high level, and stops timing after the second multi-function button (SW2) is released. When the pressing time meets the short press time (less than 1 second), the working mode is switched.

[0036] Further, when the second multi-function button (SW2) is long pressed, the fourth capacitor (C4) is slowly charged through the sixth resistor (R6), and according to the time constant formula of the RC circuit τ=RC, where R can be the resistance of the sixth resistor (R6), and where C can be the capacitance of the fourth capacitor (C4), the time constant τ can be calculated according to the time constant formula of the RC circuit. For example, when the resistance of R6 is 1M and the capacitance of C4 can be 10uF, the time constant τ is equal to 10S.

[0037] And, the calculation formula of capacitor voltage is V_C=V*(1-e ^(-1) ), where e is the base of the natural logarithm, and V in the calculation formula of the capacitor voltage can be different voltages, so that V_C can be obtained. For example, after calculation, V_C is equal to 63.2% V, etc. In addition, the conduction bar of long pressing the second multi-function button (SW2) can be determined based on the voltage at the first VCC voltage terminal and the continuous charging time. For example, when the voltage at the preset first VCC voltage terminal is equal to 2.5V and the capacitor voltage is equal to 2.5V*0.632=1.58V after continuous charging for 10 seconds, that is, the second multi-function button (SW2) is pressed for a long time exceeding (NMOS tube conduction voltage (1.0V) / 1.58V*10=6.3 seconds) to make the NMOS tube (Q2) conduct. When the second multi-function button (SW2) is released, the voltage on the fourth capacitor (C4) is quickly discharged through the voltage regulator diode (D2) and the fifth resistor (R5), thereby ensuring that the charging time of the next cycle is basically the same.

[0038] Therefore, due to the MCU processor program running away or the program crashing, when the MCU processor ON / OFF voltage is always at a high level, even if the first multi-function button (SW1) is operated, the machine cannot be turned on and off normally. At this time, the battery (BT) supplies power to the power chip (U1) and is always in a working state, and the output of the first VCC voltage terminal is always valid. Therefore, in this case, by long pressing the second multi-function button (SW2), the second VCC voltage terminal slowly charges the fourth capacitor (C4) through the sixth resistor (R6). When the charging voltage is greater than the specified voltage, the NMOS tube (Q2) is turned on, and the long-press reset power signal POW_RST becomes a low-level signal, thereby making the EN pin of the power chip (U1) become a low level to turn off the power chip (U1), that is, the output of the first VCC voltage terminal is turned off. After releasing the second multi-function button (SW2), the voltage of the fourth capacitor (C4) is quickly discharged through the voltage-stabilizing diode (D2) and the fifth resistor (R5). At this time, the SW1 button switch function is restored to normal, that is, the switch function of the battery-powered system is restored.

[0039] Further, see Figure 1, the battery control circuit further includes a first GND ground terminal (ie, GND1), a first capacitor (C1), a first resistor (R1) and a first multi-function button (SW1);

[0040] The first capacitor (C1) is electrically connected to the battery (BT), the first multi-function button (SW1) and the IN pin of the power chip (U1) respectively, and the GND pin of the power chip (U1) is electrically connected to the battery (BT), the first capacitor (C1), the first resistor (R1) and the first GND ground terminal respectively, and the first resistor (R1) is also connected to the dual diode (D1) and the EN pin of the power chip (U1) respectively.

[0041] Further, see Figure 1 , the battery control circuit further includes a second resistor (R2), a third resistor (R3), a fourth resistor (R4), a transistor (Q1) and a second GND ground terminal (i.e., GND2);

[0042] The first multi-function button (SW1) is also electrically connected to the second resistor (R2), and the base B of the transistor (Q1) is electrically connected to the second resistor (R2) and the third resistor (R3), respectively, and the collector C of the transistor (Q1) is electrically connected to the fourth resistor (R4), and the fourth resistor (R4) is also electrically connected to the second VCC voltage terminal and the second multi-function button (SW2), respectively, and the emitter E of the transistor (Q1) is electrically connected to the third resistor (R3), the second GND ground terminal, the fifth resistor (R5), the fourth capacitor (C4) and the source S of the NMOS tube (Q2), respectively.

[0043] Further, see Figure 1 , the battery control circuit further includes a second capacitor (C2), a third capacitor (C3) and a third GND ground terminal;

[0044] The second capacitor (C2) is electrically connected to the OUT pin of the power chip (U1), the third capacitor (C3) and the first VCC voltage terminal respectively, and the second capacitor (C2) is also electrically connected to the third capacitor (C3) and the third GND ground terminal respectively.

[0045] In order to facilitate understanding of the system startup process of the present application, a specific embodiment is used to describe it below.

[0046] Specifically, Figure 1As shown, when the first multi-function button (SW1) is pressed, the battery voltage VBAT flows from the first multi-function button (SW1) to the dual diode (D1) and enters the EN pin of the power chip (U1), and the OUT pin of the power chip (U1) outputs the VCC voltage to power the MCU processor and other circuits. At the same time, the battery voltage VBAT flows from the first multi-function button (SW1) to the second resistor (R2) and the third resistor (R3) and enters the base B of the transistor (Q1), so that the Vbe of the transistor (Q1) is greater than the preset voltage, and the Vce of the transistor (Q1) is turned on, and the voltage of POW_KEY is low. Among them, Vbe refers to the voltage difference between the base B and the emitter E of the transistor (Q1); Vce refers to the voltage difference between the collector C and the emitter E of the transistor (Q1). Among them, when the first multi-function button (SW1) is long pressed, POW_KEY is a power on / off signal; when the first multi-function button (SW1) is short pressed, POW_KEY is an intensity function adjustment signal.

[0047] It should be understood that the specific voltage of the preset voltage can be set according to actual needs, and the embodiments of the present application are not limited thereto.

[0048] For example, considering that its working principle is based on the conductivity change of the PN junction, the voltage range of the preset voltage is generally 0.6 to 0.7V.

[0049] And, when the MCU processor detects that the voltage of POW_KEY is at a low level, and after it lasts for n seconds, the ON / OFF output of the MCU processor is at a high level, and enters the EN pin of the power chip (U1) through the seventh resistor (R7) and the dual diode (D1), at this time, the MCU processor will emit a buzzer to prompt that the power-on is complete and the first multi-function button (SW1) can be released. At this time, the EN pin voltage of the power chip (U1) is maintained by the high level of the ON / OFF of the MCU processor, and the power chip (U1) works normally and outputs the VCC voltage. Among them, the specific power-on time n can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0050] In addition, after long pressing the first multi-function button (SW1) to turn on the device, the output intensity can be adjusted by short pressing / double pressing (shorter than the long pressing time). The output intensity adjustment refers to the output current intensity function of the product.

[0051] In order to facilitate understanding of the system shutdown process of the present application, a specific embodiment is used to describe it below.

[0052] Specifically, Figure 1As shown, when the first multi-function button (SW1) is pressed, the battery voltage VBAT flows from the first multi-function button (SW1) to the dual diode (D1) and enters the EN pin of the power chip (U1). Since the power chip (U1) has been working before, the output remains unchanged and continues to output the VCC voltage; at the same time, the battery voltage VBAT flows from the first multi-function button (SW1) to the second resistor (R2) and the third resistor (R3) and enters the base B of the transistor (Q1), so that the Vbe of the transistor (Q1) of Q1 is greater than the preset voltage, and the Vce of the transistor (Q1) is turned on. At this time, the voltage of POW_KEY is at a low level.

[0053] Furthermore, when the MCU processor detects that the voltage of POW_KEY is at a low level and lasts for n seconds, the ON / OFF output of the MCU processor is at a low level. At this time, the MCU will buzzer to prompt that the shutdown is complete and the first multi-function button (SW1) can be released. After the first multi-function button (SW1) is released, since there is no voltage provided to the EN pin of the power chip (U1), the power chip (U1) stops working and the output VCC is turned off.

[0054] It should also be noted here that the specific components and setting parameters of all components involved in the battery control circuit of the lithium battery can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0055] For example, the battery (BT) may be a lithium battery, a nickel-cadmium battery, or a nickel-metal hydride battery;

[0056] For another example, the model of the power chip (U1) may be SPX3819M5-L-2-5 / TR;

[0057] For another example, the battery voltage VBAT of a lithium battery may be 3.7V or the like.

[0058] Therefore, with the help of the above-mentioned technical solution, the present application adds a battery control circuit to the original design button to prevent the program from crashing. In particular, when the lithium battery cannot be removed and plugged in inside the product and buttons cannot be added, this not only realizes the function of the button, but also solves the problem of being unable to turn off the power when the program crashes. This not only satisfies the one-click function switching and prevention of program crashes functions, but also improves the user experience and protects the battery from over-discharge.

[0059] It should be understood that the battery control circuit of the above-mentioned lithium battery is only exemplary, and those skilled in the art may make various modifications based on the above-mentioned circuit, and the modified or deformed contents are also within the protection scope of this application.

[0060] Second embodiment

[0061] See also Figure 2 , Figure 2 FIG. 2 is a schematic diagram of a battery powered system 200 provided in an embodiment of the present application. Figure 2 As shown, the battery powered system 200 includes a battery control circuit 210 of a lithium battery.

[0062] It should be understood that the battery control circuit 210 of the lithium battery may be the battery control circuit described in the first embodiment. For details, please refer to the relevant description of the first embodiment, which will not be repeated here.

[0063] Third embodiment

[0064] See also Figure 3 , Figure 3 A flowchart of a method for solving a program crash of an MCU processor when a battery-powered system is running is shown in an embodiment of the present application. Specifically, the battery-powered system may be the battery-powered system in the second embodiment. For details, please refer to the relevant description of the second embodiment, which will not be repeated here; the processing method includes:

[0065] Step S310, in the case where the program of the MCU processor crashes, in response to a long press operation on the second multi-function button (SW2), the second VCC voltage terminal slowly charges the fourth capacitor (C4) through the sixth resistor (R6); wherein the long press operation refers to an operation in which the second multi-function button (SW2) is pressed for a time period exceeding a preset time period;

[0066] Step S320, after the charging voltage of the NMOS tube (Q2) is greater than the specified voltage, the long-press reset power signal POW_RST between the dual diode (D1) and the NMOS tube (Q2) becomes a low-level signal, and the long-press reset power signal POW_RST will pull down the voltage of the ON / OFF terminal of the MCU processor and make the EN pin of the power chip (U1) become a low level to turn off the power chip (U1);

[0067] Step S330, in response to the release operation on the second multi-function button (SW2), the voltage of the fourth capacitor (C4) is quickly discharged through the voltage regulator diode (D2) and the fifth resistor (R5) to restore the power on / off function of the battery-powered system.

[0068] Therefore, with the help of the above-mentioned technical solution, the present application adds a battery control circuit to the original design button to prevent the program from crashing. In particular, when the lithium battery cannot be removed and plugged in inside the product and buttons cannot be added, this not only realizes the function of the button, but also solves the problem of being unable to turn off the power when the program crashes. This not only satisfies the one-click function switching and prevention of program crashes functions, but also improves the user experience and protects the battery from over-discharge.

[0069] It should be understood that the above processing method is only exemplary, and those skilled in the art may make various modifications based on the above circuit, and the modified or deformed content is also within the protection scope of this application.

[0070] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0071] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.

[0072] It should be noted that in the claims, any reference numerals placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the component name.

[0073] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0074] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0075] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.

Claims

1. A battery control circuit, characterized in that: It includes an NMOS tube (Q2), a fifth resistor (R5), a sixth resistor (R6), a seventh resistor (R7), a fourth capacitor (C4), a power chip (U1), a voltage regulator diode (D2), a first VCC voltage terminal, a second VCC voltage terminal, a double diode (D1), a second multi-function button (SW2) and an ON / OFF terminal of an MCU processor; The battery (BT) is electrically connected to the IN pin of the power chip (U1), and the OUT pin of the power chip (U1) is connected to the first VCC voltage terminal, and the second VCC voltage terminal is electrically connected to the second multi-function button (SW2), and the second multi-function button (SW2) is also electrically connected to the fifth resistor (R5), the sixth resistor (R6) and the voltage regulator diode (D2), and the sixth resistor (R6) is also electrically connected to the fourth capacitor (C4), the voltage regulator diode (D2) and the gate G of the NMOS tube (Q2), and the fourth capacitor (C4) is also electrically connected to the fifth resistor (R5) and the source S of the NMOS tube (Q2), and the drain D of the NMOS tube (Q2) is also electrically connected to the seventh resistor (R7) and the dual diode (D1), and the dual diode (D1) is also electrically connected to the EN pin of the power chip (U1), and the seventh resistor (R7) is also electrically connected to the ON / OFF terminal.

2. The battery control circuit according to claim 1, characterized in that: The battery control circuit further comprises a first GND ground terminal, a first capacitor (C1), a first resistor (R1) and a first multi-function button (SW1); The first capacitor (C1) is electrically connected to the battery (BT), the first multi-function button (SW1) and the IN pin of the power chip (U1) respectively, and the GND pin of the power chip (U1) is electrically connected to the battery (BT), the first capacitor (C1), the first resistor (R1) and the first GND ground terminal respectively, and the first resistor (R1) is also connected to the dual diode (D1) and the EN pin of the power chip (U1) respectively.

3. The battery control circuit according to claim 2, characterized in that: The battery control circuit further comprises a second resistor (R2), a third resistor (R3), a fourth resistor (R4), a transistor (Q1) and a second GND ground terminal; The first multi-function button (SW1) is also electrically connected to the second resistor (R2), and the base B of the transistor (Q1) is electrically connected to the second resistor (R2) and the third resistor (R3), respectively, and the collector C of the transistor (Q1) is electrically connected to the fourth resistor (R4), and the fourth resistor (R4) is also electrically connected to the second VCC voltage terminal and the second multi-function button (SW2), respectively, and the emitter E of the transistor (Q1) is electrically connected to the third resistor (R3), the second GND ground terminal, the fifth resistor (R5), the fourth capacitor (C4) and the source S of the NMOS tube (Q2), respectively.

4. The battery control circuit according to claim 3, characterized in that: The battery control circuit further includes a second capacitor (C2), a third capacitor (C3) and a third GND ground terminal; The second capacitor (C2) is electrically connected to the OUT pin of the power chip (U1), the third capacitor (C3) and the first VCC voltage terminal respectively, and the second capacitor (C2) is also electrically connected to the third capacitor (C3) and the third GND ground terminal respectively.

5. A battery powered system, characterized in that: A battery control circuit comprising any one of claims 1 to 4.

6. A method for solving the problem of MCU processor program crash when a battery-powered system is running, characterized in that: The battery power supply system is the battery power supply system as claimed in claim 5; the processing method comprises: In the case where the program of the MCU processor crashes, in response to a long-press operation on the second multi-function button (SW2), the second VCC voltage terminal slowly charges the fourth capacitor (C4) through the sixth resistor (R6); wherein the long-press operation refers to an operation in which the second multi-function button (SW2) is pressed for a time period exceeding a preset time period; After the charging voltage of the NMOS tube (Q2) is greater than the specified voltage, the long-press reset power signal POW_RST between the dual diode (D1) and the NMOS tube (Q2) becomes a low-level signal, and the long-press reset power signal POW_RST pulls down the voltage of the ON / OFF terminal of the MCU processor and causes the EN pin of the power chip (U1) to become a low level, so as to shut down the power chip (U1); In response to a release operation on the second multi-function button (SW2), the voltage of the fourth capacitor (C4) is quickly discharged through the voltage-stabilizing diode (D2) and the fifth resistor (R5) to restore the on / off function of the battery-powered system.