JPH03237533A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH03237533A
JPH03237533A JP2034404A JP3440490A JPH03237533A JP H03237533 A JPH03237533 A JP H03237533A JP 2034404 A JP2034404 A JP 2034404A JP 3440490 A JP3440490 A JP 3440490A JP H03237533 A JPH03237533 A JP H03237533A
Authority
JP
Japan
Prior art keywords
signal
test
level detection
circuit
mode
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
JP2034404A
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 JP2034404A priority Critical patent/JPH03237533A/en
Publication of JPH03237533A publication Critical patent/JPH03237533A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To prevent the malfunction that the mode is switched to the test mode because of external pulse noise by switching the mode to the test mode by AND between a test level detection signal and a test permission signal which is based on the test level detection signal, a reset signal, and an internal reset signal. CONSTITUTION:A test permission flag generating circuit 4 is provided which takes a reset signal SR1, an internal reset signal SR2, and a test level detection signal S6 as the input and outputs a test permission signal S8. When the pulse noise higher than the test level is applied to an input terminal T1, the signal S6 is generated. However, the signal S6 is not continuously generated in the period from release of the signal SR1 to release of the signal SR2. Therefore, the circuit 4 is cleared at the time of release of the signal S6, and a test recognition signal S4 of the circuit 4 is kept cleared though the signal S6 is generated again, and a test signal S7 is not generated. Consequently, the malfunction of switching to the test mode is avoided though the external pulse noise is applied in the middle of normal operation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロコンピュータに関し、特にテストモー
ドに設定するテスト信号発生回路を有するマイクロコン
ピータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer, and more particularly to a microcomputer having a test signal generation circuit for setting a test mode.

〔従来の技術〕[Conventional technology]

従来この種のマイクロコンピータ(以下マイコンと云う
)のテスト信号発生回路は、第5図に示すようなプロ、
り構成となっている。
Conventionally, the test signal generation circuit for this type of microcomputer (hereinafter referred to as microcomputer) was a professional one as shown in Figure 5.
It is structured as follows.

このテスト信号発生回路は、入力端子TIに接続され、
入力信号SXにテストモード設定に対応するテストレベ
ルの電圧VTが印加されたときにテストレベル検出信号
S6を出力するテストレベル検出回路3を有している。
This test signal generation circuit is connected to an input terminal TI,
It has a test level detection circuit 3 that outputs a test level detection signal S6 when a test level voltage VT corresponding to the test mode setting is applied to the input signal SX.

そしてリセット端子T、に入力されるリセット信号SR
は、リセ、ドパ、ファBRを介して内部に供給されるリ
セff ) 8R1と、ウェイト回路lを介してリセッ
ト信号SBの停止後所定の時間を経続してから解除する
内部用の第2のリセット信号SR2を発生させている。
And the reset signal SR input to the reset terminal T.
is the reset signal ff supplied internally via the reset signal SB, DOPA, and FBR, and the internal reset signal FF which is released after a predetermined period of time after the reset signal SB is stopped via the wait circuit l. 2 reset signal SR2 is generated.

第6図は第5図のブロックの動作を説明するためのタイ
ミングチャートである。
FIG. 6 is a timing chart for explaining the operation of the blocks in FIG. 5.

まず、第6図にテストモード設定の動作を示す。First, FIG. 6 shows the operation of setting the test mode.

期間T21では、入力端子TIの入力信号SX。In the period T21, the input signal SX of the input terminal TI.

印加電圧は論理電圧VDDより高いテストレベル電圧V
丁以上である。
The applied voltage is a test level voltage V higher than the logic voltage VDD
It is more than 1.

これから、テストレベル検出信号86を発生し、テスト
信号S7がアクティブとなり、マイコンハチスト状態と
なる。
From now on, the test level detection signal 86 is generated, the test signal S7 becomes active, and the microcomputer enters the active state.

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

上述した従来のマイクロコンピュータは、通常使用時に
テスト信号発生回路の入力端子にテストレベル電圧以上
のパルスノイズが印加された場合、テスト信号を誤発生
しても、容易にテストモードに切換わり誤動作するとい
う欠点があった。
The conventional microcomputer described above easily switches to test mode and malfunctions even if a test signal is generated erroneously when a pulse noise higher than the test level voltage is applied to the input terminal of the test signal generation circuit during normal use. There was a drawback.

すなわち、第7図に示すように、期間T冨3では入力信
号S!の印加電圧が接地レベル(以下GNDレベルと略
す)〜電源電圧レベル(以下VDDレベルと略す)の範
囲の電圧が印加されているので、テストレベル検出回路
3はテストレベル検出信号S・を発生せず、テスト信号
Sγはアクティブとはならないため、マイコンは通常の
論理動作状態となる。
That is, as shown in FIG. 7, during the period T-3, the input signal S! Since the applied voltage ranges from the ground level (hereinafter referred to as GND level) to the power supply voltage level (hereinafter referred to as VDD level), the test level detection circuit 3 generates the test level detection signal S. First, since the test signal Sγ does not become active, the microcomputer enters a normal logical operation state.

期間TZ3では、入力端子TI にVDD以上のパルス
ノイズ■Pが印加されると、テストレベル検出信号S6
を誤発生し、テスト信号S7はアクティブとなる。この
ため、マイコンはテストモード状態になり誤動作をして
し管う。
In period TZ3, when pulse noise P of VDD or higher is applied to input terminal TI, test level detection signal S6
is erroneously generated, and the test signal S7 becomes active. As a result, the microcomputer enters a test mode and malfunctions.

たとえ期間T雪aK入力信号SXがテストレベル電圧V
丁以下に戻っても、いったん誤動作をかこすとマイコン
は暴走し、正常動作に戻る可能性は極めて少なし。
Even if the period T snow aK input signal SX is the test level voltage V
Even if things go back to below 100, once a malfunction occurs, the microcontroller will go out of control, and there is a very small chance that it will return to normal operation.

本発明の目的は、外来パルスノイズでテストモードに切
換誤動し難いマイクロコンビーータを提供することにあ
る。
An object of the present invention is to provide a microconbeater that is unlikely to switch to test mode erroneously due to external pulse noise.

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

本発明のマイクロコンビーータは、リセット信号を入力
して所定時間の幅を広げた内部用リセ。
The microconbeater of the present invention is an internal resetter that inputs a reset signal to widen the width of the predetermined time.

ト信号を出力するウェイト回路と、入力信号のうち通常
の論理信号の電圧よりも高いテストレベルに対応してテ
ストレベル検出信号を出力してテストモードに設定する
テストレベル検出回路を設けたテスト信号発生回路を有
するマイクロコンピュータにおいて、前記テスト信号発
生回路は、前記テストレベル検出信号、前記リセット信
号及び前記内部用リセット信号を入力しそれらの論理信
号によシテスト許可信号を出力するR−8フリツプフロ
ツプを有するテスト許可フラグ発生回路と、前記テスト
許可信号と前記テストレベル検出信号の論理積を出力す
るAND回路とを有するテスト許可部を付加して構成さ
れている。
A test signal equipped with a wait circuit that outputs a logic signal, and a test level detection circuit that outputs a test level detection signal and sets the test mode in response to a test level higher than the voltage of the normal logic signal among the input signals. In the microcomputer having a generation circuit, the test signal generation circuit includes an R-8 flip-flop that inputs the test level detection signal, the reset signal, and the internal reset signal and outputs a test permission signal based on these logic signals. The test permission flag generating circuit has a test permission flag generating circuit, and a test permission section has a test permission section having an AND circuit that outputs a logical product of the test permission signal and the test level detection signal.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例のプロ、り図である。FIG. 1 is a schematic diagram of an embodiment of the present invention.

マイコンのテスト信号発生回路は、第5図テストレベル
検出信号S6及びリセット信号SR1v 8R2とを入
力しテスト信号Sアを出力するテスト許可部2をテスト
レベル検出回路3に付加して構成されている。
The test signal generation circuit of the microcomputer is constructed by adding a test permission section 2 to the test level detection circuit 3, which inputs the test level detection signal S6 and the reset signal SR1v8R2 and outputs the test signal SA, as shown in FIG. .

テスト許可部2は、テストレベル検出信号S6とリセッ
ト信号SR1+ SR2に対応する三つの信号のDR倍
信号入力するH、−8F/Hの出力するテスト認識信号
S4を発生するテスト許可フラグ発生回路4と、信号S
4とリセット信号SB二の論理積のテスト許可信号S8
を出力するAND回路AND、と、テスト許可信号S8
とテストレベル検出信号S6との論理積のテスト信号S
7を出力する入ND回路AND、と金有している。
The test permission section 2 includes a test permission flag generation circuit 4 which generates a test recognition signal S4 outputted by H, -8F/H, which receives DR multiplied signals of three signals corresponding to the test level detection signal S6 and reset signals SR1+SR2. and signal S
Test permission signal S8 of the logical product of 4 and reset signal SB2
AND circuit AND, which outputs the test enable signal S8.
and the test level detection signal S6.
It has an input ND circuit AND which outputs 7.

第2図〜第4図は、第1図の回路の動作を説明するため
のタイミングチャートである。
2 to 4 are timing charts for explaining the operation of the circuit shown in FIG. 1.

第2図はテストモード状態の動作を示す。FIG. 2 shows the operation in test mode.

リセット信号SRIの発生時から第2のリセット信号S
at解除璽での期間’I’tt−’I’tzマイコンは
、リセットモードMRであう、又s”Igの期間は動作
モードMDである。
From the time the reset signal SRI is generated, the second reset signal S
The period 'I'tt-'I'tz during the at release seal is the reset mode MR, and the period s''Ig is the operation mode MD.

リセット信号8R1の解除から内部用のリセット信号S
R2解除までの期間T目では、入力端子TIにはテスト
レベル77以上の電圧が連続して印加されているため、
テストレベル検出信号8sFi連続して発生している。
From release of reset signal 8R1 to internal reset signal S
During the T-th period until R2 is released, a voltage of test level 77 or higher is continuously applied to the input terminal TI, so
Test level detection signal 8sFi is generated continuously.

このため、テスト許可フラグ発生回路4は、リセット信
号SRIによりセットされたままの状態を保ち、第2の
リセット信号SR2が解除されていないので、テスト許
可信号S8は発生しない。
Therefore, the test permission flag generating circuit 4 remains set by the reset signal SRI, and since the second reset signal SR2 is not released, the test permission signal S8 is not generated.

第2のリセット信号SR2の解除後の期間T13にかい
ては、テスト許可フラグ発生回路4がセットされている
のでテスト許可信号Ssが発生する。
During the period T13 after the release of the second reset signal SR2, the test permission flag generation circuit 4 is set, so the test permission signal Ss is generated.

従ってテストレベル検出信号S、及びテスト許可信号S
sは、共に発生しているのでAND回路AND2はテス
ト信号8.を発生し、マイコンはテストモード状態とな
る。
Therefore, the test level detection signal S and the test permission signal S
Since both test signals 8 and s are generated, the AND circuit AND2 outputs the test signals 8 and 8. occurs, and the microcontroller enters test mode.

次に第3図に通常論理動作状態の動作を示す。Next, FIG. 3 shows the operation in the normal logic operation state.

期間T14”I’llでは、入力端子Txには、GND
〜VDDレベルの範囲内の入力信号SXの電圧が印加さ
れているので、テストレベル検出信号S6はアクティブ
とはならない。
During the period T14''I'll, the input terminal Tx is connected to GND.
Since the voltage of the input signal SX within the range of -VDD level is applied, the test level detection signal S6 does not become active.

この為テスト信号S7は発生せず、マイコンは通常動作
状態となる。
For this reason, the test signal S7 is not generated and the microcomputer is in a normal operating state.

次に第4図は入力端子2にノイズが印加された場合の動
作を示す。
Next, FIG. 4 shows the operation when noise is applied to the input terminal 2.

