JPH01229342A - Microprocessor runaway check device - Google Patents

Microprocessor runaway check device

Info

Publication number
JPH01229342A
JPH01229342A JP63055546A JP5554688A JPH01229342A JP H01229342 A JPH01229342 A JP H01229342A JP 63055546 A JP63055546 A JP 63055546A JP 5554688 A JP5554688 A JP 5554688A JP H01229342 A JPH01229342 A JP H01229342A
Authority
JP
Japan
Prior art keywords
memory
microprocessor
check
output
runaway
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
JP63055546A
Other languages
Japanese (ja)
Inventor
Kazuyuki Okuno
奥埜 一幸
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.)
Toshiba Tec Corp
Original Assignee
Tokyo 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP63055546A priority Critical patent/JPH01229342A/en
Publication of JPH01229342A publication Critical patent/JPH01229342A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、マイクロプロセッサを用いた装置において、
マイクロプロセッサ自身の暴走をチェックするマイクロ
プロセッサ暴走チェック装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides an apparatus using a microprocessor.
The present invention relates to a microprocessor runaway check device that checks runaway of the microprocessor itself.

[従来の技術J 従来、マイクロプロセッサ(以下、CPUという。)を
用いた装置では、CPUが制御する周辺機器の異常状態
を検出、診断する機能をもつものがあるものの、例えば
外来ノイズまたはCPUのフェッチミスやソフトバグに
よってCPUが暴走した場合、CPU自身かその暴走状
態を認識することかできなかった。
[Prior Art J] Conventionally, some devices using microprocessors (hereinafter referred to as CPUs) have the function of detecting and diagnosing abnormal conditions in peripheral devices controlled by the CPU. When the CPU goes out of control due to a fetch error or a software bug, it is not possible for the CPU itself to recognize the runaway state.

1発明か解決しようとする問題点] 一般に、CPUが暴走すると、メモリの全エリアをアク
セスすることが知られている。そのなめ、CPUか暴走
した場合、データエリアが破壊されてしまう結果、重要
な情報が全て消えてしまうという問題点かある。
1. Problems to be Solved by the Invention] It is generally known that when a CPU goes out of control, it accesses all areas of memory. Therefore, if the CPU goes out of control, the data area will be destroyed and all important information will be lost.

情報の回復は基本的には不可能であるから、再度全ての
設定および登録を初めからやり直す必要がある。これは
、大変な作業であり、ユーザによっては二度手間である
。また、登録内容によってはやり直しが不可能なものも
ある。
Since it is basically impossible to recover the information, it is necessary to restart all settings and registration from the beginning. This is a tedious task and may be redundant for some users. Furthermore, some registered contents cannot be redone.

しかも、CPUか暴走したことが判明したとしても、暴
走原因を究明、除去することはたやすいことではない。
Furthermore, even if it is determined that the CPU has runaway, it is not easy to investigate and eliminate the cause of the runaway.

ここに、本発明の目的は、このような従来の問題点に鑑
み、CPUの暴走に対するデータエリアの保護と同時に
、暴走原因の究明、除去を容易に行なえるようにしたマ
イクロプロセッサ暴走チェック装置を提供することにあ
る。
In view of these conventional problems, it is an object of the present invention to provide a microprocessor runaway check device that protects the data area from CPU runaway and at the same time allows for easy investigation and removal of the cause of runaway. It is about providing.

[問題点を解決するための手段] 第1項記載の発明では、マイクロプロセッサ、プログラ
ムを記憶したプログラムメモリおよびデータを記憶する
データメモリを有する装置において、チェックメモリと
、前記データメモリのデータエリアのうち通常プログラ
ム動作ではアクセスされないように規定された複数の特
定アドレスのいずれかが前記マイクロプロセッサによっ
てアクセスされたことを検知し、マイクロプロセッサへ
割込信号を出力する検知回路と、この検知回路から割込
信号が出力されないことを条件としてマイクロプロセッ
サの動作を前記チェックメモリへ書込み可能に選択する
とともに、割込信号が出力されたことを条件としてチェ
ックメモリへの書込みを禁止させる書込制御回路と、前
記検知回路からの割込信号に基づきマイクロプロセッサ
に予め定めた処理を実行させるとともに暴走があった旨
の表示を行なわせる手段と、を具備したことを特徴とす
る。
[Means for solving the problem] In the invention described in item 1, in an apparatus having a microprocessor, a program memory storing a program, and a data memory storing data, a check memory and a data area of the data memory are provided. A detection circuit detects that one of a plurality of specific addresses that are specified not to be accessed during normal program operation is accessed by the microprocessor and outputs an interrupt signal to the microprocessor; a write control circuit that selects the operation of the microprocessor to enable writing to the check memory on the condition that an interrupt signal is not output, and prohibits writing to the check memory on the condition that an interrupt signal is output; The present invention is characterized by comprising means for causing a microprocessor to execute a predetermined process based on an interrupt signal from the detection circuit, and for causing a display indicating that a runaway has occurred.

第2項記載の発明では、マイクロプロセッサ、プログラ
ムを記憶したプログラムメモリおよびデータを記憶する
データメモリを有する装置において、チェックメモリと
、前記プログラムメモリにライト信号が出力されたこと
を検知し、マイクロプロセッサへ割込信号を出力する検
知回路と、この検知回路から割込信号が出力されないこ
とを条件としてマイクロプロセッサの動作を前記チェッ
クメモリへ書込み可能に選択するとともに、割込信号が
出力されたことを条件としてチェックメモリへの8込み
を禁止させる書込制御回路と、前記検知回路からの割込
信号に基づきマイクロプロセッサに予め定めた処理を実
行させるとともに暴走かあった旨の表示を行なわせる手
段と、を具備したことを特徴とする。
In the invention described in item 2, in the device having a microprocessor, a program memory storing a program, and a data memory storing data, the microprocessor detects that a write signal is output to the check memory and the program memory, and the microprocessor a detection circuit that outputs an interrupt signal to the check memory; and a detection circuit that selects the operation of the microprocessor so that it can write to the check memory on the condition that no interrupt signal is output from the detection circuit, and detects that the interrupt signal is output. a write control circuit that prohibits writing into the check memory as a condition; and means for causing the microprocessor to execute predetermined processing based on the interrupt signal from the detection circuit and displaying that there has been a runaway. It is characterized by having the following.

[作用] 第1項記載の発明では、マイクロプロセッサか暴走する
と、マイクロプロセッサはデータメモリの特定アドレス
のいずれかをアクセスするので、検知回路からは割込信
号がマイクロプロセッサへ出力されるとともに、チェッ
クメモリへの書込みが禁止される。すると、マイクロプ
ロセッサは、予め定めた割込処理を実行するので、デー
タメモリ内のデータが破壊されることがない、しかも、
検知回路によってマイクロプロセッサの暴走が検知され
た時点までのマイクロプロセッサの動きはチェックメモ
リに記憶されているので、チェックメモリの内容を読出
せば暴走原因の究明、除去も容易に行うことができる。
[Function] In the invention described in item 1, when the microprocessor goes out of control, the microprocessor accesses one of the specific addresses in the data memory, so the detection circuit outputs an interrupt signal to the microprocessor and also performs a check. Writing to memory is prohibited. Then, the microprocessor executes predetermined interrupt processing, so the data in the data memory is not destroyed.
Since the operation of the microprocessor up to the time when the runaway of the microprocessor is detected by the detection circuit is stored in the check memory, the cause of the runaway can be easily investigated and removed by reading the contents of the check memory.

第2項記載の発明では、マイクロプロセッサの暴走によ
ってプログラムメモリにライト信号が出されると、検知
回路からは割込信号がマイクロプロセッサへ出力される
とともに、チェックメモリへの書込みか禁止される。従
って、第1項記載の発明と同様に、データメモリ内のデ
ータが破壊されることかなく、しかも、暴走原因の究明
、除去も容易に行うことができる。
In the invention described in item 2, when a write signal is issued to the program memory due to a runaway of the microprocessor, an interrupt signal is output from the detection circuit to the microprocessor, and writing to the check memory is prohibited. Therefore, like the invention described in item 1, the data in the data memory is not destroyed, and the cause of runaway can be easily investigated and removed.

[実施例コ 以下、本発明の実施例を図面に基づいて説明する。[Example code] Embodiments of the present invention will be described below based on the drawings.

洟m昼」 第1実施例を第1図〜第4図に示す、第2図において、
マイクロプロセッサ(CPU)11には、アドレス/デ
ータバスや制御信号線12などを介して、プログラムを
記憶したプログラムメモリ13、データを記憶するデー
タメモリ14、CPU暴走チェック回路15、キーボー
ド16および表示器17かそれぞれ接続されている。
The first embodiment is shown in FIGS. 1 to 4, and in FIG. 2,
The microprocessor (CPU) 11 includes a program memory 13 storing programs, a data memory 14 storing data, a CPU runaway check circuit 15, a keyboard 16, and a display via an address/data bus, a control signal line 12, etc. 17 are connected to each other.

CPUJ%走チェック回路15は、第1図に示す如く、
cpuitの動きを記憶するチェックメモリ21と、前
記データメモリ14のデータエリアのうち通常プログラ
ム動作では予めアクセスされないように規定された複数
の特定アドレスのいずれかかCPUIIによってアクセ
スされたことを検出し、割込信号NMIをCPUIIへ
出力する検知回路31と、この検知回路31から割込信
号NMIが出力されないことを条件としてCPU11の
動作をチェックメモリ21へ書込み可能に選択するとと
もに、割込信号NMIが出力されたことを条件としてチ
ェックメモリ21への書込みを禁止させる書込制御回路
41とを含む。
The CPUJ% running check circuit 15, as shown in FIG.
detecting that any one of a plurality of specific addresses, which are defined in advance not to be accessed during normal program operation, has been accessed by the CPU II among the check memory 21 that stores the movement of the CPU and the data area of the data memory 14; A detection circuit 31 outputs the interrupt signal NMI to the CPU II, and the operation of the CPU 11 is selected to be writeable to the check memory 21 on the condition that the interrupt signal NMI is not output from the detection circuit 31. It also includes a write control circuit 41 that prohibits writing to the check memory 21 on the condition that the check memory 21 is output.

チェックメモリ21は、アドレスバス12Aおよびデー
タバス12Dを介して前記CPUIIに接続されている
。検知回路31は、アンドゲートAGI、AG2.AG
5.AC3、インバータIN2およびフリップフロッグ
FFI、FF2を含み構成されている。書込制御回路4
1は、アンドゲートAG3.AG4、オアーゲートOG
I、OG2およびインバータINIを含み構成されてい
る。
Check memory 21 is connected to the CPU II via address bus 12A and data bus 12D. The detection circuit 31 includes AND gates AGI, AG2 . AG
5. It is configured to include AC3, inverter IN2, and flip-flops FFI and FF2. Write control circuit 4
1 is AND gate AG3. AG4, Or Gate OG
It is configured to include I, OG2, and inverter INI.

アンドゲートAG1は、I10アドレスC3Iがライト
<CSt、IOWが共に「L」レベル)されると、「L
」レベルの出力をフリップフロップFFIのR(リセッ
ト)端子へ与える。フリップフロップFFIのS(セッ
ト)端子には、アンドゲートAG2からの出力が与えら
れている。アンドゲートAG2は、I10アドレスC8
Oがライト(CSOlIOWか共に「L」レベル)され
ると、「L」レベルの信号を出力する。
When the I10 address C3I is written <CSt, IOW are both at the “L” level), the AND gate AG1 becomes “L”.
” level output is given to the R (reset) terminal of flip-flop FFI. The output from the AND gate AG2 is given to the S (set) terminal of the flip-flop FFI. AND gate AG2 is I10 address C8
When O is written (CSOLIOW and both are at "L" level), an "L" level signal is output.

フリップフロップFFIのQ出力端子からの出力は、ア
ンドゲートAG3の一方の入力端子、インバータINI
を介して反転された後アンドゲートAG4の一方の入力
端子、フリップフロップFF2のR(リセット)端子に
それぞれ入力されている。アンドゲートAG3の他方の
入力端子にはCPU11からのリード信号MRか接続さ
れているとともに、その出力端子にはチェックメモリ2
1のアウトプットイネーブル端子OEが接続されている
。アンドゲートAG4の他方の入力端子には前記リード
信号口が接続されているとともに、その出力端子にはオ
アーゲートOG2の一方の入力端子が接続されている。
The output from the Q output terminal of flip-flop FFI is connected to one input terminal of AND gate AG3, inverter INI.
After being inverted via the input gate AG4, the signal is input to one input terminal of the AND gate AG4 and the R (reset) terminal of the flip-flop FF2. The read signal MR from the CPU 11 is connected to the other input terminal of the AND gate AG3, and the check memory 2 is connected to its output terminal.
1 output enable terminal OE is connected. The read signal port is connected to the other input terminal of AND gate AG4, and one input terminal of OR gate OG2 is connected to its output terminal.

オアーゲートOG2の他方の入力n1子にはCPUII
からの94818号MWが接続されているとともに、そ
の出力端子にはチェックメモリ21のライトイネーブル
端子WEが接続されている。チェックメモリ21のチッ
プセレクト端子C8には、オアーゲートOGIの出力が
入力されている。オアーゲートOGIには、前記インバ
ータINIの出力およびCPU11からのアドレスチッ
プセレクト信号MSCOがそれぞれ入力されている。ま
た、前記オアーゲートoG2からの出力は、インバータ
IN2で反転された後、前記フリップフロップFF2の
T入力端子に入力されている。
The other input n1 child of OR gate OG2 has CPU II.
The write enable terminal WE of the check memory 21 is connected to its output terminal. The output of the OR gate OGI is input to the chip select terminal C8 of the check memory 21. The output of the inverter INI and the address chip select signal MSCO from the CPU 11 are respectively input to the OR gate OGI. Further, the output from the OR gate oG2 is inverted by an inverter IN2 and then input to the T input terminal of the flip-flop FF2.

フリップフロップFF2は、リセット状態において、D
入力端子に入力されているアンドゲートAG5からの出
力がrH,レベルで、かつ、′r入万端子がrH,レベ
ルになったとき、第4図に示す割込処理を実行させる割
込信号NMIを出力する。アンドゲートAG5には、ア
ンドゲートAG6の出力およびメモリセレクト信号IO
/Mがそれぞれ入力されている。アンドゲートAG6は
、データエリアセレクト信号と、データメモリ14のデ
ータエリアのうち通常プログラム動作では予めアクセス
されないように規定された特定アドレス、ここではアド
レスA7〜AOが「H」レベルとなったとき「L」レベ
ルの信号を出力する。
In the reset state, the flip-flop FF2 is D
When the output from the AND gate AG5 input to the input terminal is at the rH level, and the 'r input terminal is at the rH level, an interrupt signal NMI causes the interrupt process shown in FIG. 4 to be executed. Output. AND gate AG5 has the output of AND gate AG6 and memory select signal IO.
/M is input respectively. The AND gate AG6 receives the data area select signal and a specific address of the data area of the data memory 14 that is specified not to be accessed in advance during normal program operation, in this case, when the addresses A7 to AO go to the "H" level. Outputs an L level signal.

次に、本実施例の作用を第3図および第4図をも参照し
ながら説明する。
Next, the operation of this embodiment will be explained with reference to FIGS. 3 and 4.

いま、I10アドレスC3Iをライト(C3I、IOW
、を共に「L」レベル)すると、フリップフロラ1FF
Iかリセットされるから、フリップフロップFFIのQ
出力端子からは「L」レベルの信号が出力される。この
ため、フリップフロッグFF2がリセットされるから、
割込信号NMIは出力されない、このとき、アンドゲー
トAG4が閉じられ、アンドゲートAG3が開かれるな
め、チェックメモリ21に対してCPUIIは通常にラ
イト/リードを行うことができる。
Now write I10 address C3I (C3I, IOW
, both at "L" level), Flip Flora 1FF
Since I is reset, Q of flip-flop FFI
An "L" level signal is output from the output terminal. For this reason, flip-flop FF2 is reset, so
The interrupt signal NMI is not output. At this time, the AND gate AG4 is closed and the AND gate AG3 is opened, so that the CPU II can normally write/read the check memory 21.

さて、CPU暴走チェック回路15をスタートさせるに
は、第3図に示す如く、I10アドレスCSOをライト
(C3O1IOWを共に「L」レベル)する。すると、
フリップフロップr” F 1のQ出力端子からはr 
H、レベルの信号が出力される。このなめ、フリップフ
ロラ1FF2がリセット解除状態とされる。このとき、
アントゲ−1’ Ac1か閉じられ、アンドゲートA 
G 4が開かれる。
Now, to start the CPU runaway check circuit 15, as shown in FIG. 3, write the I10 address CSO (both C3O1IOW are set to "L" level). Then,
From the Q output terminal of the flip-flop r"F1, r
A signal of H level is output. Due to this, the flip roller 1FF2 is brought into a reset release state. At this time,
Ant game-1' Ac1 is closed, and gate A
G4 will be held.

また、フリップフロップFFIのQ出力端子からのr 
I−1、レベルの信号がインバータINIで反転された
後、オアーゲートOGIを通してチェックメモリ21の
チップセレクト端子C8に入力されており、つまりチッ
プセレクト端子C8は常に「L」レベルとなっており、
かつ、リード/ライト信号MR,MWはオアーゲートO
G2を通してチェックメモリ21のライトイネーブル端
子W Eに入力されているなめ、CPUIIがプIコグ
ラムメモリ13およびデータメモリ14をアクセスする
と、その動作は全てチェックメモリ21に書込まれる。
Also, r from the Q output terminal of flip-flop FFI
After the signal at level I-1 is inverted by the inverter INI, it is input to the chip select terminal C8 of the check memory 21 through the OR gate OGI, that is, the chip select terminal C8 is always at the "L" level.
And read/write signals MR, MW are OR gate O
Since it is input to the write enable terminal WE of the check memory 21 through G2, when the CPU II accesses the program memory 13 and the data memory 14, all the operations are written to the check memory 21.

ところで、CPUIIが暴走した場合、CPU11はメ
モリ13.14の全エリアをアクセスすることか知られ
ている。いま、CPUIIが暴走すると、データメモリ
14の特定アドレス(A7〜AO)のいずれかをアクセ
スする。すると、データエリアセレクト信号およびアド
レスA7〜AOが共にr )f 、レベルとなるので、
アンドゲートAG6の出力が「L」レベルとなる。ここ
で、メモリセレクト信号IO/Mが「し」レベルとなる
と、アンドゲートAG5の出力がr H、レベルとなり
、フリップフロッグFF2のD出力端子へ与えられる。
By the way, it is known that when the CPU II goes out of control, the CPU 11 accesses all areas of the memory 13 and 14. Now, when the CPU II goes out of control, it accesses any of the specific addresses (A7 to AO) of the data memory 14. Then, the data area select signal and addresses A7 to AO both reach the level r)f.
The output of AND gate AG6 becomes "L" level. Here, when the memory select signal IO/M goes to the "yes" level, the output of the AND gate AG5 goes to the rH level and is applied to the D output terminal of the flip-flop FF2.

このとき、リード信号nまたはライト信号MWが入力さ
れると、それらの信号はインバータIN2で反転された
後フリップフロッグFF2のT入力端子に入力されるた
め、フリップフロップFF2のQ出力端子がらはrH,
レベルの割込信号NMIがCPUIIへ出力される。
At this time, when read signal n or write signal MW is input, those signals are inverted by inverter IN2 and then input to the T input terminal of flip-flop FF2, so that the Q output terminal of flip-flop FF2 is rH ,
A level interrupt signal NMI is output to the CPU II.

すると、CPUIIは、第4図のフローチャートに示す
割込処理へ進み、暴走状態から脱する。
Then, the CPU II proceeds to the interrupt processing shown in the flowchart of FIG. 4, and escapes from the runaway state.

従って、CPUIIはこれ以上メモリをアクセスするこ
とがないから、データメモリ14内のデータを保持する
ことができる。第4図において、まず、I10アドレス
ξSlをライトする。すると、前述と同様にして、フリ
ップフロップFFLがリセットされ、そのフリップフロ
ップFFIのQ出力端子からの出力が「L」レベルにな
るため、フリップフロラ1FF2がリセットされ割込信
号NMIが禁止されるとともに、インバータINIおよ
びオアーゲートOGIを介してチェックメモリ21のチ
ップセレクト端子C8が「トI」レベルになり、チェッ
クメモリ21への書込みが禁止される。
Therefore, since the CPU II will no longer access the memory, the data in the data memory 14 can be retained. In FIG. 4, first, the I10 address ξSl is written. Then, in the same manner as described above, the flip-flop FFL is reset and the output from the Q output terminal of the flip-flop FFI goes to "L" level, so the flip-flop 1FF2 is reset and the interrupt signal NMI is disabled. , the chip select terminal C8 of the check memory 21 becomes the "I" level via the inverter INI and the OR gate OGI, and writing to the check memory 21 is prohibited.

続いて、暴走した旨のコメントを表示器17に表示した
のち、キーボード16がらのチェックメモリ21の続出
指令を持つ、ここで、キーボード16から続出指令が与
えられると、チェックメモリ21の内容を読出し表示器
17に表示させる。
Subsequently, after displaying a comment to the effect of the runaway on the display 17, the keyboard 16 gives a command to continue reading the check memory 21.Here, when the command to continue reading the check memory 21 is given from the keyboard 16, the contents of the check memory 21 are read out. It is displayed on the display 17.

これにより、ユーザは、表示器17に表示された内容、
つまりCPUIIが暴走を起こすまでの経緯をみて、暴
走原因を究明、除去する。
As a result, the user can see the content displayed on the display 17,
In other words, by looking at the circumstances leading up to the CPU II running out of control, we investigate and eliminate the cause of the runaway.

従って、本実施例によれば、CPUIIの動作をチェッ
クメモリ21に記憶しておき、CPU11かデータメモ
リ14の特定アドレスをアクセスしたとき、つまり暴走
したとき、CPUを第4図の割込処理ルーチン内で動作
させるとともに、チェックメモリ21への書込みを禁止
するようにしたので、CPUIIが暴走しても、CPU
IIがアクセスするデータメモリ14内の最初の特定ア
ドレスまでのエリアしか破壊されることがない。
Therefore, according to this embodiment, the operation of the CPU II is stored in the check memory 21, and when a specific address of the CPU 11 or the data memory 14 is accessed, that is, when a runaway occurs, the CPU is In addition to operating within the CPU II, writing to the check memory 21 is prohibited, so even if the CPU II goes out of control, the CPU
Only the area up to the first specific address in data memory 14 accessed by II can be destroyed.

また、CPU11の暴走か検知されるまでのCPu1l
の動作はチェックメモリ21に記憶されているので、チ
ェックメモリ21の内容を読出せば、暴走原因の究明、
除去も容易に行うことかできる。
In addition, CPU1l until it is detected that the CPU11 is running out of control.
The operation is stored in the check memory 21, so by reading the contents of the check memory 21, it is possible to investigate the cause of the runaway.
It can also be easily removed.

また、CPUIIの暴走が検知されたときには表示器1
5にその旨を表示するようにしたので、ユーザはこの表
示からCPUIIの暴走を認識することかできる。よっ
て、早急な処置をとることかできる。
In addition, when CPU II runaway is detected, the display 1
5, so that the user can recognize that the CPU II is running out of control from this display. Therefore, immediate action can be taken.

剃l失里] 第2実施例を第5図に示す、同図の説明に当って、第1
実施例と同一構成要素については、同一符号を付し、そ
の説明を省略もしくは簡素化する。
The second embodiment is shown in FIG.
Components that are the same as those in the embodiment are given the same reference numerals, and the explanation thereof will be omitted or simplified.

本実施例は、プログラムメモリ13にライト信号がきた
ことを検知し、第4図の割込処理を実行させる割込信号
NMIをCPUIIへ出力する検知回路31Aを設けた
点を除き、第1実施例と同じである。そのため、検知回
路31Aのフリップフロラ1FF2の′r入力端子には
、ライト信号NIWがインバータIN3を介して入力さ
れている。
This embodiment is similar to the first embodiment except that it includes a detection circuit 31A that detects the arrival of a write signal to the program memory 13 and outputs an interrupt signal NMI to the CPU II that causes the interrupt processing shown in FIG. 4 to be executed. Same as example. Therefore, the write signal NIW is input to the 'r input terminal of the flip-flop 1FF2 of the detection circuit 31A via the inverter IN3.

また、フリップフロラ1FF2のD入力端子には、イン
バータIN4を介してプログラムセレクト信号が入力さ
れている。
Further, a program select signal is input to the D input terminal of the flip-flop 1FF2 via an inverter IN4.

従って、CPUIIが暴走しプログラムメモリ13にラ
イト信号MWが出されると、インバータlN4を介して
フリップフロップFF2のD入力端子にrH,レベルの
信号が入力されるとともに、フリップフロップFF2の
T入力端子に「H」レベルの信号が入力されるため、フ
リップフロラ1FF2のQ出力端子からはr H、レベ
ルの割込信号NMIが出力される。これにより、CPU
IIは、第4図のフローチャートに従って動作される。
Therefore, when the CPU II goes out of control and a write signal MW is output to the program memory 13, a signal of rH level is input to the D input terminal of the flip-flop FF2 via the inverter IN4, and a signal of level rH is input to the T input terminal of the flip-flop FF2. Since the "H" level signal is input, the rH level interrupt signal NMI is output from the Q output terminal of the flip-flop 1FF2. This allows the CPU
II is operated according to the flowchart in FIG.

従って、本実施例にあっても、第1実繕例と同様な効果
を奏することができる。
Therefore, even in this embodiment, the same effects as in the first repair example can be achieved.

なお、上記実施例では、第4図に示す割込処理おいて、
暴走があった旨を表示器17に表示させるようにしたが
、プリンタなどによって暴走があった旨の表示を行うよ
うにしてもよい、つまり、暴走があった旨の表示とは、
表示器に限らず、人に伝達できる手段であればいずれで
もよい。
Note that in the above embodiment, in the interrupt processing shown in FIG.
Although the display unit 17 displays the fact that there has been a runaway, it may also be displayed by a printer or the like.In other words, the display that there has been a runaway is
It is not limited to a display, but any means that can communicate to people may be used.

[発明の効果] 以上の通り、本発明によれば、データメモリの特定アド
レスかアクセスされたとき、または、プログラムメモリ
へライト信号が出力されたとき、これらを検知回路が検
知しマイクロプロセッサへ割込信号を出力し、マイクロ
プロセッサに所定の割込処理を実行させ、かつ暴走があ
った旨の表示を行わせるとともに、チェックメモリへの
書込みを禁止するようにしたので、データメモリのデー
タを保護することができる。しかも、検知回路によって
マイクロプロセッサの暴走が検知されるまでのマイクロ
プロセッサの動作はチェックメモリに記憶されているの
で、チェックメモリの内容を読出せば、暴走原因の究明
、除去も容易に行うことができる。
[Effects of the Invention] As described above, according to the present invention, when a specific address of the data memory is accessed or a write signal is output to the program memory, the detection circuit detects these and sends the information to the microprocessor. This protects the data in the data memory by outputting an interrupt signal, causing the microprocessor to execute a predetermined interrupt process, displaying an indication that a runaway has occurred, and prohibiting writing to the check memory. can do. Furthermore, since the microprocessor's operations until the detection circuit detects the runaway of the microprocessor are stored in the check memory, the cause of the runaway can be easily investigated and removed by reading the contents of the check memory. can.

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

第1図〜第4図は本発明の第1実施例を示すもので、第
1図はcpua=tチェック回路を示す回路図、第2図
はCPUを用いた装置を示すブロック図、第3図および
第4図はそれぞれフローチャートである。第5図は本発
明の第2実施例のCPU暴走チェック回路を示す回路図
である。 11・・・CPU、13・・・プログラムメモリ、14
・・・データメモリ、15・・・CPUJ&走チェック
回路、21・・・チェックメモリ、31,31A・・・
検知回路、41・・・書込制御回路。
1 to 4 show a first embodiment of the present invention, in which FIG. 1 is a circuit diagram showing a cpua=t check circuit, FIG. 2 is a block diagram showing a device using a CPU, and FIG. 3 is a block diagram showing a device using a CPU. 4 and 4 are flowcharts, respectively. FIG. 5 is a circuit diagram showing a CPU runaway check circuit according to a second embodiment of the present invention. 11...CPU, 13...Program memory, 14
...Data memory, 15...CPUJ & running check circuit, 21...Check memory, 31, 31A...
Detection circuit, 41...Write control circuit.

Claims (2)

