JPH04133162A - Operation monitor for processor - Google Patents

Operation monitor for processor

Info

Publication number
JPH04133162A
JPH04133162A JP2258460A JP25846090A JPH04133162A JP H04133162 A JPH04133162 A JP H04133162A JP 2258460 A JP2258460 A JP 2258460A JP 25846090 A JP25846090 A JP 25846090A JP H04133162 A JPH04133162 A JP H04133162A
Authority
JP
Japan
Prior art keywords
processor
abnormality
processors
time
reset
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
JP2258460A
Other languages
Japanese (ja)
Inventor
Atsushi Mukai
淳 向井
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2258460A priority Critical patent/JPH04133162A/en
Publication of JPH04133162A publication Critical patent/JPH04133162A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To surely stop the operation at the time of abnormality by informing the abnormality by applying an interruption to a processor of the subordinate side by an output of a watch dog timer of the superordinate side, at the time or monitoring the operation of two processors, and also, resetting both the processors in the case an abnormality time counting time becomes a prescribed time. CONSTITUTION:A first and a second processors 10, 20 operate cooperatively through an interface 30. A watch dog timer (WD) 11 applies an interruption to a second processor 20 at the time of abnormality, informs generation of the abnormality, and also, resets a first processor 10. Also, by this abnormality signal, a counter 12 is allowed to start time counting. In the case of abnormality by which the processor 10 cannot be reactuated, the WD 11 is not reset, and the counter 12 continues to count. When the counter 12 reaches a prescribed value, a latch circuit 14 is set, and the processors 10, 20 are reset, both reach an operation stop.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は2つのプロセッサの動作を監視する装置に関し
、更に詳述すれば特定のプロセッサにリセットでは回復
しない異常が発生した場合には両プロセッサの動作を停
止させる動作監視装置に関する。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a device that monitors the operation of two processors. The present invention relates to an operation monitoring device for stopping the operation of a machine.

〔従来の技術〕[Conventional technology]

第3図は従来のこの種の動作監視装置(例えば特開平1
−116739号公報)のブロック図であり、監視対象
の2つのプロセッサと共に示している。第1、第2プロ
セッサ10.20はインターフェース30を介してデー
タ送受をし、協動的に動作するが、第1プロセツサ10
が上位、第2プロセツサ20が下位と位置づけられてい
る。第1.第2プロセツサ10.20の夫々にはウォッ
チドッグタイマ11.21が設けられており、第1.第
2プロセッサ10.20が夫々所定周期で発するパルス
信号をリセット端子Rに受けるとその計時内容がリセッ
トされるのに対し、上記パルス信号が第1.第2プロセ
ツサ10゜20の異常のために途切れるとウォッチドッ
グタイマ11.21は夫々に設定されている時間の計時
完了の信号を発し、該信号は第1.第2のプロセッサ1
0.20のリセット端子Rに与えられ、第1.第2プロ
セッサ10.20はこれによりリセットされる。
Figure 3 shows a conventional operation monitoring device of this type (for example,
116739), and is shown together with two processors to be monitored. The first and second processors 10.20 exchange data via the interface 30 and operate cooperatively.
is positioned at the upper level, and the second processor 20 is positioned at the lower level. 1st. Each of the second processors 10.20 is provided with a watchdog timer 11.21. When the second processors 10 and 20 each receive a pulse signal emitted at a predetermined period at the reset terminal R, the time measurement contents are reset, whereas the pulse signal from the first processor 10.20 is reset. When the second processor 10.20 interrupts due to an abnormality, the watchdog timer 11.21 issues a signal indicating completion of time measurement set in each watchdog timer 11.21, and this signal is transmitted to the first. second processor 1
0.20 is applied to the reset terminal R, and the first . The second processor 10.20 is thereby reset.

ウォッチドッグタイマ21の計時完了信号又は異常報知
信号は第1プロセツサlOの割込端子INTにも与えら
れ、これに割込をかける。これにより第1プロセツサ1
0は第2プロセツサ20の異常を知ることができる。
The time completion signal or abnormality notification signal of the watchdog timer 21 is also applied to the interrupt terminal INT of the first processor 10 to interrupt it. As a result, the first processor 1
0 can know the abnormality of the second processor 20.

更に第1プロセツサ10はOR回路22.23を介して
ウォッチドッグタイマ21、第1プロセツサ20をリセ
ットできるようにしである。
Furthermore, the first processor 10 is configured to be able to reset the watchdog timer 21 and the first processor 20 via OR circuits 22 and 23.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このような従来の動作監視装置では第2プロセツサ20
に生じた異常は第1プロセツサ10に報じられ第1プロ
セツサlOは適切な処理を行えるが、第1プロセツサ1
0に異常が発生した場合は、その動作を停止できるもの
の、第2プロセンサ20は動作を続けており、第2プロ
セツサ20のみによる不完全な動作が引き続き行われる
という問題点があった。
In such a conventional operation monitoring device, the second processor 20
The abnormality that occurs in the
If an abnormality occurs in the processor 0, the operation can be stopped, but the second processor 20 continues to operate, and there is a problem in that the second processor 20 continues to perform an incomplete operation.

本発明はこのような問題点を解決するためになされたも
のであって、上位プロセッサに異常が発生した場合にこ
れを下位プロセッサに報知する構成とし、また上位プロ
セッサの異常が所定時間に亘って解消しないときは両プ
ロセッサをリセットできるようにして下位プロセッサの
みが動作するという不都合を解消した動作監視装置を提
供することを目的とする。
The present invention has been made to solve these problems, and has a structure in which when an abnormality occurs in a higher-level processor, this is notified to a lower-level processor. It is an object of the present invention to provide an operation monitoring device which eliminates the inconvenience of only the lower processor operating by making it possible to reset both processors if the problem is not resolved.

〔課題を解決するための手段〕[Means to solve the problem]

本発明に係る動作監視装置は、上位側のウォッチドッグ
タイマの出力で下位側のプロセッサに割込をかけるよう
にしてあり、また上記ウォッチドッグタイマが出力する
異常報知信号の時間を計時する手段と、計時時間が所定
時間となった場合に両プロセッサをリセットする手段と
を設ける。
The operation monitoring device according to the present invention interrupts the processor on the lower side by the output of the watchdog timer on the upper side, and also includes means for measuring the time of the abnormality notification signal outputted by the watchdog timer. , and means for resetting both processors when the measured time reaches a predetermined time.

〔作用〕[Effect]

上位のプロセッサに異常が発生するとウォッチドッグタ
イマが出力する信号で下位のプロセッサに割込がかけら
れ下位のプロセッサに上位のプロセッサの異常が報知さ
れる。また上記信号が出力されている時間を計時し、こ
れが所定時間に達すると両プロセッサがリセットされ、
共に動作を停止する。
When an abnormality occurs in the upper processor, a signal output from the watchdog timer interrupts the lower processor, and the lower processor is notified of the abnormality in the higher processor. In addition, the time during which the above signal is output is measured, and when this reaches a predetermined time, both processors are reset.
stop working together.

〔実施例〕〔Example〕

第1図は本発明の動作監視装置のプロ、り図であり、監
視対象の第1.第2プロセッサ10.20と共に示して
いる。第1.第2プロセッサ10.20はインターフェ
ース30を介してデータ送受をし、協動的に動作するが
、第1プロセツサIOが上位、第2プロセツサ20が下
位と位置づけられている。第1 (第2)プロセッサ1
0 (20)が周期的に発するパルス信号はウォッチド
ッグタイマIH21)のリセット端子Rに直接(OR回
路22を介して)与えられる。
FIG. 1 is a detailed diagram of the operation monitoring device of the present invention, and shows the first . Shown together with a second processor 10.20. 1st. The second processors 10 and 20 transmit and receive data via the interface 30 and operate cooperatively, with the first processor IO being positioned at the upper level and the second processor 20 at the lower level. First (second) processor 1
The pulse signal periodically generated by the watchdog timer IH21) is applied directly (via the OR circuit 22) to the reset terminal R of the watchdog timer IH21).

ウォッチドッグタイマIH21)の計時完了信号又は異
常報知信号はOR回路15(23)を介して第1 (第
2)プロセッサ10(20)’のリセット端子Rへ与え
られると共に、第2 (第1)プロセッサ20(10)
の割込端子rNTへ直接与えられる。第1プロセツサ1
0は強制リセット信号を発し、こ信号はOR回路16.
22を介してウォッチドッグタイマ21のリセット端子
Rへ、またOR回路16.23を介して第2プロセツサ
20のリセット端子Rへ与えられる。
The timing completion signal or abnormality notification signal of the watchdog timer IH21) is given to the reset terminal R of the first (second) processor 10 (20)' via the OR circuit 15 (23), and Processor 20 (10)
is directly applied to the interrupt terminal rNT of the interrupt terminal rNT. 1st processor 1
0 issues a forced reset signal, and this signal is sent to the OR circuit 16.
22 to the reset terminal R of the watchdog timer 21, and via the OR circuit 16.23 to the reset terminal R of the second processor 20.

ウォッチドッグタイマ11が発する異常報知信号は該信
号の時間を計時するためのカウンタ12へ入力され、カ
ウンタ12はこれが入力されている間、クロック回路1
3が発するクロックを計時する。カウンタ12ばウォッ
チドッグタイマ11の限時よりも長い時間に相当する数
値が設定しであるブリセントカウンタであり、計数値が
この数値に達すると、即ち計時内容がこの数値に相当す
る時間に達すると計時完了信号を発する。この信号はラ
ンチ回路I4に与えられ、ラッチ回路I4はこれを保持
し、第110セ・ノサ10のリセット端子Rへ与えると
共に、OR回路16.23を介して第2プロセツサ20
のリセット端子Rに与える。
The abnormality notification signal generated by the watchdog timer 11 is input to the counter 12 for measuring the time of the signal, and while the signal is being input, the counter 12 is inputted to the clock circuit 1.
3. Measure the clock issued by 3. The counter 12 is a recent counter that is set to a value corresponding to a time longer than the time limit of the watchdog timer 11, and when the counted value reaches this value, that is, when the time measurement content reaches the time corresponding to this value, Issues a timing completion signal. This signal is given to the launch circuit I4, and the latch circuit I4 holds it and gives it to the reset terminal R of the 110th processor 10, and also sends it to the second processor 20 via the OR circuit 16.23.
is applied to the reset terminal R of.

次に以上の構成を有する本発明装置の動作を説明する。Next, the operation of the apparatus of the present invention having the above configuration will be explained.

第2図はこの装置の動作を示すフローチャートであり、
左側には第1プロセツサ10側の、また右側には第2プ
ロセツサ20側の動作を示している。
FIG. 2 is a flowchart showing the operation of this device,
The left side shows the operation of the first processor 10, and the right side shows the operation of the second processor 20.

右側のフローチャートにおいて第2プロセッサ20が正
常に動作している(S15)場合はウォッチドッグタイ
マ21は周期的にリセットされ(YES)でいるが、リ
セットされないとき(NO)はウォッチドッグタイマ2
1は異常信号を出力する(S17)。そして第1プロセ
ツサ10へ割込をかけ(518)これに異常発生を報知
し、第2プロセツサ20をリセットして再起動をかける
(519)。
In the flowchart on the right, when the second processor 20 is operating normally (S15), the watchdog timer 21 is periodically reset (YES), but when it is not reset (NO), the watchdog timer 2
1 outputs an abnormal signal (S17). Then, an interrupt is made to the first processor 10 (518) to notify it of the occurrence of an abnormality, and the second processor 20 is reset and restarted (519).

一方、第1プロセツサ10側ではこれが正常に動作して
いる(Sl)場合はウォッチドッグタイマIIは周期的
にリセットされ(YES)でいるが、リセットされない
とき(No)は、ウォッチドッグタイマ11は異常信号
を出力する(S3)。そして第2プロセツサへ割込をか
け(S4)、これに異常発生を報知し、第1プロセツサ
10をリセットして再起動をかける(S5)。一方、異
常信号でカウンタ12に計数を開始させる。再起動によ
って第1プロセツサIOの動作が正常に復するとウォッ
チドッグタイマ11はリセットされるから(S7.YE
S)ウォッチドッグタイマ11の異常信号が消滅してカ
ウンタ12が計数を停止、リセットされる(S8)。
On the other hand, on the first processor 10 side, if it is operating normally (Sl), the watchdog timer II is periodically reset (YES), but if it is not reset (No), the watchdog timer 11 is An abnormal signal is output (S3). Then, an interrupt is issued to the second processor (S4) to notify it of the occurrence of an abnormality, and the first processor 10 is reset and restarted (S5). On the other hand, an abnormal signal causes the counter 12 to start counting. When the operation of the first processor IO returns to normal due to restart, the watchdog timer 11 is reset (S7.YE).
S) The abnormal signal of the watchdog timer 11 disappears, and the counter 12 stops counting and is reset (S8).

第1プロセツサ10が再起動不可能な異常である場合は
ウォッチドッグタイマ11ばリセットされない。この場
合(S7.No)は33〜S5同様のS91〜S93の
ステップを経る。そしてカウンタ12の計数内容が所定
値に達するまでそれを反復し、所定値に達すると(S1
0)、カウンタ12は計時完了信号を発する(Sll)
。これによりラッチ回路14がセットされ(S12) 
、第1.第2プロセッサ10.20がリセットされ、共
に動作停止に至る。
If the first processor 10 is abnormal and cannot be restarted, the watchdog timer 11 will not be reset. In this case (S7.No), steps S91 to S93 similar to 33 to S5 are performed. This process is repeated until the count of the counter 12 reaches a predetermined value, and when it reaches the predetermined value (S1
0), the counter 12 issues a timing completion signal (Sll)
. This sets the latch circuit 14 (S12).
, 1st. The second processor 10.20 is reset and together come to a standstill.

なお上述の実施例では2つのプロセッサが監視対象であ
る場合について述べたが、上位及び/又は下位のプロセ
ッサが複数存在する場合も同様に構成することができる
In the above-described embodiment, the case where two processors are to be monitored has been described, but the same configuration can be applied when there are a plurality of upper and/or lower processors.

〔発明の効果〕〔Effect of the invention〕

以上の如き本発明による場合はいずれのプロセンサに異
常が発生した場合にも他方に割込をかけて異常の発生を
報知することができ、他方の異常に対応する処理が可能
となる。
According to the present invention as described above, even if an abnormality occurs in any of the processor sensors, it is possible to interrupt the other processor to notify the other processor of the abnormality, and it is possible to perform processing corresponding to the abnormality in the other sensor.

また例えば上位のプロセッサにリセット、再起動で回復
し得ない異常が生じた場合には両プロセフすをリセット
して動作停止が可能となる。
For example, if an abnormality occurs in the upper processor that cannot be recovered by resetting or restarting, both processors can be reset and stopped.

これにより他のプロセッサの異常にも拘らずいずれかの
プロセッサが動作を継続するという不都合が解消され、
高い信顛度の装置、システムが実現できる。
This eliminates the inconvenience of one processor continuing to operate despite an abnormality in another processor.
Highly reliable devices and systems can be realized.

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

第1図は本発明の動作監視装置のブロック図、第2図は
その動作を示すフローチャート、第3図は従来の動作監
視装置のブロック図である。 10・・・第1プロセツサ 11.21・・・ウォッチ
ドッグタイマ 12・・・カウンタ 14・・・ランチ
回路20・・・第2プロセツサ なお、図中、同一符号は同一、又は相当部分を示す。 代理人  大  岩  増  雄
FIG. 1 is a block diagram of an operation monitoring apparatus according to the present invention, FIG. 2 is a flowchart showing its operation, and FIG. 3 is a block diagram of a conventional operation monitoring apparatus. 10...First processor 11.21...Watchdog timer 12...Counter 14...Launch circuit 20...Second processor Note that in the drawings, the same reference numerals indicate the same or equivalent parts. Agent Masuo Oiwa

Claims (1)

【特許請求の範囲】[Claims] (1)2つのプロセッサの夫々のためにウォッチドッグ
タイマを備え、一方のプロセッサのためのウォッチドッ
グタイマが該一方のプロセッサの異常時に発する信号で
他方のプロセッサに割込をかけるようになしてあるプロ
セッサの動作監視装置において、 前記他方のプロセッサのためのウォッチドッグタイマが
該他方のプロセッサの異常時に発する信号で前記一方の
プロセッサに割込をかけるようにしてあり、また、前記
信号が発生している時間を計時する手段と、該手段が所
定時間を計時した場合に両プロセッサをリセットする手
段とを具備することを特徴とするプロセッサの動作監視
装置。
(1) A watchdog timer is provided for each of the two processors, and the watchdog timer for one processor interrupts the other processor with a signal issued when the one processor is abnormal. In the processor operation monitoring device, the watchdog timer for the other processor interrupts the one processor with a signal generated when the other processor has an abnormality, and when the signal is generated, the watchdog timer interrupts the one processor. 1. A processor operation monitoring device comprising: means for measuring a predetermined time; and means for resetting both processors when the means measures a predetermined time.
JP2258460A 1990-09-25 1990-09-25 Operation monitor for processor Pending JPH04133162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2258460A JPH04133162A (en) 1990-09-25 1990-09-25 Operation monitor for processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2258460A JPH04133162A (en) 1990-09-25 1990-09-25 Operation monitor for processor

Publications (1)

Publication Number Publication Date
JPH04133162A true JPH04133162A (en) 1992-05-07

Family

ID=17320534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2258460A Pending JPH04133162A (en) 1990-09-25 1990-09-25 Operation monitor for processor

Country Status (1)

Country Link
JP (1) JPH04133162A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019053452A (en) * 2017-09-14 2019-04-04 株式会社明電舎 Information processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019053452A (en) * 2017-09-14 2019-04-04 株式会社明電舎 Information processing device

Similar Documents

Publication Publication Date Title
JPH04133162A (en) Operation monitor for processor
JP2749994B2 (en) Numerical control unit
JPH0898278A (en) Digital control system
JPS5868166A (en) Processor fault monitoring device
JP2505057Y2 (en) Information processing device
JPS6359637A (en) Processor operation monitoring circuit
JPH03246638A (en) Program runaway detecting system
JP2725107B2 (en) Interrupt device
JPS58184667A (en) Information processing unit
JPS6015750A (en) Program running monitoring device
JPS62175836A (en) Health check system in data processing system
JPH0296840A (en) Runaway prevention circuit of central processing unit
JPS60243751A (en) Supervisory circuit of incorrect interruption in computer
JPS63141430A (en) Terminal equipment having fault detecting function
JPH01281540A (en) Fault detecting device
JPH0877113A (en) Multiprocessor system and its start method
JPS5845054B2 (en) Watchdog timer error relief method
JPH0148565B2 (en)
JPS60100235A (en) Self-diagnosing circuit
JPH0736244U (en) Abnormality detection device for arithmetic processing unit
JPS63241622A (en) Data processor
JPH03288958A (en) Fault processing unit for multiprocessor
JPH0329046A (en) Bus switching device for control system
JPS62263731A (en) Data processor
JPS58211268A (en) Multi-processor system