期間T16において、入力端子T!にテストレベル7丁
以上のパルスノイズvPが印加されると、テストレベル
検出信号S6が発生する。
During period T16, input terminal T! When a pulse noise vP of test level 7 or more is applied to the test level detection signal S6, a test level detection signal S6 is generated.

しかし、このリセット信号SRIの解除から内部用のリ
セット信号SR2の解除筐での期間’I’tsに)いて
、テストレベル検出信号S6は連続して発生し続けるに
はいたらないので、テスト許可フラグ発生回路4はテス
トレベル検出信号S6が解除された時点でクリアされ、
期間’I’tsに再度テストレベル検出信号S6が発生
してもテスト許可フラグ発生回路4のテスト認識信号S
4はクリアされたままの状態を保ち、内部用のリセット
信号8R1の解除後も、テスト許可信号S8はゝONと
なる。
However, since the test level detection signal S6 cannot continue to be generated during the period 'I'ts' from the release of the reset signal SRI to the release of the internal reset signal SR2, the test permission flag is The generation circuit 4 is cleared when the test level detection signal S6 is released,
Even if the test level detection signal S6 occurs again during the period 'I'ts, the test recognition signal S of the test permission flag generation circuit 4
4 remains cleared, and even after the internal reset signal 8R1 is released, the test permission signal S8 remains ON.

このため、期間T!6〜Tエフにテストレベル検出信号
S6が発生しても、テスト許可信号Ssの出力は常に1
0#であるため、テスト信号S7は発生しない。
For this reason, the period T! Even if the test level detection signal S6 is generated from 6 to TF, the output of the test enable signal Ss is always 1.
Since the signal is 0#, the test signal S7 is not generated.

このようにリセットモード中に一瞬でもVDD〜GND
レベルが入力端子Sxに印加された場合、テスト許可信
号S8の出力はゝ0“となシ、たとえ、テストレベルv
Tを越えるような大きなパルスノイズが印加された場合
に)いても通常動作を保ち誤動作をしない。
In this way, even momentarily during reset mode, connect VDD to GND.
When a level is applied to the input terminal Sx, the output of the test enable signal S8 is "0", even if the test level v
Even if a large pulse noise exceeding T is applied, normal operation is maintained and no malfunction occurs.

なかテスト許可フラグ発生回路4の論理回路は例えば三
つの入力信号を反転し、08回路をAND回路に、NA
ND回路をNOR回路に変形しても良い。
For example, the logic circuit of the middle test permission flag generation circuit 4 inverts three input signals, converts the 08 circuit into an AND circuit, and converts the NA
The ND circuit may be transformed into a NOR circuit.

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

以上説明したように本発明は、通常論理動作状態ではテ
スト兼用入力端子にテストレベル電圧以上のパルスノイ
ズが印加された場合でもテストモード状態に入らない。
As described above, the present invention does not enter the test mode state in the normal logic operating state even if pulse noise of a test level voltage or higher is applied to the test-common input terminal.

このため、通常動作中、たとえ外来ノイズ等が印加され
ても、テストモードに引きこまれる誤動作を回避できる
という効果がある。
Therefore, even if external noise or the like is applied during normal operation, it is possible to avoid malfunctions such as being drawn into the test mode.

図〜第4図は第1のブロックの動作を説明するための各
部のタイピングチャート、第5図は従来のマイクロコン
ピュータの一例のプロ、り図、第6図、第7図は第5図
のプロ、りの動作を説明するための各部のタイミングチ
ャートである。
Fig. 4 is a typing chart of each part to explain the operation of the first block, Fig. 5 is a diagram of an example of a conventional microcomputer, and Figs. It is a timing chart of each part for explaining the operation of the pro.

l・・・・・・ウェイト回路、2・−・・・・テスト許
可部、3・・・・・・テストレベル検出回路、4−・・
・・・テスト許可フラグ発生回路s S5・・・・・・
通常入力信号、S、・・・・・・テストレベル検出信号
、S7・・・・・・テスト信号sSm・・・・・・テス
ト許可信号、8工・・・・・・入力信号、5R2SRI
・・−・・・リセット信号、SR□・・・・・・内部用
リセット信号、TB・・・・・・リセット端子、TI・
・・・・・入力端子。
l...Wait circuit, 2...Test permission section, 3...Test level detection circuit, 4-...
...Test permission flag generation circuit s S5...
Normal input signal, S...Test level detection signal, S7...Test signal sSm...Test permission signal, 8th...Input signal, 5R2SRI
--- Reset signal, SR□ --- Internal reset signal, TB --- Reset terminal, TI.
...Input terminal.

Claims (1)

【特許請求の範囲】[Claims] リセット信号を入力して所定時間の幅を広げた内部用リ
セット信号を出力するウェイト回路と、入力信号のうち
通常の論理信号の電圧よりも高いテストレベルに対応し
てテストレベル検出信号を出力してテストモードに設定
するテストレベル検出回路を設けたテスト信号発生回路
を有するマイクロコンピュータにおいて、前記テスト信
号発生回路は、前記テストレベル検出信号、前記リセッ
ト信号及び前記内部用リセット信号を入力しそれらの論
理信号によりテスト許可信号を出力するR−Sフリップ
フロップを有するテスト許可フラグ発生回路と、前記テ
スト許可信号と前記テストレベル検出信号の論理積を出
力するAND回路とを有するテスト許可部を付加したこ
とを特徴とするマイクロコンピュータ。
A wait circuit inputs a reset signal and outputs an internal reset signal with a wider predetermined time width, and a wait circuit outputs a test level detection signal in response to a test level higher than the voltage of the normal logic signal among the input signals. In the microcomputer, the microcomputer has a test signal generation circuit provided with a test level detection circuit that sets the test mode by inputting the test level detection signal, the reset signal, and the internal reset signal. A test permission flag generation circuit having an R-S flip-flop that outputs a test permission signal based on a logic signal, and an AND circuit that outputs a logical product of the test permission signal and the test level detection signal are added. A microcomputer characterized by:
JP2034404A 1990-02-14 1990-02-14 Microcomputer Pending JPH03237533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2034404A JPH03237533A (en) 1990-02-14 1990-02-14 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2034404A JPH03237533A (en) 1990-02-14 1990-02-14 Microcomputer

Publications (1)

Publication Number Publication Date
JPH03237533A true JPH03237533A (en) 1991-10-23

Family

ID=12413251

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2034404A Pending JPH03237533A (en) 1990-02-14 1990-02-14 Microcomputer

Country Status (1)

Country Link
JP (1) JPH03237533A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7890737B2 (en) 2007-07-02 2011-02-15 Denso Corporation Microcomputer and functional evaluation chip

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7890737B2 (en) 2007-07-02 2011-02-15 Denso Corporation Microcomputer and functional evaluation chip

Similar Documents

Publication Publication Date Title
JPH05122017A (en) Schmitt trigger input buffer circuit
JPH03237533A (en) Microcomputer
JPH08116249A (en) Data output buffer
JPS61262827A (en) Semiconductor integrated circuit device
JPH04306013A (en) Latch circuit device
JP3615189B2 (en) I / O buffer circuit
JP2969732B2 (en) Semiconductor integrated circuit
EP0373831A3 (en) Self latching logic gate
JPH04307809A (en) Rs flip-flop
JPH0224279Y2 (en)
JP3116706B2 (en) Trigger input circuit
JPS6225509A (en) Output circuit
JP3266111B2 (en) Clock input buffer circuit
JP2557866Y2 (en) Signal switching circuit
JPH0821838B2 (en) I / O circuit
JPH0516211B2 (en)
JP2690615B2 (en) Logic circuit
JPH01225223A (en) Cmos logic circuit
JPH0358614A (en) Semiconductor device
JPH04130514A (en) Semiconductor device
JPH0377406A (en) Oscillation control circuit
JPH0454510Y2 (en)
JPS62131628A (en) Interface circuit
JPH05335926A (en) Output circuit with short-circuit protection
JPS62265737A (en) Semiconductor integrated circuit