JPH04283841A - Microcomputer external output circuit - Google Patents

Microcomputer external output circuit

Info

Publication number
JPH04283841A
JPH04283841A JP3072067A JP7206791A JPH04283841A JP H04283841 A JPH04283841 A JP H04283841A JP 3072067 A JP3072067 A JP 3072067A JP 7206791 A JP7206791 A JP 7206791A JP H04283841 A JPH04283841 A JP H04283841A
Authority
JP
Japan
Prior art keywords
circuit
cpu
gate
output
abnormality detection
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
JP3072067A
Other languages
Japanese (ja)
Inventor
Matsukichi Kato
松吉 加藤
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 Toko 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 JP3072067A priority Critical patent/JPH04283841A/en
Publication of JPH04283841A publication Critical patent/JPH04283841A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent erroneous output in the case of the runaway of a microprocessor by the microcomputer external output circuit. CONSTITUTION:A microprocessor(CPU) 11 and a holding circuit 15 which holds the output signal from the CPU 11 are connected through a bus. The abnormality detection signal of a watchdog timer circuit 16 which monitors the runaway of the CPU 11 and outputs an abnormality detection signal in case of the runaway is connected to a CPU input terminal provided so as to stop the CPU 11. A gate circuit 17 is provided on the output side of the holding circuit 15. The output of the holding circuit 15 is connected to the input terminal of the gate circuit 17 and the abnormality detection signal of the watchdog timer circuit 16 is connected to the gate control input terminal of the gate circuit 17 so that the gate circuit 17 is closed when the CPU 11 runs away and opened when not.

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 which prevents erroneous output when a CPU (microprocessor) runs out of control.

【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 the CPU has runaway. This watchdog timer circuit outputs a signal from the CPU 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 gone out of control if it is longer than the reference time. It makes a judgment and outputs an abnormality detection signal.

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

【0005】[0005]

【発明が解決しようとする課題】この従来回路において
は、ウォッチドッグタイマ回路の異常検出信号はCPU
に対してのみ出力されていた。このため、CPU暴走時
、CPUを停止することは可能であるが、上記で示した
ウォッチドッグタイマ回路の暴走監視原理から、暴走を
判定するには、インターバル時間以上の時間が必要であ
り、暴走発生からCPU停止までの間でCPUから保持
回路へ誤った信号が出力され、保持回路でその信号を保
持してしまい、CPU停止時に誤出力の可能性があった
[Problems to be Solved by the Invention] In this conventional circuit, the abnormality detection signal of the watchdog timer circuit is
It was output only for Therefore, when the CPU runs out of control, it is possible to stop the CPU, but based on the runaway monitoring principle of the watchdog timer circuit shown above, it takes more than the interval time to determine runaway. An erroneous signal is output from the CPU to the holding circuit between the occurrence of the error and the CPU stopping, and the holding circuit holds the signal, which may lead to an erroneous output when the CPU stops.

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

【0007】[0007]

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

【0008】上記保持回路の出力側にゲート回路を設け
、上記CPUの暴走時には上記ゲート回路のゲートを閉
じ、それ以外の時には上記ゲート回路のゲートを開くよ
うに、上記ウォッチドッグタイマ回路の異常検出信号を
上記ゲート回路のゲート制御入力端子に接続する。
A gate circuit is provided on the output side of the holding circuit, and abnormality detection of the watchdog timer circuit is performed 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 at other times. A signal is connected to a gate control input terminal of the gate circuit.

【0009】[0009]

【作用】本発明は上記の如く回路を構成することにより
、CPU暴走時に誤った信号が保持回路に保持された場
合においても、その保持出力はゲート回路のゲートが閉
じられることによって外部に出力するのが阻止され、外
部への誤出力を防止することができる。
[Operation] By configuring the circuit as described above, the present invention allows even if an erroneous signal is held in the holding circuit during CPU runaway, the held output is outputted to the outside by closing the gate of the gate circuit. This prevents erroneous output to the outside.

【0010】0010

【実施例】本発明の実施例を図1に示す。以下、図1に
基づいて説明する。CPU11はマイクロプロセッサバ
スを介して、ROM12、RAM13、タイマ出力回路
14、保持回路15にそれぞれ接続される。ウォッチド
ッグタイマ回路16はCPU11の暴走監視用に設ける
。ウォッチドッグタイマ回路16の入力端子とタイマ出
力回路14の出力端子、ウォッチドッグタイマ回路16
の異常検出信号出力端子とCPU11を停止するために
設けられたCPU入力端子とをそれぞれ接続する。
[Embodiment] An embodiment of the present invention is shown in FIG. This will be explained below 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, respectively, via a microprocessor bus. A 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 16
The abnormality detection signal output terminal of the CPU 11 is connected to a CPU input terminal provided for stopping the CPU 11, respectively.

【0011】また、保持回路15の出力側にゲート回路
17を設け、ゲート回路17の入力端子と保持回路15
の出力端子、ゲート回路17のゲート制御入力端子とウ
ォッチドッグタイマ回路16の異常検出信号出力端子と
をそれぞれ接続する。
Furthermore, a gate circuit 17 is provided on the output side of the holding circuit 15, and the input terminal of the gate circuit 17 and the holding circuit 15 are connected to each other.
, 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, respectively.

