JPH05241907A - Fault detection circuit - Google Patents

Fault detection circuit

Info

Publication number
JPH05241907A
JPH05241907A JP4041519A JP4151992A JPH05241907A JP H05241907 A JPH05241907 A JP H05241907A JP 4041519 A JP4041519 A JP 4041519A JP 4151992 A JP4151992 A JP 4151992A JP H05241907 A JPH05241907 A JP H05241907A
Authority
JP
Japan
Prior art keywords
output
cpu
circuit
gate
multivibrator
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
JP4041519A
Other languages
Japanese (ja)
Inventor
Yoichiro Kurihara
洋一郎 栗原
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP4041519A priority Critical patent/JPH05241907A/en
Publication of JPH05241907A publication Critical patent/JPH05241907A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize a fault detection circuit which enables complete system down in the case of a fault by eliminating incidental malfunction. CONSTITUTION:This fault detection circuit detects a fault by a watchdog timer(WDT) circuit 4' receiving the output of a CPU 1, and the WDT circuit 4' is provided with a gate 5 to receive the output of the CPU 1 at one input/output terminal, monostable multivibrator 6 to receive the output of the gate 5, and low-pass filter(LPF) 7 to receive the output of the monostable multivibrator 6. The output of the LPF 7 is extracted to the outside as a fault detecting output and connected to the other input/output terminal of the gate 5, and the output of the monostable multivibrator 6 is connected to the reset terminal of the CPU 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は故障検出回路に関し、更
に詳しくはCPUを使用した機器の自己故障検出回路に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a failure detection circuit, and more particularly to a device self-failure detection circuit using a CPU.

【0002】[0002]

【従来の技術】CPUを使用した機器においては、故障
を検出するためにウォッチドッグタイマ回路(WDT)
が一般に使用されている。
2. Description of the Related Art In a device using a CPU, a watchdog timer circuit (WDT) is used to detect a failure.
Is commonly used.

【0003】図6は従来から一般に使用されている故障
検出回路を示す構成図である。この図において、1は装
置全体を統括制御するCPU、2はCPUに接続された
バス、3はCPU1のデータを出力するための出力ポー
ト、4はモノ・マルチバイブレータで構成されたWDT
回路である。
FIG. 6 is a block diagram showing a fault detection circuit which has been generally used conventionally. In this figure, 1 is a CPU that controls the entire apparatus, 2 is a bus connected to the CPU, 3 is an output port for outputting the data of the CPU 1, and 4 is a WDT composed of a mono-multivibrator.
Circuit.

【0004】このWDT回路4は、正常なループが一定
時間内に通ることをCPU1が確認するためのものであ
る。そして、図6のように出力ポート3を経由してリト
リガブル・モノマルチバイブレータで構成されたWDT
回路4を配置し、ソフトウェアで定期的にトリガをかけ
ることにより、異常なループを検出するものである。し
かし、そのままでは、ノイズなどによる偶発的な誤動作
により、WDT回路が作動してダウンする可能性があ
る。
The WDT circuit 4 is used by the CPU 1 to confirm that a normal loop passes within a fixed time. Then, as shown in FIG. 6, a WDT constituted by a retriggerable mono multivibrator via the output port 3
By arranging the circuit 4 and periodically triggering it by software, an abnormal loop is detected. However, as it is, there is a possibility that the WDT circuit may be activated and go down due to an accidental malfunction due to noise or the like.

【0005】[0005]

【発明が解決しようとする課題】そこで、図6に示すよ
うに、WDT回路の出力でCPUをリセットする方法が
考えられる。しかし、この方式によると、真の故障の際
に、CPUの再リセットが永久に続くことになり、完全
にダウンすることがなくなってしまう。このため、真の
故障を検出できない恐れがある。
Therefore, as shown in FIG. 6, a method of resetting the CPU by the output of the WDT circuit can be considered. However, according to this method, in the event of a true failure, the resetting of the CPU will continue forever, and it will not completely go down. Therefore, there is a possibility that the true failure cannot be detected.

