JPH02130646A - Abnormality detecting system for cpu - Google Patents

Abnormality detecting system for cpu

Info

Publication number
JPH02130646A
JPH02130646A JP63285345A JP28534588A JPH02130646A JP H02130646 A JPH02130646 A JP H02130646A JP 63285345 A JP63285345 A JP 63285345A JP 28534588 A JP28534588 A JP 28534588A JP H02130646 A JPH02130646 A JP H02130646A
Authority
JP
Japan
Prior art keywords
signal
cpu
circuit
output
interruption
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
JP63285345A
Other languages
Japanese (ja)
Inventor
Kazunari Yashima
八島 一成
Masaru Takayama
賢 高山
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP63285345A priority Critical patent/JPH02130646A/en
Publication of JPH02130646A publication Critical patent/JPH02130646A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To attain the abnormality detection of a CPU not to be affected with the constitution of a program by requesting interruption to the CPU and checking an interruption permission signal when the CPU executes the abnormality detection. CONSTITUTION:An interruption requesting means 1 outputs an interruption requesting signal simultaneously with a counting means 2 and a system bus 7 to an arbitration circuit in a CPU 5. In the case of receiving the interruption requesting signal, the means 2 selects and receives the interruption permission signal outputted from the arbitration circuit to the bus 7. Further, the means 2 counts a time interval from the reception of the interruption requesting signal to the reception of the interruption permission signal, and the reception continuing time of the interruption permission signal. When respective counted values are in a set range set in advance, the interruption requesting signal is outputted again to the means 1 and when the counted values exceed the set range, an overflow signal is outputted to an abnormal signal output means 3. The means 3 outputs a failure signal showing that a failure is generated in the CPU 5.

Description

【発明の詳細な説明】 A、産業上の利用分野 この発明はマイクロコンピュータシステムにおけるのC
PU (中央処理装置)−の異常検出方式に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION A. Field of Industrial Application This invention is applicable to microcomputer systems.
The present invention relates to an abnormality detection method for a PU (central processing unit).

B2発明の概要 この発明は、マイクロコンピュータシステムのCPUの
%才をハードウェアにより検出する方法において、 割込み要求信号をサイクリックにCPUに出力し、CI
U U内のアビィトレーション回路がこの信号をうけて
から割込みの受付を示す別込み許可信号をシステムバス
に出力する迄の時間と同信号の出力継続時間を測定する
ようにし、 それぞれの値が設定した範囲を越える場合にはCPU内
部に異常が発生しているとp1所し異常信号を出力する
ようにしたため、CPUの異常検出を能動的に行なうこ
とが可能となりこの結果、マイクロコンピュータシステ
ムのシステム構成に左右されず又汎用性の高いCPUの
異常検出方式を提供出来るようになった。
B2 Summary of the Invention The present invention provides a method for detecting the CPU percentage of a microcomputer system by hardware, in which an interrupt request signal is cyclically output to the CPU, and a CI
Measure the time from when the arbitration circuit in UU receives this signal until it outputs a separate permission signal indicating acceptance of an interrupt to the system bus, and the duration of output of the same signal, and calculate the respective values. If the set range is exceeded, it is assumed that an abnormality has occurred inside the CPU, and an abnormality signal is output. This makes it possible to actively detect CPU abnormalities, and as a result, the microcomputer system It has become possible to provide a CPU abnormality detection method that is not affected by the system configuration and is highly versatile.

C0従来の技術 従来、CPUの異常検出方式としてはソフトウェアによ
るプログラム暴走検出方式と同方式に冗長を待たせるた
めのハードウェアによる信号モニタ方式があるが、以下
にこれらの方式によるC I)Uの異常検出方式を第4
図及び第5図を基に説明する。
C0 Conventional technology Conventionally, as a CPU abnormality detection method, there are a program runaway detection method using software and a signal monitoring method using hardware to wait for redundancy. The fourth abnormality detection method
This will be explained based on the figure and FIG.

第4図はソフトウェアによるプログラム暴走検出方式を
示す図であるが、同図において、5はCPU、6 (1
) 6 (2)  ・・は記憶装置や入出力装置などか
らなる各種装置、7はシステムバス、8及び9 (L)
 9 (2) ・・はシステムバス7とCPU5及びF
J装置 (1) 6 (2)  ・・とを接続するバス
である。21は後述のプログラム暴走検出回路の起動を
指令する指令囲路、22はハードウェアで構成されたウ
ォッチドッグタイマ(WDT)を内蔵したプログラム暴
走検出回路である。
FIG. 4 is a diagram showing a program runaway detection method using software. In the figure, 5 is the CPU, 6 (1
) 6 (2) ... is various devices such as storage devices and input/output devices, 7 is the system bus, 8 and 9 (L)
9 (2) ... is system bus 7, CPU 5 and F
This is a bus that connects the J devices (1), 6, (2), and so on. Reference numeral 21 denotes a command circuit for instructing activation of a program runaway detection circuit, which will be described later. Reference numeral 22 denotes a program runaway detection circuit incorporating a watchdog timer (WDT) constituted by hardware.

このようにh!l成されたソフトウェアによるプログラ
ム暴走検出方式についてその動作を以下に説明する。ソ
フトウェアによりCPU5はシステムバス7及び信号w
&24を介し指令回路21に対し暴走検出回路22を起
動すべく起動指令を出力する。これを受は指令回路21
はプログラム暴走検出[IFl路22をイネーブルにす
る。これにより同図路22内のウォッチドッグタイマは
カウントを開始するが、ソフトウェアに設けられたリセ
ットプログラムによりCPU5は所定の範囲内の時間間
隔でシステムバス7及び信号線23を介してリセット信
号をプログラム暴走検出回路22に出方するため、同回
路22内のウォッチドッグタイマはサイクリックにリセ
ットされる。
Like this h! The operation of the software-based program runaway detection method will be described below. The software allows the CPU 5 to connect the system bus 7 and the signals w.
A start command is output to the command circuit 21 via &24 to start the runaway detection circuit 22. This is received by the command circuit 21
enables program runaway detection [IFl path 22]. As a result, the watchdog timer in the circuit 22 of the figure starts counting, but a reset program provided in the software causes the CPU 5 to program a reset signal via the system bus 7 and the signal line 23 at time intervals within a predetermined range. Since the signal is output to the runaway detection circuit 22, the watchdog timer in the circuit 22 is cyclically reset.

CPU5に異常が発生しリセット信号が出力されなくな
ると、プログラム暴走検出回路22内のウォッチドッグ
タイマはオーバフロつしCPU5が異常であるとして同
回路は異常信号を信号線26より出力する。
When an abnormality occurs in the CPU 5 and the reset signal is no longer output, the watchdog timer in the program runaway detection circuit 22 overflows, and the circuit outputs an abnormal signal from the signal line 26, indicating that the CPU 5 is abnormal.

しかしながら、このようなソフトウェアによるCPUの
異常検出には以下に述べるような問題がある。すなわち
、プログラム暴走検出をより早く行なうためにはウォッ
チドッグタイマをリセットするためのリセットプログラ
ムをなるべく短い周期でプログラムLに設ければよいの
であるが、ソフトウェアでは一般にリセットプログラム
よりも優先して走らせなければならないプログラムが多
数ある。このようなプログラムの中にリセットプログラ
ムを挿入することは技術的にきわめて?l[雑となるた
め通常行なわれない。したがって、プログラム上に設け
られるリセットプログラムは優先プログラムの枠外に挿
入され、リセットプログラムのプログラム上への挿入間
隔はあまり短くできないということになる。この結果ソ
フトウェアによるCPUの異常検出周期はかなり長い時
間を要することになり、極端な場合には数十秒を要する
こともある。又、プログラム上のリセットプログラムを
含んだある部分で永久ループを起こした場合には、CP
Uの異常であるにもかかわらずこれを顕在化できなくな
る。さらに、ハードウェアに故障が発生した場合にもこ
れを発見できないという問題もある。
However, such software-based CPU abnormality detection has the following problems. In other words, in order to detect a program runaway more quickly, a reset program for resetting the watchdog timer should be provided in program L with as short a cycle as possible, but software generally must be run with priority over the reset program. There are many programs that you must use. Is it technically possible to insert a reset program into such a program? l [This is not normally done because it would be sloppy. Therefore, the reset program provided on the program is inserted outside the frame of the priority program, and the interval at which the reset program is inserted onto the program cannot be made very short. As a result, the CPU abnormality detection cycle by software takes a considerably long time, and in extreme cases may take several tens of seconds. Also, if an eternal loop occurs in a part of the program that includes a reset program, the CP
Even though it is an abnormality of U, it becomes impossible to manifest it. Furthermore, there is also the problem that even if a hardware failure occurs, it cannot be detected.

以上のように、ソフトウェアによるプログラム暴走検出
方式には種々の問題点を含んでいるが、このような問題
点を補うための冗長手段としてハードウェア構成による
CPUの信号モニタ方式を一般にCPU異常検出方式と
して併用することが多い。以下に、このような冗長手段
としてのハードウェア構成によるにCPUの信号モニタ
方式について説明する。
As mentioned above, the program runaway detection method using software has various problems, but as a redundant means to compensate for these problems, the CPU signal monitoring method using the hardware configuration is generally used as the CPU abnormality detection method. It is often used in combination as A CPU signal monitoring system using a hardware configuration as such redundancy means will be described below.

第5図はハードウェアによるCPUの信号モニタ方式を
説明する図であるが、同図においてf14図と同一部分
については同一符号を付しているがt#糟な説明がすで
になされているのでここでは省略する。
Fig. 5 is a diagram explaining the CPU signal monitoring method using hardware. In this figure, the same parts as in Fig. I will omit it here.

ソフトウェアによりCPU5はシステムバス7及び信号
線45を介して異常検出の開始を指令回路32に指令す
る。指令回路32はこれを受は信号線46を介して異常
検出カウンタ回路33をイネーブルにする。″j4常検
出カウンタ回路33はこれによりクロック発生回路35
から信号線42を介して出力されるクロックパルスのカ
ウントを開始する。CPU5が正常な場合はCPU5よ
りシステムバス7上に特定の信号例えばメモリをアクセ
スするためのアドレス信号など(以下モニタ信号と称す
る)が一定時間内にかならず一度は出力されるが、モニ
タ信号選択回路31はこの信号をシステムバス7及び信
号線43より選択受信し。
Using software, the CPU 5 instructs the command circuit 32 to start abnormality detection via the system bus 7 and signal line 45. The command circuit 32 receives this and enables the abnormality detection counter circuit 33 via the signal line 46. ``j4 normal detection counter circuit 33 is thereby activated by clock generation circuit 35.
Counting of clock pulses outputted from the signal line 42 is started. When the CPU 5 is normal, a specific signal such as an address signal for accessing memory (hereinafter referred to as a monitor signal) is always outputted from the CPU 5 on the system bus 7 at least once within a certain period of time, but the monitor signal selection circuit 31 selectively receives this signal from the system bus 7 and signal line 43.

これを受信した場合にはリセット信号に変換して信号線
44を介して異常検出カウンター回路33に出力する。
When this is received, it is converted into a reset signal and output to the abnormality detection counter circuit 33 via the signal line 44.

″A常検出カウンタ回路33はこの信号を受は今までカ
ウントしていた累積値をクリアする。異常検出カウンタ
回路33内の図示されていないカウンタ部ではCPU5
がシステムバス7にモニタ信号を出力する時間間隔(先
に述べた一定時間を意味する)に対応したオーパフロウ
設定値が設定されているが、同回路33がモニタ信号選
択回路31よりのリセット信号を先の一定時間内に受信
しない場合(CPU5内に異常が発生し一定時間内にモ
ニタ信号が出力されない場合)には内部カウンタ値がこ
の設定(aをオーバーする。
``A normal detection counter circuit 33 receives this signal and clears the cumulative value that has been counted up until now.A counter section (not shown) in the abnormality detection counter circuit 33 receives this signal from the CPU 5.
The overflow setting value corresponding to the time interval (meaning the fixed time mentioned above) at which the monitor signal is outputted to the system bus 7 is set. If the monitor signal is not received within the predetermined time (if an abnormality occurs in the CPU 5 and the monitor signal is not output within the predetermined time), the internal counter value exceeds this setting (a).

この時、同回路33はオーパフロウ信号を信号線47を
介して異常信号出力回路34に出力する。
At this time, the circuit 33 outputs an overflow signal to the abnormal signal output circuit 34 via the signal line 47.

異常信号出力回路34は、このオーパフロウ信号を受け
CPU5の異常を示す異常信号を信号線48より出力す
る。
The abnormality signal output circuit 34 receives this overflow signal and outputs an abnormality signal indicating an abnormality of the CPU 5 from the signal line 48.

以上の説明のようにこの方式では、一定時間にかならず
CP tJよりシステムバスに出力される特定のモニタ
信号をハードウェアによって受信しこの信号が受イ4さ
れなかった場合にはCPUに異常が発生したと判所する
ものであるが、この方式の場合はCPUがシステムバス
にモニタ信号を出力する時間+1111隔がかなり短い
ことからソフトウェアによるプログラム暴走検出方式と
比較してかなり早い時間間隔でCPUの異常を発見でき
るという特徴を有する。又、ハードウェアに起因する故
障も同時に検出できるという利点もある。
As explained above, in this method, a specific monitor signal output from the CP tJ to the system bus is always received by the hardware at a certain time, and if this signal is not received, an error occurs in the CPU. However, in this method, the time interval for the CPU to output a monitor signal to the system bus + 1111 times is quite short, so compared to the software-based program runaway detection method, the CPU outputs the monitor signal at a much faster time interval. It has the characteristic of being able to detect abnormalities. Another advantage is that failures caused by hardware can be detected at the same time.

D1発明が解決しようとする課題 しかしながら、ソフトウェアによるプログラム暴走検出
方式の冗長として用いられるCPUの信号モニタ方式に
ついても以下に示すような問題点がある。
D1 Problems to be Solved by the Invention However, the CPU signal monitoring method used as redundancy for the software-based program runaway detection method also has the following problems.

すなわち、異なったシステムにこの方式を採用した場合
には、システムに応じてCPUから出力されるモニタ信
号の時間間隔も異なっており、さらに同一システムに於
いてもプログラムの構成によってはモニタ信号の出力さ
れる時間間隔は一定していない場合もある。このため、
異常検出カウンター回路33内のオーパフロウ設定値の
設定に際しては、種々のシステムに適応させるためとプ
ログラム構成による差異とを考慮して、ある程度余裕を
持たせておかなければならないという問題があった。換
にすれば、CPUの異常発見をより早く行なうための汎
用性のある方法とは言えなかった。さらに根本的な問題
としては、CPUがシステムバスをあまりアクセスしな
いというようなシステムではこの方式を取り入れること
ができないという欠点があった。
In other words, when this method is adopted for different systems, the time interval of the monitor signal output from the CPU will differ depending on the system, and even in the same system, the output of the monitor signal may vary depending on the program configuration. In some cases, the time interval between the two times is not constant. For this reason,
When setting the overflow set value in the abnormality detection counter circuit 33, there is a problem in that a certain amount of leeway must be allowed in order to adapt to various systems and to take into account differences due to program configurations. In other words, this cannot be said to be a versatile method for quickly discovering CPU abnormalities. A more fundamental problem is that this method cannot be used in systems where the CPU rarely accesses the system bus.

この発明はかかる点に鑑みてなされたものでその目的と
するところは、マイクロコンピュータシステムのCPU
の異常検出に際して、ソフトウェア上のプログラム構成
の差異を問題とせず又マイクロコンピュータシステムの
システム構成の違いを選ばない汎用性の高いCPUの異
常検出方式を提供するものである。
This invention was made in view of the above, and its purpose is to improve the CPU of a microcomputer system.
The present invention provides a highly versatile CPU abnormality detection method that does not care about differences in software program configurations or differences in system configurations of microcomputer systems.

E、課題を解決するための手段 第1図は、本発明を説明するためのブロック図であるが
、以下に同図を基に本発明の詳細な説明する。
E. Means for Solving the Problems FIG. 1 is a block diagram for explaining the present invention, and the present invention will be explained in detail below based on the same figure.

CPU5.システムバス7、周辺装置16 (1)〜6
(n)からなるマイクロコンピュータシステムに、割込
み要求手段1と、計数手段2と、異常信号出力手段3と
により構成されるCPUの異常検出装置10を設け、 
割込み要求手段]は、計数手段2とシステムバス7を介
してCPU5内の7ビイトレ一シヨン回路とに同時に割
込み要求信号を出力し、この割込み要求信号を受信する
ことでCPU5内のアビィトレーション回路からシステ
ムバス7に出力される割込み許可信号を計数手段2は選
択受信し、さらに同計数手段2は割込み要求信号の受信
から割込み許可信号の受信迄の時間間隔と劃込み許可信
号の受信継続時間を計測しそれぞれの測定値があらかじ
め設定された設定範囲内の場合には再び前記割込み要求
手段1に訓込み要求信号を出力させ、測定値が設定範囲
を越える場合にはオーパフロウ信号を異常信号出力手段
3に出力し、同手yi3はこの信号を受信したことでC
PU内またはハードウェア構成に故障が発生したことを
示す故障信号を出力するように構成したものである。
CPU5. System bus 7, peripheral devices 16 (1) to 6
A microcomputer system consisting of (n) is provided with a CPU abnormality detection device 10 comprising an interrupt requesting means 1, a counting means 2, and an abnormality signal outputting means 3,
The interrupt request means] simultaneously outputs an interrupt request signal to the 7-bit transmission circuit in the CPU 5 via the counting means 2 and the system bus 7, and receives this interrupt request signal to interrupt the arbitration circuit in the CPU 5. The counting means 2 selectively receives the interrupt permission signal outputted from the system bus 7 to the system bus 7, and furthermore, the counting means 2 calculates the time interval from reception of the interrupt request signal to reception of the interrupt permission signal and the reception duration of the interruption permission signal. is measured, and if each measured value is within a preset setting range, the interrupt request means 1 is made to output a training request signal again, and if the measured value exceeds the set range, an overflow signal is output as an abnormal signal. The signal is output to the means 3, and the same hand yi3 receives this signal.
It is configured to output a failure signal indicating that a failure has occurred within the PU or in the hardware configuration.

21作用 この発明よる計数手段2ではCPUのアビィトレーショ
ン回路が割込み要求信号を受けてから割込み許可信号を
出力するまでの時間間隔と割込み許可信号の出力継続時
間が計測され、さらに同手段2はこれらの測定値が設定
範囲をこえた場合にはc p tyまたはハードウェア
構成に異常が発生したと判新しオーパフロウ信号を出力
する。
21 Operation The counting means 2 according to the present invention measures the time interval from when the arbitration circuit of the CPU receives the interrupt request signal until it outputs the interrupt permission signal and the output duration time of the interrupt permission signal. If these measured values exceed the set range, it is determined that an abnormality has occurred in c p ty or the hardware configuration, and an overflow signal is output.

G、実施例 本発明の実施例を第2図をもとに以下に説明する。尚、
同図では、従来技術と同一部分については同一符号を付
しているがすでに詳細な説明がなされているのでここで
は省略する。
G. Embodiment An embodiment of the present invention will be described below with reference to FIG. still,
In the figure, the same parts as those in the prior art are given the same reference numerals, but since detailed explanations have already been given, detailed explanations are omitted here.

同図において、11は劃込み要求信号の出力周期を決め
るタイマ回路、12は、CPUに割込み要求信号が出力
されてからCPUが割込み許可信号を出力するまでの時
間を計測するタイマ回路、13はCPUから出力される
割込み許可信号の出力継続時間を計測するタイマ回路、
14はタイマ回路11からの指令でCPUに割り込み要
求信号を出力する割込み要求回路、15はモニタ信号受
信回路で、CRU5内のアビィトレーション回路が出力
する割込み許可信号をシステムバス7より選択受信する
、16は、前述のタイマ回路11.12.13の起動を
指令する指令回路、17は異常信号出力回路で、前述の
タイマ回路12及び13より出力されるオーパフロウ信
号を受信しこれにより異常信号を外部に出方する。以上
の各種回路11〜17によりCPUの異常検出装置10
が構成されている。尚、同図において、割込み要求回路
14とタイマ回路11とにより第1図に示される割込み
要求手段1が構成され、モニタ信号受信回路15とタイ
マ回路12及び13とにより第1図に示される計数手段
2が構成され、異常信号出力回路17は第1図に示す異
常信号出力手段3である。
In the figure, 11 is a timer circuit that determines the output cycle of the interrupt request signal, 12 is a timer circuit that measures the time from when the interrupt request signal is output to the CPU until the CPU outputs the interrupt permission signal, and 13 is a timer circuit that measures the time from when the interrupt request signal is output to the CPU until the CPU outputs the interrupt permission signal. a timer circuit that measures the output duration of the interrupt permission signal output from the CPU;
14 is an interrupt request circuit that outputs an interrupt request signal to the CPU in response to a command from the timer circuit 11; 15 is a monitor signal receiving circuit that selectively receives an interrupt permission signal output from the arbitration circuit in the CRU 5 from the system bus 7; , 16 is a command circuit for instructing the activation of the above-mentioned timer circuits 11, 12, and 13, and 17 is an abnormal signal output circuit which receives overflow signals output from the above-mentioned timer circuits 12 and 13 and thereby outputs an abnormal signal. Go outside. The CPU abnormality detection device 10 uses the various circuits 11 to 17 described above.
is configured. In the figure, the interrupt request circuit 14 and the timer circuit 11 constitute the interrupt request means 1 shown in FIG. The abnormal signal output circuit 17 is the abnormal signal output means 3 shown in FIG.

次に、本実施例の動作を第3図に示すタイムチャート図
と合わせて以下に説明する。
Next, the operation of this embodiment will be explained below along with the time chart shown in FIG.

初期設定信号(ア)によりタイマ回路11.12.13
、異常検出回路17のそれぞれに対してシステムに適合
した初Ua定が行われる。この設定により、タイマ回路
11に対してはCPUに割込み要求信号を出力する周期
が設定され、タイマ回路12及び13に対してはCPU
が正常に動作するかどうかを判別する時限がそれぞれ設
定され異常信号出力回路17に対してはリセットがされ
る。
Timer circuit 11.12.13 by initial setting signal (a)
, an initial Ua determination suitable for the system is performed for each of the abnormality detection circuits 17. With this setting, the cycle for outputting an interrupt request signal to the CPU is set for the timer circuit 11, and the cycle for outputting an interrupt request signal to the CPU is set for the timer circuits 12 and 13.
A time limit is set for determining whether or not the abnormality signal output circuit 17 operates normally, and the abnormality signal output circuit 17 is reset.

次に、ソフトウェアによりシステムの起動が開始されハ
ードウェアによるCPUの異常監視が要求されると、C
PU5は異常検出装置10を動作させるためシステムバ
ス7を介して指令回路16に起動開始信号(イ)を出力
する。指令回路16は、この信号を受信するとタイマ回
路11〜13に対しイネーブル信号(つ)を出方し各タ
イマ回路をイネーブルにする。タイマ回路11はイネー
ブルにされると同時にカウントを開始しくW3図のA)
、設定された時間にタイムアツプするとタイムアツプ信
号(1)を肩込み要求回路14とタイマ回路12に対し
て出力しく第3図のB)さらにカウント遺をリセットす
る。割込み要求回路14はこの信号を受信すると割込み
要求信号(オ)をシステムバス7を介してCPUに出方
(第3図のC)し、タイマ回路12はこの信号を受信す
るとカウントを開始する(第3図のD)。CPU5が正
常な動作を行なっている場合には同CPU内のアビィト
レーション回路は割込み要求信号(オ)をシステムバス
7より受信すると一定時間後にシステムバス7に別込み
許可信号(力)を出方(第3図のE)する。モニタ信号
受信回路15は、システムバス7よりこの割込み許可信
号を選択受信し受信した場合には受信期間中タイマ回路
12及び13に対してセット/リセット信号(キ)を出
力する(第3図のF) タイマ回路12はこの信号(キ
)を受信するとリセットされるが(第3図のG)、同回
路のカウント量が最初に設定された時限を越えた場合(
CPUに!A常が発生し、同CPU内の7ビイトレ一シ
ヨン回路からの割込み許可信号の出力が一定時間内に出
力されないことを意味する)には異常信号出力回路17
にオーパフロウ信号(ケ)を出力する。タイマ回路13
はセット/リセット信号(キ)を受信すると(第3図の
H)カウントを開始し受信が途絶えるとカウントを停止
するが(第3図の■)、カラン+−tが最初に設定した
時限を越える場合(CPUに異常が発生し、同CPUの
アビィトレーション回路が割込み許可信号を出力する時
間が異常に長くなることを意味する)には異常信号出力
回路17に対してオーパフロウ信号(コ)を出力するが
、カウント量が最初に設定した時限内の場合にはタイマ
回路11を再スタートすべくスタート指令(り)が出力
される(第3図のJ) タイマ回路IJがスタート指令
(り)を受は再びスタートされると以降上述と同様の一
連の動作がサイクリックに行われる。一方、異常信号出
力回路17が前述のオーパフロウ信号(ケ)又は(コ)
を受信した場合には、外部WN回路または外部システム
に対してこのシステムのCPU内に異常が発生したこと
を知らせるべく外部システムに対応した異常信号(す)
を出力する。以上のような動作作用によりCPUの異常
を能動的に検出することが出来る。
Next, when the software starts the system and requests the hardware to monitor the CPU for abnormalities, the
The PU 5 outputs an activation start signal (a) to the command circuit 16 via the system bus 7 in order to operate the abnormality detection device 10. When the command circuit 16 receives this signal, it outputs an enable signal (two) to the timer circuits 11 to 13 to enable each timer circuit. The timer circuit 11 should start counting as soon as it is enabled (A in figure W3).
When the time-up reaches the set time, a time-up signal (1) is output to the shoulder request circuit 14 and the timer circuit 12 (B) in FIG. 3, and the count is reset. When the interrupt request circuit 14 receives this signal, it outputs an interrupt request signal (O) to the CPU via the system bus 7 (C in FIG. 3), and when the timer circuit 12 receives this signal, it starts counting ( D in Figure 3). When the CPU 5 is operating normally, the arbitration circuit within the CPU receives an interrupt request signal (O) from the system bus 7 and outputs a separate permission signal (power) to the system bus 7 after a certain period of time. (E in Figure 3). The monitor signal receiving circuit 15 selectively receives this interrupt permission signal from the system bus 7, and when received, outputs a set/reset signal (K) to the timer circuits 12 and 13 during the receiving period (see FIG. 3). F) When the timer circuit 12 receives this signal (K), it is reset (G in Figure 3), but if the count amount of the circuit exceeds the initially set time limit (
To the CPU! (This means that the interrupt permission signal from the 7-bit transmission circuit in the same CPU is not output within a certain period of time), the abnormal signal output circuit 17
Outputs an overflow signal (ke) to the Timer circuit 13
starts counting when it receives the set/reset signal (K) (H in Figure 3), and stops counting when the reception is interrupted (■ in Figure 3), but the time limit set initially by Callan +-t is If it exceeds the limit (meaning that an abnormality occurs in the CPU and the time it takes for the arbitration circuit of the CPU to output an interrupt permission signal becomes abnormally long), an overflow signal (co) is sent to the abnormal signal output circuit 17. However, if the counted amount is within the initially set time limit, a start command (RI) is output to restart the timer circuit 11 (J in Figure 3). ) is restarted, and a series of operations similar to those described above are performed cyclically. On the other hand, the abnormal signal output circuit 17 outputs the above-mentioned overflow signal (k) or (c).
is received, an abnormality signal corresponding to the external system is sent to notify the external WN circuit or external system that an abnormality has occurred in the CPU of this system.
Output. Through the above-described operation and action, abnormalities in the CPU can be actively detected.

H1発明の効果 以上の説明のように本発明によれば、ハードウェアによ
るマイクロコンピュータシステムのcPUの異常検出に
際して、CPUに割込みを要求しCPUからの割込み許
可信号をチエツクする方式をとったため、CPUの異常
検出を能動的に行なうことが可能となり、これによりマ
イクロコンピュータシステムのシステム構成に左右さ九
ず又プログラムの構成にも影響されないCPUの異常検
出方式が提供出来るようになった。さらに、本方式は、
CPUの7ビイトレ一シヨン回路の動作チエツクに着眼
したので、CPUの異常の発見率がきわめて高く又特別
に割込み処理プログラムを必要としないなどの効果を併
存している。
H1 Effects of the Invention As described above, according to the present invention, when detecting an abnormality in the cPU of a microcomputer system by hardware, a system is adopted in which an interrupt is requested to the CPU and an interrupt permission signal from the CPU is checked. It has become possible to actively detect abnormalities in the CPU, and as a result, it has become possible to provide a CPU abnormality detection method that is not influenced by the system configuration of the microcomputer system or by the program configuration. Furthermore, this method
Since we focused on checking the operation of the 7-bit transmission circuit of the CPU, we have the advantage that the detection rate of CPU abnormalities is extremely high and that no special interrupt processing program is required.

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

第1図は、本発明の詳細な説明するための構成図。第2
図は、本発明の実施例を示すハードウェア構成図。!f
f3図は、第2図の実施例を説明するためのタイムチャ
ート図、1!4図は、従来技術のソフトウェアによるプ
ログラム暴走検出方式を示すブロック図。第5図は、従
来技術のハードウェアによるCPUの信号モニタ方式を
示すブロック図である。 1・・割込み要求手段 2・・計数手段 3・・異常検出手段 5・・CPU 7・・システムバス 第1図 第 図 第 図
FIG. 1 is a configuration diagram for explaining the present invention in detail. Second
The figure is a hardware configuration diagram showing an embodiment of the present invention. ! f
Figure f3 is a time chart diagram for explaining the embodiment of Figure 2, and Figures 1 and 4 are block diagrams showing a program runaway detection method using software in the prior art. FIG. 5 is a block diagram showing a conventional hardware-based CPU signal monitoring system. 1... Interrupt request means 2... Counting means 3... Abnormality detection means 5... CPU 7... System bus Figure 1 Figure Figure

Claims (1)

【特許請求の範囲】[Claims] マイクロコンピュータシステムにおけるCPU(中央処
理装置)の異常検出方式において、前記システムに割込
み要求手段と、計数手段と、異常信号出力手段とを有す
る異常検出装置を設け、前記割込み要求手段は前記CP
Uと計数手段とに割込み要求信号を出力し、計数手段は
前記CPU内のアビィトレーション回路が前記割込み要
求信号を受信したことでシステムバスに出力する割込み
許可信号を受信し、さらに計数手段は前記割込み要求信
号の受信から割込み許可信号の受信までの時間間隔と割
込み許可信号の受信時間とを測定し、この係数手段の各
測定値があらかじめ設定された設定範囲を越える場合に
はオーバフロー信号を前記異常信号出力手段に出力し、
同異常信号出力手段はこの信号を受信することでCPU
内に故障が発生したことを示す異常信号を出力するよう
にしたことを特徴とするCPUの異常検出方式。
In an abnormality detection method for a CPU (central processing unit) in a microcomputer system, the system is provided with an abnormality detection device having an interrupt request means, a counting means, and an abnormal signal output means, and the interrupt request means is connected to the CPU.
The counting means outputs an interrupt request signal to U and a counting means, and the counting means receives an interrupt permission signal to be output to the system bus when the arbitration circuit in the CPU receives the interrupt request signal. The time interval from the reception of the interrupt request signal to the reception of the interrupt permission signal and the reception time of the interrupt permission signal are measured, and if each measured value of the coefficient means exceeds a preset setting range, an overflow signal is generated. Output to the abnormal signal output means,
By receiving this signal, the abnormality signal output means
An abnormality detection method for a CPU, characterized in that an abnormality signal indicating that a failure has occurred in a CPU is output.
JP63285345A 1988-11-11 1988-11-11 Abnormality detecting system for cpu Pending JPH02130646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63285345A JPH02130646A (en) 1988-11-11 1988-11-11 Abnormality detecting system for cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63285345A JPH02130646A (en) 1988-11-11 1988-11-11 Abnormality detecting system for cpu

Publications (1)

Publication Number Publication Date
JPH02130646A true JPH02130646A (en) 1990-05-18

Family

ID=17690353

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63285345A Pending JPH02130646A (en) 1988-11-11 1988-11-11 Abnormality detecting system for cpu

Country Status (1)

Country Link
JP (1) JPH02130646A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015018414A (en) * 2013-07-11 2015-01-29 ルネサスエレクトロニクス株式会社 Microcomputer
JP2018041492A (en) * 2017-11-01 2018-03-15 ルネサスエレクトロニクス株式会社 Microcomputer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015018414A (en) * 2013-07-11 2015-01-29 ルネサスエレクトロニクス株式会社 Microcomputer
JP2018041492A (en) * 2017-11-01 2018-03-15 ルネサスエレクトロニクス株式会社 Microcomputer

Similar Documents

Publication Publication Date Title
US4072852A (en) Digital computer monitoring and restart circuit
JPH02130646A (en) Abnormality detecting system for cpu
JPH11259340A (en) Reactivation control circuit for computer
JP2659067B2 (en) Microcomputer reset circuit
JPH08202589A (en) Information processor and fault diagnostic method
JP2680473B2 (en) Watchdog mechanism
JPH0341529A (en) Abnormality detector for connecting apparatus in data transmitting equipment
JPH02281343A (en) Cpu operation monitor system
KR100269348B1 (en) Radio lan system having auto-restarting circuit
JPS61226843A (en) Device for detecting interruption abnormality
JPH04182835A (en) Bus monitor device for multiprocessor system
JPS5855535B2 (en) Multi-computer device for vehicles
JPH0898278A (en) Digital control system
JPS6118045A (en) Detecting system of program runaway
JPH01169642A (en) Runaway detecting circuit
JPH01231128A (en) Fault processing system
JPH06139088A (en) Duplex processor system
JPS6295646A (en) Microprogram controller with run monitoring function
JPS6343560Y2 (en)
JPS60254338A (en) Abnormality detecting system of multiprocessor
JPS6388660A (en) Microprocessor system
JPH03180948A (en) Fault restoring system in multihost system
JPS624746B2 (en)
JPS60243749A (en) Method for checking operation of watchdog timer
JPH0895930A (en) Multiprocessor system