JPH0296247A - Malfunction preventing circuit - Google Patents

Malfunction preventing circuit

Info

Publication number
JPH0296247A
JPH0296247A JP63248004A JP24800488A JPH0296247A JP H0296247 A JPH0296247 A JP H0296247A JP 63248004 A JP63248004 A JP 63248004A JP 24800488 A JP24800488 A JP 24800488A JP H0296247 A JPH0296247 A JP H0296247A
Authority
JP
Japan
Prior art keywords
registers
chip
circuit
dummy
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.)
Pending
Application number
JP63248004A
Other languages
Japanese (ja)
Inventor
Masao Matsuzawa
松澤 正夫
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63248004A priority Critical patent/JPH0296247A/en
Publication of JPH0296247A publication Critical patent/JPH0296247A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the malfunctions of a microcomputer, etc., by using a circuit which produces a clear signal when at least one of outputs of (n) pieces of dummy registers is inverted and at the same time allocating these dummy registers at the periphery of a pad of a chip. CONSTITUTION:When just one of dummy registers 4 is inverted to 1 by the electrostatic noise, a malfunction detecting signal 6 becomes active to sets again a microcomputer in its initial state. Then a clear signal 2 is produced by a clear signal generating circuit 7 and all registers 4 are cleared to 0. Thus the signal 6 is inactive again and no signal 2 is produced any more. The registers 4 are set at the periphery of a pad 9 of a chip 8 to easily receive the effect of the electrostatic noise. Thus the overall monitor is possible to the chip 8.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロコンピュータ等の誤動作防止回路に関
し、特にマイクロコンピュータ・チップに内蔵され、静
電ノイズ対策を施した誤動作防止回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a malfunction prevention circuit for microcomputers and the like, and more particularly to a malfunction prevention circuit built into a microcomputer chip and provided with electrostatic noise countermeasures.

〔従来の技術〕[Conventional technology]

従来、この種のマイクロコンピュータにおいては、ウォ
ッチ・ドッグ・タイマを用いて誤動作を検出しマイクロ
コンピュータを初期状層に戻すような制御を行っている
Conventionally, in this type of microcomputer, a watch dog timer is used to detect malfunction and perform control to return the microcomputer to its initial state.

第3図はかかる従来の一例を説明するための誤動作防止
回路のブロック図である。
FIG. 3 is a block diagram of a malfunction prevention circuit for explaining an example of such a conventional system.

第3図に示すように、従来の該動作防上回路はウォッチ
・ドッグ・タイマ11を用いている。すなわち、マイク
ロコンピュータ(以下、マイコンと称す)に内蔵または
外部に接続されたウォッチ・ドッグ・タイマ11をソフ
トウェア制御により一定間隔でクリア信号12によりク
リアしておく。このタイマ11に対するクリアが行なわ
れない場合には、ウォッチ・ドッグ・タイマ11がオー
バーフローし、誤動作検出信号13を発生する。これに
より、マイコンが暴走したと判断し、マイコンを初期状
態に再設定している。
As shown in FIG. 3, the conventional operation prevention circuit uses a watch dog timer 11. That is, a watch dog timer 11 built in a microcomputer (hereinafter referred to as microcomputer) or connected externally is cleared by a clear signal 12 at regular intervals under software control. If the timer 11 is not cleared, the watch dog timer 11 overflows and generates a malfunction detection signal 13. As a result, it is determined that the microcomputer has gone out of control, and the microcomputer is reset to its initial state.

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

上述した従来の誤動作防止回路は、ソフトウェアが暴走
したことによってマイコンを初期状態に再設定するので
、例えば、暴走までに至らず且つボートの入出力切換え
モードレジスタだけが静電ノイズ等によって誤動作した
場合、すなわちモードレジスタが入力モードであったの
が出力モードになった様な誤動作においては、マイコン
を初期状態に再設定出来ないという欠点がある。
The conventional malfunction prevention circuit described above resets the microcontroller to its initial state when the software runs out of control, so for example, if the software does not run out of control and only the input/output switching mode register of the board malfunctions due to electrostatic noise, etc. That is, in the case of a malfunction such as when the mode register changes from input mode to output mode, there is a drawback that the microcomputer cannot be reset to its initial state.

本発明の目的は、かかる静電ノイズ等の影響による誤動
作であっても、これを検出しマイコンを初期状態に再設
定することのできる誤動作防止回路を提供することにあ
る。
An object of the present invention is to provide a malfunction prevention circuit that can detect malfunctions caused by such electrostatic noise and reset the microcomputer to its initial state.

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

本発明の誤動作防止回路は、チップに搭載されるマイク
ロコンピュータの誤動作防止回路において、リセット信
号およびクリア信号を入力する第一の論理回路と、前記
第一の論理回路の出力端子に接続され任意の論理値に固
定された書き込みの出来ないn個(n=正の整数)のダ
ミーレジスタと、前記ダミーレジスタの各々の出力を入
力し前記n個のレジスタの出力が少くとも1つ反転した
ときに誤動作検出信号を発生させる第二の論理回路と、
前記誤動作検出信号に基づき前記第一の論理回路のクリ
ア信号を作成するクリア信号発生回路とを有し、前記n
個のダミーレジスタを前記チップのパッド周辺に配置し
て構成される。
The malfunction prevention circuit of the present invention is a malfunction prevention circuit for a microcomputer mounted on a chip, and includes a first logic circuit that inputs a reset signal and a clear signal, and an arbitrary circuit connected to the output terminal of the first logic circuit. When inputting n dummy registers (n = positive integer) that are fixed to logical values and cannot be written to, and the output of each of the dummy registers, and at least one output of the n registers is inverted, a second logic circuit that generates a malfunction detection signal;
a clear signal generation circuit that generates a clear signal for the first logic circuit based on the malfunction detection signal;
dummy registers are arranged around the pads of the chip.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を説明するための誤動作防止
回路のブロック図である。
FIG. 1 is a block diagram of a malfunction prevention circuit for explaining one embodiment of the present invention.

第1図に示すように、本実施例の誤動作防止回路は、リ
セット信号1およびクリア信号2を入力しNOR論理を
とる第一の論理回路3と、このNOR出力をそれぞれ入
力する任意の論理値に固定された書き込みの出来ないn
個(nは正の整数〉のダミーレジスタ4と、各ダミーレ
ジスタ4の出力のNOR論理とインバータ論理をとり誤
動作検出信号を出力する第二の論理回路5と、この誤動
作検出信号6に基づき第一の論理回路3の一つの入力で
あるクリア信号2を作成するクリア信号発生回路7とを
有している。かがるダミーレジスタ4は後述するチップ
のパッド周辺にそれぞれ配置される。この誤動作防止回
路の動作について以下に説明する。
As shown in FIG. 1, the malfunction prevention circuit of this embodiment includes a first logic circuit 3 which receives a reset signal 1 and a clear signal 2 and takes NOR logic, and an arbitrary logic circuit 3 which inputs the NOR output. Unwritable n fixed to
dummy registers 4 (n is a positive integer), a second logic circuit 5 that takes the NOR logic and inverter logic of the output of each dummy register 4 and outputs a malfunction detection signal, and a second logic circuit 5 that outputs a malfunction detection signal. A clear signal generation circuit 7 generates a clear signal 2 which is one input of one logic circuit 3.The dummy registers 4 are arranged around pads of the chip, which will be described later. The operation of the prevention circuit will be explained below.

まず、第一の論理回路3に入力されるリセット信号1が
解除されると、n個のダミーレジスタ4は0”に固定さ
れる。このなめ、誤動作検出信号2はアクティブとはな
らず、したがってクリア信号発生回路7からのクリア信
号2は発生されない。次に、静電ノイズ等により一つで
もダミーレジスタ4が“1パに反転すると、誤動作検出
信号6はアクティブとなり、マイコンを初期状態に再設
定するとともに、クリア信号2がクリア信号発生回路7
により発生するので、全てのダミーレジスタ4を゛0″
にクリアする。この全てのダミーレジスタ4かクリアさ
れたことにより、誤動作検出信号6は再びノンアクティ
ブとなり、クリア信号2は発生されなくなる。
First, when the reset signal 1 input to the first logic circuit 3 is released, the n dummy registers 4 are fixed to 0''. Therefore, the malfunction detection signal 2 does not become active, and therefore The clear signal 2 from the clear signal generation circuit 7 is not generated.Next, if even one of the dummy registers 4 is inverted to "1P" due to electrostatic noise etc., the malfunction detection signal 6 becomes active and the microcontroller is reset to the initial state. At the same time, the clear signal 2 is sent to the clear signal generation circuit 7.
This occurs, so set all dummy registers 4 to ``0''.
Clear to. Since all the dummy registers 4 are cleared, the malfunction detection signal 6 becomes inactive again, and the clear signal 2 is no longer generated.

第2図は第1図に示す誤動作防止回路のダミーレジスタ
をチップ上に配置したレイアウト図である。
FIG. 2 is a layout diagram in which dummy registers of the malfunction prevention circuit shown in FIG. 1 are arranged on a chip.

第2図に示すように、かがる誤動作防止回路のダミーレ
ジスタ4はチップ8上でチップ8の周辺に設けられたパ
ッド9の近傍(周辺)に配置される。尚、IOは出力バ
ッファ回路を示している。
As shown in FIG. 2, the dummy register 4 of the malfunction prevention circuit is arranged on the chip 8 near (around) a pad 9 provided around the chip 8. Note that IO indicates an output buffer circuit.

上述したダミーレジスタ4の配置をパッド9の周辺にし
ているのは、静電ノイズの影響を特に受けやすいためで
ある。
The reason why the above-mentioned dummy resistor 4 is arranged around the pad 9 is that it is particularly susceptible to the influence of electrostatic noise.

要するに、本実施例の誤動作防止回路は、静電ノイズな
どにより一つでもダミーレジスタ4が動作状態を反転し
たときに誤動作検出信号6を発生してマイコンを初期状
態に再設定することにあり、しかも複数個のダミーレジ
スタ4は静電ノイズなどの影響を受けやすくするなめチ
ップ8のパッド9の周辺に配置しチップ8全体の監視が
できるようにレイアウトしている。
In short, the malfunction prevention circuit of this embodiment generates the malfunction detection signal 6 to reset the microcomputer to its initial state when even one of the dummy registers 4 reverses its operating state due to electrostatic noise or the like. Moreover, the plurality of dummy registers 4 are arranged around the pads 9 of the chip 8 which are susceptible to electrostatic noise, etc., so that the entire chip 8 can be monitored.

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

以上説明したように、本発明の誤動作防止回路は、リセ
ット信号とクリア信号との論理出力を入力するダミーレ
ジスタを設け、且つこのダミーレジスタをチップのパッ
ド周辺に配・置することにより、静電ノイズなどにより
暴走に致らない程度の誤動作をした場合でも、ダミーレ
ジスタの内容が反転すれば誤動作検出信号を発生して初
期状態に再設定できるので、マイコン等の誤動作を確実
に防止することができるという効果がある。
As explained above, the malfunction prevention circuit of the present invention provides a dummy register that inputs the logic outputs of the reset signal and the clear signal, and by arranging the dummy register around the pad of the chip, static electricity can be prevented. Even if there is a malfunction that does not result in runaway due to noise, etc., if the contents of the dummy register are inverted, a malfunction detection signal can be generated and the initial state can be reset, so malfunctions of the microcontroller, etc. can be reliably prevented. There is an effect that it can be done.

1・・・リセット信号、2・・・クリア信号、3・・・
第一の論理回路、4・・・ダミーレジスタ、5・・・第
二の論理回路、6・・・誤動作検出信号、7・・・クリ
ア信号発生回路、8・・・チップ、9・・・パッド、1
0・・・出力バッファ回路。
1...Reset signal, 2...Clear signal, 3...
First logic circuit, 4... Dummy register, 5... Second logic circuit, 6... Malfunction detection signal, 7... Clear signal generation circuit, 8... Chip, 9... pad, 1
0...Output buffer circuit.

代理人 弁理士  内 原  費Agent Patent Attorney Uchihara Fees

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

第1図は本発明の一実施例を説明するための誤動作防止
回路のブロック図、第2図は第1図に示す誤動作防止回
路のダミーレジスタをチップ上に配置したレイアウト図
、第3図は従来の一例を説明するための誤動作防止回路
のブロック図である。
FIG. 1 is a block diagram of a malfunction prevention circuit for explaining one embodiment of the present invention, FIG. 2 is a layout diagram of dummy registers arranged on a chip in the malfunction prevention circuit shown in FIG. 1, and FIG. FIG. 2 is a block diagram of a malfunction prevention circuit for explaining a conventional example.

Claims (1)

【特許請求の範囲】[Claims] チップに搭載されるマイクロコンピュータの誤動作防止
回路において、リセット信号およびクリア信号を入力す
る第一の論理回路と、前記第一の論理回路の出力端子に
接続され任意の論理値に固定された書き込みの出来ない
n個(n=正の整数)のダミーレジスタと、前記ダミー
レジスタの各々の出力を入力し前記n個のレジスタの出
力が少くとも1つ反転したときに誤動作検出信号を発生
させる第二の論理回路と、前記誤動作検出信号に基づき
前記第一の論理回路のクリア信号を作成するクリア信号
発生回路とを有し、前記n個のダミーレジスタを前記チ
ップのパッド周辺に配置したことを特徴とする誤動作防
止回路。
In a malfunction prevention circuit of a microcomputer mounted on a chip, a first logic circuit inputs a reset signal and a clear signal, and a write terminal connected to an output terminal of the first logic circuit and fixed to an arbitrary logic value. n dummy registers (n = positive integer), and a second device that inputs the output of each of the dummy registers and generates a malfunction detection signal when at least one output of the n registers is inverted. and a clear signal generation circuit that generates a clear signal for the first logic circuit based on the malfunction detection signal, and the n dummy registers are arranged around pads of the chip. Malfunction prevention circuit.
JP63248004A 1988-09-30 1988-09-30 Malfunction preventing circuit Pending JPH0296247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63248004A JPH0296247A (en) 1988-09-30 1988-09-30 Malfunction preventing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63248004A JPH0296247A (en) 1988-09-30 1988-09-30 Malfunction preventing circuit

Publications (1)

Publication Number Publication Date
JPH0296247A true JPH0296247A (en) 1990-04-09

Family

ID=17171760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63248004A Pending JPH0296247A (en) 1988-09-30 1988-09-30 Malfunction preventing circuit

Country Status (1)

Country Link
JP (1) JPH0296247A (en)

Similar Documents

Publication Publication Date Title
US6175913B1 (en) Data processing unit with debug capabilities using a memory protection unit
US5734844A (en) Bidirectional single-line handshake with both devices driving the line in the same state for hand-off
JPH0296247A (en) Malfunction preventing circuit
KR20040052443A (en) Interrupt controller for a microprocessor
JP2000194402A (en) Method and device for monitoring cpu abnormality
JP2614931B2 (en) Interrupt control circuit
JP2988139B2 (en) Interrupt control device
JPH01305416A (en) Data storage device
JP2760067B2 (en) Emulation system
JP2906881B2 (en) Microcomputer
JP3309186B2 (en) Channel control device
JP2847741B2 (en) Microcomputer
JPH05324407A (en) Cpu monitor system
JPS60163135A (en) Data bus check system
JPH04195352A (en) System bus system
JPH03154115A (en) Semiconductor integrated circuit
JPS63101938A (en) Device for preventing microprocessor from runaway
JPS63282535A (en) Signal processor
KR19990008906U (en) Watchdog timer output control
JPH04177533A (en) Microcomputer
JPS62172440A (en) Watchdog timer circuit
JPH05120075A (en) Runaway detecting method for cpu
JPS59229652A (en) Adaptive system evaluator
JPH05233371A (en) Cpu device
JPH06119194A (en) Data processing system