JPS5924460B2 - Central processing unit restart device - Google Patents

Central processing unit restart device

Info

Publication number
JPS5924460B2
JPS5924460B2 JP55109006A JP10900680A JPS5924460B2 JP S5924460 B2 JPS5924460 B2 JP S5924460B2 JP 55109006 A JP55109006 A JP 55109006A JP 10900680 A JP10900680 A JP 10900680A JP S5924460 B2 JPS5924460 B2 JP S5924460B2
Authority
JP
Japan
Prior art keywords
timer
signal
output
time
cpu
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
Application number
JP55109006A
Other languages
Japanese (ja)
Other versions
JPS5734225A (en
Inventor
誠 皆川
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.)
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Electric Manufacturing Co 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 Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Electric Manufacturing Co Ltd
Priority to JP55109006A priority Critical patent/JPS5924460B2/en
Publication of JPS5734225A publication Critical patent/JPS5734225A/en
Publication of JPS5924460B2 publication Critical patent/JPS5924460B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means

Description

【発明の詳細な説明】 本発明は中央演算処理装置(以下Cpuと略称する)の
再起動において、ウオツチードツグ・タイマ(以下WD
Tと略称する)から出力するCpuこ異常信号を外部雑
音によるものと、Cpu自身による異常とを区別する再
起動装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention uses a watchdog timer (hereinafter referred to as WD) when restarting a central processing unit (hereinafter referred to as CPU).
This invention relates to a restart device that distinguishes between an abnormality signal output from a CPU (abbreviated as T) caused by external noise and an abnormality caused by the CPU itself.

従来、CpU異常の検出方法として、WDTを用いて検
出する方法がとられていた。
Conventionally, as a method for detecting a CpU abnormality, a method using WDT has been used.

この方法を こ第1図から第3図を用いて説明する。第
1図においてCPUIよりある一定時間T2毎に、WD
T2へリセット信号を出力すムWDT2は常にタイマが
働いておわ、このタイマはリセット信号が入力される都
度リセットされ、WDT2に設定している時間T1以内
にリセット信号が入力されない場合はCPU異常として
外部に異常信号を出力し、システムダウンとしていた。
This method will be explained using FIGS. 1 to 3. In FIG. 1, the WD is
WDT2, which outputs a reset signal to T2, has a timer that is always working.This timer is reset each time a reset signal is input, and if the reset signal is not input within time T1 set to WDT2, a CPU error occurs. As a result, an abnormal signal was output to the outside, causing the system to go down.

第2図にこのタイミングの関係を示す。FIG. 2 shows this timing relationship.

AはCPUIからWDT2VC時間T2毎にリセット信
号を出力するタイミングを示し、BはWDT2のJ タ
イマを示し時間T1を設定している。このタイマ時間T
1は時間T2より長いものを設定する。CPUIからW
DT2に時間T2毎にリセット信号を出力し、WDT2
のタイマをリセットしているが、何かの原因でリセット
信号が出力しなかつた場合、最後のリセット信号を出力
した時間を、oよサー定時間T1後に異常信号を出力す
る。CPUIよVWDT2に出力するのは第3図に示す
ように、プログラムの途中にWDT2をリセットするプ
ログラムを組み込み、このプログラムをある一定時間T
2毎にサイクリツクに起動することにより行うことがで
きる。CPUIが正常に動作をすればこのプログラムも
正常に動作をして、WDT2にある一定時間毎にリセッ
ト信号を出力するが、何かの原因でこのプログラムが走
らなかつた場合、前述のようにWDT2から異常信号を
出力してシステムダウンとなる。この原因としてCPU
自身の故障あるいは装置の故障によるものと、外部雑音
例えば一次電源ラインからのノイズや信号ラインのノイ
ズ等があわ、これらのノイズによV)CPUが誤動作を
するものとの二通クの原因が考えられ、従来これら原因
のいずれであつてもシステムダウンとなV)この原因の
区別が即座につかず、復旧に多大の労力を費やしていた
。CPU自身あるいは装置の故障の場合は、人間が介入
して修復しなければならないが、外部雑音の場合ぱCP
Uや装置の故障ではないので、すぐにシステムを立上が
らせても問題はなく、外部雑音の度にシステム全体の機
能が停止することは好ましくない。本発明は上記事情に
鑑みなされたものでその目的とするところは、WDTよ
り出力するCPU異常信号をCPU本体の故障によるも
のと、外部雑音によるものとを区別するCPUの再起動
装置を提供しようというものである。
A indicates the timing at which a reset signal is output from the CPUI every WDT2VC time T2, and B indicates the J timer of the WDT2, which sets the time T1. This timer time T
1 is set longer than time T2. W from CPUUI
A reset signal is output to DT2 every time T2, and WDT2
However, if the reset signal is not output for some reason, an abnormality signal is output after a fixed time T1, which is the time when the last reset signal was output. As shown in Figure 3, the CPU outputs data to the VWDT2 by incorporating a program to reset the WDT2 in the middle of the program, and then running this program for a certain period of time T.
This can be done by cyclically starting every 2 seconds. If the CPUI operates normally, this program will also operate normally and output a reset signal to WDT2 at certain fixed time intervals, but if this program does not run for some reason, WDT2 will will output an abnormal signal and the system will go down. The cause of this is the CPU
There are two causes for the CPU malfunction: one is due to its own failure or a failure of the equipment, and the other is external noise such as noise from the primary power line or signal line noise, and these noises cause the CPU to malfunction. Conventionally, any of these causes would result in a system down.V) It was not immediately possible to distinguish between these causes, and a great deal of effort was expended on recovery. In the case of a failure of the CPU itself or equipment, humans must intervene to repair it, but in the case of external noise, the CPU
Since this is not a failure of the U or the device, there is no problem in starting up the system immediately, but it is not desirable for the entire system to stop functioning every time there is external noise. The present invention has been made in view of the above circumstances, and its purpose is to provide a CPU restart device that distinguishes between a CPU abnormality signal output from a WDT that is due to a failure of the CPU main body, and one that is due to external noise. That is what it is.

本発明を第4図,第5図に基づき詳述する。The present invention will be explained in detail based on FIGS. 4 and 5.

第4図は第1図の構成のものに点線で囲んである再起動
回路3を付力Dし、CPUlとWDT2とともにループ
状に構成したものである。再起動回路3にお一いて、第
1のタイマ部31はWDT2よね入力するCpU異常信
号を他制御装置(図示省略)に認識させるための時間T
Aを設定したものであり、また第2のタイマ部32はり
スタート出力部33が再起動信号をCPUlに出力後、
タイマが働き再度CPU異常信号がくるまでの予測時間
TBを設定したものである。論理積回路ANDはタイマ
部31の出力信号とタイマ部32の出力信号との論理積
によジ、この結果をりスタート出力部33に出力する。
以上のように構成されたものに訃いて、次に動作を説明
する。
In FIG. 4, the restart circuit 3 enclosed by a dotted line in the configuration shown in FIG. 1 is given a power D, and is configured in a loop together with the CPU1 and the WDT2. In the restart circuit 3, the first timer section 31 sets a time T for making other control devices (not shown) recognize the CpU abnormal signal inputted to the WDT 2.
A is set, and after the second timer section 32 and start output section 33 output a restart signal to the CPU1,
The predicted time TB until the timer operates and the CPU abnormality signal comes again is set. The logical product circuit AND performs a logical product of the output signal of the timer section 31 and the output signal of the timer section 32, and outputs the result to the start output section 33.
The operation of the device constructed as described above will be explained next.

CPUlよりりセツト信号を通信線10を通してある一
定時間毎にWDT2へ出力する。
The CPU 1 outputs a set signal to the WDT 2 through the communication line 10 at certain fixed time intervals.

WDT2は入力したりセツト信号よV)WDT2のタイ
マをりセツトする。WDT2のタイマに設定している時
間T1以内に、CPUlよりのりセツト信号が入力しな
い場合、WDT2よりCPU異常信号を通信機11を通
してタイマ部31に出力するとともに、通信線11より
分岐した通信線12を通して他制御装置(図示省略)に
出力する。タイマ部31で他制御装置がCpUの異常を
認識した時間TAが過ぎると通信線13を・mして論理
積回路ANDに0N信号を出力する。タイマ部32はタ
イマが動作をしていないので、通信線17を通して0F
F信号を反転して論理積回路ANDに出力する。論理積
回路ANDばON″″,゛ON゛が入力するため0N信
号をりスタート出力部33に出力する。該出力部33で
再起動信号を通信線15を通してCPUlに出力しCP
Ulを再起動する。また再起動信号は通信線15より分
岐した通信線16を通してタイマ部32に出力しタイマ
を始動する。再起動したCPUlは正常であるならば、
他制御装置にCpUが正常であることを認識させてシス
テムが正常に稼動するがCPUlが異常の場合、WDT
2が働き、WDT2よl)CPU異常信号を出力して、
前述のように論理積回路ANDに0N信号を出力する。
この0N信号がタイマ部32に設定した時間TB以内に
論理積回路ANDに入力するとタイマ部32から0N信
号を反転して該回路ANDに出力する。該回路ANDは
、゛ON″″,゛OFF゛″が入力することとなり、0
FF信号をりスタート出力部33に出力する。該出力部
33は0FF信号が入力するため再起動信号を出力しな
い。このタイミングを第5図に示す。第5図!/(1訃
いて、イはWDT2の異常信号,口はタイマ部31のタ
イマ時間,ハはタイマ部32のタイマ時間,二はりスタ
ート出力部33の出力信号を夫々示している。
WDT2 receives an input or set signal (V) to reset the timer of WDT2. If the reset signal is not input from the CPU1 within the time T1 set in the timer of the WDT2, the WDT2 outputs a CPU abnormality signal to the timer section 31 through the communication device 11, and also outputs a CPU abnormal signal to the timer section 31 via the communication device 11, and also outputs the CPU abnormal signal to the timer unit 31 via the communication line 11. It outputs to other control devices (not shown) through. When the time TA at which the other control device recognizes the abnormality of the CPU has passed, the timer section 31 connects the communication line 13 to output an ON signal to the AND circuit AND. Since the timer section 32 is not operating, the timer section 32 is connected to 0F through the communication line 17.
The F signal is inverted and output to the AND circuit AND. Since the AND circuit AND circuit receives ON'''' and ``ON'', it outputs an 0N signal to the start output section 33. The output unit 33 outputs a restart signal to the CPU1 through the communication line 15, and
Restart Ul. Further, the restart signal is output to the timer unit 32 through the communication line 16 branched from the communication line 15 to start the timer. If the restarted CPU is normal,
If other control devices recognize that CPU is normal and the system operates normally, but CPUl is abnormal, WDT
2 works, WDT2 outputs a CPU error signal,
As described above, the ON signal is output to the AND circuit AND.
When this 0N signal is input to the AND circuit AND within the time TB set in the timer section 32, the 0N signal is inverted from the timer section 32 and output to the circuit AND. The circuit AND has "ON"" and "OFF" input, and is 0.
The FF signal is output to the start output section 33. Since the output section 33 receives the 0FF signal, it does not output a restart signal. This timing is shown in FIG. Figure 5! /(1) A indicates the abnormal signal of the WDT 2, C indicates the timer time of the timer section 31, C indicates the timer time of the timer section 32, and 2 indicates the output signal of the start output section 33, respectively.

CPUlの異常によりイに示すように時刻T,でWDT
2より異常信号を出力すると、口に示すようにタイマ部
31のタイマが始動し時間TAが過ぎた時刻T2で0N
信号を論理積回路ANDに出力する。このときハに示す
ように時刻T2ではタイマ部32のタイマは働いてふ・
らず、OFF信号を回路ANDに印加する。回路AND
よV)0N信号がりスタート出力部33に印加されると
、二に示すようにりスタート出力部33はパルスを出力
し、パルスの立上がり時刻T2よV)CPUは復帰し立
ち下がり時刻T3よりタイマ部32のタイマが始動する
。また時刻T4でイに示すように異常信号が出力した後
、口に示すようにタイマ部31のタイマが働き時刻T5
で0N信号を論理回路ANDに出力する。この時ハに示
すようにタイマ部32のタイマが時間TB以内で働いて
いるため0N信号を該回路ANDに出力し、結果的にり
スタート出力部33に0FF信号を印加し、該出力部3
3は出力信号を出力しないためCPUlは再起動されな
い。このように本発明によれば、従来のWDTを用いた
装置に再起動回路3を設けることによV)CPU自身の
故障と外部雑音による故障との区別ができ、外部雑音に
よるシステムダウンがなくなるとともに、システムを復
旧させるために要する無駄な労力もなくなりシヌテムが
安定する等の優れた利点を有するものである。
Due to an abnormality in the CPU1, the WDT is disabled at time T, as shown in A.
When an abnormal signal is output from 2, the timer of the timer section 31 starts as shown in the figure, and turns 0N at time T2 when time TA has passed.
The signal is output to the AND circuit AND. At this time, as shown in c, the timer of the timer section 32 is activated at time T2.
Instead, an OFF signal is applied to the circuit AND. circuit AND
When the 0N signal is applied to the start output section 33, the start output section 33 outputs a pulse as shown in Figure 2, and the CPU returns to normal operation at the rising time T2 of the pulse, and starts the timer from the falling time T3. A timer in section 32 is started. Further, after an abnormal signal is output as shown in A at time T4, the timer of the timer section 31 is activated as shown in FIG.
outputs the 0N signal to the logic circuit AND. At this time, as shown in C, since the timer of the timer section 32 is working within the time TB, an 0N signal is output to the circuit AND, and as a result, an 0FF signal is applied to the start output section 33, and the output section 3
Since CPU 3 does not output an output signal, CPU1 is not restarted. As described above, according to the present invention, by providing the restart circuit 3 in a device using a conventional WDT, it is possible to distinguish between failures of the CPU itself and failures caused by external noise, eliminating system downtime caused by external noise. In addition, it has excellent advantages such as eliminating unnecessary effort required to restore the system and stabilizing the system.

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

第1図は従来のWDTを用いた構成図、第2図、第3図
はWDTを説明するためのタイムチヤート図とフローチ
ヤート図、第4図は本発明の一実施例を示した構成図、
第5図は第4図のタイミングを示したタイムチヤート図
である。 1はCPU、2はWDT、3は再起動処理回路、31、
32はタイマ部、33はリスタート出力部。
Fig. 1 is a block diagram using a conventional WDT, Figs. 2 and 3 are time charts and flow charts for explaining the WDT, and Fig. 4 is a block diagram showing an embodiment of the present invention. ,
FIG. 5 is a time chart showing the timing of FIG. 4. 1 is a CPU, 2 is a WDT, 3 is a restart processing circuit, 31,
32 is a timer section, and 33 is a restart output section.

Claims (1)

【特許請求の範囲】[Claims] 1 中央演算処理装置の故障をウォッチ・ドツグ・タイ
マにより検出するものにおいて、前記ウォッチ・ドツグ
・タイマの出力側に、時間TAに設定された第1のタイ
マ部を設け、前記ウォッチ・ドツグ、タイマの異常信号
を第1のタイマ部を介して論理積回路に導入し、この論
理積回路を他の入力端子に前記時間TAより長い時間T
Bに設定された第2のタイマ部の出力信号を導入し、こ
の論理積条件成立信号をリスタート出力部に出力し、リ
スタート出力部の出力信号にて前記中央演算処理装置を
再起動し、且つ第2のタイマを始動するようにしたこと
を特徴とする中央演算処理装置の再起動装置。
1. In an apparatus for detecting a failure of a central processing unit using a watch dog timer, a first timer unit set to a time TA is provided on the output side of the watch dog timer, and the watch dog and timer An abnormality signal of
Introducing the output signal of the second timer section set to B, outputting this AND condition fulfillment signal to the restart output section, and restarting the central processing unit with the output signal of the restart output section. A restart device for a central processing unit, characterized in that the restart device starts a second timer.
JP55109006A 1980-08-08 1980-08-08 Central processing unit restart device Expired JPS5924460B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55109006A JPS5924460B2 (en) 1980-08-08 1980-08-08 Central processing unit restart device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55109006A JPS5924460B2 (en) 1980-08-08 1980-08-08 Central processing unit restart device

Publications (2)

Publication Number Publication Date
JPS5734225A JPS5734225A (en) 1982-02-24
JPS5924460B2 true JPS5924460B2 (en) 1984-06-09

Family

ID=14499172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55109006A Expired JPS5924460B2 (en) 1980-08-08 1980-08-08 Central processing unit restart device

Country Status (1)

Country Link
JP (1) JPS5924460B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11794670B2 (en) 2018-03-29 2023-10-24 Kotobukiya Fronte Co., Ltd. Automobile component

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0371240A (en) * 1989-08-11 1991-03-27 Nec Corp Watch-dog timer circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11794670B2 (en) 2018-03-29 2023-10-24 Kotobukiya Fronte Co., Ltd. Automobile component

Also Published As

Publication number Publication date
JPS5734225A (en) 1982-02-24

Similar Documents

Publication Publication Date Title
US6076172A (en) Monitoting system for electronic control unit
JPS61500570A (en) Method for monitoring electronic computing modules such as microprocessors
JP2017146897A (en) Microcontroller and electronic control unit
JP2003308257A (en) Data transfer system
JPS5924460B2 (en) Central processing unit restart device
JP3916495B2 (en) Controller with fail-safe function
JP3536293B2 (en) Redundant computer equipment
JP2002196948A (en) Operation control device
JP4126849B2 (en) Multi-CPU system monitoring method
JP2998804B2 (en) Multi-microprocessor system
JP7021363B2 (en) Electronic control device
JPH1078896A (en) Industrial electronic computer
JPH01310422A (en) Resetting circuit for microcomputer
JPH03292258A (en) Time element relay
JPS59214957A (en) Watchdog timer circuit
JPH1166020A (en) Abnormality detection circuit for microcomputer
JPH05324131A (en) Reset system for processor system
JPS59229657A (en) Watchdog timer circuit
JPS60126742A (en) Start supervisory system of information processing unit
JP2734473B2 (en) Data processing device for remote control
JP2005250524A (en) Computer system
JPS5920062A (en) Method for preventing runaway in system having microprocessor
JPS6226740B2 (en)
JPS60264146A (en) Detecting and restoring device of communication error
JPS6248860B2 (en)