JPH0784813A - Cpu malfunction preventing circuit - Google Patents

Cpu malfunction preventing circuit

Info

Publication number
JPH0784813A
JPH0784813A JP5233243A JP23324393A JPH0784813A JP H0784813 A JPH0784813 A JP H0784813A JP 5233243 A JP5233243 A JP 5233243A JP 23324393 A JP23324393 A JP 23324393A JP H0784813 A JPH0784813 A JP H0784813A
Authority
JP
Japan
Prior art keywords
cpu
memory
circuit
runaway
data
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
JP5233243A
Other languages
Japanese (ja)
Inventor
Yojiro Ozaki
陽二郎 尾崎
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP5233243A priority Critical patent/JPH0784813A/en
Publication of JPH0784813A publication Critical patent/JPH0784813A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent malfunction in a period from a CPU runaway to the detection of the runaway by a watchdog timer. CONSTITUTION:A memory 5 (FIFO) is provided between an OUT port 3 and a CPU circuit 1 and data and address information are temporarily stored in the memory 5; after normal CPU operation is confirmed by resetting the watchdog timer, the data and address information are read out of the memory by H/W and the data are outputted to a desired port. Even in case of the CPU runaway, only normal data are always outputted and a system with high reliability is constituted.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はCPUを用いた制御回
路の誤動作防止回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a malfunction prevention circuit for a control circuit using a CPU.

【0002】[0002]

【従来の技術】[Prior art]

従来例1.従来の誤制御防止回路は、図4で示すように
1のCPU回路、2のウォッチドッグタイマと、3のO
UTポートと、4のチップ・セレクト回路から構成され
る。
Conventional example 1. As shown in FIG. 4, the conventional erroneous control prevention circuit includes a CPU circuit 1; a watchdog timer 2;
It consists of a UT port and 4 chip select circuits.

【0003】次に動作について説明する。CPUのプロ
グラムが暴走すると、ウォッチドッグタイマ等の暴走検
出回路2により検出され、OUTポート3の出力をイン
ヒビットし、暴走が検出されてから後のOUTポート3
へのデータ出力を禁止する。
Next, the operation will be described. When the program of the CPU runs out of control, it is detected by the runaway detection circuit 2 such as a watchdog timer, the output of the OUT port 3 is inhibited, and the OUT port 3 after the runaway is detected.
Data output to

【0004】従来例2.図5は、特開平2−41539
号「CPU誤制御防止回路」公報に示された従来の誤制
御防止回路の構成を示すブロック図である。図におい
て、10はCPU、11はプログラムを格納した不揮発
性記憶部、12は各種データを保持する半導体メモリ
部、13は端末の電源制御等を行なう外部に対する信号
制御部、14は暴走監視タイマ部、15は書き込み禁止
制御回路である。CPUプログラムが暴走すると、暴走
監視タイマ部14による暴走検出以前に、書き込み禁止
制御回路15により、バス情報を検出し、CPUが予め
規定された手順に従った書き込みを行なわない場合、ま
たは、所定のアドレス以外のアドレスをアクセスした場
合に、半導体メモリ部12と外部に対する信号制御部1
3への書き込み禁止制御が行なわれる。
Conventional example 2. FIG. 5 is a schematic view of JP-A-2-41539.
FIG. 11 is a block diagram showing a configuration of a conventional erroneous control prevention circuit disclosed in Japanese Patent No. “CPU erroneous control prevention circuit”. In the figure, 10 is a CPU, 11 is a non-volatile storage unit that stores programs, 12 is a semiconductor memory unit that holds various data, 13 is an external signal control unit that controls power supply of a terminal, and 14 is a runaway monitoring timer unit. , 15 are write inhibit control circuits. When the CPU program runs out of control, the write prohibition control circuit 15 detects the bus information before the runaway monitoring timer unit 14 detects the runaway, and when the CPU does not write according to a predetermined procedure, or a predetermined When an address other than the address is accessed, the semiconductor memory unit 12 and the signal control unit 1 for the outside
Write-inhibit control to 3 is performed.

【0005】[0005]

【発明が解決しようとする課題】従来例1のCPU誤制
御防止回路は以上のように構成されているので、CPU
が暴走してから、ウォッチドッグタイマにより暴走が検
出されるまでの間に、OUTポートへ誤ったデータが出
力されると、システムが誤制御される可能性があった。
また、従来例2のCPU誤制御防止回路においては、書
き込み禁止制御回路により規定手順により書き込みが行
なわれているかどうかが監視され、S/Wプログラミン
グは、その制御を考慮して、設計する必要があり、ま
た、書き込み禁止制御回路は、複雑な構成を必要とする
という問題点があった。この発明は上記のような問題点
を解消するためになされたもので、CPU暴走時のデー
タによる検出までの時間の誤動作を防ぐとともに、S/
Wのプログラミングが、CPU誤動作防止回路の制御を
意識しないで設計できる回路を得ることを目的とする。
Since the CPU erroneous control prevention circuit of Conventional Example 1 is constructed as described above, the CPU
If erroneous data is output to the OUT port between the time the runaway occurs and the runaway is detected by the watchdog timer, the system may be erroneously controlled.
Further, in the CPU erroneous control prevention circuit of Conventional Example 2, whether or not writing is being performed by the write prohibition control circuit according to a prescribed procedure is monitored, and S / W programming needs to be designed in consideration of the control. In addition, the write inhibit control circuit has a problem that it requires a complicated configuration. The present invention has been made to solve the above problems, and prevents malfunction of the time until detection by data during CPU runaway, and
The programming of W aims at obtaining a circuit which can be designed without considering the control of the CPU malfunction prevention circuit.

【0006】[0006]

【課題を解決するための手段】この発明に係る誤動作防
止回路は、例えばOUTポートへ出力されるデータを一
旦、メモリへ格納し、CPUが暴走していないことを確
認した後、出力するものであり、以下の要素を有するも
のである。 (a)CPUから出力される情報を記憶するメモリ、
(b)所定の時間毎にCPUの暴走を検出し、CPUの
正常動作を監視するCPU暴走検出回路、(c)上記C
PU暴走検出回路によりCPUの正常動作が確認される
毎に、上記メモリに記憶した情報をCPUからの情報と
して出力するメモリ制御回路。
A malfunction prevention circuit according to the present invention temporarily stores, for example, data output to an OUT port in a memory, confirms that a CPU is not running out, and then outputs the data. Yes, and has the following elements. (A) A memory for storing information output from the CPU,
(B) CPU runaway detection circuit that detects CPU runaway at predetermined time intervals and monitors the normal operation of the CPU, (c) C above
A memory control circuit that outputs the information stored in the memory as information from the CPU each time the PU runaway detection circuit confirms normal operation of the CPU.

【0007】[0007]

【作用】この発明におけるCPU誤動作防止回路は、C
PUから出力される情報を、メモリへ蓄積し、ウォッチ
ドッグタイマのリセットすなわちCPU暴走検出回路か
ら正常動作の確認がなされる毎に、格納した情報を出力
することで、常に正常なデータが出力される。更にメモ
リに例えば、FIFOを使用することで、簡易な回路が
構成できる。
The CPU malfunction prevention circuit according to the present invention is C
The information output from the PU is stored in the memory, and the stored information is output every time the watchdog timer is reset, that is, the CPU runaway detection circuit confirms normal operation, so that normal data is always output. It Furthermore, a simple circuit can be configured by using, for example, a FIFO for the memory.

【0008】[0008]

【実施例】【Example】

実施例1.以下、この発明の一実施例を図1について説
明する。図1において、1はCPU回路、2はウォッチ
ドッグタイマ、3はOUTポート、4はチップセレクト
回路、5はメモリ(FIFO)、6はメモリ制御回路で
ある。
Example 1. An embodiment of the present invention will be described below with reference to FIG. In FIG. 1, 1 is a CPU circuit, 2 is a watchdog timer, 3 is an OUT port, 4 is a chip select circuit, 5 is a memory (FIFO), and 6 is a memory control circuit.

【0009】次に動作について説明する。CPU回路1
から出力されたデータ情報及びアドレス情報はメモリ
(FIFO)5へ格納されていく。同時にCPU回路1
からは、ウォッチドッグタイマ2にリセット信号が出力
される。1つのリセット信号から次のリセット信号まで
が、一定のタイミングであることにより、ウォッチドッ
グタイマ2はCPU回路1が正しく作動していることを
認識する。CPU回路1が正しく作動しているというこ
とは暴走していないことと同義である。その間、メモリ
(FIFO)5には、データ情報及びアドレス情報が蓄
積され続けている。ウォッチドッグタイマ2は、CPU
回路1から一定のタイミングでリセット信号を受ける
と、書き込みリセット信号をメモリ(FIFO)5及び
メモリ制御回路6に出力する。このリセット信号によ
り、メモリ(FIFO)5の書き込みにリセットがかか
り、同時に蓄積された情報が出力される。出力されたデ
ータはOUTポート3へ、アドレスはチップセレクト回
路4へ入力され、所望のポートへ、データが出力され
る。
Next, the operation will be described. CPU circuit 1
The data information and the address information output from the are stored in the memory (FIFO) 5. At the same time CPU circuit 1
From, a reset signal is output to the watchdog timer 2. Since the timing from one reset signal to the next reset signal is constant, the watchdog timer 2 recognizes that the CPU circuit 1 is operating properly. Correct operation of the CPU circuit 1 is synonymous with no runaway. Meanwhile, the memory (FIFO) 5 continues to accumulate data information and address information. Watchdog timer 2 is CPU
When the reset signal is received from the circuit 1 at a constant timing, the write reset signal is output to the memory (FIFO) 5 and the memory control circuit 6. This reset signal resets the writing of the memory (FIFO) 5, and simultaneously outputs the accumulated information. The output data is input to the OUT port 3 and the address is input to the chip select circuit 4, and the data is output to the desired port.

【0010】また、ウォッチドッグタイマ2は、一定の
タイミングでCPU回路1からのリセット信号を受けな
い場合、インヒビット信号を出力しデータ情報及びアド
レス情報がOUTポート3、チップセレクト回路4へ入
力されないようにすることで暴走時の正常でないデータ
の出力を防止する。以上より、データは常にウォッチド
ッグタイマ2のリセットにより正常動作が確認された後
に出力されるため、暴走時からの出力は全てインヒビッ
トがかかり誤制御を防止できる。また、FIFOの読み
出しはウォッチドッグタイマ2のリセット直後に行なう
ことで、書き込み、読み出しの競合は起こらず、H/W
制御を全く意識しないS/Wのプログラミングが可能と
なる。以上の様に、実施例1では、CPUで制御を行な
うシステムにおいて、CPUから発出されるデータ情報
およびアドレス情報を格納するメモリ(FIFO)と、
メモリを制御するメモリ制御回路と、OUTポートと、
そのポートをセレクトするチップセレクト回路と、CP
U暴走検出回路(ウォッチドッグタイマ)と、CPU回
路から構成され、CPU暴走時の誤動作をH/Wにより
防止し、しかもプログラミング上、S/Wでは何の制御
も必要としないCPU誤動作防止回路について説明し
た。
Further, when the watchdog timer 2 does not receive the reset signal from the CPU circuit 1 at a constant timing, it outputs an inhibit signal so that the data information and the address information are not inputted to the OUT port 3 and the chip select circuit 4. By setting, the output of abnormal data during runaway is prevented. As described above, since the data is always output after the normal operation is confirmed by the reset of the watchdog timer 2, all outputs from the runaway are inhibited, and erroneous control can be prevented. In addition, since the FIFO is read immediately after the watchdog timer 2 is reset, there is no conflict between writing and reading, and the H / W
It is possible to program S / W without any control. As described above, in the first embodiment, in the system controlled by the CPU, the memory (FIFO) for storing the data information and the address information issued from the CPU,
A memory control circuit for controlling the memory, an OUT port,
Chip select circuit that selects that port and CP
A CPU malfunction prevention circuit that is composed of a U runaway detection circuit (watchdog timer) and a CPU circuit that prevents malfunctions due to CPU runaway by H / W, and does not require any control in programming due to S / W explained.

【0011】実施例2.また、実施例1では、OUTポ
ートへの出力について制御を行なったが、OUTポート
は、図2に示す様に、メモリであってもよく、常に正常
なデータが書き込まれ、実施例1と同様な効果を奏す
る。
Embodiment 2. Further, in the first embodiment, the output to the OUT port is controlled, but the OUT port may be a memory as shown in FIG. 2, and normal data is always written. Has a great effect.

【0012】実施例3.図3は、実施例3の構成を示す
ブロック図であり、OUTポートへの出力を、OUTポ
ートとメモリを混在する形にしている。実施例1,実施
例2同様CPUから出力される情報が、書き込まれる。
Embodiment 3. FIG. 3 is a block diagram showing the configuration of the third embodiment, in which the output to the OUT port is such that the OUT port and the memory are mixed. Information output from the CPU is written as in the first and second embodiments.

【0013】実施例4.実施例1では、メモリにFIF
Oを用いる方法を例示したが、FIFOに限らず、優先
順位の高い順に、データ及びアドレスを出力する様にし
てもよい。その場合にも、正常動作が確認される毎に、
情報をメモリから出力すれば、暴走が検出されてから、
暴走時のデータによる誤動作を防ぐことができる。
Embodiment 4. In the first embodiment, the memory has a FIF.
Although the method using O is illustrated, the data and address may be output in order of higher priority, not limited to the FIFO. Even in that case, every time normal operation is confirmed,
If you output information from memory, after a runaway is detected,
It is possible to prevent malfunction due to data during runaway.

【0014】[0014]

【発明の効果】以上のように、この発明によれば、制御
を考慮したS/Wプログラムの設計や、複雑な構成の書
き込み禁止制御回路を必要とせずに、CPU暴走からそ
の検出までの間にCPU暴走後の誤ったデータが出力さ
れることを防止し、常に正しいデータのみを出力する誤
動作防止機能が達成でき、システムの信頼性を向上させ
ることができる。
As described above, according to the present invention, there is no need to design a S / W program in consideration of control or a write-inhibit control circuit having a complicated structure, and from the CPU runaway to its detection. In addition, it is possible to prevent erroneous data from being output after CPU runaway, and to achieve a malfunction prevention function of always outputting only correct data, thereby improving system reliability.

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

【図1】この発明の実施例によるCPU誤動作防止回路
の構成をあらわすブロック図である。
FIG. 1 is a block diagram showing a configuration of a CPU malfunction prevention circuit according to an embodiment of the present invention.

【図2】実施例2によるCPU誤動作防止回路の構成を
あらわすブロック図である。
FIG. 2 is a block diagram showing a configuration of a CPU malfunction prevention circuit according to a second embodiment.

【図3】実施例3によるCPU誤動作防止回路の構成を
あらわすブロック図である。
FIG. 3 is a block diagram showing a configuration of a CPU malfunction prevention circuit according to a third embodiment.

【図4】従来例1のCPU誤制御防止回路の構成をあら
わすブロック図である。
FIG. 4 is a block diagram showing a configuration of a CPU erroneous control prevention circuit of Conventional Example 1.

【図5】従来例2のCPU誤制御防止回路の構成をあら
わすブロック図である。
FIG. 5 is a block diagram showing a configuration of a CPU erroneous control prevention circuit of Conventional Example 2.

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

1 CPU回路 2 ウォッチドッグタイマ 3 OUTポート 4 チップセレクト回路 5 メモリ(FIFO) 6 メモリ制御回路 1 CPU circuit 2 Watchdog timer 3 OUT port 4 Chip select circuit 5 Memory (FIFO) 6 Memory control circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 以下の要素を有するCPU誤動作防止回
路 (a)CPUから出力される情報を記憶するメモリ、
(b)所定の時間毎にCPUの暴走を検出し、CPUの
正常動作を監視するCPU暴走検出回路、(c)上記C
PU暴走検出回路によりCPUの正常動作が確認される
毎に、上記メモリに記憶した情報をCPUからの情報と
して出力するメモリ制御回路。
1. A CPU malfunction prevention circuit having: (a) a memory for storing information output from the CPU;
(B) CPU runaway detection circuit that detects CPU runaway at predetermined time intervals and monitors the normal operation of the CPU, (c) C above
A memory control circuit that outputs the information stored in the memory as information from the CPU each time the PU runaway detection circuit confirms normal operation of the CPU.
JP5233243A 1993-09-20 1993-09-20 Cpu malfunction preventing circuit Pending JPH0784813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5233243A JPH0784813A (en) 1993-09-20 1993-09-20 Cpu malfunction preventing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5233243A JPH0784813A (en) 1993-09-20 1993-09-20 Cpu malfunction preventing circuit

Publications (1)

Publication Number Publication Date
JPH0784813A true JPH0784813A (en) 1995-03-31

Family

ID=16952019

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5233243A Pending JPH0784813A (en) 1993-09-20 1993-09-20 Cpu malfunction preventing circuit

Country Status (1)

Country Link
JP (1) JPH0784813A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7896504B2 (en) 2004-03-30 2011-03-01 Thomson Licensing Projection module and projector incorporating same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7896504B2 (en) 2004-03-30 2011-03-01 Thomson Licensing Projection module and projector incorporating same

Similar Documents

Publication Publication Date Title
US5793774A (en) Flash memory controlling system
US20040024980A1 (en) Memory access control system, apparatus, and method
EP0458614B1 (en) Memory device with standby function
US5541943A (en) Watchdog timer lock-up prevention circuit
JP3376306B2 (en) Data processing apparatus and data processing method
JPH08124380A (en) Semiconductor memory and accessing method for semiconductor memory
US7500021B2 (en) Operation mode control circuit, microcomputer including the same, and control system using the microcomputer
JPH0784813A (en) Cpu malfunction preventing circuit
JPH0822422A (en) Memory device
US20050022073A1 (en) Microcomputer system
JP2664144B2 (en) Multiplexing device switching method and device
JPH09293020A (en) Interface circuit
JP3114645B2 (en) Reset control circuit for memory cell device
JPS62286143A (en) Semiconductor memory device
JP2602909B2 (en) Write-protection method during CPU runaway
JP2809752B2 (en) Memory access circuit
JP3110222B2 (en) Microcomputer
JP2000207235A (en) Information processor
JP2813229B2 (en) Semiconductor storage device with data protection function
JP2024083079A (en) Power Control Integrated Circuit
JPS6315347A (en) Information preserving system
JPH03256108A (en) Reset circuit for digital system
JPH0414699A (en) Device for preventing eeprom from being inactive
JPH0822419A (en) Miswriting prevention system
JPS62173658A (en) Resetting circuit