CN105468470B - D-trigger watchdog MCU monitoring circuit and use method thereof - Google Patents
D-trigger watchdog MCU monitoring circuit and use method thereof Download PDFInfo
- Publication number
- CN105468470B CN105468470B CN201511021729.8A CN201511021729A CN105468470B CN 105468470 B CN105468470 B CN 105468470B CN 201511021729 A CN201511021729 A CN 201511021729A CN 105468470 B CN105468470 B CN 105468470B
- Authority
- CN
- China
- Prior art keywords
- port
- signal
- reset
- chip
- monitoring
- 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
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 153
- 238000000034 method Methods 0.000 title claims abstract description 16
- 239000003990 capacitor Substances 0.000 claims description 32
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 18
- 230000005611 electricity Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
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
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 D-trigger watchdog MCU monitoring circuit and a use method thereof comprise a reset signal generating circuit, wherein the voltage input end of the reset signal generating circuit is connected with a power supply voltage VCC, the monitoring circuit also comprises a watchdog signal generating circuit, the watchdog signal generating circuit is provided with an enabling signal input end, a dog feeding signal input end and a dog feeding signal output end, and the signal output end of the watchdog signal generating circuit is connected with the data input end of the reset signal generating circuit; the reset signal generating circuit is provided with a first reset signal output end and a second reset signal output end, the second reset signal output end is connected with a reverse signal input end of the reverse circuit, and the reverse circuit is further provided with a reverse output end. When the device is used, the voltage of the MCU and the running of the program in the MCU can be monitored, the program debugging is not interfered, and the reliability is high.
Description
Technical field
The present invention relates to a kind of hardware watchdog monitoring circuit more particularly to a kind of D triggering house dog MCU monitoring circuit and
Its application method, it is particularly applicable to reset in time after improving the reliability of monitoring circuit, helping MCU error.
Background technique
In microcomputer system consisting of a single chip microcomputer, since the work of single-chip microcontroller usually will receive from extraneous electricity
The interference in magnetic field causes the data corruption of various registers and memory, will lead to program pointer mistake, not in program area, takes out
The program instruction etc. of mistake can all fall into endless loop, and the normal operation of program is interrupted, can not be after by monolithic processor controlled system
Continuous to work normally, will cause whole system falls into dead state, and unpredictable consequence occurs, and may result in EEPROM number
According to confusion, EEPROM erasing and writing life exhausts, and data can not be written in partial address, so real for carrying out to single-chip microcomputer running status
When the considerations of monitoring, just produce a kind of chip dedicated for monitoring SCM program operating status, be commonly called as house dog
(watchdog).The monitoring signal of existing MCU watchdog circuit is single, can interference simulation device pair in burning program or debugging
The reset of MCU.
Chinese patent application publication No. is CN104020705A, and data of publication of application is that the patent of invention on the 3rd of September in 2014 is public
A kind of power supply supervisory circuit with reset function, including SW172x chip and reset circuit are opened;The PFI of the SW172x chip
The input terminal of pin connection Schottky protection diode VD;The RST reset terminal of the SW172x chip, connects reset circuit
RST reset terminal;It include main power circuit and auxiliary power circuit in reset circuit;The base stage of the triode Q1 connects power vd D;
The anode connection resistance R13 of the diode D1;The RST reset terminal of the collector connection SW172x chip of triode Q1, although
The invention monitoring circuit problem reset in time, but its there are still following defects:
1, the monitoring signal of invention monitoring circuit is single, and monitoring reliability is low.
2, the invention monitoring circuit in burning program or debugging, monitoring circuit without disabling design, can interference program burn
Record and debugging.
3, the invention monitors only one reset signal output end of circuit, and reset signal output reliability is lower.
4, the house dog time-out time of the invention is non-adjustable, narrow scope of application.
Summary of the invention
The purpose of the present invention is overcoming the problems, such as that monitoring existing in the prior art is reliable low, a kind of high reliablity is provided
D triggers house dog MCU monitoring circuit and its application method.
In order to achieve the above object, the technical solution of the invention is as follows:
A kind of D triggering house dog MCU monitoring circuit, including reset signal generating circuit, the reset signal generating circuit
Voltage input end be connected with supply voltage VCC,
The monitoring circuit further includes watchdog signal generation circuit, and the watchdog signal generation circuit is provided with enabled
Signal input part, feeding-dog signal input terminal and feeding-dog signal output end, the signal output end of watchdog signal generation circuit and multiple
The data input pin of position signal generating circuit is connected;
The reset signal generating circuit is provided with the first reset signal output end and the second reset signal output end, described
Second reset signal output end is connected with the non-inverting signal input thereof of negater circuit, and the negater circuit is additionally provided with reversed letter
Number output end.
The watchdog signal generation circuit includes d type flip flop U3, capacitor C3, triode Q1 and resistance R1, R2, the D
Trigger U3 include the port Q, the port VCC, the port GND,Port, the port CLK and the port D, the end VCC of the d type flip flop U3
Mouth is connected with one end of supply voltage VCC, capacitor C3 respectively, the other end ground connection of capacitor C3, the GND of the d type flip flop U3
Port ground connection, the d type flip flop U3'sThe collector C series electrical of the collector C of port connecting triode Q1, triode Q1
It is connected after resistance R1 with supply voltage VCC, the emitter E ground connection of triode Q1, one end of the base stage B and resistance R2 of triode Q1
It is connected, the other end of resistance R2 is enable signal input terminal, and the feeding-dog signal input terminal includes the CLK of d type flip flop U3
Port and the port D, the feeding-dog signal output end are the port Q of d type flip flop U3;
The reset signal generating circuit include monitoring chip U1, capacitor C1, the monitoring chip U1 include the port VCC,
The port GND, the port RESET,The port VCC of port and the port WDI, the monitoring chip U1 is voltage input end,
The port VCC of monitoring chip U1 is connected with supply voltage VCC, the port GND of monitoring chip U1 ground connection, the port VCC with
Between the port GND and it is connected to capacitor C1, the port WDI of the monitoring chip U1 is data input pin, the port WDI and D
The port Q of trigger U3 is connected, the monitoring chip U1'sPort is the first reset signal output end, the prison
The port RESET of control chip U1 is the second reset signal output end, and the reverse signal of the port RESET and negater circuit is defeated
Enter end to be connected.
The negater circuit include NOT gate chip U2 and capacitor C2, the NOT gate chip U2 include the port VCC, the port GND,
The port A, Y-port and blank pipe foot NC, the port VCC of NOT gate chip U2 one end phase with supply voltage VCC, capacitor C2 respectively
Connection, the other end ground connection of capacitor C2, the port the GND ground connection of the NOT gate chip U2, the port A of the NOT gate chip U2 is
Non-inverting signal input thereof, the port A are connected with the port RESET of monitoring chip U1, and the Y-port of the NOT gate chip U2 is as anti-
To signal output end.
The monitoring chip U1 is the ADM8318 monitoring chip of ADI company.
A kind of application method of D triggering house dog MCU monitoring circuit:
The port D inputs feeding-dog signal DtrigCtl-D, and the port CLK inputs feeding-dog signal DtrigCtl-CLK,
The enable signal input terminal 4 inputs enable signal DtrigCtl-OE;
MCU do not work or MCU inside without house dog service routine when, enable signal DtrigCtl-OE be low level, D touching
Hair device U3 is disabled, and Q port output signal is in high-impedance state, the hardware watchdog function disabling inside monitoring chip U1;
When house dog service routine works normally inside MCU, enable signal DtrigCtl-OE is high level, d type flip flop U3
It is enabled:
When feeding-dog signal DtrigCtl-CLK jumps to high level from low level, the port Q exports feeding-dog signal
The level signal of DtrigCtl-D, when feeding-dog signal DtrigCtl-CLK jumps to low level from high level, the port Q output letter
Number state remains unchanged, and when feeding-dog signal DtrigCtl-CLK is in high level or low level, Q port output signal state is protected
It holds constant.
When Q port output signal is in high-impedance state, the port WDI of monitoring chip U1 is equivalent to open circuit, monitoring chip
Hardware watchdog function disabling inside U1;
When the port Q issues high and low level signal, the port WDI of monitoring chip U1 receives high and low level signal, prison
The hardware watchdog function of controlling inside chip U1 is enabled:
Timer when level jump occurs for the input signal of the port WDI of monitoring chip U1, inside monitoring chip U1
It resets, when the timing of timer is greater than time-out time t, monitoring chip U1'sPort issues reset signal RESET-1,
Control MCU is restarted;Meanwhile the end A of the port the RESET output reset signal RESET-2* to NOT gate chip U2 of monitoring chip U1
Mouthful, the Y-port of NOT gate chip U2 exports reversing reset signal RESET-2, and control MCU is restarted;
The time-out time of the monitoring chip U1 is t, and the signal period of the feeding-dog signal DtrigCtl-D is less than or equal to
Time-out time t.
When MCU is restarted, monitoring chip U1, d type flip flop U3 are in disabled status.
The signal period of the feeding-dog signal DtrigCtl-D is twice of feeding-dog signal DtrigCtl-CLK signal period.
When the voltage of the port VCC of monitoring chip U1 is lower than minimum operating voltage, monitoring chip U1'sPort
Reset signal RESET-1 is issued, control MCU is restarted;The port the RESET output reset signal RESET-2* of monitoring chip U1 is to non-
The port A of door chip U2, the Y-port of NOT gate chip U2 export reversing reset signal RESET-2, and control MCU is restarted.
Compared with prior art, the invention has the benefit that
1, it uses d type flip flop U3 for hardware watchdog in a kind of D triggering house dog MCU monitoring circuit of the present invention, effectively supervises
The failure for controlling MCU improves the reliability of monitoring circuit.Therefore, the high reliablity of the design, reset MCU in time.
2, the enable signal input terminal of monitoring circuit is provided in a kind of D triggering house dog MCU monitoring circuit of the present invention, really
Protect monitoring circuit only MCU work normally when enable, MCU do not work or MCU inside without house dog service routine when prison
It is disabled to control circuit, it is ensured that monitoring circuit will not reset of the interference simulation device to MCU when the burning of MCU internal processes or debugging.
Therefore, the monitoring circuit of the design is only used when MCU is worked normally, and will not interfere burning program and the debugging of MCU.
3, there are two different feeding-dog signals to input for setting in a kind of D triggering house dog MCU monitoring circuit of the present invention, enhancing
The monitoring that monitoring circuit run MCU internal processes, while monitoring circuit setting there are two reset signal output ends, it is ensured that it answers
Position signal is effectively transmitted to MCU, so that MCU be made to reset in time.Therefore, the high reliablity of the design, can in time to MCU into
Row resets.
4, the operating voltage VCC of MCU is monitored in a kind of D triggering house dog MCU monitoring circuit of the present invention, works as work
When voltage is lower than minimum operating voltage, monitoring circuit resets MCU.Therefore, the design can be to MCU operating voltage VCC
It is monitored, it is ensured that MCU works under normal voltage.
Detailed description of the invention
Fig. 1 is structural block diagram of the invention.
Fig. 2 is circuit design drawing of the invention.
Fig. 3 is signal timing diagram of the invention.
In figure: reset signal generating circuit 1, negater circuit 2, watchdog signal generation circuit 3, enable signal input terminal 4,
Feeding-dog signal input terminal 5, feeding-dog signal output end 6,7 first reset signal output end 8 of data input pin, the second reset signal are defeated
Outlet 9, voltage input end 10, non-inverting signal input thereof 11, inverse output terminal 12.
Specific embodiment
Below in conjunction with Detailed description of the invention and specific embodiment, the present invention is described in further detail.
Referring to Fig. 1 to Fig. 3, a kind of D triggering house dog MCU monitoring circuit, including reset signal generating circuit 1, it is described multiple
The voltage input end 10 of position signal generating circuit 1 is connected with supply voltage VCC,
The monitoring circuit further includes watchdog signal generation circuit 3, and the watchdog signal generation circuit 3, which is provided with, to be made
Energy signal input part 4, feeding-dog signal input terminal 5 and feeding-dog signal output end 6, the signal output of watchdog signal generation circuit 3
End 6 is connected with the data input pin 7 of reset signal generating circuit 1;
The reset signal generating circuit 1 is provided with the first reset signal output end 8 and the second reset signal output end 9,
The second reset signal output end 9 is connected with the non-inverting signal input thereof 11 of negater circuit 2, and the negater circuit 2 is also set
It is equipped with reverse signal output end 12.
The watchdog signal generation circuit 3 includes d type flip flop U3, capacitor C3, triode Q1 and resistance R1, R2, the D
Trigger U3 include the port Q, the port VCC, the port GND,Port, the port CLK and the port D, the end VCC of the d type flip flop U3
Mouth is connected with one end of supply voltage VCC, capacitor C3 respectively, the other end ground connection of capacitor C3, the GND of the d type flip flop U3
Port ground connection, the d type flip flop U3'sThe collector C series electrical of the collector C of port connecting triode Q1, triode Q1
It is connected after resistance R1 with supply voltage VCC, the emitter E ground connection of triode Q1, one end of the base stage B and resistance R2 of triode Q1
It is connected, the other end of resistance R2 is enable signal input terminal 4, and the feeding-dog signal input terminal 5 includes d type flip flop U3's
The port CLK and the port D, the feeding-dog signal output end 6 are the port Q of d type flip flop U3;
The reset signal generating circuit 1 include monitoring chip U1, capacitor C1, the monitoring chip U1 include the port VCC,
The port GND, the port RESET,Port and the port WDI, the port VCC of the monitoring chip U1 are voltage input end 10,
The port VCC of monitoring chip U1 is connected with supply voltage VCC, the port GND of monitoring chip U1 ground connection, the port VCC with
Between the port GND and it is connected to capacitor C1, the port WDI of the monitoring chip U1 is data input pin 7, the port WDI and D
The port Q of trigger U3 is connected, the monitoring chip U1'sPort is the first reset signal output end 8, described
The port RESET of monitoring chip U1 is the second reset signal output end 9, the reversed letter of the port RESET and negater circuit 3
Number input terminal 11 is connected.
The negater circuit 2 includes NOT gate chip U2 and capacitor C2, the NOT gate chip U2 include the port VCC, the end GND
Mouth, the port A, Y-port and blank pipe foot NC, the port VCC of the NOT gate chip U2 respectively with supply voltage VCC, capacitor C2 one
End is connected, the other end ground connection of capacitor C2, the port the GND ground connection of the NOT gate chip U2, the port A of the NOT gate chip U2
As non-inverting signal input thereof 11, the port A are connected with the port RESET of monitoring chip U1, the Y-port of the NOT gate chip U2
As reverse signal output end 12.
The monitoring chip U1 is the ADM8318 monitoring chip of ADI company.
A kind of application method of D triggering house dog MCU monitoring circuit:
The port D inputs feeding-dog signal DtrigCtl-D, and the port CLK inputs feeding-dog signal DtrigCtl-CLK,
The enable signal input terminal 4 inputs enable signal DtrigCtl-OE;
MCU do not work or MCU inside without house dog service routine when, enable signal DtrigCtl-OE be low level, D touching
Hair device U3 is disabled, and Q port output signal is in high-impedance state, the hardware watchdog function disabling inside monitoring chip U1;
When house dog service routine works normally inside MCU, enable signal DtrigCtl-OE is high level, d type flip flop U3
It is enabled:
When feeding-dog signal DtrigCtl-CLK jumps to high level from low level, the port Q exports feeding-dog signal
The level signal of DtrigCtl-D, when feeding-dog signal DtrigCtl-CLK jumps to low level from high level, the port Q output letter
Number state remains unchanged, and when feeding-dog signal DtrigCtl-CLK is in high level or low level, Q port output signal state is protected
It holds constant.
When Q port output signal is in high-impedance state, the port WDI of monitoring chip U1 is equivalent to open circuit, monitoring chip
Hardware watchdog function disabling inside U1;
When the port Q issues high and low level signal, the port WDI of monitoring chip U1 receives high and low level signal, prison
The hardware watchdog function of controlling inside chip U1 is enabled:
Timer when level jump occurs for the input signal of the port WDI of monitoring chip U1, inside monitoring chip U1
It resets, when the timing of timer is greater than time-out time t, monitoring chip U1'sPort issues reset signal RESET-1,
Control MCU is restarted;Meanwhile the end A of the port the RESET output reset signal RESET-2* to NOT gate chip U2 of monitoring chip U1
Mouthful, the Y-port of NOT gate chip U2 exports reversing reset signal RESET-2, and control MCU is restarted;
The time-out time of the monitoring chip U1 is t, and the signal period of the feeding-dog signal DtrigCtl-D is less than or equal to
Time-out time t.
When MCU is restarted, monitoring chip U1, d type flip flop U3 are in disabled status.
The signal period of the feeding-dog signal DtrigCtl-D is twice of feeding-dog signal DtrigCtl-CLK signal period.
When the voltage of the port VCC of monitoring chip U1 is lower than minimum operating voltage, monitoring chip U1'sPort
Reset signal RESET-1 is issued, control MCU is restarted;The port the RESET output reset signal RESET-2* of monitoring chip U1 is to non-
The port A of door chip U2, the Y-port of NOT gate chip U2 export reversing reset signal RESET-2, and control MCU is restarted.
The principle of the present invention is described as follows:
Voltage monitoring function is realized that monitoring chip U1 is the ADM8318 chip of ADI company by monitoring chip U1, works as monitoring
When the voltage of the port VCC of chip U1 is lower than minimum operating voltage, monitoring chip U1 issues reset signal RESET-1 and RESET-
2*, control MCU are restarted, and are restarted rear system voltage and are replied stable state;The duration of reset signal is tr.
The reseting port low level of MCU is effective;The port WDI of monitoring chip U1 is the feeding-dog signal of hardware watchdog circuit
Input port, when WDI port open, the hardware watchdog function of monitoring chip U1 is disabled.When the port WDI is connected to control electricity
Lu Shi needs timing to overturn the level of the port WDI, resets the WatchDog Timer inside monitoring chip U1 with this.
If not overturning to the level of the port WDI in a time out period t, WatchDog Timer spilling, triggering prison will result in
The reset output of chip U1 is controlled, monitoring chip U1 issues reset signal RESET-1 and RESET-2*, the reset of MCU is triggered, it is real
Existing MCU's restarts.
Table one: Watchdog control circuit logic true value table
X refers to that signal is the output that free position does not influence the port Q in upper table.Z refers to high-impedance state in upper table, at this time quite
In WDI port open.
The signal source of enable signal DtrigCtl-OE, feeding-dog signal DtrigCtl-D and feeding-dog signal DtrigCtl-CLK
The different output port of distinct program module in respectively MCU.
D type flip flop U3'sPort is in low level d type flip flop U3 and enables,Port is in high level d type flip flop U3 taboo
With.
When MCU does not work or inside is without house dog service routine, triode Q1 is not turned on, d type flip flop U3'sPort
Voltage is pulled upward to VCC by resistance R1, at this point, d type flip flop U3 is disabled, the output Q of d type flip flop U3 is in high-impedance state, monitoring
The port WDI of chip U1 is equivalent to open circuit, the inside watchdog function disabling of monitoring chip U1.And when MCU has been powered on and initialized
At later, DTrigCtl-OE signal is set to height by house dog service routine, and triode Q1 is connected, d type flip flop U3'sPort
Voltage pulled down to ground, and d type flip flop U3 is enabled.
Embodiment 1:
Referring to Fig. 1 to Fig. 3, a kind of D triggering house dog MCU monitoring circuit, including reset signal generating circuit 1, it is described multiple
The voltage input end 10 of position signal generating circuit 1 is connected with supply voltage VCC, and the monitoring circuit further includes watchdog signal
Generation circuit 3, the watchdog signal generation circuit 3 are provided with enable signal input terminal 4, feeding-dog signal input terminal 5 and feed dog
Signal output end 6, the signal output end 6 of watchdog signal generation circuit 3 and the data input pin 7 of reset signal generating circuit 1
It is connected;The reset signal generating circuit 1 is provided with the first reset signal output end 8 and the second reset signal output end 9, institute
It states the second reset signal output end 9 to be connected with the non-inverting signal input thereof 11 of negater circuit 2, the negater circuit 2 is also set up
There is reverse signal output end 12;The watchdog signal generation circuit 3 includes d type flip flop U3, capacitor C3, triode Q1 and resistance
R1, R2, the d type flip flop U3 include the port Q, the port VCC, the port GND,Port, the port CLK and the port D, the D triggering
The port VCC of device U3 is connected with one end of supply voltage VCC, capacitor C3 respectively, the other end ground connection of capacitor C3, the D touching
The port the GND ground connection of device U3 is sent out, the d type flip flop U3'sThe collector C of port connecting triode Q1, the current collection of triode Q1
It is connected after the C series resistance R1 of pole with supply voltage VCC, the emitter E ground connection of triode Q1, the base stage B and electricity of triode Q1
One end of resistance R2 is connected, and the other end of resistance R2 is enable signal input terminal 4, and the feeding-dog signal input terminal 5 is touched including D
The port CLK and the port D of device U3 are sent out, the feeding-dog signal output end 6 is the port Q of d type flip flop U3;The reset signal produces
Raw circuit 1 include monitoring chip U1, capacitor C1, the monitoring chip U1 include the port VCC, the port GND, the port RESET,Port and the port WDI, the port VCC of the monitoring chip U1 are voltage input end 10, the end VCC of monitoring chip U1
Mouth is connected with supply voltage VCC, and the port the GND ground connection of the monitoring chip U1 between the port VCC and the port GND and is connected to
Capacitor C1, the port WDI of the monitoring chip U1 are data input pin 7, the port the Q phase of the port WDI and d type flip flop U3
Connection, the monitoring chip U1'sPort is the first reset signal output end 8, the end RESET of the monitoring chip U1
Mouth is the second reset signal output end 9, and the port RESET is connected with the non-inverting signal input thereof 11 of negater circuit 3;Institute
It includes the port VCC, the port GND, the port A, the end Y that negater circuit 2, which is stated, including NOT gate chip U2 and capacitor C2, the NOT gate chip U2
Mouth and blank pipe foot NC, the port VCC of the NOT gate chip U2 are connected with one end of supply voltage VCC, capacitor C2 respectively, capacitor
The other end of C2 is grounded, and the port the GND ground connection of the NOT gate chip U2, the port A of the NOT gate chip U2 is reverse signal
Input terminal 11, the port A are connected with the port RESET of monitoring chip U1, and the Y-port of the NOT gate chip U2 is reverse signal
Output end 12;The monitoring chip U1 is the ADM8318 monitoring chip of ADI company.
A kind of application method of D triggering house dog MCU monitoring circuit: the port D inputs feeding-dog signal DtrigCtl-D,
The port CLK inputs feeding-dog signal DtrigCtl-CLK, and the enable signal input terminal 4 inputs enable signal DtrigCtl-
OE;MCU do not work or MCU inside without house dog service routine when, enable signal DtrigCtl-OE be low level, d type flip flop U3
Disabled, Q port output signal is in high-impedance state, the hardware watchdog function disabling inside monitoring chip U1;It is seen inside MCU
When door dog service routine works normally, enable signal DtrigCtl-OE is high level, and d type flip flop U3 is enabled: working as feeding-dog signal
When DtrigCtl-CLK jumps to high level from low level, the port Q export feeding-dog signal DtrigCtl-D level signal, when feed
When dog signal DtrigCtl-CLK jumps to low level from high level, Q port output signal state is remained unchanged, and works as feeding-dog signal
When DtrigCtl-CLK is in high level or low level, Q port output signal state is remained unchanged;
When Q port output signal is in high-impedance state, the port WDI of monitoring chip U1 is equivalent to open circuit, monitoring chip
Hardware watchdog function disabling inside U1;When the port Q issues high and low level signal, the port WDI of monitoring chip U1 is received
To high and low level signal, the hardware watchdog function inside monitoring chip U1 is enabled: defeated when the port WDI of monitoring chip U1
When entering signal generation level jump, the timer inside monitoring chip U1 is reset, when the timing of timer is greater than time-out time t
When, monitoring chip U1'sPort issues reset signal RESET-1, and control MCU is restarted;Meanwhile monitoring chip U1
The Y-port output of the port A of the port RESET output reset signal RESET-2* to NOT gate chip U2, NOT gate chip U2 is reversed multiple
Position signal RESET-2, control MCU are restarted;
When the voltage of the port VCC of monitoring chip U1 is lower than minimum operating voltage, monitoring chip U1'sPort
Reset signal RESET-1 is issued, control MCU is restarted;The port the RESET output reset signal RESET-2* of monitoring chip U1 is to non-
The port A of door chip U2, the Y-port of NOT gate chip U2 export reversing reset signal RESET-2, and control MCU is restarted;
The time-out time of the monitoring chip U1 is t, and the signal period of the feeding-dog signal DtrigCtl-D is less than or equal to
Time-out time t;The signal period of the feeding-dog signal DtrigCtl-D is the two of feeding-dog signal DtrigCtl-CLK signal period
Times;When MCU is restarted, monitoring chip U1, d type flip flop U3 are in disabled status.
Claims (8)
1. a kind of D triggering house dog MCU monitors circuit, including reset signal generating circuit (1), the reset signal generating circuit
(1) voltage input end (10) is connected with supply voltage VCC, it is characterised in that:
The monitoring circuit further includes watchdog signal generation circuit (3), and the watchdog signal generation circuit (3), which is provided with, to be made
Energy signal input part (4), feeding-dog signal input terminal (5) and feeding-dog signal output end (6), watchdog signal generation circuit (3)
Signal output end 6 is connected with the data input pin (7) of reset signal generating circuit (1);
The reset signal generating circuit (1) is provided with the first reset signal output end (8) and the second reset signal output end
(9), the second reset signal output end (9) is connected with the non-inverting signal input thereof (11) of negater circuit (2), described reversed
Circuit (2) is additionally provided with reverse signal output end (12);
The watchdog signal generation circuit (3) includes d type flip flop U3, capacitor C3, triode Q1 and resistance R1, R2, the D touching
Hair device U3 include the port Q, the port VCC, the port GND,Port, the port CLK and the port D, the port VCC of the d type flip flop U3
It is connected respectively with one end of supply voltage VCC, capacitor C3, the other end ground connection of capacitor C3, the end GND of the d type flip flop U3
Mouth ground connection, the d type flip flop U3'sThe collector C series resistance of the collector C of port connecting triode Q1, triode Q1
It is connected after R1 with supply voltage VCC, the emitter E ground connection of triode Q1, one end phase of the base stage B and resistance R2 of triode Q1
Connection, the other end of resistance R2 is enable signal input terminal (4), and the feeding-dog signal input terminal (5) includes d type flip flop U3
The port CLK and the port D, the feeding-dog signal output end (6) are the port Q of d type flip flop U3;
The reset signal generating circuit (1) include monitoring chip U1, capacitor C1, the monitoring chip U1 include the port VCC,
The port GND, the port RESET,The port VCC of port and the port WDI, the monitoring chip U1 is voltage input end
(10), the port VCC of monitoring chip U1 is connected with supply voltage VCC, the port the GND ground connection of the monitoring chip U1, the end VCC
Between mouth and the port GND and it is connected to capacitor C1, the port WDI of the monitoring chip U1 is data input pin (7), the WDI
Port is connected with the port Q of d type flip flop U3, the monitoring chip U1'sPort is the first reset signal output end
(8), the port RESET of the monitoring chip U1 is the second reset signal output end (9), the port RESET and reversed electricity
The non-inverting signal input thereof (11) on road 3 is connected.
2. a kind of D triggering house dog MCU according to claim 1 monitors circuit, it is characterised in that:
The negater circuit (2) includes NOT gate chip U2 and capacitor C2, the NOT gate chip U2 include the port VCC, the port GND, A
Port, Y-port and blank pipe foot NC, the port VCC of NOT gate chip U2 one end phase with supply voltage VCC, capacitor C2 respectively
Connection, the other end ground connection of capacitor C2, the port the GND ground connection of the NOT gate chip U2, the port A of the NOT gate chip U2 is
Non-inverting signal input thereof (11), the port A are connected with the port RESET of monitoring chip U1, and the Y-port of the NOT gate chip U2 is
For reverse signal output end (12).
3. a kind of D triggering house dog MCU according to claim 1 or 2 monitors circuit, it is characterised in that:
The monitoring chip U1 is the ADM8318 monitoring chip of ADI company.
4. a kind of D described in any one of -3 according to claim 1 triggers the application method of house dog MCU monitoring circuit,
It is characterized in that:
The port D inputs feeding-dog signal DtrigCtl-D, and the port CLK inputs feeding-dog signal DtrigCtl-CLK, described
Enable signal input terminal (4) inputs enable signal DtrigCtl-OE;
MCU do not work or MCU inside without house dog service routine when, enable signal DtrigCtl-OE be low level, d type flip flop
U3 is disabled, and Q port output signal is in high-impedance state, the hardware watchdog function disabling inside monitoring chip U1;
When house dog service routine works normally inside MCU, enable signal DtrigCtl-OE is high level, and d type flip flop U3 makes
Can:
When feeding-dog signal DtrigCtl-CLK jumps to high level from low level, the port Q exports feeding-dog signal DtrigCtl-D
Level signal, when feeding-dog signal DtrigCtl-CLK jumps to low level from high level, Q port output signal state keep
Constant, when feeding-dog signal DtrigCtl-CLK is in high level or low level, Q port output signal state is remained unchanged.
5. a kind of application method of D triggering house dog MCU monitoring circuit according to claim 4, it is characterised in that: work as Q
When port output signal is in high-impedance state, the port WDI of monitoring chip U1 is equivalent to open circuit, the hardware inside monitoring chip U1
Watchdog function disabling;
When the port Q issues high and low level signal, the port WDI of monitoring chip U1 receives high and low level signal, monitors core
Hardware watchdog function inside piece U1 is enabled:
When level jump occurs for the input signal of the port WDI of monitoring chip U1, the timer inside monitoring chip U1 is reset,
When the timing of timer is greater than time-out time t, monitoring chip U1'sPort issues reset signal RESET-1, control
MCU is restarted;Meanwhile the port A of the port the RESET output reset signal RESET-2* to NOT gate chip U2 of monitoring chip U1, it is non-
The Y-port of door chip U2 exports reversing reset signal RESET-2, and control MCU is restarted;
The time-out time of the monitoring chip U1 is t, and the signal period of the feeding-dog signal DtrigCtl-D is less than or equal to time-out
Time t.
6. a kind of application method of D triggering house dog MCU monitoring circuit according to claim 5, it is characterised in that: when
Monitoring chip U1, d type flip flop U3 are in disabled status when MCU is restarted.
7. a kind of application method of D triggering house dog MCU monitoring circuit according to any one of claims 4 to 6,
It is characterized in that:
The signal period of the feeding-dog signal DtrigCtl-D is twice of feeding-dog signal DtrigCtl-CLK signal period.
8. a kind of application method of D triggering house dog MCU monitoring circuit according to any one of claims 4 to 6,
It is characterized in that:
When the voltage of the port VCC of monitoring chip U1 is lower than minimum operating voltage, monitoring chip U1'sPort issues multiple
Position signal RESET-1, control MCU are restarted;The port the RESET output reset signal RESET-2* of monitoring chip U1 is to NOT gate chip
The port A of U2, the Y-port of NOT gate chip U2 export reversing reset signal RESET-2, and control MCU is restarted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511021729.8A CN105468470B (en) | 2015-12-30 | 2015-12-30 | D-trigger watchdog MCU monitoring circuit and use method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511021729.8A CN105468470B (en) | 2015-12-30 | 2015-12-30 | D-trigger watchdog MCU monitoring circuit and use method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105468470A CN105468470A (en) | 2016-04-06 |
CN105468470B true CN105468470B (en) | 2019-01-04 |
Family
ID=55606205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511021729.8A Active CN105468470B (en) | 2015-12-30 | 2015-12-30 | D-trigger watchdog MCU monitoring circuit and use method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105468470B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648951B (en) * | 2016-12-29 | 2020-01-10 | 广州周立功单片机科技有限公司 | Watchdog control circuit and watchdog application circuit |
CN107656484B (en) * | 2017-11-15 | 2023-09-26 | 巢湖学院 | Hardware watchdog safety setting circuit |
CN109491823B (en) * | 2018-11-12 | 2022-01-04 | 积成电子股份有限公司 | Irreversible watchdog switching circuit and switching method thereof |
CN112035285B (en) * | 2020-08-13 | 2024-07-05 | 江苏创通电子股份有限公司 | Hardware watchdog circuit system based on high-pass platform and monitoring method thereof |
CN112463426B (en) * | 2020-11-16 | 2021-11-16 | 中国电子科技集团公司第五十八研究所 | Watchdog reset circuit with serial counting function and working method |
CN112506688A (en) * | 2020-12-02 | 2021-03-16 | 北京握奇智能科技有限公司 | Hardware watchdog control system and method of OBU |
CN113127246B (en) * | 2021-04-01 | 2023-05-12 | 易事特储能科技有限公司 | Watchdog circuit, control method and watchdog chip |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5761414A (en) * | 1995-12-06 | 1998-06-02 | Mitsuba Corporation | Method for detecting execution errors of a microprocessor |
CN102214124A (en) * | 2011-06-08 | 2011-10-12 | 深圳市理邦精密仪器股份有限公司 | Watchdog reset control system |
CN202711238U (en) * | 2012-07-25 | 2013-01-30 | 上海斐讯数据通信技术有限公司 | Watchdog circuit |
CN205334455U (en) * | 2015-12-30 | 2016-06-22 | 东风商用车有限公司 | D triggers watchdog MCU monitoring circuit |
-
2015
- 2015-12-30 CN CN201511021729.8A patent/CN105468470B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5761414A (en) * | 1995-12-06 | 1998-06-02 | Mitsuba Corporation | Method for detecting execution errors of a microprocessor |
CN102214124A (en) * | 2011-06-08 | 2011-10-12 | 深圳市理邦精密仪器股份有限公司 | Watchdog reset control system |
CN202711238U (en) * | 2012-07-25 | 2013-01-30 | 上海斐讯数据通信技术有限公司 | Watchdog circuit |
CN205334455U (en) * | 2015-12-30 | 2016-06-22 | 东风商用车有限公司 | D triggers watchdog MCU monitoring circuit |
Also Published As
Publication number | Publication date |
---|---|
CN105468470A (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105468470B (en) | D-trigger watchdog MCU monitoring circuit and use method thereof | |
CN207069553U (en) | A kind of control circuit for realizing hardware watchdog and automatic time delay break-make Electricity Functional | |
CN104750568B (en) | A kind of watchdog circuit of microcontroller exception forced resetting | |
CN103543344B (en) | A kind of method solving capacitance plate inefficacy and capacitance plate abnormity detecting circuit | |
CN207115391U (en) | A kind of automatic reset circuit | |
CN207801898U (en) | A kind of on/off circuit | |
CN201122942Y (en) | Reset circuit | |
CN101510116B (en) | Energy-conserving method and system of terminal equipment with standby function | |
CN203732919U (en) | Solar energy storage intelligent management system | |
CN201298160Y (en) | Reset circuit for singlechip | |
CN206432968U (en) | A anti-single chip microcomputer halt circuit | |
CN103760798A (en) | Solar energy storage intelligent management system | |
CN103294147A (en) | Software startup and shutdown circuit and realizing method | |
CN201569497U (en) | Control system for temperature measurement and alarm | |
CN202383594U (en) | Singlechip reset circuit | |
CN206757593U (en) | Watchdog circuit for concentrator | |
CN204556816U (en) | A kind of electric energy meter communication debugger | |
CN208316365U (en) | A kind of power down time extends circuit and power control circuit | |
CN205334455U (en) | D triggers watchdog MCU monitoring circuit | |
CN201181443Y (en) | Time-delay reset control circuit | |
CN201725187U (en) | Automatic control system of microcomputer | |
CN204204009U (en) | A kind of radio frequency card door lock control circuit | |
CN203909709U (en) | Reset circuit for external watchdog | |
CN208589009U (en) | A kind of programmer of STM32 controller | |
CN101382780A (en) | Apparatus and control method for enhancing anti-jamming capability of main control electric appliance system of monolithic computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |