JPH05289779A - Method and device for preventing runaway of microcomputer - Google Patents

Method and device for preventing runaway of microcomputer

Info

Publication number
JPH05289779A
JPH05289779A JP4083959A JP8395992A JPH05289779A JP H05289779 A JPH05289779 A JP H05289779A JP 4083959 A JP4083959 A JP 4083959A JP 8395992 A JP8395992 A JP 8395992A JP H05289779 A JPH05289779 A JP H05289779A
Authority
JP
Japan
Prior art keywords
microcomputer
power supply
terminal
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.)
Pending
Application number
JP4083959A
Other languages
Japanese (ja)
Inventor
Shozo Kato
昇三 加藤
Tetsuo Miyamoto
哲雄 宮本
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP4083959A priority Critical patent/JPH05289779A/en
Publication of JPH05289779A publication Critical patent/JPH05289779A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To surely stop a runaway by stopping power supply to a microcomputer, when the runaway of the microcomputer is judged, based on a timer pulse signal for a watchdog. CONSTITUTION:When a microcomputer 1 runs away, and a pulse signal comes not to be obtained from a terminal P, a charge accumulated in a capacitor 26 is discharged through a resistance 28. When a terminal voltage of the capacitor 26 drops by a forward voltage portion of a diode 30, the output of a comparator 23 is inverted to an output of +5V. Thus, a transistor 8 is turned off, and power supply to the microcomputer 1 is cut off, therefore, the microcomputer 1 stops surely its operation. In such a manner, the time when the terminal voltage of the capacitor 26 drops by the forward voltage portion of the diode 30 is controlled by a value of the resistance 28.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は複数の電気機器の運転を
行なうためのプログラムを実行するマイクロコンピュー
タの暴走防止に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to prevention of runaway of a microcomputer that executes a program for operating a plurality of electric devices.

【0002】[0002]

【従来の技術】従来のマイクロコンピュータの暴走防止
方法としては特公平2−18503号公報に記載されて
いるようなものがあった。この公報に記載されたもの
は、マイクロコンピュータが正常にプログラムを実行し
ている間(暴走していない間)ほぼ所定周期毎に出力端
子からパルス信号が得られるようにプログラムを構成
し、所定周期以内にパルス信号が得られなかった際にマ
イクロコンピュータにリセット信号を供給するウォッチ
ドドックタイマであった。
2. Description of the Related Art As a conventional method of preventing a runaway of a microcomputer, there is a method described in Japanese Patent Publication No. 2-18503. In the device disclosed in this publication, a program is configured so that a pulse signal is obtained from an output terminal almost every predetermined period while the microcomputer is normally executing the program (while it is not running out of control). It was a watchdog dock timer that supplied a reset signal to the microcomputer when a pulse signal was not obtained within that time.

【0003】この従来の技術では、さらにウォッチドド
ックタイマからのリセット信号に論理条件を加えること
によって、ウォッチドドックタイマの誤動作を防止した
ものであった。
In this prior art, the malfunction of the watchdog dock timer was prevented by further adding a logical condition to the reset signal from the watchdog dock timer.

【0004】[0004]

【発明が解決しようとする課題】以上のような従来の技
術では電源ノイズ等によるウォッチドドックタイマの誤
動作を防止できるが、マイクロコンピュータをリセット
する際のリセット信号に重畳した電源ノイズ等による誤
動作に対しては充分に防止できるものではなかった。
Although the above-mentioned conventional technique can prevent the malfunction of the watchdog timer due to the power supply noise or the like, the malfunction due to the power supply noise or the like superposed on the reset signal at the time of resetting the microcomputer can be prevented. On the other hand, it could not be sufficiently prevented.

【0005】すなわち、リセット信号又はリセット端子
に電源ノイズ等の影響が出た場合にマイクロコンピュー
タを確実にリセットできない場合があり、マイクロコン
ピュータの暴走を防止できない場合があった。
That is, when the reset signal or the reset terminal is affected by power supply noise or the like, the microcomputer may not be reliably reset, and the runaway of the microcomputer may not be prevented.

【0006】このような問題点に対して本発明はマイク
ロコンピュータの暴走時にマイクロコンピュータへの電
源供給を遮断して確実にマイクロコンピュータの暴走を
防止する方法と装置とを提供するものである。
In order to solve such a problem, the present invention provides a method and a device for surely preventing the runaway of the microcomputer by shutting off the power supply to the microcomputer during the runaway of the microcomputer.

【0007】[0007]

【課題を解決するための手段】本発明は複数の電気機器
の運転を制御するためのプログラムを実行するマイクロ
コンピュータの暴走防止方法において、マイクロコンピ
ュータは前記プログラムの実行中にパルス信号を出力す
る端子を備え、この端子から出力されるパルス信号が所
定時間の間供給されない時にマイクロコンピュータへの
電源供給を遮断するものである。
The present invention provides a runaway prevention method for a microcomputer that executes a program for controlling the operation of a plurality of electric devices, the microcomputer outputting a pulse signal during execution of the program. The power supply to the microcomputer is cut off when the pulse signal output from this terminal is not supplied for a predetermined time.

【0008】さらに、マイクロコンピュータへの電源供
給を遮断した時から一定時間後にマイクロコンピュータ
への電源供給を再開し、次いでマイクロコンピュータへ
リセット信号を供給するものである。
Further, the power supply to the microcomputer is restarted after a fixed time has elapsed after the power supply to the microcomputer was cut off, and then a reset signal is supplied to the microcomputer.

【0009】また、複数の電気機器の運転を制御するた
めのプログラムを実行するマイクロコンピュータの暴走
防止装置において、マイクロコンピュータは前記プログ
ラムの実行中にパルス信号を出力する端子を備えると共
に、このパルス信号が所定時間以下の間隔で出力されて
いる間はマイクロコンピュータへの電源供給を行ない、
パルス信号が所定時間以内に得られない時にマイクロコ
ンピュータへの電源供給を遮断する電源制御部と、この
電源制御部がマイクロコンピュータへの電源供給を遮断
した時から一定時間後にマイクロコンピュータへの電源
供給を再び開始させる再通電部と、マイクロコンピュー
タへの電源供給の開始から遅れてマイクロコンピュータ
のリセット端子にリセット信号を供給するリセット信号
発生部とを備えたものである。
Further, in a runaway prevention device for a microcomputer that executes a program for controlling the operation of a plurality of electric devices, the microcomputer has a terminal that outputs a pulse signal during execution of the program, and the pulse signal Power is supplied to the microcomputer while is output at intervals of a predetermined time or less,
A power supply control unit that shuts off the power supply to the microcomputer when the pulse signal is not obtained within a predetermined time, and a power supply to the microcomputer after a certain time has passed since the power supply control unit cut off the power supply to the microcomputer. And a reset signal generator for supplying a reset signal to the reset terminal of the microcomputer after a delay from the start of power supply to the microcomputer.

【0010】[0010]

【作用】このように構成されたマイクロコンピュータの
暴走防止方法又は暴走防止装置を用いた場合には、マイ
クロコンピュータが暴走した際にマイクロコンピュータ
への電源供給を遮断してマイクロコンピュータの暴走を
確実に防止することができる。
When the microcomputer runaway prevention method or the runaway prevention device configured as described above is used, when the microcomputer runs out of control, the power supply to the microcomputer is shut off to ensure the runaway of the microcomputer. Can be prevented.

【0011】また、マイクロコンピュータへの電源供給
を遮断した後、一定時間後にマイクロコンピュータへの
電源供給を再開し、次いでマイクロコンピュータにリセ
ット信号を供給してマイクロコンピュータを再起動する
ものである。
Further, after the power supply to the microcomputer is cut off, the power supply to the microcomputer is restarted after a predetermined time, and then a reset signal is supplied to the microcomputer to restart the microcomputer.

【0012】[0012]

【実施例】以下本発明の実施例を図面に基づいて説明す
る。図1は空気調和機に本発明を用いた際の要部電気回
路図である。この図は特にガスの燃焼熱を熱源とする空
冷式の小型吸収式冷凍機を用いた空気調和機の電気回路
図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is an electric circuit diagram of essential parts when the present invention is used in an air conditioner. This figure is an electric circuit diagram of an air conditioner that uses an air-cooled small absorption refrigerating machine which uses the combustion heat of gas as a heat source.

【0013】1はマイクロコンピュータであり、ROM
に格納されたプログラムを実行し、データ入力部2(冷
水温度、凝縮器温度、蒸発器温度、再生器液面、冷媒タ
ンク液面、溶液循環量などのデータを検出する。)から
供給される各種のデータに基づいて演算、判断等を行な
い、種々の電気機器(空冷ファン、溶液ポンプ、燃焼
器、冷媒循環ポンプなど)の運転を制御する。
1 is a microcomputer, ROM
Is executed and the data is supplied from a data input unit 2 (which detects data such as cold water temperature, condenser temperature, evaporator temperature, regenerator liquid level, refrigerant tank liquid level, and solution circulation amount). Calculations and judgments are performed based on various data to control the operation of various electric devices (air cooling fan, solution pump, combustor, refrigerant circulation pump, etc.).

【0014】マイクロコンピュータ1の端子Pはパルス
信号を出力する端子であり、マイクロコンピュータ1が
正常に動作(暴走していない)している間、ほぼ所定周
期以下の間隔でパルス信号を出力する。このパルス信号
は、すでに知られているウォッチドドック出力を用いる
ことができるのでパルス信号を出力するためのプログラ
ムに関する説明は省略する。
The terminal P of the microcomputer 1 is a terminal for outputting a pulse signal, and outputs a pulse signal at intervals of substantially a predetermined period or less while the microcomputer 1 is operating normally (not running out of control). As this pulse signal, the already-known watched dock output can be used, and therefore the description of the program for outputting the pulse signal is omitted.

【0015】端子VDD,VSSはマイクロコンピュータ1
の電源入力端子であり、これらの端子VDD,VSS間に+
12〔V〕の直流電圧が供給されている間マイクロコン
ピュータ1が動作する。
The terminals V DD and V SS are the microcomputer 1
Power supply input terminal of +, and between these terminals V DD and V SS
The microcomputer 1 operates while the DC voltage of 12 [V] is being supplied.

【0016】端子RESETはマイクロコンピュータ1
のリセット信号(電圧の立上りによるエッヂトリガー)
の入力端子であり、この端子RESETにリセット信号
が入力されることによって、マイクロコンピュータ1は
内部のプログラムカウンタを強制的に0にリセットして
プログラムを最初から実行させるものである。
The terminal RESET is the microcomputer 1
Reset signal (edge trigger by rising voltage)
When a reset signal is input to the terminal RESET, the microcomputer 1 forcibly resets the internal program counter to 0 and executes the program from the beginning.

【0017】4,5は夫々平滑用のコンデンサであり、
夫々+12〔V〕の直流電力、+5〔V〕の直流電力を
平滑し安定化させる。+12〔V〕,+5〔V〕の直流
電力は電源装置(図示せず)から生成される。6,7は
電源装置から侵入するノイズ吸収用のコンデンサであ
る。
Reference numerals 4 and 5 are smoothing capacitors,
DC power of +12 [V] and DC power of +5 [V] are smoothed and stabilized, respectively. DC power of +12 [V] and +5 [V] is generated from a power supply device (not shown). Reference numerals 6 and 7 are capacitors for absorbing noise that enters from the power supply device.

【0018】8はスイッチング用のトランジスタであ
り、このトランジスタがON(通電状態)の時に電源装
置から供給された+12〔V〕の直流電力をマイクロコ
ンピュータ1の端子VDDに供給する。9はこのトランジ
スタ8のバイアス用の抵抗である。10は端子VDDへ侵
入するノイズを吸収するコンデンサである。
A switching transistor 8 supplies +12 [V] DC power supplied from the power supply device to the terminal V DD of the microcomputer 1 when the transistor is ON (energized state). Reference numeral 9 is a resistor for biasing the transistor 8. Reference numeral 10 is a capacitor that absorbs noise that enters the terminal V DD .

【0019】11はリセット信号発生部であり、トラン
ジスタ8がONすると抵抗12を介してコンデンサ13
が充電され、コンデンサ13の端子電圧の上昇によるリ
セット信号(エッヂトリガー)が端子RESETに出力
される。抵抗12の値を変えることによってコンデンサ
13の充電速度、すなわちコンデンサ13の端子電圧の
上昇速度が変わる。本実施例ではマイクロコンピュータ
1の端子VDDへの電力供給開始から遅れて端子RESE
Tにリセット信号が与えられるように抵抗12の値を設
定している。尚14はダイオードであり、トランジスタ
8がOFFして端子VDDへの電力供給が遮断された際に
コンデンサ13の蓄積電荷を速やかに放電する。
Reference numeral 11 is a reset signal generator, and when the transistor 8 is turned on, a capacitor 13 is provided via a resistor 12.
Is charged and a reset signal (edge trigger) due to a rise in the terminal voltage of the capacitor 13 is output to the terminal RESET. By changing the value of the resistor 12, the charging speed of the capacitor 13, that is, the rising speed of the terminal voltage of the capacitor 13 changes. In this embodiment, the terminal RESE is delayed after the start of the power supply to the terminal V DD of the microcomputer 1.
The value of the resistor 12 is set so that a reset signal is given to T. Reference numeral 14 is a diode, which quickly discharges the accumulated charge in the capacitor 13 when the transistor 8 is turned off and the power supply to the terminal V DD is cut off.

【0020】15は波形変換部であり、マイクロコンピ
ュータ1の端子Pから出力されたパルス信号を増幅し、
かつトリガー状の波形に変換する。16はスイッチング
用のトランジスタであり、パルス信号に応答してON/
OFFする。17,18はトランジスタ16のバイアス
用の抵抗、19はトランジスタ16の出力用の抵抗であ
る。20,21は抵抗、コンデンサでありハイパスフィ
ルターを構成している。22はダイオードであり、ハイ
パスフィルターを通過したトリガー波形の0〔V〕付近
のなまりを切取る。
Reference numeral 15 is a waveform conversion unit, which amplifies the pulse signal output from the terminal P of the microcomputer 1,
And convert it to a trigger-like waveform. Reference numeral 16 is a switching transistor, which is turned on / off in response to a pulse signal.
Turn off. Reference numerals 17 and 18 denote resistors for biasing the transistor 16 and 19 denotes resistors for outputting the transistor 16. Reference numerals 20 and 21 are resistors and capacitors, which form a high-pass filter. Reference numeral 22 denotes a diode, which cuts off the roundness near 0 [V] of the trigger waveform that has passed through the high pass filter.

【0021】図2は波形変換部におけるパルス信号の変
換を示す波形図である。Pはマイクロコンピュータ1の
端子Pから出力されるパルス波形(ウォッチドドック出
力)であり、周期が10m秒でデューティが50%は方
形波である。S1はハイパスフィルターを通過した後の
波形、S2はダイオード22を通過した後の波形であ
る。
FIG. 2 is a waveform diagram showing conversion of the pulse signal in the waveform conversion unit. P is a pulse waveform (watched dock output) output from the terminal P of the microcomputer 1, and the period is 10 msec and the duty is 50% is a square wave. S1 is a waveform after passing through the high pass filter, and S2 is a waveform after passing through the diode 22.

【0022】図1の23は比較器であり、反転入力端子
(−)には波形変換部15の出力波形(図2のS2に示
す波形)をコンデンサ26で平滑した後の電圧が印加さ
れる。この電圧はパルス信号の間隔が長ければ低く、短
かければ高くなる。非反転入力端子(+)には抵抗2
4,25で分圧された基準電圧が印加される。
Reference numeral 23 in FIG. 1 is a comparator, and a voltage after smoothing the output waveform (waveform shown in S2 of FIG. 2) of the waveform converting section 15 by the capacitor 26 is applied to the inverting input terminal (-). .. This voltage is low when the pulse signal interval is long and high when the pulse signal interval is short. Resistor 2 is attached to the non-inverting input terminal (+)
The reference voltage divided by 4, 25 is applied.

【0023】従って、比較器23の反転入力端子(−)
に印加される電圧が抵抗24,25で定まる分圧電圧よ
り高い時は、この比較器23の出力電圧が0〔V〕にな
りトランジスタ8がONになる。すなわち、マイクロコ
ンピュータ1へトランジスタ8を介して直流電力が供給
される。
Therefore, the inverting input terminal (-) of the comparator 23
When the voltage applied to is higher than the divided voltage determined by the resistors 24 and 25, the output voltage of the comparator 23 becomes 0 [V] and the transistor 8 is turned on. That is, DC power is supplied to the microcomputer 1 through the transistor 8.

【0024】27は抵抗であり、比較器23の出力が0
〔V〕の時の電流制限用の抵抗である。28は比較器2
3の負帰環用の抵抗、29は比較器23の正帰環用の抵
抗である。また、30は保護用のダイオードであり、比
較器23の反転入力端子(−)と非反転入力端子(+)
間の電圧差をダイオード30の順方向電圧(0.6〜
0.7〔V〕)以下に保つものである。
Reference numeral 27 is a resistor, and the output of the comparator 23 is 0.
It is a resistance for limiting the current at [V]. 28 is a comparator 2
Reference numeral 3 is a negative feedback resistor, and 29 is a positive feedback resistor of the comparator 23. Further, 30 is a diode for protection, which has an inverting input terminal (-) and a non-inverting input terminal (+) of the comparator 23.
The voltage difference between the forward voltage of the diode 30 (0.6 ~
It should be kept at 0.7 [V]) or less.

【0025】従って、パルス信号がマイクロコンピュー
タ1の端子Pから所定時間以下の間隔で出力されている
間は、コンデンサ26が充電され続け、ダイオード30
の作用により比較器23の反転入力端子(−)に印加さ
れる電圧が非反転入力端子(+)に印加される電圧より
順方向電圧分高く保たれるので、比較器23の出力は0
〔V〕に保たれる。
Therefore, while the pulse signal is being output from the terminal P of the microcomputer 1 at intervals of a predetermined time or less, the capacitor 26 is continuously charged and the diode 30
By this action, the voltage applied to the inverting input terminal (−) of the comparator 23 is kept higher than the voltage applied to the non-inverting input terminal (+) by the forward voltage, so that the output of the comparator 23 is 0.
It is kept at [V].

【0026】次に、マイクロコンピュータ1が暴走しパ
ルス信号が端子Pより得られなくなると、コンデンサ2
6に蓄積された電荷は抵抗28を介して比較器23の出
力側(0〔V〕)への放電のみが継続される。コンデン
サ26の放電で端子電圧(比較器23の反転入力端子に
印加される電圧)が低下し、非反転入力端子(+)に印
加されている電圧以下になると、すなわちコンデンサ2
6の端子電圧がダイオード30の順方向電圧分低下する
と、比較器23の出力は+5〔V〕の出力に反転する。
Next, when the microcomputer 1 goes out of control and a pulse signal cannot be obtained from the terminal P, the capacitor 2
Only the electric charge accumulated in 6 is continuously discharged to the output side (0 [V]) of the comparator 23 via the resistor 28. When the terminal voltage (the voltage applied to the inverting input terminal of the comparator 23) decreases due to the discharge of the capacitor 26 and becomes equal to or lower than the voltage applied to the non-inverting input terminal (+), that is, the capacitor 2
When the terminal voltage of 6 drops by the forward voltage of the diode 30, the output of the comparator 23 is inverted to the output of +5 [V].

【0027】コンデンサ26の端子電圧が順方向電圧分
低下するまで時間は抵抗28の値で調節され、本実施例
ではこの時間が所定時間になるように設定されている。
The time until the terminal voltage of the capacitor 26 decreases by the forward voltage is adjusted by the value of the resistor 28, and in this embodiment, this time is set to a predetermined time.

【0028】また、比較器23の出力が+5〔V〕に変
わることによってトランジスタ8がOFFしマイクロコ
ンピュータ1の端子VDDへの電力供給が遮断される(電
源制御部)。従って、マイクロコンピュータ1は動作を
停止する。
When the output of the comparator 23 changes to +5 [V], the transistor 8 is turned off and the power supply to the terminal V DD of the microcomputer 1 is cut off (power supply control section). Therefore, the microcomputer 1 stops operating.

【0029】比較器23の出力が+5〔V〕になること
によって、コンデンサ26が抵抗28を介して充電を開
始する。同時に比較器23の非反転入力端子(+)に印
加される電圧が抵抗29による正帰環によって、抵抗2
4,25で定まる電圧より高い電圧となる。従って、コ
ンデンサ26の端子電圧が非反転入力端子(+)に印加
されている電圧より高くなると、比較器23の出力が再
び0〔V〕に反転し、トランジスタ8がONになる(再
通電部)。
When the output of the comparator 23 becomes +5 [V], the capacitor 26 starts charging via the resistor 28. At the same time, the voltage applied to the non-inverting input terminal (+) of the comparator 23 is changed by the resistance 29 to the resistance 2
The voltage becomes higher than the voltage determined by 4, 25. Therefore, when the terminal voltage of the capacitor 26 becomes higher than the voltage applied to the non-inverting input terminal (+), the output of the comparator 23 is again inverted to 0 [V], and the transistor 8 is turned on (re-energization section). ).

【0030】比較器23の出力が+5〔V〕になってか
らコンデンサ26の充電が開始され、コンデンサ26の
端子電圧が比較器23の出力が0〔V〕に反転する電圧
に至るまでの時間は正帰環用の抵抗29の値で調節する
ことができる。この時間は本発明の一定時間に相当す
る。
The time from when the output of the comparator 23 becomes +5 [V] to when the charging of the capacitor 26 is started and the terminal voltage of the capacitor 26 reaches the voltage at which the output of the comparator 23 is inverted to 0 [V]. Can be adjusted by the value of the resistor 29 for the forward and return ring. This time corresponds to the certain time of the present invention.

【0031】また、トランジスタ8がONした時から遅
れてリセット信号発生部11がリセット信号をマイクロ
コンピュータ1の端子RESETに出力するのでマイク
ロコンピュータ1はリセットされ、プログラムを最初か
ら再び実行する。この後、マイクロコンピュータ1が正
常に動作すると、パルス信号が端子Pから所定周期以下
の間隔で出力されるので前記したようにトランジスタ8
はON状態を維持する。マイクロコンピュータが正常に
動作しない時はこの通電、非通電を繰り返し続けるもの
である。
Further, since the reset signal generator 11 outputs a reset signal to the terminal RESET of the microcomputer 1 after the transistor 8 is turned on, the microcomputer 1 is reset and the program is executed again from the beginning. After that, when the microcomputer 1 operates normally, the pulse signal is output from the terminal P at an interval of a predetermined period or less.
Keeps the ON state. When the microcomputer does not operate normally, this energization and de-energization is repeated.

【0032】図3は比較器23の出力電圧の変化を示す
波形図である。マイクロコンピュータ1が暴走し端子P
からのパルス信号の出力が無くなり比較器23の出力が
所定時間後(時刻t1)に+5〔V〕に切換ると、比較
器23の出力によるコンデンサ26の充電が開始され、
一定時間(0.36秒)後の時刻t2に比較器23の反
転入力端子(−)に印加される電圧が非反転入力端子
(+)に印加される電圧より高くなって、比較器23の
出力が0〔V〕に反転する。
FIG. 3 is a waveform diagram showing changes in the output voltage of the comparator 23. The microcomputer 1 runs out of control and the terminal P
When the output of the comparator 23 is switched to +5 [V] after a predetermined time (time t 1 ) after the output of the pulse signal from the output of the comparator 23, the charging of the capacitor 26 by the output of the comparator 23 is started,
The voltage applied to the inverting input terminal (−) of the comparator 23 becomes higher than the voltage applied to the non-inverting input terminal (+) at time t 2 after a fixed time (0.36 seconds), and the comparator 23 Output is inverted to 0 [V].

【0033】比較器23の出力が0〔V〕に変わること
によって、コンデンサ26に蓄えられた電荷が再び放電
を開始する。このコンデンサ26の放電により端子電圧
が低下して比較器23の出力が5〔V〕に変化するのは
時刻t3であり、この間の時間は0.12秒である。
When the output of the comparator 23 changes to 0 [V], the electric charge stored in the capacitor 26 starts discharging again. The discharge by the output of the comparator 23 terminal voltage drops of the capacitor 26 from changing in 5 V is time t 3, during this period of time is 0.12 seconds.

【0034】従って、正帰環用の抵抗29は0.36秒
のコンデンサ26の充電時間で得られる端子電圧とほぼ
等しい電圧が非反転入力端子に得られる値に設定され
る。本実施例では比較器23の出力が0〔V〕の際の非
反転入力端子(+)に印加される電圧よりダイオード3
0の順方向電圧分高くなった電圧が得られるように設定
し、暴走を判断する所定時間とこの0.12秒の時間と
が等しくなるように設定している。
Therefore, the forward / reverse ring resistor 29 is set to a value such that a voltage substantially equal to the terminal voltage obtained during the charging time of the capacitor 26 of 0.36 seconds is obtained at the non-inverting input terminal. In this embodiment, when the output of the comparator 23 is 0 [V], the diode 3 is connected to the voltage applied to the non-inverting input terminal (+).
It is set so that a voltage increased by 0 forward voltage can be obtained, and the predetermined time for determining runaway and the time of 0.12 seconds are set to be equal.

【0035】また、この0.12秒の時間は、マイクロ
コンピュータ1に電力の供給を開始し、次いでリセット
信号を与え、マイクロコンピュータがプログラムの実行
を開始し最初のパルス信号を出力するまでの時間より長
いものである。
The time of 0.12 seconds is the time from the start of supplying power to the microcomputer 1 and then applying the reset signal until the microcomputer starts executing the program and outputs the first pulse signal. It is longer.

【0036】従って、マイクロコンピュータ1は直流電
力が遮断された後、時刻t2〜時刻t3の間に正常動作を
再開することができるものである。マイクロコンピュー
タ1が正常動作を再開することによって、端子Pからは
パルス信号が連続して出力される。すなわち、マイクロ
コンピュータ1は直流電力が連続して供給され正常動作
を維持することができる。
Therefore, the microcomputer 1 can resume normal operation between time t 2 and time t 3 after the DC power is cut off. When the microcomputer 1 resumes normal operation, pulse signals are continuously output from the terminal P. That is, the microcomputer 1 can be continuously supplied with DC power to maintain normal operation.

【0037】またマイクロコンピュータへの電力の供給
と遮断との繰り返しはパルス信号が得られるまで続けら
れるので、マイクロコンピュータの再起動が確実に行な
われる。
Further, the repetition of the supply and interruption of the electric power to the microcomputer is continued until the pulse signal is obtained, so that the microcomputer is surely restarted.

【0038】[0038]

【発明の効果】本発明によるマイクロコンピュータの暴
走防止は、マイクロコンピュータから出力されるウォッ
チドドック用のパルス信号に基づいてマイクロコンピュ
ータの暴走が判断された時は、マイクロコンピュータへ
の電力供給を遮断してマイクロコンピュータの暴走を停
止させることができる。
The microcomputer runaway prevention according to the present invention cuts off the power supply to the microcomputer when the microcomputer runaway is judged based on the watchdog pulse signal output from the microcomputer. Then, the runaway of the microcomputer can be stopped.

【0039】すなわち、マイクロコンピュータの暴走時
にはリセットミスなどの誤動作を起すことなく確実にマ
イクロコンピュータの暴走を停止させることができる。
That is, when the microcomputer runs out of control, it is possible to surely stop the runaway of the microcomputer without causing a malfunction such as a reset error.

【0040】また、マイクロコンピュータへの電力供給
の遮断後一定時間が経過すれば、自動的にマイクロコン
ピュータへの電力供給を再開し次いでマイクロコンピュ
ータにリセット信号を供給することによって、マイクロ
コンピュータを再起動させることができるものである。
When a certain time has elapsed after the power supply to the microcomputer was cut off, the power supply to the microcomputer is automatically restarted and then a reset signal is supplied to the microcomputer to restart the microcomputer. It can be done.

【0041】従って、マイクロコンピュータの暴走時に
は、電力供給を遮断して確実にマイクロコンピュータの
暴走を停止させた後マイクロコンピュータを正常に再起
動させることができるものである。
Therefore, when the microcomputer runs out of control, the power supply is shut off to reliably stop the runaway of the microcomputer, and then the microcomputer can be restarted normally.

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

【図1】本発明の実施例を示す要部電気回路図である。FIG. 1 is a main part electric circuit diagram showing an embodiment of the present invention.

【図2】波形変換部における波形図である。FIG. 2 is a waveform diagram in a waveform conversion unit.

【図3】比較器23の出力電圧の変化を示す説明図であ
る。
FIG. 3 is an explanatory diagram showing changes in the output voltage of the comparator 23.

【符号の説明】 1 マイクロコンピュータ 8 スイッチング用のトランジスタ 11 リセット信号発生部 15 波形変換部 23 比較器[Explanation of reference numerals] 1 microcomputer 8 switching transistor 11 reset signal generator 15 waveform converter 23 comparator

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年7月8日[Submission date] July 8, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0005[Correction target item name] 0005

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0005】 すなわち、リセット信号又はリセット端
子に電源ノイズ等の影響が出た場合、さらにマイクロコ
ンピュータの内部でラッチアップしリセット信号を受け
付けない場合にマイクロコンピュータを確実にリセット
できない場合があった。すなわち、マイクロコンピュー
タの暴走を防止できない場合があった。
That is, when the reset signal or the reset terminal is affected by power supply noise or the like, and further when the reset signal is not accepted due to latch-up inside the microcomputer, there are cases where the microcomputer cannot be reliably reset. That is, there are cases where the runaway of the microcomputer cannot be prevented.

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0012[Correction target item name] 0012

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0012】 以下本発明の実施例を図面に基づいて説
明する。図1は空気調和機に本発明を用いた際の要部電
気回路図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is an electric circuit diagram of essential parts when the present invention is used in an air conditioner.

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0013[Correction target item name] 0013

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0013】 1はマイクロコンピュータであり、RO
Mに格納されたプログラムを実行し、データ入力部2
(冷水温度、凝縮器温度、蒸発器温度などのデータを検
出する。)から供給される各種のデータに基づいて演
算、判断等を行い、種々の電気機器(空冷ファン、冷媒
循環ポンプなど)の運転を制御する。
1 is a microcomputer, RO
The program stored in M is executed, and the data input unit 2
(Detects data such as cold water temperature, condenser temperature, and evaporator temperature.) Calculations and judgments are performed based on various data supplied from various electrical devices (air cooling fan, refrigerant circulation pump, etc.) Control driving.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の電気機器の運転を制御するための
プログラムを実行するマイクロコンピュータの暴走防止
方法において、マイクロコンピュータは前記プログラム
の実行中にパルス信号を出力する端子を備え、この端子
から出力されるパルス信号が所定時間の間供給されない
時にマイクロコンピュータへの電源供給を遮断すること
を特徴とするマイクロコンピュータの暴走防止方法。
1. A runaway prevention method for a microcomputer that executes a program for controlling the operation of a plurality of electric devices, wherein the microcomputer has a terminal that outputs a pulse signal during execution of the program, and outputs from this terminal. A method for preventing runaway of a microcomputer, characterized in that the power supply to the microcomputer is cut off when the pulse signal is not supplied for a predetermined time.
【請求項2】 マイクロコンピュータへの電源供給を遮
断した時から一定時間後にマイクロコンピュータへの電
源供給を再開し、次いでマイクロコンピュータへリセッ
ト信号を供給することを特徴とする請求項1に記載のマ
イクロコンピュータの暴走防止方法。
2. The microcomputer according to claim 1, further comprising supplying a reset signal to the microcomputer after restarting the power supply to the microcomputer after a lapse of a certain time from the time when the power supply to the microcomputer was cut off. How to prevent computer runaway.
【請求項3】 複数の電気機器の運転を制御するための
プログラムを実行するマイクロコンピュータの暴走防止
装置において、マイクロコンピュータは前記プログラム
の実行中にパルス信号を出力する端子を備えると共に、
このパルス信号が所定時間以下の間隔で出力されている
間はマイクロコンピュータへの電源供給を行ない、パル
ス信号が所定時間以内に得られない時にマイクロコンピ
ュータへの電源供給を遮断する電源制御部と、この電源
制御部がマイクロコンピュータへの電源供給を遮断した
時から一定時間後にマイクロコンピュータへの電源供給
を再び開始させる再通電部と、マイクロコンピュータへ
の電源供給の開始から遅れてマイクロコンピュータのリ
セット端子にリセット信号を供給するリセット信号発生
部とを備えたことを特徴とするマイクロコンピュータの
暴走防止装置。
3. A runaway prevention device for a microcomputer that executes a program for controlling the operation of a plurality of electric devices, wherein the microcomputer includes a terminal that outputs a pulse signal during execution of the program,
A power control unit that supplies power to the microcomputer while the pulse signal is being output at intervals of a predetermined time or less, and shuts off power supply to the microcomputer when the pulse signal is not obtained within the predetermined time. A re-energizing unit that restarts the power supply to the microcomputer after a certain period of time from when the power supply control unit cuts off the power supply to the microcomputer, and a reset terminal of the microcomputer after the start of the power supply to the microcomputer. And a reset signal generator that supplies a reset signal to the microcomputer.
JP4083959A 1992-04-06 1992-04-06 Method and device for preventing runaway of microcomputer Pending JPH05289779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4083959A JPH05289779A (en) 1992-04-06 1992-04-06 Method and device for preventing runaway of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4083959A JPH05289779A (en) 1992-04-06 1992-04-06 Method and device for preventing runaway of microcomputer

Publications (1)

Publication Number Publication Date
JPH05289779A true JPH05289779A (en) 1993-11-05

Family

ID=13817108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4083959A Pending JPH05289779A (en) 1992-04-06 1992-04-06 Method and device for preventing runaway of microcomputer

Country Status (1)

Country Link
JP (1) JPH05289779A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1199635A2 (en) * 2000-10-19 2002-04-24 SSD Company Limited Information processing apparatus and memory cartridge system with error detection
US7137036B2 (en) 2002-02-22 2006-11-14 Oki Electric Industry Co., Ltd. Microcontroller having an error detector detecting errors in itself as well

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1199635A2 (en) * 2000-10-19 2002-04-24 SSD Company Limited Information processing apparatus and memory cartridge system with error detection
EP1199635A3 (en) * 2000-10-19 2004-10-27 SSD Company Limited Information processing apparatus and memory cartridge system with error detection
KR100803877B1 (en) * 2000-10-19 2008-02-14 신세다이 가부시끼가이샤 Information processing apparatus and memory cartridge system
US7137036B2 (en) 2002-02-22 2006-11-14 Oki Electric Industry Co., Ltd. Microcontroller having an error detector detecting errors in itself as well

Similar Documents

Publication Publication Date Title
US7378804B2 (en) Ballast for a discharge lamp with integrated control circuit for controlling switching element of dc power supply and inverter circuit
JPS6123203A (en) Engine controller
JPH07200093A (en) Equipment and method for management of electric power of computer system
JP2587044B2 (en) Computer reset device
JPH0686555A (en) Starting for power-supply control integrated circuit and starting method
JPH05289779A (en) Method and device for preventing runaway of microcomputer
JP2004212601A (en) Image forming apparatus
EP0390159B1 (en) Ozone deodorizing device
JP4094827B2 (en) Drive control device
JP2001000001U (en) Idling mechanism for devices with speed controller
JP3551470B2 (en) Power generator
JPH09163634A (en) Power supply system for emergency
JP2001078484A (en) Control circuit of brushless motor
JPH0689709B2 (en) Engine controller
JP3058539B2 (en) Fuel pump control device
JPH0115874Y2 (en)
JP4150946B2 (en) Gas leak alarm
JPH10318077A (en) Piezoelectric element driving device
JPH04154428A (en) Humidification device on vehicle
JP2555459B2 (en) Power control device
JP2000209868A (en) Inverter
JP2002276414A (en) Power generation control device of alternator
JPH0373738B2 (en)
JP2679285B2 (en) Off-delay timer
JP2522315B2 (en) Ignition device for internal combustion engine