JPH0194452A - Method for supervising central processing unit - Google Patents

Method for supervising central processing unit

Info

Publication number
JPH0194452A
JPH0194452A JP62253109A JP25310987A JPH0194452A JP H0194452 A JPH0194452 A JP H0194452A JP 62253109 A JP62253109 A JP 62253109A JP 25310987 A JP25310987 A JP 25310987A JP H0194452 A JPH0194452 A JP H0194452A
Authority
JP
Japan
Prior art keywords
output
circuit
processing unit
central processing
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.)
Pending
Application number
JP62253109A
Other languages
Japanese (ja)
Inventor
Masayuki Ogura
正幸 小倉
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP62253109A priority Critical patent/JPH0194452A/en
Publication of JPH0194452A publication Critical patent/JPH0194452A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent the destruction of a control object due to a reckless operation by providing a supervising circuit to confirm that the signal of a CPU is outputless and to generate an output, resetting the CPU by means of the output, simultaneously, calculating the prescribed number of output numbers, and giving a caution. CONSTITUTION:A supervising circuit 12 is connected to the output terminal of a CPU 11, it is confirmed that the signal of the output terminal of a within- reference time is outputless and the output is generated, and the CPU 11 is automatically reset. Since a calculating means 13 is reset or preset by the output of a timer circuit 14 to be started by means of the prescribed output value of a calculating means 13 to calculate the output of the supervising circuit 12 or by means of the initial output of the supervising circuit 12, it is confirmed that the signal of a prescribed frequency from the supervising circuit 12 within the setting time of the timer circuit 14 is executed and the calculating means 13 executes the output, and thereby, the caution can be given. Thus, the CPU 11 is automatically reset to a disturbance for a short period, the caution is given to the external part to the disturbance for a long period, and the destruction of the control object can be prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ファクシミリ−1洗濯機、ビデオ等の電気製
品やその他各種制御装置の制御を行う中央処理装置の監
視方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for monitoring a central processing unit that controls electric appliances such as a facsimile machine, a washing machine, and a video camera, as well as various other control devices.

〔従来の技術〕[Conventional technology]

近年、電気製品の制御においてマイクロコンピュータを
用いることが多くなってきたが、このようなマイクロコ
ンピュータによる制御は予めプログラムされたリードオ
ンリーメモリROMに格納された制御用プログラムによ
って行われる。
In recent years, microcomputers have been increasingly used to control electrical products, and control by such microcomputers is performed by a control program stored in a preprogrammed read-only memory ROM.

このような装置においては、外部雑音や電源電圧変動に
よってその制御手段に乱れを生じることがあり、このよ
うな場合は一旦マイクロコンピュータの中央処理装置(
以下CPUともいう)を初期状態にリセットし、再び制
御動作を開始させるリセット動作が人手によりあるいは
不完全な方法で自動的に行われるようになっている。
In such devices, the control means may be disturbed by external noise or power supply voltage fluctuations, and in such cases, the central processing unit of the microcomputer (
A reset operation for resetting the CPU (hereinafter also referred to as CPU) to an initial state and starting control operations again is performed manually or automatically using an incomplete method.

〔発明が解決しようとする問題点] ところが、上記CPUに自動的にリセット信号を与えリ
セットするように回路を構成した場合、常にCPUはリ
セットされようとするので、Nmラインノイズ、静電気
ノイズ、高周波ノイズ等の外乱が短い場合は、支障なく
 cpuは正常動作状態に復帰することができるが、上
記外乱が長時間に渡って生していると、制御不能時間が
長くなり、柊には制御対象が破壊されてしまう場合があ
るという問題点があった。
[Problems to be Solved by the Invention] However, if the circuit is configured to automatically reset the CPU by giving a reset signal, the CPU always tries to be reset, so Nm line noise, static electricity noise, high frequency If the disturbance such as noise is short, the CPU can return to normal operating state without any problem, but if the above disturbance continues for a long time, the uncontrollable time will become longer, and Hiiragi will not be able to control the target. There was a problem in that it could be destroyed.

本発明は、このような事情に鑑みてなされたもので、比
較的短い時間の外乱に対しては自動的にCPUを復帰さ
せるが、長期の外乱に対しては外部に警報を発すると共
に、CPUの起動を禁止する中央処理装置の監視方法を
提供することを目的とする。
The present invention was made in view of the above circumstances, and the CPU is automatically restored in response to a relatively short disturbance, but in the event of a long-term disturbance, an alarm is issued to the outside and the CPU is The purpose of the present invention is to provide a method for monitoring a central processing unit that prohibits the activation of a central processing unit.

〔問題点を解決する手段〕[Means to solve problems]

上記目的に沿う本発明に係る中央処理装置の監視方法は
、中央処理装置の出力端子に接続され基準内時間の上記
出力端子の信号が無出力であることを確認して出力を発
生する監視回路と、該監視回路の出力を計数する計数手
段と、該計数手段の所定の出力値または監視回路の初期
の出力によってスタートし、その出力は上記計数手段の
りセットまたはブリセント人力に接続されているタイマ
ー回路とを有し、上記監視回路の個々の出力によって上
記中央処理装置をリセットすると共に、上記タイマー回
路の設定時間内の上記監視回路の出力数を上記計数手段
によって所定数を計数して警報を発するようにして構成
されている。
A monitoring method for a central processing unit according to the present invention in accordance with the above object is provided by a monitoring circuit that is connected to an output terminal of the central processing unit and generates an output after confirming that the signal at the output terminal is not output during a reference time. , a counting means for counting the output of the monitoring circuit, and a timer whose output is started by a predetermined output value of the counting means or an initial output of the monitoring circuit, and whose output is connected to the glue set or Bricent manual power of the counting means. the central processing unit is reset by each output of the monitoring circuit, and the counting means counts a predetermined number of outputs of the monitoring circuit within a set time of the timer circuit to issue an alarm. It is configured to emit.

ここに、上記計数手段のカウント値が所定の出力値に等
しくなったとき、上記警報が出力され、その警報出力は
、中央処理装置のりセットを禁止するゲートに接続され
ている中央処理装置の監視方法にも本発明は適用される
ものである。
Here, when the count value of the counting means becomes equal to a predetermined output value, the above-mentioned alarm is outputted, and the alarm output is monitored by the central processing unit connected to the gate that prohibits the setting of the central processing unit. The present invention also applies to methods.

〔作用〕[Effect]

本発明に係る中央処理装置の監視方法においては、中央
処理装置の出力端子に監視回路(以下、WDT回路とい
う)が接続され、基準内時間の上記出力端子の信号が無
出力であることを確認して出力を発生するようになって
いるので、この信号によってCPUを自動的にリセット
する。
In the method for monitoring a central processing unit according to the present invention, a monitoring circuit (hereinafter referred to as a WDT circuit) is connected to an output terminal of the central processing unit, and it is confirmed that the signal at the output terminal is not output during a reference time. This signal automatically resets the CPU.

そして、上記WDT回路の出力は計数手段によって計数
されるが、該計数手段の所定の出力値または監視回路の
初期出力によってスタートするタイマー回路の出力によ
って計数手段はリセットまたはプリセットされるので、
上記タイマー回路の設定時間内に上記監視回路からの所
定回数の信号があったことを確認して、計数手段または
一致回路が出力し、これによつて警報を発することが可
能になる。
The output of the WDT circuit is counted by a counting means, and the counting means is reset or preset by the output of a timer circuit that is started by a predetermined output value of the counting means or the initial output of the monitoring circuit.
After confirming that the signal from the monitoring circuit has been received a predetermined number of times within the set time of the timer circuit, the counting means or matching circuit outputs an output, thereby making it possible to issue an alarm.

