[go: up one dir, main page]

JPS62123531A - Cpu supervisory unit - Google Patents

Cpu supervisory unit

Info

Publication number
JPS62123531A
JPS62123531A JP60264197A JP26419785A JPS62123531A JP S62123531 A JPS62123531 A JP S62123531A JP 60264197 A JP60264197 A JP 60264197A JP 26419785 A JP26419785 A JP 26419785A JP S62123531 A JPS62123531 A JP S62123531A
Authority
JP
Japan
Prior art keywords
cpu
timer
watchdog timer
clock
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
JP60264197A
Other languages
Japanese (ja)
Inventor
Nagahiro Fukunaga
福永 長弘
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP60264197A priority Critical patent/JPS62123531A/en
Publication of JPS62123531A publication Critical patent/JPS62123531A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To recognize immediately the interruption of the clocks for actuation of a watchdog timer by using a timer for monitor of a watchdog timer which is reset by the clocks for actuation of the watchdog timer. CONSTITUTION:A timer 8 for monitor of watchdog timer is actuated by a system clock 7 for control of peripheral device obtained from a CPU 3 and then reset by a clock 5 for actuation of a watchdog timer. Then the time-up signal of the timer 8 is used as a trouble signal for watchdog timer. Thus the timer 8 is never reset in case a watchdog timer circuit 2 has a trouble owing to the interruption of the clock 5 that is caused by some abnormality of the CPU 3. Then the timer 8 has a time-up state and produces the trouble signal of the circuit 2. Thus it is possible to detect completely not only the abnormality of the CPU 3 but the abnormality of the circuit 2 itself. Then a measure is possible as desired.

Description

【発明の詳細な説明】 (発明の分野) この発明は、CPUのハードウェア故障等に起因する異
常動作を監視する装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a device for monitoring abnormal operation caused by a hardware failure or the like of a CPU.

(発明の概要) この発明では、CPUの動作異常を監視するつlツチド
グタイマを備えたCPU監視装置において、ウオッチド
グタイマ自体の故障をも監視できるようにしたものでお
る。
(Summary of the Invention) The present invention provides a CPU monitoring device equipped with a watchdog timer for monitoring abnormalities in the operation of the CPU, which is also capable of monitoring failures in the watchdog timer itself.

(従来技術とその問題点) 第2図に、従来のCPU監視装置の一例を示す。(Prior art and its problems) FIG. 2 shows an example of a conventional CPU monitoring device.

同図において、1はクロック発生回路、2はウオッチド
グタイマ回路、3はCPU、4はウオッチドグタイマ回
路2をリセツl〜するコントロールボートである。
In the figure, 1 is a clock generation circuit, 2 is a watchdog timer circuit, 3 is a CPU, and 4 is a control board for resetting the watchdog timer circuit 2.

クロック回路1からは、2系銃のクロック5゜6が出力
される。これらのクロック5,6は豆いに独立構成にな
っていて、一方が途切れたとしても、これと同時に他方
が途切れることがないように配慮されている。
The clock circuit 1 outputs a clock 5°6 for the 2nd series gun. These clocks 5 and 6 are extremely independent so that even if one clock is interrupted, the other clock will not be interrupted at the same time.

CPU3のプログラム中には、コントロールボート4を
介してウオッチドグタイマ回路2をリセットすべきリセ
ット命令が挿入されている。
A reset command for resetting the watchdog timer circuit 2 via the control board 4 is inserted into the program of the CPU 3.

従って、CPU3がハードウェア的に正常であれば、ク
ロック5で動作するつtツチドグタイマ回路は、タイム
アツプ以前に必ずコントロールボート4を介してリセッ
トされるため、CPU動作異常信号が発せられることは
ない。
Therefore, if the CPU 3 is normal in terms of hardware, the dog timer circuit that operates with the clock 5 is always reset via the control board 4 before time-up, so that no CPU operation abnormality signal is generated.

これに対して、CPU3が例えばハードウェア的に故障
すると、ウオッチドグタイマ回路2に対してリセットが
かからなくなり、一定時間が経つとウオッチドグタイマ
回路2がタイムアツプして、CPU動作異常信号が発せ
られる。
On the other hand, if the CPU 3 has a hardware failure, for example, the watchdog timer circuit 2 will not be reset, and after a certain period of time, the watchdog timer circuit 2 will time out and issue a CPU malfunction signal. It will be done.

なお、クロック5の周波数は例えば250KH2,クロ
ック6の周波数は4MH2程度に設定される。
Note that the frequency of the clock 5 is set to, for example, 250KH2, and the frequency of the clock 6 is set to about 4MH2.

しかし、このようなCPU監視装置にあっては、CPU
a側のハードウェア的な異常に対しては有効に機能する
が、ウオッチドグタイマ回路2を動作すべきクロツク5
自体が途絶えたような場合には、何等有効に機能し得な
いという問題がある。
However, in such a CPU monitoring device, the CPU
Although it functions effectively against hardware abnormalities on the a side, the clock 5 that should operate the watchdog timer circuit 2
There is a problem that if the system itself is interrupted, it cannot function effectively at all.

(発明の目的) この発明の目的は、この種のCPU監視装置に・おいて
、ウオッチドグタイマ回路2を動作すべきクロック5が
途絶えたような場合にも、これを直ちに認識可能とする
ことにある。
(Objective of the Invention) The object of the invention is to enable a CPU monitoring device of this type to immediately recognize when the clock 5 for operating the watchdog timer circuit 2 is interrupted. It is in.

(発明の構成と効果) この発明は上記の目的を達成するために、CPUから独
立したクロックで動作し、かつCPUのプログラム中に
挿入されたリセット命令でリセットされるつlツチドグ
タイマと、 CPUから得られる周辺機器制御用のシステムクロック
で動作し、かつウオッチドグタイマ作動用のクロックで
リセットされるウオッチドグタイマ監視用のタイマと、 を具備することを特徴とするものである。
(Structure and Effects of the Invention) In order to achieve the above object, the present invention provides a clock timer that operates with a clock independent of the CPU and is reset by a reset instruction inserted into the program of the CPU; The present invention is characterized by comprising: a timer for monitoring a watchdog timer that operates with the obtained system clock for controlling peripheral devices and is reset with a clock for operating the watchdog timer.

このような構成によれば、CPUが動作異常を起こした
場合のみならず、ウオッチドグタイマの故障までも確実
に検出することができ、これに基づきCPUの動作を停
止するなどの必要な処置を直ちにとることができる。
With such a configuration, it is possible to reliably detect not only when the CPU malfunctions but also when the watchdog timer malfunctions, and based on this, necessary measures such as stopping the CPU operation can be taken. Can be taken immediately.

また、CPUから得られる周辺機器制御用のシステムク
ロックを利用しているため、別途ハードウェア的に大幅
な変更を伴うことなく、この種監視装置の性能を向上さ
せることができる。
Furthermore, since the system clock for peripheral device control obtained from the CPU is used, the performance of this type of monitoring device can be improved without requiring any major changes in hardware.

(実施例の説明) 第1図は本発明実施例装置の電気的な構成を示すブロッ
ク図でめる。なお、同図において前記従来例と同一構成
部分については同符号を付して説明は省略する。
(Description of Embodiments) FIG. 1 is a block diagram showing the electrical configuration of an apparatus according to an embodiment of the present invention. In addition, in the figure, the same reference numerals are given to the same components as those of the conventional example, and the description thereof will be omitted.

同図に示す如く、本発明に係るCPU監視装置の特徴は
、CPU3から得られる周辺機器制御用のシステムクロ
ック7で動作し、かつウオッチドグタイマ動作用のクロ
ック5でリセットされるウオッチドグタイマ監視用のタ
イマ8を設け、このタイマのタイムアツプ信号をウオッ
チドグタイマ故障信号とするようにしたことにある。
As shown in the figure, the feature of the CPU monitoring device according to the present invention is that it operates with a system clock 7 for controlling peripheral devices obtained from the CPU 3, and monitors a watchdog timer that is reset with a clock 5 for operating the watchdog timer. A timer 8 is provided for this purpose, and the time-up signal of this timer is used as a watchdog timer failure signal.

なお、この例では、ウオッチドグタイマ監視用タイマ8
のリセット入力Re5etの手前に双方向微分回路9を
介挿し、クロック5が“H″またはL″の何れで途絶え
た場合にも、ウオッチドグタイマ監視用タイマ8が再起
動されるように配慮した。なお、Re5etは゛シ″で
リセットされる端子であり、双方向微分回路9からは“
′シ″パルスが出力されるものとする。
Note that in this example, the watchdog timer monitoring timer 8
A bidirectional differentiator circuit 9 is inserted before the reset input Re5et, so that the watchdog timer monitoring timer 8 is restarted even if the clock 5 is interrupted at either "H" or "L". .In addition, Re5et is a terminal that is reset by "", and from the bidirectional differentiator circuit 9 "
It is assumed that a 'shi' pulse is output.

また、CPU3を構成するマイクロプロセッサとしては
、例えばモトローラ6809を使用し、またクロック6
としてはEXTALを、システムクロック7としてはE
を用いればよい。
Further, as a microprocessor constituting the CPU 3, for example, a Motorola 6809 is used, and a clock 6809 is used.
EXTAL as system clock 7, and E as system clock 7.
You can use

以上の構成によれば、CPU3が正常である限り、ウオ
ッチドグタイマ回路2は定期的にリセットされるため、
CPU動作異常信号は発せられることはない。
According to the above configuration, as long as the CPU 3 is normal, the watchdog timer circuit 2 is reset periodically.
A CPU operation abnormality signal is never issued.

これに対して、CPU3に何らかの異常が生じて、ウオ
ッチドグタイマ回路2かリセットされなくなると、つA
ツチドグタイマ回路2がタイムアツプしてCPU動作異
常信号が発せられる。
On the other hand, if some abnormality occurs in the CPU 3 and the watchdog timer circuit 2 is not reset, then
When the timer circuit 2 times out, a CPU operation abnormality signal is generated.

このCPU動作異常信号は、通常CPU3のリセット入
力に供給され、これによりCPU3の動作が停止する。
This CPU operation abnormality signal is normally supplied to the reset input of the CPU 3, thereby stopping the operation of the CPU 3.

次に、本発明要部の動作であるが、微分回路9からはク
ロック5の立ち上がりエツジ、立ち下がりエツジの双方
に応答して微小幅゛′ビ′パルスが供給され、このパル
スに応答してつAブチドグタイマ監視用タイマ8は繰り
返しリセットされる。
Next, regarding the operation of the main part of the present invention, the differential circuit 9 supplies a very small width ``bi'' pulse in response to both the rising edge and the falling edge of the clock 5. The timer 8 for monitoring the A spot dog timer is repeatedly reset.

このため、クロック5が途絶えたことでウオッチドグタ
イマ回路2が故障すると、つ丼ツチドグタイマ監視用タ
イマ8にリセットがかからなくなリ、これがタイムアツ
プしてウオッチドグタイマ故障信号が発せられる。
Therefore, if the watchdog timer circuit 2 breaks down due to interruption of the clock 5, the continuous dog timer monitoring timer 8 is no longer reset, and when it times up, a watchdog timer failure signal is generated.

この場合には、例えばウオッチドグタイマ故障信号でC
PU3に割込をかけ、適宜な故障対策をとることができ
る。
In this case, for example, the watchdog timer failure signal
It is possible to interrupt the PU3 and take appropriate troubleshooting measures.

このように、この実施例では、CPU3に異常が生じた
場合のみならず、cpu@監視するウオッチドグタイマ
回路自体に生じた異常までをも確実に検出し、これに基
づきCPU3に対して必要な措置をただちにとらせるこ
とができる。
In this way, in this embodiment, not only an abnormality occurs in the CPU 3, but also an abnormality occurring in the watchdog timer circuit itself that monitors CPU@ is reliably detected, and based on this, necessary information for the CPU 3 is detected. Measures can be taken immediately.

