JPH0439698B2 - - Google Patents

Info

Publication number
JPH0439698B2
JPH0439698B2 JP59275147A JP27514784A JPH0439698B2 JP H0439698 B2 JPH0439698 B2 JP H0439698B2 JP 59275147 A JP59275147 A JP 59275147A JP 27514784 A JP27514784 A JP 27514784A JP H0439698 B2 JPH0439698 B2 JP H0439698B2
Authority
JP
Japan
Prior art keywords
processing unit
central processing
power
cpu
signal
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 - Lifetime
Application number
JP59275147A
Other languages
Japanese (ja)
Other versions
JPS61156442A (en
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 filed Critical
Priority to JP59275147A priority Critical patent/JPS61156442A/en
Publication of JPS61156442A publication Critical patent/JPS61156442A/en
Publication of JPH0439698B2 publication Critical patent/JPH0439698B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ウオツチ・ドツグ・タイマ(以下
WDTと略す)回路を備えた中央処理装置を含ん
で構成される中央処理装置の異常検出装置に関す
る。
[Detailed Description of the Invention] (Industrial Application Field) The present invention provides a watch dog timer (hereinafter referred to as
The present invention relates to an abnormality detection device for a central processing unit that includes a central processing unit equipped with a (abbreviated as WDT) circuit.

(従来の技術) WDT回路は、中央処理装置(以下CPUと略
す)の動作、即ち、プログラムの走行を監視し、
異常を検出した場合(一定時間を経過しても
WDTのクリアが行われず、タイムアツプした場
合)に、CPUにリセツトをかけ、初期化スター
トさせるものである。
(Prior art) A WDT circuit monitors the operation of a central processing unit (hereinafter referred to as CPU), that is, the running of a program.
If an abnormality is detected (even after a certain period of time has passed)
If the WDT is not cleared and a time-up occurs), the CPU is reset and initialization is started.

このような動作をなすWDT回路を有した従来
のCPUにおいては、電源の投入時においても、
CPUに異常が発生したのと同様に、CPUを含む
システム全体に初期化スタートがかけられるよう
に構成されている。
In conventional CPUs with WDT circuits that operate in this way, even when the power is turned on,
The system is configured so that the entire system, including the CPU, is initialized in the same way that an error occurs in the CPU.

(発明が解決しようとする問題点) このため、CPUを含んで構成される従来装置
においては、動作開始後、再起動がかかつた原因
が電源投入によるものなのか、WDT回路のタイ
ムアツプによるものかの認識が不可能で、WDT
回路による異常検出の回数を知ることはできなか
つた。それ故に、CPUを設置後に発生したCPU
の異常回数の履歴が残らず、システムの異常動作
の解析が行えないという問題があつた。
(Problem to be solved by the invention) For this reason, in a conventional device including a CPU, it is difficult to determine whether the cause of restarting after starting operation is due to the power being turned on or due to time-up of the WDT circuit. Impossible to recognize or WDT
It was not possible to know the number of times the circuit detected an abnormality. Therefore, the CPU that occurred after installing the CPU
There was a problem that no history of the number of abnormalities was kept, making it impossible to analyze abnormal system behavior.

本発明はこのような問題点に鑑みてなされたも
ので、その目的は、WDT回路による異常検出の
回数を計数できるようにすることによつて、
CPUを含むシステムの異常や、プログラムの不
具合等の解析を容易に行える異常検出装置を実現
することにある。
The present invention has been made in view of these problems, and its purpose is to make it possible to count the number of abnormality detections by the WDT circuit.
The object of the present invention is to realize an abnormality detection device that can easily analyze abnormalities in a system including a CPU, malfunctions in programs, etc.

(問題点を解決するための手段) 前記した問題点を解決する本発明は、 中央処理装置と、この中央処理装置及びこの中
央処理装置に結合する他の処理装置の動作を監視
し、異常が発生した場合当該各処理装置にリセツ
トをかけるウオツチ・ドツグ・タイマ回路とを備
えた装置において、 電源投入時に電源部から出力される電源投入信
号によつてリセツトされ前記中央処理装置が再起
動後にこの中央処理装置から出力される信号によ
つてセツトされるウオツチ・ドツグ・タイマ・フ
リツプフロツプを設けるとともに、 前記中央処理装置内に、 中央処理装置が再起動後に前記ウオツチ・ドツ
グ・タイマ・フリツプフロツプの状態を読み込
み、当該状態がアクテイブ状態の時にインクリメ
ントされ、インアクイブ状態のときにリセツトさ
れるウオツチ・ドツグ・タイマ・カウンタを設
け、 このウオツチ・ドツグ・タイマ・カウンタの計
数値から電源投入時よりウオツチ・ドツグ・タイ
マ回路がタイムアツプした回数を知ることができ
るようにした中央処理装置の異常検出装置であ
る。
(Means for Solving the Problems) The present invention, which solves the above-mentioned problems, monitors the operations of a central processing unit, this central processing unit, and other processing units coupled to this central processing unit, and detects abnormalities. In a device equipped with a watchdog timer circuit that resets each processing unit when a central processing unit occurs, the central processing unit is reset by a power-on signal output from the power supply section when the power is turned on, and the central processing unit is reset after restarting. A watchdog timer flip-flop is provided which is set by a signal output from the central processing unit, and the central processing unit is configured to record the state of the watchdog timer flip-flop after the central processing unit is restarted. A watchdog timer counter is provided that is read, incremented when the relevant state is active, and reset when it is inactive. This is an abnormality detection device for a central processing unit that allows you to know the number of times a timer circuit has timed up.

(実施例) 以下、図面を用いて本発明の実施例を詳細に説
明する。
(Example) Hereinafter, an example of the present invention will be described in detail using the drawings.

第1図は本発明の一実施例を示すブロツク図で
ある。図において、1はCPU、2はこのCPU1
に図示しないバスを介して結合しているその他の
処理装置、3はCPU1やその他の処理装置2に
電力を供給する電源部である。4はWDT回路、
5は本発明において特徴としているウオツチ・ド
ツグ・タイマ・フリツプ・フロツプ(以下
WDTFと略す)、6はオアゲートである。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the diagram, 1 is the CPU, 2 is this CPU1
Other processing devices 3 connected via a bus (not shown) are a power supply unit that supplies power to the CPU 1 and other processing devices 2. 4 is the WDT circuit,
5 is a watch/dog/timer/flip/flop (hereinafter referred to as
(abbreviated as WDTF), 6 is the or gate.

オアゲート6は、電源投入時に電源部3から出
力される電源投入信号と、WDT回路4から
このWDTがタイムアツプした時出力される
WDT信号とを入力しており、これら信号
と、信号とのオア出力をCPU1及びそ
の他の処理装置2の各リセツト端子に与え、
CPU1及びその他の処理装置2を再起動させる。
The OR gate 6 receives a power-on signal output from the power supply unit 3 when the power is turned on, and a power-on signal output from the WDT circuit 4 when the WDT times out.
WDT signal is input, and the OR output of these signals and the signal is given to each reset terminal of the CPU 1 and other processing devices 2,
Restart the CPU 1 and other processing devices 2.

WDTTF5は、電源部3からの電源投入信号
PONがリセツト端子RSに印加され、又、CPU1
からプログラムによつて出力される信号
(WDTF)がセツト端子STに印加されている。
従つて、このWDTF5は、電源投入時にリセツ
トされ、再起動後にCPU1によつてセツトされ
る。又、WDTF5の状態を示す出力信号WFは、
CPU1に印加され、CPU1内においてプログラ
ムから読み取ることができるようになつている。
WDTTF5 is a power-on signal from power supply section 3
PON is applied to the reset terminal RS, and CPU1
A signal (WDTF) output by the program is applied to the set terminal ST.
Therefore, this WDTF 5 is reset when the power is turned on, and is set by the CPU 1 after rebooting. In addition, the output signal WF indicating the state of WDTF5 is
It is applied to the CPU 1 and can be read from the program within the CPU 1.

ここで、CPU1内には、第2図のフローチヤ
ート内に示す、ウオツチ・ドツグ・タイマ・カウ
ンタ(WDTカウンタ)が設けられていて、
WDTF5からの状態を示す信号WFに応じて、そ
の計数値がインクリメントまたはリセツトされる
ようになつている。
Here, the CPU 1 is provided with a watchdog timer counter (WDT counter) as shown in the flowchart of FIG.
The count value is incremented or reset in accordance with the signal WF indicating the state from the WDTF5.

次にこのように構成した装置の動作を、電源投
入時の動作と、WDTタイムアツプ時の動作に分
けて説明する。
Next, the operation of the device configured as described above will be explained separately into the operation when the power is turned on and the operation when the WDT time-up occurs.

[電源投入時の動作] 電源が投入されると、電源部3から電源投入信
号が出力される。この電源投入信号
は、WDTF5をリセツト状態とすると共に、オ
アゲート6を通つて、CPU1及びその他の処理
装置2のリセツト端子に印加され、これらが再起
動される。
[Operation at power-on] When the power is turned on, a power-on signal is output from the power supply unit 3. This power-on signal resets the WDTF 5 and is applied to the reset terminals of the CPU 1 and other processing devices 2 through the OR gate 6, thereby restarting them.

CPU1が再起動されると、CPU1のプログラ
ムは初期化スタートされる。
When the CPU 1 is restarted, the program of the CPU 1 is initialized.

第2図はこのプログラムに従つて、初期化スタ
ート後、CPU1が実行する動作のフローチヤー
トである。CPU1は、はじめに、WDTF5から
の出力信号WFを読み込み、この信号WFがアク
テイブか、インアクテイブか判断する(ステツプ
1)。ここで、WDTF5は、すでに電源投入信号
PONによつてリセツト状態になつているので、
WDTF5からの出力信号WFは、インアクテイブ
となつている。このことから、CPU1は今回の
再起動が電源投入によるものであると認識し、
CPU1内に内蔵するWDTカウンタをリセツトす
る(ステツプ2)。又、CPU1からWDTF5にセ
ツト信号SFを出力し、WDTF5をセツト状態と
する(ステツプ3)。以上の処理の後、CPU1は
次の処理(ステツプ4)に移る。
FIG. 2 is a flowchart of the operations executed by the CPU 1 after initialization starts according to this program. The CPU 1 first reads the output signal WF from the WDTF 5 and determines whether this signal WF is active or inactive (step 1). Here, WDTF5 has already received the power-on signal.
Since it is in the reset state by PON,
The output signal WF from the WDTF5 is inactive. From this, CPU1 recognizes that the current reboot is due to the power being turned on, and
Reset the WDT counter built into CPU1 (step 2). Further, the CPU 1 outputs a set signal SF to the WDTF 5 to put the WDTF 5 in the set state (step 3). After the above processing, the CPU 1 moves on to the next processing (step 4).

[WDT回路がタイムアツプした時の動作] KDT回路4がタイムアツプすると、WDT回路
4は、信号を出力する。この信号は、
オアゲート6を通つて、CPU1及びその他の処
理装置2に与えられ、これらが再起動される。
CPU1が再起動されると、CPU1は初期化スタ
ートされ、電源投入時と同じ、第2図フローチヤ
ートに従つた動作を実行する。即ちCPU1は、
WDTF5からの出力信号WFを読み込み、この信
号WFがアクテイブか、インアクテイブか判断す
る(ステツプ1)。ここで、WDTF5は、前述し
た電源投入時のプログラムの処理(ステツプ3)
によつてセツト状態となつているので、WDTF
5から出力されている出力信号WFはアクテイブ
となつている。このことから、CPU1はこのス
テツプ1において、今回の再起動がWDT回路4
のタイムアツプによるものであると認識し、ステ
ツプ5に移り、ここで、CPU1内のWDTカウン
タをインクリメントする。以上の処理の後、
CPU1は次の処理に移る。
[Operation when the time-up of the WDT circuit occurs] When the time-up of the KDT circuit 4 occurs, the WDT circuit 4 outputs a signal. This signal is
The signal is given to the CPU 1 and other processing devices 2 through the OR gate 6, and these are restarted.
When the CPU 1 is restarted, the CPU 1 is initialized and performs the same operation as when the power is turned on, according to the flowchart in FIG. 2. That is, CPU1 is
The output signal WF from the WDTF 5 is read and it is determined whether this signal WF is active or inactive (step 1). Here, WDTF5 processes the program at power-on (step 3) as described above.
Since it is in the set state by
The output signal WF output from 5 is active. From this, in this step 1, CPU 1 understands that the current restart is WDT circuit 4.
Recognizing that this is due to time-up, the process moves to step 5, where the WDT counter in the CPU 1 is incremented. After the above processing,
CPU1 moves on to the next process.

このような動作によつて、CPU1は、内蔵す
るWDTカウンタの計数値から、電源投入時より
WDT回路がタイムアツプした回数を知ることが
できる。
Due to this operation, CPU1 calculates the count value of the built-in WDT counter from when the power is turned on.
You can know the number of times the WDT circuit times up.

(発明の効果) 以上説明したように、本発明によれば、WDT
回路による異常検出の回数を計数できるので、
WDTカウンタの計数値からシステムの故障やプ
ログラムの不具合等の障害の解析を容易に行うこ
とができる。本発明は、CPU設置後に発生する
再現性の低い異常解析を行うような場合に好適で
ある。
(Effect of the invention) As explained above, according to the present invention, WDT
The number of abnormality detections by the circuit can be counted, so
Failures such as system failures and program malfunctions can be easily analyzed from the count value of the WDT counter. The present invention is suitable for analyzing abnormalities with low reproducibility that occur after installing a CPU.

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

第1図は本発明の一実施例を示すブロツク図、
第2図はその動作の一例を示すフローチヤートで
ある。 1…CPU、2…その他の処理装置、3…電源
部、4…WDT回路、5…WDTF、6…ゲート。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a flowchart showing an example of the operation. 1...CPU, 2...Other processing devices, 3...Power supply unit, 4...WDT circuit, 5...WDTF, 6...Gate.

Claims (1)

【特許請求の範囲】 1 中央処理装置と、この中央処理装置及びこの
中央処理装置に結合する他の処理装置の動作を監
視し、異常が発生した場合当該各処理装置にリセ
ツトをかけるウオツチ・ドツグ・タイマ回路とを
備えた装置において、 電源投入時に電源部から出力される電源投入信
号によつてリセツトされ前記中央処理装置が再起
動後にこの中央処理装置からの信号によつてセツ
トされるウオツチ・ドツグ・タイマ・フリツプフ
ロツプを設けるとともに、 前記中央処理装置内に、 中央処理装置が再起動後に前記ウオツチ・ドツ
グ・タイマ・フリツプフロツプの状態を読み込
み、当該状態がアクテイブ状態の時にインクリメ
ントされ、インアクイブ状態のときにリセツトさ
れるウオツチ・ドツグ・タイマ・カウンタを設
け、 このウオツチ・ドツグ・タイマ・カウンタの計
数値から電源投入時よりウオツチ・ドツグ・タイ
マ回路がタイムアツプした回数を知ることができ
るようにした中央処理装置の異常検出装置。
[Scope of Claims] 1. A watchdog that monitors the operation of a central processing unit, this central processing unit, and other processing units coupled to this central processing unit, and resets each processing unit when an abnormality occurs. - In a device equipped with a timer circuit, a watch that is reset by a power-on signal output from the power supply unit when the power is turned on, and is set by a signal from the central processing unit after the central processing unit is restarted. A dog timer flip-flop is provided, and the central processing unit reads the state of the watch dog timer flip-flop after the central processing unit is restarted, is incremented when the state is active, and is incremented when the state is inactive. A central processing unit is equipped with a watchdog timer counter that is reset when the watchdog timer is turned on, and the number of times the watchdog timer circuit has timed up since the power was turned on can be determined from the counted value of the watchdog timer counter. Equipment abnormality detection device.
JP59275147A 1984-12-28 1984-12-28 Abnormality detecting device of central processing device Granted JPS61156442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59275147A JPS61156442A (en) 1984-12-28 1984-12-28 Abnormality detecting device of central processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59275147A JPS61156442A (en) 1984-12-28 1984-12-28 Abnormality detecting device of central processing device

Publications (2)

Publication Number Publication Date
JPS61156442A JPS61156442A (en) 1986-07-16
JPH0439698B2 true JPH0439698B2 (en) 1992-06-30

Family

ID=17551333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59275147A Granted JPS61156442A (en) 1984-12-28 1984-12-28 Abnormality detecting device of central processing device

Country Status (1)

Country Link
JP (1) JPS61156442A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011022833A (en) * 2009-07-16 2011-02-03 Toshiba Tec Corp Information processor

Also Published As

Publication number Publication date
JPS61156442A (en) 1986-07-16

Similar Documents

Publication Publication Date Title
US6112320A (en) Computer watchdog timer
US20120131384A1 (en) Computer system
US7721083B2 (en) CPU runaway determination circuit and CPU runaway determination method
US6321289B1 (en) Apparatus for automatically notifying operating system level applications of the occurrence of system management events
JPH0439698B2 (en)
JPS6129239A (en) Processor fault restart system
JP2659067B2 (en) Microcomputer reset circuit
KR0154705B1 (en) System hindrance diagnosis and restoration device and method thereof
JPS622685Y2 (en)
JPS626265B2 (en)
KR0147894B1 (en) Error debugging circuit and method of microcomputer
JP3035937B2 (en) Multifunctional telephone
KR0155045B1 (en) Watch dog timmer of self-service guard system
CN114637547A (en) Driving method of universal server and universal server
JPS6298435A (en) Defecting method for abnormality of computer
KR920008354Y1 (en) Watch-dog circuit
JPH04182842A (en) Timer monitor system
JPH04148246A (en) Watchdog timer
JPH0573360A (en) Watchdog timer
CN117439870A (en) System recovery method of Internet of things terminal of heterogeneous loose coupling architecture
JPH03152637A (en) Abnormality diagnostic system
JPH09237205A (en) Program runaway detection device
JPS62245340A (en) Detection of abnormality for electronic controller
JPS61241848A (en) Fault detecting circuit for electronic computer
JPS63123138A (en) Detection circuit for out-of-control of microcomputer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees