CN109471749A - Reset count power-off restarting circuit - Google Patents
Reset count power-off restarting circuit Download PDFInfo
- Publication number
- CN109471749A CN109471749A CN201811313565.XA CN201811313565A CN109471749A CN 109471749 A CN109471749 A CN 109471749A CN 201811313565 A CN201811313565 A CN 201811313565A CN 109471749 A CN109471749 A CN 109471749A
- Authority
- CN
- China
- Prior art keywords
- circuit
- power
- reset
- restarting
- relay
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
A kind of reset count power-off restarting circuit, comprising: reset driving circuit, counts clear circuit, relay drive circuit and power-off control circuit at counting circuit.Reset driving circuit negates the reset signal that watchdog chip exports, and inputs counting circuit;Counting circuit counts number of resets, and output relay controls signal;Relay drive circuit controls the power on/off of relay coil according to control signal;Power-off control circuit cuts off plate interior power using the normally closed contact of relay.It counts clear circuit and receives the feeding-dog signal from CPU, counter is zeroed out.The present invention for it is abnormal when house dog repeatedly reset can not still restore normal when, by power-off restarting come recovery system.
Description
Technical field
The invention belongs to information technology fields, and in particular to a kind of reset count power-off restarting circuit.
Background technique
Current production, there are house dogs repeatedly to reset a possibility that all can not work normally, to the reliability service band of product
Carry out hidden danger.
In patent of invention " the monitoring circuit of control system " (CN107329847A), use watchdog reset directly disconnected
The scheme that electricity is restarted, but powered off again after not counted to number of resets, circuit usability is poor.
In patent of invention " watchdog system and its control method in a kind of embedded device " (CN101751303A),
Starting and the shielding mechanism of a kind of house dog are devised, the reset output of house dog is not counted, power supply is not powered off
Control, it is larger with the invention patent difference.
In patent of invention " a kind of watchdog circuit of microcontroller exception forced resetting " (CN104750568A), newly set
A kind of watchdog circuit has been counted, the reset output of house dog is not counted, power-off control is not carried out to power supply, it is special with the present invention
Profit is not larger.
In existing design, when CPU exception, will lead to house dog output reset signal, which makes cpu reset weight
New operation, but CPU can not also restore to work normally after reset in many cases, lasts for reset, system occur so as to cause system
Delay machine.
Summary of the invention
In order to solve the above technical problems, the present invention provides a kind of reset count power-off restarting circuit.
To realize above-mentioned function, the specific technical proposal of the invention is:
A kind of reset count power-off restarting circuit, comprising: reset driving circuit, counts clear circuit, relay at counting circuit
Device driving circuit and power-off control circuit;It is characterized by:
Reset driving circuit input terminal connects the reset output signal of watchdog chip, and output end is connected to counting circuit;
Counting circuit output end is connected to relay drive circuit;
The on-off of relay drive circuit control relay coil power supply;
The input terminal of power-off control circuit is external power supply power supply, and output end is circuit board interior power.
The present invention further comprises following preferred embodiment:
Reset driving circuit exports after negating to watchdog reset signal.
The counting circuit is realized using d type flip flop, by the series connection of multiple d type flip flops, in addition the decoding logic of rear class
Circuit realizes the counter of different moduluses, and when counting reaches setting value N, counting circuit exports low level.
The d type flip flop number of the counting circuit is selected according to actual count number, that is, setting value N.
The d type flip flop number of the counting circuit is 2, the setting value N=3.
The set pin of each d type flip flop is connected to high level.
After the relay drive circuit receives low level, triode ON so that relay coil be powered, driving after
The movement of electric appliance contact;
Power-off control circuit using the normally closed contact of relay come the on-off of control panel interior power and external input power, when
Plate interior power is connected when relay tip is connected, and when relay tip disconnects, disconnects plate interior power, the weight of board power-off at this time
It opens.
The power-off control circuit uses the normally closed contact of relay, guarantees to default after circuit board powers on by external input electricity
Source is connected to plate interior power, while after power-off restarting, and plate interior power can be defaulted again to be connected to.
The feeding-dog signal of clear circuit input terminal connection CPU is counted, after driving chip, output end is connected to each D
The clearing pin of trigger.
When CPU is operating abnormally, feeding-dog signal disappears, and watchdog chip generates reset signal, and counter starts to reset
Number is counted, when counting reaches the i.e. setting value N of counts, driving relay open normally closed contact, plate interior power with
External power supply disconnects, and board executes a power-off restarting.
The invention has the following beneficial technical effects:
The present invention counts number of resets, after reaching setting number, by board again power-off restarting, so that board
Again restore, improve the availability of product.
Detailed description of the invention
Fig. 1 is reset count power-off restarting examples of circuits figure of the present invention;
Fig. 2 is reset count power-off restarting logic diagram of circuit of the present invention.
Specific embodiment
Technical solution of the present invention is described in further detail with reference to the accompanying drawings of the specification.
As shown in Figure 1, being reset count power-off restarting examples of circuits figure of the present invention, reset count power-off restarting circuit, packet
It includes reset driving circuit 1, counting circuit 2, relay drive circuit 3, power-off control circuit 4 and counts clear circuit 5.
1 input terminal of reset driving circuit connects the reset output signal of watchdog chip, and output end is connected to the meter of rear class
Number circuit 2.Watchdog chip exports low level when resetting, and becomes high level after NOT gate negates, this is by the low level got higher
Jump forms rising edge signal.
Counting circuit 2 adds logic decoding circuit to realize by d type flip flop, can be realized not by the d type flip flop of different number
Same count value N, this example are illustrated by taking N=3 as an example.2 input terminal of counting circuit connects the output end of reset driving circuit 1,
The clock pins for being signally attached to first d type flip flop of input, first d type flip flop inverse output terminal/Q are connected to first
The input pin D of d type flip flop, while being connected to the clock pins of second d type flip flop.The reversed output of second d type flip flop
End/Q is connected to the input pin D of second d type flip flop.The positive output end Q of first d type flip flop and second d type flip flop
It is connected respectively to the NAND gate of rear class.
The course of work of counting circuit is as follows:
1, when watchdog chip resets for the first time, the output end Q of first d type flip flop is high level, second d type flip flop
Output end Q be low level;
2, when watchdog chip resets for the second time, the output end Q of first d type flip flop is low level, second d type flip flop
Output end Q be high level;
3, when watchdog chip third time resets, the output end Q of first d type flip flop is high level, second d type flip flop
Output end Q be high level, at this time NAND gate export low level.
The output end of 3 input terminal connection count circuit 2 of relay drive circuit, input are connected to the base stage of triode, and three
The emitter of pole pipe connects relay coil, transistor collector ground connection, and triode selects positive-negative-positive.When input signal is low electricity
Usually, triode ON, the conducting of relay coil driving circuit, action of relay contact.
Power-off control circuit 4 utilizes the on-off of the normally closed contact Control card power supply of relay.When relay is not driven
When, normally closed contact closure, board power supply is connected with external input power, and board works normally.When relay is driven, relay
Device normally closed contact disconnects, and board power supply and external input power disconnect, board power loss.After board power loss, relay drive circuit
The power supply of middle driving coil disappears, and relay normally closed contact returns to closed state, and board power supply is led again with external input power
Logical, whole process completes a power-off restarting.
Clear circuit 5 is counted for being zeroed out to counting circuit 3, input terminal is the feeding-dog signal of CPU output, output end
It is connected to the clearing pin of multiple d type flip flops of counting circuit 2.It counts clear circuit and inputs input signal by AC coupled
It is exported again after to driver, increase level-one driver is currently the driving capability for increasing feeding-dog signal, is guaranteed reliably to more
A d type flip flop is reset.
If Fig. 2 is restarted shown in logic diagram, when CPU is worked normally, feeding-dog signal timing output, counter is cleared,
Counting circuit exports high level, and relay is failure to actuate.When CPU operation irregularity, feeding-dog signal stops output, and counter is not clear
Zero, start reset count.If CPU restores normally in the reboot process, counter O reset, otherwise Counter Value adds 1, works as counting
When value reaches n times, counting circuit exports low level, the actuating of relay, board power-off restarting.
Applicant combines Figure of description to be described in detail and describe the embodiment of the present invention, but this field skill
Art personnel are it should be understood that above embodiments are only the preferred embodiments of the invention, and explanation is intended merely to help reader in detail
More fully understand spirit of that invention, and it is not intended to limit the protection scope of the present invention, on the contrary, any based on invention essence of the invention
Any improvement or modification made by mind should all be fallen within the scope and spirit of the invention.
Claims (10)
1. a kind of reset count power-off restarting circuit, comprising: reset driving circuit, counts clear circuit, relay at counting circuit
Driving circuit and power-off control circuit;It is characterized by:
Reset driving circuit input terminal connects the reset output signal of watchdog chip, and output end is connected to counting circuit;
Counting circuit output end is connected to relay drive circuit;
The on-off of relay drive circuit control relay coil power supply;
The input terminal of power-off control circuit is external power supply power supply, and output end is circuit board interior power.
2. reset count power-off restarting circuit according to claim 1, it is characterised in that:
Reset driving circuit exports after negating to watchdog reset signal.
3. reset count power-off restarting circuit according to claim 2, it is characterised in that:
The counting circuit is realized using d type flip flop, by the series connection of multiple d type flip flops, in addition the decoding logic circuit of rear class
The counter for realizing different moduluses, when counting reaches setting value N, counting circuit exports low level.
4. reset count power-off restarting circuit according to claim 3, it is characterised in that:
The d type flip flop number of the counting circuit is selected according to actual count number, that is, setting value N.
5. reset count power-off restarting circuit according to claim 4, it is characterised in that:
The d type flip flop number of the counting circuit is 2, the setting value N=3.
6. reset count power-off restarting circuit according to claim 3, it is characterised in that:
The set pin of each d type flip flop is connected to high level.
7. reset count power-off restarting circuit according to claim 1 or 3, it is characterised in that:
After the relay drive circuit receives low level, triode ON drives relay so that relay coil is powered
Contact movement;
Power-off control circuit, come the on-off of control panel interior power and external input power, works as relay using the normally closed contact of relay
Plate interior power is connected when device contact is connected, and when relay tip disconnects, disconnects plate interior power, at this time board power-off restarting.
8. reset count power-off restarting circuit according to claim 7, it is characterised in that:
The power-off control circuit uses the normally closed contact of relay, guarantee after circuit board powers on default by external input power with
The connection of plate interior power, while after power-off restarting, plate interior power can be defaulted again to be connected to.
9. reset count power-off restarting circuit according to claim 1 or 8, it is characterised in that:
The feeding-dog signal for counting clear circuit input terminal connection CPU, after driving chip, output end is connected to each D triggering
The clearing pin of device.
10. reset count power-off restarting circuit according to claim 9, it is characterised in that:
When CPU is operating abnormally, feeding-dog signal disappears, and watchdog chip generates reset signal, and counter starts to number of resets
It is counted, when counting reaches the i.e. setting value N of counts, driving relay opens normally closed contact, plate interior power and outside
Power supply disconnects, and board executes a power-off restarting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811313565.XA CN109471749A (en) | 2018-11-06 | 2018-11-06 | Reset count power-off restarting circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811313565.XA CN109471749A (en) | 2018-11-06 | 2018-11-06 | Reset count power-off restarting circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109471749A true CN109471749A (en) | 2019-03-15 |
Family
ID=65672509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811313565.XA Pending CN109471749A (en) | 2018-11-06 | 2018-11-06 | Reset count power-off restarting circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109471749A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110837438A (en) * | 2019-09-23 | 2020-02-25 | 上海空间电源研究所 | Automatic switching circuit for main backup embedded system |
CN111708308A (en) * | 2020-07-03 | 2020-09-25 | 迈普通信技术股份有限公司 | Single-board power supply control circuit and electronic equipment |
CN112463426A (en) * | 2020-11-16 | 2021-03-09 | 中国电子科技集团公司第五十八研究所 | Watchdog reset circuit with serial counting function and working method |
CN113325779A (en) * | 2021-06-07 | 2021-08-31 | 沈阳铁路信号有限责任公司 | Reset signal safety output circuit and implementation method |
CN114861572A (en) * | 2022-07-05 | 2022-08-05 | 上海泰矽微电子有限公司 | Control system and method for multifunctional enabling pin |
CN115291120A (en) * | 2022-08-22 | 2022-11-04 | 维沃移动通信有限公司 | Battery metering system, electronic equipment and control method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130198539A1 (en) * | 2012-02-01 | 2013-08-01 | Renesas Electronics Corporation | Watchdog circuit, power ic and watchdog monitor system |
CN104461755A (en) * | 2014-12-19 | 2015-03-25 | 天津七一二通信广播有限公司 | Circuit for resetting watchdog finitely and implementation method |
CN204576409U (en) * | 2015-03-26 | 2015-08-19 | 深圳市科陆电子科技股份有限公司 | Power-off restoration control circuit |
US20160132378A1 (en) * | 2014-11-12 | 2016-05-12 | Hyundai Motor Company | Method and apparatus for controlling watchdog |
CN106528319A (en) * | 2016-12-02 | 2017-03-22 | 山东有人信息技术有限公司 | Watchdog circuit capable of configuring dog-feeding cycle |
CN106933690A (en) * | 2017-02-27 | 2017-07-07 | 北京博纳电气股份有限公司 | A kind of hardware watchdog implementation method based on MCU |
CN107329847A (en) * | 2017-06-05 | 2017-11-07 | 深圳市有方科技股份有限公司 | The supervisory circuit of control system |
-
2018
- 2018-11-06 CN CN201811313565.XA patent/CN109471749A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130198539A1 (en) * | 2012-02-01 | 2013-08-01 | Renesas Electronics Corporation | Watchdog circuit, power ic and watchdog monitor system |
US20160132378A1 (en) * | 2014-11-12 | 2016-05-12 | Hyundai Motor Company | Method and apparatus for controlling watchdog |
CN104461755A (en) * | 2014-12-19 | 2015-03-25 | 天津七一二通信广播有限公司 | Circuit for resetting watchdog finitely and implementation method |
CN204576409U (en) * | 2015-03-26 | 2015-08-19 | 深圳市科陆电子科技股份有限公司 | Power-off restoration control circuit |
CN106528319A (en) * | 2016-12-02 | 2017-03-22 | 山东有人信息技术有限公司 | Watchdog circuit capable of configuring dog-feeding cycle |
CN106933690A (en) * | 2017-02-27 | 2017-07-07 | 北京博纳电气股份有限公司 | A kind of hardware watchdog implementation method based on MCU |
CN107329847A (en) * | 2017-06-05 | 2017-11-07 | 深圳市有方科技股份有限公司 | The supervisory circuit of control system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110837438A (en) * | 2019-09-23 | 2020-02-25 | 上海空间电源研究所 | Automatic switching circuit for main backup embedded system |
CN110837438B (en) * | 2019-09-23 | 2022-03-04 | 上海空间电源研究所 | Automatic switching circuit for main backup embedded system |
CN111708308A (en) * | 2020-07-03 | 2020-09-25 | 迈普通信技术股份有限公司 | Single-board power supply control circuit and electronic equipment |
CN112463426A (en) * | 2020-11-16 | 2021-03-09 | 中国电子科技集团公司第五十八研究所 | Watchdog reset circuit with serial counting function and working method |
CN113325779A (en) * | 2021-06-07 | 2021-08-31 | 沈阳铁路信号有限责任公司 | Reset signal safety output circuit and implementation method |
CN114861572A (en) * | 2022-07-05 | 2022-08-05 | 上海泰矽微电子有限公司 | Control system and method for multifunctional enabling pin |
CN115291120A (en) * | 2022-08-22 | 2022-11-04 | 维沃移动通信有限公司 | Battery metering system, electronic equipment and control method |
WO2024041427A1 (en) * | 2022-08-22 | 2024-02-29 | 维沃移动通信有限公司 | Battery metering system, electronic device and control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109471749A (en) | Reset count power-off restarting circuit | |
CN103001177B (en) | A kind of LED lamp and overheating protection circuit thereof | |
CN103973287A (en) | Startup and shutdown machine circuit | |
CN203368422U (en) | Chip enabling signal delay control circuit | |
CN101299618B (en) | Real time clock circuit of intelligent mobile phone | |
CN101615780A (en) | Intelligent power supply protector | |
CN203746007U (en) | Microprocessor management circuit for self-powered microprocessor protection device | |
CN102841634A (en) | Server mainboard | |
CN204425030U (en) | For the power control system of intelligent gas meter | |
CN201584744U (en) | Intelligent power supply protector | |
CN103107577B (en) | Battery management circuit and terminal | |
CN203311331U (en) | Power supply and cut-off device for real-time clock chip of computer mainboard | |
CN101510178B (en) | Method and system for implementing terminal equipment self start-up on computer | |
CN102377708A (en) | Modem and power supply management method thereof | |
CN106374896B (en) | Power-out reset system | |
CN203350646U (en) | Automatic downloading device of single-chip microcomputer | |
CN103439847B (en) | A kind of bistable state mechanical shutter driving circuit of low-power consumption | |
CN202870804U (en) | Automatic startup circuit and industrial personal computer | |
CN204833242U (en) | Unusually, automatic recovery system crashes | |
CN104600797A (en) | Battery management circuit and terminal | |
CN208752699U (en) | A kind of pigsty gate inhibition's wireless controller based on live pig automatic breeding system | |
CN205141822U (en) | Novel two power automatic transfer switch controllers | |
CN105718406A (en) | Smart home control system based on improved I<2>C (Inter-Integrated Circuit) bus | |
CN203350664U (en) | Output control circuit | |
CN100397266C (en) | Single chip controller of automatic lathe for bearing rings |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190315 |