JP3402414B2 - Watchdog timer circuit - Google Patents

Watchdog timer circuit

Info

Publication number
JP3402414B2
JP3402414B2 JP33949994A JP33949994A JP3402414B2 JP 3402414 B2 JP3402414 B2 JP 3402414B2 JP 33949994 A JP33949994 A JP 33949994A JP 33949994 A JP33949994 A JP 33949994A JP 3402414 B2 JP3402414 B2 JP 3402414B2
Authority
JP
Japan
Prior art keywords
cpu
output
circuit
signal
interrupt
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.)
Expired - Fee Related
Application number
JP33949994A
Other languages
Japanese (ja)
Other versions
JPH08185344A (en
Inventor
工 鷲沢
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP33949994A priority Critical patent/JP3402414B2/en
Publication of JPH08185344A publication Critical patent/JPH08185344A/en
Application granted granted Critical
Publication of JP3402414B2 publication Critical patent/JP3402414B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、CPUの動作異常検出
を行うウォッチドッグタイマ回路に関する。 【0002】 【従来の技術】従来、モノマルチ(モノステイブルマル
チバイブレータ)による異常検出機能を備えたCPUシ
ステムは、CPUのOUT(アウト)命令等で一定周期
毎にパルスを出力しモノマルチを起動している。このモ
ノマルチの出力はCPUのリセット端子またはNMI
(ノンマスカブルインタラプト)端子等に入力されてお
り、もしCPUが動作異常になった場合に、OUT命令
等によるパルスが出力されずモノマルチを起動できない
ため、抵抗とコンデンサーとから構成されるRC積分回
路の時定数tw経過後に、図2aに示すようにCPUの
NMI端子にパルスが入り、動作異常を検出していた。 【0003】 【発明が解決しようとする課題】ところが、従来技術で
は、CPUを1ステップずつ命令を実行させるような場
合に、CPUに対するREADYを、WAIT信号によ
りそのアクセスサイクルを延長、つまりCPUをウエイ
ト(WAIT)状態にしているため、OUT命令等での
パルスを一定周期毎に出力できず、モノマルチを起動で
きずにCPUが動作異常を検出し間違った判断をしてし
まっていた。そこで本発明では、CPUがウエイト時に
おいても、モノマルチを正常に動作させ、間違った動作
異常検出を防止する事を目的とする。 【0004】 【課題を解決するための手段】上記課題を解決するた
め、本発明はリセット信号の立ち上がりまたはCPUの
アウト命令により出力されるパルスで起動されるモノス
テイブルマルチバイブレータの出力を、CPUのリセッ
ト端子またはノンマスカブルインタラプト端子NMIに
入力することによりCPUの動作異常を検出するもので
あり、前記CPUに対するREADYを停止させるWA
IT信号により動作が停止するRC積分回路を備えたウ
ォッチドッグタイマ回路において、前記CPUが、周辺
のメモリまたはI/O等に対し、常にREADY状態で
動作している場合は、前記モノステイブルマルチバイブ
レータの出力は途切れることなく出力され、前記CPU
に対してNMI等の割り込みは入らず動作し、前記CP
UがWAIT信号によってウェイト状態になった場合に
は、前記CPUより出力されるトリガーパルス信号は出
力されることなく、前記モノステイブルマルチバイブレ
ータを再びキックできずに積分動作が終了し、WAIT
信号をオープンコレクタ出力のゲート回路を介して前記
モノステイブルマルチバイブレータのRC時定数入力端
子に挿入することにより、その時点で前記RC積分回路
はリセットされ、ウェイト期間中保持されつづけるよう
にしたものである。 【0005】 【作用】上記手段により、CPUがステップ実行時等の
ウェイト時において、モノマルチの積分動作を停止さ
せ、CPUが間違った動作異常検出を防止できるように
なる。 【0006】 【実施例】以下、本発明の具体的実施例を図1に示して
説明する。まず、CPU1はシステムの中心で、周辺に
メモリやI/O等がバスを通じて接続されている。2は
ウォッチドッグタイマ回路のモノマルチで、CPU1よ
りOUT命令等で出力される一定周期のトリガーパルス
信号6によってキックされる。モノマルチ2の出力は、
抵抗3及びコンデンサ4より構成されるRC積分回路の
時定数twの期間信号を出力し、CPU1のNMI等に
割り込み入力される。この場合、モノマルチ2の出力が
時定数tw終了前、つまり積分動作終了より先にCPU
1よりトリガーパルス信号6の入力があると、モノマル
チ2の出力はその時点よりリセットされ、再び積分動作
を開始する。このように、CPU1が、周辺のメモリま
たはI/O等に対し、常にREADY状態で動作してい
る場合は、モノマルチ2の出力は途切れることなく出力
され、CPU1に対してNMI等の割り込みは入らず、
正常に動作する。次に、CPU1がWAIT信号7によ
ってウェイト状態になった場合、CPU1より出力され
るトリガーパルス信号6は出力されないため、モノマル
チ2を再びキックできずに積分動作が終了してしまい、
CPU1に対してNMI等の割り込みが入ってしまい間
違った動作をしてしまうが、WAIT信号7をオープン
コレクタ出力のゲート回路5を介してモノマルチ2のR
C時定数入力端子8に挿入することにより、その時点で
RC積分回路はリセットされ、この状態はウェイト期間
中保持されつづける。この状態は図2に示すbの期間に
相当する。 【0007】 【発明の効果】以上説明したように、本発明によればC
PU1が、ステップ実行時等のウェイト時においても、
NMI等の割り込みが入ってしまい、間違った動作異常
検出を防止でき、常にウォッチドッグタイマ回路を正常
に動作できる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a watchdog timer circuit for detecting an abnormal operation of a CPU. 2. Description of the Related Art Conventionally, a CPU system provided with an abnormality detecting function using a monomulti (monostable multivibrator) outputs a pulse at regular intervals by an OUT (out) command of the CPU and activates the monomulti. are doing. The output of this mono multi is connected to the reset terminal of CPU or NMI.
(Non-maskable interrupt) The RC integration circuit composed of a resistor and a capacitor, because if a CPU malfunctions, a pulse due to an OUT command or the like is not output and a mono-multi cannot be started. After the elapse of the time constant tw, a pulse was applied to the NMI terminal of the CPU as shown in FIG. However, in the prior art, when the CPU is to execute an instruction one step at a time, READY to the CPU is extended by an access cycle by a WAIT signal, that is, the CPU is waited. In the (WAIT) state, a pulse by an OUT command or the like cannot be output at regular intervals, the mono-multi cannot be started, and the CPU detects an operation abnormality and makes an incorrect judgment. In view of the above, an object of the present invention is to operate the mono-multi normally even when the CPU is in the wait state, and to prevent erroneous operation abnormality detection. [0004] To solve the above-mentioned problems,
Therefore, the present invention uses the rising edge of the reset signal or the CPU
Monos activated by the pulse output by the out command
The output of the table multivibrator is reset by the CPU.
Terminal or non-maskable interrupt terminal NMI
Detects abnormal operation of CPU by inputting
Yes, WA to stop READY for the CPU
A RC integration circuit whose operation is stopped by the IT signal
In the watchdog timer circuit, the CPU
Always in READY state for memory or I / O, etc.
If it is working, the monostable multivibrator
The output of the CPU is output without interruption, and the CPU
Operates without receiving an interrupt such as NMI.
When U enters wait state due to WAIT signal
Is the trigger pulse signal output from the CPU.
The monostable multi-vibration without force
Data cannot be kicked again, the integration operation ends, and the WAIT
Signal through an open collector output gate circuit.
RC time constant input terminal of monostable multivibrator
The RC integration circuit at that time
Will be reset and will be maintained during the wait period.
It was made. According to the above means, when the CPU is in a wait state such as when executing a step, the mono-multi integration operation is stopped, and the CPU can prevent erroneous operation abnormality detection. An embodiment of the present invention will be described below with reference to FIG. First, the CPU 1 is at the center of the system, and memories, I / O, and the like are connected to the periphery through a bus. Reference numeral 2 denotes a mono-multi function of a watchdog timer circuit, which is kicked by a trigger pulse signal 6 having a constant period outputted from the CPU 1 by an OUT command or the like. The output of Mono Multi 2 is
A period signal of the time constant tw of the RC integration circuit composed of the resistor 3 and the capacitor 4 is output, and is input to the NMI of the CPU 1 by interruption. In this case, the output of the mono-multi 2 is set before the end of the time constant tw, that is, before the end of the integration operation.
When the trigger pulse signal 6 is input from 1, the output of the mono-multi 2 is reset from that point and the integration operation is started again. As described above, when the CPU 1 is constantly operating in a READY state with respect to peripheral memories or I / Os, the output of the mono multi 2 is output without interruption, and an interrupt such as an NMI is issued to the CPU 1. Not enter
Works fine. Next, when the CPU 1 is put into the wait state by the WAIT signal 7, the trigger pulse signal 6 output from the CPU 1 is not output, so that the mono-multi 2 cannot be kicked again and the integration operation ends.
The CPU 1 receives an interrupt such as an NMI and performs an incorrect operation. However, the WAIT signal 7 is transmitted to the R of the mono-multi 2 through the gate circuit 5 having an open collector output.
By inserting it into the C time constant input terminal 8, the RC integrator is reset at that time, and this state is maintained during the wait period. This state corresponds to the period b shown in FIG. As described above, according to the present invention, C
Even when PU1 waits during step execution or the like,
An interrupt such as an NMI is received, so that incorrect operation abnormality detection can be prevented, and the watchdog timer circuit can always operate normally.

【図面の簡単な説明】 【図1】本発明による回路を説明する図 【図2】ウォッチドッグタイマ回路の動作を説明する図 【図3】従来の回路を説明する図 【符号の説明】 1 CPU 2 モノマルチ 3 抵抗 4 コンデンサ 5 オープンコレクタ出力ゲート回路 6 トリガーパルス信号 7 WAIT信号 8 RC時定数入力端子 tw モノマルチ出力期間 a ウォッチドッグ異常検出期間 b モノマルチ出力停止期間[Brief description of the drawings] FIG. 1 illustrates a circuit according to the present invention. FIG. 2 illustrates the operation of a watchdog timer circuit. FIG. 3 is a diagram illustrating a conventional circuit. [Explanation of symbols] 1 CPU 2 mono multi 3 Resistance 4 Capacitor 5 Open collector output gate circuit 6 Trigger pulse signal 7 WAIT signal 8 RC time constant input terminal tw mono multi output period a Watchdog error detection period b Mono-multi output suspension period

Claims (1)

(57)【特許請求の範囲】 【請求項1】 リセット信号の立ち上がりまたはCPU
(1)のアウト命令により出力されるパルスで起動され
るモノステイブルマルチバイブレータ(2)の出力を、
CPU(1)のリセット端子またはノンマスカブルイン
タラプト端子NMIに入力することによりCPU(1)
の動作異常を検出するものであり、前記CPU(1)に
対するREADYを停止させるWAIT信号により動作
が停止するRC積分回路を備えたウォッチドッグタイマ
回路において、 前記CPU(1)が、周辺のメモリまたはI/O等に対
し、常にREADY状態で動作している場合は、前記モ
ノステイブルマルチバイブレータ(2)の出力は途切れ
ることなく出力され、前記CPU(1)に対してNMI
等の割り込みは入らず動作し、 前記CPU(1)がWAIT信号(7)によってウェイ
ト状態になった場合には、前記CPU(1)より出力さ
れるトリガーパルス信号(6)は出力されることなく、
前記モノステイブルマルチバイブレータ(2)を再びキ
ックできずに積分動作が終了し、WAIT信号(7)を
オープンコレクタ出力のゲート回路(5)を介して前記
モノステイブルマルチバイブレータ(2)のRC時定数
入力端子(8)に挿入することにより、その時点で前記
RC積分回路はリセットされ、ウェイト期間中保持され
つづけるようにしたことを特徴とするウォッチドッグタ
イマ回路。
(57) [Claims] [Claim 1] Rising of reset signal or CPU
It is started by the pulse output by the out command of (1).
Output of the monostable multivibrator (2)
Reset terminal of CPU (1) or non-maskable input
CPU (1) by inputting to the interrupt terminal NMI
The CPU (1) detects an abnormal operation of the CPU (1).
Operate by WAIT signal to stop READY
Watchdog timer with RC integration circuit that stops
In the circuit, the CPU (1) is connected to a peripheral memory or an I / O or the like.
However, if it is always operating in the READY state,
The output of the no-stable multivibrator (2) is interrupted
Output to the CPU (1) with NMI
The CPU (1) operates without receiving an interrupt such as an interrupt.
When the CPU (1) enters the
Trigger pulse signal (6) is not output,
Press the monostable multivibrator (2) again.
The integration operation ends without being locked, and the WAIT signal (7)
Through an open collector output gate circuit (5)
RC time constant of monostable multivibrator (2)
By inserting it into the input terminal (8),
The RC integration circuit is reset and held during the wait period.
Watchdog character characterized by continuing
Ima circuit.
JP33949994A 1994-12-28 1994-12-28 Watchdog timer circuit Expired - Fee Related JP3402414B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33949994A JP3402414B2 (en) 1994-12-28 1994-12-28 Watchdog timer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33949994A JP3402414B2 (en) 1994-12-28 1994-12-28 Watchdog timer circuit

Publications (2)

Publication Number Publication Date
JPH08185344A JPH08185344A (en) 1996-07-16
JP3402414B2 true JP3402414B2 (en) 2003-05-06

Family

ID=18328057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33949994A Expired - Fee Related JP3402414B2 (en) 1994-12-28 1994-12-28 Watchdog timer circuit

Country Status (1)

Country Link
JP (1) JP3402414B2 (en)

Also Published As

Publication number Publication date
JPH08185344A (en) 1996-07-16

Similar Documents

Publication Publication Date Title
US7689875B2 (en) Watchdog timer using a high precision event timer
JP3402414B2 (en) Watchdog timer circuit
JPH03175537A (en) Error controller for debugging microprocessor
JPS6218939B2 (en)
JP2737724B2 (en) NMI communication device between processors and system bus controller
JP2659067B2 (en) Microcomputer reset circuit
JPS6136665B2 (en)
JP2695775B2 (en) How to recover from computer system malfunction
JPS6267645A (en) Processor controller
JP2702972B2 (en) Memory initialization method
JP2616140B2 (en) Microcomputer
JPH0748198B2 (en) Multiprocessor system
JPH01154258A (en) Malfunction detecting device using watchdog timer
JPS6033474Y2 (en) Computer abnormality detection circuit
JPH0644209B2 (en) Bus converter
JPS5937885Y2 (en) multiprocessor system
JPS63101938A (en) Device for preventing microprocessor from runaway
JPS61221850A (en) Loading system for reinitialization program
JPH0738990Y2 (en) Voltage drop detection circuit for electronic devices
JPH0451915B2 (en)
JPH0535892A (en) Microcomputer
JPH01250162A (en) Memory writing system
JPS60140440A (en) Central processing unit
JPS6030979B2 (en) Hang detection method for data processing equipment
JPS64726B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090228

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees