JPH11259340A - Reactivation control circuit for computer - Google Patents

Reactivation control circuit for computer

Info

Publication number
JPH11259340A
JPH11259340A JP10057569A JP5756998A JPH11259340A JP H11259340 A JPH11259340 A JP H11259340A JP 10057569 A JP10057569 A JP 10057569A JP 5756998 A JP5756998 A JP 5756998A JP H11259340 A JPH11259340 A JP H11259340A
Authority
JP
Japan
Prior art keywords
signal
cpu
output
reset
computer
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
JP10057569A
Other languages
Japanese (ja)
Inventor
Yasuaki Matsumoto
康明 松本
Tomoyoshi Maehara
朋義 前原
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.)
OKI COMTEC KK
Oki Electric Industry Co Ltd
Original Assignee
OKI COMTEC KK
Oki Electric Industry 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 OKI COMTEC KK, Oki Electric Industry Co Ltd filed Critical OKI COMTEC KK
Priority to JP10057569A priority Critical patent/JPH11259340A/en
Publication of JPH11259340A publication Critical patent/JPH11259340A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a reactivation control circuit for computer with which a transient malfunction is distinguished from a permanent fault and reactivation is performed corresponding to conditions. SOLUTION: When a cyclic reset command from a CPU 1 is stopped, an overflow signal OVF is outputted from a watchdog timer 11, and an abnormality detecting pulse signal FDP is generated by a monostable circuit 12. The abnormality detecting pulse signal FDP is applied through an output part 18 to the CPU 1 as a reset signal RST, and this CPU 1 is reactivated from a prescribed state. Besides, the abnormality detecting pulse signal FDP is counted by a counter 13. When the overflow of the watchdog timer 11 frequently occurs and reaches a set value V17 within the period specified by a cycle timer 14, a decision signal S16 of a comparator part 16 is turned to 'H', a flip-flop 18a is set and a halt signal HLT is outputted. Then, the CPU 1 is forcedly stopped.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータの誤
動作を検出して所定の状態から起動させるための再起動
制御回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a restart control circuit for detecting a malfunction of a computer and starting the computer from a predetermined state.

【0002】[0002]

【従来の技術】コンピュータの暴走等の誤動作を検出し
て再起動を行う方法として、いわゆるウオッチ・ドッグ
・タイマ(以下、「WDT」という)を用いる方法があ
る。図2は、従来のWDTを備えたコンピュータの概略
の構成図である。このコンピュータは、中央処理装置
(以下、「CPU」という)1、メモリ2、及び各種の
入出力装置3を備えている。メモリ2は、このコンピュ
ータの制御処理内容が格納されたプログラム部2aと、
制御処理で用いられるデータが記憶されるデータ部2b
とで構成されている。CPU1、メモリ2、及び入出力
装置3は、共通バス4で接続されており、この共通バス
4を介してCPU1がプログラム部2aに格納されたプ
ログラムを順次読み出して制御処理を行うようになって
いる。
2. Description of the Related Art As a method of detecting a malfunction such as runaway of a computer and restarting the computer, there is a method using a so-called watch dog timer (hereinafter referred to as "WDT"). FIG. 2 is a schematic configuration diagram of a computer provided with a conventional WDT. The computer includes a central processing unit (hereinafter, referred to as a “CPU”) 1, a memory 2, and various input / output devices 3. The memory 2 includes a program unit 2a storing the control processing contents of the computer,
Data section 2b in which data used in control processing is stored
It is composed of The CPU 1, the memory 2, and the input / output device 3 are connected by a common bus 4, and the CPU 1 sequentially reads programs stored in the program unit 2 a via the common bus 4 to perform control processing. I have.

【0003】共通バス4には、WDT5が接続されてい
る。WDT5は、例えば共通バス4における図示しない
クロック信号線のクロック信号をカウントし、予め設定
された時間T1に対応する値となったときに、オーバフ
ロー信号OVFを出力するものである。また、WDT5
は、CPU1から共通バス4を介してリセットコマンド
を受け取ったときには、そのカウント値を0にリセット
して再びカウントを開始する機能を有している。WDT
5の出力側は、単安定マルチバイブレータ(以下、「単
安定回路」という)6の入力側に接続されている。単安
定回路6は、入力されたオーバフロー信号OVFの立上
がりによって、一定のパルス幅のリセット信号RSTを
出力するものである。そして、このリセット信号RST
が、CPU1のリセット端子Rに与えられるようになっ
ている。このようなコンピュータでは、メモリ2のプロ
グラム部2aに格納された制御処理用のプログラム中
に、一定時間T2(但し、T2<T1)以内に、周期的
にWDT5をリセットするためのリセットコマンドを出
力するような命令が、予め組み込まれている。
[0005] The common bus 4 is connected to a WDT 5. The WDT 5 counts, for example, a clock signal of a clock signal line (not shown) in the common bus 4 and outputs an overflow signal OVF when the clock signal reaches a value corresponding to a preset time T1. WDT5
Has a function of resetting its count value to 0 and starting counting again when a reset command is received from the CPU 1 via the common bus 4. WDT
The output side of 5 is connected to the input side of a monostable multivibrator (hereinafter referred to as “monostable circuit”) 6. The monostable circuit 6 outputs a reset signal RST having a constant pulse width in response to a rise of the input overflow signal OVF. Then, the reset signal RST
Is supplied to the reset terminal R of the CPU 1. In such a computer, a reset command for periodically resetting the WDT 5 is output within a certain time T2 (where T2 <T1) during a control processing program stored in the program unit 2a of the memory 2. An instruction to perform the operation is pre-installed.

【0004】従って、CPU1が正常なプログラムに従
って処理動作を行っている間は、WDT5のカウント値
がオーバフローする以前に、このWDT5はリセットさ
れ、オーバフロー信号OVFが出力されることはない。
しかし、例えば共通バス4におけるノイズ等によって、
プログラム制御に異常が生じた場合、正常な処理が行わ
れず、WDT5に対するリセットコマンドも出力されな
くなる。このため、WDT5のカウント値はオーバフロ
ーし、オーバフロー信号OVFが出力される。オーバフ
ロー信号OVFが単安定回路6に与えられると、この単
安定回路6から一定のパルス幅のリセット信号RSTが
CPU1に出力される。これによりCPU1はリセット
され、例えば0番地から処理を再開する。CPU1の処
理の再開により、再びリセットコマンドが出力される
と、WDT5はリセットされてオーバフロー信号OVF
の出力は停止される。このように、WDT5によって、
ノイズ等による一過性の異常に対してCPU1の動作を
停止することなく、自動的に再起動がかけられるように
なっている。
Therefore, while the CPU 1 is performing a processing operation according to a normal program, the WDT 5 is reset before the count value of the WDT 5 overflows, and the overflow signal OVF is not output.
However, for example, due to noise in the common bus 4 or the like,
When an abnormality occurs in the program control, normal processing is not performed, and a reset command for the WDT 5 is not output. Therefore, the count value of WDT5 overflows, and an overflow signal OVF is output. When the overflow signal OVF is supplied to the monostable circuit 6, the monostable circuit 6 outputs a reset signal RST having a fixed pulse width to the CPU 1. As a result, the CPU 1 is reset, and restarts the process from, for example, address 0. When the reset command is output again due to the restart of the processing of the CPU 1, the WDT 5 is reset and the overflow signal OVF is output.
Is stopped. Thus, with WDT5,
The CPU 1 can be automatically restarted without stopping the operation of the CPU 1 for a transient abnormality due to noise or the like.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、従来の
コンピュータでは、次のような課題があった。ノイズ等
による一過性の誤りではなく、例えば処理プログラムに
エラーがあるような場合、再起動後、処理がそのエラー
箇所に進む度にプログラムの暴走が生じ、WDT5によ
ってCPU1にリセットがかけられることになる。この
ような状態は外部から検出することができないので、そ
の異常に気付かずに放置されるという課題があった。
However, the conventional computer has the following problems. If, for example, there is an error in the processing program instead of a transient error due to noise or the like, the program runs away every time the processing proceeds to the error location after restarting, and the CPU 1 is reset by the WDT 5. become. Since such a state cannot be detected from the outside, there is a problem that the state is left unnoticed without being noticed.

【0006】一方、リセット及び再起動の繰り返しによ
る恒久的な障害の見落としを防止するために、WDT5
の出力側を、図2中の破線で示したようにCPU1のホ
ルト端子Hに接続したり、或いはリセット端子Rに接続
する方法がある。この方法では、WDT5がオーバフロ
ーすると、オーバフロー信号OVFによってCPU1が
停止させられ、オーバフロー信号OVFは出力されたま
まの状態となるので、CPU1の停止を外部から容易に
検出することができる。しかし、このような方法では、
ノイズ等による一過性の誤りの場合にも、CPU1は停
止してしまい、人間が介在してコンピュータの再起動操
作をしなければならないという課題があった。本発明
は、前記従来技術が持っていた課題を解決し、一過性の
誤りの場合は、自動的に再起動を行い、恒久的な障害と
判定されたときに動作を停止させるコンピュータの再起
動制御回路を提供するものである。
On the other hand, in order to prevent a permanent failure from being overlooked due to repetition of reset and restart, WDT5
Is connected to the halt terminal H of the CPU 1 or to the reset terminal R as shown by a broken line in FIG. In this method, when the WDT 5 overflows, the CPU 1 is stopped by the overflow signal OVF, and the overflow signal OVF remains output, so that the stop of the CPU 1 can be easily detected from the outside. However, in such a method,
Even in the case of a transient error due to noise or the like, there has been a problem that the CPU 1 is stopped and a human must intervene to restart the computer. The present invention solves the problem of the prior art, and in the case of a transient error, automatically restarts the computer and stops the operation when it is determined to be a permanent failure. It provides a start-up control circuit.

【0007】[0007]

【課題を解決するための手段】前記課題を解決するため
に、本発明は、コンピュータの再起動制御回路におい
て、CPUから定期的に出力されるべき信号が途絶えた
とき、または該CPUから異常を検出した旨の信号が与
えられたときに、異常検出パルス信号を発生するパルス
発生手段と、一定期間毎に、その期間内に前記パルス発
生手段で発生された前記異常検出パルス信号の数をカウ
ントするカウント手段と、予め設定された設定値と、前
記カウント手段でカウントされたカウント値とを比較す
る比較手段と、前記比較比較手段において、前記カウン
ト値が前記設定値よりも小さいと判定されている間は、
前記異常検出パルス信号に基づいて前記CPUを強制的
に所定の状態から再起動させるための第1の制御信号を
出力し、該カウント値が該設定値以上と判定されたとき
には、該CPUを強制的に停止させるための第2の制御
信号を出力する制御信号出力手段とを備えている。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention relates to a restart control circuit for a computer which detects when a signal to be periodically output from a CPU is interrupted or when an abnormality is detected from the CPU. A pulse generation means for generating an abnormality detection pulse signal when a signal indicating detection is given, and counting the number of the abnormality detection pulse signals generated by the pulse generation means during the period at regular intervals. Counting means, a preset setting value, a comparing means for comparing the count value counted by the counting means, and a comparing / comparing means, wherein it is determined that the count value is smaller than the set value. While you are
A first control signal for forcibly restarting the CPU from a predetermined state based on the abnormality detection pulse signal is output. When the count value is determined to be equal to or greater than the set value, the CPU is forcibly restarted. Control signal output means for outputting a second control signal for stopping the operation.

【0008】本発明によれば、以上のようにコンピュー
タの再起動制御回路を構成したので、次のような作用が
行われる。例えば、CPUから周期的に出力されている
信号が途絶えると、パルス発生手段から異常検出パルス
信号が出力される。異常検出パルス信号は、カウント手
段でカウントされ、一定期間内のカウント数が予め設定
された設定数に達しない間は、この異常検出パルス信号
に基づいてCPUを強制的に所定の状態から再起動させ
るための第1の制御信号が制御信号出力手段から出力さ
れる。また、カウント数が設定値に達すると、制御信号
出力手段からCPUを強制的に停止させるための第2の
制御信号が出力される。
According to the present invention, since the restart control circuit of the computer is configured as described above, the following operation is performed. For example, when the signal periodically output from the CPU is interrupted, the pulse generation unit outputs an abnormality detection pulse signal. The abnormality detection pulse signal is counted by the counting means, and the CPU is forcibly restarted from a predetermined state based on the abnormality detection pulse signal while the count number within a certain period does not reach a preset number. A first control signal is output from the control signal output means. When the count reaches the set value, the control signal output means outputs a second control signal for forcibly stopping the CPU.

【0009】[0009]

【発明の実施の形態】第1の実施形態 図1は、本発明の第1の実施形態を示すコンピュータの
構成図であり、図2中の要素と共通の要素には共通の符
号が付されている。このコンピュータは、図2と同様
に、CPU1、メモリ2、及び各種の入出力装置3を備
えている。メモリ2は、コンピュータの制御処理内容が
格納されたプログラム部2aと制御処理で用いられるデ
ータ等が記憶されるデータ部2bとで構成されている。
CPU1、メモリ2、及び入出力装置3は、共通バス4
で接続されており、この共通バス4を介して、CPU1
がプログラム部2aに格納されたプログラムを順次読み
出して制御処理を行うようになっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment FIG. 1 is a block diagram of a computer showing a first embodiment of the present invention. Elements common to those in FIG. ing. This computer includes a CPU 1, a memory 2, and various input / output devices 3, as in FIG. The memory 2 includes a program section 2a in which the contents of control processing of the computer are stored, and a data section 2b in which data and the like used in the control processing are stored.
The CPU 1, the memory 2, and the input / output device 3 are connected to a common bus 4
Via the common bus 4 and the CPU 1
Are configured to sequentially read out the programs stored in the program section 2a and perform control processing.

【0010】また、共通バス4には再起動制御回路10
が接続されている。再起動制御回路10は、パルス発生
手段(例えば、WDT11及び単安定回路12)を有し
ており、このWDT11が共通バス4に接続されてい
る。WDT11は、例えば時間間隔T2以内でCPU1
から定期的に出力されるべきリセットコマンド等の信号
が途絶えたときに、異常を検出するものである。WDT
11は、例えば共通バス4における図示しないクロック
信号線のクロック信号をカウントし、予め設定された時
間T1(但し、T1>T2)に対応する値となったとき
に、オーバフロー信号OVFを出力するようになってい
る。また、WDT11は、CPU1から共通バス4を介
してリセットコマンドを受けとったときには、そのカウ
ント値を0にリセットして再びカウントを開始する機能
を有している。
A restart control circuit 10 is connected to the common bus 4.
Is connected. The restart control circuit 10 includes pulse generation means (for example, the WDT 11 and the monostable circuit 12), and the WDT 11 is connected to the common bus 4. The WDT 11 is, for example, the CPU 1 within the time interval T2.
When a signal such as a reset command to be periodically output from the CPU is interrupted, an abnormality is detected. WDT
A counter 11 counts a clock signal of a clock signal line (not shown) on the common bus 4 and outputs an overflow signal OVF when a value corresponding to a preset time T1 (where T1> T2) is reached. It has become. Further, when receiving a reset command from the CPU 1 via the common bus 4, the WDT 11 has a function of resetting its count value to 0 and restarting counting.

【0011】WDT11の出力側は、単安定回路12の
入力側に接続されている。単安定回路12は、与えられ
たオーバフロー信号OVFの立上がりによって、一定の
パルス幅(例えば、1μs)の異常検出パルス信号FD
Pを出力するものである。単安定回路12の出力側は、
カウント手段(例えば、カウンタ)13のクロック端子
Cに接続されている。カウンタ13は、クロック端子C
に与えられる異常検出パルス信号FDPの数を計数し、
その計数結果をカウント値C13として出力するととも
に、リセット端子Rにリセット信号が与えられたときに
は、そのカウント値C13を0にリセットするものであ
る。カウンタ13のリセット端子Rには、例えば24時
間の周期タイマ14の出力側が2入力の論理和ゲート
(以下、「OR」という)15を介して接続され、一定
期間(この場合は、24時間)毎に1回、リセット用の
パルス信号が与えられるようになっている。
The output side of the WDT 11 is connected to the input side of the monostable circuit 12. The monostable circuit 12 outputs the abnormality detection pulse signal FD having a constant pulse width (for example, 1 μs) by the rise of the supplied overflow signal OVF.
P is output. The output side of the monostable circuit 12
It is connected to a clock terminal C of a counting means (for example, a counter) 13. The counter 13 has a clock terminal C
Counting the number of abnormality detection pulse signals FDP given to
The counting result is output as a count value C13, and when a reset signal is given to the reset terminal R, the count value C13 is reset to zero. For example, the output side of a 24-hour period timer 14 is connected to the reset terminal R of the counter 13 via a 2-input OR gate (hereinafter referred to as “OR”) 15 for a fixed period (in this case, 24 hours). A reset pulse signal is provided once each time.

【0012】カウンタ13の出力側は、比較手段(例え
ば、比較部)16の一方の入力側に接続されている。比
較部16の他方の入力側には、回数設定部17が接続さ
れ、この回数設定部17に予め設定されている設定値V
17が与えられるようになっている。比較部16は、カ
ウンタ13から与えられるカウント値C13が、回数設
定部17から与えられる設定値V17よりも小さいとき
には、判定信号S16をレベル“L”にして出力し、こ
のカウント値C13が設定値V17以上になると判定信
号S16をレベル“H”にして出力するものである。比
較部16の出力側は、セット・リセット型のフリップフ
ロップ(以下、「FF」という)18a、及び2入力の
OR18bで構成される制御信号出力手段(例えば、出
力部)18におけるFF18bのセット端子Sに接続さ
れている。
The output side of the counter 13 is connected to one input side of a comparing means (for example, a comparing section) 16. A count setting unit 17 is connected to the other input side of the comparison unit 16, and a preset value V set in the count setting unit 17 is set in advance.
17 are provided. When the count value C13 provided from the counter 13 is smaller than the set value V17 provided from the number-of-times setting unit 17, the comparison unit 16 outputs the determination signal S16 at the level “L”, and outputs the count signal C13. When the voltage becomes equal to or higher than V17, the determination signal S16 is set to level "H" and output. An output side of the comparison unit 16 is a set terminal of a FF 18b in a control signal output unit (for example, an output unit) 18 including a set / reset type flip-flop (hereinafter, referred to as “FF”) 18a and a two-input OR 18b. Connected to S.

【0013】FF18aのリセット端子Rには、外部端
子19が接続されており、この外部端子19から、外部
リセット信号ERSが与えられるようになっている。F
F18aは、セット端子Sに“H”の信号が与えられた
ときに出力端子Qから“H”を出力し、リセット端子R
に“H”の信号が与えられたときには、出力端子Qから
“L”を出力するものである。FF18aの出力端子Q
はCPU1のホルト端子Hに接続され、このCPU1を
強制的に停止させるためのホルト信号HLTが出力され
るようになっている。OR18bの入力側には、単安定
回路12からの異常検出パルス信号FDPと、外部端子
19からの外部リセット信号ERSとが与えられてい
る。OR18bの出力側はCPU1のリセット端子Rに
接続され、このCPU1を例えば0番地から再起動させ
るためのリセット信号RSTが出力されるようになって
いる。
An external terminal 19 is connected to the reset terminal R of the FF 18a, and an external reset signal ERS is supplied from the external terminal 19. F
F18a outputs "H" from the output terminal Q when the "H" signal is given to the set terminal S, and outputs the reset terminal R
Is supplied with an "H" signal, the output terminal Q outputs "L". Output terminal Q of FF 18a
Is connected to the halt terminal H of the CPU 1, and a halt signal HLT for forcibly stopping the CPU 1 is output. An abnormality detection pulse signal FDP from the monostable circuit 12 and an external reset signal ERS from an external terminal 19 are supplied to the input side of the OR 18b. The output side of the OR 18b is connected to the reset terminal R of the CPU 1, and outputs a reset signal RST for restarting the CPU 1 from address 0, for example.

【0014】次に動作を説明する。例えば、外部端子1
9から外部リセット信号ERSが与えられると、カウン
タ13及びFF18aがリセットされるとともに、CP
U1では初期状態からの動作が開始される。CPU1に
よって、メモリ2のプログラム部2aに格納されたプロ
グラムが0番地から順次読み出されて実行される。プロ
グラム部2aに格納された制御処理用のプログラム中に
は、一定時間T2以内に周期的にWDT11をリセット
するためのリセットコマンドを出力するような命令が組
み込まれている。従って、正常なプログラムに従ってC
PU1が処理動作を行っている間は、WDT11のカウ
ント値がオーバフローする以前に、このWDT11はリ
セットされ、オーバフロー信号OVFが出力されること
はない。
Next, the operation will be described. For example, external terminal 1
9, the counter 13 and the FF 18a are reset and the CP 13
In U1, the operation from the initial state is started. The programs stored in the program section 2a of the memory 2 are sequentially read from the address 0 and executed by the CPU 1. A command for outputting a reset command for periodically resetting the WDT 11 within a predetermined time T2 is incorporated in the control processing program stored in the program unit 2a. Therefore, according to the normal program, C
While the PU1 is performing the processing operation, the WDT11 is reset before the count value of the WDT11 overflows, and the overflow signal OVF is not output.

【0015】ここで、例えば共通バス4におけるノイズ
等によって、プログラム制御に異常が生じたとする。プ
ログラム制御の異常により、所定の処理が行われなくな
り、WDT11に対するリセットコマンドが出力されな
くなる。このため、WDT11のカウント値はオーバフ
ローし、オーバフロー信号OVFが出力される。オーバ
フロー信号OVFは単安定回路12に与えられ、この単
安定回路12から一定のパルス幅の異常検出パルス信号
FDPが出力され、カウンタ13に与えられる。そし
て、カウンタ13のカウント値C13は、カウントアッ
プされて1となる。異常検出パルス信号FDPは、同時
に、OR18bを介してCPU1のリセット端子Rにも
与えられるので、このCPU1は強制的に0番地へ制御
が移され、0番地からの再起動処理が開始される。WD
T11のオーバフローの原因が、ノイズ等の一過性の原
因である場合には、このWDT11のオーバフローが連
続して発生することはないので、カウンタ13のカウン
ト値C13は、引き続いて急激に増加することはない。
そして、周期タイマ14から、例えば24時間毎のリセ
ット用のパルス信号が出力された時点で、カウンタ13
のカウント値C13は0にリセットされる。
Here, it is assumed that an abnormality occurs in program control due to, for example, noise in the common bus 4. Due to the abnormality of the program control, the predetermined processing is not performed, and the reset command for the WDT 11 is not output. Therefore, the count value of the WDT 11 overflows, and an overflow signal OVF is output. The overflow signal OVF is supplied to the monostable circuit 12, and the monostable circuit 12 outputs an abnormality detection pulse signal FDP having a fixed pulse width, and supplies the same to the counter 13. Then, the count value C13 of the counter 13 is counted up to 1. Since the abnormality detection pulse signal FDP is also supplied to the reset terminal R of the CPU 1 via the OR 18b at the same time, the control of the CPU 1 is forcibly moved to the address 0, and the restart processing from the address 0 is started. WD
If the cause of the overflow of T11 is a transient cause such as noise, the overflow of the WDT11 does not occur continuously, and the count value C13 of the counter 13 continuously increases rapidly. Never.
When a pulse signal for resetting, for example, every 24 hours is output from the periodic timer 14, the counter 13
Is reset to 0.

【0016】一方、WDT11のオーバフローの原因
が、プログラム誤り等の恒久的な原因である場合には、
このWDT11のオーバフローは、そのプログラム誤り
の箇所を実行する度に発生する。そして、WDT11の
オーバフローの度に、カウンタ13のカウント値C13
が逐次カウントアップされるとともに、CPU1による
再起動処理が行われる。カウンタ13のカウント値C1
3がカウントアップされて、回数設定部17に予め設定
された設定値V17に達すると、比較部16から出力さ
れる判定信号S16が“H”となる。これにより、FF
18aから出力されるホルト信号HLTは“H”とな
る。ホルト信号HLTはCPU1のホルト端子Hに与え
られ、このCPU1が強制的に停止させられる。CPU
1は、外部端子19から外部リセット信号ERSが与え
られるまで、その停止状態に維持される。
On the other hand, if the cause of the overflow of the WDT 11 is a permanent cause such as a program error,
The overflow of the WDT 11 occurs every time the location of the program error is executed. Each time the WDT 11 overflows, the count value C13
Are sequentially counted up, and a restart process by the CPU 1 is performed. The count value C1 of the counter 13
When 3 is counted up and reaches a set value V17 preset in the number-of-times setting section 17, the determination signal S16 output from the comparing section 16 becomes "H". Thereby, FF
The halt signal HLT output from 18a becomes "H". The halt signal HLT is supplied to the halt terminal H of the CPU 1, and the CPU 1 is forcibly stopped. CPU
1 is maintained in the stopped state until the external reset signal ERS is supplied from the external terminal 19.

【0017】以上のように、この第1の実施形態のコン
ピュータは、周期タイマ14で設定された一定期間内に
WDT11で検出したオーバフローの回数をカウントす
るカウンタ13、このカウンタ13のカウント値C13
を予め設定された設定値V17と比較する比較部16、
及び比較部16の判定結果に基づいてホルト信号HLT
またはリセット信号RSTをCPU1に出力する出力部
18を有している。これにより、一過性の誤動作の場合
にはCPU1を自動的に再起動させ、恒久的な障害と判
定された場合には強制的に停止させることができるの
で、障害状況に応じた復旧処理を行うことができるとい
う利点を有する。
As described above, the computer according to the first embodiment includes a counter 13 for counting the number of overflows detected by the WDT 11 within a certain period set by the period timer 14, and a count value C13 of the counter 13.
A comparison unit 16 that compares the value of
And the halt signal HLT based on the determination result of the comparator 16
Alternatively, it has an output unit 18 that outputs a reset signal RST to the CPU 1. As a result, the CPU 1 can be automatically restarted in the case of a transient malfunction, and can be forcibly stopped in the case of a permanent failure, so that recovery processing according to the failure situation can be performed. It has the advantage that it can be done.

【0018】第2の実施形態 図3は、本発明の第2の実施形態を示すコンピュータの
構成図であり、図1中の要素と共通の要素には共通の符
号が付されている。このコンピュータは、図1のコンピ
ュータに、メモリ2等におけるパリティエラーに対応す
る再起動制御回路20を付加した構成となっている。再
起動制御回路20は、共通バス4に接続されたパルス発
生手段(例えば、パリティエラー検出部)21を有して
いる。パリティエラー検出部21は、共通バス4中の図
示しないパリティ信号線に、エラー信号が出力されたこ
とを検出して、一定のパルス幅(例えば、1μs)のパ
リティエラー信号PEPを出力するものである。パリテ
ィエラー検出部21の出力信号は、割込信号INTとし
てCPU1の割込端子Iに与えられるとともに、カウン
ト手段(例えば、カウンタ)22のクロック端子Cにも
与えられるようになっている。
Second Embodiment FIG. 3 is a block diagram of a computer showing a second embodiment of the present invention, and the same reference numerals are given to the same components as those in FIG. This computer has a configuration in which a restart control circuit 20 corresponding to a parity error in the memory 2 or the like is added to the computer of FIG. The restart control circuit 20 has a pulse generation unit (for example, a parity error detection unit) 21 connected to the common bus 4. The parity error detector 21 detects that an error signal has been output to a parity signal line (not shown) in the common bus 4 and outputs a parity error signal PEP having a fixed pulse width (for example, 1 μs). is there. The output signal of the parity error detecting section 21 is provided to the interrupt terminal I of the CPU 1 as an interrupt signal INT and also to the clock terminal C of the counting means (for example, a counter) 22.

【0019】カウンタ22は、クロック端子Cに与えら
れるパリティエラー信号PEPの数を計数し、その計数
結果をカウント値C22として出力するとともに、リセ
ット端子Rにリセット信号が与えられたときには、その
カウント値C22を0にリセットするものである。カウ
ンタ22のリセット端子Rには、再起動制御回路10の
OR15の出力側が接続されている。カウンタ22の出
力側は、比較手段(例えば、比較部)23の一方の入力
側に接続されている。比較部23の他方の入力側には、
回数設定部24が接続され、この回数設定部24に予め
設定されている設定値V24が与えられるようになって
いる。比較部23は、カウンタ22から与えられるカウ
ント値C22が、回数設定部24から与えられる設定値
V24よりも小さいときには、判定信号S23を“L”
にして出力し、このカウント値C22が設定値V24以
上になると、判定信号S23をレベル“H”にして出力
するものである。比較部23の出力側は、制御信号出力
手段(例えば、セット・リセット型のFF)25のセッ
ト端子Sに接続されている。
The counter 22 counts the number of parity error signals PEP supplied to the clock terminal C, outputs the count result as a count value C22, and when a reset signal is supplied to the reset terminal R, the count value C22 is reset to 0. The output terminal of the OR 15 of the restart control circuit 10 is connected to the reset terminal R of the counter 22. The output side of the counter 22 is connected to one input side of a comparison means (for example, a comparison unit) 23. On the other input side of the comparison unit 23,
The number-of-times setting unit 24 is connected, and a preset value V24 is given to the number-of-times setting unit 24. When the count value C22 given from the counter 22 is smaller than the set value V24 given from the number-of-times setting unit 24, the comparing unit 23 sets the determination signal S23 to "L".
When the count value C22 becomes equal to or greater than the set value V24, the determination signal S23 is set to the level "H" and output. The output side of the comparison unit 23 is connected to a set terminal S of a control signal output unit (for example, a set / reset type FF) 25.

【0020】FF25のリセット端子Rには、外部端子
19が接続されており、この外部端子19から、外部リ
セット信号ERSが与えられるようになっている。FF
25の出力端子QからはCPU1を強制的に停止させる
ためのホルト信号HLTが出力されるようになってい
る。FF25の出力端子Q、及び再起動制御回路10の
FF18aの出力端子Qは、2入力のOR26の入力側
に接続され、このOR26によって2つのホルト信号H
LTの論理和がとられてCPU1のホルト端子Hに与え
られるようになっている。その他の構成は、図1のコン
ピュータと同様である。このようなコンピュータにおけ
る再起動制御回路10の動作は、第1の実施形態で説明
した再起動制御回路10の動作と同様である。また、再
起動制御回路20の動作は、再起動制御回路10の動作
とほぼ同様である。
An external terminal 19 is connected to the reset terminal R of the FF 25, and an external reset signal ERS is supplied from the external terminal 19. FF
A halt signal HLT for forcibly stopping the CPU 1 is output from the 25 output terminals Q. The output terminal Q of the FF 25 and the output terminal Q of the FF 18a of the restart control circuit 10 are connected to the input side of a two-input OR 26, and the two halt signals H
The logical sum of LT is calculated and applied to the halt terminal H of the CPU 1. Other configurations are the same as those of the computer in FIG. The operation of the restart control circuit 10 in such a computer is the same as the operation of the restart control circuit 10 described in the first embodiment. The operation of the restart control circuit 20 is almost the same as the operation of the restart control circuit 10.

【0021】即ち、パリティエラー検出部21でパリテ
ィエラーが検出されると、カウンタ22のカウント値C
22が1だけカウントアップされる。また、パリティエ
ラー検出部21の出力信号は、割込信号INTとしてC
PU1の割込端子Iに与えられる。これにより、CPU
1は、割込信号INTに対応する割込処理のプログラム
に強制的に制御が移り、所定の割込処理が行われる。そ
して、CPU1は、割込処理の終了後、再び通常の処理
動作に移行する。このようなパリティエラーによる割込
処理は、カウンタ22のカウント値C22が、回数設定
部24に予め設定された設定値V24に達するまで行わ
れる。そして、カウント値C22が設定値V24に達す
ると、メモリ2等の恒久的な障害と判定されて、比較部
23の判定信号S23が“H”となる。これにより、F
F25から出力されるホルト信号HLTは“H”とな
る。ホルト信号HLTは、OR26を介してCPU1の
ホルト端子Hに与えられ、このCPU1が強制的に停止
させられる。以上のように、この第2の実施形態のコン
ピュータは、再起動制御回路10を有するので、図1の
第1の実施形態のコンピュータと同様の利点を有する。
更に、パリティエラーを検出して再起動制御を行うため
の再起動制御回路20を有するので、パリティエラーに
対しても適切な再起動の制御ができるという利点を有す
る。
That is, when the parity error detection section 21 detects a parity error, the count value C
22 is incremented by one. The output signal of the parity error detection unit 21 is a C signal as an interrupt signal INT.
It is provided to the interrupt terminal I of PU1. This allows the CPU
In 1, control is forcibly transferred to an interrupt processing program corresponding to the interrupt signal INT, and a predetermined interrupt processing is performed. Then, after the end of the interrupt processing, the CPU 1 returns to the normal processing operation. The interrupt process due to such a parity error is performed until the count value C22 of the counter 22 reaches a set value V24 preset in the number setting unit 24. Then, when the count value C22 reaches the set value V24, it is determined that a permanent failure has occurred in the memory 2 or the like, and the determination signal S23 of the comparison unit 23 becomes “H”. Thereby, F
The halt signal HLT output from F25 becomes “H”. The halt signal HLT is supplied to the halt terminal H of the CPU 1 via the OR 26, and the CPU 1 is forcibly stopped. As described above, the computer of the second embodiment has the same advantages as the computer of the first embodiment in FIG.
Further, since there is a restart control circuit 20 for detecting a parity error and performing restart control, there is an advantage that appropriate restart control can be performed even for a parity error.

【0022】なお、本発明は、上記実施形態に限定され
ず、種々の変形が可能である。この変形例としては、例
えば、次の(a)〜(d)のようなものがある。 (a) 周期タイマ14の周期、及び回数設定部17,
24の設定値V17,V24等の設定を、CPU1から
共通バス4を介して行うようにしても良い。これによ
り、システムや処理内容に応じて適切な再起動制御が可
能になる。 (b) 単安定回路12等から出力されるパルス幅は、
システムに合わせて適宜設定することができる。 (c) 図1及び図3のコンピュータでは、レベル
“H”をアクティブ状態とする正論理回路で構成した
が、レベル“L”をアクティブ状態とする負論理回路で
構成しても良い。 (d) 出力部18は、ホルト信号HLTとリセット信
号RSTを個別に出力するように構成しているが、例え
ばホルト端子Hを持たないCPU1の場合は、これらの
ホルト信号HLTとリセット信号RSTの論理和をとっ
てCPU1のリセット端子Rに与えるようにしても良
い。
The present invention is not limited to the above embodiment, and various modifications are possible. For example, there are the following modifications (a) to (d). (A) The period of the period timer 14 and the number-of-times setting unit 17,
The setting of the 24 set values V17, V24, and the like may be performed from the CPU 1 via the common bus 4. This makes it possible to perform appropriate restart control according to the system and processing contents. (B) The pulse width output from the monostable circuit 12 or the like is
It can be set appropriately according to the system. (C) In the computers shown in FIGS. 1 and 3, the computer is constituted by a positive logic circuit that activates the level “H”, but may be constituted by a negative logic circuit that activates the level “L”. (D) The output unit 18 is configured to individually output the halt signal HLT and the reset signal RST. For example, in the case of the CPU 1 having no halt terminal H, the output unit 18 outputs the halt signal HLT and the reset signal RST. The logical sum may be calculated and applied to the reset terminal R of the CPU 1.

【0023】[0023]

【発明の効果】以上詳細に説明したように、本発明によ
れば、CPUから周期的に出力されている信号が途絶え
たり、このCPUから異常を知らせる信号を検出したと
きに、異常検出パルス信号を出力するパルス発生手段
と、一定期間毎に異常検出パルス信号をカウントするカ
ウント手段と、カウント手段のカウント数に応じてCP
Uを強制的に所定の状態から再起動させるための第1の
制御信号、またはCPUを強制的に停止させるための第
2の制御信号を出力する制御信号出力手段を有してい
る。これにより、コンピュータの一過性の誤動作と、恒
久的な障害とを区別してそれぞれに対応した再起動を行
うことができるという効果がある。
As described above in detail, according to the present invention, when the signal periodically output from the CPU is interrupted or when a signal indicating an abnormality is detected from the CPU, the abnormality detection pulse signal is output. , A pulse generating means for outputting an abnormal detection pulse signal at regular intervals, and a CP according to the count number of the counting means.
It has a control signal output means for outputting a first control signal for forcibly restarting U from a predetermined state or a second control signal for forcibly stopping the CPU. As a result, there is an effect that a transient malfunction of the computer and a permanent failure can be distinguished from each other and a restart corresponding to each can be performed.

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

【図1】本発明の第1の実施形態を示すコンピュータの
構成図である。
FIG. 1 is a configuration diagram of a computer according to a first embodiment of the present invention.

【図2】従来のWDTを備えたコンピュータの概略の構
成図である。
FIG. 2 is a schematic configuration diagram of a computer including a conventional WDT.

【図3】本発明の第2の実施形態を示すコンピュータの
構成図である。
FIG. 3 is a configuration diagram of a computer according to a second embodiment of the present invention.

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

1 CPU 2 メモリ 4 共通バス 10,20 再起動制御回路 11 WDT(ウオッチ・ドッグ・タ
イマ) 12 単安定回路 13,22 カウンタ 14 周期タイマ 15,18b,26 OR(論理和ゲート) 16,23 比較部 17,24 回数設定部 18 出力部 18a,25 FF(フリップフロップ)
REFERENCE SIGNS LIST 1 CPU 2 memory 4 common bus 10, 20 restart control circuit 11 WDT (watch dog timer) 12 monostable circuit 13, 22 counter 14 period timer 15, 18b, 26 OR (logical sum gate) 16, 23 comparator 17, 24 number setting section 18 output section 18a, 25 FF (flip-flop)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置から定期的に出力されるべ
き信号が途絶えたとき、または該中央処理装置から異常
を検出した旨の信号が与えられたときに、異常検出パル
ス信号を発生するパルス発生手段と、 一定期間毎に、その期間内に前記パルス発生手段で発生
された前記異常検出パルス信号の数をカウントするカウ
ント手段と、 予め設定された設定値と、前記カウント手段でカウント
されたカウント値とを比較する比較手段と、 前記比較比較手段において、前記カウント値が前記設定
値よりも小さいと判定されている間は、前記異常検出パ
ルス信号に基づいて前記中央処理装置を強制的に所定の
状態から再起動させるための第1の制御信号を出力し、
該カウント値が該設定値以上と判定されたときには、該
中央処理装置を強制的に停止させるための第2の制御信
号を出力する制御信号出力手段とを、 備えたことを特徴とするコンピュータの再起動制御回
路。
1. A pulse for generating an abnormality detection pulse signal when a signal to be periodically output from a central processing unit is interrupted or when a signal indicating that an abnormality is detected is given from the central processing unit. Generating means, at regular intervals, a counting means for counting the number of the abnormality detection pulse signals generated by the pulse generating means during the period, a preset set value, and counting by the counting means. Comparing means for comparing the count value with the count value; while the comparing and comparing means determines that the count value is smaller than the set value, forcibly causes the central processing unit based on the abnormality detection pulse signal. Outputting a first control signal for restarting from a predetermined state;
Control signal output means for outputting a second control signal for forcibly stopping the central processing unit when the count value is determined to be equal to or greater than the set value. Restart control circuit.
JP10057569A 1998-03-10 1998-03-10 Reactivation control circuit for computer Withdrawn JPH11259340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10057569A JPH11259340A (en) 1998-03-10 1998-03-10 Reactivation control circuit for computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10057569A JPH11259340A (en) 1998-03-10 1998-03-10 Reactivation control circuit for computer

Publications (1)

Publication Number Publication Date
JPH11259340A true JPH11259340A (en) 1999-09-24

Family

ID=13059483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10057569A Withdrawn JPH11259340A (en) 1998-03-10 1998-03-10 Reactivation control circuit for computer

Country Status (1)

Country Link
JP (1) JPH11259340A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100764905B1 (en) * 2005-11-28 2007-10-09 주식회사 콤텍시스템 Remote administration error restoration method for administrative network appliance
US7305587B2 (en) 2003-02-27 2007-12-04 Denso Corporation Electronic control unit for monitoring a microcomputer
JP2008513900A (en) * 2004-09-25 2008-05-01 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method for processing a computer program on a computer system
JP2008513899A (en) * 2004-09-24 2008-05-01 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method for processing a computer program on a computer system
JP2012137877A (en) * 2010-12-24 2012-07-19 Toshiba Corp Secondary battery device, processor, monitoring program and vehicle
JP2013120539A (en) * 2011-12-08 2013-06-17 Denso Corp Electronic control device and electric power steering device using the same
CN111708308A (en) * 2020-07-03 2020-09-25 迈普通信技术股份有限公司 Single-board power supply control circuit and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7305587B2 (en) 2003-02-27 2007-12-04 Denso Corporation Electronic control unit for monitoring a microcomputer
JP2008513899A (en) * 2004-09-24 2008-05-01 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method for processing a computer program on a computer system
JP2008513900A (en) * 2004-09-25 2008-05-01 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method for processing a computer program on a computer system
US8316261B2 (en) 2004-09-25 2012-11-20 Robert Bosch Gmbh Method for running a computer program on a computer system
KR100764905B1 (en) * 2005-11-28 2007-10-09 주식회사 콤텍시스템 Remote administration error restoration method for administrative network appliance
JP2012137877A (en) * 2010-12-24 2012-07-19 Toshiba Corp Secondary battery device, processor, monitoring program and vehicle
JP2013120539A (en) * 2011-12-08 2013-06-17 Denso Corp Electronic control device and electric power steering device using the same
CN111708308A (en) * 2020-07-03 2020-09-25 迈普通信技术股份有限公司 Single-board power supply control circuit and electronic equipment

Similar Documents

Publication Publication Date Title
US6012154A (en) Method and apparatus for detecting and recovering from computer system malfunction
US6438709B2 (en) Method for recovering from computer system lockup condition
US5491787A (en) Fault tolerant digital computer system having two processors which periodically alternate as master and slave
US8954801B2 (en) Microcomputer and method of operation thereof
EP0679981A2 (en) Reset circuit of electronic device
JPH0833874B2 (en) Device for synchronizing multiple processors
US6076172A (en) Monitoting system for electronic control unit
US20120131384A1 (en) Computer system
JP2004086451A (en) Semiconductor integrated circuit
JPH11259340A (en) Reactivation control circuit for computer
US7334167B2 (en) Circuit for detection of internal microprocessor watchdog device execution and method for resetting microprocessor system
JP4812699B2 (en) Power control device
JP4534995B2 (en) Restart method for digital protective relay
JP2003256240A (en) Information processor and its failure recovering method
JPWO2014112039A1 (en) Information processing apparatus, information processing apparatus control method, and information processing apparatus control program
JP3724034B2 (en) Control circuit for production equipment
JP3415381B2 (en) Microcomputer and electronic control unit
RU1797122C (en) Device for restart and testing power supply of microcomputer
KR920008354Y1 (en) Watch-dog circuit
KR890007083Y1 (en) Cpu restart circuit by real time clock inspection
JP2002318643A (en) Information processor
JPS62623B2 (en)
JPH0519897A (en) Resetting control circuit of information processor
JPH0887431A (en) Abnormality detecting device for central processing unit
JPS6349855A (en) Detecting device for interruption cycle abnormality of cpu

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: 20050510