Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0218504B2 - - Google Patents
[go: Go Back, main page]

JPH0218504B2 - - Google Patents

Info

Publication number
JPH0218504B2
JPH0218504B2 JP57229701A JP22970182A JPH0218504B2 JP H0218504 B2 JPH0218504 B2 JP H0218504B2 JP 57229701 A JP57229701 A JP 57229701A JP 22970182 A JP22970182 A JP 22970182A JP H0218504 B2 JPH0218504 B2 JP H0218504B2
Authority
JP
Japan
Prior art keywords
program
counter
timer
processor
count
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
JP57229701A
Other languages
Japanese (ja)
Other versions
JPS59121554A (en
Inventor
Hiroshi Hashimoto
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57229701A priority Critical patent/JPS59121554A/en
Publication of JPS59121554A publication Critical patent/JPS59121554A/en
Publication of JPH0218504B2 publication Critical patent/JPH0218504B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/076Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 発明の技術分野 本発明はプログラムによつて動作するプロセツ
サ装置において、プログラム暴走時にバツクアツ
プを行うためのプロセツサバツクアツプ方式に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a processor backup system for backing up when a program runs out of control in a processor device operated by a program.

従来技術と問題点 プログラムによつて動作するプロセツサを用い
てシステムにおいて、プログラム走行中にノイズ
等の原因によつてプログラムが暴走することがあ
る。このようなプログラム暴走時におけるバツク
アツプ方式としては、ハードウエアによつて構成
したタイマカウンタ(ウオツチドツグタイマ)を
設けてプログラムによつて一定時間ごとにカウン
タクリアを行うようにし、カウンタクリアが行わ
れなくなつた場合にプログラムが暴走したものと
みなして、タイマのカウントオーバによりハード
ウエア的にプロセツサに割込みをかけて、プログ
ラムをイニシアルから走らせて再起動するように
し、さらにこのような再起動が頻繁に行われた場
合には、ソフトウエアによつてアラームを発報す
るとともに、システムを停止させる方式が従来用
いられている。
Prior Art and Problems In a system using a processor that operates according to a program, the program may run out of control due to noise or other causes while the program is running. As a backup method when a program runs out of control, a timer counter (watchdog timer) configured by hardware is provided, and the counter is cleared at fixed intervals by the program. If the program stops running, it is assumed that the program has gone out of control, and a hardware interrupt is issued to the processor by a timer count over, so that the program is restarted from the initial stage. Conventionally, if this occurs frequently, a system is used in which an alarm is issued by software and the system is stopped.

しかしながらこのような従来のバツクアツプ方
式では、プログラム走行が不可能なハードウエア
故障の場合、タイマカウンタのクリアとイニシア
ルスタートとが繰り返し行われる状態となり、装
置が全く異常であるにも拘らずアラーム発報が行
われなくなり、そのため装置の監視が不可能にな
るという問題があつた。
However, with such conventional backup methods, if there is a hardware failure that makes it impossible to run the program, the timer counter will be cleared and the initial start will be repeated, and an alarm will be issued even if the device is completely abnormal. This caused the problem that monitoring of the equipment was no longer possible.

発明の目的 本発明はこのような従来技術の問題点を解決し
ようとするものであつて、その目的は、プログラ
ムによつて動作するプロセツサを具えたシステム
において一定速度でカウントアツプするタイマカ
ウンタを具え、プログラムによつて一定時間ごと
にカウンタクリアを行い該タイマのカウントオー
バによりプログラムのイニシアルスタートを行
い、さらにこのような再起動が頻繁に行われた場
合にソフトウエアによつてアラームを発報すると
ともにシステムを停止させる方式において、プロ
グラムの走行不能な場合にもアラーム発報を行う
ことができるプロセツサバツクアツプ方式を提供
することにある。
Purpose of the Invention The present invention aims to solve the problems of the prior art, and its purpose is to provide a timer counter that counts up at a constant speed in a system that includes a processor that operates according to a program. , the program clears the counter at fixed time intervals, initializes the program when the timer counts over, and furthermore, if such restarts occur frequently, the software issues an alarm. Another object of the present invention is to provide a processor backup method that can issue an alarm even when a program cannot run, in a method for stopping the system.

発明の実施例 図は本発明のプロセツサバツクアツプ方式の一
実施例の構成を示している。図において1はプロ
セツサ、2はプロセツサ1内に設けられたタイマ
カウンタ、3は本発明の方式によるバツクアツプ
回路を示している。またバツクアツプ回路3にお
いて、11はローパスフイルタおよびバツフア、
12はアンドゲート、13はカウンタ、14はタ
イマ、15はアンドゲート、16はインバータ、
17はナンドゲート、18はオアゲート、19は
マニユアルリセツトスイツチである。
Embodiment of the Invention The figure shows the configuration of an embodiment of the processor backup system of the present invention. In the figure, 1 is a processor, 2 is a timer counter provided in the processor 1, and 3 is a backup circuit according to the method of the present invention. In the backup circuit 3, 11 is a low-pass filter and a buffer;
12 is an AND gate, 13 is a counter, 14 is a timer, 15 is an AND gate, 16 is an inverter,
17 is a NAND gate, 18 is an OR gate, and 19 is a manual reset switch.

プロセツサ1はプログラムによつて一定時間ご
とにタイマカウンタ2をクリアする。タイマカウ
ンタ2は常時一定周期のクロツクによつてアツプ
カウントされており、プログラムの暴走によつて
プロセツサ1からクリアされずタイムオーバーし
たとき、暴走アラーム信号を発生する。アラー
ム信号はバツクアツプ回路3に入力され、ロー
パスフイルタおよびバツフア11においてノイズ
の除去と増幅を行われたのち、ゲート12を経て
カウンタ13のアツプカウント端子UCに入力さ
れる。カウンタ13は通常タイマ14から一定周
期ごとに発生する信号をそのダウンカウント端
子DCに入力されることによつてダウンカウント
されており、タイマカウンタ2から発生する暴走
アラーム信号の発生が頻繁でない限りその計数
値が0になつている。
The processor 1 clears the timer counter 2 at regular intervals according to a program. The timer counter 2 is always incremented by a clock having a constant cycle, and when the program runs out of control and is not cleared by the processor 1 and times out, it generates a runaway alarm signal. The alarm signal is input to the backup circuit 3, noise removed and amplified by a low-pass filter and buffer 11, and then input to the up-count terminal UC of the counter 13 via the gate 12. The counter 13 is usually down-counted by inputting a signal generated at regular intervals from the timer 14 to its down-count terminal DC, and unless the runaway alarm signal generated from the timer counter 2 occurs frequently, The count value has become 0.

暴走状態が発生するとアラーム信号はカウン
タ13をアツプカウントするが、特定のカウント
値xに達しない限りカウントオーバ信号が発生せ
ず、従つてアラーム信号はナンドゲート17を
経てクリア信号CLRとして送出され、図示され
ないプロセツサバスを経てプロセツサ1に与えら
れる。プロセツサ1はクリア信号CLRによりタ
イマカウンタ2をクリアしてアラーム信号を一
旦オフにし、ソフトウエアをイニシアルスタート
する。
When a runaway condition occurs, the alarm signal causes the counter 13 to count up, but the count-over signal is not generated until a specific count value x is reached.Therefore, the alarm signal is sent out as the clear signal CLR via the NAND gate 17, as shown in the figure. It is given to processor 1 via a processor bus that is not processed. The processor 1 clears the timer counter 2 using the clear signal CLR, temporarily turns off the alarm signal, and initializes the software.

いま暴走状態が頻繁に発生するようになると、
アラーム信号によるタイマ13のアツプカウン
トがタイマの信号によるダウンカウントを上ま
わつて、タイマ13のカウント値は次第に増加す
る。タイマ13のカウント値が値xに達するとカ
ウントオーバ端子COからカウントオーバ信号が
発生し、これによつてゲート17が閉じてクリア
信号CLRが出力されなくなり、従つてタイマカ
ウンタ2はクリアされずイニシアル起動も行われ
ない。そのためアラーム信号が出力されたまま
となり、これによつてプログラムの暴走状態を連
続的に外部へ出力できる。
Now that runaway situations are occurring frequently,
As the up count of the timer 13 due to the alarm signal exceeds the down count due to the timer signal, the count value of the timer 13 gradually increases. When the count value of the timer 13 reaches the value x, a count over signal is generated from the count over terminal CO, which closes the gate 17 and no longer outputs the clear signal CLR. Therefore, the timer counter 2 is not cleared and remains at the initial state. It doesn't start either. Therefore, the alarm signal continues to be output, so that the runaway state of the program can be continuously output to the outside.

なお図においてマニユアルスイツチ19はカウ
ンタ13のクリア端子CLを接地することによつ
てこれを任意にクリアし、これによつてカウンタ
13のイニシアル状態を設定するために用いられ
る。またアンドゲート12はカウンタ13が特定
値xに達したとき閉じることによつて、カウント
オーバ信号の発生を持続するために設けられてい
る。アンドゲート15はカウンタ13のカウント
オーバ信号が発生したとき閉じてカウンタ13の
ダウンカウントを阻止し、カウントオーバ信号の
発生を持続するとともに、カウンタ13のカウン
ト値が0以上のときのみ開いて、カウンタ13が
0以下までダウンカウントされること防止する作
用を行つている。
In the figure, the manual switch 19 is used to arbitrarily clear the clear terminal CL of the counter 13 by grounding it, thereby setting the initial state of the counter 13. Further, the AND gate 12 is provided to continue generating the count-over signal by closing when the counter 13 reaches a specific value x. The AND gate 15 closes when the count over signal of the counter 13 is generated, prevents the counter 13 from down-counting, continues to generate the count over signal, and opens only when the count value of the counter 13 is 0 or more. The function is to prevent 13 from being counted down to 0 or less.

発明の効果 以上説明したように本発明のプロセツサバツク
アツプ方式によれば、一定速度でカウントすると
ともにプログラムによつて一定時間ごとにクリア
されるタイマカウンタを具え、該タイマカウンタ
のタイムオーバによりプログラムのイニシアルス
タートを行うプロセツサ装置において、タイマカ
ウンタのタイムオーバが一定以上の時間的割合で
一定回数以上生じたときこれを検出して出力を発
生し、これによつてアラームを発報するとともに
プログラムのイニシアルスタートを停止せしめる
ようにしたので、プログラム走行が不可能な障害
時にもアラーム発報を行うことができ、従つて装
置の異常を確実に知ることができるとともに、シ
ステムを停止させてプログラムの暴走による影響
を防止することができるようになる。
Effects of the Invention As explained above, the processor backup method of the present invention includes a timer counter that counts at a constant speed and is cleared at regular intervals according to a program, and when the timer counter times out, In a processor device that performs the initial start of a program, when a timer counter timeout occurs more than a certain number of times at a time rate greater than a certain time, this is detected and an output is generated. Since the initial start is stopped, it is possible to issue an alarm even in the event of a failure that prevents the program from running, making it possible to reliably know if there is an abnormality in the device, as well as to stop the system and prevent the program from running out of control. This makes it possible to prevent the effects of

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

図は本発明のプロセツサバツクアツプ方式の一
実施例の構成を示すブロツク図である。 1……プロセツサ、2……タイマカウンタ、3
……バツクアツプ回路、11……ローパスフイル
タおよびバツフア、12……アンドゲート、13
……カウンタ、14……タイマ、15……アンド
ゲート、16……インバータ、17……ナンドゲ
ート、18……オアゲート、19……マニユアル
リセツトスイツチ。
The figure is a block diagram showing the configuration of an embodiment of the processor backup system of the present invention. 1...Processor, 2...Timer counter, 3
... Backup circuit, 11 ... Low pass filter and buffer, 12 ... AND gate, 13
... Counter, 14 ... Timer, 15 ... AND gate, 16 ... Inverter, 17 ... NAND gate, 18 ... OR gate, 19 ... Manual reset switch.

Claims (1)

【特許請求の範囲】[Claims] 1 一定速度でカウントするとともにプログラム
によつて一定時間ごとにクリアされるタイマカウ
ンタを具え該タイマカウンタのタイムオーバによ
りプログラムのイニシアルスタートを行うプロセ
ツサ装置において、タイマカウンタのタイムオー
バが一定以上の時間的割合で一定回数以上生じた
ときこれを検出して出力を発生するタイマ手段を
具え、該タイマ手段の出力発生によつてアラーム
を発報するとともに前記プログラムのイニシアル
スタートを停止せしめることを特徴とするプロセ
ツサバツクアツプ方式。
1. In a processor device that is equipped with a timer counter that counts at a constant speed and is cleared at regular intervals by a program, and that initializes the program when the timer counter times out, The present invention is characterized by comprising a timer means for detecting this and generating an output when it occurs at a rate of a certain number of times or more, and in response to generation of the output from the timer means, an alarm is issued and the initial start of the program is stopped. Processor backup method.
JP57229701A 1982-12-28 1982-12-28 Processor backup system Granted JPS59121554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57229701A JPS59121554A (en) 1982-12-28 1982-12-28 Processor backup system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57229701A JPS59121554A (en) 1982-12-28 1982-12-28 Processor backup system

Publications (2)

Publication Number Publication Date
JPS59121554A JPS59121554A (en) 1984-07-13
JPH0218504B2 true JPH0218504B2 (en) 1990-04-25

Family

ID=16896340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57229701A Granted JPS59121554A (en) 1982-12-28 1982-12-28 Processor backup system

Country Status (1)

Country Link
JP (1) JPS59121554A (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55154604A (en) * 1979-05-18 1980-12-02 Tsubakimoto Chain Co Sequence controller
JPS55157040A (en) * 1979-05-28 1980-12-06 Fujitsu Ltd Failure recognition method for information processor

Also Published As

Publication number Publication date
JPS59121554A (en) 1984-07-13

Similar Documents

Publication Publication Date Title
JP3633092B2 (en) Microcomputer failure monitoring device
US4635258A (en) System for detecting a program execution fault
JP2593915B2 (en) Double microcomputer system runaway prevention circuit
JPH0218504B2 (en)
JPH01312638A (en) Retry controller for abnormality supervisory of micro processor
JPS5946001B2 (en) Momentary power outage handling method for process control equipment
JP3163904B2 (en) CPU device with runaway monitoring function
JPS6041777B2 (en) Program processing monitoring method
JPS6142220A (en) Method of restarting digital protection relay
JPH0740233B2 (en) Data processor re-start control method
JPH01293451A (en) Process load detector
JPH10105207A (en) Microcomputer
JPS6051141B2 (en) Program runaway detection method
JPH0218633A (en) Runaway monitor/restart circuit for microprocessor
JPS5834855B2 (en) Computer monitoring method
JPH0293738A (en) Interrupt processing method
JPH02294220A (en) Cpu automatic reset circuit in microcomputer control
JPH0375882B2 (en)
JPS59148961A (en) Monitoring system of operation of processor
JPS6313559Y2 (en)
JPH02306344A (en) System for suppressing abnormal state of software
JP2752814B2 (en) Watchdog disconnection alarm processing device
JPH05257748A (en) Microprocessor device
JPH0289136A (en) Re-starting system for microprocessor
JP2699761B2 (en) Microcomputer external output circuit