Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
AU677722B2 - Watchdog timer circuit - Google Patents
[go: Go Back, main page]

AU677722B2 - Watchdog timer circuit - Google Patents

Watchdog timer circuit Download PDF

Info

Publication number
AU677722B2
AU677722B2 AU79047/94A AU7904794A AU677722B2 AU 677722 B2 AU677722 B2 AU 677722B2 AU 79047/94 A AU79047/94 A AU 79047/94A AU 7904794 A AU7904794 A AU 7904794A AU 677722 B2 AU677722 B2 AU 677722B2
Authority
AU
Australia
Prior art keywords
watchdog timer
reset
reset signal
microprocessor
generate
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.)
Ceased
Application number
AU79047/94A
Other versions
AU7904794A (en
Inventor
Vinay Deo
Peter Field
Stefan Keller-Tuberg
Rosemary Lidgett
Joseph Nour
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.)
Nokia Services Ltd
Original Assignee
Alcatel Australia 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
Priority claimed from AUPM2915A external-priority patent/AUPM291593A0/en
Application filed by Alcatel Australia Ltd filed Critical Alcatel Australia Ltd
Priority to AU79047/94A priority Critical patent/AU677722B2/en
Publication of AU7904794A publication Critical patent/AU7904794A/en
Application granted granted Critical
Publication of AU677722B2 publication Critical patent/AU677722B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

P100/0O11 28/5/91 Regulation 3.2
AUSTRALIA
Patents Act 1990 S S
S
*5
S
o 0 0 *5 *5 S o 5* 0*
ORIGINAL
COMPLETE SPECIFICATION STANDARD PATENT Invention Title: "WATCHDOG TIMER CIRCUIT" The following statement is a full description of this invention, including the best method of performing it known to us:- Col1 96 58 2 8 NOV 94 This invention relates to a method and arrangement for improving the effectiveness of watchdog timer circuits used to maintain proper functioning of microprocessors.
Known watchdog timer arrangements include a monostable device arranged to produce a re-boot signal to restart the microprocessor if the monostable device is not reset before its time delay expires. The reset signal for the monostable device is generated by the microprocessor executing a "housekeeping" routine stored in the memory associated with the microprocessor. When the microprocessor has executed the watchdog routine, it continues to execute application routines stored in the memory. The execution period of each application routine is kept shorter than the watchdog timer monostable delay. Long application routines can be broken up to shorter routines and the microprocessor is directed to execute the watchdog timer routine at the end of the application routine or the segments of long application S routines.
Preferably the watchdog routine can be executed more than once during the monostable delay.
We have found that such a watchdog timer can be defeated by some faults in which the microprocessor continuously executes a loop which includes or simulates the watchdog timer routine. For example this may be caused by corruption of an instruction or data in RAM which causes the microprocessor to mistake the address of the application routine of the watchdog timer routine.
Consequently a watchdog reset signal is generated each time the watchdog routine is executed and the watchdog monostable device is prevented from generating a re-boot signal for the microprocessor. As a result the microprocessor may continue to execute the loop indefinitely and fail to perform its intended functions.
According to the invention there is provided a watchdog timer arrangement for a microprocessor includes a first instruction to generate a first intermediate watchdog timer reset signal at a first address in the microprocessor's operating memory, and at least one further instruction to generate a further intermediate watchdog timer reset signal, the or each further instruction having a corresponding address substantially different from the or each other instruction to generate an intermediate watchdog timer reset signal, the microprocessor being programmed to execute both or all of the instructions to generate an intermediate watchdog timer reset signal at least once during the watchdog timer delay period, and wherein the intermediate watchdog timer reset signals generated by the execution of the instructions are applied to a logic circuit to produce a synthesized reset signal to reset the watchdog timer.
In a further embodiment there are two instructions to generate intermediate watchdog timer reset signals and the logic circuit comprises an RS flip-flop with the first intermediate watchdog timer reset signal being connected to the set input of the RS flip-flop and the second intermediate watchdog timer reset signals being connected to the reset input of the RS flip-flop.
In an alternative embodiment, there are two instructions to generate intermediate watchdog timer reset signals and the logic circuit includes a second monostable device having a delay period longer than the repetition rate S of the first intermediate reset signal, and wherein the first intermediate reset signal is applied to the first input of an AND gate, and the second intermediate i reset signal is applied to the input of the second monostable, the output of the second monostable being applied to the second input of the AND gate whose output is the synthesized reset signal.
The invention will be described with reference to the accompanying drawings in which: Figure 1 is a block diagram of an arrangement including the improved watchdog timer.
Figure 2 is a time diagram showing the synthesis of the reset signal from the intermediate signals.
Figure 3 shows an embodiment of the logic circuitry.
Figure 4 shows a generalized state machine for use with the invention.
Figure 1 shows a microprocessor 1 connected to a memory 2 via address and data bus which is also connected to an address and decoding logic circuta 3. The address and decoding logic circuit has outputs WD1 and WD2 which are applied to inputs of a watchdog timer state machine 4 which performs the logic function of identifying the presence of the intermediate signals on WD1 and WD2. The output of the state machine 4 is applied as a reset signal to the watchdog timer monostable circuit 5, whose output is applied via OR logic 6 to the non-maskable interrupt input NMI of microprocessor 1 and additionally via a delay/pulse train generator 7 to the reset input of microprocessor 1.
The operation of this arrangement will be described with the aid of Figure 2.
At the end of each application routine, the microprocessor 1 is instructed to implement the watchdog timer (WDT) routine which involves addressing both (or all where there are more than 2) ';cations in the memory 2 where the instruction to generate the intermediate WDT reset signals are stored. As mentioned previously, these locations are logically separated in the memory. In addition they are accessed at different times during the execution of the WDT routine. The instructions are transmitted via the bus to the decoding logic 3 .ooo which produces the outputs WD1 and WD2 shown in Figure 2.
see These signals are applied to the state machine 4 which, in the embodiment illustrated in Figure 2, is an RS flip-flop. WD1 causes device 4 to change from a first state to a second state and WD2 causes a change from the second state to the first, as shown at TRIG. The signal TRIG resets monostable 5 e.g. on the rising edge of each pulse.
When one of the signals WD1 or WD2 is no longer generated then, even if the other of this pair continues to be generated, the TRIG pulses are inhibited because the RS flip-flop no longer changes state. Thus, after the monostable delay has expired, the output of the monostable changes state, and this may be used to generate a reset pulse for the processor 1.
In chis embodiment, a series of reset pulses are generated in pulse generator circuit 6 because the microprocessor may not reset in response to a single reset pulse. The reset pulses are spaced apart by a sufficient period to allow the WDT circuit to recognize when the microprocessor has been successfully reset so that no further reset pulses are generated because the output of the monostable 5 will be returned to its normal operating state.
Because the two WDT instructions are widely separated logically in the
II
memory, the probability of both being involved in a erroneous continuous loop is greatly reduced.
Figure 3 shows an alternative logic circuit in which the RS flip-flop is replaced by AND gate 31 and monostable 32. WD1 is applied to one input of AND gate 31 and WD2 is applied to the monostable 32. The monostable 32 provides a period longer than the repetition period of WD1 so that when WD1 and WD2 are being generated AND gate 31 produces the reset signal for the WDT monostable device In a general form, the inventor provides a state machine having two or more inputs from various hardware and/or software function testing means, the state machine including means to analyse the inputs and produce an error signal in response to predetermined signals on one or more of the inputs.
The state machine may implement a checking algorithm as a hard wired logic device or via a software routine or a combination of both.
In one embodiment, the state machine is programmable.
Figure 4 show's a block diagram of the state machine 40, having inputs 41 to n, and output State machine 40 performs the logical function of analyzing inputs 41 to n which may be designed to obey a predetermined relationship, occurring in sequence or with certain inputs occurring at a different rate from others, or occurring within predetermined time periods. If the relationship is violated, the state machine 40 generates an error signal on output While the present invention has been described with regard to many particulars, it is understood that equivalents may be readily substituted without departing from the scope of the invention.

Claims (6)

1. A watchdog timer arrangement for a microprocessor including a first instruction to generate a first intermediate watchdog timer reset signal at a first address in the microprocessor's operating memory, and at least one further instruction to generate a further intermediate watchdog timer reset signal, the or each further instruction having a corresponding address substantially different from the or each other instruction to generate an intermediate watchdog timer reset signal, the microprocessor being programmed to execute both or all of the instructions to generate an intermediate watchdog timer reset signal at least once during the watchdog timer delay period, and wherein the intermediate watchdog timer reset signals generated by the execution of the instructions are applied to a logic circuit to produce a synthesized reset signal to reset the watchdog timer.
2. An arrangement as claimed in claim 1, wherein there are two instructions to generate watchdog timer reset signals and the logic circuit comprises an RS flip-flop with the first intermediate WDT reset signal being connected to the set input of the RS flip-flop and the second intermediate WDT reset signal being o connected to the reset input of the RS flip-flop.
3. An arrangement as claimed in claim 1, wherein there are two instructions *'20 to generate intermediate watchdog time reset signals and the logic circuit includes a monostable device having a delay period longer than the repetition rate of the first intermediate reset signal, and wherein the first intermediate reset signal is applied to the first input of an AND gate, and the second intermediate reset signal is applied to the input of the second monostable, the 25 output of the second monostable being applied to the second input of the AND C gate whose output is the synthesized reset signal.
4. A watchdog timer arrangement substantially as herein described with reference to the accompanying drawings.
A method of providing a watchdog timer facility for a microprocessor according to the arrangement of any one of claims 1 to 4.
6. A method of providing a watchdog timer facility substantially as herein described with reference to the accompanying drawings. DATED THIS EIGHTH DAY OF NOVEMBER 1994 ALCATEL AUSTRALIA LIMITED 000 005 363) p p pp LT CI ABSTRACT A watchdog timer circuit for a microprocessor 1 is arranged to eliminate a fault including an erroneous loop which continuously activates the watchdog timer reset instruction which prevents the microprocessor from detecting the error. The inventive arrangement includes two or more watchdog timer reset instructions held in widely spaced addresses in the microprocessor's memory. The reset instructions are applied to a state machine 4 which generates reset pulses for the watchdog timer circuit 5 only if all the reset instruction signals occur when they should. If the state machine 4 does not reset the watchdog timer circuits, the circuit 5 generates a RESET signal to reset microprocessor 1. Figure 1. 6.w. S. P o** @P S S
AU79047/94A 1993-12-10 1994-11-28 Watchdog timer circuit Ceased AU677722B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU79047/94A AU677722B2 (en) 1993-12-10 1994-11-28 Watchdog timer circuit

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
AUPM2915 1993-12-10
AUPM2915A AUPM291593A0 (en) 1993-12-10 1993-12-10 Watchdog timer circuit
AU79047/94A AU677722B2 (en) 1993-12-10 1994-11-28 Watchdog timer circuit

