CN109144219B - Method for realizing low-voltage protection unlocking by matching with power failure delay - Google Patents

Method for realizing low-voltage protection unlocking by matching with power failure delay Download PDF

Info

Publication number
CN109144219B
CN109144219B CN201810941613.3A CN201810941613A CN109144219B CN 109144219 B CN109144219 B CN 109144219B CN 201810941613 A CN201810941613 A CN 201810941613A CN 109144219 B CN109144219 B CN 109144219B
Authority
CN
China
Prior art keywords
voltage
low
unlocking
voltage protection
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810941613.3A
Other languages
Chinese (zh)
Other versions
CN109144219A (en
Inventor
俞玉春
周彬浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Etron Technologies Co ltd
Original Assignee
Suzhou Etron Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Etron Technologies Co ltd filed Critical Suzhou Etron Technologies Co ltd
Priority to CN201810941613.3A priority Critical patent/CN109144219B/en
Publication of CN109144219A publication Critical patent/CN109144219A/en
Application granted granted Critical
Publication of CN109144219B publication Critical patent/CN109144219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • G06F1/305Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations in the event of power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips

Abstract

The invention discloses a method for realizing low-voltage protection unlocking by matching with power failure delay, wherein a system enters a low-voltage protection state: s1, detecting system voltage; s2, judging whether the current voltage is larger than the set starting voltage V1, if so, entering S4; otherwise, go to S3; s3, recording the detected system voltage as the previous voltage, and returning to S1; s4, judging whether the previous voltage is smaller than the set low-voltage protection threshold value Vt, if so, entering S5; otherwise, go to S3; s5, turning on the power supply, clearing the error flag bit to enable the system to recover to normal, and entering S1; and the steps S1-S5 are circularly operated until the system chip is completely powered off or the unlocking is successful. The invention aims at the system for unlocking protection only when the power is rapidly turned on and off again instead of the battery voltage is recovered, and realizes low-voltage protection unlocking. Under the condition of not increasing structural hardware, the invention is matched with the delay time of power failure, and the problem that the system cannot be started with probability is solved when the system is quickly turned on and turned off but the battery voltage is recovered.

Description

Method for realizing low-voltage protection unlocking by matching with power failure delay
Technical Field
The invention relates to low-voltage protection, in particular to a method for realizing low-voltage protection unlocking by matching with power failure delay.
Background
For embedded development, because the system often adds a capacitor to prevent the jitter of the power supply end, the instability of power supply is reduced, but because of the existence of the capacitor, the system has a certain delay when the power is off. The 5V power supply single chip microcomputer is also slowly dropped to the voltage for stopping working due to the existence of the capacitor, and the software completely stops running, namely a period of time delay exists between the system power failure and the complete software stop running, which is called as the power failure delay of the software.
The system generally has a low-voltage protection function, generally protects the voltage of an access system, which is called system voltage, and the power supply voltage of the singlechip is converted from the system voltage. When the system voltage is in power failure, the software enters a low-voltage protection program, the software cannot immediately stop running due to the existence of the power failure delay of the software, and at the moment, if the system voltage is quickly recovered, the power supply of the single chip microcomputer is recovered, the software is still in a protection state and is not reset, and the system cannot run.
For the whole system, the voltage is recovered after the power failure, and the whole system is required to be operated again, but the action cannot be completed due to the existence of the power failure delay of software. Under general conditions, a voltage detection circuit is added to the power supply voltage of the single chip microcomputer and is matched with software, so that the software is reset when the voltage of the single chip microcomputer is reduced, hardware expense and software expense are increased, and cost is increased; another approach is to exit the protection if a voltage rise is detected. And after the system achieves low-voltage protection, the power supply of the system is closed, even if the power supply is recovered, the system is still not opened, and the two methods cannot meet the requirements unless the system is turned on and off again.
Disclosure of Invention
The invention aims to: the method for realizing the low-voltage protection unlocking in coordination with the power failure delay is characterized in that after low-voltage protection, a system power supply is turned off, and only when the battery is quickly turned on and off again instead of battery voltage recovery, the system power supply is unlocked, protected and recovered, and the requirements of not unlocking after the battery voltage recovery and unlocking after the battery is turned on and off again are met.
The technical scheme of the invention is as follows:
the method for realizing the low-voltage protection unlocking by matching with the power failure delay comprises the following steps that when a system enters a low-voltage protection state:
s1, detecting system voltage;
s2, judging whether the current voltage is larger than the set starting voltage V1, if so, entering S4; otherwise, go to S3;
s3, recording the detected system voltage as the previous voltage, and returning to S1;
s4, judging whether the previous voltage is smaller than the set low-voltage protection threshold value Vt, if so, entering S5, otherwise, entering S3;
s5, turning on the power supply, clearing the error flag bit to enable the system to recover to normal, and entering S1;
and the steps S1-S5 are circularly operated until the system chip is completely powered off or the unlocking is successful.
Preferably, the low-voltage protection state refers to low-voltage protection of a system power supply voltage, and the system chip voltage is obtained by conversion of a voltage stabilizing module.
Preferably, the corresponding action after the low-voltage protection is to turn off the system power supply, and the system can be turned on only when the power supply is turned on and off again even if the power supply is recovered after the system power supply is turned off.
Preferably, the power supply is a battery pack.
The invention has the advantages that:
1. the method for realizing the low-voltage protection unlocking in cooperation with the power failure delay realizes the low-voltage protection unlocking aiming at a system for unlocking protection only when the power is quickly turned on and off again instead of the battery voltage is recovered.
2. Under the condition of not increasing a power supply voltage detection circuit of a single chip microcomputer, the power failure delay time is matched, the problem that the system cannot be started with probability is solved when the system is rapidly turned on and turned off, and hardware cost is saved.
Drawings
The invention is further described with reference to the following figures and examples:
FIG. 1 is a flow chart of a method of the present invention for implementing low voltage protection unlocking in conjunction with power down delay;
FIG. 2 is a graph showing the variation of the battery voltage, the power-off signal, and the power supply of the single chip during the low-voltage protection process according to the embodiment;
fig. 3 is an enlarged view of a change curve at time T2 in fig. 2.
Detailed Description
The system is used for a blower project, the system detects the battery voltage of 40V, the single chip microcomputer is PIC16F616, and the working voltage range is 5.5V-2V. The low-voltage protection threshold value of the blower to the battery voltage is 26V, the starting condition is more than 29V, namely the system wants to start, the battery voltage must be more than 29V, if the system voltage drops below 26V and lasts 500ms in the starting stage, low-voltage protection is carried out, and the power supply is a battery pack. The corresponding action is to close the system power supply after the low-voltage protection, the system is not opened even if the power supply is recovered (the voltage self-recovery slope of the battery pack is less than 0.6V/ms) after the system power supply is closed, and the system is unlocked and opened only under the condition of re-switching on and off.
As shown in fig. 1, when the system enters a low-voltage protection state (the low-voltage protection state refers to low-voltage protection of the system power supply voltage, not the single-chip microcomputer power supply voltage, the single-chip microcomputer voltage is obtained by conversion of a voltage stabilizing chip):
s1, detecting system voltage;
s2, judging whether the current voltage is larger than the set starting voltage 29V, if so, entering S4; otherwise, go to S3;
s3, recording the detected system voltage as the previous voltage, and returning to S1;
s4, judging whether the previous voltage is smaller than a set low-voltage protection threshold value 26V, if so, entering S5, otherwise, entering S3;
s5, turning on the power supply, clearing the error flag bit to enable the system to recover to normal, and entering S1;
and the steps S1-S5 are circularly operated until the system chip is completely powered off or the unlocking is successful.
It can be seen from fig. 2 that when the voltage is lower than 26V and lasts for 500ms from t1 to t2, the system enters low-voltage protection and the system is powered off. As can be seen from the enlarged view at the time t2 in fig. 3, the voltage of the single chip microcomputer drops from 5V to below 2V within 4.8ms after the system is powered off, and if the voltage rises rapidly within this time, the function of protection unlocking is needed to restore to normal.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and the purpose of the embodiments is to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the protection scope of the present invention. All modifications made according to the spirit of the main technical scheme of the invention are covered in the protection scope of the invention.

Claims (4)

1. The method for realizing the low-voltage protection unlocking by matching with the power failure delay is characterized in that when the system enters a low-voltage protection state:
s1, detecting system voltage;
s2, judging whether the current voltage is larger than the set starting voltage V1, if so, entering S4; otherwise, go to S3;
s3, recording the detected system voltage as the previous voltage, and returning to S1;
s4, judging whether the previous voltage is smaller than the set low-voltage protection threshold value Vt, if so, entering S5, otherwise, entering S3;
s5, turning on the power supply, clearing the error flag bit to enable the system to recover to normal, and entering S1;
and the steps S1-S5 are circularly operated until the system chip is completely powered off or the unlocking is successful.
2. The method for achieving low-voltage protection unlocking in cooperation with power failure delay according to claim 1 is characterized in that the low-voltage protection state refers to low-voltage protection of system power supply voltage, and system chip voltage is obtained through conversion of a voltage stabilizing module.
3. The method for achieving low-voltage protection unlocking in cooperation with power failure delay according to claim 1, wherein the corresponding action after low-voltage protection is to turn off a system power supply, and the system is not turned on even if the power supply is recovered after the system power supply is turned off.
4. The method for achieving low-voltage protection unlocking in cooperation with power failure delay according to claim 3, wherein the system power supply is a battery pack.
CN201810941613.3A 2018-08-17 2018-08-17 Method for realizing low-voltage protection unlocking by matching with power failure delay Active CN109144219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810941613.3A CN109144219B (en) 2018-08-17 2018-08-17 Method for realizing low-voltage protection unlocking by matching with power failure delay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810941613.3A CN109144219B (en) 2018-08-17 2018-08-17 Method for realizing low-voltage protection unlocking by matching with power failure delay

Publications (2)

Publication Number Publication Date
CN109144219A CN109144219A (en) 2019-01-04
CN109144219B true CN109144219B (en) 2021-08-27

Family

ID=64789858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810941613.3A Active CN109144219B (en) 2018-08-17 2018-08-17 Method for realizing low-voltage protection unlocking by matching with power failure delay

Country Status (1)

Country Link
CN (1) CN109144219B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107411B (en) * 2023-04-12 2023-08-29 荣耀终端有限公司 Starting-up method and related device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5963015A (en) * 1997-05-21 1999-10-05 Samsung Electronics Co., Ltd. External battery charger for use with a battery powered electronic device and an extra battery
CN1357809A (en) * 2000-12-05 2002-07-10 神达电脑股份有限公司 Power source unit unblocking method
CN1357954A (en) * 2000-12-05 2002-07-10 神达电脑股份有限公司 Undervoltage protection method and protector
CN201504096U (en) * 2009-07-30 2010-06-09 中兴通讯股份有限公司 Power supply circuit protection device
CN107024657A (en) * 2016-01-30 2017-08-08 中山乐心电子有限公司 A kind of electricity display processing method and device for electronic equipment
CN107357403A (en) * 2017-07-18 2017-11-17 防城港市港口区高创信息技术有限公司 A kind of computer power power-off and power down protection system
CN107478895A (en) * 2017-08-24 2017-12-15 广州金升阳科技有限公司 A kind of voltage detecting circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5963015A (en) * 1997-05-21 1999-10-05 Samsung Electronics Co., Ltd. External battery charger for use with a battery powered electronic device and an extra battery
CN1357809A (en) * 2000-12-05 2002-07-10 神达电脑股份有限公司 Power source unit unblocking method
CN1357954A (en) * 2000-12-05 2002-07-10 神达电脑股份有限公司 Undervoltage protection method and protector
CN201504096U (en) * 2009-07-30 2010-06-09 中兴通讯股份有限公司 Power supply circuit protection device
CN107024657A (en) * 2016-01-30 2017-08-08 中山乐心电子有限公司 A kind of electricity display processing method and device for electronic equipment
CN107357403A (en) * 2017-07-18 2017-11-17 防城港市港口区高创信息技术有限公司 A kind of computer power power-off and power down protection system
CN107478895A (en) * 2017-08-24 2017-12-15 广州金升阳科技有限公司 A kind of voltage detecting circuit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《Protection of a low-voltage DC ring microgrid system》;Aswani J等;《Protection of a low-voltage DC ring microgrid system》;20161231;17-22 *
《一种高可靠性的单片机掉电保护设计》;王朝辉等;《武汉科技大学学报》;20060831;第29卷(第4期);401-403,424 *

Also Published As

Publication number Publication date
CN109144219A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
US9077201B2 (en) Uninterruptible power supply device
CN103092315B (en) The mobile terminal of rear recovery application program can be restarted
CN201075737Y (en) Power down protection circuit
CN102790374B (en) Short circuit protection circuit
CN103944254A (en) Power-fail protection circuit and device
CN109194317B (en) Reset circuit and wearable equipment
CN101969188A (en) Resistor short-circuit protective device and protective method used for switching power supply
CN109144219B (en) Method for realizing low-voltage protection unlocking by matching with power failure delay
CN108389596B (en) Power-down protection circuit and method of NAND Flash chip and solid state disk
CN103904769A (en) System and method for controlling standby battery
CN105739657A (en) Circuit structure applied to embedded system
US8004333B2 (en) Power management and control apparatus for resetting a latched protection in a power supply unit
CN113852277B (en) High-robustness DC/DC converter
CN101335514A (en) Safe switching apparatus and switching method for system on chip
CN102745150B (en) Utilize the MCU power supply lock-out circuit of backup power
CN101119085B (en) PWM solar power control module of PWM solar controller
CN107426619A (en) Intelligent television and its under-voltage protection fault-tolerance approach
JP2024052966A (en) Charge/discharge control circuit and battery device equipped with same
CN201947164U (en) Resistor short circuit protection device
CN113098103A (en) Power-down discharge circuit and method and power management system
CN205051670U (en) Fall electricity from opening control circuit
CN103532536B (en) The power on-off control circuit of vehicle electronic device
CN114915011A (en) Vehicle-mounted DVR main power circuit control method and device and readable medium
CN205490122U (en) Input undervoltage protection circuit
CN208062858U (en) A kind of electric power management circuit for hand-held equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant