Battery power failure detection circuit and electronic equipment

By triggering the interrupt IO of the MCU in a battery-powered device, the problem of power-down detection delay and high power consumption is solved, low-latency and low-cost battery power-down detection is achieved, and the battery life is extended.

CN118938048APending Publication Date: 2024-11-12SICHUAN ILINK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411299444.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The prior art has problems of delay and high power consumption in battery-powered equipment, especially low-cost MCUs lack ADC acquisition capabilities and frequent work lead to cost and delay problems.

Method used

Using a battery power-down detection circuit composed of two MOS tubes, three resistors and one diode, the interrupt IO of the MCU is triggered through the dual MOS tube switch, achieving ultra-low-latency battery power-down detection and entering sleep mode when not required to reduce power consumption.

Benefits of technology

It realizes ultra-low latency battery power-down detection, reduces the cost and power consumption of the whole machine, extends the service life of the battery, and at the same time, the circuit structure is simple and the cost is low.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938048A_ABST
    Figure CN118938048A_ABST
Patent Text Reader

Abstract

The invention relates to a power failure detection technology, and discloses a battery power failure detection circuit and electronic equipment, which realize ultralow-delay power failure detection and are low in power consumption and cost. The circuit is composed of a first MOS tube, a second MOS tube, a first resistor, a second resistor, a third resistor and a diode. The drain electrode of the first MOS tube is connected with an interrupt IO port of an MCU of the electronic equipment; a terminal IO port of an MCU of the electronic equipment is connected with a first resistor serving as a pull-up resistor; the source electrode of the first MOS tube is grounded, and the grid electrode of the first MOS tube is connected with a second resistor serving as a pull-up resistor and is connected with the drain electrode of the second MOS tube; the source electrode of the second MOS tube is grounded, and the grid electrode is grounded through a third resistor and is connected to the positive electrode of the battery of the electronic equipment; the anode of the diode is connected with the anode of a battery of the electronic equipment, the cathode of the diode is connected with the cathode of an energy storage capacitor in the electronic equipment and connected with the power supply input end of the electronic equipment, and the anode of the energy storage capacitor in the electronic equipment is grounded. The invention is suitable for the electronic equipment powered by the battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a power-off detection technology, and in particular to a battery power-off detection circuit and electronic equipment. Background Art

[0002] With the update and evolution of the intelligent era, various system integration products have ushered in a booming development, such as gas meter motherboards, water meter motherboards, etc. Due to safety reasons and usage scenarios, such products cannot use household power supply, but need to be powered by batteries. Devices that require battery power need to control power consumption, because the lower the power consumption, the longer the battery life, the lower the frequency of battery replacement, and the better the user experience. In addition, such products require the motherboard to handle power outages such as battery replacement, so the motherboard needs to maintain power for a certain period of time after the battery is removed and respond to power outages.

[0003] At present, the products on the market generally use large electrolytic capacitors to continue current in the event of power failure, and then use the ADC acquisition function of the MCU to implement power failure detection, that is, let the MCU frequently work at a fixed time to collect and compare the power. If the comparison value is lower than a threshold, it is determined to be power failure. This solution has the following defects:

[0004] 1. Many low-cost MCUs on the market do not have ADC acquisition functions, and adding some external chips for power comparison will also increase costs.

[0005] Second, there is a delay in power-off detection, which greatly tests the response processing frequency of the selected MCU.

[0006] 3. Since the MCU needs to respond to ADC acquisition frequently, the power consumption of the selected MCU when responding to ADC acquisition is also very tested.

[0007] The MCU with ADC acquisition function, lower power consumption and faster response frequency will be more expensive, which will undoubtedly increase the cost of the product. And because it uses ADC acquisition and comparison to achieve power-off detection, the MCU needs to be in working state, and the power consumption is still relatively high. Due to the existence of the acquisition cycle, and the comparison and response of the collected data also takes time, this method cannot achieve low-latency detection. Summary of the invention

[0008] The technical problem to be solved by the present invention is to provide a battery power-off detection circuit and an electronic device to achieve ultra-low-latency power-off detection with low power consumption and low cost.

[0009] The technical solution adopted by the present invention to solve the above technical problems is:

[0010] On the one hand, the present invention provides a battery power-off detection circuit, which is applied to an electronic device powered by a battery, and is composed of a first MOS tube, a second MOS tube, a first resistor, a second resistor, a third resistor and a diode;

[0011] The drain of the first MOS tube is connected to the interrupt IO port of the MCU of the electronic device; the terminal IO port of the MCU of the electronic device is connected to the first resistor as a pull-up resistor; the source of the first MOS tube is grounded, the gate is connected to the second resistor as a pull-up resistor, and is connected to the drain of the second MOS tube; the source of the second MOS tube is grounded, the gate is grounded through the third resistor, and is connected to the positive electrode of the battery of the electronic device; the positive electrode of the diode is connected to the positive electrode of the battery of the electronic device, the negative electrode is connected to the negative electrode of the energy storage capacitor in the electronic device, and is connected to the power supply input end of the electronic device; the positive electrode of the energy storage capacitor in the electronic device is grounded.

[0012] Furthermore, the first MOS transistor and the second MOS transistor are both NMOS transistors.

[0013] Furthermore, the second resistor is a resistor with a resistance value of 500K ohms or more.

[0014] Furthermore, the third resistor is a resistor with a resistance value of more than 1 megohm.

[0015] On the other hand, based on the above-mentioned battery power-off detection circuit, the present invention further provides an electronic device, which includes an MCU, an energy storage capacitor, and the above-mentioned battery power-off detection circuit.

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

[0017] (1) The power-off detection circuit provided by the present invention uses a dual MOS tube switch to trigger an interrupt of the MCU, so that the MCU can be informed of the battery power-off situation. The on-off time of the MOS tube is usually in the nanosecond level, so that the battery power-off can be detected with ultra-low latency.

[0018] (2) The power-off detection circuit provided by the present invention does not require the MCU of the electronic device to have an ADC acquisition function, and does not use the MCU to frequently perform the ADC power acquisition function to determine power failure. Therefore, a cheaper MCU can be selected to carry this power-off detection circuit, thereby reducing the cost of the entire device. In addition, the present invention only triggers the interrupt IO of the MCU at the moment of power failure to detect power failure, so the MCU does not need to be in a working state for a long time, and can use a sleep mode, thereby reducing the power consumption of the entire device and extending the battery life.

[0019] (3) The power-off detection circuit provided by the present invention only uses two MOS tubes, three resistors and one diode, and has a simple circuit structure, is easy to implement and has low cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 Schematic diagram of the structure of a battery power-off detection circuit in an embodiment of the present invention;

[0021] Among them, Q11 is the first MOS tube, Q12 is the second MOS tube, R62 is the first resistor, R61 is the second resistor, R64 is the third resistor, D4 is a diode, and C32 is an energy storage capacitor. DETAILED DESCRIPTION

[0022] The present invention aims to provide a battery power-off detection circuit and electronic device, which realizes ultra-low latency power-off detection, and has low power consumption and low cost. The battery power-off detection circuit provided by the present invention mainly includes two MOS tubes; wherein, one MOS tube is connected to the battery output and serves as an interrupt response switch, which flips the battery power-off signal and transmits it to the other MOS tube, and the other MOS tube is connected to the interrupt IO port of the MCU as an instantaneous switch. When the other MOS tube receives the flip signal of the power-off signal, it controls the interrupt IO of the MCU to change the level state, thereby triggering the power-off detection of the MCU, that is, the present invention uses a dual MOS tube switch to trigger the interrupt of the MCU, so that the MCU can be informed of the battery power-off situation, and the on and off time of the MOS tube is usually in the nanosecond level, so that the battery power-off can be detected with ultra-low latency.

[0023] At the same time, the power-off detection circuit provided by the present invention does not require the MCU of the electronic device to have an ADC acquisition function, and does not use the MCU to frequently perform the ADC power acquisition function to determine power failure. Therefore, a cheaper MCU can be selected to carry this power-off detection circuit, thereby reducing the cost of the entire machine. In addition, the present invention only triggers the interrupt IO of the MCU at the moment of power failure to detect power failure, so the MCU does not need to be in a working state for a long time, and can adopt a sleep mode, thereby reducing the power consumption of the entire machine and extending the service life of the battery.

[0024] Finally, the power-off detection circuit provided by the present invention only uses two MOS tubes, three resistors and one diode, and has a simple circuit structure, is easy to implement and has low cost.

[0025] The scheme of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0026] Example

[0027] See also Figure 1 The battery power-off detection circuit provided in this embodiment is composed of a first MOS tube Q11, a second MOS tube Q12, a first resistor R62, a second resistor R61, a third resistor R64 and a diode D4;

[0028] The drain of the first MOS tube Q11 is connected to the interrupt IO port of the MCU of the electronic device; the terminal IO port of the MCU of the electronic device is connected to the first resistor R62 as a pull-up resistor; the source of the first MOS tube Q11 is grounded, and the gate is connected to the second resistor R61 as a pull-up resistor, and is connected to the drain of the second MOS tube Q12; the source of the second MOS tube Q12 is grounded, and the gate is grounded through the third resistor R64 and is connected to the positive electrode of the battery of the electronic device; the positive electrode of the diode D4 is connected to the positive electrode of the battery of the electronic device, and the negative electrode is connected to the negative electrode of the energy storage capacitor C32 in the electronic device, and is connected to the power supply input end of the electronic device; the positive electrode of the energy storage capacitor C32 in the electronic device is grounded.

