JPS61156443A - Runaway monitoring device of microcomputer - Google Patents

Runaway monitoring device of microcomputer

Info

Publication number
JPS61156443A
JPS61156443A JP59276846A JP27684684A JPS61156443A JP S61156443 A JPS61156443 A JP S61156443A JP 59276846 A JP59276846 A JP 59276846A JP 27684684 A JP27684684 A JP 27684684A JP S61156443 A JPS61156443 A JP S61156443A
Authority
JP
Japan
Prior art keywords
pulse
microcomputer
circuit
charging
reset
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
JP59276846A
Other languages
Japanese (ja)
Inventor
Kyosuke Hashimoto
恭介 橋本
Yuusaku Himono
檜物 雄作
Yukio Nanpo
南保 幸夫
Katsuhiko Nishimura
西村 勝彦
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.)
Furukawa Electric Co Ltd
Original Assignee
Furukawa 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 Furukawa Electric Co Ltd filed Critical Furukawa Electric Co Ltd
Priority to JP59276846A priority Critical patent/JPS61156443A/en
Publication of JPS61156443A publication Critical patent/JPS61156443A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To give automatically the reset to a microcomputer and to improve a reliability by constituting a single pulse of a single shot pulse generating circuit which inputs to a resetting terminal, when a pulse detecting circuit, a charging discharging circuit and a microcomputer run away and the output of the charging discharging circuit is the prescribed value or above. CONSTITUTION:When a program is normally operated, a pulse (a) of a constant period t0 is outputted, the fall of the same pulse (a) is detected at a pulse detecting circuit 1, the pulse goes to be a differential waveform pulse and is inputted to an inverter gate element 6. A rectangular wave is outputted from the inverter gate element 6, and inputted to a charging discharging circuit 2. At the charging discharging circuit 2, a pulse (c) is discharged during H, charged during L and the charging and discharging are repeated. When R1, R2, R5, C1 and C2 are determined so that a peak voltage Vp1 of a charging discharging waveform of the charging discharging circuit 2 may not exceed the threshold of an input voltage of a single shot pulse generating circuit 3, for the output of the single shot pulse generating circuit 3, L is continued and the reset is not given to the microcomputer.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明のマイクロコンピュータの暴走監視装置は、マイ
クロコンピュータが何らかの原因で暴走した場合に、そ
の異常を検出して同コンピュータに自動的にリセットを
掛け、しかもリセット後に自動復帰するようにしたもの
である。
[Detailed Description of the Invention] (Industrial Application Field) The microcomputer runaway monitoring device of the present invention detects the abnormality and automatically resets the microcomputer when the microcomputer runs out of control for some reason. Moreover, it is designed to automatically return after being reset.

(従来技術) この種の監視装置として従来は第3図のようなものがあ
った。
(Prior Art) A conventional monitoring device of this type is shown in FIG. 3.

これは、プログラムが正常動作してマイクロコンピュー
タからパルスaが出力されているときは、立上り検出回
路Aでパルスaの立上りを検出し、充放電回路Bを放電
させて比較回路Cの入力端子りへの入力電圧が基準電圧
Vref以下に抑えられるようにし、プログラムが暴走
してパルスaの出力が停止すると充放電回路Bが充電さ
れ、比較回路Cの入力端子りへ入力される電圧が基準電
圧V refを越えると、比較回路Cから暴走検出信号
が出力されるようにしたものである。
This means that when the program is operating normally and pulse a is being output from the microcomputer, rising edge detection circuit A detects the rising edge of pulse a, charging/discharging circuit B is discharged, and the input terminal of comparison circuit C is connected. When the program goes out of control and the output of pulse a stops, charging/discharging circuit B is charged, and the voltage input to the input terminal of comparator circuit C becomes the reference voltage. When the voltage exceeds V ref, the comparator circuit C outputs a runaway detection signal.

(発明が解決しようとする問題点) 第3図の装置では暴走検出信号が単なるレベル出力であ
るため、これを直接マイクロコンピュータのリセット端
子に接続すると一度暴走を起すと同コンピュータが停止
したままとなって自動復帰できないという問題があった
(Problem to be Solved by the Invention) In the device shown in Figure 3, the runaway detection signal is a mere level output, so if it is directly connected to the reset terminal of the microcomputer, once runaway occurs, the computer will remain stopped. There was a problem that it could not be automatically restored.

またこの装置では立上り検出回路Aに二つのゲート素子
EとFが使用され、比較回路CにコンパレータICが使
用されているためコスト高になるという問題もあった。
Further, in this device, two gate elements E and F are used in the rising edge detection circuit A, and a comparator IC is used in the comparison circuit C, resulting in a problem of high cost.

(問題点を解決すための手段) 本発明の目的はプログラムの暴走を検出して自動的にマ
イクロコンピュータにリセットをかけると共に自動復帰
可能として信頼性を向上させることにある。
(Means for Solving the Problems) An object of the present invention is to detect runaway of a program, automatically reset the microcomputer, and enable automatic recovery to improve reliability.

そのため本発明の暴走監視装置は第1図のように、マイ
クロコンピュータから出力される一定周期のパルスaを
検出するパルス検出回路lと、検出されるパルスが充放
電する充放電回路2と、マイクロコンピュータが暴走し
て充放電回路2の出力が所定時間以上連続的に所定値以
上になると。
Therefore, the runaway monitoring device of the present invention, as shown in FIG. When the computer goes out of control and the output of the charging/discharging circuit 2 continuously exceeds a predetermined value for a predetermined period of time or more.

シングルパルスを発生してそれをマイクロコンピュータ
のリセット端子に入力するシングルショットパルス発生
回路3とから構成されている。
It consists of a single shot pulse generation circuit 3 which generates a single pulse and inputs it to the reset terminal of the microcomputer.

パルス検出回路lはコンデンサC1,抵抗R1インバー
タゲート素子6から構成されている。
The pulse detection circuit 1 is composed of a capacitor C1, a resistor R1, and an inverter gate element 6.

充放電回路2は抵抗R2〜R5と、トランジスタTrと
、コンデンサC2とから構成されているシングルショト
パルス発生回路3はANDゲート素子7と、コンデンサ
C3と、抵抗R6とから構成されている。
The charging/discharging circuit 2 includes resistors R2 to R5, a transistor Tr, and a capacitor C2.The single shot pulse generating circuit 3 includes an AND gate element 7, a capacitor C3, and a resistor R6.

(作用) 第1図の装置において、プログラムが正常に動作してマ
イクロコンピュータから一定周期toのパルスaが出力
されているときは、同パルスaの立下りがパルス検出回
路lで検出され、微分波形パルス(第2図b)となって
インバータゲート素子6に入力される。
(Function) In the device shown in Fig. 1, when the program is operating normally and the microcomputer is outputting a pulse a with a constant period to, the falling edge of the pulse a is detected by the pulse detection circuit l, and the differential This becomes a waveform pulse (FIG. 2b) and is input to the inverter gate element 6.

インバータゲート素子6からは第2図Cの矩形波(Hの
幅がtl 、Lの幅がtO−tl)が出力され、充放電
回路2に入力される。
The inverter gate element 6 outputs a rectangular wave (the width of H is tl and the width of L is tO-tl) as shown in FIG.

tlはインバータゲート素子6の閾値をVslとすると
次の(1)式から求まる。
tl can be found from the following equation (1), assuming that the threshold value of the inverter gate element 6 is Vsl.

tl=cl −R1−1n((V−Vsl)/VO) 
−・・(1)充放電回路2ではパルスCがHの間(tl
)放電され、Lの間(to−tl)充電され、この充放
電が繰返されている。
tl=cl-R1-1n((V-Vsl)/VO)
-... (1) In the charging/discharging circuit 2, while pulse C is H (tl
) is discharged and charged for L (to-tl), and this charging and discharging is repeated.

充放電回路2の充放電波形(第2図d)のピーク電圧V
plがシングルショットパルス発生回路3の入力電圧の
閾値、すなわちANDゲート素子7の閾値VS2を越え
ないように(1)式、(2)式、 (3)式よりR1、
R2、R5、CI  、C2を決めれば、シングルショ
ットパルス発生回路3の出力は第2図eのようにLが継
続し、マイクロコンピュータにリセットがかからない。
Peak voltage V of charging/discharging waveform of charging/discharging circuit 2 (Fig. 2 d)
From equations (1), (2), and (3), R1,
If R2, R5, CI, and C2 are determined, the output of the single shot pulse generation circuit 3 will continue to be L as shown in FIG. 2e, and the microcomputer will not be reset.

Vs2 <Vp =V(1−e ’a(Lf1+1) 
* 11 @ (2)Vpe−にχO・・・(3) 次にプログラムが暴走してマイクロコンピュータからの
出力信号aがHかLに固定される停止状態になると、充
放電回路2は充電されてその放電波形のピーク値Vp2
がANDゲート素子7の閾値■s2を越え、シングルシ
ョットパルス回路3に微分波形のパルス(第2図f)が
出力され、このパルスによりマイクロコンピュータにリ
セットがかかる。
Vs2 <Vp =V(1-e'a(Lf1+1)
*11 @ (2) χO to Vpe- (3) Next, when the program goes out of control and the output signal a from the microcomputer is fixed at H or L, the charging/discharging circuit 2 is not charged. The peak value Vp2 of the discharge waveform
exceeds the threshold value s2 of the AND gate element 7, and a differential waveform pulse (FIG. 2f) is output to the single shot pulse circuit 3, which resets the microcomputer.

このときマイクロコンピュータのリセット入力の閾値を
Vs3とした場合、リセットパルスfの幅t2は次の(
4)式から求まる。
At this time, if the threshold value of the reset input of the microcomputer is set to Vs3, the width t2 of the reset pulse f is as follows (
4) Determined from the formula.

t2 ’:: −C3R4In(VS3/V) @” 
(4)リセットされたマイクロコンピュータはリセット
パルスfが入力されている間のみリセットされ、そのパ
ルスがLになると自動復帰する。
t2':: -C3R4In(VS3/V) @”
(4) The reset microcomputer is reset only while the reset pulse f is input, and automatically returns when the pulse becomes L.

第1図の装置において、自動リセットと暴走が繰り返さ
れる(自動リセットがかかってもすぐ又暴走が始まる)
と発振的現象になる。この場合は所定時間内に成る回数
以−ヒ発生すると自動的に停止するようにしておき、こ
の状態が外部に出力されるようにしておくのがよい。
In the device shown in Figure 1, automatic reset and runaway are repeated (even if the automatic reset is applied, the runaway starts again).
This results in an oscillating phenomenon. In this case, it is preferable to automatically stop when this occurs more than a predetermined number of times within a predetermined period of time, and to output this state to the outside.

また電源が落ちてから、再復帰するとそれが解除される
ようにしておくのがよい。
Also, it is a good idea to make sure that it is canceled when the power is turned off and then turned back on.

(発明の効果) 本発明は以上のように構成されるため次のような効果が
ある。
(Effects of the Invention) Since the present invention is configured as described above, it has the following effects.

(1)プログラムの暴走と同時にマイクロコンピュータ
に自動的にリセットがかかるため、システムとしての信
頼性が向上する。
(1) Since the microcomputer is automatically reset at the same time as the program runs out of control, the reliability of the system is improved.

(2)  リセットパルスfがシングルショットパルス
であるため、リセットされたマイクロコンピュータはリ
セットパルスfがLになると自動復帰し、暴走が終了し
たらマイクロコンピュータの動作が自動的に再開される
(2) Since the reset pulse f is a single shot pulse, the reset microcomputer automatically returns when the reset pulse f becomes L, and the operation of the microcomputer automatically resumes when the runaway ends.

(3)コンパレータを用いずに安価な部品だけで構成で
きるためコストが低下する。
(3) Costs are reduced because it can be constructed using only inexpensive parts without using a comparator.

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

第1図は本考案の暴走監視装置の一例を示す結線図、第
2図は第1図の装置の動作説明波形図、第3図は従来の
暴走監視装置の結線図である。 aはパルス 1はパルス検出回路 2は充放電回路
FIG. 1 is a wiring diagram showing an example of the runaway monitoring device of the present invention, FIG. 2 is a waveform diagram explaining the operation of the device shown in FIG. 1, and FIG. 3 is a wiring diagram of a conventional runaway monitoring device. a is pulse 1 is pulse detection circuit 2 is charging/discharging circuit

Claims (1)

【特許請求の範囲】[Claims]  マイクロコンピュータから出力される一定周期のパル
スを検出するパルス検出回路と、検出されるパルスを充
放電する充放電回路と、マイクロコンピュータが暴走し
て充放電回路の出力が所定時間以上連続的に所定値以上
になると、シングルパルスを発生してそれをマイクロコ
ンピュータのリセット端子に入力するシングルショット
パルス発生回路とから構成されるマイクロコンピュータ
の暴走監視装置。
There is a pulse detection circuit that detects pulses with a constant period output from the microcomputer, a charging/discharging circuit that charges and discharges the detected pulses, and a pulse detection circuit that detects pulses with a constant period that are output from the microcomputer, and a charging/discharging circuit that charges and discharges the detected pulses. A microcomputer runaway monitoring device consisting of a single shot pulse generation circuit that generates a single pulse and inputs it to the reset terminal of the microcomputer when the value exceeds the specified value.
JP59276846A 1984-12-28 1984-12-28 Runaway monitoring device of microcomputer Pending JPS61156443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59276846A JPS61156443A (en) 1984-12-28 1984-12-28 Runaway monitoring device of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59276846A JPS61156443A (en) 1984-12-28 1984-12-28 Runaway monitoring device of microcomputer

Publications (1)

Publication Number Publication Date
JPS61156443A true JPS61156443A (en) 1986-07-16

Family

ID=17575218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59276846A Pending JPS61156443A (en) 1984-12-28 1984-12-28 Runaway monitoring device of microcomputer

Country Status (1)

Country Link
JP (1) JPS61156443A (en)

Similar Documents

Publication Publication Date Title
US4429236A (en) Apparatus for generating pulses upon decreases in supply voltage
KR0177093B1 (en) CPU reset circuit
JPH01174268A (en) Detector for instantaneous disconnection of dc power supply
KR100232219B1 (en) Low voltage sensing circuit
JPS61156443A (en) Runaway monitoring device of microcomputer
JPH0247917A (en) Missing pulse detector
US3939413A (en) Low cutoff digital pulse filter especially useful in electronic energy consumption meters
JPH03232024A (en) Watchdog timer circuit
JPH07141087A (en) Driving device for input device of resistance film system
JPS6234356Y2 (en)
JP2964696B2 (en) Semiconductor device
JP2585554B2 (en) Power supply
JP2571090Y2 (en) Watchdog circuit
JPS625726Y2 (en)
JPS625725Y2 (en)
KR950000807Y1 (en) Micom overrun protected circuit
JPS6115638Y2 (en)
JP2853342B2 (en) Abnormal oscillation detection circuit
KR930006169Y1 (en) Microprocessor watching circuit
KR930008110Y1 (en) Automatic resetting apparatus for microcomputer
JPH0334689B2 (en)
US4032798A (en) Low cutoff digital pulse filter especially useful in electronic energy consumption meters
KR890004800Y1 (en) Error movement cheek circuits of micom
KR920004986Y1 (en) Watch dog timer w/resetting circuit
JPH0776933B2 (en) Reset device for digital computer