【0012】ウオッチドッグタイマ回路16によるCP
U11の暴走監視は、CPU11からあるインターバル
時間で信号をマイクロプロセッサバスを介して、タイマ
出力回路14から出力させ、この信号をウオッチドッグ
タイマ回路16の入力端子へ入力し、インターバル時間
が所定の基準時間内であるかを判定する。その結果、基
準時間以上であればCPU11が暴走したと判定し、ウ
オッチドッグタイマ回路16の出力端子から異常検出信
号を出力するようにしている。
CP by watchdog timer circuit 16
To monitor runaway of U11, a signal is output from the timer output circuit 14 via the microprocessor bus from the CPU 11 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 standard. Determine whether the time is within. As a result, if the reference time is exceeded, it is determined that the CPU 11 has runaway, and an abnormality detection signal is output 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 is used to stop the CPU 11 and close the gate of the gate circuit 17 when the CPU 11 runs out of control, and to operate the CPU 11 and open the gate of the gate circuit 17 at other times. , a stop signal for the CPU 11,
It is used as a gate control signal for the gate circuit 17.

【0014】このように構成することにより、CPU1
1の正常時にはウォッチドッグタイマ回路16から異常
検出信号は出力されず、ゲート回路17のゲートは開か
れ、保持回路15の出力はゲート回路17から出力され
る。また、CPU11の暴走時にはウォッチドッグタイ
マ回路16から異常検出信号が出力され、CPU11を
停止するとともに、ゲート回路17のゲートは閉じ、保
持回路15の出力はゲート回路17から出力されない。
[0014] With this configuration, the CPU 1
1, no abnormality detection signal is 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. Further, 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, and the gate of the gate circuit 17 is closed, so that the output of the holding circuit 15 is not output from the gate circuit 17.

【0015】したがって、CPU11の暴走時、CPU
11が誤った信号を保持回路15に出力し、保持回路1
5で保持された場合においても、ゲート回路17により
誤出力を防止することができる。
Therefore, when the CPU 11 goes out of control, the CPU
11 outputs an incorrect signal to the holding circuit 15, and the holding circuit 1
Even when the voltage is held at 5, the gate circuit 17 can prevent erroneous output.

【0016】[0016]

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

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

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

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

11  CPU(マイクロプロセッサ)15  保持回
路 16  ウォッチドッグタイマ回路 17  ゲート回路
11 CPU (microprocessor) 15 Holding circuit 16 Watchdog timer circuit 17 Gate circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  CPUと該CPUからの出力信号を保
持する保持回路がバスを介して接続され、該CPUの暴
走を監視し、暴走時に異常検出信号を出力するウォッチ
ドッグタイマ回路の異常検出信号が該CPUを停止する
ために設けられたCPU入力端子に接続され、上記保持
回路の出力側にゲート回路が設けられ、上記CPUの暴
走時には上記ゲート回路のゲートを閉じ、それ以外の時
には上記ゲート回路のゲートを開くように、上記ウォッ
チドッグタイマ回路の異常検出信号を上記ゲート回路の
ゲート制御入力端子に接続したことを特徴とするマイク
ロコンピュータ外部出力回路。
1. An abnormality detection signal of a watchdog timer circuit that connects a CPU and a holding circuit that holds an output signal from the CPU via a bus, monitors runaway of the CPU, and outputs an abnormality detection signal when the CPU runs out of control. is connected to a CPU input terminal provided to stop the CPU, and a gate circuit is provided on the output side of the holding circuit, and when the CPU runs out of control, the gate of the gate circuit is closed, and at other times, the gate is closed. A microcomputer external output circuit characterized in that an abnormality detection signal of the watchdog timer circuit is connected to a gate control input terminal of the gate circuit so as to open a gate of the circuit.
JP3072067A 1991-03-13 1991-03-13 Microcomputer external output circuit Pending JPH04283841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3072067A JPH04283841A (en) 1991-03-13 1991-03-13 Microcomputer external output circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3072067A JPH04283841A (en) 1991-03-13 1991-03-13 Microcomputer external output circuit

Publications (1)

Publication Number Publication Date
JPH04283841A true JPH04283841A (en) 1992-10-08

Family

ID=13478683

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3072067A Pending JPH04283841A (en) 1991-03-13 1991-03-13 Microcomputer external output circuit

Country Status (1)

Country Link
JP (1) JPH04283841A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9519337B2 (en) 2013-10-09 2016-12-13 Denso Corporation Circuitry for controlling an output from an electronic control unit including two processors mutually monitoring each other

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6155746B2 (en) * 1978-08-23 1986-11-28 Sanyo Electric Co

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6155746B2 (en) * 1978-08-23 1986-11-28 Sanyo Electric Co

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9519337B2 (en) 2013-10-09 2016-12-13 Denso Corporation Circuitry for controlling an output from an electronic control unit including two processors mutually monitoring each other

Similar Documents

Publication Publication Date Title
JPH04160438A (en) Semiconductor device
JPH04283841A (en) Microcomputer external output circuit
JP2699761B2 (en) Microcomputer external output circuit
JPH02254968A (en) Voltage detection system
JPH0439707A (en) Emergency stop device for numerical controller
JPH0271301A (en) Controller
JPS61224047A (en) Overflow warning interruption system
JPH0534005Y2 (en)
JPH0395636A (en) Diagnostic system for fail-safe circuit
JPS5833967B2 (en) Microprocessor operation monitoring method
JPH0426914Y2 (en)
JPS6455688A (en) Card device
JPH04105151A (en) Input/output controller
JPS6389901A (en) Control circuit for programmable controller
JPS57199056A (en) Execution and monitoring device for control program
JPS6395514A (en) Power supply switch controller
JPH0335341A (en) Status signal detector
JPS6327930A (en) Interruption control circuit
JPH0887938A (en) Latch relay supervisory device
JPS60189037A (en) Special unit of programmable controller
JPS6349855A (en) Detecting device for interruption cycle abnormality of cpu
JPH01314302A (en) Cpu control system
JPS6059447A (en) Microcomputer system
JPS6250841B2 (en)
JPH04372539A (en) Power interruption controller of terminal equipment