JPS59119455A - Fault detecting system of microprocessor - Google Patents
Fault detecting system of microprocessorInfo
- Publication number
- JPS59119455A JPS59119455A JP57228354A JP22835482A JPS59119455A JP S59119455 A JPS59119455 A JP S59119455A JP 57228354 A JP57228354 A JP 57228354A JP 22835482 A JP22835482 A JP 22835482A JP S59119455 A JPS59119455 A JP S59119455A
- Authority
- JP
- Japan
- Prior art keywords
- microprocessor
- internal circuit
- contents
- memory
- data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
Abstract
Description
【発明の詳細な説明】
(a)発明の技術分野
本発明はマイクロプロセッサの内部機能を適宜動作させ
る事により、該マイクロプロセンサの障害を検出する能
力の向上を計るマイクロプロセッサの障害検出方式に関
する。Detailed Description of the Invention (a) Technical Field of the Invention The present invention relates to a fault detection method for a microprocessor that improves the ability to detect faults in a microprocessor by appropriately operating the internal functions of the microprocessor. .
(b)従来技術と問題点
従来、マイクロプロセッサの障害検出方式としては、マ
イクロプロセッサを二重化して両方のデータが一致しな
いことで障害を検出する方式と。(b) Prior Art and Problems Conventionally, microprocessor fault detection methods include a method in which microprocessors are duplicated and a fault is detected when the data on both do not match.
監視タイマを利用し一定時間内に該監視タイマをリセッ
トする命令を出す約束の下に、その命令が発行されない
場合は該命令を発行するプログラムの走行が異常である
と判断し、障害であるとみなす方式とがある。前者はマ
イクロ、プロセッサの機能が常時チェックされる利点は
あるが、マイクロプロセッサを二重に用意し、外部に処
理したデータの一致をチェックする回路を準備しなけれ
ばならず、更に外部の制御用のフリップフロップ等の異
常によるプログラムの暴走が検出出来ない欠点があり、
後者はプログラムの走行は済んでも、其の中で実行され
るべき機能(例えば加算機能)の良否は不明であり、内
部回路の異常が検出出来ない欠点がある。Under the promise of using a monitoring timer and issuing a command to reset the monitoring timer within a certain period of time, if that command is not issued, the program that issues the command is judged to be running abnormally, and is considered to be a failure. There is a method to consider it. The former has the advantage that the functions of the microprocessor and processor are constantly checked, but it requires the provision of dual microprocessors, an external circuit for checking the consistency of processed data, and an additional need for external control. It has the disadvantage that it cannot detect runaway programs due to abnormalities in flip-flops, etc.
The latter has the disadvantage that even though the program has finished running, it is unclear whether the function (for example, an addition function) to be executed within the program is good or not, and abnormalities in the internal circuit cannot be detected.
(C)発明の目的
本発明の目的は上記欠点を除く為、一定時間内にマイク
ロプロセンサの内部回路の試験を適宜行うことにより、
マイクロプロセッサを二重化することなくプログラムの
暴走、内部回路の界雷を共に検出し得るマイクロプロセ
ッサの障害検出方式を提供することにある。(C) Purpose of the Invention The purpose of the present invention is to eliminate the above-mentioned drawbacks by appropriately testing the internal circuit of the microprocessor sensor within a certain period of time.
It is an object of the present invention to provide a microprocessor failure detection method capable of detecting both program runaway and internal circuit failure without duplication of microprocessors.
(d)発明の構成
本発明の構成はマイクロプロセッサと、該マイクロプロ
セッサ上で走行するプログラムを格納する為のメモリと
1時間監視用の監視タイマと、マイクロプロセッサ診断
用の内部回路動作指令を与えるファンクションレジスタ
とを備え、該ファンクシジンレジスタの内容に対応する
データを該メモリに用意し、該監視タイマの割込みによ
り該マイクロプロセッサに該ファンクションレジスタの
内容を読み取らせ、該内容に従い該メモリに用意された
データを処理して照合することによりマイクロプロセッ
サの障害を検出する様にしたものである。(d) Structure of the Invention The structure of the present invention provides a microprocessor, a memory for storing a program running on the microprocessor, a monitoring timer for one-hour monitoring, and an internal circuit operation command for microprocessor diagnosis. a function register, prepares data corresponding to the contents of the function register in the memory, causes the microprocessor to read the contents of the function register by an interrupt of the monitoring timer, and prepares data in the memory according to the contents. This system is designed to detect microprocessor failures by processing and comparing the collected data.
(e)発明の実施例
本発明はマイクロプロセッサにランダムな内部回路動作
指令を与えるファンクションレジスタと。(e) Embodiments of the Invention The present invention includes a function register that gives random internal circuit operation commands to a microprocessor.
そのファンクションレジスタの内容に対応した入力デー
タ、予想される出力データをメモリ上の特定領域に格納
し、マイクロプロセッサの内部回路を一定時間間隔でザ
ンプル的に試験する様にしたものである。Input data and expected output data corresponding to the contents of the function register are stored in a specific area on the memory, and the internal circuits of the microprocessor are tested in a sample manner at regular time intervals.
図は本発明の一実施例を示す回路のプロ・/り図である
。マイクロプロセッサ1とファンクシジンレジスタ3と
メモリ4とは母線5により相互に接続される。マイクロ
プロセッサ1は監視タイマ2より第1の所定時間間隔で
割込信号を受は付ける。The figure is a professional diagram of a circuit showing one embodiment of the present invention. The microprocessor 1, funxidine register 3, and memory 4 are interconnected by a bus 5. The microprocessor 1 receives and receives interrupt signals from the monitoring timer 2 at first predetermined time intervals.
割込みを受は付けたマイクロプロセッサ1はそれまでの
処理を中断し、ファンクションレジスタ3の内容を読み
、その内容に応じてメモリ4よりテス(−データを読み
込んで処理を行う。テストデータは入力データと予想さ
れる出力データとがある為、マイクロプロセッサlは該
入力データを処理して予想出力データと照合する。該照
合結果が一致した場合は、該処理が正常に行われたとし
てマイクロプロセッサlば監視タイマ2にリセット信号
を送出して自己診断を終了する。若し該照合結果が一致
しなかった場合は監視タイマ2にす七ント信号が送出さ
れず、第2の所定時間に達するとマイクロプロセッサ1
の障害として報告される。The microprocessor 1 that has accepted the interrupt interrupts the previous processing, reads the contents of the function register 3, and according to the contents reads the TES(-) data from the memory 4 and processes it.The test data is the input data. Since there is expected output data, the microprocessor 1 processes the input data and compares it with the expected output data.If the comparison results match, the microprocessor 1 determines that the processing was performed normally. If the comparison results do not match, the reset signal is sent to the monitoring timer 2 and the self-diagnosis is ended. microprocessor 1
reported as a failure.
ファンクシジンレジスタ3に設定される内容と。The contents set in funxidine register 3.
それに対応してメモリ4に格納するテストデータを適宜
選択することで、マイクロプロセッサ1のチェ・ツク出
来る範囲を選択することが可能である。By appropriately selecting the test data to be stored in the memory 4 in accordance with this, it is possible to select the range in which the microprocessor 1 can be checked.
又ファンクションレジスタ3をメモリ4の内部に設ける
事も考えられる。この場合機能は上記と同一であるが、
ファンクションレジスタ3が不要となる代わりメモリ4
の領域がその分必要となる。It is also conceivable to provide the function register 3 inside the memory 4. In this case the functionality is the same as above, but
Memory 4 instead of function register 3
area is required accordingly.
(f)発明の詳細
な説明した如く1本発明は一定時間内にマイクロプロセ
ッサの内部回路の試験を適宜行うことにより、マイクロ
プロセッサを用いるシステムに於て、マイクロプロセッ
サを二重化することなくプログラムの暴走、内部回路の
異常を共に容易に検出し得る為、その効果は大なるもの
がある。(f) Detailed Description of the Invention 1. The present invention is capable of preventing program runaway in a system using a microprocessor by appropriately testing the internal circuit of a microprocessor within a certain period of time without duplicating the microprocessor. , it is possible to easily detect abnormalities in the internal circuits, so the effect is great.
図は本発明の一実施例を示す回路のブロック図である。
■はマイクロプロセ・ノザ、2は監視タイマ、3はファ
ンクションレジスタ、4はメモリである。The figure is a block diagram of a circuit showing one embodiment of the present invention. 2 is a microprocessor, 2 is a monitoring timer, 3 is a function register, and 4 is a memory.
Claims (1)
するプログラムを格納する為のメモリと。 時間監視用の監視タイマと、マイクロプロセッサ診断用
の内部回路動作指令を与えるファンクションレジスタと
を備え、該ファンクションレジスタの内容に対応するデ
ータを該メモリに用意し、該監視タイマの割込みにより
該マイクロプロセッサに該ファンクションレジスタの内
容を読み取らせ。 該内容に従い該メモリに用意されたデータを処理して照
合することによりマイクロプロセ・ノサの障害を検出す
ることを特徴とするマイクロプロセ・7すの障害検出方
式。[Scope of Claim] A micro 10 processor and a memory for storing a program running on the microprocessor. It is equipped with a supervisory timer for time monitoring and a function register that gives internal circuit operation commands for microprocessor diagnosis, and data corresponding to the contents of the function register is prepared in the memory, and when the supervisory timer interrupts, the microprocessor read the contents of the function register. A fault detection method for a microprocessor, characterized in that a fault in the microprocessor is detected by processing and collating data prepared in the memory according to the content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57228354A JPS59119455A (en) | 1982-12-27 | 1982-12-27 | Fault detecting system of microprocessor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57228354A JPS59119455A (en) | 1982-12-27 | 1982-12-27 | Fault detecting system of microprocessor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS59119455A true JPS59119455A (en) | 1984-07-10 |
Family
ID=16875139
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57228354A Pending JPS59119455A (en) | 1982-12-27 | 1982-12-27 | Fault detecting system of microprocessor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS59119455A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6252645A (en) * | 1985-08-30 | 1987-03-07 | Chino Corp | Method for detecting run away of processor |
-
1982
- 1982-12-27 JP JP57228354A patent/JPS59119455A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6252645A (en) * | 1985-08-30 | 1987-03-07 | Chino Corp | Method for detecting run away of processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0319571B2 (en) | ||
JPS59119455A (en) | Fault detecting system of microprocessor | |
JPH07248810A (en) | Numerical controller | |
JP3082806B2 (en) | Fault diagnosis device | |
JPH01134637A (en) | Supervising system for information in stall processing system | |
JPS6033474Y2 (en) | Computer abnormality detection circuit | |
JPH0212538A (en) | Automatic memory dump system | |
JPS6141423B2 (en) | ||
JPS6342297B2 (en) | ||
JPH0118460B2 (en) | ||
JPH01166140A (en) | Information processor diagnosing system | |
JPS63255743A (en) | Multiprocessor monitoring system | |
JPH0667921A (en) | Information processor having fault processing function | |
JPS6232816B2 (en) | ||
JPS5898900A (en) | Microprocessor controlling system | |
JPS61233841A (en) | Personal computer with self-diagnostic function | |
JPH01161544A (en) | Program tracing system | |
JPS6380343A (en) | Output system for trace information | |
JPH05233359A (en) | Debugging device | |
JPH02176834A (en) | Self-monitor system for program logic | |
JPH04293133A (en) | Fault monitoring system in loosely coupled multi-processor system | |
JPS6139136A (en) | Inspection system of information processor | |
JPS61150027A (en) | Timer circuit diagnostic system of serial printer | |
JPH0342749A (en) | Input/output controller | |
JPH02122352A (en) | Diagnostic method for input/output operation |