JPH0844593A - Runaway detector - Google Patents

Runaway detector

Info

Publication number
JPH0844593A
JPH0844593A JP6177771A JP17777194A JPH0844593A JP H0844593 A JPH0844593 A JP H0844593A JP 6177771 A JP6177771 A JP 6177771A JP 17777194 A JP17777194 A JP 17777194A JP H0844593 A JPH0844593 A JP H0844593A
Authority
JP
Japan
Prior art keywords
cpu
clock
runaway
timer
interrupt
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
JP6177771A
Other languages
Japanese (ja)
Inventor
Yuji Tazawa
勇治 田澤
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP6177771A priority Critical patent/JPH0844593A/en
Publication of JPH0844593A publication Critical patent/JPH0844593A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide a runaway detector which detects runaway only by a CPU without using a reset IC and informs the occurrence of the runaway to the outside. CONSTITUTION:The CPU 1 is an ordinary central processing unit which incorporates a ROM or RAM 2, etc., in addition to a clock mechanism to clock a time. A LED 5 is connected to the CPU 1 via a resistor 4 between an output port 3 and a power source. The CPU 1 clears the clock interruptive timer of the clock mechanism at a fixed period earlier than timer time set on the timer. When the runaway of the CPU occurs, the clock interruptive timer is completed. An instruction to write a constant on the RAM 2 is prepared in a vector interruption destination by such time completion, and it is set so as to be reset after the instruction is executed. The CPU 1 refers to the RAM 2 at the beginning stage of processing after the application of the power source or reset, and makes the LED 5 put on continuously when no constant is stored, and makes it flicker when the constant is stored.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、リセットICを用いる
ことなくCPUのみで暴走を検出できる暴走検出装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a runaway detecting device capable of detecting runaway only by a CPU without using a reset IC.

【0002】[0002]

【従来の技術】従来より、CPUの暴走を検出する専用
の集積回路としてリセットICがある。このリセットI
Cは、CPUに接続され、そのCPUが暴走すると、そ
の暴走を検出してCPUをリセットするようになってお
り、これによって、CPUの暴走が継続することを防止
している。
2. Description of the Related Art Conventionally, there is a reset IC as a dedicated integrated circuit for detecting runaway of a CPU. This reset I
C is connected to the CPU, and when the CPU runs out of control, it detects the runaway and resets the CPU, thereby preventing the runaway of the CPU from continuing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記の
リセットICはCPUの暴走を検出すると単にCPUを
リセットするだけである。このため、リセット後に一定
時間経過してCPUが再び先頭アドレスからプログラム
の実行を自動的に開始したときは、外部にはCPUが暴
走したことが分からなくなってしまうという問題があっ
た。また、リセットICは、単にCPUの暴走を検出す
るだけの回路であるのに比較して高価であるという問題
もあった。
However, the above reset IC simply resets the CPU when it detects a runaway of the CPU. Therefore, when a certain time has elapsed after the reset and the CPU automatically restarts the execution of the program from the head address, there is a problem that the runaway of the CPU cannot be known to the outside. Further, the reset IC has a problem that it is expensive as compared with a circuit that merely detects a runaway of the CPU.

【0004】本発明の課題は、上記従来の実情に鑑み、
リセットICを用いることなくCPUのみで暴走を検出
し且つ暴走の発生を外部に報知する暴走検出装置を提供
することである。
In view of the above conventional circumstances, an object of the present invention is to
It is an object of the present invention to provide a runaway detection device which detects a runaway only by the CPU without using a reset IC and notifies the occurrence of the runaway to the outside.

【0005】[0005]

【課題を解決するための手段】先ず、請求項1記載に発
明の暴走検出装置は、CPUに内蔵される時計機構の時
計割込タイマと、該時計割込タイマによりベクタ割込が
行われる前に該時計割込タイマを一定周期でクリアする
クリア手段と、該クリア手段が一定周期で上記時計割込
タイマをクリアしなかったことにより上記時計割込タイ
マがベクタ割込を行ったとき、その割込の発生を暴走の
発生として外部に報知する報知手段とを備えて構成され
る。
First, a runaway detecting apparatus according to the first aspect of the present invention is provided with a clock interrupt timer of a clock mechanism incorporated in a CPU and before a vector interrupt is performed by the clock interrupt timer. Means for clearing the clock interrupt timer at a constant cycle, and when the clock interrupt timer performs a vector interrupt because the clear means does not clear the clock interrupt timer at a constant cycle, A notification means is provided to notify the outside of the occurrence of an interrupt as the occurrence of a runaway.

【0006】次に、請求項2記載の発明の暴走検出装置
は、上記時計割込タイマ、クリア手段、及び報知手段
に、上記時計割込タイマがベクタ割込を行ったとき所定
の定数を記憶する記憶手段を更に備えて、上記報知手段
は、上記記憶手段から定数が読み出されたとき上記時計
割込タイマによる割込の発生を外部に報知するように構
成される。
Next, in the runaway detecting apparatus according to the second aspect of the present invention, a predetermined constant is stored in the clock interrupt timer, the clearing means, and the notifying means when the clock interrupt timer makes a vector interrupt. The notification means is configured to notify the outside of the occurrence of an interrupt by the clock interrupt timer when a constant is read from the storage means.

【0007】上記報知手段は、例えば請求項3記載によ
うに、上記CPUと電源との間に接続されるLEDで構
成される。
The notifying means comprises, for example, an LED connected between the CPU and a power source as described in claim 3.

【0008】[0008]

【作用】請求項1記載の発明は、クリア手段がCPUに
内蔵される時計機構の時計割込タイマを、該時計割込タ
イマによりベクタ割込が行われる前に一定周期でクリア
する。時計割込タイマはクリア手段が一定周期でクリア
しなかったときベクタ割込を行う。報知手段はその割込
を暴走の発生として外部に報知する。
According to the first aspect of the invention, the clearing means clears the clock interrupt timer of the clock mechanism incorporated in the CPU at a constant cycle before the vector interrupt is performed by the clock interrupt timer. The clock interrupt timer performs vector interrupt when the clearing means does not clear in a fixed cycle. The notification means notifies the interrupt to the outside that a runaway has occurred.

【0009】請求項2記載の発明は、上記各手段の作用
に加えて、記憶手段が時計割込タイマがベクタ割込を行
ったとき所定の定数を記憶し、その定数が記憶手段から
読み出されたとき報知手段は暴走が発生したと外部に報
知する。
In addition to the operation of each of the above means, the storage means stores a predetermined constant when the clock interrupt timer makes a vector interrupt, and the constant is read from the storage means. When notified, the notification means notifies the outside that a runaway has occurred.

【0010】これにより、リセットICを用いることな
くCPUのみで暴走を検出し且つ暴走の発生を外部に報
知することができる。
Thus, the runaway can be detected only by the CPU and the occurrence of the runaway can be notified to the outside without using the reset IC.

【0011】[0011]

【実施例】以下、本発明の実施例について図面を参照し
ながら詳細に説明する。図1は、一実施例の構成図であ
る。同図において、CPU1は、特には図示しないが、
システムクロックの他に、時間を計時するための時計機
構を有し、その他、読み出し専用メモリであるROM(R
ead Only Memory)や加算器、減算器、比較器、各種のレ
ジスタ等を備えた通常の中央演算処理装置である。この
CPU1は、読み出し書き込み自在なメモリであるRA
M(Random Access Memory)2を内蔵しており、出力ポー
ト3と電源間に抵抗4を介してLED5が接続されてい
る。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a configuration diagram of an embodiment. In the figure, the CPU 1 is not particularly shown,
In addition to the system clock, it also has a clock mechanism for measuring time, and a ROM (R
It is an ordinary central processing unit having an ead only memory), an adder, a subtractor, a comparator, various registers, and the like. This CPU 1 is an RA
An M (Random Access Memory) 2 is built in, and an LED 5 is connected between an output port 3 and a power supply via a resistor 4.

【0012】上記内蔵のROMには、システムプログラ
ムが格納されており、CPU1は、このシステムプログ
ラムに基づいて上記の各構成部分を制御しながら、ユー
ザにより不図示の外部メモリに格納されるアプリケーシ
ョン・プログラム等を実行する。
A system program is stored in the built-in ROM, and the CPU 1 controls an application program stored in an external memory (not shown) by a user while controlling each of the above-mentioned components based on the system program. Execute programs etc.

【0013】上記出力ポート3は、CPU1が通常に動
作している場合は、出力が“L”レベルに維持される。
したがって、LED5には順方向に電圧が印加されるた
め、LED5が常時点灯する。
The output of the output port 3 is maintained at the "L" level when the CPU 1 is operating normally.
Therefore, since a voltage is applied to the LED 5 in the forward direction, the LED 5 is constantly turned on.

【0014】そして、上記時計機構は、時刻データを生
成するために時計割込タイマにより一定周期でベクタ割
込を発生させる。各種の割込のうち、本来であれば、上
記時計割込タイマによる割り込みが発生したベクタアド
レスでは、例えば上記時間割込タイマの設定が1/10
秒であれば1/10秒毎に、或いは時間割込タイマの設
定が1/100秒であれば1/100毎に、時間を記憶
するメモリの時刻データが逐次更新されるべく構成され
ている。しかし本実施例では、上記時計機構の時計割込
タイマにより行われるベクタ割込のアドレスには、他の
命令が組み込まれており、この時計機構を利用すること
によって暴走を検出しようとしてる。
The clock mechanism causes the clock interrupt timer to generate vector interrupts at regular intervals in order to generate time data. Of the various interrupts, originally, at the vector address where the interrupt by the clock interrupt timer occurs, for example, the time interrupt timer is set to 1/10.
If it is seconds, the time data in the memory for storing time is sequentially updated every 1/10 seconds, or every 1/100 if the time interrupt timer is set to 1/100 seconds. However, in this embodiment, another instruction is incorporated in the address of the vector interrupt performed by the clock interrupt timer of the clock mechanism, and the runaway is detected by utilizing this clock mechanism.

【0015】次に、図2に示すフローチャートを用い
て、上記構成の実施例における暴走検出の処理動作を説
明する。尚、この処理では、例えばシーケンス制御を行
なうアプリケーション・プログラム(シーケンスプログ
ラム)を実行する場合を例にとって説明する。一般に、
このシーケンス制御の実行(シーケンスプログラムの実
行)では、センサ、スイッチ、計器、演算結果等のデー
タの読み込みを、一定周期で行なっており、この周期に
基づいて、リレー、モータ等の様々な出力を時間的に制
御している。図2のフローチャートにおいて、「繰り返
し」とあるのは、特には図示していないが、上記のシー
ケンスプログラムのメインルーチンの部分をループ化し
て示したものである。本実施例では、上記メインルーチ
ンの先頭で時計割込タイマに所定の値を設定し、その時
計割込タイマによりベクタ割込が行われる以前のタイミ
ングとなる一定周期でその時計割込タイマをクリアする
ようにしている。
Next, the processing operation of the runaway detection in the embodiment having the above-mentioned configuration will be described with reference to the flow chart shown in FIG. In this processing, for example, a case of executing an application program (sequence program) for performing sequence control will be described. In general,
In execution of this sequence control (execution of sequence program), reading of data such as sensors, switches, instruments, calculation results, etc. is performed in a fixed cycle, and various outputs of relays, motors, etc. are output based on this cycle. It is controlled in time. In the flow chart of FIG. 2, “repeated” is a loop of the main routine portion of the above sequence program, which is not shown. In this embodiment, a predetermined value is set in the clock interrupt timer at the beginning of the main routine, and the clock interrupt timer is cleared at a constant cycle that is the timing before vector interrupt is performed by the clock interrupt timer. I am trying to do it.

【0016】同図に示すフローチャートにおいて、先ず
CPU1は、RAM2の所定領域を参照し、その所定領
域に所定の定数が記憶されているか否かを判別する(ス
テップS1)。この処理は、後述する暴走によるリセッ
トが行われているか否かを判別する処理である。
In the flowchart shown in the figure, first, the CPU 1 refers to a predetermined area of the RAM 2 and determines whether or not a predetermined constant is stored in the predetermined area (step S1). This process is a process of determining whether or not a reset due to a runaway described later is being performed.

【0017】上記の判別で定数が記憶されていない場合
は(S1がNo)、暴走は起きていないと判別し、出力
ポート3の出力を“L”に維持する。これによってLE
D5が点灯し続ける(ステップS2)。
If the constant is not stored in the above determination (No in S1), it is determined that no runaway has occurred and the output of the output port 3 is maintained at "L". This makes LE
D5 continues to light (step S2).

【0018】続いて、RAM2をクリアする(ステップ
S4)。この処理は、RAM5の初期設定であり、後に
続くシーケンス制御の処理の中で使用するために、RA
M5の領域を全てクリアする処理である。
Then, the RAM 2 is cleared (step S4). This process is the initial setting of the RAM 5, and is used for the RA in order to be used in the process of the sequence control which follows.
This is a process of clearing the entire area of M5.

【0019】そのシーケンス処理では、先ず時計機構の
時計割込タイマに所定の時間データを設定する(ステッ
プS5)。この設定される時間データは、シーケンスプ
ログラムの処理周期等を勘案して適宜の周期となるよう
に設定する。
In the sequence processing, first, predetermined time data is set in the clock interrupt timer of the clock mechanism (step S5). The set time data is set to have an appropriate cycle in consideration of the processing cycle of the sequence program.

【0020】次に、通常のシーケンスプログラム(不図
示)を実行し、上記時計割込タイマに設定した時間デー
タよりも短い周期となる所定の一定周期で、時計割込タ
イマの値を「0」クリアする(ステップS6)。
Next, a normal sequence program (not shown) is executed, and the value of the clock interrupt timer is set to "0" at a predetermined constant cycle which is shorter than the time data set in the clock interrupt timer. Clear (step S6).

【0021】続いて、上記シーケンスプログラムの実行
と、一定周期毎の時計割込タイマに対するクリアとを順
次繰り返す(ステップS7・・・S8)。そして、シー
ケンスプログラムが一巡すれば、再び上記ステップS5
〜S8を行う。
Subsequently, the execution of the sequence program and the clearing of the clock interrupt timer at regular intervals are sequentially repeated (steps S7 ... S8). When the sequence program completes one cycle, the above step S5
~ S8 is performed.

【0022】これにより、シーケンスプログラムが正常
に実行されている間は、時計割込タイマが、設定された
タイマ値をカウントアップする前に「0」クリアされる
ため、時計割込は発生しない。
As a result, during normal execution of the sequence program, the clock interrupt timer is cleared to "0" before counting up the set timer value, so that no clock interrupt occurs.

【0023】上記処理で、もしCPU1が暴走すると、
CPU1は正常のシーケンスプログラムの処理の場合と
は異なるアドレス順で処理を実行していくことになる。
或いは同一の複数アドレスをループして処理を繰り返す
等のことを行うようになる。したがって、時計割込タイ
マに対する一定周期毎のクリアが行われず、このため、
時計割込タイマがカウントアップし、この時計割込タイ
マによるベクタ割込が発生する。ベクタ割込が発生する
と、そのベクタ割込に対応するベクタアドレスにアドレ
スポインタのアドレス値が強制的に書き替えられるか
ら、暴走中であったCPU1の処理は、上記アドレスポ
インタで示されるベクタアドレスに移行する。
In the above process, if the CPU 1 runs out of control,
The CPU 1 executes processing in an address order different from that in the case of processing a normal sequence program.
Alternatively, the same plural addresses are looped to repeat the processing. Therefore, the clock interrupt timer is not cleared at regular intervals.
The clock interrupt timer counts up, and a vector interrupt is generated by this clock interrupt timer. When a vector interrupt occurs, the address value of the address pointer is forcibly rewritten to the vector address corresponding to the vector interrupt, so that the process of the CPU 1 that was in the runaway state is changed to the vector address indicated by the address pointer. Transition.

【0024】本実施例においては、このベクタアドレス
で、先ず、RAM2の所定領域に所定の定数、例えば
「1」を書き込む処理を実行し(ステップS9)、続い
て、リセット処理を行う(ステップS10)。尚、CP
Uにはリセット命令を有しないものもあるが、本実施例
はリセット命令を有するCPUの場合を例として説明し
ている。このリセット命令では、フラグ、スタック、プ
ログラムカウンタ等が初期設定される。そして、これら
のリセット処理に要する一定時間経過後には、自動的に
プログラムの先頭から処理が再開される。この処理再開
は、電源が初めて入力されることにより開始される処理
の場合と全く同一である。したがって、このままでは、
上記の暴走があったか否かを外部から知ることはできな
い。
In this embodiment, with this vector address, first, a process of writing a predetermined constant, for example, "1" in a predetermined area of the RAM 2 is executed (step S9), and then a reset process is executed (step S10). ). In addition, CP
Although some U do not have a reset command, this embodiment has been described by taking the case of a CPU having a reset command as an example. With this reset instruction, flags, stack, program counter, etc. are initialized. Then, after a certain time required for these reset processes has elapsed, the process is automatically restarted from the beginning of the program. This restart of the process is exactly the same as the process started when the power is first input. Therefore, as it is,
It is not possible to know from the outside whether or not the above runaway occurred.

【0025】しかし、本実施例では、上記暴走により、
時計割込タイマによるベクタ割込によって、RAM2の
所定領域に定数「1」が書き込まれている。上記ステッ
プS2の判別では、このRAM2の定数「1」が判別さ
れるので(S1がYes)、この判別に基づいてCPU
1は、出力ポート3から“L”と“H”を交互に出力す
る(ステップS3)。上述したように出力ポート3の出
力が“L”であるとLED5は点灯するが、出力ポート
3の出力が“H”であると、LED5への印加電圧の方
向が逆方向になってLED5は消灯する。したがって、
上記のように出力ポート3から“L”と“H”が交互に
出力されることによってLED5は点滅する。このLE
D5の点滅は、以降、CPUが正常に動作している間も
継続する。これによって、ユーザは、CPU1が暴走し
たことを知ることができる。
However, in this embodiment, due to the above-mentioned runaway,
The constant "1" is written in a predetermined area of the RAM 2 by the vector interruption by the clock interruption timer. In the determination of step S2, since the constant "1" of the RAM2 is determined (S1 is Yes), the CPU is determined based on this determination.
1 alternately outputs "L" and "H" from the output port 3 (step S3). As described above, when the output of the output port 3 is “L”, the LED 5 is turned on, but when the output of the output port 3 is “H”, the direction of the voltage applied to the LED 5 is reversed and the LED 5 is turned on. Turn off the light. Therefore,
The LED 5 blinks by alternately outputting "L" and "H" from the output port 3 as described above. This LE
The blinking of D5 continues thereafter while the CPU is operating normally. This allows the user to know that the CPU 1 has runaway.

【0026】上記実施例においては、CPU1がリセッ
ト命令を有している場合について説明したが、リセット
命令が無いCPUの場合についても同様に時計機構を用
いて暴走の検出ができる。これを他の実施例として以下
に説明する。
In the above embodiment, the case where the CPU 1 has a reset command has been described, but in the case of a CPU that does not have a reset command, runaway can be similarly detected using the clock mechanism. This will be described below as another embodiment.

【0027】この、他の実施例においてもハードウエア
構成は、図1に示した構成と同一である。ただ、この他
の実施例においては、CPU1にリセット命令が無いこ
とのみが図1の場合と異なる。
The hardware configuration of the other embodiments is the same as that shown in FIG. However, the other embodiment is different from the case of FIG. 1 only in that the CPU 1 has no reset command.

【0028】この他の実施例における暴走検出の処理動
作を、図3に示すフローチャートを用いて説明する。
尚、この処理も、シーケンス制御を行なうシーケンスプ
ログラムを実行する場合を例にとって説明する。この場
合も、図3のフローチャートにおいて「繰り返し」とあ
るのは、特には図示していないが、上記シーケンスプロ
グラムのメインルーチンの部分をループ化して示したも
のである。この場合も、上記メインルーチンの先頭で時
計割込タイマに所定の値を設定し、その時計割込タイマ
によりベクタ割込が行われる以前のタイミングとなる一
定周期でその時計割込タイマをクリアするようにしてい
る。
The processing operation of runaway detection in another embodiment will be described with reference to the flow chart shown in FIG.
Note that this processing will also be described by taking a case of executing a sequence program for performing sequence control as an example. Also in this case, "repeated" in the flowchart of FIG. 3 is a loop of the main routine portion of the sequence program, although not particularly shown. In this case as well, at the beginning of the main routine, a predetermined value is set in the clock interrupt timer, and the clock interrupt timer is cleared at a constant cycle that is the timing before vector interrupt is performed by the clock interrupt timer. I am trying.

【0029】同図のフローチャートにおいて、CPU1
は、先ず、出力ポート3の出力を“L”にする。これに
よりLED5が点灯する(ステップS11)。続いて、
RAM2をクリアする(ステップS12)。この処理
も、先の実施例と同様にRAM5の初期設定であり、後
に続くシーケンス制御の処理の中で使用するために、R
AM5の領域を全てクリアする処理である。
In the flowchart of FIG.
First sets the output of the output port 3 to "L". This turns on the LED 5 (step S11). continue,
The RAM 2 is cleared (step S12). This process is also the initial setting of the RAM 5 as in the previous embodiment, and the R 5
This is a process of clearing the entire area of AM5.

【0030】そのシーケンス処理では、ステップS13
〜S16に示す処理は、図2のステップS5〜S8に示
した処理と同様である。すなわち、適宜の周期となるよ
う時計割込タイマに時間データを設定した後、通常のシ
ーケンスプログラムを実行しながら、その設定した時間
データよりも短い周期となる所定の一定周期で時計割込
タイマの値を「0」クリアするということを繰り返す。
したがって、この場合も、シーケンスプログラムが正常
に実行されている間は、時計割込タイマによる時計割込
は発生しない。
In the sequence processing, step S13
The processing shown in to S16 is the same as the processing shown in steps S5 to S8 of FIG. That is, after setting the time data in the clock interrupt timer so as to have an appropriate cycle, while executing the normal sequence program, the clock interrupt timer is set at a predetermined constant cycle that is shorter than the set time data. The process of clearing the value "0" is repeated.
Therefore, also in this case, the clock interrupt by the clock interrupt timer does not occur while the sequence program is normally executed.

【0031】そして、もしCPU1が暴走すると、上記
の時計割込(ベクタ割込)が発生する。この場合は、そ
のベクタ割込に対応するベクタアドレスにおける処理で
は、CPU1は、出力ポート3から“L”と“H”を交
互に出力する処理を行う。これによってLED5が点滅
する(ステップS17)。このように、本実施例では暴
走により時計割込タイマによるベクタ割込が発生する
と、すぐにLED5を点滅させる処理を行う。
If the CPU 1 runs out of control, the above clock interrupt (vector interrupt) occurs. In this case, in the process at the vector address corresponding to the vector interrupt, the CPU 1 performs a process of alternately outputting "L" and "H" from the output port 3. This causes the LED 5 to blink (step S17). As described above, in this embodiment, when a vector interrupt is generated by the clock interrupt timer due to a runaway, the LED 5 is immediately blinked.

【0032】そして、この後、上記ステップS12に移
行して、ステップS12〜S16を行うが、上記のよう
にLED5が点滅しているので、外部ではCPU1が暴
走したことが直ちに判明する。
Then, after this, the process shifts to the step S12 and steps S12 to S16 are performed. However, since the LED 5 is blinking as described above, it is immediately known that the CPU 1 has runaway outside.

【0033】[0033]

【発明の効果】以上、詳細に説明したように、本発明に
よれば、CPUに通常に内蔵されている時計機構を用い
て暴走を検出してリセットできるので、高価なリセット
ICが不要となり、したがって製品コストが低減する。
また、暴走検出によりLEDを点滅させているので、リ
セット後にCPUが再び動作していても外部からは暴走
のあったことを必ずら知ることができる。したがって、
暴走に気づかぬまま時間が経過するという危険を回避で
き、また、暴走に対して早めの処置を講ずることができ
るため、例えばシーケンス制御等の作業環境の早期向上
に貢献する。
As described above in detail, according to the present invention, since the runaway can be detected and reset by using the clock mechanism normally built in the CPU, an expensive reset IC becomes unnecessary, Therefore, the product cost is reduced.
Further, since the LED is made to blink by the runaway detection, it is possible to know from the outside that the runaway has occurred even if the CPU is operating again after the reset. Therefore,
Since it is possible to avoid the risk that the time passes without noticing the runaway and to take an early measure against the runaway, it contributes to the early improvement of the work environment such as sequence control.

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

【図1】一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment.

【図2】一実施例における暴走検出の処理動作を説明す
るフローチャートである。
FIG. 2 is a flowchart illustrating a processing operation of runaway detection in one embodiment.

【図3】他の実施例における暴走検出の処理動作を説明
するフローチャートである。
FIG. 3 is a flowchart illustrating a processing operation of runaway detection in another embodiment.

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

1 CPU 2 RAM 3 出力ポート 4 抵抗 5 LED 1 CPU 2 RAM 3 Output port 4 Resistor 5 LED

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 CPU(中央演算処理装置)に内蔵され
る時計機構の時計割込タイマと、 該時計割込タイマによりベクタ割込が行われる前に該時
計割込タイマを一定周期でクリアするクリア手段と、 該クリア手段が一定周期で前記時計割込タイマをクリア
しなかったことにより前記時計割込タイマがベクタ割込
を行ったとき、その割込の発生を暴走の発生として外部
に報知する報知手段と、 を有することを特徴とする暴走検出装置。
1. A clock interrupt timer of a clock mechanism built in a CPU (Central Processing Unit), and the clock interrupt timer is cleared at a constant cycle before vector interrupt is performed by the clock interrupt timer. When the clock interrupt timer performs a vector interrupt by the clearing means and the clearing means does not clear the clock interrupt timer in a constant cycle, the occurrence of the interrupt is notified to the outside as occurrence of runaway. A runaway detection device comprising:
【請求項2】 前記時計割込タイマがベクタ割込を行っ
たとき所定の定数を記憶する記憶手段を更に備えて、前
記報知手段は、前記記憶手段から前記定数が読み出され
たとき前記時計割込タイマによる割込の発生を外部に報
知することを特徴とする請求項1記載の暴走検出装置。
2. The clock interrupt timer further comprises a storage unit for storing a predetermined constant when the vector interrupt is performed, and the notification unit is configured to read the clock when the constant is read from the storage unit. 2. The runaway detection device according to claim 1, wherein the occurrence of an interrupt by the interrupt timer is notified to the outside.
【請求項3】 前記報知手段は、前記CPUと電源間に
接続されるLED(発行ダイオード)であることを特徴
とする請求項1又は2記載の暴走検出装置。
3. The runaway detecting device according to claim 1, wherein the notifying unit is an LED (issuing diode) connected between the CPU and a power source.
JP6177771A 1994-07-29 1994-07-29 Runaway detector Withdrawn JPH0844593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6177771A JPH0844593A (en) 1994-07-29 1994-07-29 Runaway detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6177771A JPH0844593A (en) 1994-07-29 1994-07-29 Runaway detector

Publications (1)

Publication Number Publication Date
JPH0844593A true JPH0844593A (en) 1996-02-16

Family

ID=16036841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6177771A Withdrawn JPH0844593A (en) 1994-07-29 1994-07-29 Runaway detector

Country Status (1)

Country Link
JP (1) JPH0844593A (en)

Similar Documents

Publication Publication Date Title
JP2000322264A (en) Electronic equipment
JPH0844593A (en) Runaway detector
JP3986670B2 (en) Screen saver control device and storage medium storing program for causing computer to perform processing in the device
JPH09212389A (en) Method and device for detecting abnormal state of computer system
JP2978820B2 (en) Information processing device activation method
JPS63816B2 (en)
JPH0635757A (en) Abnormality detector of cpu
JP2000181583A (en) Hit detecting device
JPS63269239A (en) Processor load measuring system
JP2002229663A (en) Information processor
JPH03292545A (en) Detection/recovery device for program loop
JP4535663B2 (en) State machine control method and state machine
JP3302149B2 (en) Computer system
JPH0683652A (en) Microcomputer system
JPH0475147A (en) Time monitoring device in information processing system
JPH05257745A (en) Runaway-monitoring system for microcomputer
JP2552247B2 (en) Information processing device
JP2004171040A (en) Timer circuit
JPH09179748A (en) Data processor
JPH09190360A (en) Microcomputer and its ranaway monitoring processing method
JPH05233851A (en) Microprocessor
JPH05257749A (en) Program-runaway detector
JPH04148430A (en) Time out control system in emulator
JPH02287633A (en) Data processing control system
JPH03246603A (en) Rapid counter

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