JPH05173841A - Monitor circuit for watchdog timer - Google Patents

Monitor circuit for watchdog timer

Info

Publication number
JPH05173841A
JPH05173841A JP3345282A JP34528291A JPH05173841A JP H05173841 A JPH05173841 A JP H05173841A JP 3345282 A JP3345282 A JP 3345282A JP 34528291 A JP34528291 A JP 34528291A JP H05173841 A JPH05173841 A JP H05173841A
Authority
JP
Japan
Prior art keywords
central processing
watchdog timer
processing unit
capacitor
voltage
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.)
Withdrawn
Application number
JP3345282A
Other languages
Japanese (ja)
Inventor
Kenichi Kinoshita
健一 木下
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP3345282A priority Critical patent/JPH05173841A/en
Publication of JPH05173841A publication Critical patent/JPH05173841A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To correctly detect whether both a corresponding central processing unit 1 and a watchdog timer operate always normally or not through simple circuit configuration. CONSTITUTION:In a circuit constituted of the watchdog timer 2 connected to the central processing unit 1 and a capacitor voltage detecting means 4 which compares the voltage of a capacitor 3 connected to the watchdog timer 2 with the prescribed voltage and informs the central processing circuit of this result, the pulse P of a prescribed period is generated from the central processing unit 1 to the watchdog timer 2, and simultaneously, the watchdog timer 2 is provided with a means to generate a reset pulse RP to the central processing unit l when the pulse from the central processing unit 1 does not come, and further, the capacitor voltage detecting means 4 includes the means to inform the central processing unit 1 of information based on relation between the voltage of the capacitor and the prescribed reference voltage and informing whether the watchdog timer 2 operates normally or not.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータに於ける
ウオッチドッグタイマのモニタ回路に関するものであ
り、特に詳しくは、コンピュータの故障、暴走、或いは
無限ループ等を検出して当該コンピュータの動作異常を
効果的に正確に検出しえるウオッチドッグタイマのモニ
タ回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a monitor circuit for a watchdog timer in a computer, and more specifically, it detects a malfunction, runaway, infinite loop or the like of the computer to detect an abnormal operation of the computer. The present invention relates to a monitor circuit of a watchdog timer that can detect accurately and effectively.

【0002】[0002]

【従来の技術】従来、図9に示す様に、適宜のマイクロ
コンピュ−タ−等から構成される中央演算装置1が、所
定の演算回路、制御回路等に於いて、常に正常に作動し
ているかどうかを検出し、該中央演算装置の動作が異常
の場合には、当該中央演算装置を停止させるか、オペレ
ータにその動作異常を警告するアラーム手段を駆動させ
る装置が併用されている。
2. Description of the Related Art Conventionally, as shown in FIG. 9, a central processing unit 1 composed of an appropriate micro computer or the like always operates normally in a predetermined processing circuit, control circuit or the like. A device for detecting whether or not the central processing unit is present and stopping the central processing unit when the operation of the central processing unit is abnormal or driving an alarm means for warning the operator of the abnormal operation is also used.

【0003】かかる装置の一例として、ウオッチドッグ
タイマ2が知られている。該ウオッチドッグタイマ2
は、該中央演算装置1に直接接続されており、具体的に
は、該中央演算装置1から該ウオッチドッグタイマに対
して、適宜の周波数をもつ所定のパルスPを発生させ
る。該パルスをウオッチドッグタイマパルス或いはポン
ピングパルスとも称される。
A watchdog timer 2 is known as an example of such a device. The watchdog timer 2
Is directly connected to the central processing unit 1, and specifically, the central processing unit 1 causes the watchdog timer to generate a predetermined pulse P having an appropriate frequency. The pulse is also called a watchdog timer pulse or a pumping pulse.

【0004】一方、該ウオッチドッグタイマ2に於いて
は通常、電源投入時に、該中央演算装置1をリセットし
て初期化する為のリセットパルスRPを発生させる機構
を有するものであるが、更に該中央演算装置から所定の
パルスPが入力されない場合には、当該中央演算装置1
の機能に障害が発生したものと判断して、リセットパル
スRPを発生させる機能を有しているもので有る。
On the other hand, the watchdog timer 2 usually has a mechanism for generating a reset pulse RP for resetting and initializing the central processing unit 1 when the power is turned on. When the predetermined pulse P is not input from the central processing unit, the central processing unit 1
It has a function of generating a reset pulse RP by determining that a failure has occurred in the function of.

【0005】つまり、該ウオッチドッグタイマ2に於い
ては、電源投入後に該中央演算装置から所定のパルスP
が入力されない場合、或いは当該パルスPが所定の期間
入力されていたが、或る時点から所定の時間経過しても
該パルスPの入力が無い場合には、該中央演算装置1の
機能に障害が発生したと判断して、電源をOFFすると
か、アラームを発生させてオペレータに警告を行い当該
中央演算装置1の修理、取替えが実行される事になる。
That is, in the watchdog timer 2, a predetermined pulse P is output from the central processing unit after the power is turned on.
Is not input, or the pulse P has been input for a predetermined period of time, but if the pulse P is not input even after a predetermined time elapses from a certain time point, the function of the central processing unit 1 is impaired. When the power supply is turned off or an alarm is generated to warn the operator, the central processing unit 1 is repaired or replaced.

【0006】[0006]

【発明が解決しようとする課題】処で、係るウオッチド
ッグタイマ2を用いた中央演算装置のモニタ回路に於い
ては、確かに中央演算装置の機能チェックが行われる
が、当該ウオッチドッグタイマ2それ自体に関しては、
何らのチェックシステムが無く、場合によっては、該ウ
オッチドッグタイマ1が故障していて、該中央演算装置
1から該所定のパルスPが出力されていないにも係わら
ず、該ウオッチドッグタイマ2からリセットパルスRP
が出力されず、当該中央演算装置1は、故障したまま作
動を継続し、その結果、該中央演算装置が暴走したり、
無限ループに入ってしまうと言う問題が発生する。
In the central processing unit monitor circuit using the watchdog timer 2, the function of the central processing unit is surely checked. As for itself,
There is no check system, and in some cases, the watchdog timer 1 is out of order, and the watchdog timer 2 is reset even if the predetermined pulse P is not output from the central processing unit 1. Pulse RP
Is not output, the central processing unit 1 continues to operate with a failure, and as a result, the central processing unit runs out of control,
The problem of entering an infinite loop occurs.