また、そのための構成としては、従来CPUで使用され
ているシステムクロックを利用し、これに別途タイマを
追加するだけで済み、大幅なコストアップを来たすこと
がない。
Moreover, the configuration for this purpose uses the system clock conventionally used in the CPU and only requires adding a separate timer to it, without causing a significant increase in cost.

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

第1図は本発明に係るCPU監視装置の電気的な構成を
示すブロック図、第2図は同従来装置の構成を示すブロ
ック図である。 1・・・クロック回路 2・・・ウオッチドグタイマ回路 3・・・CPU 4・・・コントロールポート 5・・・ウオッチドグタイマ動作用クロック6・・・C
PU動作用クロック 7・・・システムクロック 8/・・ウオッチドグタイマ監視用タイマ9・・・双方
向微分回路
FIG. 1 is a block diagram showing the electrical configuration of a CPU monitoring device according to the present invention, and FIG. 2 is a block diagram showing the configuration of the conventional device. 1...Clock circuit 2...Watchdog timer circuit 3...CPU 4...Control port 5...Watchdog timer operation clock 6...C
PU operation clock 7...System clock 8/...Watchdog timer monitoring timer 9...Bidirectional differentiation circuit

Claims (1)

【特許請求の範囲】[Claims] (1)CPUから独立したクロックで動作し、かつCP
Uのプログラム中に挿入されたリセット命令でリセット
されるウォッチドグタイマと、CPUから得られる周辺
機器制御用のシステムクロックで動作し、かつウォッチ
ドグタイマ作動用のクロックでリセットされるウォッチ
ドグタイマ監視用のタイマと、 を具備することを特徴とするCPU監視装置。
(1) Operates with a clock independent of the CPU, and
A watchdog timer that is reset by a reset instruction inserted into the U program, and a watchdog timer that operates using the system clock for controlling peripheral devices obtained from the CPU and that is reset by the clock for operating the watchdog timer. A CPU monitoring device characterized by comprising: a timer for use in the computer;
JP60264197A 1985-11-25 1985-11-25 Cpu supervisory unit Pending JPS62123531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60264197A JPS62123531A (en) 1985-11-25 1985-11-25 Cpu supervisory unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60264197A JPS62123531A (en) 1985-11-25 1985-11-25 Cpu supervisory unit

Publications (1)

Publication Number Publication Date
JPS62123531A true JPS62123531A (en) 1987-06-04

Family

ID=17399829

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60264197A Pending JPS62123531A (en) 1985-11-25 1985-11-25 Cpu supervisory unit

Country Status (1)

Country Link
JP (1) JPS62123531A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0292539U (en) * 1988-12-28 1990-07-23
JP2013012219A (en) * 2012-08-27 2013-01-17 Nsk Ltd In-vehicle electronic control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0292539U (en) * 1988-12-28 1990-07-23
JP2013012219A (en) * 2012-08-27 2013-01-17 Nsk Ltd In-vehicle electronic control device

Similar Documents

Publication Publication Date Title
US6112320A (en) Computer watchdog timer
US5638510A (en) Multiplexed system with watch dog timers
JPS5868163A (en) System failure detection method
JPS62123531A (en) Cpu supervisory unit
JPS61112534A (en) Control system of power supply
JPH01245322A (en) Power failure control circuit for microprocessor
JPH05233374A (en) Watchdog timer device
JP2744113B2 (en) Computer system
TWM556046U (en) Network switching control system
JP2749994B2 (en) Numerical control unit
JPS5854470A (en) Controlling system for constitution of multiple electronic computer
JPS61169036A (en) System supervisory device
JPS6388660A (en) Microprocessor system
JPS62256162A (en) Duplex computer system switching control device
JP2725107B2 (en) Interrupt device
JPS5822469A (en) Central monitoring controller
JPH03222020A (en) Reset system for multi-micro processor system
JPH10220849A (en) Control system for air conditioning apparatus
JPH022412A (en) Control system
JPS6330660B2 (en)
JPS61145617A (en) Power supply disconnection circuit
JPH03257638A (en) Multiprocessor control system
JPH04305724A (en) Instantaneous service interruption detector
JPH0786793B2 (en) Computer system automatic power-off device
JPH01248218A (en) Power source turning-on device