JPS62237537A - Fault detecting circuit - Google Patents

Fault detecting circuit

Info

Publication number
JPS62237537A
JPS62237537A JP61081761A JP8176186A JPS62237537A JP S62237537 A JPS62237537 A JP S62237537A JP 61081761 A JP61081761 A JP 61081761A JP 8176186 A JP8176186 A JP 8176186A JP S62237537 A JPS62237537 A JP S62237537A
Authority
JP
Japan
Prior art keywords
pulse
circuit
output
counter circuit
program
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
JP61081761A
Other languages
Japanese (ja)
Inventor
Tsutomu Horie
堀江 力
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 JP61081761A priority Critical patent/JPS62237537A/en
Publication of JPS62237537A publication Critical patent/JPS62237537A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To detect the runaway of a CPU by ORing a pulse which rises at the trailing edge of the output pulse of a counter circuit in holding the fixed level for a period longer than the repeating period of said output pulse, with the output pulse of the counter circuit, to provide a circuit outputting a fault detecting pulse. CONSTITUTION:When the CPU 7 is runaway by disturbance, a monitoring pulse VC is expanded at its repeated period or stopped. Since the counter circuit 3 is not reset, the circuit 3 is reset by the just preceding pulse, and after the passage of a repeating period T2 of the circuit 3, the pulse VC is outputted and inputted to a program reset means 6. Consequently, the advancement of the program is reset, the operation is restored to the normal operation and the monitoring pulses VS are outputted again at a fixed repeating period T1. Although the pulses VC are inputted to a timer circuit and pulses VT are outputted from the timer circuit 4, no output is generated from the counter circuit 3 because the operation is restored to the normal operation, so that a fault detecting pulse VD is not outputted.

Description

【発明の詳細な説明】 し産業上の利用分野〕 本発明に故障検出回路に関し、特にプログラムにより制
御されるマイクロコンピュータ等が組込まnた装置の故
障検出回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a failure detection circuit, and more particularly to a failure detection circuit for a device incorporating a microcomputer or the like controlled by a program.

L従来の技術〕 従来、この種の故障検出口Wl!げ、−例として第3図
に示すように、CPU7の内部にシステムクロックパル
スCKi分周しプログラムの進行するタイミングに対応
して一定の繰返し周期をもつ監視パルスVs k発生す
る監視パルス発生手段1と、監a、ハルスVat出力ボ
ート2を介してリセット端子に入力し、監視パルス■s
が入力されないときにはシステムクロックパルスCKf
分周し監視パルスvsより長い繰返し周期ケもつパルス
V。
L Conventional Technology] Conventionally, this type of failure detection port Wl! As an example, as shown in FIG. 3, there is a monitoring pulse generating means 1 within the CPU 7 which divides the system clock pulse CKi and generates a monitoring pulse Vsk having a constant repetition period in accordance with the timing at which the program progresses. , supervisor a, input to the reset terminal via Hals Vat output port 2, and monitor pulse ■s
When CKf is not input, the system clock pulse CKf
A pulse V whose frequency is divided and whose repetition period is longer than that of the monitoring pulse V.

を発生するカウンタ回路3と、カウンタ回路3の出力パ
ルスvoによりプログラムの進行をリセットし正常動作
に戻すプログラムリセット手段6とゲ有する構成となっ
ていた。
, and a program reset means 6 that resets the progress of the program using the output pulse vo of the counter circuit 3 and returns it to normal operation.

監視パルス発生手段1は、通常、プログラムの中に組込
まf′L、正常動作時には、監視パルス■8はカウンタ
回路3の出力パルス■oの繰返し周期より知かい一定の
11i1期で出力さnるのでカウンタ回路3はリセット
2繰返えすためパルスVoが出力さね、ず、従ってプロ
グラムの進行が続行される。
The monitoring pulse generating means 1 is normally incorporated into the program f'L, and during normal operation, the monitoring pulse (8) is output at a constant 11i1 period which is better than the repetition period of the output pulse (20) of the counter circuit 3. Therefore, the counter circuit 3 does not output the pulse Vo in order to repeat the reset 2, and therefore the program continues to progress.

これに対し、雑音等によりプログラム制御が乱fLcP
IJ7が暴走した時などにa、監?Rパルス■8げ繰返
し周期が長くなるか停止する場合が多いので、カウンタ
回路3からパルス■0が出力されプログラムリセット手
段6Vc工りプログラムの進行を+3セツトし正常動作
に戻す構成となっていた。
On the other hand, program control is disturbed due to noise etc. fLcP
When IJ7 goes out of control, a, supervisor? Since the R pulse ■8 repetition cycle often becomes long or stops, the counter circuit 3 outputs a pulse ■0, and the program reset means 6Vc is configured to set the progress of the program by +3 and return to normal operation. .

〔発明が解決しようとする間眩点〕[The blinding point that the invention attempts to solve]

上述した従来の故障検出回路に、外乱によってCI) 
Uが一時的に嫉走したときなどICは有効であるが、プ
ログラムメモリの異状などハードウェアの故障とか継続
的な強い外乱が発生した場合には、これらの故障?検出
できないので、装置’に構成するマイクロコンピュータ
等が不当な動作を続行するという欠点?有していた。
In the conventional fault detection circuit described above, CI)
The IC is effective when the U temporarily runs away, but if there is a hardware failure such as an abnormality in the program memory, or a continuous strong disturbance occurs, these failures may occur. Is there a drawback that the microcomputer, etc. configured in the device continues to perform inappropriate operations because it cannot be detected? had.

本発明の目的は、ハードウェアの故障や継続的な強い外
乱によるCPUの暴走が検出でき、マイクロコンピュー
タ等の不当な動作の防止処Ltとることがr@る故障検
出回路を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a failure detection circuit that can detect a CPU runaway caused by a hardware failure or continuous strong disturbance, and can take measures to prevent improper operation of a microcomputer, etc. .

〔間駒点tw!+決する九めの手段〕[Makoma point tw! + Ninth means to decide]

本発明の故障検出回路は、プログラムの進行するタイミ
ングに対応し−で一定の繰返し周期tもつ監視パルス金
発生する監視パルス発生手段と、前記監視パルスが入力
されないときには前記監視パルスより長い繰返し周期を
もつパルス?出力し前記監視パルスが入力されるとリセ
ットさ1.るカウンタ回路と、このカウンタ回路の出力
パルスにLり前記プログラムの進行をリセットし正常動
作に戻すプログラムリセット手段とr有する故障検出回
路において、前記カウンタ回路の出力パルスの後端で立
上り前記出力パルスの繰返し周期=り長い期間一定レベ
ルを保つパルスを出力するタイマー回路と、前記カウン
タ回路及び前記タイマー回路の出力パルスの論理槓茫と
9故障検出パルス金出力するゲート回路と七設けて構成
される。
The failure detection circuit of the present invention includes a monitoring pulse generating means for generating a monitoring pulse having a constant repetition period t corresponding to the timing at which the program progresses, and a repetition period longer than the monitoring pulse when the monitoring pulse is not input. Motsu pulse? 1. Output and reset when the monitoring pulse is input. a fault detection circuit having a counter circuit, a program reset means that resets the progress of the program and returns to normal operation when the output pulse of the counter circuit goes low; A timer circuit that outputs a pulse that maintains a constant level for a long period of repetition period, a gate circuit that outputs logic output pulses of the counter circuit and the timer circuit, and nine failure detection pulses. .

〔実施例〕〔Example〕

次に、本発明の実施例について図面?参照して説明する
Next, what are the drawings about the embodiments of the present invention? Refer to and explain.

第1因は本発明の一実施例を示すブロック図である。The first factor is a block diagram showing an embodiment of the present invention.

この実施例が第3園((示す従来の故障検出回路と相異
する点に、カウンタ回路3の出力パルス■。
This embodiment differs from the conventional failure detection circuit shown in the third garden ((The output pulse 2 of the counter circuit 3 is different from the conventional failure detection circuit shown in FIG.

の後端で立上り、Oの出力パルスの繰返し周期より長い
何間一定レベル?保つパルスVt k出力するタイマー
回路4と、カウンタ回路3及びタイマー回路4から出力
さnるパルスVo、V丁の論理積をとり、これらパルス
V0. V、が同時に出力さnた時に故障検出パルスV
o k出力するゲート回路5とt設けた点である。
It rises at the rear end of O and stays at a constant level for how long, longer than the repetition period of O's output pulse? The timer circuit 4 that outputs the maintaining pulse Vtk, and the n pulses Vo and Vd output from the counter circuit 3 and the timer circuit 4 are ANDed, and these pulses V0. Failure detection pulse V is output when V is output at the same time.
This is the point where the gate circuit 5 which outputs ok and t are provided.

次に、この実施例の動作について説明する。Next, the operation of this embodiment will be explained.

第2図i (a1〜(clに第1因に示す実施fllf
je勅作させたときの信号の波形図である。
Figure 2 i (a1 to (cl) shows the implementation fllf
FIG. 3 is a waveform diagram of a signal when the je signal is activated.

まず、第113(atに示す正常動作時について説明す
る。
First, the normal operation shown in the 113th (at) will be explained.

正常動作時には、プログラムが正常に進行しているので
監7Mパルス発生回路1から出力される監視パルスVs
l”j:、出力ボート2を介して一定の繰返し周期T1
でカウンタ回路3のリセット端子に入力される。カウン
タ回路3の出力パルス■oの繰返し周期に、監視パルス
■sの繰返し周期TILり長く設定されているので、カ
ウンタ回路3はパルスVo ’に出力し:うとする手前
で常に監視パルスvsでリセットされ、パルスVa k
出力することができない。従ってプログラムはそのま1
進行し、タイマー回路4及びゲート回路5からの出力パ
ルスVT、VDは出力されない。
During normal operation, since the program is progressing normally, the monitoring pulse Vs output from the monitoring 7M pulse generation circuit 1
l”j: constant repetition period T1 via output port 2
is input to the reset terminal of the counter circuit 3. Since the repetition period of the output pulse ■o of the counter circuit 3 is set longer than the repetition period TIL of the monitoring pulse ■s, the counter circuit 3 outputs the pulse Vo' and always resets with the monitoring pulse vs before it is about to sleep. and the pulse Va k
Unable to output. Therefore, the program remains as is.
The output pulses VT and VD from the timer circuit 4 and gate circuit 5 are not output.

次に、第2図の)に示す外乱などにL#)一時的にプロ
グラム制御が乱れCPU7が暴走した場合について説明
する。
Next, a case will be described in which the program control is temporarily disturbed due to the disturbance shown in ) in FIG. 2, and the CPU 7 goes out of control.

この場合、一般的に監視パルスVat?繰返し周期が長
くなるか停止するので、出力これるべきはスノハルスP
、が停止する。従って、カウンタ回路3にリセットされ
ないので、一つ手前のパルスPlでリセットされてから
カウンタ回路3のもつ繰返し周期T2が経過した時点で
パルス■oが出力づれる。このパルスVo uプログラ
ムリセット手段6に入力され、プログラムの進行がリセ
ットされて正常動作に戻り、再び監視パルス■8が一定
の繰返し周期T1で出力される工うKなる。また、パル
スvohタイマー回路4に入力すれパル17丁を出力す
るが、すでに正常動作に戻っているのでカウンタ回路4
からの出力パルスが無く、従って故障検出パルスVDは
出力されない。
In this case, the monitoring pulse Vat? Since the repetition cycle becomes longer or stops, the output should be Snowhals P
, stops. Therefore, since the counter circuit 3 is not reset, the pulse ``o'' is output after the repetition period T2 of the counter circuit 3 has elapsed after being reset by the previous pulse Pl. This pulse Vou is input to the program reset means 6, and the progress of the program is reset to return to normal operation, and the monitoring pulse 8 is again output at a constant repetition period T1. Also, when the pulse VOH timer circuit 4 is input, it outputs 17 pulses, but since it has already returned to normal operation, the counter circuit 4
There is no output pulse from VD, so the failure detection pulse VD is not output.

次に、第2図(C1に示すハードウェア故障等の場合に
ついて説明する。
Next, the case of a hardware failure shown in FIG. 2 (C1) will be explained.

この場合、まず、監視パルスvsの出力されるべきはず
のパルスP2が停止する。するとカウンタ回路3から、
パルスP1から繰返し周期T2が経過した後にパルス■
oが出力されるが、ハードウェア故障の定めCPU7H
正常動作に戻らず監視パルスVstX停止し友1まとな
っているので、カウンタ回路3からは繰返し周期T2で
パルスv。
In this case, first, the pulse P2 that should be output as the monitoring pulse vs stops. Then, from counter circuit 3,
After the repetition period T2 has elapsed from the pulse P1, the pulse ■
o is output, but it is determined that there is a hardware failure CPU7H
Since the normal operation does not return and the monitoring pulse VstX stops and remains unchanged, the counter circuit 3 outputs a pulse V at a repetition period T2.

が出力される。−万、タイマー回路4の出力にパルスV
oの最初のパルスP3の後端で立上り、繰返し周期T2
 J:り長い期間一定レベルを保つように設定されてい
るので、次のパルスP4が入力される時にもこのレベル
?保持すると同時にパルスP4の後端で再びタイマー回
路4の出力全持続する期間が設定され、このレベルを保
持し続けるパルスVT k出力する。従ってゲート回路
5から故障検出パルスVDが出力され、次の処置を行う
ことができる。
is output. -10,000, pulse V at the output of timer circuit 4
It rises at the rear end of the first pulse P3 of o, and the repetition period T2
J: Since it is set to maintain a constant level for a long period of time, will it remain at this level when the next pulse P4 is input? At the same time as the pulse P4 is held, the period during which the entire output of the timer circuit 4 lasts is set again at the rear end of the pulse P4, and the pulse VTk is outputted to continue holding this level. Therefore, the failure detection pulse VD is output from the gate circuit 5, and the next action can be taken.

し発明の効果〕 以上説明したLうに本発明は、カウンタ回路の出力パル
スの後端で立上りこの出力パルスの繰返し周期エリ長い
期間一定のレベルを保つパルスと、カウンタ回路の出力
パルスとの論理積tとり故障検出パルスを出力する回路
を設けることにLり、ハードウェアの故障や継続的な外
乱によるCPtJの暴走を検知することができ、マイク
ロコンピュータ等の不当な動作の防止処置をとることが
できる効果がある。
[Effects of the Invention] As explained above, the present invention is based on the logical product of the output pulse of the counter circuit and the pulse that rises at the rear end of the output pulse of the counter circuit and maintains a constant level for a long period of time due to the repetition period of this output pulse. By providing a circuit that outputs a fault detection pulse for t, it is possible to detect runaway of CPtJ due to hardware failure or continuous disturbance, and it is possible to take measures to prevent improper operation of the microcomputer, etc. There is an effect that can be done.

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

第1図は本発明の一実施例を示すブロック図、第2図(
a)〜(clは第1図に示す実施例t−動作させたとき
の信号の波形図、第3図は従来の故障検出回路の一例を
示すブロック図である。 1・・・・・・監視パルス発生手段、2・・・・・・出
力ボート。 3・・・・・・カウンタ回路、4・・・・・・タイマー
回路%50110.。 ゲート回路、6・・・・・・プログラムリセット手段、
7・・・・・・CPU。 づ7岬し4図 躬3図
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 (
a) to (cl are waveform diagrams of signals when operating the embodiment t shown in FIG. 1, and FIG. 3 is a block diagram showing an example of a conventional failure detection circuit. 1... Monitoring pulse generation means, 2... Output port. 3... Counter circuit, 4... Timer circuit %50110.. Gate circuit, 6... Program reset. means,
7...CPU. zu 7 cape shi 4 map 3 map

Claims (1)

【特許請求の範囲】[Claims] プログラムの進行するタイミングに対応して一定の繰返
し周期をもつ監視パルスを発生する監視パルス発生手段
と、前記監視パルスが入力されないときには前記監視パ
ルスより長い繰返し周期をもつパルスを出力し前記監視
パルスが入力されるとリセットされるカウンタ回路と、
このカウンタ回路の出力パルスにより前記プログラムの
進行をリセットし正常動作に戻すプログラムリセット手
段とを有する故障検出回路において、前記カウンタ回路
の出力パルスの後端で立上り前記出力パルスの繰返し周
期より長い期間一定レベルを保つパルスを出力するタイ
マー回路と、前記カウンタ回路及び前記タイマー回路の
出力パルスの論理積をとり故障検出パルスを出力するゲ
ート回路とを設けたことを特徴とする故障検出回路。
a monitoring pulse generating means for generating a monitoring pulse having a constant repetition period in accordance with the timing at which the program progresses, and outputting a pulse having a repetition period longer than the monitoring pulse when the monitoring pulse is not input; A counter circuit that is reset when an input is received;
In a failure detection circuit having a program reset means that resets the progress of the program using the output pulse of the counter circuit and returns to normal operation, the output pulse rises at the rear end of the output pulse of the counter circuit and remains constant for a period longer than the repetition period of the output pulse. 1. A failure detection circuit comprising: a timer circuit that outputs a pulse that maintains a level; and a gate circuit that performs a logical product of the output pulses of the counter circuit and the timer circuit and outputs a failure detection pulse.
JP61081761A 1986-04-08 1986-04-08 Fault detecting circuit Pending JPS62237537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61081761A JPS62237537A (en) 1986-04-08 1986-04-08 Fault detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61081761A JPS62237537A (en) 1986-04-08 1986-04-08 Fault detecting circuit

Publications (1)

Publication Number Publication Date
JPS62237537A true JPS62237537A (en) 1987-10-17

Family

ID=13755434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61081761A Pending JPS62237537A (en) 1986-04-08 1986-04-08 Fault detecting circuit

Country Status (1)

Country Link
JP (1) JPS62237537A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5557956A (en) * 1978-10-25 1980-04-30 Nissan Motor Co Ltd Malfunction prevention unit of microcomputer
JPS5783860A (en) * 1980-11-14 1982-05-25 Yokogawa Hokushin Electric Corp Working monitor circuit of processor
JPS5882349A (en) * 1981-11-11 1983-05-17 Sharp Corp Dealing device for hardware fault of computer system
JPS58201108A (en) * 1982-05-19 1983-11-22 Nissan Motor Co Ltd Monitoring device of electronic control system for vehicle using microcomputer
JPS60153548A (en) * 1984-01-23 1985-08-13 Nissin Electric Co Ltd Abnormality detector for cpu

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5557956A (en) * 1978-10-25 1980-04-30 Nissan Motor Co Ltd Malfunction prevention unit of microcomputer
JPS5783860A (en) * 1980-11-14 1982-05-25 Yokogawa Hokushin Electric Corp Working monitor circuit of processor
JPS5882349A (en) * 1981-11-11 1983-05-17 Sharp Corp Dealing device for hardware fault of computer system
JPS58201108A (en) * 1982-05-19 1983-11-22 Nissan Motor Co Ltd Monitoring device of electronic control system for vehicle using microcomputer
JPS60153548A (en) * 1984-01-23 1985-08-13 Nissin Electric Co Ltd Abnormality detector for cpu

Similar Documents

Publication Publication Date Title
US4405982A (en) Arrangement for monitoring the function of a programmable electronic switching circuit
US4631701A (en) Dynamic random access memory refresh control system
US4410991A (en) Supervisory control apparatus
US5059834A (en) Circuit device for eliminating noise from an input signal independent of time of arrival of noise or noise width
US4408328A (en) Microprogram control circuit
JPS62237537A (en) Fault detecting circuit
JPH0326861B2 (en)
JPH08327678A (en) Pulse-width measuring circuit
JPH0894660A (en) Pulse measuring apparatus
KR100494114B1 (en) Timer circuit
JPS62145440A (en) Runaway detection circuit
JPH07152460A (en) Voltage detection reset circuit
JPH02287890A (en) One-chip microcomputer
JP2514695B2 (en) Dynamic RAM refresh controller
JPH03266110A (en) Resetting device for computer
JP4083954B2 (en) Anomaly monitoring apparatus and anomaly monitoring method
SU661809A1 (en) N-digit binary counter checking device
JPS5840674A (en) Fault deciding method of microcomputer
JPH0147935B2 (en)
JPH0346853B2 (en)
JPH0425740B2 (en)
JPH01296487A (en) Noise detecting circuit for address signal
JPH06139113A (en) Failure detector for watchdog timer
JPH06274378A (en) Cpu runaway detecting method
JPH0936717A (en) Signal detection circuit