JPH0462643A - Detecting circuit for program runaway - Google Patents

Detecting circuit for program runaway

Info

Publication number
JPH0462643A
JPH0462643A JP2174823A JP17482390A JPH0462643A JP H0462643 A JPH0462643 A JP H0462643A JP 2174823 A JP2174823 A JP 2174823A JP 17482390 A JP17482390 A JP 17482390A JP H0462643 A JPH0462643 A JP H0462643A
Authority
JP
Japan
Prior art keywords
signal
circuit
program
cpu
output port
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
JP2174823A
Other languages
Japanese (ja)
Inventor
Ryuichi Wakatsuki
若槻 隆一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Data Terminal Ltd
Original Assignee
NEC Data Terminal 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 NEC Data Terminal Ltd filed Critical NEC Data Terminal Ltd
Priority to JP2174823A priority Critical patent/JPH0462643A/en
Publication of JPH0462643A publication Critical patent/JPH0462643A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To assure the safety of a microcomputer equipment against the damage of a CPU due to the noises and against the runaway of a program by applying a differentiation circuit to a program runaway detecting circuit. CONSTITUTION:A CPU 1 executes cyclically a program which turns on and off an output port and produces a cyclic pulse waveform shown in a waveform diagram to an output port signal 2 received from the CPU 1. A differentiation circuit 3 produces a signal 4 if the signal 2 of the CPU 1 changes to a high level from a low level as shown in the waveform diagram. However the output signal 4 of the circuit 3 is kept at a low level as long as the signal 2 has no change between the high and low levels. A switch 6 of a drive circuit 5 connected to a power supply is kept ON as long as a signal having a waveform which rises cyclically is continuously inputted as the signal 4 sent from the circuit 3. Then the switch 6 is turned off when a fixed time passed after the signal 4 is set at a low level and kept as it is.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロコンピュータを使用した機器におけ
るマイクロコンピュータのプログラム暴走検出回路に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer program runaway detection circuit in equipment using a microcomputer.

〔従来の技術〕[Conventional technology]

従来、この種のプログラム暴走検出回路は、タイマー回
路をプログラムにより周期的にリセットし、プログラム
暴走時にタイマー回路がリセットされない場合にマイク
ロコンピュータを使用した機器の電源をOFFしていた
Conventionally, this type of program runaway detection circuit periodically resets a timer circuit according to a program, and if the timer circuit is not reset at the time of program runaway, the power of a device using a microcomputer is turned off.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプログラム暴走検出回路は、プログラム
にてタイマー動作の設定及びコントロールを行なう為、
外部からのノイズによりタイマー動作の設定が正常でな
くなる場合が生じる。このような時は、プログラムが暴
走してもタイマーが正常に動作しないから暴走検出が出
来ないという欠点がある。
In the conventional program runaway detection circuit described above, the timer operation is set and controlled by the program.
External noise may cause the timer operation settings to become incorrect. In such a case, there is a drawback that even if the program runs out of control, the timer does not operate normally, so runaway cannot be detected.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプログラム暴走検出回路は、プログラムにより
周期的に出力電圧を変化する出力ポートと、この出力ポ
ートの出力電圧を微分する微分回路と、この微分回路の
出力電圧が変化しない時は一定時間後に電源を切断する
駆動回路を有している。
The program runaway detection circuit of the present invention includes an output port that changes the output voltage periodically according to the program, a differentiator that differentiates the output voltage of this output port, and a differential circuit that differentiates the output voltage of this output port after a certain period of time when the output voltage of the differentiator does not change. It has a drive circuit that cuts off the power.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図である。CPU
 (プログラム実行部)1の出力ポートに微分回路3の
入力側を接続し、微分回路3の出力側を駆動回路5の入
力側に接続し駆動回路5の中にあるスイッチ6の一方に
電源入力を接続し、他方に電源出力を接続したものであ
る。
FIG. 1 is a block diagram of one embodiment of the present invention. CPU
(Program execution unit) Connect the input side of the differentiating circuit 3 to the output port of 1, connect the output side of the differentiating circuit 3 to the input side of the drive circuit 5, and input power to one side of the switch 6 in the drive circuit 5. and the power output is connected to the other.

本実施例において、CPUIは出力ポートを0N−OF
Fするプログラムを周期的に実行して、CPUIからの
出力ポート信号2に第2図に示す周期的なパルス波形を
作り出す。
In this embodiment, the CPUI sets the output port to 0N-OF.
The program F is executed periodically to create the periodic pulse waveform shown in FIG. 2 in the output port signal 2 from the CPUI.

微分回路3はCPUIの出力ポート信号2が第2図に示
す波形のようにLOWレベルからHIGHレベルへの変
化があれば、第2図に示す波形の信号4を発生するが、
出力ポート信号2にLOWレベルからHIGHレベルへ
の変化が無ければ微分回路3の出力信号4は、LOWレ
ベルのまま変化しない。
The differentiating circuit 3 generates a signal 4 having the waveform shown in FIG. 2 when the output port signal 2 of the CPU changes from a LOW level to a HIGH level as shown in the waveform shown in FIG.
If the output port signal 2 does not change from the LOW level to the HIGH level, the output signal 4 of the differentiating circuit 3 remains at the LOW level and does not change.

駆動回路5は微分回路3から送られて来る信号4として
第2図に示すように周期的に立ち上がる波形の信号が入
力され続けていれば電源に接続するスイッチ6はON状
態のままかわらないが、微分回路3からの信号4がLO
Wレベルのままであれば、LOWレベルになってから一
定時間後に駆動回路5のスイッチ6を切断するものであ
る。
If the drive circuit 5 continues to receive a signal 4 sent from the differentiating circuit 3 with a waveform that periodically rises as shown in FIG. 2, the switch 6 connected to the power source will remain in the ON state. , signal 4 from differentiator circuit 3 is LO
If it remains at the W level, the switch 6 of the drive circuit 5 is cut off after a certain period of time after it becomes the LOW level.

プログラム暴走時において、CPU1は出力ポートをO
N@OFFするプログラムを実行しないから、CPU1
の出力ポート信号2には第2図に示す波形は出力されな
い。この為、微分回路3に入力される波形はLOWレベ
ルからHIGHレベルへの変化が無くなり微分回路3の
出力は、LOWレベルのまま変化しない。よって駆動回
路5に入力される信号4はLOWレベルのままであり、
駆動回路5はスイッチ6により電源を断する。
When the program runs out of control, CPU1 turns the output port OFF.
Since the program that turns N@OFF is not executed, CPU1
The waveform shown in FIG. 2 is not output to the output port signal 2 of . Therefore, the waveform input to the differentiating circuit 3 does not change from the LOW level to the HIGH level, and the output of the differentiating circuit 3 remains at the LOW level. Therefore, the signal 4 input to the drive circuit 5 remains at LOW level,
The drive circuit 5 turns off the power by the switch 6.

CPUIでプログラムが暴走してなければ、出力ポート
信号2、微分回路3の信号4には第2図に示す波形の信
号が出力されスイッチ6はON状態で、電源は入力され
続ける。
If the program does not run out of control on the CPU, a signal having the waveform shown in FIG. 2 is output to the output port signal 2 and the signal 4 of the differentiating circuit 3, the switch 6 is in the ON state, and the power continues to be input.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、プログラム暴走検出回路
に微分回路を使用する事により、ノイズによるCPUの
破損、及びプログラムの暴走に対してマイクロコンピュ
ータ機器の安全を保証できる効果がある。
As explained above, the present invention has the effect of guaranteeing the safety of microcomputer equipment against CPU damage due to noise and program runaway by using a differentiating circuit in the program runaway detection circuit.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図の出力ポート信号2と微分回路3からの信号4の波形
を示した波形図である。 1・・・CPU (プログラム実行部)、2・・・CP
U出力ボート信号、3・・・微分回路、4・・・微分回
路出力信号、5・・・駆動回路、6・・・電源スィッチ
。 第
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 2 is a waveform diagram showing the waveforms of the output port signal 2 and the signal 4 from the differentiating circuit 3 shown in the figure. 1...CPU (program execution unit), 2...CP
U output boat signal, 3... Differential circuit, 4... Differential circuit output signal, 5... Drive circuit, 6... Power switch. No.

Claims (1)

【特許請求の範囲】[Claims] プログラムにより周期的に出力電圧を変化する出力ポー
トと、この出力ポートの出力電圧を微分する微分回路と
、この微分回路の出力電圧が変化しない時は一定時間後
に電源を切断する駆動回路を有することを特徴とするプ
ログラム暴走検出回路。
It has an output port that periodically changes the output voltage according to a program, a differentiation circuit that differentiates the output voltage of this output port, and a drive circuit that turns off the power after a certain period of time when the output voltage of this differentiation circuit does not change. A program runaway detection circuit featuring:
JP2174823A 1990-07-02 1990-07-02 Detecting circuit for program runaway Pending JPH0462643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2174823A JPH0462643A (en) 1990-07-02 1990-07-02 Detecting circuit for program runaway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2174823A JPH0462643A (en) 1990-07-02 1990-07-02 Detecting circuit for program runaway

Publications (1)

Publication Number Publication Date
JPH0462643A true JPH0462643A (en) 1992-02-27

Family

ID=15985290

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2174823A Pending JPH0462643A (en) 1990-07-02 1990-07-02 Detecting circuit for program runaway

Country Status (1)

Country Link
JP (1) JPH0462643A (en)

Similar Documents

Publication Publication Date Title
US4405982A (en) Arrangement for monitoring the function of a programmable electronic switching circuit
US4903193A (en) Runaway detecting system for CPU
JPS5743596A (en) Drive control device for pulse motor
JPH0462643A (en) Detecting circuit for program runaway
JPS61232944A (en) Watch dog timer of computer controlling system carried on car
JPH07152460A (en) Voltage detection reset circuit
JPH04152437A (en) Detecting circuit for cpu runaway
JPH05122968A (en) Controller for motor
JPH0418044Y2 (en)
JPS63123138A (en) Detection circuit for out-of-control of microcomputer
JPS61273198A (en) Starting method of inverter
JPS6167145A (en) Safety circuit of microcomputer
JPH0358242A (en) Program runaway detection circuit
JPH02112038A (en) Reset signal generation circuit
JPS58172761A (en) Watchdog circuit
JPS62131756A (en) Triac controller
JPS60123939A (en) Supervision controlling system of data processor
JPH0764675A (en) Reset circuit for microcomputer
JPH04151706A (en) Cpu reset circuit
JPS63147242A (en) Watchdog timer
JPH0495141A (en) Microcomputer monitoring method by watchdog timer
JPH0950390A (en) Microcomputer controller
JPH01216626A (en) Pulse count circuit
JPS62182943A (en) Watchdog timer circuit
JPS62198940A (en) Abnormality detecting system for controller using microcomputer