【0007】従って、本発明の目的は、係る従来技術に
於ける問題を解決し、簡単な回路構成により、常時該中
央演算装置1と該ウオッチドッグタイマ2との双方が共
に正常に作動しているか否かを正確に検出出来る様にす
るもので有って、少なくとも一方の機能が故障した場合
には、その状態を即座に、当該回路の動作を停止させる
か、オペレータに警告する為の表示を行う事により、事
故の発生を未然に防止する事の出来るウオッチドッグタ
イマのモニタ回路を提供するものである。
Therefore, an object of the present invention is to solve the problems in the prior art, and with a simple circuit configuration, both the central processing unit 1 and the watchdog timer 2 are normally operated normally. Whether or not there is a failure in at least one of the functions, it is possible to immediately stop the operation of the circuit concerned, or display to warn the operator. By providing the above, it is possible to provide a watchdog timer monitor circuit capable of preventing an accident from occurring.

【0008】[0008]

【課題を解決するための手段】本発明は上記した目的を
達成するため、以下に記載されたような技術構成を採用
するものである。即ち、中央演算装置、該中央演算装置
に接続されたウオッチドッグタイマ、該ウオッチドッグ
タイマに接続されたコンデンサの電圧を所定の基準電圧
と比較してその結果を該中央演算装置に通知するコンデ
ンサ電圧検知手段とから構成された回路に於いて、該中
央演算装置から該ウオッチドッグタイマに対して所定周
期のパルスを発生させると共に、該ウオッチドッグタイ
マに於いては、該中央演算装置からのパルスが来なくな
った場合に該中央演算装置に対してリセットパルスを発
生させる手段が設けられており、更に該コンデンサ電圧
検知手段は、該コンデンサの電圧と所定の基準電圧との
関係から該ウオッチドッグタイマが正常に作動している
か否かの情報を該中央演算装置に通知する手段を含んで
いるウオッチドッグタイマのモニタ回路である。
In order to achieve the above-mentioned object, the present invention adopts the technical constitution as described below. That is, the central processing unit, the watchdog timer connected to the central processing unit, the voltage of the capacitor connected to the watchdog timer is compared with a predetermined reference voltage, and the capacitor voltage for notifying the central processing unit of the result. In the circuit configured by the detection means, the central processing unit generates a pulse of a predetermined cycle to the watchdog timer, and in the watchdog timer, the pulse from the central processing unit is Means is provided for generating a reset pulse to the central processing unit when it has stopped, and further, the capacitor voltage detection means, the watchdog timer from the relationship between the voltage of the capacitor and a predetermined reference voltage. Monitor of watchdog timer including means for notifying the central processing unit of information as to whether it is operating normally It is a road.

【0009】[0009]

【作用】本発明に係るウオッチドッグタイマのモニタ回
路は、上記した様な技術構成を採用しているので、該中
央演算装置1は、該ウオッチドッグタイマ2により従来
の方法でその機能がチェックされるとともに、該ウオッ
チドッグタイマ2の機能は、該ウオッチドッグタイマ2
に設けられたコンデンサの電圧を適宜のコンデンサ電圧
検知手段を用いて監視する事によって当該機能が正常に
作動しているか否かを常時チェックする事が出来る。
Since the monitor circuit of the watchdog timer according to the present invention adopts the technical configuration as described above, the function of the central processing unit 1 is checked by the watchdog timer 2 by the conventional method. In addition, the function of the watchdog timer 2 is
It is possible to constantly check whether or not the function is normally operated by monitoring the voltage of the capacitor provided in the device using an appropriate capacitor voltage detecting means.

【0010】又、本発明に係る該ウオッチドッグタイマ
のモニタ回路に於いては、当該コンデンサ電圧検知手段
の出力情報を該中央演算装置1でモニターする事によ
り、該コンデンサ電圧の異常が認識された場合には、該
中央演算装置1が適宜のアラーム手段を作動させて、当
該ウオッチドッグタイマ2が故障している事をオペレー
タ等に報知する事により当該ウオッチドッグタイマ2を
修理するか取り替える操作が実行される。
Further, in the watchdog timer monitor circuit according to the present invention, the abnormality of the capacitor voltage is recognized by monitoring the output information of the capacitor voltage detecting means by the central processing unit 1. In this case, the central processing unit 1 operates an appropriate alarm means to notify the operator or the like that the watchdog timer 2 is out of order, so that the watchdog timer 2 can be repaired or replaced. Executed.

【0011】[0011]

【実施例】以下に、本発明に係るウオッチドッグタイマ
のモニタ回路の具体例を図面を参照しながら詳細に説明
する。即ち、図1は、本発明に係るウオッチドッグタイ
マのモニタ回路の大まかなブロックダイアグラムを示す
ものであり、図中中央演算装置1、該中央演算装置に接
続されたウオッチドッグタイマ2、該ウオッチドッグタ
イマ2に接続されたコンデンサ3の電圧を所定の基準電
圧と比較してその結果を該中央演算装置に通知するコン
デンサ電圧検知手段4とから構成された回路に於いて、
該中央演算装置1から該ウオッチドッグタイマ2に対し
て所定周期のパルスPを発生させると共に、該ウオッチ
ドッグタイマ2に於いては、該中央演算装置1からのパ
ルスが来なくなった場合に該中央演算装置1に対してリ
セットパルスRPを発生させる手段5が設けられてお
り、更に該コンデンサ電圧検知手段4は、該コンデンサ
の電圧と所定の基準電圧との関係から該ウオッチドッグ
タイマ2が正常に作動しているか否かの情報を該中央演
算装置1に通知する手段を含んでいるウオッチドッグタ
イマのモニタ回路である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A specific example of a watchdog timer monitor circuit according to the present invention will be described below in detail with reference to the drawings. That is, FIG. 1 is a schematic block diagram of a monitor circuit of a watchdog timer according to the present invention. In a circuit composed of a capacitor voltage detecting means 4 for comparing the voltage of the capacitor 3 connected to the timer 2 with a predetermined reference voltage and notifying the result to the central processing unit,
The central processing unit 1 generates a pulse P of a predetermined cycle to the watchdog timer 2 and, in the watchdog timer 2, when the pulse from the central processing unit 1 stops, Means 5 for generating a reset pulse RP is provided for the arithmetic unit 1, and further, the capacitor voltage detecting means 4 is arranged so that the watchdog timer 2 operates normally from the relationship between the voltage of the capacitor and a predetermined reference voltage. It is a watchdog timer monitor circuit including means for notifying the central processing unit 1 of information as to whether or not it is operating.

【0012】本発明に係る該ウオッチドッグタイマのモ
ニタ回路に於いて、該コンデンサ電圧検知手段4は、該
コンデンサの電圧と所定の基準電圧との関係から該ウオ
ッチドッグタイマが正常に作動しているか否かの情報を
二値化信号に変換して該中央演算装置に通知する手段で
構成されているものである事が好ましい。具体的には、
図2に示す様にコンパレータ40で構成されていても良
く、この場合には、当該コンパレータ5の非反転入力端
子には、適宜の電圧レベルに設定された基準電圧Vref
が入力され、又その反転入力端子には、前記コンデンサ
の電圧値が入力されるものである。
In the watchdog timer monitor circuit according to the present invention, the capacitor voltage detecting means 4 determines whether the watchdog timer is operating normally from the relationship between the voltage of the capacitor and a predetermined reference voltage. It is preferable that the information processing means is constituted by means for converting the information on whether or not it is a binarized signal and notifying it to the central processing unit. In particular,
As shown in FIG. 2, it may be configured by a comparator 40. In this case, the non-inverting input terminal of the comparator 5 has a reference voltage V ref set to an appropriate voltage level.
Is input, and the voltage value of the capacitor is input to its inverting input terminal.

【0013】本発明に係るウオッチドッグタイマのモニ
タ回路は、上記した様に該中央演算装置1が電源投入後
は、常時連続して該コンデンサの電圧の電圧をモニター
する事が出来るので、両回路の機能が正常に作動してい
るか否かを確実にチェックする事が可能となる。本具体
例に於ける該コンパレータ405の基準電圧Vref は、
該ウオッチドッグタイマのモニタ回路の電源がVCCであ
るとすると、例えば1/2VCCである。
As described above, the watchdog timer monitor circuit according to the present invention can monitor the voltage of the capacitor continuously and continuously after the central processing unit 1 is powered on. It is possible to reliably check whether or not the function of is operating normally. The reference voltage V ref of the comparator 405 in this example is
If the power supply of the monitor circuit of the watchdog timer is V CC, it is, for example, 1/2 V CC .

【0014】上記具体例に於ける各部の動作を図4のタ
イミング波形図に従って説明する。先ず、本具体例に用
いられるウオッチドッグタイマ2は、例えば図3に示す
様な回路構成をしているものである。即ち、該ウオッチ
ドッグタイマ2に於いては、該中央演算装置1から入力
されるパルスPを受ける入力31と接続するベースを持
ち、そのコレクタがコンデンサ33の一端部と接続され
且つそのエミッタが該コンデンサ33の他端部と接続さ
れて接地されているトランジスタ41と、該トランジス
タ41のコレクタ部が反転入力端部に接続され、又適宜
の基準電圧Vref が非反転入力端部に接続されており且
つその出力が、該中央演算装置1のモニター回路に入力
されている比較回路34とその一端部が該トランジスタ
41のコレクタ部と共に該コンデンサの一端部に接続さ
れ且つその他端部が電源部VCCと接続された適宜の抵抗
値を持つ抵抗とから構成されているものである。
The operation of each part in the above specific example will be described with reference to the timing waveform chart of FIG. First, the watchdog timer 2 used in this example has a circuit configuration as shown in FIG. 3, for example. That is, the watchdog timer 2 has a base connected to the input 31 for receiving the pulse P input from the central processing unit 1, its collector is connected to one end of the capacitor 33, and its emitter is A transistor 41 connected to the other end of the capacitor 33 and grounded, a collector of the transistor 41 connected to an inverting input end, and an appropriate reference voltage V ref connected to a non-inverting input end. And its output is input to the monitor circuit of the central processing unit 1 and one end thereof is connected to one end of the capacitor together with the collector of the transistor 41 and the other end is the power supply V. It is composed of a resistor connected to CC and having an appropriate resistance value.

【0015】係る構成に於いて、該中央演算装置1から
該ウオッチドッグタイマ2に対して波形(a)に示され
る様な所定の周波数を有するパルスPが発信されると、
該パルスの“H”レベル部分で該トランジスタ32がO
Nする為、それまでに該コンデンサ33に充電されてい
た電荷が放電され、従ってノード部Nに於ける電圧は急
速に低下するが、直ぐに該トランジスタ32がOFFす
るので、該コンデンサ33は電源部VCCにより充電さ
れ、従って該ノード部Nに於ける電圧は波形図(b)の
b−1に示される様になる。
In the above configuration, when the central processing unit 1 sends a pulse P having a predetermined frequency as shown in the waveform (a) to the watchdog timer 2,
At the "H" level portion of the pulse, the transistor 32 is turned on.
Since N, the electric charge charged in the capacitor 33 up to that point is discharged, and therefore the voltage at the node N drops rapidly. However, since the transistor 32 is turned off immediately, the capacitor 33 is turned off. Since it is charged by V CC, the voltage at the node N becomes as shown by b-1 in the waveform diagram (b).

【0016】係る操作が繰り返される事によって、該ノ
ード部Nに於いて示されるコンデンサ33の電圧が図4
の波形図(b)の様に変化することになる。そこで、例
えば該波形(b)を基準電圧Vref と該比較回路34で
比較させ、当該波形(b)が該基準電圧Vref を超えた
場合に該比較回路34から“H”レベルの信号を出力さ
せる様にすると図4の波形(c)に示す様な二値化され
た信号が得られる。
By repeating such an operation, the voltage of the capacitor 33 shown at the node portion N is changed to that shown in FIG.
The waveform will change as shown in FIG. Therefore, for example, the waveform (b) is compared with the reference voltage V ref by the comparison circuit 34, and when the waveform (b) exceeds the reference voltage V ref , an “H” level signal is output from the comparison circuit 34. When it is output, a binarized signal as shown in the waveform (c) of FIG. 4 is obtained.

【0017】係る波形(c)を該中央演算装置1に設け
た適宜のモニター回路に入力し、該パルスPに同期した
波形(c)が得られている場合には、該ウオッチドッグ
タイマ2は正常に機能しているものと判断する様に構成
しておく事により、仮に該中央演算装置1が故障して、
該パルスPが発信されていない状態になると、該波形
(b)がb−2に示す様な固定化された波形となり、そ
の結果波形(c)も“H”レベルと“L”レベルの交互
波形を取らず、“H”レベルに固定された波形となるの
で、その状態を該中央演算装置の機能が異常状態と成っ
たと判断する様にする事により、該中央演算装置の機能
チエックを行う事が出来る。
When the waveform (c) is input to an appropriate monitor circuit provided in the central processing unit 1 and the waveform (c) synchronized with the pulse P is obtained, the watchdog timer 2 By configuring so that it is determined that the central processing unit 1 is functioning normally,
When the pulse P is not transmitted, the waveform (b) becomes a fixed waveform as shown in b-2, and as a result, the waveform (c) also alternates between "H" level and "L" level. Since the waveform is fixed at "H" level without taking the waveform, the function of the central processing unit is checked by determining that the state is that the function of the central processing unit has become abnormal. I can do things.

【0018】尚、本具体例に於いて、該比較回路34の
該基準電圧Vref は、例えば1/2VCCとする事が出来
る。即ち、上記の具体例に於ける該コンデンサ電圧検知
手段は、該コンデンサの電圧と所定の基準電圧との関係
から該ウオッチドッグタイマが正常に作動しているか否
かの情報を二値化信号に変換して該中央演算装置に通知
する手段で構成されている例を示すものである。
In this embodiment, the reference voltage V ref of the comparison circuit 34 can be set to 1/2 V CC , for example. That is, the capacitor voltage detecting means in the above-mentioned specific example uses the relationship between the voltage of the capacitor and a predetermined reference voltage to convert the information as to whether the watchdog timer is operating normally into a binary signal. It shows an example constituted by means for converting and notifying to the central processing unit.

【0019】又、本具体例に於ける該該コンデンサ電圧
検知手段は、上記の例とは別に、該コンデンサのアナロ
グ電圧を適宜のアナログ/デジタル変換器を用いてデジ
タル値に変換してそのデジタル値を所定の基準電圧と比
較し、その結果を該中央演算装置に通知して、該中央演
算装置1のモニター回路に於いて該中央演算装置1の機
能チェックを行う手段で構成されていても良い。
Further, in addition to the above example, the capacitor voltage detecting means in the present concrete example converts the analog voltage of the capacitor into a digital value by using an appropriate analog / digital converter, and the digital value thereof is obtained. A means for comparing the value with a predetermined reference voltage, notifying the result to the central processing unit, and performing a function check of the central processing unit 1 in the monitor circuit of the central processing unit 1 good.

【0020】次に、本発明に係るウオッチドッグタイマ
のモニタ回路の他の具体例に付いて説明する。即ち、上
記した具体例に於いては、該中央演算装置1から所定の
パルスPの発生がないと該ウオッチドッグタイマ2から
リセットパルスRPを発生して、該中央演算装置1をリ
セットするものであるが、係る具体例では、当該中央演
算装置1が故障した場合には、通常予め予備のCPU等
の予備回路を設けておき、適宜のスイッチ機構を利用し
て、故障した中央演算装置から予備の中央演算装置に切
替えを行う事が一般的に行われている。
Next, another specific example of the watchdog timer monitor circuit according to the present invention will be described. That is, in the above-mentioned specific example, if the predetermined pulse P is not generated from the central processing unit 1, the reset pulse RP is generated from the watchdog timer 2 to reset the central processing unit 1. However, in such a specific example, when the central processing unit 1 fails, a spare circuit such as a spare CPU is usually provided in advance, and an appropriate switch mechanism is used to provide protection from the failed central processing unit. It is common practice to switch to this central processing unit.

【0021】然しながら、係る切替え操作を頻繁に行う
事は演算処理上好ましく無い状態であり、出来れば該リ
セットパルスRPを用いないで、当該ウオッチドッグタ
イマ2の機能をチェックする事が出来ればより好ましい
事である。又、中央演算装置をリセットする事は、既に
実行されて演算処理途中の状態にあるデータを破壊する
危険もあり出来るだけリセット操作を避ける事が好まし
い。
However, it is not preferable in terms of arithmetic processing to perform such switching operation frequently, and it is more preferable if the function of the watchdog timer 2 can be checked without using the reset pulse RP if possible. It is a thing. Further, resetting the central processing unit may destroy the data which has already been executed and is in the middle of the arithmetic processing, and it is preferable to avoid the reset operation as much as possible.

【0022】一方、中央演算装置1が、仮に何らかの原
因で、前記したパルスPの発生が停止された場合でも、
それが、ソフト的なエラーによる場合には、リセットパ
ルスRPを複数回入力してみる事によりその機能が正常
な状態に復帰する場合が多い。つまり、該中央演算装置
1がハード面に於ける障害である場合には、該リセット
パルスを幾ら加えても正常な状態に復帰する事は無く、
予備回路に切り換えるか、当該中央演算装置そのものを
取り替える必要があるが、ソフト的なエラーによる場合
には、リセットパルスにより復帰する可能性がある為、
機能に障害が発生した中央演算装置に対し、複数回の復
旧のチャンスを与える事が好ましい。
On the other hand, even if the central processing unit 1 stops the generation of the above-mentioned pulse P for some reason,
In the case of a soft error, the function is often returned to a normal state by inputting the reset pulse RP a plurality of times. In other words, if the central processing unit 1 is an obstacle in terms of hardware, it does not return to a normal state even if the reset pulse is added,
It is necessary to switch to a spare circuit or replace the central processing unit itself, but in the case of a software error, there is a possibility of returning by a reset pulse,
It is preferable to give the central processing unit whose function has failed a plurality of recovery opportunities.

【0023】例えば、或る中央演算装置1が、機能に障
害を起こし該パルスPの発生が停止された場合、一回の
みの復旧チャンスを与えるのでは無く、複数回、例えば
少なくとも2回、好ましくは3回以上の復旧チャンスを
与えることにより、効率的に中央演算装置の復旧を行わ
せる事が好ましい。従って、本発明に係る第2の具体例
としては、リセットパルスRPを該ウオッチドッグタイ
マ2から直接該中央演算装置1に入力させるものではな
く、該コンデンサの電圧検知及び比較手段に関連付ける
事と共に、複数回のリセットパルスRPを該中央演算装
置1に印加する事によって、該中央演算装置の復旧を図
る様に構成されたウオッチドッグタイマのモニタ回路で
ある。
For example, when a certain central processing unit 1 causes a failure in the function and the generation of the pulse P is stopped, the recovery opportunity is not given only once, but a plurality of times, for example, at least twice, preferably. It is preferable to efficiently recover the central processing unit by giving recovery opportunities three times or more. Therefore, as a second specific example of the present invention, the reset pulse RP is not directly input from the watchdog timer 2 to the central processing unit 1, but is associated with the voltage detection and comparison means of the capacitor, This is a watchdog timer monitor circuit configured to restore the central processing unit by applying reset pulses RP to the central processing unit 1 a plurality of times.

【0024】本具体例に係るウオッチドッグタイマのモ
ニタ回路の構成を図5に示す。図5は、基本的には、図
1のブロックダイアグラムと略同一であるが、異なる構
成は、該ウオッチドッグタイマ2からのリセットパルス
RPが該中央演算装置1に入力されずに、該コンデンサ
電圧検知手段4に入力されている点である。図6は、本
具体例に於いて使用されるコンデンサ電圧検知手段4に
適した回路構成の例を示すブロックダイアグラムであ
る。
FIG. 5 shows the configuration of the monitor circuit of the watchdog timer according to this example. 5 is basically the same as the block diagram of FIG. 1 except that the reset pulse RP from the watchdog timer 2 is not input to the central processing unit 1 and the capacitor voltage is different. This is the point input to the detection means 4. FIG. 6 is a block diagram showing an example of a circuit configuration suitable for the capacitor voltage detecting means 4 used in this example.

【0025】即ち、第1のコンデンサC1の一端部に該
中央演算装置1から出力されるパルスPが入力される入
力端部S1が設けられており、該コンデンサC1の他端
部は第1のダイオードD1と第2のダイオードD2のそ
れぞれの一端部とに接続され、該第1のダイオードD1
の他端部は接地され、又該第2のダイオードD2の他端
部は第2のコンデンサC2の一端部と第3のダイオード
D3の一端部に接続されている。
That is, an input end S1 to which the pulse P output from the central processing unit 1 is input is provided at one end of the first capacitor C1, and the other end of the capacitor C1 is a first end. The first diode D1 is connected to one end of each of the diode D1 and the second diode D2.
The other end of the second diode D2 is grounded, and the other end of the second diode D2 is connected to one end of the second capacitor C2 and one end of the third diode D3.

【0026】そして該第2のコンデンサC2の他端部は
接地され又該第3のダイオードD3の他端部は該ウオッ
チドッグタイマ2から、該中央演算装置1から所定の時
間間隔に間に該パルスPが入力されない場合に、所定の
間隔で連続的に発生されるリセットパルスRPが入力さ
れる入力端子部S2に接続されている。一方、該第2の
コンデンサC2の一端部と第3のダイオードD3の一端
部は、コンパレータ40の反転入力端部に接続されてお
り、又該コンパレータ40の非反転入力端部には、適宜
の電圧に調整された基準電圧が入力されている。
The other end of the second capacitor C2 is grounded, and the other end of the third diode D3 is connected to the watchdog timer 2 and the central processing unit 1 at predetermined time intervals. When the pulse P is not input, it is connected to the input terminal portion S2 to which the reset pulse RP continuously generated at a predetermined interval is input. On the other hand, one end of the second capacitor C2 and one end of the third diode D3 are connected to the inverting input end of the comparator 40, and an appropriate non-inverting input end of the comparator 40 is connected. The reference voltage adjusted to the voltage is input.

【0027】そして、該コンパレータ40の出力は、該
中央演算装置に設けられた適宜のモニター回路に接続さ
れるか、該中央演算装置と予備の中央演算装置とを切り
換える適宜の切替え手段と適宜のモニター回路を介して
接続されているものである。図6に於いて使用されてい
るコンデンサC1とC2の容量は、後述する様にリセッ
トパルスRPが少なくとも2回該入力端子部S2に入力
された場合でも、当該コンパレータ40の出力が、反転
しない様な、即ち該ウオッチドッグタイマ2の機能が正
常である事を示し得る電圧レベルに維持される様に選択
される事が望ましい。
The output of the comparator 40 is connected to an appropriate monitor circuit provided in the central processing unit, or an appropriate switching means for switching between the central processing unit and a spare central processing unit and an appropriate switching unit. It is connected through a monitor circuit. The capacitances of the capacitors C1 and C2 used in FIG. 6 are such that the output of the comparator 40 is not inverted even when the reset pulse RP is input to the input terminal portion S2 at least twice as described later. That is, it is desirable that the watchdog timer 2 is selected so as to be maintained at a voltage level that can indicate that the function of the watchdog timer 2 is normal.

【0028】図7は、上記回路に於ける波形を示すもの
であり、図7の波形(a)は該中央演算装置1から該ウ
オッチドッグタイマ2に対して出力されるパルスPの波
形であり、又波形(b)は該波形(a)のパルスが入力
される事によって、コンデンサC2に充電される電圧の
変化をノード部Nに於いて示したものである。該電圧が
基準電圧Vref を超えた場合に該コンパレータ40の出
力が“H”レベルとなり波形(c)が得られる。
FIG. 7 shows the waveforms in the above circuit. The waveform (a) in FIG. 7 is the waveform of the pulse P output from the central processing unit 1 to the watchdog timer 2. Further, the waveform (b) shows the change in the voltage charged in the capacitor C2 at the node N when the pulse of the waveform (a) is input. When the voltage exceeds the reference voltage V ref , the output of the comparator 40 becomes “H” level and the waveform (c) is obtained.

【0029】つまり、該波形(c)が“H”レベルにあ
る時には、該ウオッチドッグタイマ1は正常で且つ中央
演算装置1も正常に機能していると判断出来る。尚、或
る時点から該中央演算装置1の機能にに何らかの障害が
発生し該中央演算装置から該ウオッチドッグタイマ2に
対してパルスPが出力されなくなると、該ウオッチドッ
グタイマ2は所定の期間経過後に“L”レベルのリセッ
トパルスRPを出力する。
That is, when the waveform (c) is at "H" level, it can be judged that the watchdog timer 1 is normal and the central processing unit 1 is also functioning normally. It should be noted that if some trouble occurs in the function of the central processing unit 1 from a certain point in time and the pulse P is no longer output to the watchdog timer 2 from the central processing unit, the watchdog timer 2 keeps the predetermined period. After the lapse of time, the reset pulse RP of "L" level is output.

【0030】その結果、該第2のコンデンサC2に充電
されていた電荷が該第3のダイオードD3を介して放電
されるので、波形(b)に示す様に、ノード部Nの電圧
は減少し、該電圧が基準電圧Vref より低下した場合に
該コンパレータ40の出力が“H”レベルから“L”レ
ベルとなる。ところで、本具体例に於いては、上記した
様に、該中央演算装置1の機能に、一時的に障害が発生
した場合に、複数回リセットパルスを印加させることに
より、当該中央演算装置1にその回数だけ復旧のチャン
スを与えるものであるので、その操作は、図8に示され
る波形図の様に実行される。
As a result, the electric charge charged in the second capacitor C2 is discharged through the third diode D3, so that the voltage of the node portion N decreases as shown in the waveform (b). When the voltage becomes lower than the reference voltage V ref , the output of the comparator 40 changes from “H” level to “L” level. By the way, in the present specific example, as described above, when the function of the central processing unit 1 temporarily fails, the central processing unit 1 is applied with the reset pulse a plurality of times. The operation is performed as shown in the waveform diagram of FIG. 8 because it gives the chance of recovery by the number of times.

【0031】即ち、先ず図7に於ける第1番目のリセッ
トパルスRP1が未だ入力されていない状態に於いて、
図8の波形図(a)に示す様に第1番目のリセットパル
スRP1が入力されたとすると、該第2のコンデンサC
2の充電電圧を示すノード部Nの電圧は減少するが、そ
の電圧の減少程度は、上記した様に、複数回該リセット
パルスRPが入力された場合に始めて該基準電圧と下回
る様な条件に設定されているので、波形図(b)に示す
様に、その電圧降下は少なく、第3番目のリセットパル
スRP3が入力されて始めてノード部Nの電圧が該基準
電圧と下回る様に成っている。
That is, first, in the state where the first reset pulse RP1 in FIG. 7 has not been input yet,
As shown in the waveform diagram (a) of FIG. 8, if the first reset pulse RP1 is input, the second capacitor C
The voltage of the node portion N indicating the charging voltage of 2 decreases, but the decrease degree is under the condition that the voltage falls below the reference voltage only when the reset pulse RP is input a plurality of times as described above. Since the voltage is set, the voltage drop is small as shown in the waveform diagram (b), and the voltage of the node N becomes lower than the reference voltage only after the third reset pulse RP3 is input. ..

【0032】即ち、本具体例では、第1と第2のリセッ
トパルスRP1、PR2が入力されている間は、波形図
(c)に示す様に、該該ウオッチドッグタイマ1と中央
演算装置1が正常に機能しているものと推定する。然し
ながら、第3のリセットパルスRP3が入力された場合
には、該コンパレータ40の出力が“H”レベルから
“L”レベルとなる事により、既に2回の復旧のチャン
スを与えたにも係わらず、パルスPの出力が無いので当
該中央演算装置が完全に故障したことと判断し、該中央
演算装置を予備の中央演算装置に切り換えるか、警告表
示を行いオペレータに当該中央演算装置の修理、取替え
を実行させる事になる。
That is, in this example, while the first and second reset pulses RP1 and PR2 are being input, as shown in the waveform diagram (c), the watchdog timer 1 and the central processing unit 1 are connected. Is assumed to be functioning normally. However, when the third reset pulse RP3 is input, the output of the comparator 40 changes from the “H” level to the “L” level, so that the recovery chances have already been given twice. Since there is no output of the pulse P, it is judged that the central processing unit has completely failed, and the central processing unit is switched to a spare central processing unit or a warning is displayed to the operator to repair or replace the central processing unit. Will be executed.

【0033】[0033]

【発明の効果】本発明に係るウオッチドッグタイマのモ
ニタ回路は、上記した構成を採用しているので、簡単な
回路構成により、常時該中央演算装置1と該ウオッチド
ッグタイマ2との双方が共に正常に作動しているか否か
を正確に検出出来る様にするもので有って、少なくとも
一方の機能が故障した場合には、その状態を即座に、当
該回路の動作を停止させるか、オペレータに警告する為
の表示を行う事により、事故の発生を未然に防止する事
の出来るウオッチドッグタイマのモニタ回路がえられる
ものである。
Since the monitor circuit of the watchdog timer according to the present invention adopts the above-mentioned configuration, both the central processing unit 1 and the watchdog timer 2 are constantly operated by a simple circuit configuration. It makes it possible to accurately detect whether or not it is operating normally, and if at least one of the functions fails, immediately notify the operator of the status, or stop the operation of the circuit. By providing a display for warning, a watchdog timer monitor circuit that can prevent the occurrence of an accident can be obtained.

【0034】又、本発明に係るウオッチドッグタイマの
モニタ回路に於いては、該中央演算装置に直接リセット
パルスを入力させることなく、中央演算装置1が正常に
機能するが該ウオッチドッグタイマ2の機能が異常であ
る場合、又該ウオッチドッグタイマ2が正常に機能して
いるのに該中央演算装置1の機能が異常である場合、更
には中央演算装置1とウオッチドッグタイマ2の機能が
何れも異常である場合の何れの状態も容易に検出する事
が可能である。
In the watchdog timer monitor circuit according to the present invention, the central processing unit 1 functions normally without inputting a reset pulse directly to the central processing unit. When the function is abnormal, or when the function of the central processing unit 1 is abnormal even though the watchdog timer 2 is functioning normally, the function of the central processing unit 1 and the watchdog timer 2 is not determined. It is possible to easily detect any of the abnormal states.

【0035】又、本発明に於いては、該ウオッチドッグ
タイマ回路に対して保険の機能を提供するものであり更
に該中央演算装置に故障が発生した場合に予備の中央演
算装置に切替えする場合の安定化を実現する効果があ
る。
Further, according to the present invention, the watchdog timer circuit is provided with an insurance function, and when the central processing unit fails, the spare central processing unit is switched to. Has the effect of achieving stabilization.

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

【図1】図1は、本発明に係るウオッチドッグタイマの
モニタ回路の原理及び一具体例を説明するブロックダイ
アグラムである。
FIG. 1 is a block diagram illustrating a principle and a specific example of a monitor circuit of a watchdog timer according to the present invention.

【図2】図2は、本発明に係るウオッチドッグタイマの
モニタ回路の一具体例を示すブロックダイアグラムであ
る。
FIG. 2 is a block diagram showing a specific example of a monitor circuit of a watchdog timer according to the present invention.

【図3】図3は、本発明に係るウオッチドッグタイマの
モニタ回路に使用しえるウオッチドッグタイマの例を示
すブロックダイアグラムである。
FIG. 3 is a block diagram showing an example of a watchdog timer that can be used in the monitor circuit of the watchdog timer according to the present invention.

【図4】図4は、図2に示す具体例に於ける波形図であ
る。
FIG. 4 is a waveform diagram in the specific example shown in FIG.

【図5】図5は、本発明に係るウオッチドッグタイマの
モニタ回路の他の具体例を示すブロックダイアグラムで
ある。
FIG. 5 is a block diagram showing another specific example of the monitor circuit of the watchdog timer according to the present invention.

【図6】図6は、図5の具体例に使用される電圧比較手
段の例を示すブロックダイアグラムである。
FIG. 6 is a block diagram showing an example of a voltage comparison means used in the specific example of FIG.

【図7】図7は、図6の具体例に於ける波形図である。FIG. 7 is a waveform chart in the specific example of FIG. 6.

【図8】図8は、図6の具体例に於ける他の波形図であ
る。
FIG. 8 is another waveform diagram in the specific example of FIG.

【図9】図9は、従来のウオッチドッグタイマ回路の例
を示すブロックダイアグラムである。
FIG. 9 is a block diagram showing an example of a conventional watchdog timer circuit.

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

