JPH05108213A - Reset processing circuit by watchdog timer - Google Patents

Reset processing circuit by watchdog timer

Info

Publication number
JPH05108213A
JPH05108213A JP3296562A JP29656291A JPH05108213A JP H05108213 A JPH05108213 A JP H05108213A JP 3296562 A JP3296562 A JP 3296562A JP 29656291 A JP29656291 A JP 29656291A JP H05108213 A JPH05108213 A JP H05108213A
Authority
JP
Japan
Prior art keywords
reset
cpu
circuit
reset signal
wdt
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
JP3296562A
Other languages
Japanese (ja)
Inventor
Toshiyuki Eda
利行 枝
Kazumasa Nakamura
和正 中村
Matsuo Sato
松雄 佐藤
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.)
Kokusai Electric Corp
Original Assignee
Kokusai Electric 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 Kokusai Electric Corp filed Critical Kokusai Electric Corp
Priority to JP3296562A priority Critical patent/JPH05108213A/en
Publication of JPH05108213A publication Critical patent/JPH05108213A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To leave data when abnormality occurs to check the cause of the abnormality even when a CPU is reset with a reset signal from a watchdog timer by monitoring the operation of software of a computer. CONSTITUTION:This circuit is constituted in such a manner that a CPU reset signal from a watchdog timer circuit 1 is supplied to the non-maskable interruption input terminal of the CPU 3, and also, the reset signal to be supplied to the reset terminal of the CPU 3 is delayed for a prescribed time by a delay circuit 2, and processing to shift the data in a register, etc., when the abnormality occurs to an unerasable area even when the CPU 3 is reset can be performed in non-maskable interruption processing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ機器のソ
フトウエアの動作監視に用いられるウォッチ・ドッグ・
タイマ(WDT;Watch DogTimer)回路(監視計時
機構)による中央処理装置(CPU)のリセット処理回
路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a watch dog used for monitoring the operation of software of computer equipment.
The present invention relates to a reset processing circuit of a central processing unit (CPU) by a timer (WDT; Watch Dog Timer) circuit (monitoring and timing mechanism).

【0002】[0002]

【従来の技術】WDT回路は、コンピュータのソフトウ
エアの動作を監視する回路である。この回路は、ソフト
ウエアの正常動作時には一定時間ごとにリセットされる
が、ソフトウエアが何らかの原因で正常に動作しなくな
った場合リセットが行われなくなる。これをWDTエラ
ーという。WDTエラーが発生するとWDT回路からC
PUに対しリセット信号を与えてCPUの初期化を行
う。これがWDT回路の働きである。
2. Description of the Related Art A WDT circuit is a circuit for monitoring the operation of computer software. This circuit is reset at regular intervals during normal operation of software, but if the software does not operate normally for some reason, it will not be reset. This is called a WDT error. When a WDT error occurs, the WDT circuit
A reset signal is given to the PU to initialize the CPU. This is the function of the WDT circuit.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のリセット処理が行われるとCPUが初期化さ
れるため、CPUの各レジスタ等に残されているWDT
エラーに関する情報(データ)も消去されてしまう。そ
のため後になってWDTエラーの原因を調査することが
出来なくなってしまうという問題を生じる。本発明の目
的は、このような問題を解決し、WDTエラーがかかっ
ても、その原因を調査できるようにしたウォッチ・ドッ
グ・タイマによるリセット処理回路を提供することにあ
る。
However, when such a conventional reset process is performed, the CPU is initialized, so that the WDT left in each register of the CPU and the like.
The information (data) about the error is also erased. This causes a problem that the cause of the WDT error cannot be investigated later. An object of the present invention is to provide a reset processing circuit by a watch dog timer which solves such a problem and can investigate the cause of a WDT error even if it occurs.

【0004】[0004]

【課題を解決するための手段】本発明のウォッチ・ドッ
グ・タイマによるリセット処理回路は、WDT回路から
の対CPUリセット信号線をCPUのノン・マスカブル
・インタラプト(NMI:Non Maskable Interrup
t)入力端子に接続するとともに、CPUのリセット入
力端子には遅延回路を介して接続したことを特徴とする
ものである。この遅延回路の遅延時間の設定について
は、CPUのNMI処理で各データを吸い上げる時間を
考慮してその時間以上とする。
In the reset processing circuit by the watch dog timer of the present invention, the non-maskable interrupt (NMI: Non Maskable Interrupt) of the CPU is applied to the reset signal line to the CPU from the WDT circuit.
t) In addition to being connected to the input terminal, the reset input terminal of the CPU is connected via a delay circuit. The delay time of the delay circuit is set to be equal to or longer than that time in consideration of the time taken for each data to be taken up by the NMI process of the CPU.

【0005】[0005]

【実施例】以下、本発明を図面により詳細に説明する。
図1は本発明の実施例を示すブロック図である。図にお
いて、1はWDT回路、2は遅延回路、3はCPU、4
はローカルバス、5〜7はWDTエラー時のCPUリセ
ット信号線、8はWDTをリセットする信号線を示す。
The present invention will be described in detail below with reference to the drawings.
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a WDT circuit, 2 is a delay circuit, 3 is a CPU, 4
Is a local bus, 5 to 7 are CPU reset signal lines at the time of WDT error, and 8 is a signal line for resetting WDT.

【0006】まず、ソフトウエアの正常動作時には、W
DTリセット信号線8を通して一定時間おき(t1 秒と
する)にWDT回路1がリセットされる。WDT回路1
では〔t1 +t2 秒〕(但し、t2は任意の正の値)経
過してもリセットされなかった場合、CPU3に対して
リセット信号を送る。今、ソフトウエアに何らかの原因
で異常が生じ正常に動作しなくなったとすると、WDT
回路1へのリセット信号が止まり、〔t1 +t2 秒〕経
過してもリセットされなかった場合、CPU3に対し、
CPU・リセット信号が送られる。その信号は、まず、
信号線5を通りCPU3のNMI端子に入力される。C
PU3のNMI処理の中で、各レジスタやPC(プログ
ラム・カウンタ),SP(スタックポインタ)等のWD
Tエラーに関するデータを吸い上げる処理を行う。
First, when the software normally operates, W
The WDT circuit 1 is reset through the DT reset signal line 8 at regular intervals (t 1 seconds). WDT circuit 1
Then, if it is not reset after [t 1 + t 2 seconds] (where t 2 is an arbitrary positive value), a reset signal is sent to the CPU 3. Now, if software malfunctions for some reason and it stops working properly, WDT
If the reset signal to the circuit 1 stops and it is not reset even after [t 1 + t 2 seconds] has passed,
A CPU / reset signal is sent. The signal is
It is input to the NMI terminal of the CPU 3 through the signal line 5. C
WD of each register, PC (program counter), SP (stack pointer) in NMI processing of PU3
A process for sucking up data related to T error is performed.

【0007】対CPU・リセット信号は、信号線5とは
別に信号線6を介して遅延回路2に入る。この回路内で
CPU3のNMI処理に係る時間以上遅延させられた
後、信号線7を介してCPU3のリセット端子に入力さ
れる。
The CPU / reset signal enters the delay circuit 2 via the signal line 6 separately from the signal line 5. After being delayed for a time longer than the time related to the NMI processing of the CPU 3 in this circuit, it is input to the reset terminal of the CPU 3 via the signal line 7.

【0008】以上のようにすれば、WDTエラーが生じ
てもエラーに関するデータを検出した後CPUは初期化
されることになる。また、WDTエラーが生じた時には
操作員にソフトウエアの異常(WDTエラー)を知らせ
るための表示装置を設けておくことも効果がある。
In this way, even if a WDT error occurs, the CPU will be initialized after detecting the data relating to the error. Further, it is also effective to provide a display device for notifying an operator of software abnormality (WDT error) when a WDT error occurs.

【0009】[0009]

【発明の効果】以上詳細に説明したように、本発明を実
施することにより、WDTエラーが発生してCPU・リ
セットがかかった時にも、エラー情報(データ)を解析
することができるため、WDTエラーの原因調査・製品
の管理という点で実用上極めて大きい効果がある。
As described in detail above, by implementing the present invention, error information (data) can be analyzed even when a WDT error occurs and a CPU reset occurs. Therefore, the WDT can be analyzed. In terms of investigating the cause of an error and managing the product, it is extremely effective in practice.

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

【図1】本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 WDT回路 2 遅延回路 3 CPU 4 ローカルバス 5〜7 信号線 8 WDT回路リセット信号線 1 WDT circuit 2 Delay circuit 3 CPU 4 Local bus 5-7 Signal line 8 WDT circuit reset signal line

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータのソフトウエアの異常動作
の原因を調べるためのデータを検出するために、 コンピュータのソフトウエアの動作監視を行いソフトウ
エアの異常動作時に中央処理装置からローカルバスを介
して与えられるリセット信号が停止したとき、CPUリ
セット信号を出力し前記中央処理装置のノン・マスカブ
ル・インタラプト入力端子に与えるウォッチ・ドッグ・
タイマ回路と、 該ウォッチ・ドッグ・タイマ回路からの前記CPUリセ
ット信号を、前記中央処理装置のノン・マスカブル・イ
ンタラプト処理の中でレジスタ等のデータを該中央処理
装置がリセットされても消去されない領域に吸い上げる
に要する時間より長い時間遅延させて該中央処理装置の
リセット端子に入力する遅延回路と、 を備えたウォッチ・ドッグ・タイマによるリセット処理
回路。
1. In order to detect data for investigating the cause of abnormal operation of computer software, the operation of computer software is monitored, and when abnormal operation of software is given from a central processing unit via a local bus. When a reset signal is stopped, a watch dog, which outputs a CPU reset signal and supplies it to the non-maskable interrupt input terminal of the central processing unit,
A timer circuit, and an area in which the CPU reset signal from the watch dog timer circuit and the data such as a register in the non-maskable interrupt processing of the central processing unit are not erased even if the central processing unit is reset. A watchdog timer reset processing circuit comprising: a delay circuit for delaying a time longer than the time required for the input to the reset terminal of the central processing unit.
JP3296562A 1991-10-17 1991-10-17 Reset processing circuit by watchdog timer Pending JPH05108213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3296562A JPH05108213A (en) 1991-10-17 1991-10-17 Reset processing circuit by watchdog timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3296562A JPH05108213A (en) 1991-10-17 1991-10-17 Reset processing circuit by watchdog timer

Publications (1)

Publication Number Publication Date
JPH05108213A true JPH05108213A (en) 1993-04-30

Family

ID=17835156

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3296562A Pending JPH05108213A (en) 1991-10-17 1991-10-17 Reset processing circuit by watchdog timer

Country Status (1)

Country Link
JP (1) JPH05108213A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003256793A (en) * 2002-02-05 2003-09-12 Samsung Electronics Co Ltd Semiconductor integrated circuit with safety function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003256793A (en) * 2002-02-05 2003-09-12 Samsung Electronics Co Ltd Semiconductor integrated circuit with safety function

Similar Documents

Publication Publication Date Title
US20020116670A1 (en) Failure supervising method and apparatus
JPH05225067A (en) Important-memory-information protecting device
US4638432A (en) Apparatus for controlling the transfer of interrupt signals in data processors
JPS6324440A (en) System managing apparatus for multiplex processor system
JPH05108213A (en) Reset processing circuit by watchdog timer
JPH02226432A (en) Clock fault processing system
JP2659067B2 (en) Microcomputer reset circuit
JPH0149975B2 (en)
JPS6042496B2 (en) Parity error processing method
JPH04148246A (en) Watchdog timer
JP2786215B2 (en) Restart processing control method
JPH01231153A (en) Fault processing system
JPS6123240A (en) Data processor
JPH0469744A (en) Runaway detector for microcomputer
JPS63124156A (en) Memory error detecting method
JPH01210372A (en) Printing device
JPH1020968A (en) Selective hardware resetting circuit
JPS5858662A (en) Device testing system
JPS5896353A (en) Malfunction detector of information processor
JPS62217335A (en) Monitor circuit for cpu runaway
JPH0314148A (en) Program breakdown detecting device
JPH09212382A (en) Personal computer
JPH0391841A (en) Abnormality recovery processing system
JPH11212829A (en) Method and system for wdt monitoring
JPH04182835A (en) Bus monitor device for multiprocessor system