〔実施例) 続いて、添付した図面を参照しつつ、本発明を具体化し
た一実施例につき説明し、本発明の理解に供する。
[Example] Next, an example embodying the present invention will be described with reference to the attached drawings to provide an understanding of the present invention.

ここに、第1図は本発明の一実施例に係る中央処理装置
の監視方法を適用した制御装置の概略構成図、第2図は
そのタイムチセードである。
Here, FIG. 1 is a schematic configuration diagram of a control device to which a central processing unit monitoring method according to an embodiment of the present invention is applied, and FIG. 2 is a timing diagram thereof.

第1図に示すように、本発明の一実施例に係る中央処理
装置の監視方法を適用した制御装置IOは、CPUII
の出力端子に接続されるWDT回路12と、WDT回路
12の出力パルスを計数する計数手段の一例であるカウ
ンター回路13と、該WDT回路12に接続されるタイ
マー回路14と、上記カウンター回路】3の計数値をリ
セットまたはプリセットするカウント値セノテング回路
15と、上記カウンター回路13の出力に接Vεされる
アラーム回路16とを有している。以下、これらについ
て詳しく説明する。
As shown in FIG. 1, a control device IO to which a central processing unit monitoring method according to an embodiment of the present invention is applied is a CPU
A WDT circuit 12 connected to the output terminal of the WDT circuit 12, a counter circuit 13 which is an example of a counting means for counting output pulses of the WDT circuit 12, a timer circuit 14 connected to the WDT circuit 12, and the above counter circuit]3 It has a count value cenoting circuit 15 for resetting or presetting the count value of , and an alarm circuit 16 connected to the output of the counter circuit 13 Vε. These will be explained in detail below.

