JPS60214050A - Detecting circuit for microcomputer runaway - Google Patents

Detecting circuit for microcomputer runaway

Info

Publication number
JPS60214050A
JPS60214050A JP59069923A JP6992384A JPS60214050A JP S60214050 A JPS60214050 A JP S60214050A JP 59069923 A JP59069923 A JP 59069923A JP 6992384 A JP6992384 A JP 6992384A JP S60214050 A JPS60214050 A JP S60214050A
Authority
JP
Japan
Prior art keywords
counter
basic clock
signal
microcomputer
abnormality
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
JP59069923A
Other languages
Japanese (ja)
Inventor
Takeshi Sakata
武司 坂田
Yoshibumi Uchise
義文 内勢
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.)
Hanshin Electric Co Ltd
Original Assignee
Hanshin 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 Hanshin Electric Co Ltd filed Critical Hanshin Electric Co Ltd
Priority to JP59069923A priority Critical patent/JPS60214050A/en
Publication of JPS60214050A publication Critical patent/JPS60214050A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/076Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Abstract

PURPOSE:To prevent securely an accident resulting from a runaway by detecting the period abnormality of a basic clock on the basis of the counted value of a counter which operates on the basis of a basic clock and an abnormality detection timing signal. CONSTITUTION:The basic clock is supplied from a microcomputer 1 to a control signal generating circuit 3, which detects the positive and negative leading and trailing edges of the basic clock to generate a counter reset signal corresponding to the leading edge, and a gate signal, abnormality detection timing signal, and counter enable signal corresponding to the trailing edge. Those signals are supplied to a counter 8 and an abnormality amplitude detecting circuit 5, which detects the period abnormality of the basic clock on the basis of the counted value of the counter 8.

Description

【発明の詳細な説明】 本発明はマイクロコンピュータの発振する基本クロック
の長短周期異常を検出し、もって当該マイクロコンピュ
ータの暴走を検知するマイクロコンピュータ暴走検知回
路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microcomputer runaway detection circuit that detects abnormalities in long and short cycles of a basic clock oscillated by a microcomputer, thereby detecting runaway of the microcomputer.

マイクロコンピュータの暴走を検知し、速やかに復旧を
図るためには、当該マイクロコンピュータの発振する基
本クロックの周期を監視し、それが常に正しい範囲内に
あるか否かを検出する必要がある。
In order to detect runaway in a microcomputer and promptly recover it, it is necessary to monitor the cycle of the basic clock oscillated by the microcomputer and detect whether it is always within the correct range.

このために従来用いられている基本クロック周期の異常
検出回路としてはウォッチドッグタイマと呼ばれるもの
がある。
For this purpose, there is a circuit called a watchdog timer as a basic clock cycle abnormality detection circuit conventionally used.

これは被検査対象としての基本クロックによりコンデン
サを充電し、その両端電位を監視するもので、当該基本
クロックが正常に出ている間はコンデンサ両端電位も成
る一定範囲内に落ち着いているが基本クロックの周期が
異常に長くなるとコンデンサ両端電位が閾値を下回って
低下することを利用し、当該基本クロックの長周期化異
常を検出するものである。
This charges a capacitor using the basic clock as the object to be inspected, and monitors the potential across it.While the basic clock is outputting normally, the potential across the capacitor also remains within a certain range, but the basic clock When the period of the basic clock becomes abnormally long, the potential across the capacitor drops below a threshold value, which is used to detect an abnormality in the period of the basic clock.

然し、こうした原理による従来の暴走検出回路乃至基本
クロック周期の異常検出回路は、基本クロック周期が異
常に短くなった場合、即ち短周期化異常はこれを検出す
ることができないという欠点を有していた。
However, conventional runaway detection circuits or basic clock cycle abnormality detection circuits based on this principle have the drawback that they cannot detect when the basic clock cycle becomes abnormally short, that is, short cycle abnormalities. Ta.

本発明はこの点に鑑みて成されたもので、マイクロコン
ピュータの発振する基本クロック周期が正常動作状態と
看做せる許容周期(乃至間接的にはパルス幅)範囲を越
え異常に長くなった場合はもとより、異常に短くなった
場合にも同様にこれを検出できるマイクロコンピュータ
暴走検知回路を提供せんとするものである。
The present invention has been made in view of this point, and is intended to be used when the basic clock period oscillated by a microcomputer becomes abnormally long beyond the permissible period (or indirectly, pulse width) range that can be considered as normal operating condition. In addition, it is an object of the present invention to provide a microcomputer runaway detection circuit that can detect abnormally shortened lengths as well.

以下、添附図面に示す本発明の実施例を通じて本発明の
構成及び作用、効果に就き説明するが、先づ第1図は本
発明のマイクロコンピュータ暴走検知回路の原理的乃至
基本的一実施例を示している。
The structure, operation, and effects of the present invention will be explained below through embodiments of the present invention shown in the accompanying drawings. First, FIG. 1 shows a principle or basic embodiment of the microcomputer runaway detection circuit of the present invention. It shows.

被検査対象はマイクロコンピュータlの発振する基本ク
ロックCPであるが、この基本クロックCPはマイクロ
コンピュータlに外付けの外部発振器2の発振するマス
タクロックPOを適宜分周して得られ、正規にプログラ
ムが実行されている場合、一般にデユーティ50%のパ
ルス列となる。
The object to be tested is the basic clock CP oscillated by the microcomputer 1. This basic clock CP is obtained by appropriately dividing the master clock PO oscillated by the external oscillator 2 attached to the microcomputer 1, and is not properly programmed. is executed, the pulse train generally has a duty of 50%.

従って当該基本クロックCPは、論理的に゛H″レベル
、“L′”レベルいづれにある時もそのパルス幅は共に
等しくTOである。本実施例ではこのパルス幅乃至半周
期TOを監視する。
Therefore, when the basic clock CP is logically at the "H" level or the "L'" level, its pulse width is the same TO. In this embodiment, this pulse width or half period TO is monitored.

本発明においてはこうした基本クロックCPは先づ制御
信号発生回路3に与えられる。この制御信号発生回路3
は、当該基本クロックCPの正方向または負方向への立
ち上がり縁、立ち下がり縁を各検出し、立ち上がり縁に
対応させてはカウンタリセット信号Srを、立ち下がり
縁に対応させてはゲート信号乃至異常検出タオミング信
号Sgを各発生するもので、これら両信号Sr、Sgの
いづれをも発生させることがない時、乃至少なくとも経
時的に見てカウンタリセット信号Srを発生してから検
出タイミング信号Sgを発生する迄の間はカウンタイネ
ーブル信号Seを発生するようになっている。
In the present invention, such basic clock CP is first given to the control signal generation circuit 3. This control signal generation circuit 3
detects the rising edge and falling edge of the basic clock CP in the positive or negative direction, and detects the counter reset signal Sr corresponding to the rising edge and the gate signal or abnormality corresponding to the falling edge. When neither of these signals Sr and Sg is generated, or at least over time, the detection timing signal Sg is generated after the counter reset signal Sr is generated. Until this happens, a counter enable signal Se is generated.

カウンタリセット信号Sr及びカウンタイネーブル信号
Seは共にカウンタ8に与えられ、当該カウンタ8では
カウンタイネーブル信号Seを受けている時にマスタク
ロックPOをカウント出力、逐次その結果をカウント出
力Scとして出力する。勿論、カウンタリセット信号S
rが与えられた時にはカウント内容Scを帰零する。
Both the counter reset signal Sr and the counter enable signal Se are applied to the counter 8, and when the counter 8 receives the counter enable signal Se, the counter 8 counts the master clock PO and sequentially outputs the result as the count output Sc. Of course, the counter reset signal S
When r is given, the count content Sc is reset to zero.

異常発振検出回路5では上記カウンタ8のカウント出力
Scを常時監視しており、カウンタイネーブル信号Se
の発生後、マスタクロックPoをカウントして所定の数
値範囲に至った時点が検出タイミング信号Sgの発生時
点に合致するか否か、乃至はハード的に設定した所定の
数値範囲内にこのカウント出力Scがあるか否かを弁別
する。
The abnormal oscillation detection circuit 5 constantly monitors the count output Sc of the counter 8 and outputs a counter enable signal Se.
After the generation of , check whether the time when the master clock Po reaches a predetermined numerical range coincides with the generation time of the detection timing signal Sg, or whether this count output is within a predetermined numerical range set by hardware. It is determined whether Sc is present or not.

従って、制御信号発生回路3から検出タイミング信号s
gが与えられた時に当該異常発振検出回路5においてカ
ウント出力Scが所定範囲内から外れていれば、乃至所
定の数値範囲をカウントした時点が検出タイミング信号
Sgの発生タイミングと狂っていれば、それは基本クロ
ックCPに長短いづれかの周期異常が生じた結果であり
、もって当該異常発振検出回路5から異常検出信号So
が出力される。
Therefore, the detection timing signal s from the control signal generation circuit 3
If the count output Sc of the abnormal oscillation detection circuit 5 is outside the predetermined range when g is given, or if the time point at which the predetermined numerical range is counted is out of line with the generation timing of the detection timing signal Sg, then This is the result of either a long or short cycle abnormality occurring in the basic clock CP, and the abnormality detection signal So from the abnormal oscillation detection circuit 5.
is output.

この異常検出信号Soをどのように利用するかは本発明
が直接にこれを規定するものではないが、一般的に考え
られる用途としてはこれをマイクロコンピュータlのリ
セット信号として利用することである。基本クロックC
Pに何等かの異常が生した時には当該マイクロコンピュ
ータlを初期状態に戻すのが一番安全だからである。
Although the present invention does not directly specify how this abnormality detection signal So is to be used, a commonly considered use is to use it as a reset signal for the microcomputer I. Basic clock C
This is because when some abnormality occurs in P, it is safest to return the microcomputer l to its initial state.

第2,3図は上記第1図示の原理的な実施例に即して構
成したやや具体的な実施例及びその各部波形図を示して
いる。
FIGS. 2 and 3 show a slightly more specific embodiment constructed in accordance with the principle embodiment shown in FIG. 1, and waveform diagrams of various parts thereof.

第2図における被検査対象基本クロックCPの発振器と
してのマイクロコンピュータ1は、リセット人力が電源
電位乃至論理°“H“に引き上げられている時に稼動可
能な状態にあり、略ぐ接地電位乃至論理“L′に引き落
とされると少なくとも一旦はりセットされるものとする
。即ち、マイクロコンピュータリセット信号SOは論理
“L”において有意である。但し勿論、これに限らず、
マイクロコンピュータリセット信号SOの形態は対象と
なるマイクロコンピュータのリセット態様に合致させれ
ば良い。また、本実施例では、カウンタ8としてイネー
ブル入力付きのバイナリカウンタを用いているが、その
容量乃至出力ピッlに就いては下記説明を満足するよう
に適宜のものを選べば良い。
The microcomputer 1 as an oscillator of the basic clock CP to be tested in FIG. 2 is in an operable state when the reset power is raised to the power supply potential or logic "H", and is approximately at ground potential or logic "H". When it is pulled down to L', it is set at least once.In other words, the microcomputer reset signal SO is significant at logic "L".However, of course, this is not limited to,
The form of the microcomputer reset signal SO may be matched to the reset mode of the target microcomputer. Further, in this embodiment, a binary counter with an enable input is used as the counter 8, but its capacity and output pill may be appropriately selected so as to satisfy the following explanation.

マイクロコンピュータlからの基本クロックCPは制御
信号発生回路3内のインバータ31を介して反転された
後、積分回路32に与えられる。従って第2図中、0点
の信号波形は第3図中、第三段目に示すようにその立ち
上がり、立ち下がりの各縁部が積分回路32を構成する
抵抗RとキャパシタCとで定まる時定数に従って鈍った
ものとなる。こ近似して示している。
The basic clock CP from the microcomputer 1 is inverted via an inverter 31 in the control signal generating circuit 3 and then applied to the integrating circuit 32. Therefore, the signal waveform at point 0 in FIG. 2 is as shown in the third row of FIG. It becomes dull according to a constant. This is shown as an approximation.

而して先づカウンタリセット信号Srは、上記0点の信
号と基本クロックCPとのアンドをアンドゲート33で
採ることによって作られる。即ち、当該アントゲート3
3の入力における高低遷移閾値や抵抗RとキャパシタC
による時定数を適当に定めれば、第3図中、0点に示す
ように、基本クロックCPの各周期の各正方向への立ち
上がりから所定時間αに亘って論理“H゛に立ち上がる
カウンタリセット信号Srが得られる。従ってカウンタ
8は基本クロックCPの各周期の各正方向への立ち上が
りに伴って一旦、リセットされる。
First, the counter reset signal Sr is generated by ANDing the 0 point signal and the basic clock CP using an AND gate 33. That is, the Ant Gate 3
High and low transition thresholds, resistance R and capacitor C at the input of 3
If the time constant is determined appropriately, as shown at point 0 in Fig. 3, the counter resets to logic "H" for a predetermined period of time α from the rising edge of each period of the basic clock CP in the positive direction. A signal Sr is obtained.Therefore, the counter 8 is once reset with each positive rise of each period of the basic clock CP.

一方、同じく正方向に関して基本クロックCPの各周期
の各立ち下がりにおいては異常発振検出回路5へのゲー
ト信号乃至検出タイミング信号S’gが発生される。即
ち、0点の信号と基本クロックCPとはノアゲート34
に入力されており、従って第3図中■点に示すように、
当該シアゲート34の入力における高低遷移閾値の如何
や積分回路32の時定数の如何によってパルス幅βの定
まる検出タイミング信号Sgが発生される。逆に言えば
この実施例の場合、基本クロンクCPの一発宛の各立ち
下がり時点を後述の異常発振検出回路5から異常検出結
果を出力するタイミングとして選んでいる。尚上記した
アンドゲート33及びノアゲート34の閾値は第3図中
、積分波形の過渡期部分に横断破線として模式的に示し
である。
On the other hand, similarly in the positive direction, at each falling edge of each period of the basic clock CP, a gate signal or a detection timing signal S'g to the abnormal oscillation detection circuit 5 is generated. In other words, the 0 point signal and the basic clock CP are connected to the NOR gate 34.
Therefore, as shown in point ■ in Figure 3,
A detection timing signal Sg whose pulse width β is determined is generated depending on the high/low transition threshold at the input of the shear gate 34 and the time constant of the integrating circuit 32. Conversely, in the case of this embodiment, each falling point of the basic clock CP for one shot is selected as the timing for outputting the abnormality detection result from the abnormal oscillation detection circuit 5, which will be described later. The threshold values of the AND gate 33 and the NOR gate 34 described above are schematically shown in FIG. 3 as broken lines across the transition period of the integral waveform.

カウンタイネーブル信号Seは上記したカウンタリセッ
ト信号Srと検出タイミング信号Sgとのノアをノアゲ
ート35で採ることによって作っている。
The counter enable signal Se is generated by taking the NOR gate 35 between the counter reset signal Sr and the detection timing signal Sg.

そのため、この実施例においては当該カウンタイネーブ
ル信号Seはカウンタリセット信号Sr及び検出タイミ
ング信号Sgが共に有意論理レベルにない時、即ち論理
“L′”にある時に有意レベル“H”となる。これは第
3図中、0点に示しである。
Therefore, in this embodiment, the counter enable signal Se becomes a significant level "H" when both the counter reset signal Sr and the detection timing signal Sg are not at a significant logic level, that is, when they are at a logic "L'". This is shown at point 0 in FIG.

カウンタ8は論理“H”′で有意のカウンタイネーブル
信号Seが与えられている時にマスタクロックPOをカ
ウントするが、当該カウント出力Scは異常発振検出回
路5内の遅延時間設定回路51に人力される、 第2図中■点で示す遅延時間設定回路51の出力信号波
形は第3図中では下から三段目に示しであるが、カウン
タリセット信号Srの立ち下がりから時間T1経過後に
基本クロックcpの周期を正常と看做せる許容時間範囲
γに亘って論理゛°“L”°に立ち下がるパルス波形と
して定義される。
The counter 8 counts the master clock PO when a significant counter enable signal Se is given at logic "H"', and the count output Sc is manually inputted to the delay time setting circuit 51 in the abnormal oscillation detection circuit 5. , The output signal waveform of the delay time setting circuit 51 indicated by the point ■ in FIG. 2 is shown in the third row from the bottom in FIG. It is defined as a pulse waveform that falls to a logic "L" degree over a permissible time range γ in which the cycle of is considered normal.

以上の各時間関係を見ると分かるように、基本クロック
CPが正常な周期範囲で発振している時には次の時間関
係が満たされる。但し■点信号のパルス幅γに対し既述
した検出タイミング信号Sgのパルス幅βは小さくなる
ように設定して置く。
As can be seen from the above-mentioned time relationships, the following time relationships are satisfied when the basic clock CP oscillates within a normal cycle range. However, the pulse width β of the detection timing signal Sg described above is set to be smaller than the pulse width γ of the point signal.