[0029] The functions of each device in the circuit are described as follows:

[0030] The MCU interrupt IO port is connected to a first resistor R62, and the first resistor R62 is pulled up to clamp the MCU interrupt IO at a high level in a normal state.

[0031] The first MOS tube Q11 is an NMOS tube, which is used as a momentary switch to control the level of the MCU interrupt IO.

[0032] The first MOS tube Q11 is connected to the second resistor R61. The second resistor R61 is pulled up to clamp the G electrode potential of the first MOS tube Q11 at a high level when the second MOS tube Q12 is not turned on. The resistance value of the second resistor R61 needs to be set to more than 500K, so as to control the leakage current to a very small level when the second MOS tube Q12 is turned on.

[0033] The second MOS tube Q12 serves as an interrupt response switch and flips the power-off signal to transmit it to the G pole of the first MOS tube Q11; the G pole of the second MOS tube Q12 is connected to the ground by the third resistor in order to provide a reference ground plane for the G pole of the second MOS tube Q12, and R64 needs to be more than 1 megohm to control the battery leakage current to a very small level.

[0034] The function of the diode D4 is to realize unidirectional flow of current, that is, the current can only flow from the battery to the load (electronic device) and the energy storage capacitor C32, but cannot flow from the energy storage capacitor C32 and the load to the battery in the reverse direction.

[0035] The function of the energy storage capacitor C32 is to continue to supply power to the load using the stored electrical energy after the battery loses power.

[0036] The working principle of the above power-off detection circuit is:

[0037] When the battery works normally, the energy storage capacitor C32 is charged through the diode D4 and the load MCU is powered. At this time, the G pole potential of the second MOS tube Q12 is a high potential (battery voltage), so the GS forward voltage difference of the second MOS tube Q12 makes the D terminal and the S terminal of the second MOS tube Q12 conductive, so the D terminal of the second MOS tube Q12, that is, the G terminal of the first MOS tube Q11, is a low potential. At this time, the G terminal and the S terminal of the first MOS tube Q11 are both low potentials, so the first MOS tube Q11 is in an off state, and the MCU interrupt IO is in a high level state.

[0038] When the battery loses power (such as being removed), the MCU in the load continues to be powered by the energy storage capacitor C32, the G pole of the second MOS tube Q12 becomes low level, the voltage difference between the G pole and the S pole of the second MOS tube Q12 is insufficient, the second MOS tube Q12 is turned off, and the D pole of the second MOS tube Q12 (the G pole of the first MOS tube Q11) becomes high potential, so that the forward voltage difference between the G pole and the S pole of the first MOS tube Q11 is sufficient, thereby turning on the D terminal and the S terminal of the first MOS tube Q11, and the MCU interrupt IO is therefore pulled down to a low level state, and this signal is transmitted back to the MCU for processing, thereby realizing battery power-off detection.

[0039] Finally, it should be noted that the above embodiments are only preferred implementations and are not intended to limit the present invention. It should be pointed out that for those skilled in the art, several modifications, equivalent replacements, improvements, etc. can be made without departing from the scope of the present invention and the scope of protection of the claims, and all of these should be included in the protection scope of the present invention.

Claims

1. A battery power failure detection circuit, used in an electronic device powered by a battery, characterized in that: The circuit is composed of a first MOS tube (Q11), a second MOS tube (Q12), a first resistor (R62), a second resistor (R61), a third resistor (R64) and a diode (D4); The drain of the first MOS tube (Q11) is connected to the interrupt IO port of the MCU of the electronic device; the terminal IO port of the MCU of the electronic device is connected to the first resistor (R62) as a pull-up resistor; the source of the first MOS tube (Q11) is grounded, the gate is connected to the second resistor (R61) as a pull-up resistor, and is connected to the drain of the second MOS tube (Q12); the source of the second MOS tube (Q12) is grounded, the gate is grounded through a third resistor (R64), and is connected to the positive electrode of the battery of the electronic device; the positive electrode of the diode (D4) is connected to the positive electrode of the battery of the electronic device, the negative electrode is connected to the negative electrode of the energy storage capacitor (C32) in the electronic device, and is connected to the power supply input end of the electronic device; the positive electrode of the energy storage capacitor (C32) in the electronic device is grounded.

2. A battery power-off detection circuit as claimed in claim 1, characterized in that: The first MOS transistor (Q11) and the second MOS transistor (Q12) are both NMOS transistors.

3. A battery power-off detection circuit as claimed in claim 1, characterized in that: The second resistor (R61) is a resistor with a resistance value of 500K ohms or more.

4. A battery power-off detection circuit as claimed in claim 1, characterized in that: The third resistor (R64) is a resistor with a resistance value of more than 1 megohm.

5. An electronic device, comprising an MCU and an energy storage capacitor, characterized in that: It also includes a battery power-off detection circuit as described in any one of claims 1-4.