JP2699761B2 - Microcomputer external output circuit - Google Patents

Microcomputer external output circuit

Info

Publication number
JP2699761B2
JP2699761B2 JP4082897A JP8289792A JP2699761B2 JP 2699761 B2 JP2699761 B2 JP 2699761B2 JP 4082897 A JP4082897 A JP 4082897A JP 8289792 A JP8289792 A JP 8289792A JP 2699761 B2 JP2699761 B2 JP 2699761B2
Authority
JP
Japan
Prior art keywords
circuit
cpu
output
gate
signal
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 - Fee Related
Application number
JP4082897A
Other languages
Japanese (ja)
Other versions
JPH05250189A (en
Inventor
松吉 加藤
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.)
Takaoka Electric Mfg Co Ltd
Original Assignee
Takaoka Electric Mfg 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 Takaoka Electric Mfg Co Ltd filed Critical Takaoka Electric Mfg Co Ltd
Priority to JP4082897A priority Critical patent/JP2699761B2/en
Publication of JPH05250189A publication Critical patent/JPH05250189A/en
Application granted granted Critical
Publication of JP2699761B2 publication Critical patent/JP2699761B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、CPU(マイクロプロ
セッサ)の暴走時に誤出力を防止するようにしたマイク
ロコンピュータ外部出力回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer external output circuit for preventing an erroneous output during a runaway of a CPU (microprocessor).

【0002】[0002]

【従来の技術】一般にマイクロコンピュータ外部出力回
路はCPUとCPUからの出力信号を保持する保持回路
がバスを介して接続された回路である。
2. Description of the Related Art Generally, a microcomputer external output circuit is a circuit in which a CPU and a holding circuit for holding an output signal from the CPU are connected via a bus.

【0003】一方、CPUが暴走したか否かを監視する
場合にウォッチドッグタイマ回路が使用される。このウ
ォッチドッグタイマ回路は、CPUからあるインターバ
ル時間で信号を出力させ、その信号を監視し、インター
バル時間が所定の基準時間内であるかを判定し、基準時
間以上であればCPUが暴走したと判定し、異常検出信
号を出力するようにしている。
On the other hand, a watchdog timer circuit is used to monitor whether or not the CPU has run away. This watchdog timer circuit causes the CPU to output a signal at a certain interval time, monitors the signal, determines whether the interval time is within a predetermined reference time, and determines that the CPU has runaway if it is longer than the reference time. Judgment is made and an abnormality detection signal is output.

【0004】従来、このウォッチドッグタイマ回路の異
常検出信号はCPUに入力し、CPU暴走時、CPUを
停止させ、CPUからの保持回路への信号出力をしない
ようにし、外部出力回路の誤出力を防止していた。
Conventionally, an abnormality detection signal of this watchdog timer circuit is inputted to a CPU, and when the CPU goes out of control, the CPU is stopped so that a signal is not output from the CPU to a holding circuit, and an erroneous output of an external output circuit is detected. Had been prevented.

【0005】[0005]

【発明が解決しようとする課題】この従来回路において
は、ウォッチドッグタイマ回路の異常検出信号はCPU
に対してのみ出力されていた。このため、CPU暴走
時、CPUを停止することは可能であるが、上記で示し
たウォッチドッグタイマ回路の暴走監視原理から、暴走
を判定するには、所定の基準時間以上の時間が必要であ
り、暴走発生からCPU停止までの間でCPUから保持
回路へ誤った信号が出力された場合、保持回路でその誤
った信号を保持してしまい、CPUを停止したにも関わ
らず、誤出力する可能性があった。
In this conventional circuit, the abnormality detection signal of the watchdog timer circuit is provided by the CPU.
Was output only for For this reason, it is possible to stop the CPU during the runaway of the CPU. However, from the runaway monitoring principle of the watchdog timer circuit described above, a time longer than a predetermined reference time is required to determine runaway. If an erroneous signal is output from the CPU to the holding circuit during the period from the occurrence of the runaway to the stop of the CPU, the erroneous signal may be held by the holding circuit, and the erroneous output may be performed even when the CPU is stopped. There was sex.

【0006】そこで、本発明の目的は、CPU暴走時に
誤った信号をCPUが出力した場合にあっても、その誤
った信号を外部へ出力することを防止するマイクロコン
ピュータ外部出力回路を提供することである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a microcomputer external output circuit for preventing an erroneous signal from being output to the outside even when the CPU outputs an erroneous signal during runaway of the CPU. It is.

【0007】[0007]

【課題を解決するための手段】CPUと該CPUからの
出力信号を保持する保持回路をバスを介して接続する。
該CPUの暴走を監視し、暴走時に異常検出信号を出力
するウォッチドッグタイマ回路の異常検出信号を該CP
Uを停止するために設けられているCPU入力端子に接
続する。
A CPU and a holding circuit for holding an output signal from the CPU are connected via a bus.
The CPU detects the runaway of the CPU and outputs an abnormality detection signal at the time of the runaway.
U is connected to a CPU input terminal provided for stopping.

【0008】上記保持回路の出力側にゲート回路を設
け、上記CPUの暴走時には上記ゲート回路のゲートを
閉じ、それ以外の時には上記ゲート回路のゲートを開く
ように、上記ウォッチドッグタイマ回路の異常検出信号
を上記ゲート回路のゲート制御入力端子に接続する。上
記ゲート回路の出力側に入力信号が所定時間以上継続す
ると出力応答する積分回路を設ける。
A gate circuit is provided on the output side of the holding circuit, and the abnormality of the watchdog timer circuit is detected so that the gate of the gate circuit is closed when the CPU runs out of control and the gate of the gate circuit is opened otherwise. The signal is connected to the gate control input terminal of the gate circuit. An integrating circuit is provided on the output side of the gate circuit to respond when the input signal continues for a predetermined time or more.

【0009】[0009]

【作用】本発明は上記の如く回路を構成することによ
り、CPU暴走時に誤った信号が保持回路に保持された
場合においても、その保持出力はゲート回路のゲートが
閉じられることにより、その後の外部への出力が阻止さ
れ、また、ゲート回路のゲートが閉じるまでの間に保持
回路で保持された誤った出力は積分回路により外部に出
力するのが阻止され、外部への誤出力を防止することが
できる。
According to the present invention, by configuring the circuit as described above, even if an erroneous signal is held in the holding circuit at the time of CPU runaway, the held output is output by closing the gate of the gate circuit, and thereafter the external signal is output. Output to the gate circuit, and erroneous output held by the holding circuit until the gate of the gate circuit closes is prevented from being output to the outside by the integration circuit, thereby preventing erroneous output to the outside. Can be.

【0010】[0010]

【実施例】本発明の実施例を図1に示す。以下、図1に
基づいて説明する。CPU11はマイクロプロセッサバ
スを介して、ROM12、RAM13、タイマ出力回路
14、保持回路15にそれぞれ接続される。ウォッチド
ッグタイマ回路16はCPU11の暴走監視用に設け
る。ウォッチドッグタイマ回路16の入力端子とタイマ
出力回路14の出力端子、ウォッチドッグタイマ回路1
6の異常検出信号出力端子とCPU11を停止するため
に設けられたCPU入力端子とをそれぞれ接続する。
FIG. 1 shows an embodiment of the present invention. Hereinafter, description will be given based on FIG. The CPU 11 is connected to a ROM 12, a RAM 13, a timer output circuit 14, and a holding circuit 15 via a microprocessor bus. The watchdog timer circuit 16 is provided for monitoring runaway of the CPU 11. The input terminal of the watchdog timer circuit 16 and the output terminal of the timer output circuit 14, the watchdog timer circuit 1
6 and a CPU input terminal provided to stop the CPU 11 are connected.

【0011】また、保持回路15の出力側にゲート回路
17を設け、ゲート回路17の入力端子と保持回路15
の出力端子、ゲート回路17のゲート制御入力端子とウ
ォッチドッグタイマ回路16の異常検出信号出力端子と
をそれぞれ接続する。さらに、ゲート回路17の出力側
に積分回路18を設ける。
A gate circuit 17 is provided on the output side of the holding circuit 15, and an input terminal of the gate circuit 17 and the holding circuit 15 are connected.
And the gate control input terminal of the gate circuit 17 and the abnormality detection signal output terminal of the watchdog timer circuit 16 are connected. Further, an integration circuit 18 is provided on the output side of the gate circuit 17.

【0012】ウォッチドッグタイマ回路16によるCP
U11の暴走監視は、CPU11からあるインターバル
時間で信号をマイクロプロセッサバスを介して、タイマ
出力回路14へ出力させ、この信号をウォッチドッグタ
イマ回路16の入力端子へ入力し、インターバル時間が
所定の基準時間内であるかを判定する。その結果、基準
時間以上であればCPU11が暴走したと判定し、ウォ
ッチドッグタイマ回路16の出力端子から異常検出信号
を出力する。
The CP by the watchdog timer circuit 16
In the runaway monitoring of U11, a signal is output from the CPU 11 to the timer output circuit 14 via the microprocessor bus at a certain interval time, and this signal is input to the input terminal of the watchdog timer circuit 16, and the interval time is set to a predetermined reference time. It is determined whether it is within the time. As a result, if the time is equal to or longer than the reference time, the CPU 11 determines that the runaway has occurred, and outputs an abnormality detection signal from the output terminal of the watchdog timer circuit 16.

【0013】このウォッチドッグタイマ回路16からの
異常検出信号は、CPU11の暴走時にはCPU11を
停止するとともにゲート回路17のゲートを閉じ、それ
以外の時にはCPU11を運転するとともにゲート回路
17のゲートを開くように、CPU11の停止用信号、
ゲート回路17のゲート制御用信号として使用する。
The abnormality detection signal from the watchdog timer circuit 16 causes the gate of the gate circuit 17 to be closed and the gate of the gate circuit 17 to be stopped and the gate of the gate circuit 17 to be opened at other times. A signal for stopping the CPU 11;
Used as a gate control signal for the gate circuit 17.

【0014】このように構成することにより、CPU1
1の正常時にはウォッチドッグタイマ回路16から異常
検出信号は出力されず、ゲート回路17のゲートは開か
れ、保持回路15の出力はゲート回路17から出力され
る。また、CPU11の暴走時にはウォッチドッグタイ
マ回路16から異常検出信号が出力され、CPU11を
停止するとともに、ゲート回路17のゲートは閉じ、ウ
ォッチドッグタイマ回路16からの異常検出信号の出力
後には保持回路15の出力はゲート回路17から出力さ
れない。
With this configuration, the CPU 1
When 1 is normal, the abnormality detection signal is not output from the watchdog timer circuit 16, the gate of the gate circuit 17 is opened, and the output of the holding circuit 15 is output from the gate circuit 17. When the CPU 11 runs out of control, an abnormality detection signal is output from the watchdog timer circuit 16 to stop the CPU 11, close the gate of the gate circuit 17, and after outputting the abnormality detection signal from the watchdog timer circuit 16, hold the circuit 15. Is not output from the gate circuit 17.

【0015】また、積分回路18の入力に対する出力の
応答は、入力信号が所定時間以上継続しないと出力はし
ない。その所定時間を積分回路18の入力に対する出力
の応答時間とし、それを基準時間以上に設定する。この
ような積分回路18により、CPU11が暴走してから
ウォッチドッグタイマ回路16から異常検出信号が出力
されるまでの間にCPU11が誤った信号を保持回路1
5に出力し、その誤った信号がゲート回路17から出力
されても、その間の外部への誤出力を阻止する。したが
って、CPU11の暴走時、CPU11が誤った信号を
保持回路15に出力し、保持回路15で保持された場合
においても、ゲート回路17および積分回路18により
外部へ出力するのが阻止され、外部への誤出力を防止す
ることができる。
The response of the output to the input of the integrating circuit 18 does not output unless the input signal continues for a predetermined time or more. The predetermined time is set as the response time of the output with respect to the input of the integration circuit 18, and is set to be equal to or longer than the reference time. Due to the integration circuit 18, the CPU 11 outputs an erroneous signal between the time when the CPU 11 goes out of control and the time when the watchdog timer circuit 16 outputs the abnormality detection signal.
5 and the erroneous signal is output from the gate circuit 17 to prevent erroneous output to the outside during that time. Therefore, when the CPU 11 runs out of control, the CPU 11 outputs an erroneous signal to the holding circuit 15, and even when the CPU 11 holds the signal, the gate circuit 17 and the integrating circuit 18 prevent the signal from being output to the outside. Erroneous output can be prevented.

【0016】なお、積分回路18は容易に実現すること
ができ、その一実施例を図2に示す。図2は積分回路1
8の1回路分を示すもので、それは抵抗器181の一端
を入力端子とし、抵抗器181の他端を一端が接地され
たコンデンサ182の他端、およびコンパレータ183
の入力端に接続して構成する。
The integration circuit 18 can be easily realized, and one embodiment is shown in FIG. FIG. 2 shows an integration circuit 1
8, one end of a resistor 181 is used as an input terminal, the other end of the resistor 181 is connected to the other end of a capacitor 182 having one end grounded, and a comparator 183 is provided.
And is connected to the input terminal of

【0017】[0017]

【発明の効果】以上の通り、本発明により、CPUが暴
走し、誤った信号を出力した場合にあっても、誤出力を
防止することができる。
As described above, according to the present invention, erroneous output can be prevented even when the CPU runs out of control and outputs an erroneous signal.

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

【図1】本発明のマイクロコンピュータ外部出力回路の
構成図である。
FIG. 1 is a configuration diagram of a microcomputer external output circuit of the present invention.

【図2】積分回路の実施例の構成図である。FIG. 2 is a configuration diagram of an embodiment of an integration circuit.

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

11 CPU(マイクロプロセッサ) 15 保持回路 16 ウォッチドッグタイマ回路 17 ゲート回路 18 積分回路 181 抵抗器 182 コンデンサ 183 コンパレータ 11 CPU (microprocessor) 15 holding circuit 16 watchdog timer circuit 17 gate circuit 18 integration circuit 181 resistor 182 capacitor 183 comparator

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 CPUと該CPUからの出力信号を保持
する保持回路がバスを介して接続され、該CPUの暴走
を監視し、暴走時に異常検出信号を出力するウォッチド
ッグタイマ回路の異常検出信号が該CPUを停止するた
めに設けられたCPU入力端子に接続され、上記保持回
路の出力側にゲート回路が設けられ、上記CPUの暴走
時には上記ゲート回路のゲートを閉じ、それ以外の時に
は上記ゲート回路のゲートを開くように、上記ウォッチ
ドッグタイマ回路の異常検出信号を上記ゲート回路のゲ
ート制御入力端子に接続し、上記ゲート回路の出力側に
入力信号が所定時間以上継続すると出力応答する積分回
路を設けたことを特徴とするマイクロコンピュータ外部
出力回路。
1. An abnormality detection signal of a watchdog timer circuit which is connected via a bus to a CPU and a holding circuit for holding an output signal from the CPU, monitors a runaway of the CPU, and outputs an abnormality detection signal at the time of the runaway. Is connected to a CPU input terminal provided for stopping the CPU, a gate circuit is provided on the output side of the holding circuit, and the gate of the gate circuit is closed when the CPU runs out of control; otherwise, the gate is closed. An integrator circuit that connects an abnormality detection signal of the watchdog timer circuit to a gate control input terminal of the gate circuit so as to open a gate of the circuit, and outputs an output when the input signal continues for a predetermined time or more at an output side of the gate circuit. A microcomputer external output circuit comprising:
JP4082897A 1992-03-06 1992-03-06 Microcomputer external output circuit Expired - Fee Related JP2699761B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4082897A JP2699761B2 (en) 1992-03-06 1992-03-06 Microcomputer external output circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4082897A JP2699761B2 (en) 1992-03-06 1992-03-06 Microcomputer external output circuit

Publications (2)

Publication Number Publication Date
JPH05250189A JPH05250189A (en) 1993-09-28
JP2699761B2 true JP2699761B2 (en) 1998-01-19

Family

ID=13787059

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4082897A Expired - Fee Related JP2699761B2 (en) 1992-03-06 1992-03-06 Microcomputer external output circuit

Country Status (1)

Country Link
JP (1) JP2699761B2 (en)

Also Published As

Publication number Publication date
JPH05250189A (en) 1993-09-28

Similar Documents

Publication Publication Date Title
JP3633092B2 (en) Microcomputer failure monitoring device
US5638510A (en) Multiplexed system with watch dog timers
JP2699761B2 (en) Microcomputer external output circuit
US6807477B2 (en) Electronic control system and method having monitor program monitoring function
JPH0218503B2 (en)
JPH02254968A (en) Voltage detection system
JPH04283841A (en) Microcomputer external output circuit
JP2914317B2 (en) Microcomputer
JPH0559452B2 (en)
JPS5833967B2 (en) Microprocessor operation monitoring method
JP2659067B2 (en) Microcomputer reset circuit
JPS58190620A (en) Control device for solenoid valve
JPS63191245A (en) Resetting control system for device being in runaway state
JP2543616B2 (en) Overvoltage protection device
JPH09212201A (en) Control circuit for production facility
JPS62216049A (en) Overload detector for microcomputer
JPH06266648A (en) Data transfer control system
JPH0811670B2 (en) Elevator power supply detection device
JPH05241907A (en) Fault detection circuit
JPS61224047A (en) Overflow warning interruption system
JPH02294220A (en) Cpu automatic reset circuit in microcomputer control
JPH04236637A (en) Microprocessor fault detecting circuit
JPH0887938A (en) Latch relay supervisory device
JPH02130646A (en) Abnormality detecting system for cpu
JPS62198940A (en) Abnormality detecting system for controller using microcomputer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees