JPH04148246A - Watchdog timer - Google Patents

Watchdog timer

Info

Publication number
JPH04148246A
JPH04148246A JP2268500A JP26850090A JPH04148246A JP H04148246 A JPH04148246 A JP H04148246A JP 2268500 A JP2268500 A JP 2268500A JP 26850090 A JP26850090 A JP 26850090A JP H04148246 A JPH04148246 A JP H04148246A
Authority
JP
Japan
Prior art keywords
processor
reset
timer
interruption
generation
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
Application number
JP2268500A
Other languages
Japanese (ja)
Inventor
Akio Iijima
明夫 飯島
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2268500A priority Critical patent/JPH04148246A/en
Publication of JPH04148246A publication Critical patent/JPH04148246A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable a processor to save or external-output necessary data under the situation of the occurrence of a fault through interruption by generating the interruption for the processor at the time of watchdog timer overflow, and generating reset definite time later. CONSTITUTION:The timer consists of an oscillator 1, an interruption timer 2, and a reset timer 3. In the case that a processor part 7 can respond to the interruption, it executes the memory save of the data necessary for the fault analysis of a register in the processor or a task in running or the save of a disk or the output of an alarm or the output of fault data to the outside by the interruption, and stops operation. Then, it waits for the generation of the reset. After that, the processor part 7 is initialized by the generation of the reset, and executes re-start processing, but a time interval from the generation of the interruption to the generation of the reset is set to be time during which this processing can be executed. Thus, the processor can execute the save or the external output of the necessary data under the situation of the occurrence of the fault.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、プロセッサの正常動作を監視し、障害発生時
にプロセッサを再開させる技術に関し、特にウォッチド
ッグタイマに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a technique for monitoring the normal operation of a processor and restarting the processor when a failure occurs, and particularly relates to a watchdog timer.

U従来の技術] 従来、この種のウォッチドッグタイマはタイマオーバー
フロー時にはプロセッサに対してリセットを出力する方
式となっていた。
U Prior Art Conventionally, this type of watchdog timer has been of a type that outputs a reset signal to the processor when the timer overflows.

[発明が解決しようとする課M] しかしながらこのような従来の装置はタイマオーバーフ
ロー時にプロセッサリセットとなるため、プログラムの
バグ笠により周期的なタイマのクリアができなかった場
合に、どこのプログラムで不具合が起きたのかの解析が
困難であった。またハードウェアのスタック等の場合も
、リセットがかかってしまい、スタック状態の解析が困
難であるという課題があった。
[Problem to be solved by the invention M] However, in such a conventional device, the processor is reset when the timer overflows, so if the periodic timer cannot be cleared due to a bug in the program, it is possible to solve the problem in which program. It was difficult to analyze whether this occurred. Furthermore, in the case of hardware stacks, etc., there is a problem in that a reset is applied, making it difficult to analyze the stack state.

[課題を解決するための手段] このような課題を解決するために本発明は、タイマのオ
ーバーフロー発生時にプロセッサに対して割り込みを発
生する手段と、その一定時間後にプロセッサに対してリ
セットを発生させる手段を備えている。
[Means for Solving the Problems] In order to solve such problems, the present invention provides a means for generating an interrupt to a processor when a timer overflow occurs, and a means for generating a reset to the processor after a certain period of time. have the means.

[作用] タイマがオーバフローするとプロセッサに対して割り込
みがかけられた後、リセットがかかる。
[Operation] When the timer overflows, the processor is interrupted and then reset.

[実施N] 図は本発明の一実施例を示すブロック図である。[Implementation N] The figure is a block diagram showing one embodiment of the present invention.

発振器1はウォッチドッグタイマ回路の基本クロックを
生成し、割り込みタイマ2、リセットタイマ3の各タイ
マのカウントアツプを行う0割り込みタイマ2にはプロ
セッサ部7からオオツチドッグタイマクリアコマンド信
号線4を介してタイマのクリアコマンドが正常動作時は
周期的に入り、割り込みタイマをオーバフローしないよ
うにしている。
The oscillator 1 generates a basic clock for the watchdog timer circuit, and the interrupt timer 2, which counts up the interrupt timer 2 and reset timer 3, receives a signal from the processor section 7 via the watchdog timer clear command signal line 4. During normal operation, the timer clear command is entered periodically to prevent the interrupt timer from overflowing.

プロセッサが動作異常を起こし、クリアコマンドが入ら
なくなると、割り込みタイマはオーバフローを起こし、
割り込み信号線5を介してプロセッサ部7に割り込みを
発生させる。これにより、リセットタイマ3がイネーブ
ルになる。
If the processor malfunctions and no clear command is received, the interrupt timer overflows and
An interrupt is generated in the processor section 7 via the interrupt signal line 5. This enables the reset timer 3.

イネーブルとなったリセットタイマ3は一定時間後にオ
ーバフローを起こし、プロセッサ部7に対してリセット
信号線6を介してリセットを発生させる。プロセッサa
17は前記割り込みおよびリセット発生に対して以下の
ように動作する。
The enabled reset timer 3 overflows after a certain period of time and causes the processor section 7 to generate a reset via the reset signal line 6. processor a
17 operates as follows in response to the occurrence of the interrupt and reset.

プロセッサ部7は前記割り込みに対して応答可能な場合
は、割り込みにより、プロセッサ内のレジスタや、送行
中のタスクの障害解析に必要なデータのメモリセーブま
たはディスクのセーブまたは外部へのアラーム出力、障
害データの出力を行い、動作を停止し、リセット発生を
待つ。
If the processor unit 7 is capable of responding to the interrupt, the interrupt causes registers in the processor, data necessary for failure analysis of the task being sent to be saved in memory or disk, alarm output to the outside, or failure to occur. Outputs data, stops operation, and waits for reset to occur.

その後、リセット発生により、プロセッサ部7は初期化
され、再#R処理を行う0割り込み発生からリセット発
生までの時間間隔は前記処理が可能な時間に設定される
。プロセッサ部に重障害が発生し、割り込みにより前記
のような処理が不可能な場合は、定時間後のリセット発
生により、プロセッサ部は初期化され、再開処理を行う
Thereafter, the processor section 7 is initialized by the occurrence of a reset, and the time interval from the occurrence of the 0 interrupt for re-#R processing to the occurrence of the reset is set to a time during which the processing can be performed. If a serious failure occurs in the processor section and the above-mentioned processing is impossible due to an interrupt, the processor section is initialized by the generation of a reset after a fixed period of time and resumes processing.

[発明の効果] 以上説明したように本発明は、ウォッチドッグタイマオ
ーバフロー時にプロセッサに対して割り込みを発生させ
、その一定時間後にリセットを発生させるという方式を
とることにより、割り込みによりプロセッサが障害発生
状況下における必要なデータのセーブまたは外部出力が
可能になるという効果を有する。
[Effects of the Invention] As explained above, the present invention generates an interrupt for the processor when the watchdog timer overflows, and generates a reset after a certain period of time. This has the effect of making it possible to save or externally output necessary data below.

【図面の簡単な説明】[Brief explanation of drawings]

図は本発明の一実施例を示すブロック図である。 1・−・−発振器、2−・−・語り込みタイマ、3・・
・−リセットタイマ、7−・・・プロセッサ部。 特許出願人   日本電気株式会社
The figure is a block diagram showing one embodiment of the present invention. 1.--Oscillator, 2--.Talk timer, 3.--
-Reset timer, 7-...processor section. Patent applicant: NEC Corporation

Claims (1)

【特許請求の範囲】 プロセッサの正常動作を監視するウォッチドッグタイマ
において、 プロセッサが周期的なタイマのクリアを行わず規定時間
のタイマがオーバーフローした場合にプロセッサに対し
て割り込みを発生する割り込み手段と、 その割り込みの一定時間後にプロセッサをリセットする
信号を発生させるりリセット手段とを備えたことを特徴
とするウォッチドッグタイマ。
[Scope of Claims] A watchdog timer for monitoring the normal operation of a processor includes interrupt means for generating an interrupt to the processor when the processor does not periodically clear the timer and the timer for a specified time overflows; A watchdog timer characterized in that it generates a signal for resetting a processor after a certain period of time after the interrupt, and is equipped with a reset means.
JP2268500A 1990-10-08 1990-10-08 Watchdog timer Pending JPH04148246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2268500A JPH04148246A (en) 1990-10-08 1990-10-08 Watchdog timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2268500A JPH04148246A (en) 1990-10-08 1990-10-08 Watchdog timer

Publications (1)

Publication Number Publication Date
JPH04148246A true JPH04148246A (en) 1992-05-21

Family

ID=17459364

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2268500A Pending JPH04148246A (en) 1990-10-08 1990-10-08 Watchdog timer

Country Status (1)

Country Link
JP (1) JPH04148246A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06149628A (en) * 1992-11-12 1994-05-31 Nec Corp Stall detecting circuit
JP2006338605A (en) * 2005-06-06 2006-12-14 Denso Corp Program failure monitoring method and program failure monitoring device
JP2012190460A (en) * 2011-03-08 2012-10-04 Thales Device for improving fault tolerance of processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06149628A (en) * 1992-11-12 1994-05-31 Nec Corp Stall detecting circuit
JP2006338605A (en) * 2005-06-06 2006-12-14 Denso Corp Program failure monitoring method and program failure monitoring device
JP2012190460A (en) * 2011-03-08 2012-10-04 Thales Device for improving fault tolerance of processor

Similar Documents

Publication Publication Date Title
JPS6152496B2 (en)
JPH04148246A (en) Watchdog timer
JPH11259340A (en) Reactivation control circuit for computer
JPS5920061A (en) Watchdog timer
JP2731386B2 (en) Control device
JPH0756774A (en) Watching timer
JPH0581080A (en) Runaway supervisory device for micro processor
JPH11282725A (en) Computer
JPS5827559B2 (en) Ijiyou Kanshi Cairo
JPS60140440A (en) Central processing unit
JPH02259845A (en) Processor
JPS6389941A (en) Monitor and control equipment for microprocessor applied equipment
KR890007083Y1 (en) Cpu restart circuit by real time clock inspection
JPS5834855B2 (en) Computer monitoring method
JPS62623B2 (en)
JPH10143393A (en) Diagnosis and processing device
JPS63280345A (en) Detection of program abnormality
JPS58184667A (en) Information processing unit
JPS5868166A (en) Processor fault monitoring device
JPH04182842A (en) Timer monitor system
JPS61123943A (en) Microprocessor device
JPH04195437A (en) Program runaway monitoring device
JPS626262B2 (en)
JPH0740233B2 (en) Data processor re-start control method
JPH04332047A (en) Switching system for step-out of synchronism of redundant computer