TI+(X≦To≦71+α+7 、、、、、、、、■
βくγ 6600011.■ 遅延時間設定回路51の出力は検出タイミング信号Sg
とアンドゲート52にてアンドを採られるが、そのため
、検出タイミングにおいて遅延時間設定回路51の出力
が論理′″H”であった場合には基本クロックCPに何
等かの異常が生じたことを表し、論理゛L”′であれば
異常の無いことを表すものとなる。この点を更に詳しく
説明する。
TI+(X≦To≦71+α+7 ,,,,,,,■
βkuγ 6600011. ■ The output of the delay time setting circuit 51 is the detection timing signal Sg.
The AND gate 52 performs an AND operation. Therefore, if the output of the delay time setting circuit 51 is logic ``H'' at the detection timing, it indicates that some abnormality has occurred in the basic clock CP. , logic "L''' indicates that there is no abnormality. This point will be explained in more detail.

第3図中、“正常°′範囲に示すように、基本クロ7ク
CPが上記0式を満足している限り、第3図から顕かな
通り、検出タイミング信号Sgが発せられた時には遅延
時間設定回路51の出力としての0点の信号波形は必ず
論理“L″にあり、従って検出タイミングであることを
知らせる検出タイミング信号Sgかアンドゲート52の
一人力に与えられても当該アンドゲート52の出力(0
点)は以前からの論理゛L”を保ち、インバータ53を
介しての異常検出信号乃至マイクロコンピュータリセッ
ト信号Soも非有意論理“Hパを維持する。即ち、マイ
クロコンピュータlはリセットされることなくそのまま
稼動を続けることができる。
As shown in the "normal °' range in FIG. 3, as long as the basic clock CP satisfies the above equation 0, as is clear from FIG. 3, when the detection timing signal Sg is issued, there is a delay time. The signal waveform of the 0 point as the output of the setting circuit 51 is always at logic "L", so even if the detection timing signal Sg indicating that it is the detection timing is applied to the AND gate 52 alone, the output of the AND gate 52 is Output (0
point) maintains the previous logic "L", and the abnormality detection signal or microcomputer reset signal So via the inverter 53 also maintains the non-significant logic "H". That is, the microcomputer 1 can continue to operate without being reset.

が、例えば基本クロックCPの周期に乱れが生じ、上記
0式の一つの条件が狂って To<Tl+α 0090016.■ どなったとすると、第3図中の“短周期化異常゛範囲で
示すように、基本クロックCPの立ち下がりを検出タイ
ミングとして知らせる検出タイミング信号Sgが点■に
て論理“H′”に立ち上がった時に、カウンタリセット
信号Srの立ち下がりから所定時間Tlを経過していな
いがために点■と同時刻の点■において遅延時間設定回
路51の0点出力が未だ論理“H″°である事態が生ず
る。
However, for example, a disturbance occurs in the period of the basic clock CP, and one of the conditions in the above equation 0 goes out of order, resulting in To<Tl+α 0090016. ■ If this happens, the detection timing signal Sg, which indicates the fall of the basic clock CP as the detection timing, rises to logic "H'" at point ■, as shown in the "short cycle abnormality" range in Figure 3. At this time, since the predetermined time Tl has not elapsed since the fall of the counter reset signal Sr, the 0 point output of the delay time setting circuit 51 is still at the logic "H" degree at the point ■ which is the same time as the point ■. occurs.

すると、アンドゲート52の再入力が共に論理“H”に
なるから、当該アンドゲート52の出力は点■で示すよ
うにH°′となり、インバータ53を介しての異常検出
信号乃至マイクロコンピュータリセット信号Soは点■
にて有意レベル“L“′となってマイクロコンピュータ
1を所期通すリセットする。
Then, since both of the re-inputs of the AND gate 52 become logic "H", the output of the AND gate 52 becomes H°' as shown by point (■), and the abnormality detection signal or microcomputer reset signal is output via the inverter 53. So is a dot■
The signal becomes significant level "L"' and the microcomputer 1 is reset as expected.

次に基本クロック周期が所定範囲を越えて長くなる°“
長周期化異常パに就いて説明する。
Next, the basic clock period becomes longer than the specified range °“
The long period abnormality will be explained.

既述した0式のもう一つの条件が損われ、To>TI+
α+γ ・・・・・・・・■となったとすると、第3図
中、゛長周期化異常”′範囲に示すように、時点■で検
出タイミング信号Sgが発生しても最早遅く、遅延時間
設定回路51の■煮出力信号が既に所定の時間α+T1
+γを経過したため“L′”からH”に立ち戻っている
状態か生ずる(点■)。
Another condition of the 0 formula mentioned above is impaired, and To>TI+
Assuming that α+γ ・・・・・・・・・■, as shown in the ``Long period abnormality'' range in Figure 3, even if the detection timing signal Sg is generated at time ■, it is already too late and the delay time The boiling output signal of the setting circuit 51 has already reached the predetermined time α+T1.
Since +γ has passed, a state occurs in which the signal returns from "L'" to "H" (point ■).

すると、この時点においては先の短周期化異常と同様、
点の、■にて示されるようにアンドゲート52における
アンドが採れ、従って論理゛L”で有意の異常検出信号
Soが出力されてマイクロコンピュータlのリセットが
図られる。
Then, at this point, similar to the previous short cycle abnormality,
As shown by the dot (■), the AND gate 52 performs an AND operation, and therefore, a significant abnormality detection signal So at logic "L" is output, and the microcomputer 1 is reset.

上記した説明においては遅延時間設置回路51はブラッ
クボックスで示したが、これは当業者であれば遅延時間
設定回路51に要求される機能を満たすにも各種各様の
構成を組めるからであり、本発明がこれを直接に規定す
るものではないからである。
In the above explanation, the delay time setting circuit 51 is shown as a black box, but this is because those skilled in the art can construct various configurations to satisfy the functions required of the delay time setting circuit 51. This is because the present invention does not directly define this.

例えば、マスククロックPOをカウントするカウンタ8
が予め設定した所定数値範囲をカウントしている時点に
おいては最終段のゲート回路出力に論理゛L“が得られ
るように、カウンタ8の各ピント出力ポートに対して適
当なゲートアレイを組んでも良いし、カウンタ出力ボー
ト群の中、カウンタリセット信号Srの入力後、T1時
間を経過した時点で出力を反転する出力ポートの当該反
転により、これに接続した単安定マルチバイブレータを
起動させ、その出力として所定時間γに亘るパルスを得
ても良い。勿論その他にも、先に述べたように各種の構
成が考えられる。
For example, the counter 8 that counts the mask clock PO
An appropriate gate array may be constructed for each focus output port of the counter 8 so that logic "L" is obtained at the gate circuit output of the final stage when the counter is counting a predetermined numerical range set in advance. Among the counter output ports, the inversion of the output port that inverts the output after T1 time has elapsed after the input of the counter reset signal Sr activates the monostable multivibrator connected to it, and as its output. It is also possible to obtain a pulse over a predetermined time γ.Of course, various other configurations are possible as described above.

また、上記論理動作において正論理と負論理の転換は勿
論自明の範囲であり、例えば基本クロックCPの負方向
への立ち上がりでカウンタリセット信号Srを得、同じ
く基本クロックcpの負方向に関する立ち下がりで(即
ち論理“L′°から“H”′への遷移で)検出タイミン
グ信号Sgを得る等しても良い。
Furthermore, in the above logic operation, the conversion between positive logic and negative logic is of course within the obvious range. For example, the counter reset signal Sr is obtained at the rising edge of the basic clock CP in the negative direction, and the counter reset signal Sr is obtained at the falling edge of the basic clock CP in the negative direction. The detection timing signal Sg may be obtained (that is, at the transition from logic "L'° to "H"').

ともかくも以上説明したように、本発明によれば予期し
得ない外来ノイズ等によりプログラムが暴走しても、基
本クロックが正常な状態における周期範囲を上下に越え
た双方に就き確実にこれを検出することができ、要すれ
ば速やかに当該マイクロコンピュータのリセットを図り
得るため、暴走に伴う重大な事故はこれを避けることが
できる。
In any case, as explained above, according to the present invention, even if a program goes out of control due to unexpected external noise, etc., this can be reliably detected in both cases where the basic clock exceeds the period range above and below the normal state. Since the microcomputer can be quickly reset if necessary, serious accidents due to runaway can be avoided.

Claims (1)

【特許請求の範囲】 発振器の発振するマスククロックを分周することにより
得られるマイクロコンピュータからの基本クロックの周
期異常を検出し、該マイクロコンピュータの暴走を検知
するマイクロコンピュータ暴走検知回路であって; 」1記基本クロックの立ち上がり、立ち下がりに応じ、
夫々カウンタリセット信号及び異常検出タイミング信号
を発生すると共に、上記カウンタリセット信号の発生後
、少なくとも」1記異常検出タイミング信号が発生され
る迄の間にはカウンタイネーブル信号を発生する制御信
号発生回路と;上記カウンタリセット信号及びカウンタ
イネーブル信号により制御され、該カウンタイネーブル
信号に伴って上記マスタクロックをカウントするカウン
タと; 上記カウンタのカウント出力に基いて上記基本クロック
の周期異常を検出し、上記異常検出タイミング信号によ
りその検出結果を出力する異常発振検出回路と; から成ることを特徴とするマイクロコンピュータ暴走検
知回路。
[Scope of Claims] A microcomputer runaway detection circuit that detects a cycle abnormality in a basic clock from a microcomputer obtained by dividing a mask clock oscillated by an oscillator, and detects runaway of the microcomputer; ” 1. According to the rising and falling of the basic clock,
a control signal generation circuit that generates a counter reset signal and an abnormality detection timing signal, respectively, and generates a counter enable signal at least after the generation of the counter reset signal until the abnormality detection timing signal described in 1. a counter that is controlled by the counter reset signal and the counter enable signal and counts the master clock in accordance with the counter enable signal; detects a cycle abnormality of the basic clock based on the count output of the counter; A microcomputer runaway detection circuit comprising: an abnormal oscillation detection circuit that outputs the detection result based on a timing signal; and a microcomputer runaway detection circuit.
JP59069923A 1984-04-10 1984-04-10 Detecting circuit for microcomputer runaway Pending JPS60214050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59069923A JPS60214050A (en) 1984-04-10 1984-04-10 Detecting circuit for microcomputer runaway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59069923A JPS60214050A (en) 1984-04-10 1984-04-10 Detecting circuit for microcomputer runaway

Publications (1)

Publication Number Publication Date
JPS60214050A true JPS60214050A (en) 1985-10-26

Family

ID=13416689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59069923A Pending JPS60214050A (en) 1984-04-10 1984-04-10 Detecting circuit for microcomputer runaway

Country Status (1)

Country Link
JP (1) JPS60214050A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56137450A (en) * 1980-03-28 1981-10-27 Nec Home Electronics Ltd Runaway detection and returning device of operation processor
JPS58105357A (en) * 1981-12-17 1983-06-23 Fuji Xerox Co Ltd Clock diagnosing device of copying machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56137450A (en) * 1980-03-28 1981-10-27 Nec Home Electronics Ltd Runaway detection and returning device of operation processor
JPS58105357A (en) * 1981-12-17 1983-06-23 Fuji Xerox Co Ltd Clock diagnosing device of copying machine

Similar Documents

Publication Publication Date Title
US5748948A (en) Reset signal generator
US5440603A (en) Watch-dog timer circuit and a microcomputer equipped therewith
GB2065939A (en) Arrangement having a programmabel electrical circuit and monitoring menas
US9453881B2 (en) Oscillation circuit, integrated circuit, and abnormality detection method
US4698829A (en) Monitoring system for verifying that an input signal is toggling at a minimum frequency
JPS60214050A (en) Detecting circuit for microcomputer runaway
US3927352A (en) Logic system for protecting transistors
JPS60214051A (en) Detecting circuit for microcomputer runaway
JPS6086627A (en) Detecting circuit of runaway of microcomputer
JPS63644A (en) Watch dog timer circuit
JP2864663B2 (en) Watchdog timer
JPS60200328A (en) Clock fault detecting circuit
US3942125A (en) Digital repetition rate check circuit
JPH01288934A (en) Double microcomputer system runaway preventing circuit
JP2853342B2 (en) Abnormal oscillation detection circuit
JP2571090Y2 (en) Watchdog circuit
SU1193689A1 (en) Device for checking system for automatic stabilizing of parameters
JP2698260B2 (en) Watchdog timer device
JPS63305436A (en) Output control device for microcomputer
JPS61101802A (en) Emergency stop signal input circuit
JP2516711B2 (en) Watchdog timer device
JPS61165143A (en) Malfunction preventing system of cpu
JPH09203751A (en) Monitoring circuit for positive-negative ac power source
JPS5816353A (en) Monitoring system for fault of computer
JPH0320775B2 (en)