JPH05257752A - Operation abnormality detecting system for cpu - Google Patents

Operation abnormality detecting system for cpu

Info

Publication number
JPH05257752A
JPH05257752A JP4048393A JP4839392A JPH05257752A JP H05257752 A JPH05257752 A JP H05257752A JP 4048393 A JP4048393 A JP 4048393A JP 4839392 A JP4839392 A JP 4839392A JP H05257752 A JPH05257752 A JP H05257752A
Authority
JP
Japan
Prior art keywords
cpu
timer
address
monitoring device
operation abnormality
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
JP4048393A
Other languages
Japanese (ja)
Inventor
Tomoya Nakano
知也 中野
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP4048393A priority Critical patent/JPH05257752A/en
Publication of JPH05257752A publication Critical patent/JPH05257752A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To detect the operation abnormality of a central processing unit(CPU) without changing a program in a control system using the CPU. CONSTITUTION:On an address bus 2 of a CPU 1, a monitor device 4 having a timer 7 inside it is provided. A control part 6 of the monitor device 4 monitors the access from the CPU 1 to the specified address of a memory 3 through an address input part 5. When the access to the specified address is detected, the timer 7 is reset and when this timer 7 exceeds a value decided in advance, the operation abnormality of the CPU 1 is judged.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、中央演算処理装置を用
いたプログラムによる制御システムにおいて、CPU自
体のハードウェア的な故障による処理の停止およびCP
U上で動作するプログラムの不都合によるCPU動作異
常を監視する方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program control system using a central processing unit, which stops processing due to a hardware failure of the CPU itself and CP.
The present invention relates to a method of monitoring a CPU operation abnormality due to an inconvenience of a program operating on U.

【0002】[0002]

【従来の技術】従来、この種の動作異常監視方式では、
CPUの正常性を監視する監視装置は内部にタイマを持
ち、このタイマが定められた値を越えるのを監視する。
CPU上のプログラムは定期的に監視装置に対してタイ
マのリセット指示を出す。監視装置は、CPUからのタ
イマリセット指示を受けるとタイマの値を0に戻す。C
PUが処理停止もしくは動作異常になった場合には、C
PUは監視装置に対してタイマのリセット指示を出せな
くなるため、監視装置内のタイマの値が決められた値を
越えることになる。監視装置はタイマの値が一定値を越
えること、即ち一定の時間CPUからのタイマリセット
指示を受けないことによりCPUの動作異常を検出して
いる。
2. Description of the Related Art Conventionally, in this type of operation abnormality monitoring system,
The monitoring device that monitors the normality of the CPU has a timer inside, and monitors that this timer exceeds a predetermined value.
The program on the CPU periodically issues a timer reset instruction to the monitoring device. When the monitoring device receives a timer reset instruction from the CPU, the monitoring device resets the timer value to zero. C
When PU stops processing or becomes abnormal in operation, C
Since the PU cannot issue a timer reset instruction to the monitoring device, the value of the timer in the monitoring device exceeds the predetermined value. The monitoring device detects an abnormal operation of the CPU when the value of the timer exceeds a certain value, that is, when the timer reset instruction is not received from the CPU for a certain time.

【0003】[0003]

【発明が解決しようとする課題】上述したように従来の
方式では、CPUから監視装置に対して一定時間以内毎
にタイマをリセットするように指示を出さなければなら
ない。つまり、CPUの動作異常を検出する場合には、
ハードウェアとして監視装置を設置することの他に、C
PU上で動作するプログラムに一定時間以内毎に監視装
置に対してタイマリセットの指示を出す機能が必要であ
る。使用するプログラムにタイマリセット指示を出す機
能が無い場合には、プログラムに対して機能追加が必要
となるが、プログラムに対する機能追加は一般に困難で
あって、特に市販のプログラムではプログラムの構造が
公開されておらず、また著作権の問題もありプログラム
に対するタイマリセット指示を送出する機能の追加は不
可能という問題点がある。
As described above, in the conventional method, the CPU has to instruct the monitoring device to reset the timer every fixed time. That is, when detecting an abnormal operation of the CPU,
In addition to installing a monitoring device as hardware, C
The program running on the PU needs to have a function of issuing a timer reset instruction to the monitoring device at regular intervals. If the program to be used does not have the function to issue the timer reset instruction, it is necessary to add the function to the program, but it is generally difficult to add the function to the program. There is also a problem that it is impossible to add a function for sending a timer reset instruction to a program due to copyright problems.

【0004】[0004]

【課題を解決するための手段】本発明の中央演算処理装
置の動作異常検出方式は、中央演算処理装置のアドレス
バス上に内部にタイマを持った監視装置を設け、前記中
央演算処理装置によるメモリに対する特定アドレスへの
アクセスを監視し、前記特定アドレスへのアクセスを検
出した場合に前記タイマをリセットし、このタイマが予
め定められた値を越えた場合に前記中央演算処理装置の
動作異常と判断する構成である。
SUMMARY OF THE INVENTION An operation abnormality detecting method for a central processing unit according to the present invention comprises a monitoring device having a timer internally provided on an address bus of the central processing unit, and a memory by the central processing unit. Access to a specific address is monitored, and when the access to the specific address is detected, the timer is reset, and when the timer exceeds a predetermined value, it is determined that the central processing unit is malfunctioning. It is a configuration that does.

【0005】[0005]

【実施例】次に本発明について図面を参照して説明す
る。図1は本発明の一実施例を示す構成図、図2は図1
の構成における監視回路4の制御部6の動作を示すフロ
ーチャートである。
The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG.
3 is a flowchart showing the operation of the control unit 6 of the monitoring circuit 4 in the above configuration.

【0006】図1において、CPU1はアドレスバス2
を通じてメモリ3のアクセスを行う。監視装置4の制御
部6は、アドレスバス2をアドレス入力部5を介し引き
込みアドレスバス2上のデータを監視すると共に、CP
U1のリセット端子8につながり、タイマが一定の値を
越えたことによりCPU1の動作異常を検出した場合に
は、リセット端子8をアクティブとしてCPU1のリセ
ット動作をおこさせ、自動的に再開処理を起動する。
In FIG. 1, the CPU 1 is an address bus 2
The memory 3 is accessed through. The control unit 6 of the monitoring device 4 pulls in the address bus 2 via the address input unit 5, monitors the data on the address bus 2, and
When the CPU1 is connected to the reset terminal 8 of U1 and an abnormal operation of the CPU1 is detected when the timer exceeds a certain value, the reset terminal 8 is activated and the reset operation of the CPU1 is performed, and the restart process is automatically started. To do.

【0007】次に図2に基づいて処理の手順を説明す
る。監視装置4の制御部6はアドレスバス2上のアドレ
スをアドレス入力部5を通じて読み込む(S1:ステッ
プ1)。制御部6はアドレスの読み込みができた場合に
はステップ2からステップ3へ進む。ステップ3では入
力されたアドレスと特定の監視対象アドレスとの比較を
行い、一致した場合にはステップ4へ進む。
Next, the processing procedure will be described with reference to FIG. The control unit 6 of the monitoring device 4 reads the address on the address bus 2 through the address input unit 5 (S1: step 1). If the address can be read, the control unit 6 proceeds from step 2 to step 3. In step 3, the input address is compared with the specific monitoring target address, and if they match, the process proceeds to step 4.

【0008】ステップ4ではタイマ7の0クリアを行い
ステップ1へ戻る。ステップ2でアドレスの入力が無か
った場合とステップ3で入力したアドレスが監視対象ア
ドレスと一致しなかった場合はステップ5へ進む。ステ
ップ5ではタイマ7からタイマ値を読出し、タイマ値を
予め決められた一定値と比較する(ステップ6)。
In step 4, the timer 7 is cleared to 0 and the process returns to step 1. If no address is input in step 2 or if the address input in step 3 does not match the monitoring target address, the process proceeds to step 5. In step 5, the timer value is read from the timer 7 and the timer value is compared with a predetermined constant value (step 6).

【0009】ステップ6においてタイマ値が一定値を越
えていなければステップ1へ戻る。ステップ6において
タイマ値が一定値を越えていた場合にはCPUの動作異
常を検出したものとしてステップ7へ進む。ステップ7
ではCPU1のリセット端子8をアクティブとしCPU
1のリセット動作をおこさせる。次にタイマ7を0でク
リア(ステップ8)してステップ1へ戻る。
If the timer value does not exceed the fixed value in step 6, the process returns to step 1. If the timer value exceeds the predetermined value in step 6, it is determined that an abnormal operation of the CPU has been detected, and the process proceeds to step 7. Step 7
Then, the reset terminal 8 of the CPU 1 is activated and the CPU
Reset operation 1 is performed. Next, the timer 7 is cleared to 0 (step 8) and the process returns to step 1.

【0010】[0010]

【発明の効果】以上説明したように本発明は、プログラ
ムの変更を行わなくてもCPUの動作異常を検出でき
る。このことは既存のプログラムもしくは市販のプログ
ラムをそのまま使用する場合にもCPUの動作異常を検
出できるという効果がある。
As described above, according to the present invention, it is possible to detect the abnormal operation of the CPU without changing the program. This has an effect that an abnormal operation of the CPU can be detected even when the existing program or the commercially available program is used as it is.

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

【図1】本発明の一実施例を示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】図1の構成における制御部6の動作を示すフロ
ーチャートである。
FIG. 2 is a flowchart showing an operation of a control unit 6 in the configuration of FIG.

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

1 CPU 2 アドレスバス 3 メモリ 4 監視装置 5 アドレス入力部 6 制御部 7 タイマ 8 リセット端子 1 CPU 2 Address Bus 3 Memory 4 Monitoring Device 5 Address Input Unit 6 Control Unit 7 Timer 8 Reset Terminal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央演算処理装置のアドレスバス上に内
部にタイマを持った監視装置を設け、前記中央演算処理
装置によるメモリに対する特定アドレスへのアクセスを
監視し、前記特定アドレスへのアクセスを検出した場合
に前記タイマをリセットし、このタイマが予め定められ
た値を越えた場合に前記中央演算処理装置の動作異常と
判断することを特徴とする中央演算処理装置の動作異常
検出方式。
1. A monitoring device having a timer is provided on the address bus of the central processing unit, and the access to the specific address to the memory by the central processing unit is monitored to detect the access to the specific address. In this case, the timer is reset, and when the timer exceeds a predetermined value, it is determined that the operation of the central processing unit is abnormal.
JP4048393A 1992-03-05 1992-03-05 Operation abnormality detecting system for cpu Withdrawn JPH05257752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4048393A JPH05257752A (en) 1992-03-05 1992-03-05 Operation abnormality detecting system for cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4048393A JPH05257752A (en) 1992-03-05 1992-03-05 Operation abnormality detecting system for cpu

Publications (1)

Publication Number Publication Date
JPH05257752A true JPH05257752A (en) 1993-10-08

Family

ID=12802055

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4048393A Withdrawn JPH05257752A (en) 1992-03-05 1992-03-05 Operation abnormality detecting system for cpu

Country Status (1)

Country Link
JP (1) JPH05257752A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2425863A (en) * 2005-04-26 2006-11-08 Advanced Risc Mach Ltd Data processor monitor with a timer and control logic that sends s control signal to the processor if a set address is not accessed

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2425863A (en) * 2005-04-26 2006-11-08 Advanced Risc Mach Ltd Data processor monitor with a timer and control logic that sends s control signal to the processor if a set address is not accessed
US7627807B2 (en) 2005-04-26 2009-12-01 Arm Limited Monitoring a data processor to detect abnormal operation

Similar Documents

Publication Publication Date Title
JPS62157953A (en) Microcomputer provided with abnormality detecting function
JPH05257752A (en) Operation abnormality detecting system for cpu
JPH10307635A (en) Computer system and temperature monitoring method applied to the same system
JPH06324721A (en) Method for detecting falling-off of connection unit
JP3214079B2 (en) CPU abnormality detection device
JPH08163883A (en) Motor controller
JPH10240390A (en) Computer system
JPH0667755A (en) Circuit board mounting/dismounting detecting system
JPH11203173A (en) Watch dog timer circuit
JPH02281343A (en) Cpu operation monitor system
JP2000020353A (en) Watchdog timer control system
JP2004078388A (en) Slave device turning off power source of its own in synchronization with turn-off of power source of master device and power source control method
JPH05328602A (en) Electrical apparatus
JP2000163274A (en) Electronic equipment and recording medium with rom data monitoring program recorded thereon
JPS6073753A (en) Runaway processing system of microprocessor
JPH04266112A (en) Method for confirming inter master-slave equipment power application
JPH0679279B2 (en) Supervisory control device for microprocessor-applied equipment
JPH07200334A (en) Duplicate synchronization operation system
JPH08263455A (en) Degrading method for fault processor in multiprocessor system
JPH07129425A (en) Reboot processing method
JP3757407B2 (en) Control device
JPH05257745A (en) Runaway-monitoring system for microcomputer
JPH01310422A (en) Resetting circuit for microcomputer
JP2725107B2 (en) Interrupt device
JPH01304560A (en) Microprocessor bus monitor controller

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