1…中央演算装置 2…ウオッチドッグタイマ 3…コンデンサ 4…電圧比較回路 40…コンパレータ 5…リセットパルス発生回路 1 ... Central processing unit 2 ... Watchdog timer 3 ... Capacitor 4 ... Voltage comparison circuit 40 ... Comparator 5 ... Reset pulse generation circuit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 中央演算装置、該中央演算装置に接続さ
れたウオッチドッグタイマ、該ウオッチドッグタイマに
接続されたコンデンサの電圧を所定の基準電圧と比較し
てその結果を該中央演算装置に通知するコンデンサ電圧
検知手段とから構成された回路に於いて、該中央演算装
置から該ウオッチドッグタイマに対して所定周期のパル
スを発生させると共に、該ウオッチドッグタイマに於い
ては、該中央演算装置からのパルスが来なくなった場合
に該中央演算装置に対してリセットパルスを発生させる
手段が設けられており、更に該コンデンサ電圧検知手段
は、該コンデンサの電圧と所定の基準電圧との関係から
該ウオッチドッグタイマが正常に作動しているか否かの
情報を該中央演算装置に通知する手段を含んでいる事を
特徴とするウオッチドッグタイマのモニタ回路。
1. A central processing unit, a watchdog timer connected to the central processing unit, and a voltage of a capacitor connected to the watchdog timer are compared with a predetermined reference voltage, and the result is notified to the central processing unit. In the circuit composed of the capacitor voltage detecting means for generating a pulse of a predetermined cycle from the central processing unit to the watchdog timer, in the watchdog timer, from the central processing unit Means for generating a reset pulse to the central processing unit in the case where the pulse of the capacitor is not provided, and the capacitor voltage detecting means is further configured to detect the watch from the relationship between the voltage of the capacitor and a predetermined reference voltage. A watch characterized by including means for notifying the central processing unit of information as to whether or not the dog timer is operating normally. Dog timer monitor circuit.
【請求項2】 該コンデンサ電圧検知手段は、該コンデ
ンサの電圧と所定の基準電圧との関係から該ウオッチド
ッグタイマが正常に作動しているか否かの情報を二値化
信号に変換して該中央演算装置に通知する手段で構成さ
れている事を特徴とする請求項1記載のウオッチドッグ
タイマのモニタ回路。
2. The capacitor voltage detecting means converts the information as to whether or not the watchdog timer is operating normally into a binary signal based on the relationship between the voltage of the capacitor and a predetermined reference voltage, and converts the information into a binarized signal. 2. The watchdog timer monitor circuit according to claim 1, wherein the monitor circuit comprises means for notifying the central processing unit.
【請求項3】 該コンデンサ電圧検知手段は、該コンデ
ンサのアナログ電圧をデジタル値に変換して所定の基準
電圧と比較し、その結果を該中央演算装置に通知する手
段で構成されている事を特徴とする請求項1記載のウオ
ッチドッグタイマのモニタ回路。
3. The capacitor voltage detecting means comprises means for converting an analog voltage of the capacitor into a digital value, comparing it with a predetermined reference voltage, and notifying the result to the central processing unit. The watchdog timer monitor circuit according to claim 1.
【請求項4】 該コンデンサは当該中央演算装置から該
ウオッチドッグタイマに入力パルスに応じて充電され、
且つ該ウオッチドッグタイマが発生するリセットパルス
により放電される様に構成されている事を特徴とする請
求項1乃至3記載のウオッチドッグタイマのモニタ回
路。
4. The capacitor is charged from the central processing unit to the watchdog timer in response to an input pulse,
4. The watchdog timer monitor circuit according to claim 1, wherein the watchdog timer is discharged by a reset pulse generated by the watchdog timer.
【請求項5】 該ウオッチドッグタイマが、該中央演算
装置に対してリセットパルスを発生させた後に、該中央
演算装置から該ウオッチドッグタイマに対して前記パル
スの発信が無い場合には、当該中央演算装置が故障した
事を表示する手段が設けられている事を特徴とする請求
項1乃至4記載のウオッチドッグタイマのモニタ回路。
5. If the watchdog timer does not transmit the pulse to the watchdog timer after the watchdog timer has generated a reset pulse to the central processing unit, the central processing unit is reset. 5. The watchdog timer monitor circuit according to claim 1, further comprising means for displaying a failure of the arithmetic unit.
【請求項6】 該ウオッチドッグタイマが、該中央演算
装置に対して複数回、該リセットパルスを発生させた後
に、該中央演算装置から該ウオッチドッグタイマに対し
て前記パルスの発信が無い場合には、当該中央演算装置
が故障した事を表示する手段が設けられている事を特徴
とする請求項5記載のウオッチドッグタイマのモニタ回
路。
6. If the watchdog timer does not transmit the pulse to the watchdog timer from the central processing unit after generating the reset pulse to the central processing unit a plurality of times. 6. The watchdog timer monitor circuit according to claim 5, further comprising means for displaying that the central processing unit has failed.
【請求項7】 該コンデンサの充電電圧は、複数回のリ
セットパルスが発生した後に、該所定の基準電圧より低
い電圧に低下維持しえる様に構成されている事を特徴と
する請求項4記載のウオッチドッグタイマのモニタ回
路。
7. The charging voltage of the capacitor is configured such that it can be maintained at a voltage lower than the predetermined reference voltage after the reset pulse is generated a plurality of times. Watchdog timer monitor circuit.
JP3345282A 1991-12-26 1991-12-26 Monitor circuit for watchdog timer Withdrawn JPH05173841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3345282A JPH05173841A (en) 1991-12-26 1991-12-26 Monitor circuit for watchdog timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3345282A JPH05173841A (en) 1991-12-26 1991-12-26 Monitor circuit for watchdog timer

Publications (1)

Publication Number Publication Date
JPH05173841A true JPH05173841A (en) 1993-07-13

Family

ID=18375540

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3345282A Withdrawn JPH05173841A (en) 1991-12-26 1991-12-26 Monitor circuit for watchdog timer

Country Status (1)

Country Link
JP (1) JPH05173841A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013200714A (en) * 2012-03-26 2013-10-03 Fujitsu Ten Ltd Monitoring device and on-vehicle type electronic controller
JP2017093009A (en) * 2015-11-02 2017-05-25 三菱電機株式会社 Switching power supply device and power conversion device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013200714A (en) * 2012-03-26 2013-10-03 Fujitsu Ten Ltd Monitoring device and on-vehicle type electronic controller
JP2017093009A (en) * 2015-11-02 2017-05-25 三菱電機株式会社 Switching power supply device and power conversion device

Similar Documents

Publication Publication Date Title
US6883123B2 (en) Microprocessor runaway monitoring control circuit
KR100296984B1 (en) Monitoring System For Electronic Control System
US4691126A (en) Redundant synchronous clock system
JPH09258821A (en) Device for monitoring microcomputer fault
JPH0970133A (en) Power supply circuit with load protection function
JPH05173841A (en) Monitor circuit for watchdog timer
US9128129B2 (en) Watchdog for voltage detector display
US4477870A (en) Digital control system monitor having a predetermined output under fault conditions
JP4432354B2 (en) Watchdog timer circuit status monitoring system
US20190146547A1 (en) Semiconductor integrated circuit device
JPH08202589A (en) Information processor and fault diagnostic method
CN1980096B (en) Fault sensor for a laser driver circuit
JP6490454B2 (en) Reset pulse train and reset circuit using the same
JPH05181710A (en) System for monitoring central processing unit
JP3403836B2 (en) Microcomputer reset circuit
US20190049905A1 (en) Electronic component monitoring method and apparatus
KR100775328B1 (en) Apparatus for resetting micoms
JPH04291634A (en) Fault detecting circuit for microcomputer
JP2608434B2 (en) Power alarm method
JPH0143650Y2 (en)
JPH04256038A (en) Watchdog timer inspecting device
CN116149454A (en) Airborne computer secondary power supply monitoring method and system
JP2001339843A (en) Over-voltage detection control system for parallel dc power supply
RU1797122C (en) Device for restart and testing power supply of microcomputer
KR20020057321A (en) Fan fail alarm

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990311