JPS60222937A - Computer device - Google Patents

Computer device

Info

Publication number
JPS60222937A
JPS60222937A JP59079988A JP7998884A JPS60222937A JP S60222937 A JPS60222937 A JP S60222937A JP 59079988 A JP59079988 A JP 59079988A JP 7998884 A JP7998884 A JP 7998884A JP S60222937 A JPS60222937 A JP S60222937A
Authority
JP
Japan
Prior art keywords
reset signal
monitor program
counter
cpu
timer
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
JP59079988A
Other languages
Japanese (ja)
Inventor
Hiroshi Ogawa
浩 小川
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.)
Nissin Electric Co Ltd
Original Assignee
Nissin 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 Nissin Electric Co Ltd filed Critical Nissin Electric Co Ltd
Priority to JP59079988A priority Critical patent/JPS60222937A/en
Publication of JPS60222937A publication Critical patent/JPS60222937A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Abstract

PURPOSE:To clear up easily causes of abnormality of a CPU by providing a counter set signal generating means, a monitor program executing means, a start means of this executing means, an information storage means, and an information erasing means. CONSTITUTION:When a CPU1' becomes abnormal, a monitor timer 2 expires, and the CPU1' executes an initial start program by the momentary output of a CPU reset signal B. Various information of a monitor program are stored in an emergency information area of a RAM, and various information of the monitor program are erased, and thereafter, execution of the monitor program is started. Simultaneously, the output of the monitor timer 2 is counted by a counter 3. This operation is repeated each time when the CPU1' becomes abnormal; and when the number of times of abnormality occurrence reaches a prescribed value, the counter 3 outputs an output, and the CPU reset signal B is outputted continuously from an OR gate 4, and the CPU1' is reset and is stopped. Various information of the monitor program are stored in a different area each time when abnormality occurs.

Description

【発明の詳細な説明】 この発明はコンピュータ装置に関するものである。[Detailed description of the invention] This invention relates to a computer device.

従来のコンピュータ装置は、第1図に示すように、CP
U(中央演算処理装置)1と監視タイマ2と検出回数カ
ウンタ3とオアゲート4とで構成している。CPUIは
、モニタプログラム中に瞬時的なタイマリセント信号A
を周期的に発生ずる機能を組込んであり、電源投入時ま
たばCP U IJセット信信号炉入力された時に初期
スタートプログラムを実行し、ついでモニタプログラム
を実行するようになっており、また電源投入時に瞬時的
なカウンタリセット信号Cを発生ずるようになっている
。監視タイマ2は、タイマ時間をタイマリセット信号A
の発生周期より長く設定してあり、タイマリセント信号
Aがリセット入力端に加えられる。検出回数カウンタ3
はCPUIからのカウンタリセット信号Cがリセット入
力端に加えられ、オアゲート4は監視タイマ2がタイム
アツプした時または検出回数カウンタ3が所定数カウン
トした時にCf) Uリセット信号BをCPUIに与え
るようになっている。
A conventional computer device, as shown in FIG.
It is composed of a U (central processing unit) 1, a monitoring timer 2, a detection number counter 3, and an OR gate 4. The CPUI receives an instantaneous timer recent signal A during the monitor program.
When the power is turned on or when the CPU IJ set signal is input, the initial start program is executed, and then the monitor program is executed. An instantaneous counter reset signal C is generated when the power is turned on. Monitoring timer 2 uses timer reset signal A to set the timer time.
The timer recent signal A is applied to the reset input terminal. Detection number counter 3
The counter reset signal C from the CPUI is applied to the reset input terminal, and the OR gate 4 gives the Cf)U reset signal B to the CPUI when the monitoring timer 2 times up or when the detection number counter 3 counts a predetermined number. ing.

動作について説明する。まず、電源投入すると、CPU
 1が第2図に示すように初期スタートプログラムを実
行することにより、モニタプログラムの諸情報を消去し
たのち、モニタプログラムの実行を開始する。このとき
、カウンタリセット信号CがCPUIから出力されて検
出回数カウンタ3がリセットされる。
The operation will be explained. First, when the power is turned on, the CPU
1 erases various information of the monitor program by executing an initial start program as shown in FIG. 2, and then starts executing the monitor program. At this time, a counter reset signal C is output from the CPUI and the detection number counter 3 is reset.

そして、監視タイマ2は電源投入後監視を開始し、検出
回数カウンタ3はカウントを開始する。
Then, the monitoring timer 2 starts monitoring after the power is turned on, and the detection number counter 3 starts counting.

今、CPUIが圧密に動作しておれば、CPU1からタ
イマリセット信号Aが周期的に出力され、監視タイマ2
がタイムアツプする11;iにリセットされ、監視タイ
マ2がタイムアンプすることはなく、オアゲート4から
CPUリセット(p; % l(が出力されず、CPU
Iがモニタプログラムの実fiを継続する。
Now, if the CPU is operating tightly, the timer reset signal A is periodically output from the CPU1, and the monitoring timer 2
is reset to 11;
I continues the real fi of the monitor program.

CPU1が部品不良やプログラムネ良等によって異常に
なると、タイマリセット信号へが出力されなくなり、そ
の結果、監視タイマ2がタイムアツプし、オアゲート4
からCP tJリセット信信号炉瞬時的に出力されてC
I) U 1に入力され、CIl[Ilが初期スタート
プログラムを実行するごとにより、モニタプログラムの
諸情報を消去したのち、モニタプログラムの実行を開始
する。また、この時に監視タイマ2の出力を検出回数カ
ウンタ3がカウントする。上記動作はCPUIが異常に
なる毎に繰返されることになり、異當発4j:回数が所
定回数に達すると検出回数カウンタ3が出力を発生し、
オアゲート4からCPしりセント信号Bが連続的に出力
されてCPUIに加えられ、CI) U 1がリセット
され、その状態が保持される。ずなわち、CPUIが停
止することになる。電源をいったんオフにして再投入ず
れは、検出回数カウンタ3がリセットされ、CPUIが
動作可hヒとなる。
If the CPU 1 becomes abnormal due to defective parts or a faulty program, the timer reset signal is no longer output, and as a result, the monitoring timer 2 times up and the OR gate 4
From CP tJ reset signal signal reactor is instantaneously output from C
I) CIl[Every time Il executes the initial start program, various information of the monitor program is erased, and then execution of the monitor program is started. Also, at this time, a detection number counter 3 counts the output of the monitoring timer 2. The above operation is repeated every time the CPUI becomes abnormal, and when the number of abnormalities reaches a predetermined number, the detection number counter 3 generates an output.
The CP error signal B is continuously outputted from the OR gate 4 and applied to the CPUI, and CI) U1 is reset and its state is maintained. In other words, the CPUI will stop. If the power is turned off and turned on again, the detection counter 3 is reset and the CPU becomes operational.

このような従来の構成では、CPU 1が初期スタート
プログラムを実行したときに、モニタプログラムの諸情
報が消去されてしまい、そのため異常が繰返されてCP
UIの動作が停止の状態となったときに異常の原因を見
つげることが容易でなかった。
In such a conventional configuration, when the CPU 1 executes the initial start program, various information of the monitor program is erased, and as a result, abnormalities are repeated and the CPU
It was not easy to find the cause of the abnormality when the UI stopped operating.

したがって、ごの発明の目的は、CPUの異常原因の解
明を容易に行うことができるコンピュータ装置を提供す
ることである。
Therefore, an object of the invention is to provide a computer device that can easily determine the cause of abnormality in a CPU.

この発明のコンピュータ装置は、第6図に示すように、
瞬時的なタイマリセント信号によってリセットされタイ
ムアツプ時に瞬時的なCPUリセット信号を発生ずる監
視タイマ2と、瞬時的なカウンタリセット信号によって
リセットされ前記監視タイマ2から出力される瞬時的な
CPUリセット信号の出現回数をカウントしその値が所
定値に達したときに連続的なCPUリセット信号を発生
する検出回数カウンタ3と、電源投入時Gコ前記瞬時的
なカウンタリセット信号を発生して前記検出回数カウン
タへ与えるカウンタリセット信号発生手段IAと、前記
瞬時的なタイマリセット信号を周期的に発生する機能を
組込んだモニタプログラムを実行させ前記CPUリセッ
ト信号の発ηニに応答して前記モニタプログラムの実行
を停止してリセットするモニタプログラム実行手段IB
と、1iii記CPUリセット信号が消滅する毎に前記
モニタプログラムの諸情報をメモリの順次異なる領域・
\記憶させる情報記憶手段ICと、この情報記憶手段の
動作完了に応答して前記モニタプログラム・の諸情報を
消去する情報消去手段11〕と、′1°i海投入時およ
び前記情報消去手段の動作完了に応答して前記モニタプ
ログラム実行手段をスタートさせるスタート手段IBと
を備える構成にしたことを特徴とする。
The computer device of this invention, as shown in FIG.
A supervisory timer 2 that is reset by an instantaneous timer recent signal and generates an instantaneous CPU reset signal when time-up; and an instantaneous CPU reset signal that is reset by an instantaneous counter reset signal and output from the supervisory timer 2. a detection number counter 3 that counts the number of occurrences and generates a continuous CPU reset signal when the value reaches a predetermined value; and a detection number counter 3 that generates the instantaneous counter reset signal when the power is turned on. executing a monitor program incorporating a counter reset signal generating means IA to be applied to the CPU reset signal and a function of periodically generating the instantaneous timer reset signal; and executing the monitor program in response to the generation of the CPU reset signal. Monitor program execution means IB that stops and resets
Then, each time the CPU reset signal 1iii disappears, the various information of the monitor program is sequentially stored in different areas of the memory.
\Information storage means IC for storing, information erasing means 11 for erasing various information of the monitor program in response to the completion of the operation of this information storage means]; The present invention is characterized in that it is configured to include a start means IB for starting the monitor program execution means in response to completion of the operation.

この発明の一実施例を第3図ないし第5図に基づいて説
明する。このコンピュータ装置は、ハード的には第3図
に示すように、CPUI ’、監視タイマ2.検出回数
カウンタ3およびオアゲート4から構成され、このうち
監視タイマ2.検出回数カウンタ3およびオアゲート4
は第1図のものと同じである。CPUI’は、モニタプ
ログラム中に瞬時的なりィマリセント信号Aを周期的に
発生する機能を組込んであり、電源投入時またはCPU
リセット信号信号比力された時に初期スタートプログラ
ムを実行するようになっており、また電源投入時に瞬時
的なカウンタリセット信号を発生ずるようになっている
An embodiment of the present invention will be described based on FIGS. 3 to 5. As shown in FIG. 3, this computer device has a CPU', a monitoring timer 2. It consists of a detection number counter 3 and an OR gate 4, among which a monitoring timer 2. Detection counter 3 and OR gate 4
is the same as that in Figure 1. The CPUI' has a built-in function that periodically generates an instantaneous most recent signal A during the monitor program.
An initial start program is executed when the reset signal signal is input, and an instantaneous counter reset signal is generated when the power is turned on.

動作について説明する。まず、電源投入すると、CPU
I ’が第4図に示すような初期スタートプログラムを
実行する。この初期スタートプログラムは、まず、この
実行が瞬時的なCPUリセット信号Aによるものである
かどうかを判定する。この場合は、電源投入による初期
スタートプログラム実行であるため、判定結果がNoで
あり、モニタプログラムの諸情報を消去したのち、モニ
タプログラムの実行を開始する。このとき、瞬時的なカ
ウンタリセット信号CがCPUI ’から出力されて検
出回数カウンタ3がリセットされる。
The operation will be explained. First, when the power is turned on, the CPU
I' executes an initial start program as shown in FIG. This initial start program first determines whether this execution is due to an instantaneous CPU reset signal A. In this case, since the initial start program is executed when the power is turned on, the determination result is No, and after erasing various information of the monitor program, execution of the monitor program is started. At this time, an instantaneous counter reset signal C is output from the CPUI' and the detection number counter 3 is reset.

そして、監視タイマ2は電源投入後監視を開始し、検出
回数カウンタ3はカウントを開始する。
Then, the monitoring timer 2 starts monitoring after the power is turned on, and the detection number counter 3 starts counting.

今、CPUI’が王宮に動作しておれば、CPU1′か
ら瞬時的なタイマリセット信号Aが周期的に出力され、
監視タイマ2がタイムアツプする前にリセットされ、監
視タイマ2がタイムアツプすることはなく、オアゲート
4からCPUリセット信号信号比力されず、CPUI’
がモニタプログラムの実行を継続する。
Now, if CPU1' is operating in the royal palace, an instantaneous timer reset signal A is periodically output from CPU1',
The monitor timer 2 is reset before it times up, the monitor timer 2 never times up, the CPU reset signal is not input from the OR gate 4, and the CPU
continues running the monitor program.

CPUI ’が部品不良やプログラムネ良等によって異
常になると、タイマリセット信司へが出力されなくなり
、その結果、監視タイマ2がタイムアンプし、オアゲー
ト4からCPUリセット信号信号比時的に出力されてC
PUI ’に入力され、CPUI ’が初期スタートプ
ログラムを実行する。
If the CPU' becomes abnormal due to defective parts or a faulty program, the timer reset signal is no longer output to Shinji, and as a result, the monitoring timer 2 performs time amplification, and the OR gate 4 outputs the CPU reset signal from time to time.
PUI' is entered and CPUI' executes the initial start program.

この初期スタートプログラムは、まず、この実行がCP
Uリセット信号信号比るものであるかどうかを判定する
。この場合はCPUリセント信号Aによるものであるた
め、判定結果がYESであり、モニタプログラムの諸情
報を第5図に示すRAMの緊急情報エリアMAに記憶さ
せ、ついでモニタプログラムの諸情報を消去したのち、
モニタプログラムの実行を開始する。また、この時に監
視タイマ2の出力を検出回数カウンタ3がカウントする
。上記動作はCPUI ’が異常になる毎に繰返される
ことになる。この場合に、モニタプログラムの諸情報は
異常が発生する毎に順次異なる領域に格納される。そし
て、異常発生回数が所定回数に達すると検出回数カウン
タ3が出力を発生し、オアゲート4からCPUリセット
信号信号比続的に出力されてCPUI’に加えられ、C
PUI’がリセットされ、その状態が保持される。すな
わち、CPUI’が停止することになる。電源をいった
んオフにして再投入すれば、検出回数カウンタ3がリセ
ットされ、CPUI’が動作可能となる。
This initial start program first starts with this execution
Determine whether the U reset signal is compared to the signal. In this case, since it was caused by the CPU recent signal A, the judgment result was YES, and the various information of the monitor program was stored in the emergency information area MA of the RAM shown in Fig. 5, and then the various information of the monitor program was erased. after,
Start execution of the monitor program. Also, at this time, a detection number counter 3 counts the output of the monitoring timer 2. The above operation will be repeated every time CPUI' becomes abnormal. In this case, various information of the monitor program is sequentially stored in different areas each time an abnormality occurs. When the number of abnormal occurrences reaches a predetermined number, the detection number counter 3 generates an output, and the OR gate 4 continuously outputs the CPU reset signal and adds it to the CPUI'.
PUI' is reset and its state is maintained. In other words, the CPUI' will be stopped. When the power is turned off and then turned on again, the detection number counter 3 is reset and the CPUI' becomes operational.

なお、監視タイマ2のタイマ時間および検出回数カウン
タの設定値はハードウェアによって任意に設定できる。
Note that the timer time of the monitoring timer 2 and the setting values of the detection number counter can be arbitrarily set by hardware.

このように構成した結果、異常発生したときに、そのと
きのモニタプログラムの諸情報が緊急情報エリアMAに
記憶されるため、異常発生回数が所定回数に達してcp
ui’が停止したときに、オペレータがデパックツール
を使用して緊急情報エリアMAに記憶させたモニタプロ
グラムの諸情報を読み取り、それを解析すれば異常原因
の解明を容易に行うことができる。
As a result of this configuration, when an abnormality occurs, various information of the monitor program at that time is stored in the emergency information area MA.
When ui' stops, if the operator uses a depack tool to read various information of the monitor program stored in the emergency information area MA and analyzes it, the cause of the abnormality can be easily determined.

なお、緊急情報エリアMAに記憶したモニタプログラム
の諸情報はオペレータの操作により消去することができ
る。
Note that the various information of the monitor program stored in the emergency information area MA can be deleted by an operator's operation.

以上のように、この発明のコンピュータ装置によれば、
CPUの異常原因の解明を容易に行うことができるとい
う効果がある。
As described above, according to the computer device of the present invention,
This has the effect that the cause of CPU abnormality can be easily determined.

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

第1図は従来のコンピュータ装置のブI:J 、、り図
、第2図はその動作を示すフローチャート、第3図はこ
の発明の一実施例のブロック図、第4図はその動作を示
すフローチャート、第5図は緊急情報エリアの構成図、
第6図はこの発明の構成を示すブロック図である。 1′・・・CPU、2・・・監視タイマ、3・・・検出
回数カリンク、4・・・オアゲート、IA・・・カウン
タリセノ1−信号発生手段、IB・・・モニタプログラ
ム実行手段、IC・・・情報記す、?手段、ID・・・
情報消去手段、IE・・・スタート手段 第1図 ? lI2図 第 3 図 第4図 第5図
Fig. 1 is a block diagram of a conventional computer device, Fig. 2 is a flowchart showing its operation, Fig. 3 is a block diagram of an embodiment of the present invention, and Fig. 4 shows its operation. Flowchart, Figure 5 is a configuration diagram of the emergency information area,
FIG. 6 is a block diagram showing the configuration of the present invention. 1'... CPU, 2... Monitoring timer, 3... Detection number link, 4... OR gate, IA... Counter readout 1-signal generation means, IB... Monitor program execution means, IC. ...Write down the information? Means, ID...
Information erasure means, IE...Start means Figure 1? lI2 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 瞬時的なタイマリセント信号によってリセットされタイ
ムアツプ時に瞬時的なCPUリセット信号を発生する監
視タイマと、瞬時的なカウンタリセット信号によってリ
セソ1〜され前記監視タイマから出力される瞬時的なC
PUリセット信号の出現回数をカウントしその値が所定
値に達したときに連続的なCPUリセット信号を発生ず
る検出回数カウンタと、電源投入時に前記瞬時的なカウ
ンタリセット信号を発生して前記検出回数カウンタへ与
えるカウンタリセット信号発生手段と、前記瞬時的なタ
イマリセット信号を周期的に発生する機能を組込んだモ
ニタプログラムを実行させ前記CPLIリセント信号の
発生に応答して前記モニタプログラムの実行を停止して
リセットするモニタプログラム実行手段と、前記CPU
リセット信号が発生する毎に前記モニタプログラムの諸
情報をメモリの順次具なる領域へ記憶させる情報記1Ω
手段と、この情報記憶手段の動作完了に応答して前記モ
ニタプログラムの諸情報を消去する情報消去手段と、電
源投入時および前記情報消去手段の動作完了に応答して
前記モニタプログラム実行手段をスタートさせるスター
ト手段とを備えたコンピュータ装置。
A supervisory timer that is reset by an instantaneous timer recent signal and generates an instantaneous CPU reset signal when time-up; and an instantaneous C that is reset by an instantaneous counter reset signal and output from the supervisory timer.
A detection frequency counter that counts the number of times a PU reset signal appears and generates a continuous CPU reset signal when the value reaches a predetermined value, and a detection frequency counter that generates the instantaneous counter reset signal when the power is turned on and detects the number of times the CPU reset signal is detected. A monitor program incorporating means for generating a counter reset signal to be applied to a counter and a function of periodically generating the instantaneous timer reset signal is executed, and execution of the monitor program is stopped in response to generation of the CPLI recent signal. monitor program execution means for resetting the CPU;
an information memory 1Ω for sequentially storing various information of the monitor program in specific areas of the memory each time a reset signal is generated;
means, information erasing means for erasing various information of the monitor program in response to the completion of the operation of the information storage means, and starting the monitor program execution means when the power is turned on and in response to the completion of the operation of the information erasing means. A computer device comprising: a start means for starting the computer;
JP59079988A 1984-04-19 1984-04-19 Computer device Pending JPS60222937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59079988A JPS60222937A (en) 1984-04-19 1984-04-19 Computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59079988A JPS60222937A (en) 1984-04-19 1984-04-19 Computer device

Publications (1)

Publication Number Publication Date
JPS60222937A true JPS60222937A (en) 1985-11-07

Family

ID=13705686

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59079988A Pending JPS60222937A (en) 1984-04-19 1984-04-19 Computer device

Country Status (1)

Country Link
JP (1) JPS60222937A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0524014A2 (en) * 1991-07-19 1993-01-20 Nec Corporation CPU Malfunction detection system
US5768496A (en) * 1994-01-20 1998-06-16 Alcatel Australia Limited Method and apparatus for obtaining a durable fault log for a microprocessor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0524014A2 (en) * 1991-07-19 1993-01-20 Nec Corporation CPU Malfunction detection system
EP0524014A3 (en) * 1991-07-19 1994-03-23 Nec Corp
AU661493B2 (en) * 1991-07-19 1995-07-27 Nec Corporation CPU malfunction detection system
US5768496A (en) * 1994-01-20 1998-06-16 Alcatel Australia Limited Method and apparatus for obtaining a durable fault log for a microprocessor

Similar Documents

Publication Publication Date Title
US4072852A (en) Digital computer monitoring and restart circuit
JPS62157953A (en) Microcomputer provided with abnormality detecting function
JPS60222937A (en) Computer device
JPS62143153A (en) Controller for central processing unit
JPS59200357A (en) Watchdog timer circuit
JPH06348535A (en) Abnormality generation history storage device
KR910010317A (en) A reset control system and method for performing a resume processing while checking the operation mode of the CPU
JPS62106552A (en) Loop detector
JPH0581080A (en) Runaway supervisory device for micro processor
JPH0395636A (en) Diagnostic system for fail-safe circuit
JPS61103251A (en) Debug device for microprocessor system
JPH0573435A (en) Storage element monitoring/protecting device
JPS5852702A (en) Programmable controller
JPS60222914A (en) Controller incorporating automatic reset circuit
KR920002662B1 (en) A method for supervising voltage status of backup source apparatus
JPH01245322A (en) Power failure control circuit for microprocessor
JPS62168204A (en) Digital controller
JPS5833758A (en) Programmable controller
JP3473002B2 (en) Data processing device and data processing method
JPS5960372A (en) Battery monitoring system for backup power source of control system
JPS5835291B2 (en) Automatic reset device for microprocessor runaway
JPH037963B2 (en)
JPH04367012A (en) Controller for temperature abnormality of computer
JP2731386B2 (en) Control device
JP2770051B2 (en) I / O control unit