【特許請求の範囲】[Claims] (1)マイクロプロセッサ、プログラムを記憶したプロ
グラムメモリおよびデータを記憶するデータメモリを有
する装置において、 チェックメモリと、 前記データメモリのデータエリアのうち通常プログラム
動作ではアクセスされないように規定された複数の特定
アドレスのいずれかが前記マイクロプロセッサによって
アクセスされたことを検知し、マイクロプロセッサへ割
込信号を出力する検知回路と、 この検知回路から割込信号が出力されないことを条件と
してマイクロプロセッサの動作を前記チェックメモリへ
書込み可能に選択するとともに、割込信号が出力された
ことを条件としてチェックメモリへの書込みを禁止させ
る書込制御回路と、前記検知回路からの割込信号に基づ
きマイクロプロセッサに予め定めた処理を実行させると
ともに暴走があった旨の表示を行なわせる手段と、を具
備したことを特徴とするマイクロプロセッサ暴走チェッ
ク装置。
(1) In a device having a microprocessor, a program memory for storing programs, and a data memory for storing data, a check memory and a plurality of specified data areas of the data memory that are specified not to be accessed during normal program operation are provided. a detection circuit that detects that any of the addresses has been accessed by the microprocessor and outputs an interrupt signal to the microprocessor; a write control circuit that selects to enable writing to the check memory and prohibits writing to the check memory on condition that an interrupt signal is output; 1. A microprocessor runaway check device, comprising means for executing a process and displaying a message indicating that a runaway has occurred.
(2)マイクロプロセッサ、プログラムを記憶したプロ
グラムメモリおよびデータを記憶するデータメモリを有
する装置において、 チェックメモリと、 前記プログラムメモリにライト信号が出力されたことを
検知し、マイクロプロセッサへ割込信号を出力する検知
回路と、 この検知回路から割込信号が出力されないことを条件と
してマイクロプロセッサの動作を前記チェックメモリへ
書込み可能に選択するとともに、割込信号が出力された
ことを条件としてチェックメモリへの書込みを禁止させ
る書込制御回路と、前記検知回路からの割込信号に基づ
きマイクロプロセッサに予め定めた処理を実行させると
ともに暴走があった旨の表示を行なわせる手段と、を具
備したことを特徴とするマイクロプロセッサ暴走チェッ
ク装置。
(2) In a device having a microprocessor, a program memory for storing programs, and a data memory for storing data, detecting that a write signal is output to the check memory and the program memory, and sending an interrupt signal to the microprocessor. Select a detection circuit to output, and write the operation of the microprocessor to the check memory on the condition that no interrupt signal is output from this detection circuit, and write the operation of the microprocessor to the check memory on the condition that the interrupt signal is output. and a means for causing a microprocessor to execute a predetermined process based on an interrupt signal from the detection circuit and displaying an indication that a runaway has occurred. Features a microprocessor runaway check device.
JP63055546A 1988-03-09 1988-03-09 Microprocessor runaway check device Pending JPH01229342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63055546A JPH01229342A (en) 1988-03-09 1988-03-09 Microprocessor runaway check device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63055546A JPH01229342A (en) 1988-03-09 1988-03-09 Microprocessor runaway check device

Publications (1)

Publication Number Publication Date
JPH01229342A true JPH01229342A (en) 1989-09-13

Family

ID=13001705

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63055546A Pending JPH01229342A (en) 1988-03-09 1988-03-09 Microprocessor runaway check device

Country Status (1)

Country Link
JP (1) JPH01229342A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06309192A (en) * 1993-04-23 1994-11-04 Nec Corp Peripheral controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06309192A (en) * 1993-04-23 1994-11-04 Nec Corp Peripheral controller

Similar Documents

Publication Publication Date Title
JPH07271403A (en) Inactive system memory updating system
JPH0259937A (en) Ic card
US6779132B2 (en) Preserving dump capability after a fault-on-fault or related type failure in a fault tolerant computer system
US6697959B2 (en) Fault handling in a data processing system utilizing a fault vector pointer table
JPH01229342A (en) Microprocessor runaway check device
US6687845B2 (en) Fault vector pointer table
US20090006907A1 (en) Method and apparatus for identification of program check errors indicating code with high potential for storage overlay
TW461997B (en) Write protection method of programmable chipset software
JP2000339189A (en) Method for detecting illegal memory access debugging device and storage medium
JP2002538532A (en) Access protection device for IC card applications
JPH0635747A (en) Debug support device
JP2679575B2 (en) I/O channel fault handling system
JPS628831B2 (en)
JPH07152598A (en) Incircuit emulator
CN117251368A (en) A debugging information output method, device, electronic equipment and storage medium
JPH08263223A (en) Computer system
JPS60193046A (en) Instruction exception detection method
JPH0538385A (en) Program copy preventing device
JPS5922147A (en) Checking system of retrial processing
JPH0333939A (en) Microprocessor
JPH11102309A (en) Debugging device, processor and recording medium
JPS62127944A (en) Information processor
JPH04337847A (en) Program check method
JPS61160164A (en) Information processor
JP2000132536A (en) Computer