Publications (2)

Publication Number Publication Date
AU7904794A AU7904794A (en) 1995-06-15
AU677722B2 true AU677722B2 (en) 1997-05-01

Family

ID=25639165

Family Applications (1)

Application Number Title Priority Date Filing Date
AU79047/94A Ceased AU677722B2 (en) 1993-12-10 1994-11-28 Watchdog timer circuit

Country Status (1)

Country Link
AU (1) AU677722B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142869A (en) * 2013-05-06 2014-11-12 上海海拉电子有限公司 Monitoring method and watchdog module for car body control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU5116490A (en) * 1989-03-23 1990-09-27 Alcatel Australia Limited Watchdog timer circuit
AU5570890A (en) * 1989-06-19 1990-12-20 International Business Machines Corporation Microcomputer system including a microprocessor reset circuit
AU7899394A (en) * 1993-11-30 1995-06-15 Honeywell Inc. Microprocessor watchdog circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU5116490A (en) * 1989-03-23 1990-09-27 Alcatel Australia Limited Watchdog timer circuit
AU5570890A (en) * 1989-06-19 1990-12-20 International Business Machines Corporation Microcomputer system including a microprocessor reset circuit
AU7899394A (en) * 1993-11-30 1995-06-15 Honeywell Inc. Microprocessor watchdog circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142869A (en) * 2013-05-06 2014-11-12 上海海拉电子有限公司 Monitoring method and watchdog module for car body control system
CN104142869B (en) * 2013-05-06 2017-11-14 上海海拉电子有限公司 A kind of monitoring method and watchdog module for body control system

Also Published As

Publication number Publication date
AU7904794A (en) 1995-06-15

Similar Documents

Publication Publication Date Title
US5768496A (en) Method and apparatus for obtaining a durable fault log for a microprocessor
DE69423251T2 (en) Data backup method and device
JPH052654A (en) Microcomputer failure detection method and circuit
DE69114328T2 (en) Monitoring of microprocessors.
JPH02213950A (en) Error injection system
Unni et al. FPGA Implementation of an improved watchdog timer for safety-critical applications
US4456996A (en) Parallel/series error correction circuit
AU677722B2 (en) Watchdog timer circuit
DE69012954T2 (en) Method and device for oscillator-like error detection in a level-sensitive query design system.
DE3138989A1 (en) ADDITIONAL FUNCTIONAL UNIT IN A MICROPROCESSOR, MICROPROCESSOR SYSTEM AND METHOD FOR ITS OPERATION
NZ264959A (en) Watchdog timer circuit for microprocessor
DE102005054587A1 (en) Program controlled unit and method of operating the same
DE69024624T2 (en) Arrangement and method for error testing address, data and control buses of a microprocessor
Patricia et al. FPGA Implementation of an Improved Watchdog Timer for Safety-Critical Applications
US20020144201A1 (en) Program-controlled unit and method for identifying and/or analyzing errors in program-controlled units
SU1594533A1 (en) Microprogram control device with check and restoration
RU2011216C1 (en) Device for monitoring control computer
JP2605781B2 (en) Automatic diagnostic device for parity circuit
DE3853476T2 (en) Device for error correction in a self-guarded data processing system.
JPS61267840A (en) Pseudo trouble generating circuit
KR920008354Y1 (en) Watch-dog circuit
Gossányi et al. Error diagnostics and recovery procedure in a dual-processor computer system
RU1815645C (en) Device for testing control computer
JPS6154543A (en) data processing system
DD283004A5 (en) CIRCUIT ARRANGEMENT FOR INCREASING THE STORAGE SAFETY OF MICRO FACTORS

Legal Events

Date Code Title Description
MK14 Patent ceased section 143(a) (annual fees not paid) or expired