上記CPUI 1には周知の通り、該CPUIIをコン
トロールするプログラム及び必要なデータが記憶されて
いるROM18及び電源オン時必要に応じてデータを記
憶する揮発性メモリであるRAM17が接続され、信号
の送受を行っているにのCPUIIの何れかの(単数あ
るいは複数であっても可能、但し複数の場合はゲート回
路等12が接続されているが、このWDT回路12は、
CPUI 1の基準内時間の信号によってリセット(R
ESI)され、該CPUI 1の1基準内時間より長い
時間に設定されたタイマー(あるいはカウンター)によ
って構成され、CPUIIが通常の動作を行って出力端
子から所定の信号を発している時は、WDT回路12の
出力は無いが、CPUIIが暴走し出力端子に信号を発
生しなくなると、設定されたタイマー(あるいはカウン
ター)がタイムアツプしくあるいはカウント終了し)、
CPUIIをリセット(R已32)するのに必要な時間
Hレベルを保持する所定の信号パルスを発生するように
なっている。なお、割り込みによって制御プログラムが
開始する場合、上記出力を割り込み端子(NMI端子)
に人力してもよい。
As is well known, the CPU 1 is connected to a ROM 18 in which a program for controlling the CPU II and necessary data is stored, and a RAM 17 which is a volatile memory to store data as necessary when the power is turned on, and transmits and receives signals. The WDT circuit 12 is connected to one of the CPU IIs (single or multiple is possible; however, in the case of multiple, a gate circuit etc. 12 is connected.
Reset (R
ESI) and is configured by a timer (or counter) set to a time longer than the one standard time of the CPUI 1, and when the CPU II is performing normal operation and emitting a predetermined signal from the output terminal, the WDT There is no output from the circuit 12, but if the CPU II goes out of control and no longer generates a signal at the output terminal, the set timer (or counter) will time out or stop counting.
It is designed to generate a predetermined signal pulse that maintains the H level for the time required to reset the CPU II (R 32). In addition, when the control program is started by an interrupt, the above output is connected to the interrupt terminal (NMI terminal).
It may be done manually.

このWDT回路12が信号パルスを発生すると遅延回路
19及びオープンコレクタ出力のナントゲート20を通
して他の入力(ALM)がHレベルの時、信号が上記C
PUIIのリセット端子に加わり、CPUI 1がリセ
ット(RES2)されるようにならている。
When this WDT circuit 12 generates a signal pulse, the signal passes through the delay circuit 19 and the Nant gate 20 of the open collector output when the other input (ALM) is at H level.
It is connected to the reset terminal of PUII, and the CPUI 1 is reset (RES2).

ここで、遅延回路19を設けたのは、後述するカウンタ
ー回路13(あるいは一致回路)の伝播遅延時間等があ
り該カウンター回路が計数終了したとき、Kr■信号の
方がゲートの一例であるナントゲート20の入力端子に
先に印加されて、Rr丁7が出ないようにする為であり
、またノイズ消滅を考えた時間をプラスしても良いし、
また、カウンター回路13の出力ビツト数(カウント最
大数)を考慮して決定してもよい。
Here, the reason why the delay circuit 19 is provided is that there is a propagation delay time of the counter circuit 13 (or coincidence circuit), which will be described later, and when the counter circuit finishes counting, the Kr■ signal This is to prevent Rr7 from appearing by applying it to the input terminal of the gate 20 first, and it is also possible to add time to take into consideration noise disappearance.
Alternatively, the number may be determined by considering the number of output bits (maximum count number) of the counter circuit 13.

、このWDTI回路12の出力信号を入力とするカウン
ター回路13は、カウント値セッテング回路15によっ
てその値が設定されるようになっていると共範、減算器
30の出力値とカウンター回路13との出力値の一致回
路21を設けており、減算器30で1を減する場合は、
カウンター回路13の次期値を検出して、タイマー回路
14をトリガーすることになる。これによって、タイマ
ー回路14は常に上記WDT回路12が第1番目の信号
パルスを発生した時にカウンター回路13の出力値が次
期値となって、タイマー回路14がトリガーされ新たに
時間を計数する。
, the counter circuit 13 which receives the output signal of the WDTI circuit 12 has a common range when its value is set by the count value setting circuit 15, and the output value of the subtracter 30 and the counter circuit 13 An output value matching circuit 21 is provided, and when subtracting 1 with the subtracter 30,
The next value of the counter circuit 13 is detected and the timer circuit 14 is triggered. As a result, when the WDT circuit 12 generates the first signal pulse, the output value of the counter circuit 13 becomes the next value, and the timer circuit 14 is triggered to newly count time.

ここで、上記実施例においては、タイマー回路14のト
リガーを次期値への変化によって行っているが、回復時
間のあるタイマー回路の場合、カウンター回路13のカ
ウント値が第3番目以降の値によって上記タイマー回路
14にトリガーをかけることも可能であり、更には、再
トリガーしないようにしてWDT回路12から直接にト
リガーさせて上記タイマー回路14を構成することも可
能であり、この場合も回復時間が無いようにすることが
好ましい。
In the above embodiment, the timer circuit 14 is triggered by a change to the next value, but in the case of a timer circuit with a recovery time, the count value of the counter circuit 13 is triggered by a change to the next value. It is also possible to apply a trigger to the timer circuit 14, and furthermore, it is also possible to configure the above-mentioned timer circuit 14 by directly triggering from the WDT circuit 12 without re-triggering, and in this case as well, the recovery time is shortened. It is preferable not to have any.

このタイマー回路14のタイムアツプ時間は、制御対象
の特性、ノイズ環境条件等によって決定され、CPUI
 1が極めて大きな外乱によって断続的に暴走しても制
御対象が破壊しない十分に短い時間以内で、しかも上記
WDT回路12がCPU1lの暴走によって繰り返し信
号パルスを発生してカウンター回路13が所定の出力値
まで十分にカウント終了できる時間以上に設定されてい
るそして、このタイマー回路14の出力はインバータ回
路22、ナンド回路23及びインバータ回路24を介し
て、上記カウンター回路13の非同期のリセットまたは
プリセットを端子に接続している。なお、このタイマー
回路14の出力は設定時間の後にカウンター回路13を
リセットまたはプリセットできる時間Hレベルを保つも
のである従って、ここでの動作は、CPUIIが暴走し
、WDT回路12がパルス信号を発生すると、カウンタ
ー回路13に入力され、このカウンター回路13の所定
の出力値である次期値によってタイマー回路14が時間
計数を開始することになるが、カウンター回路13が所
定数カウントしない内にCPUI 1の暴走が止まり、
WDT回路12の信号パルスが無くなると、該タイマー
回路14の出力信号によって上記カウンター回路13が
リセットまたはプリセットされることになり、カウント
値は所定の設定値になる。
The time-up time of this timer circuit 14 is determined by the characteristics of the controlled object, noise environmental conditions, etc.
1 is intermittently runaway due to an extremely large disturbance, within a sufficiently short time that the controlled object will not be destroyed, and moreover, the WDT circuit 12 repeatedly generates signal pulses due to the runaway of the CPU 11, and the counter circuit 13 outputs a predetermined output value. The output of this timer circuit 14 is set to be longer than the time required to fully finish counting up to Connected. Note that the output of the timer circuit 14 remains at H level for a period of time during which the counter circuit 13 can be reset or preset after the set time. Therefore, the operation here is such that the CPU II goes out of control and the WDT circuit 12 generates a pulse signal. Then, the timer circuit 14 starts counting time based on the next value that is input to the counter circuit 13 and is a predetermined output value of the counter circuit 13. However, before the counter circuit 13 has counted the predetermined number of times, the CPU 1 The rampage stopped,
When the signal pulse of the WDT circuit 12 disappears, the counter circuit 13 is reset or preset by the output signal of the timer circuit 14, and the count value becomes a predetermined set value.

一方、CP U 1.1が暴走しWDT回路12の出力
が断続的にでるようになるとタイマー回路14が出力す
る前に、カウンター回路13がカウント終了し、警報信
号が発せられることになる。
On the other hand, if the CPU 1.1 goes out of control and the WDT circuit 12 outputs intermittently, the counter circuit 13 will finish counting before the timer circuit 14 outputs an output, and an alarm signal will be issued.

この様子を第2図に示すが、aはWDT回路12の出力
信号を、bはタイマー回路14の出力信号を、CはCP
U11のリセット信号(、τ丁子1)を、dはカウンタ
ー回路13の出力信号(K工M)を示し、図においてカ
ウント値セッテング回路15は3に設定している。
This situation is shown in FIG. 2, where a is the output signal of the WDT circuit 12, b is the output signal of the timer circuit 14, and C is the CP
d indicates the output signal of the counter circuit 13 (K-M), and the count value setting circuit 15 is set to 3 in the figure.

自己保持回路31はカウンター回路13の出力または一
致回路の出力を自分自身の信号で保持する為のものであ
り、rπ入力に入力があるとその出力(ALM)はHレ
ベルになる。
The self-holding circuit 31 is for holding the output of the counter circuit 13 or the output of the matching circuit with its own signal, and when there is an input to the rπ input, its output (ALM) becomes H level.

上記カウンター回路13からの出力(または−数回路か
らの出力)は、アラーム回路16に入力されるが、該ア
ラーム回路16は例えば、ブザー、警報ランプ、放置し
ていると危険な制御対象をオフする回路、待機制御装置
(制御装置10と同様の構成であり、これについては図
示せず)の電源投入指令(prTJ)やその起動(■π
1)や割り込み要求(7’lゴ)する為の回路からなり
、CPU 14が一定時間内に断続暴走した場合に制御
対象の保護が出来るようになっている。
The output from the counter circuit 13 (or the output from the minus number circuit) is input to the alarm circuit 16, which can turn off, for example, a buzzer, a warning lamp, or a controlled object that is dangerous if left unattended. circuit, the power-on command (prTJ) of the standby control device (which has the same configuration as the control device 10, and is not shown), and its activation (■π
1) and a circuit for making an interrupt request (7'lgo), and is designed to protect the controlled object if the CPU 14 goes out of control intermittently within a certain period of time.

なお、第1図において、制御対象28からのセンサー出
力、応答信号等がCPUI 1に加えられる。またCP
UIIからの制御出力はm信号で切り代わる複数のマル
チプレクサ−群27(またはバススイッチ等)を介して
制御対象28に送られる。このときALMはHレベルで
ある。にTVがLレベルになると制御対象28を安全に
する為の予め設定されていた入力を加えたり、待機制御
装置(図示せず)からの制御出力を印加する。
In FIG. 1, sensor outputs, response signals, etc. from the controlled object 28 are applied to the CPU 1. Also CP
The control output from the UII is sent to the controlled object 28 via a plurality of multiplexer groups 27 (or bus switches, etc.) which are switched by the m signal. At this time, ALM is at H level. When the TV becomes L level, a preset input for making the controlled object 28 safe is applied, or a control output from a standby control device (not shown) is applied.

また、第1図においてはイニシャルリセット回路29が
与えられており、一方はナントゲート23に与えられ、
他方はバッファ25(オープコレクター出力)、26を
介してcpuzのリセット(τ丁子7)を行うようにな
っているが、これはナントゲート20からのmによって
カウンター回路13がリセットまたはプリセットしない
ように一方向だけに信号を送るものである。
Further, in FIG. 1, an initial reset circuit 29 is provided, one of which is provided to the Nant gate 23,
On the other hand, cpuz is reset (τ clove 7) via buffers 25 (open collector output) and 26, but this is done to prevent the counter circuit 13 from being reset or preset by m from the Nantes gate 20. It sends a signal in only one direction.

なお、ここで更に付は加えて説明すると、永久故障ある
いは長期ノイズの暴走によるALM発生時、日用電化製
品の場合はメイン電源を切って安全を図ることもできる
。だが、その時は警報表示も途絶えるのでメンテナンス
向上等を考え、一定時間警報表示をした後メイン電源を
切ることも可能であり、その一定時間内は予め決定され
た制御対象固有のセーフティインプットで模擬的な制御
入力を制御対象に送り、破壊防止を図る。ここで、上記
警報表示をバッテリバックアップすることによって常時
電源を入れておくことが好ましい。
It should be noted that, to further explain here, when ALM occurs due to permanent failure or long-term runaway noise, in the case of everyday electrical appliances, the main power supply can be turned off to ensure safety. However, at that time, the alarm display will also stop, so in order to improve maintenance, etc., it is possible to turn off the main power after displaying the alarm for a certain period of time. Send appropriate control inputs to the controlled object to prevent destruction. Here, it is preferable to keep the power on at all times by backing up the alarm display with a battery.

高信軌度の要求されるシステムにおいては前記した如く
待機制御装置を備えていて、ALM発生時は制御を移行
させる。警報表示に気付いたオペレータが手動のりセン
トスイッチ等を押し点検する6回復しない場合は、メン
テナンスを次のように行う、第1図に示すスイッチSW
Aをオンし、スイッチSWDをオフし制御装置10を切
り離し修理やテストを行う。正常なら制御装置10を組
み込み上記スイッチSWDをオン、スイッチSWAをオ
フ後、制御装置10は正常制御動作を再開する。
Systems that require high confidence orbits are equipped with a standby control device as described above, which transfers control when an ALM occurs. When the operator notices the alarm display, press the manual glue switch, etc. and check. 6. If the condition does not recover, perform maintenance as follows. Switch SW shown in Figure 1.
A is turned on, switch SWD is turned off, and the control device 10 is disconnected for repair or testing. If it is normal, the control device 10 is installed, the switch SWD is turned on, and the switch SWA is turned off, and then the control device 10 resumes normal control operation.

なお、待機制御装置をループ状に数段付加することも可
能であり、待機制御装置は電源オンのまま待機させてお
くことが好ましく、またノイズの消滅を考え、一定時間
(例えば数秒から士数秒)後に待機制御装置をリセット
した後、割込みをかけ制御プログラムを実行させること
も可能である更には、−回暴走した場合でも警報出力す
ることが好ましく、この場合は上記WDT回路12の出
力に自己保持回路、表示出力ドライバー、警報表示器、
表示リセットスイッチ等を付加することになる。
Note that it is possible to add several stages of standby control devices in a loop, and it is preferable to leave the standby control devices on standby with the power turned on. ) After resetting the standby control device, it is also possible to issue an interrupt and execute the control program.Furthermore, it is preferable to output an alarm even in the case of - times a runaway.In this case, the output of the WDT circuit 12 is Holding circuit, display output driver, alarm indicator,
A display reset switch, etc. will be added.

なお、実施例においてはカウンター回路13はダウンカ
ウンタ−を使用したが、アンプカウンタ−でも可能であ
り、その場合はカウンター回路13の出力とカウンター
値設定回路15との間に一致回路を要し、それからにL
M信号が出力されるようになり、減算器30の代わりに
加算器を入れることになる。アップカウンターの場合キ
ャリー信号をALMにしても良い。
In the embodiment, a down counter was used as the counter circuit 13, but an amplifier counter may also be used. In that case, a matching circuit is required between the output of the counter circuit 13 and the counter value setting circuit 15. Then L
The M signal is now output, and an adder is inserted in place of the subtracter 30. In the case of an up counter, the carry signal may be ALM.

ところで、ダウンカウンタ−を使用する場合でもカウン
ター回路13とカウント値設定回路15との間に一致回
路を設け、その出力をXτV信号とすることもでき、更
には一致回路の代わりに比較回路を用いることも可能で
ある。
Incidentally, even when a down counter is used, a matching circuit can be provided between the counter circuit 13 and the count value setting circuit 15, and the output thereof can be used as the XτV signal.Furthermore, a comparison circuit can be used instead of the matching circuit. It is also possible.

また、ナントゲート20の出力側に遅延回路があっても
良いが、その場合はタイマー回路14の設定時間を長め
にする。
Further, a delay circuit may be provided on the output side of the Nant gate 20, but in that case, the setting time of the timer circuit 14 is made longer.

〔発明の効果〕〔Effect of the invention〕

本発明に係る中央処理装置の監視方法は、以上の説明か
らも明らかなように、短い時間の外乱によってc p 
’uが暴走した場合は、自動的にリセットして、正常動
作に復帰できるようにしている他、所定以上の長期間の
外乱によってはCPU自身の暴走による制御対象の破壊
を防止するための警報を出すことができるようになる。
As is clear from the above description, the method for monitoring a central processing unit according to the present invention is capable of c p
If 'u goes out of control, it is automatically reset so that it can return to normal operation, and an alarm is also set up to prevent the CPU from going out of control and destroying the controlled object due to disturbances that last longer than a specified period. You will be able to produce.

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

第1図は本発明の一実施例に係る中央処理装置の監視方
法の概略構成図、第2図はその動作状態図である。 〔符号の説明〕
FIG. 1 is a schematic configuration diagram of a central processing unit monitoring method according to an embodiment of the present invention, and FIG. 2 is an operational state diagram thereof. [Explanation of symbols]

Claims (4)

【特許請求の範囲】[Claims] (1)中央処理装置の出力端子に接続され基準内時間の
上記出力端子の信号が無出力であることを確認して出力
を発生する監視回路と、該監視回路の出力を計数する計
数手段と、該計数手段の所定の出力値または監視回路の
初期の出力によってスタートし、その出力は上記計数手
段のリセットまたはプリセット入力に接続されているタ
イマー回路とを有し、上記監視回路の個々の出力によっ
て上記中央処理装置をリセットすると共に、上記タイマ
ー回路の設定時間内の上記監視回路の出力数を上記計数
手段によって所定数を計数して警報を発することを特徴
とする中央処理装置の監視方法。
(1) A monitoring circuit that is connected to an output terminal of the central processing unit and generates an output after confirming that the signal at the output terminal is not output during the standard time, and a counting means that counts the output of the monitoring circuit. , a timer circuit starting from a predetermined output value of said counting means or an initial output of said monitoring circuit, the output of which is connected to a reset or preset input of said counting means, said individual output of said monitoring circuit A method for monitoring a central processing unit, characterized in that the central processing unit is reset by the above, and the counting means counts a predetermined number of outputs from the monitoring circuit within a set time of the timer circuit to issue an alarm.
(2)警報出力は、中央処理装置のリセットを禁止する
ゲートに接続されている特許請求の範囲第1項記載の中
央処理装置の監視方法。
(2) The method for monitoring a central processing unit according to claim 1, wherein the alarm output is connected to a gate that prohibits resetting the central processing unit.
(3)遅延回路を介し、上記監視回路の出力で中央処理
装置をリセットする特許請求の範囲第1項記載の中央処
理装置の監視方法。
(3) A method for monitoring a central processing unit according to claim 1, wherein the central processing unit is reset by the output of the monitoring circuit via a delay circuit.
(4)リセット端子のかわりに@NMI@端子を使用す
る特許請求の範囲第1項記載の中央処理装置の監視方法
(4) The method for monitoring a central processing unit according to claim 1, wherein the @NMI@ terminal is used instead of the reset terminal.
JP62253109A 1987-10-06 1987-10-06 Method for supervising central processing unit Pending JPH0194452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62253109A JPH0194452A (en) 1987-10-06 1987-10-06 Method for supervising central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62253109A JPH0194452A (en) 1987-10-06 1987-10-06 Method for supervising central processing unit

Publications (1)

Publication Number Publication Date
JPH0194452A true JPH0194452A (en) 1989-04-13

Family

ID=17246623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62253109A Pending JPH0194452A (en) 1987-10-06 1987-10-06 Method for supervising central processing unit

Country Status (1)

Country Link
JP (1) JPH0194452A (en)

Similar Documents

Publication Publication Date Title
US4287565A (en) Monitoring system for program controlled apparatus
RU2137171C1 (en) Protection braking device with time delay for servo motor control system
JPH10243544A (en) Protective circuit against overcurrent and, method of protection by protective circuit against overcurrent
US4749991A (en) Turn off protection circuit
JPH0194452A (en) Method for supervising central processing unit
JPH04291634A (en) Fault detecting circuit for microcomputer
JP4150946B2 (en) Gas leak alarm
JPH0679279B2 (en) Supervisory control device for microprocessor-applied equipment
JPH03156515A (en) System reset circuit system
JP2774595B2 (en) Operation monitoring device for CPU system
JPS61285315A (en) Automatic combustion control device of remote control type
JPH09212201A (en) Control circuit for production facility
JPS5932466Y2 (en) Power supply for welding machine
JP2982294B2 (en) Instantaneous power failure time detection method for programmable controller
JP2503886B2 (en) Automatic measuring device
JPH03173311A (en) Self diagnosis system for ground relay unit
JPH0638495Y2 (en) Switching control method
SU450183A1 (en) Device for controlling the parameters of objects
SU1151972A1 (en) Device for switching on and restarting microprocessor after occurence of power supply fault
SU1239714A2 (en) Microprogram device for generating instructions for controlling objects and monitoring execution thereof
SU1763703A1 (en) Method and device for controlling condition of power plant
JPH06111159A (en) Power supply abnormality monitoring circuit
JP2749994B2 (en) Numerical control unit
JPH0334032B2 (en)
JPS61246821A (en) Electronic appliance