JP2571090Y2 - Watchdog circuit - Google Patents

Watchdog circuit

Info

Publication number
JP2571090Y2
JP2571090Y2 JP1993030572U JP3057293U JP2571090Y2 JP 2571090 Y2 JP2571090 Y2 JP 2571090Y2 JP 1993030572 U JP1993030572 U JP 1993030572U JP 3057293 U JP3057293 U JP 3057293U JP 2571090 Y2 JP2571090 Y2 JP 2571090Y2
Authority
JP
Japan
Prior art keywords
circuit
microcomputer
voltage
pulse signal
output
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.)
Expired - Lifetime
Application number
JP1993030572U
Other languages
Japanese (ja)
Other versions
JPH0686143U (en
Inventor
譲 渡辺
Original Assignee
パロマ工業株式会社
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 パロマ工業株式会社 filed Critical パロマ工業株式会社
Priority to JP1993030572U priority Critical patent/JP2571090Y2/en
Publication of JPH0686143U publication Critical patent/JPH0686143U/en
Application granted granted Critical
Publication of JP2571090Y2 publication Critical patent/JP2571090Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【考案の詳細な説明】[Detailed description of the invention]

【0001】[0001]

【産業上の利用分野】本考案は、マイクロコンピュータ
の暴走を検知するウォッチドッグ回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a watchdog circuit for detecting runaway of a microcomputer.

【0002】[0002]

【従来の技術】従来から、マイクロコンピュータ(以
下、単にマイコンと呼ぶ)の暴走を検知するためにウォ
ッチドッグ回路が設けられる。ウォッチドッグ回路は、
マイコンから出力されるウォッチドッグパルス信号の周
期が遅延したときにマイコンが暴走していると判断する
ものである。つまり、マイコンの制御ソフト上にウォッ
チドッグ回路にパルス信号を出力するための指令を組み
込んでおき、制御ソフトに沿ってマイコンが正常に動作
していれば所定の周期でパルス信号が出力されるが、暴
走時においては所定の周期での信号出力が得られないこ
とを利用したものである。
2. Description of the Related Art Conventionally, a watchdog circuit is provided for detecting a runaway of a microcomputer (hereinafter simply referred to as a microcomputer). The watchdog circuit is
When the period of the watchdog pulse signal output from the microcomputer is delayed, it is determined that the microcomputer is running out of control. In other words, a command for outputting a pulse signal to the watchdog circuit is incorporated in the control software of the microcomputer, and the pulse signal is output at a predetermined cycle if the microcomputer is operating normally according to the control software. This is based on the fact that a signal output at a predetermined cycle cannot be obtained during a runaway.

【0003】ここで、従来からのウォッチドッグ回路の
一例について図3を用いて説明する。ウォッチドッグ回
路は、パルス遅延検出部10(ウォッチドッグIC)と
遅延時間設定用コンデンサ20とからなる。パルス遅延
検出部10は、マイコンからのウォッチドッグパルス信
号を入力するパルス入力部11と、遅延時間設定用コン
デンサ20を充電するコンデンサ充電部12と、パルス
入力部11に入力されたパルス信号の立ち下がりエッジ
でコンデンサ20を放電させるコンデンサ放電部13
と、コンデンサ電圧Vc と基準電圧Vref とを比較する
電圧比較部14と、電圧比較信号に同期してマイコンに
リセット信号を出力するリセット出力部15とから構成
される
Here, an example of a conventional watchdog circuit will be described with reference to FIG. The watchdog circuit includes a pulse delay detection unit 10 (watchdog IC) and a delay time setting capacitor 20. The pulse delay detection unit 10 includes a pulse input unit 11 for inputting a watchdog pulse signal from a microcomputer, a capacitor charging unit 12 for charging a delay time setting capacitor 20, and a pulse signal input to the pulse input unit 11. Capacitor discharging unit 13 that discharges capacitor 20 at the falling edge
A voltage comparison unit 14 for comparing the capacitor voltage Vc with the reference voltage Vref, and a reset output unit 15 for outputting a reset signal to the microcomputer in synchronization with the voltage comparison signal.

【0004】ここで、ウォッチドッグ回路の動作を説明
するために、図4(A)に示すようなウォッチドッグパ
ルス信号がマイコンから出力された場合を考える。つま
り、正常に動作していたマイコンが途中から異常を生じ
てウォッチドッグパルスの周期が遅くなった場合を考え
る。
Here, in order to explain the operation of the watchdog circuit, consider the case where a watchdog pulse signal as shown in FIG. 4A is output from a microcomputer. That is, consider a case in which the normally operating microcomputer causes an abnormality in the middle and the period of the watchdog pulse is delayed.

【0005】ウォッチドッグ回路では、マイコンからの
パルス信号が入力されると、パルスの立ち下がりエッジ
によりコンデンサ放電部13が働いて、コンデンサ20
の電荷を放電させる。従って、コンデンサ20は充電と
放電とを繰り返し、その電圧波形は、図4(B)に示す
ようになる。この場合、マイコンが正常にパルス信号を
出力していれば基準電圧Vref に達する前に放電するた
め電圧比較部14の出力はハイレベルを維持する(図4
(C)のリセット出力と同じ)。しかし、マイコンに異
常が生じてパルス信号の周期が遅くなると、パルスの立
ち下がりが得られる前にコンデンサ電圧Vc が基準電圧
Vref に達することとなり電圧比較部14の出力がロー
レベルに落ちる。従って、リセット出力部15の出力は
ローレベルに落ち、マイコンをリセットする。このよう
にして、従来のウォッチドッグ回路では、ウォッチドッ
グパルス信号に基づいてマイコンの暴走を防止してい
る。
In the watchdog circuit, when a pulse signal is input from the microcomputer, the capacitor discharging section 13 is activated by the falling edge of the pulse, and the capacitor 20 is turned on.
To discharge the charge. Therefore, the capacitor 20 repeats charging and discharging, and its voltage waveform is as shown in FIG. In this case, if the microcomputer normally outputs a pulse signal, the discharge is performed before reaching the reference voltage Vref, so that the output of the voltage comparison unit 14 maintains a high level (FIG. 4).
(Same as reset output in (C)). However, if an abnormality occurs in the microcomputer and the cycle of the pulse signal is delayed, the capacitor voltage Vc reaches the reference voltage Vref before the fall of the pulse is obtained, and the output of the voltage comparison unit 14 falls to a low level. Therefore, the output of the reset output unit 15 falls to a low level and resets the microcomputer. In this manner, in the conventional watchdog circuit, runaway of the microcomputer is prevented based on the watchdog pulse signal.

【0006】[0006]

【考案が解決しようとする課題】ところで、マイコンの
暴走時にはウォッチドッグパルス信号の周期が遅くなる
のが一般的であるが、まれに周期が早い側に動作するこ
とがある。この場合、図5に示すように、コンデンサ2
0の放電周期が早くなり、いつまでたってもコンデンサ
電圧Vc は基準電圧Vref に達しない。このため、マイ
コンの暴走を判断できずリセット信号を出力できない。
つまり、上述したウォッチドッグ回路ではウォッチドッ
グパルス信号の周期が早い側に動作した異常に対しては
全く検知できないのである。また、特殊な機器等にはパ
ルス信号の周期が早い側に動作した異常を検知するもの
もあるが、非常に高価であり、しかもそのロジックは公
開されていない。本考案のウォッチドッグ回路は上記課
題を解決し、ウォッチドッグパルス信号の周期の早くな
ったケースにおいても確実にマイコン異常を検知し、し
かも簡易な構成とすることを目的とする。
In general, the cycle of the watchdog pulse signal is generally delayed when the microcomputer runs out of control. In this case, as shown in FIG.
The discharge cycle of 0 is shortened, and the capacitor voltage Vc does not reach the reference voltage Vref. For this reason, the runaway of the microcomputer cannot be determined, and the reset signal cannot be output.
In other words, the above-described watchdog circuit cannot detect any abnormality that operates in the earlier period of the watchdog pulse signal. In addition, some special devices and the like detect abnormalities that operate on the side where the pulse signal period is earlier, but are very expensive and their logic is not disclosed. The watchdog circuit of the present invention solves the above-described problem, and has an object to surely detect a microcomputer abnormality even in a case where the period of the watchdog pulse signal is shortened, and to provide a simple configuration.

【0007】[0007]

【課題を解決するための手段】上記課題を解決する本考
案のウォッチドッグ回路は、マイクロコンピュータから
のパルス信号を入力しそのパルス信号周期の遅延を検出
するパルス遅延検出回路を備え、該パルス信号周期の遅
延に基づいて上記マイクロコンピュータの暴走を検知す
るウォッチドッグ回路において、上記パルス遅延検出回
路の入力前段に、上記マイクロコンピュータからのパル
ス信号を積分する積分回路と、上記積分された信号の電
圧が、上記しきい値より高い状態から低下して下限しき
い値を下回ったとき、および下限しきい値より低い状態
から上昇して上限しきい値を上回ったときに比較信号の
出力を反転するヒステリシス付電圧比較回路とを備え、
上記マイクロコンピュータの出力するパルス信号の周期
が、正常時に出力するパルス信号の適正周期より早い場
合および遅い場合のいずれでも、上記ヒステリシス付電
圧比較回路の出力する信号の反転周期が正常時に比べて
遅くなる、あるいは上記ヒステリシス付電圧比較回路の
出力する信号が反転しないように上記上限しきい値およ
び下限しきい値が設定されていることを要旨とする。
According to the present invention, there is provided a watchdog circuit comprising a pulse delay detecting circuit for inputting a pulse signal from a microcomputer and detecting a delay of a period of the pulse signal. A watchdog circuit for detecting runaway of the microcomputer based on a cycle delay; an integrator circuit for integrating a pulse signal from the microcomputer before the input of the pulse delay detection circuit; and a voltage of the integrated signal. Inverts the output of the comparison signal when the voltage falls below the lower threshold value from a state higher than the threshold value and when the voltage rises from a state lower than the lower threshold value and exceeds the upper threshold value. and a hysteresis with the voltage comparator circuit,
Period of the pulse signal output from the microcomputer
Is faster than the proper period of the pulse signal output during normal operation.
Power supply with hysteresis
The inversion cycle of the signal output from the voltage comparison circuit is
Slow, or the above-mentioned voltage comparison circuit with hysteresis
The upper threshold value and the
And that the lower threshold is set .

【0008】[0008]

【作用】上記構成を有する本考案のウォッチドッグ回路
では、マイコンから出力されたパルス信号は積分回路に
より積分され、この積分された信号がヒステリシス付電
圧比較回路を通して比較信号に変換されパルス遅延検出
回路に出力される。ヒステリシス付電圧比較回路では、
積分回路からの出力電圧が上限しきい値と下限しきい値
との両方をまたいで電圧変動したときに比較信号の出力
を反転する。そして、この上限しきい値および下限しき
い値は、マイコンの出力するパルス信号の周期が、正常
時に出力するパルス信号の適正周期より早い場合および
遅い場合のいずれでも、ヒステリシス付電圧比較回路の
出力する信号の反転周期が正常時に比べて遅くなる、あ
るいはヒステリシス付電圧比較回路の出力する信号が反
転しないような値に設定されている。従って、マイコン
からのパルス信号の周期が早い場合では、積分回路によ
り積分された信号は上限しきい値と下限しきい値とをま
たぐほど電圧変動しきれないため、ヒステリシス付電圧
比較回路の比較信号出力は反転しないか、もしくは複数
のパルス信号が入力されて初めて所定の電圧変動が得ら
れ反転し、反転周期が遅くなる。この結果、比較信号を
入力するパルス遅延検出回路では、マイコンからのパル
ス信号周期が遅延している場合と同じようにマイコンの
暴走を検知する。
In the watchdog circuit of the present invention having the above configuration, the pulse signal output from the microcomputer is integrated by the integration circuit, and the integrated signal is converted into a comparison signal through the voltage comparison circuit with hysteresis, and the pulse delay detection circuit is used. Is output to In the voltage comparison circuit with hysteresis,
The output of the comparison signal is inverted when the output voltage from the integration circuit fluctuates across both the upper threshold and the lower threshold. And the upper threshold and lower threshold
If the pulse signal cycle output from the microcomputer is normal,
If the pulse signal output earlier than the appropriate period
In either case, the voltage comparison circuit with hysteresis
The output signal inversion cycle is slower than normal
Or the signal output from the voltage comparator with hysteresis
It is set to a value that does not rotate. Therefore, when the cycle of the pulse signal from the microcomputer is early, the signal integrated by the integrator circuit does not completely change in voltage beyond the upper threshold value and the lower threshold value. Output not inverted or multiple
The specified voltage fluctuation is not obtained until the pulse signal of
And the inversion cycle is delayed . As a result, the pulse delay detection circuit for inputting the comparison signal detects runaway of the microcomputer as in the case where the pulse signal period from the microcomputer is delayed.

【0009】また、マイコンからのパルス信号周期が適
正であれば、積分された信号の電圧は上限しきい値、下
限しきい値を越えて変動し、しかもパルス周期と同じ周
期でその電圧変動(増減)を繰り返す。従って、ヒステ
リシス電圧比較回路の出力は、マイコンからのパルス
信号と同じ周期のパルス信号となり、パルス遅延検出回
路ではマイコンの正常を判断できる。
If the pulse signal period from the microcomputer is proper, the voltage of the integrated signal fluctuates beyond the upper threshold value and the lower threshold value, and furthermore, its voltage fluctuation (the same period as the pulse period). Repeat). Therefore, the output of the voltage comparison circuit with hysteresis becomes a pulse signal having the same cycle as the pulse signal from the microcomputer, and the pulse delay detection circuit can determine whether the microcomputer is normal.

【0010】一方、マイコンからのパルス信号周期が遅
い場合には、積分された信号の電圧は大きく変動するも
のの反転周期が遅いため、ヒステリシス電圧比較回路
の出力は結局マイコンからのパルス信号と同じ周期のパ
ルス信号となる。この結果、マイコンの暴走を検出でき
る。
On the other hand, when the pulse signal period from the microcomputer is slow, the output of the voltage comparison circuit with hysteresis is eventually the same as the pulse signal from the microcomputer because the voltage of the integrated signal fluctuates greatly but the inversion period is slow. It becomes a periodic pulse signal. As a result, runaway of the microcomputer can be detected.

【0011】[0011]

【実施例】以上説明した本考案の構成・作用を一層明ら
かにするために、以下本考案のウォッチドッグ回路の好
適な実施例について説明する。図1は一実施例としての
ウォッチドッグ回路の概略構成図である。ウォッチドッ
グ回路は、パルス遅延検出部10(汎用のウォッチドッ
グIC)の入力前段に以下に示す回路を備えている。
尚、パルス遅延検出部10に関しては従来技術で示した
ものと同じであるため図面に同一符号を付して説明を省
略する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In order to further clarify the configuration and operation of the present invention described above, a preferred embodiment of the watchdog circuit of the present invention will be described below. FIG. 1 is a schematic configuration diagram of a watchdog circuit as one embodiment. The watchdog circuit includes the following circuit at a stage prior to the input of the pulse delay detection unit 10 (general-purpose watchdog IC).
Since the pulse delay detecting section 10 is the same as that shown in the prior art, the same reference numerals are given to the drawings and the description is omitted.

【0012】パルス遅延検出部10の入力前段には、R
C回路を構成してマイコンからのパルス信号(ウォッチ
ドッグパルス信号)を積分する積分回路1と、ヒステリ
シス付電圧比較回路2とが設けられる。ヒステリシス付
電圧比較回路2は、積分回路1からの信号電圧と2種類
の比較用基準電圧とを比較するもので、比較素子である
コンパレータ3と比較用基準電圧を設定するための抵抗
器R1,R2,電源Vreff(素子の駆動電源を分圧して
設ければよい)等から構成される。
Before the input of the pulse delay detection unit 10, R
An integration circuit 1 that constitutes a C circuit and integrates a pulse signal (watchdog pulse signal) from a microcomputer and a voltage comparison circuit 2 with hysteresis are provided. The voltage comparison circuit 2 with hysteresis compares the signal voltage from the integration circuit 1 with two types of comparison reference voltages, and includes a comparator 3 as a comparison element and resistors R1 and R2 for setting the comparison reference voltage. R2, a power supply Vreff (may be provided by dividing the driving power supply of the element).

【0013】このヒステリシス付電圧比較回路2(以
下、ヒス付比較回路と呼ぶ)では、積分回路1からの信
号電圧Vが、第1の比較用基準電圧VH (以下、上限電
圧VHと呼ぶ)より高い状態から低下して第2の比較基
準電圧VL (以下、下限電圧と呼ぶ)を下回った時にハ
イレベル信号を出力し、下限電圧VL より低い状態から
上昇して上限電圧VH を上回った時にそのハイレベル信
号をローレベルに落とすように動作する。
In the voltage comparison circuit 2 with hysteresis (hereinafter referred to as comparison circuit with hysteresis), the signal voltage V from the integration circuit 1 is higher than the first comparison reference voltage VH (hereinafter referred to as upper limit voltage VH). A high level signal is output when the voltage drops from a high state and falls below a second comparison reference voltage VL (hereinafter, referred to as a lower limit voltage). It operates to drop a high level signal to a low level.

【0014】次に、ウォッチドッグ回路の動作を図2を
用いて説明する。図2は、正常に動作していたマイコン
が途中から異常を生じてウォッチドッグパルス周期が早
くなったケース(左側)および周期が遅くなったケース
(右側)における各種の信号波形を表す。尚、図中
(A)はウォッチドッグパルス信号波形を、(B)は積
分回路の出力電圧波形を、(C)はヒス付比較回路2の
出力波形を、(D)はコンデンサ電圧Vc の波形を、
(E)はリセット出力波形である。
Next, the operation of the watchdog circuit will be described with reference to FIG. FIG. 2 shows various signal waveforms in a case where the microcomputer that has been operating normally has an abnormality in the middle and the watchdog pulse cycle is shortened (left side) and in a case where the cycle is slowed down (right side). In the figure, (A) shows the watchdog pulse signal waveform, (B) shows the output voltage waveform of the integrating circuit, (C) shows the output waveform of the comparison circuit 2 with hysteresis, and (D) shows the waveform of the capacitor voltage Vc. To
(E) is a reset output waveform.

【0015】図示するように、正常の周期でマイコンか
らパルス信号が出力されている状態では、積分回路1の
出力は上限電圧VH および下限電圧VL からなる範囲を
越えるように電圧変動する。従って、ヒス付比較回路2
の出力は、この積分電圧Vが下限電圧VL を下回ったと
きに立ち上がり、上限電圧VH を越えたときにローレベ
ルに落ちる。このため、ヒス付比較回路2の出力はマイ
コンからのパルス信号と同じ周期でパルス遅延検出部1
0に送られることになる。従って、パルス遅延検出部1
0では、コンデンサ20の電圧Vc が基準電圧Vref を
越えない範囲で充電と放電を繰り返すこととなり(電圧
比較部14のパルス立ち下がりの度にコンデンサ放電部
13が働くため)、マイコンへのリセット信号(ローレ
ベル)が出力されない。
As shown in the figure, when a pulse signal is output from the microcomputer at a normal cycle, the output of the integrating circuit 1 fluctuates so as to exceed the range of the upper limit voltage VH and the lower limit voltage VL. Therefore, the comparison circuit with hysteresis 2
Output rises when the integrated voltage V falls below the lower limit voltage VL, and falls to a low level when the integrated voltage V exceeds the upper limit voltage VH. Therefore, the output of the comparison circuit with hysteresis 2 has the same cycle as that of the pulse signal from the microcomputer, and the pulse delay detector 1
0 will be sent. Therefore, the pulse delay detection unit 1
At 0, charging and discharging are repeated within a range where the voltage Vc of the capacitor 20 does not exceed the reference voltage Vref (because the capacitor discharging unit 13 operates each time the pulse of the voltage comparing unit 14 falls), and a reset signal to the microcomputer is provided. (Low level) is not output.

【0016】マイコンが異常を生じてウォッチドッグパ
ルス周期が早くなると、積分回路1の出力は電圧変動幅
が少なくなり、ヒス付比較回路2の上限電圧VHおよび
下限電圧VLの両方を越えるほどの電圧変動が得られな
くなる。このため、ヒス付比較回路2の出力はハイレベ
ルあるいはローレベルに保持されるか、もしくは複数の
パルス信号が入力されて初めて所定の電圧変動が得られ
反転し、反転周期が遅くなる。従って、パルス遅延検出
部10では、ヒス付比較回路2からのパルス立ち下がり
エッジが得られず、コンデンサ20の電圧Vが基準電
圧Vrefを越えることとなりマイコンにリセット信号
が出力される。この結果、パルス信号の周期が早い側に
異常動作した場合であっても、確実にマイコンの異常を
検知することができ、暴走を阻止することができる。
When the microcomputer generates an abnormality and the watchdog pulse cycle is shortened, the output of the integrating circuit 1 has a smaller voltage fluctuation range, and the output voltage of the integrating circuit 1 exceeds the upper limit voltage VH and the lower limit voltage VL. No fluctuation can be obtained. For this reason, the output of the comparison circuit with hysteresis 2 is maintained at a high level or a low level , or a plurality of outputs .
The specified voltage fluctuation is obtained only after the pulse signal is input.
Inversion occurs, and the inversion cycle is delayed . Thus, the pulse delay detection unit 10, a pulse trailing edge can not be obtained from the hysteresis with the comparator circuit 2, a reset signal is output to a result microcomputer voltage V c of the capacitor 20 exceeds the reference voltage Vref. As a result, even when the pulse signal is abnormally operated on the earlier side, the microcomputer can be reliably detected as being abnormal, and runaway can be prevented.

【0017】尚、ヒス付比較回路2に代えて単に上限値
のみを比較する比較回路を用いた場合、例えば積分回路
1からの出力が上限値をまたぐように小さく電圧変動し
たケースにおいては、パルス遅延検出部10でのコンデ
ンサ20の充放電が早い周期で繰り返されてしまいリセ
ット信号を出力できない。従って、本実施例のようなヒ
ス付比較回路2が必要なのである。
When a comparison circuit that compares only the upper limit value is used instead of the comparison circuit with hysteresis 2, for example, in the case where the output from the integration circuit 1 fluctuates slightly so as to exceed the upper limit value, a pulse is used. The charge / discharge of the capacitor 20 in the delay detection unit 10 is repeated at an early cycle, and a reset signal cannot be output. Therefore, the comparison circuit with hysteresis 2 as in this embodiment is required.

【0018】一方、ウォッチドッグパルス信号の周期が
遅くなった場合には、図2の右側部に示すように、積分
回路1の出力は電圧変動幅が大きいものの、その反転周
期が遅くなる。このため、ヒス付比較回路2の出力にお
いてもその反転周期が遅くなり、パルス遅延検出部10
でのコンデンサ電圧Vc が基準電圧Vref に達してリセ
ット信号を出力する。つまり、パルス遅延検出部10に
は、マイコンからのパルス信号と同じ周期のパルス信号
が入力されることとなり、従来と同様にマイコンの異常
を検知できるのである。
On the other hand, when the period of the watchdog pulse signal is delayed, as shown on the right side of FIG. 2, the output of the integrating circuit 1 has a large voltage fluctuation range, but its inversion period is delayed. For this reason, the inversion cycle of the output of the comparison circuit with hysteresis 2 is also delayed, and the pulse delay detection unit 10
The capacitor voltage Vc reaches the reference voltage Vref and outputs a reset signal. In other words, a pulse signal having the same cycle as the pulse signal from the microcomputer is input to the pulse delay detection unit 10, so that an abnormality of the microcomputer can be detected as in the related art.

【0019】以上説明したように、本実施例のウォッチ
ドッグ回路によれば、従来から用いられるパルス遅延検
出部10の入力前段に積分回路1とヒス付比較回路2と
を設けたことにより、ウォッチドッグパルス信号の周期
が早くなった場合でも、確実にマイコンの暴走を検知す
ることができる。このため、マイコンを用いた機器の安
全性を格段に向上することができる。しかも、抵抗器、
コンデンサ、コンパレータといった安価な素子を追加す
るだけでよく構成も簡単である。
As described above, according to the watchdog circuit of the present embodiment, the integration circuit 1 and the comparison circuit with hysteresis 2 are provided before the input of the pulse delay detection unit 10 which is conventionally used. Even when the period of the dog pulse signal is shortened, runaway of the microcomputer can be reliably detected. Therefore, the safety of the device using the microcomputer can be remarkably improved. Moreover, resistors,
The configuration is simple simply by adding inexpensive elements such as capacitors and comparators.

【0020】以上本考案の実施例について説明したが、
本考案はこうした実施例に何等限定されるものではな
く、本考案の要旨を逸脱しない範囲において、種々なる
態様で実施し得ることは勿論である。
The embodiment of the present invention has been described above.
The present invention is not limited to these embodiments at all, and it goes without saying that the present invention can be implemented in various modes without departing from the gist of the present invention.

【0021】[0021]

【考案の効果】以上詳述したように、本考案のウォッチ
ドッグ回路によれば、積分回路とヒステリシス付電圧比
較回路といった簡易な構成を付加するだけで、ウォッチ
ドッグパルス信号の周期の早くなったケースにおいても
確実にマイコン異常を検知できるという優れた効果を奏
する。
As described above in detail, according to the watchdog circuit of the present invention, the cycle of the watchdog pulse signal is shortened only by adding a simple configuration such as an integrating circuit and a voltage comparison circuit with hysteresis. An excellent effect that the microcomputer abnormality can be reliably detected even in the case is exhibited.

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

【図1】一実施例としてのウォッチドッグ回路の構成図
である。
FIG. 1 is a configuration diagram of a watchdog circuit as one embodiment.

【図2】ウォッチドッグ回路の動作を説明する信号波形
図である。
FIG. 2 is a signal waveform diagram illustrating an operation of a watchdog circuit.

【図3】従来からのウォッチドッグ回路の構成図であ
る。
FIG. 3 is a configuration diagram of a conventional watchdog circuit.

【図4】従来のウォッチドッグ回路の動作を説明する信
号波形図である。
FIG. 4 is a signal waveform diagram illustrating an operation of a conventional watchdog circuit.

【図5】従来のウォッチドッグ回路の動作を説明する信
号波形図である。
FIG. 5 is a signal waveform diagram illustrating an operation of a conventional watchdog circuit.

【符号の説明】[Explanation of symbols]

1…積分回路、 2…ヒステリシス付電圧比較回路、1
0…パルス遅延検出部、 20…遅延時間設定用コンデ
ンサ。
1: integration circuit, 2: voltage comparison circuit with hysteresis, 1
0: pulse delay detection section, 20: delay time setting capacitor.

Claims (1)

(57)【実用新案登録請求の範囲】(57) [Scope of request for utility model registration] 【請求項1】 マイクロコンピュータからのパルス信号
を入力しそのパルス信号周期の遅延を検出するパルス遅
延検出回路を備え、該パルス信号周期の遅延に基づいて
上記マイクロコンピュータの暴走を検知するウォッチド
ッグ回路において、 上記パルス遅延検出回路の入力前段に、 上記マイクロコンピュータからのパルス信号を積分する
積分回路と、 上記積分された信号の電圧が、上記しきい値より高い状
態から低下して下限しきい値を下回ったとき、および下
限しきい値より低い状態から上昇して上限しきい値を上
回ったときに比較信号の出力を反転するヒステリシス付
電圧比較回路とを備え、 上記マイクロコンピュータの出力するパルス信号の周期
が、正常時に出力するパルス信号の適正周期より早い場
合および遅い場合のいずれでも、上記ヒステリシス付電
圧比較回路の出力する信号の反転周期が正常時に比べて
遅くなる、あるいは上記ヒステリシス付電圧比較回路の
出力する信号が反転しないように上記上限しきい値およ
び下限しきい値が設定されている ことを特徴とするウォ
ッチドッグ回路。
1. A watchdog circuit for receiving a pulse signal from a microcomputer and detecting a delay of the pulse signal cycle, and detecting a runaway of the microcomputer based on the delay of the pulse signal cycle. In an input stage of the pulse delay detection circuit, an integration circuit for integrating a pulse signal from the microcomputer, and a voltage of the integrated signal decreases from a state higher than the threshold value to a lower threshold value when below the, and rises from below the lower threshold state and a hysteresis with the voltage comparator circuit for inverting the output of the comparison signal when above the upper threshold, the pulse signal output of the microcomputer Cycle of
Is faster than the proper period of the pulse signal output during normal operation.
Power supply with hysteresis
The inversion cycle of the signal output from the voltage comparison circuit is
Slow, or the above-mentioned voltage comparison circuit with hysteresis
The upper threshold value and the
And a lower threshold value are set .
JP1993030572U 1993-05-14 1993-05-14 Watchdog circuit Expired - Lifetime JP2571090Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1993030572U JP2571090Y2 (en) 1993-05-14 1993-05-14 Watchdog circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1993030572U JP2571090Y2 (en) 1993-05-14 1993-05-14 Watchdog circuit

Publications (2)

Publication Number Publication Date
JPH0686143U JPH0686143U (en) 1994-12-13
JP2571090Y2 true JP2571090Y2 (en) 1998-05-13

Family

ID=12307568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1993030572U Expired - Lifetime JP2571090Y2 (en) 1993-05-14 1993-05-14 Watchdog circuit

Country Status (1)

Country Link
JP (1) JP2571090Y2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63644A (en) * 1986-06-20 1988-01-05 Sanden Corp Watch dog timer circuit

Also Published As

Publication number Publication date
JPH0686143U (en) 1994-12-13

Similar Documents

Publication Publication Date Title
US4541050A (en) Control device for a vehicle
US5182459A (en) Control system for vehicle safety device
US5850514A (en) Malfunction monitoring circuit of microcomputer system
US7310025B2 (en) Oscillator circuit and integrated circuit incorporating the same
KR900001444B1 (en) Engine control apparatus
JPH061860Y2 (en) Automatic vehicle speed controller
US5512837A (en) Voltage drop detecting circuit
JP2571090Y2 (en) Watchdog circuit
JP2007104210A (en) Reset circuit
JP2003060490A (en) Clock stop detecting circuit, and semiconductor device
JP2007041824A (en) Resetting circuit for electronic control unit
US20070050687A1 (en) Watchdog monitoring circuit and method for controlling energization of the load using the watchdog monitoring circuit
JPH03217364A (en) Microcomputer runaway monitor for car-mounted controller
JP2853342B2 (en) Abnormal oscillation detection circuit
JPS61156443A (en) Runaway monitoring device of microcomputer
JPH0749422Y2 (en) Voltage monitoring circuit
JPH0843464A (en) Measuring apparatus for pulse signal
JPH0776933B2 (en) Reset device for digital computer
JPS63644A (en) Watch dog timer circuit
JPS6243390Y2 (en)
JPS625725Y2 (en)
JPH02246612A (en) Watchdog timer circuit
EP1710661A1 (en) Monitoring circuit
JPS61228722A (en) Circuit for detecting presence or absence of repetitive pulse with constant period
JPS6115638Y2 (en)

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term