【0006】本発明は上記従来技術の問題点に鑑みてな
されたものであり、その目的は、偶発的誤動作を除去
し、故障の際は完全にシステムがダウンすることが可能
な故障検出回路を実現することにある。
The present invention has been made in view of the above problems of the prior art, and an object thereof is to provide a failure detection circuit capable of eliminating accidental malfunction and completely shutting down the system in the event of a failure. It is to be realized.

【0007】[0007]

【課題を解決するための手段】上記した課題を解決する
手段は、CPUからの出力を受けたウォッチドッグタイ
マ回路により故障を検出する故障検出回路であって、ウ
ォッチドッグタイマ回路は、CPUからの出力を一方の
入力端子に受けるゲートと、ゲートの出力を受けるモノ
・マルチバイブレータと、モノ・マルチバイブレータの
出力を受けるローパスフィルタとを備え、ローパスフィ
ルタの出力が故障検出出力として外部に取り出されると
共に、ゲートの他方の入力端子に接続され、モノ・マル
チバイブレータの出力がCPUのリセット端子に接続さ
れたことを特徴とするものである。
Means for solving the above-mentioned problems is a failure detection circuit for detecting a failure by a watchdog timer circuit which receives an output from a CPU. It is equipped with a gate that receives the output at one input terminal, a mono-multivibrator that receives the output of the gate, and a low-pass filter that receives the output of the mono-multivibrator, and the output of the low-pass filter is output to the outside as a failure detection output. , Is connected to the other input terminal of the gate, and the output of the mono-multivibrator is connected to the reset terminal of the CPU.

【0008】[0008]

【作用】本発明において、偶発的故障時にはモノ・マル
チバイブレータの出力によりCPUのリセットが行われ
る。回復不可能なな故障時にはローパスフィルタの出力
を受けるゲートが閉じられ、モノ・マルチバイブレータ
への入力が遮断され、故障検出出力が故障状態を保持す
ると共に、CPUへのリセットは行われない。従って、
ノイズ等による偶発的故障によってシステムダウンする
ことがなく、かつ真の故障時にはシステムを停止する。
In the present invention, the CPU is reset by the output of the mono-multivibrator at the time of accidental failure. In the case of an unrecoverable failure, the gate receiving the output of the low-pass filter is closed, the input to the mono-multivibrator is cut off, the failure detection output holds the failure state, and the reset to the CPU is not performed. Therefore,
The system does not go down due to an accidental failure due to noise, etc., and the system is stopped when a true failure occurs.

【0009】[0009]

【実施例】以下図面を参照して、本発明の実施例を詳細
に説明する。図1は本発明の一実施例の構成を示す構成
図、図2は図1を更に詳細に示す構成図、図3は正常動
作における波形図、図4は偶発的誤動作の場合の波形
図、図5は故障の場合の波形図である。
Embodiments of the present invention will now be described in detail with reference to the drawings. 1 is a configuration diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a configuration diagram showing FIG. 1 in more detail, FIG. 3 is a waveform diagram in normal operation, FIG. 4 is a waveform diagram in case of accidental malfunction, FIG. 5 is a waveform diagram in the case of failure.

【0010】これらの図において、1は装置全体を統括
制御するCPU、2はCPUに接続されたバス、3はバ
ス2を介してCPUからのデータを外部に出力するため
の出力ポート、4′はウォッチドックタイマ(WDT)
回路、5は出力ポート3からのデータ及びWDT回路
4′の出力を受けるアンドゲート、6はアンドゲート6
の出力を受けるモノ・マルチバイブレータ、7はモノ・
マルチバイブレータ6の出力を受けるローパスフィル
タ、8はモノ・マルチバイブレータ6の出力を受ける別
のモノ・マルチバイブレータ、9はモノ・マルチバイブ
レータ8の出力を受けるオープンコレクタによるインバ
ータ、10はパワーオンリセット信号を発生するパワー
オンリセット回路、11はパワーオンリセット回路10
の出力を受けるオープンコレクタによるインバータ、D
はパワーオンリセット発生時にローパスフィルタ7のコ
ンデンサを初期化するためのダイオードである。
In these figures, 1 is a CPU that controls the entire apparatus, 2 is a bus connected to the CPU, 3 is an output port for outputting data from the CPU to the outside via the bus 2, and 4 '. Is a watchdog timer (WDT)
Reference numeral 5 designates an AND gate which receives data from the output port 3 and the output of the WDT circuit 4 ', and 6 designates an AND gate 6
Is a mono multivibrator that receives the output of
A low-pass filter that receives the output of the multi-vibrator 6, 8 is another mono-multivibrator that receives the output of the mono-multivibrator 6, 9 is an inverter with an open collector that receives the output of the mono-multivibrator 8, and 10 is a power-on reset signal For generating a power-on reset circuit, 11 for a power-on reset circuit 10
Open collector inverter that receives the output of D
Is a diode for initializing the capacitor of the low-pass filter 7 when a power-on reset occurs.

【0011】このように構成した本実施例装置の動作は
以下のとおりである。尚、ここでは場合に分けて説明を
行う。 <パワーオンリセット後の正常動作>装置の電源が投入
されると、図3に示すように、パワーオンリセット回路
10の出力RSTが”H”レベルになり、まずCPU1
がリセットされる。そして、一定時間後からCPUのソ
フトウェアにより出力ポート3の出力POにパルスが出
力される。このとき、ダイオードDを介して”H”レベ
ルのRST信号がLPF7に印加されているので、LP
Fの出力VOも”H”レベルになっている。従って、出
力ポート3の出力POはゲート5を通過し、ゲート出力
GOにも”H”レベルのパルスが出力される。この”
H”レベルのGOパルスによりモノ・マルチバイブレー
タ6が”H”レベルになる。リセット直後はモノ・マル
チバイブレータ6の出力MOは”L”レベルであるの
で、LPF7内のコンデンサの電圧はCRの時定数で降
下していくが、CPU1がPOのトリガを始めると、M
Oが”H”レベルになり、VI点の電圧も”H”レベル
で安定するようになる。従って、故障出力VOは”H”
レベル(正常状態)である。
The operation of the apparatus of this embodiment thus configured is as follows. The description will be given separately for each case. <Normal operation after power-on reset> When the power of the device is turned on, the output RST of the power-on reset circuit 10 becomes "H" level as shown in FIG.
Is reset. Then, after a certain period of time, a pulse is output to the output PO of the output port 3 by the software of the CPU. At this time, since the "H" level RST signal is applied to the LPF 7 through the diode D, the LP
The output VO of F is also at "H" level. Therefore, the output PO of the output port 3 passes through the gate 5, and the "H" level pulse is also output to the gate output GO. this"
The GO pulse of H "level causes the mono-multivibrator 6 to go to the" H "level. Since the output MO of the mono-multivibrator 6 is at the" L "level immediately after reset, the voltage of the capacitor in the LPF 7 is CR. It descends with a constant, but when CPU1 starts the trigger of PO, M
O becomes "H" level, and the voltage at the VI point also becomes stable at "H" level. Therefore, the fault output VO is "H"
It is a level (normal state).

【0012】<偶発的誤動作>偶発的な誤動作によって
CPU1が暴走したり、エラー処理に入った場合、図4
に示すように、CPU1はWDT回路4′への出力PO
を停止する。POが停止すると、モノ・マルチバイブレ
ータMOが”L”レベルになる。これをトリガとしてモ
ノ・マルチバイブレータ8及びインバータ9からリセッ
ト信号RSTバーがアクティブにされる。これにより、
CPU1がリセットされる。そして、前述のパワーオン
リセットの場合と同様の経過をとって正常動作に復帰す
る。従って、故障出力VOは”H”レベル(正常状態)
のままである。
<Accidental Malfunction> When the CPU 1 goes out of control or enters an error process due to an accidental malfunction, FIG.
As shown in, the CPU 1 outputs the output PO to the WDT circuit 4 '.
To stop. When the PO stops, the mono-multivibrator MO becomes "L" level. With this as a trigger, the reset signal RST bar is activated from the mono / multivibrator 8 and the inverter 9. This allows
CPU1 is reset. Then, after a lapse of time similar to that in the case of the power-on reset, the normal operation is restored. Therefore, the fault output VO is at "H" level (normal state)
It remains.

【0013】<致命的な故障>回復不能な致命的な故障
が起きた場合は、上記偶発的誤動作の場合と同様な手順
でCPU1がリセットされる。しかし、CPU1はリセ
ットされ続ける毎に正常な動作を続けることができず、
WDT回路4′への出力POは連続して出力されない。
<Fatal Failure> When an unrecoverable fatal failure occurs, the CPU 1 is reset in the same procedure as in the case of the accidental malfunction. However, the CPU 1 cannot continue normal operation every time it is reset,
The output PO to the WDT circuit 4'is not continuously output.

【0014】図5に示した例では、WDT回路4′への
出力がリセット後1回だけ出力される場合を例にしてタ
イムチャートを示している。電圧VIは、モノ・マルチ
バイブレータの出力MOの電圧を積分したものであるの
で、次第に下がってゆく。そして、電圧VIがシュミッ
トトリガ回路7cのスレッショルド電圧以下になると、
故障出力VOは”L”レベル(故障状態)に転ずる。す
ると、ゲート5は遮断状態になり、CPU1の動作とは
無関係になり、モノ・マルチバイブレータ6へのトリガ
は入力されなくなる。このため、故障出力VOは”L”
レベル(故障状態)を保持する。
In the example shown in FIG. 5, a time chart is shown as an example in which the output to the WDT circuit 4'is output only once after reset. The voltage VI is a value obtained by integrating the voltage of the output MO of the mono-multivibrator, and therefore gradually decreases. Then, when the voltage VI becomes equal to or lower than the threshold voltage of the Schmitt trigger circuit 7c,
The fault output VO turns to "L" level (fault state). Then, the gate 5 is turned off and becomes independent of the operation of the CPU 1, and the trigger to the mono-multivibrator 6 is not input. Therefore, the fault output VO is "L"
Holds the level (fault state).

【0015】以上のように、いくつかの場合に分けて説
明したように、故障検出のためのWDT回路4′に一定
時間はCPU1のリセットを行い、その後は禁止する回
路を付加しているので、ノイズ等による偶発的故障によ
ってシステムダウンすることがなく、かつ真の故障時に
はシステムを停止することが可能になっている。すなわ
ち、偶発的誤動作を除去し、故障の際は完全にシステム
がダウンすることが可能な故障検出回路を実現すること
ができる。
As described above in several cases, the WDT circuit 4'for detecting a failure is provided with a circuit for resetting the CPU 1 for a certain period of time and thereafter prohibiting it. The system does not go down due to an accidental failure due to noise, etc., and the system can be stopped when a true failure occurs. That is, it is possible to realize a failure detection circuit capable of eliminating accidental malfunction and completely shutting down the system in case of failure.

【0016】[0016]

【発明の効果】以上実施例とともに詳細に説明したよう
に、故障検出のためのWDT回路に一定時間はCPUの
リセットを行い、その後は禁止する回路を付加している
ので、偶発的誤動作を除去し、故障の際は完全にシステ
ムがダウンすることが可能な故障検出回路を実現でき
る。
As described above in detail with the embodiments, the WDT circuit for detecting a failure resets the CPU for a certain period of time, and a circuit for inhibiting the CPU is added thereafter, so that accidental malfunction is eliminated. However, it is possible to realize a failure detection circuit that can completely bring down the system in the event of a failure.

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

【図1】本発明の一実施例の全体の構成を示す構成図で
ある。
FIG. 1 is a configuration diagram showing an overall configuration of an embodiment of the present invention.

【図2】図1の構成を詳細に示す構成図である。FIG. 2 is a configuration diagram showing the configuration of FIG. 1 in detail.

【図3】本発明の一実施例における動作を示す波形図で
ある。
FIG. 3 is a waveform diagram showing an operation in one embodiment of the present invention.

【図4】本発明の一実施例における動作を示す波形図で
ある。
FIG. 4 is a waveform diagram showing an operation in one embodiment of the present invention.

【図5】本発明の一実施例における動作を示す波形図で
ある。
FIG. 5 is a waveform diagram showing an operation in one embodiment of the present invention.

【図6】従来装置の構成を示す構成図である。FIG. 6 is a configuration diagram showing a configuration of a conventional device.

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

1 CPU 2 バス 3 出力ポート 4′ WDT回路 5 ゲート 6 モノ・マルチバイブレータ 7 ローパスフィルタ 1 CPU 2 Bus 3 Output Port 4'WDT Circuit 5 Gate 6 Mono Multivibrator 7 Low Pass Filter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 CPU(1)からの出力を受けたウォッ
チドッグタイマ(4′)により故障を検出する故障検出
回路であって、 ウォッチドッグタイマ回路(4′)は、 CPU(1)からの出力を一方の入力端子に受けるゲー
ト(5)と、 ゲート(5)の出力を受けるモノ・マルチバイブレータ
(6)と、 モノ・マルチバイブレータ(6)の出力を受けるローパ
スフィルタ(7)とを備え、 ローパスフィルタ(7)の出力が故障検出出力として外
部に取り出されると共に、ゲート(5)の他方の入力端
子に接続され、 モノ・マルチバイブレータ(6)の出力がCPU(1)
のリセット端子に接続されたことを特徴とする故障検出
回路。
1. A failure detection circuit for detecting a failure by a watchdog timer (4 ') receiving an output from the CPU (1), wherein the watchdog timer circuit (4') is provided from the CPU (1). A gate (5) that receives an output at one input terminal, a mono-multivibrator (6) that receives the output of the gate (5), and a low-pass filter (7) that receives the output of the mono-multivibrator (6) are provided. , The output of the low-pass filter (7) is taken out as a failure detection output and is connected to the other input terminal of the gate (5), and the output of the mono-multivibrator (6) is the CPU (1).
Failure detection circuit characterized in that it is connected to the reset terminal of.
JP4041519A 1992-02-27 1992-02-27 Fault detection circuit Pending JPH05241907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4041519A JPH05241907A (en) 1992-02-27 1992-02-27 Fault detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4041519A JPH05241907A (en) 1992-02-27 1992-02-27 Fault detection circuit

Publications (1)

Publication Number Publication Date
JPH05241907A true JPH05241907A (en) 1993-09-21

Family

ID=12610632

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4041519A Pending JPH05241907A (en) 1992-02-27 1992-02-27 Fault detection circuit

Country Status (1)

Country Link
JP (1) JPH05241907A (en)

Similar Documents

Publication Publication Date Title
JPS5983254A (en) Watchdog timer
JPH05241907A (en) Fault detection circuit
JP4534995B2 (en) Restart method for digital protective relay
JPH10105422A (en) Control circuit of protecting device
JPS5821281B2 (en) arithmetic device
JPS603755A (en) Output port circuit
JP3724034B2 (en) Control circuit for production equipment
JPH04283840A (en) Diagnostic method for information processor
JPH01169642A (en) Runaway detecting circuit
JPH05335951A (en) D/a converter
JP2001186652A (en) Digital protective relay
JPS63174144A (en) Reset control circuit for microprocessor
JPS6349855A (en) Detecting device for interruption cycle abnormality of cpu
JPH01226035A (en) Fail-safe device for controlling computer
KR0155045B1 (en) Watch dog timmer of self-service guard system
JPS6323598B2 (en)
JP2557106Y2 (en) Redundant controller
JPH02246726A (en) Method of detecting monitoring failure of digital relay
JPS59148961A (en) Monitoring system of operation of processor
JPH01200442A (en) Cpu resetting circuit with protection
JPH05324410A (en) Abnormality detection circuit for microprocessor with address bus
JPH04172911A (en) Protective relay
JPH0414699A (en) Device for preventing eeprom from being inactive
JPH05143375A (en) Processor malfunction monitoring device
JPH02246612A (en) Watchdog timer circuit