JPS6130778A - Test circuit - Google Patents

Test circuit

Info

Publication number
JPS6130778A
JPS6130778A JP15360284A JP15360284A JPS6130778A JP S6130778 A JPS6130778 A JP S6130778A JP 15360284 A JP15360284 A JP 15360284A JP 15360284 A JP15360284 A JP 15360284A JP S6130778 A JPS6130778 A JP S6130778A
Authority
JP
Japan
Prior art keywords
test circuit
mos transistor
resistance
microcomputer
test
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.)
Granted
Application number
JP15360284A
Other languages
Japanese (ja)
Other versions
JPH0544051B2 (en
Inventor
Nobukazu Iwase
信和 岩瀬
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 JP15360284A priority Critical patent/JPS6130778A/en
Publication of JPS6130778A publication Critical patent/JPS6130778A/en
Publication of JPH0544051B2 publication Critical patent/JPH0544051B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To hold back power consumption in a test circuit, by having one of a plurality of resistances composed of a MOS transistor in which a gate electrode is controlled by a standby signal outputted from a CPU to cut off the flow of current from a test terminal. CONSTITUTION:A test circuit 20 of a microcomputer 10 is made up of an input terminal (e), an inverter (k), a NAND gate (i), a resistance R3 and a MOS transistor (g). Then, the resistance ratio is set for a specified value between the resistance R3 and the resistance between the source and drain of the MOS transistor (g) conducting. When the demand for the standby state is generated, a CPU30 puts the computer 10 to the standby state while bringing a standby signal (f) to a low level to turn OFF the MOS transistor (g) causing the current to be shut down as flowing to the GND from the input terminal (e) thereby suppressing holding back power consumption.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は1テツプに構成され、かつスタンバイ機能を有
するマイクロコンピュータのテスト回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a microcomputer test circuit that is configured in one step and has a standby function.

〔従来技術〕[Prior art]

プログラム用メモリ(ROM)等を同一チップ上に構成
したマイクロコンピュータの出荷検査時において内部R
OMによる動作を確認することは、内部ROMの内容が
使用者毎に違うため一般(=不可能とされている。
Internal R
It is generally considered impossible to check the operation of the OM because the contents of the internal ROM differ from user to user.

そこで、チップ内部にテスト回路およびテスト回路制御
信号の入力端子(テスト端子)を設け、制御信号によっ
てテスト回路を制御しながら、次のようなマイクロコン
ピュータのテストが行なわれている。まず、チップの外
:二股Cすたテスト用の外付けROM(ICを測定する
ための自動測定器等のメモリ)を用いて外部より命令コ
ードデータを入力し、内部ROM以外の動作確認を行な
う。
Therefore, a test circuit and an input terminal (test terminal) for a test circuit control signal are provided inside the chip, and the following microcomputer tests are performed while controlling the test circuit using the control signal. First, outside the chip: input the instruction code data from the outside using an external ROM (memory of an automatic measuring device, etc. for measuring the IC) for two-pronged C-star testing, and check the operation of everything other than the internal ROM. .

次(=内部ROMが自らのROMコードデータな外部端
子に出力して、内部ROMの内容がテストされる。しか
しながらこのようなテスト端子は通常動作状態では全く
不要である。そこで、独立したテスト端子を設けずに、
特定の入力端子をテスト端子と共有して用い、この端子
に通常動作状態ではあり得ない高電圧の制御信号を入力
すること(二よってテスト状態とするテスト回路が使用
される。
Next (=The internal ROM outputs its own ROM code data to the external terminal, and the contents of the internal ROM are tested. However, such a test terminal is completely unnecessary in normal operating conditions. Therefore, an independent test terminal without providing
A test circuit is used in which a specific input terminal is shared with a test terminal and a high-voltage control signal that is not possible in a normal operating state is input to this terminal (thus, the test state is established).

第2図はこのようなテスト回路の従来例を内蔵したマイ
クロコンピュータの要部のブロック図でアル。マイクロ
コンピュータ1はテスト回路2、CPU5、内部ROM
4、バス5からなり、これに外部ROM6が設けられて
いる。テスト回路2は、テスト端子C、インバータa、
b、抵抗R1゜R嘗から構成されている。ここで、抵抗
R+ 、 R麿の抵抗比は、インバータa、bの出力レ
ベルva 、 vbがテスト端子Cに印加する電圧レベ
ルVaによって表−1に示した3種類のモードM+〜M
3になるよう1=あらかじめ決められている。
Figure 2 is a block diagram of the main parts of a microcomputer that incorporates a conventional example of such a test circuit. Microcomputer 1 includes test circuit 2, CPU 5, and internal ROM
4 and a bus 5, to which an external ROM 6 is provided. The test circuit 2 includes a test terminal C, an inverter a,
b. It consists of a resistor R1°R. Here, the resistance ratio of the resistors R+ and Rmaro is determined depending on the voltage level Va applied to the test terminal C by the output levels va and vb of the inverters a and b, depending on the three types of modes M+ to M shown in Table 1.
1 = predetermined to be 3.

表−ま ただし、表−1においてHは電源電位、Lは接地電位、
HVは電源電位よりさらに高い特定の電位を示す。モー
ドNLIは使用者がマイクロコンピュータ1を内部RO
M4で使用するときの状態であり、このときCPU6は
制御信号7を内部ROM4に出力し、内部ROM4の内
容にしたがって動作する。モードMmはマイクロコンピ
ュータ1を外部ROM6で使用するときの状態であり、
CPU3は制御信号8を外部ROM6に出力し、外部R
OM6の内容にしたがって動作する。モードM3はテス
ト状態であり、制御信号7により内部ROM4の内容で
あるコード情報がパス5を通って外部へ出力)れる。
However, in Table 1, H is the power supply potential, L is the ground potential,
HV indicates a specific potential higher than the power supply potential. In mode NLI, the user operates the microcomputer 1 internally.
This is the state when using the M4. At this time, the CPU 6 outputs the control signal 7 to the internal ROM 4 and operates according to the contents of the internal ROM 4. Mode Mm is the state when the microcomputer 1 is used with the external ROM 6,
The CPU 3 outputs the control signal 8 to the external ROM 6, and outputs the control signal 8 to the external ROM 6.
It operates according to the contents of OM6. Mode M3 is a test state, in which code information, which is the content of internal ROM 4, is output to the outside via path 5 in response to control signal 7.

しかし、このマイクロコンピュータ1ではモードM1で
使用中にスタンバイ状態への要求がCPU6で発生し、
マイクロコンピュータ1がスタンバイ状態に入っても、
テスト端子Cから抵抗R1゜R1そしてGNDへと電流
が流れたままであるので、スタンバイ時の低消費電力化
ができないという欠点があった。
However, in this microcomputer 1, a request to enter the standby state occurs in the CPU 6 while it is being used in mode M1.
Even if microcomputer 1 enters standby mode,
Since the current continues to flow from the test terminal C to the resistor R1°R1 and then to GND, there is a drawback that low power consumption during standby cannot be achieved.

〔発明の目的〕[Purpose of the invention]

本発明の目的はスタンバイ状態(ユおいて消費電流を抑
え、マイクロコンピュータの低消費電力化な図ることの
できるテスト回路を提供すること;:ある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a test circuit that can suppress current consumption in a standby state and reduce power consumption of a microcomputer.

〔発明の構成〕[Structure of the invention]

本発明のテスト回路は、入力端子と基準電位との間に直
列接続された複数の抵抗を有し、各抵抗の接続点を出力
端子とするテスト回路において、複数の抵抗のうち少な
くとも1個はCPUから出力されるスタンバイ信号によ
ってゲート電極が制御されるMOSトランジスタから構
成されることを特徴とする。
The test circuit of the present invention has a plurality of resistors connected in series between an input terminal and a reference potential, and in which the connection point of each resistor is an output terminal, at least one of the plurality of resistors is It is characterized by being composed of a MOS transistor whose gate electrode is controlled by a standby signal output from the CPU.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例に係るテスト回路を有するマ
イクロコンピュータのブロック図である。
FIG. 1 is a block diagram of a microcomputer having a test circuit according to an embodiment of the present invention.

マイクロコンピュータ10はテスト回路20、Cpty
30、プログラム用の内部ROM4Q、テスト用の外部
ROM60.CPU、30と内部ROM40と外部RO
M6Qとを結ぶパス50かうなる。
The microcomputer 10 has a test circuit 20, Cpty
30. Internal ROM4Q for programming, external ROM60 for testing. CPU, 30 and internal ROM 40 and external RO
There are 50 paths connecting M6Q.

内部ROM40.外部ROM60の内容はCPU60か
らそれぞれ内部ROM40.外部ROM /;)Qに出
力される制御信号70.80によりバス50に出力され
る。
Internal ROM40. The contents of the external ROM 60 are transferred from the CPU 60 to the internal ROM 40. The control signals 70 and 80 output to the external ROM/;)Q are output to the bus 50.

テスト回路20は入力端子e、インバータh゛、ナント
ゲート11抵抗Rs、MOSトランジスタgからなる。
The test circuit 20 consists of an input terminal e, an inverter h, a Nandt gate 11 resistor Rs, and a MOS transistor g.

抵抗Rmと導通時のMOS)ジンジスタgのソース・ド
レイン間の抵抗との抵抗比は、入力端子eに印加する電
圧レベルV、によってインバータhおよびナントゲート
1の各出力レベルVh。
The resistance ratio between the resistance Rm and the resistance between the source and drain of the MOS resistor g when conductive is determined by the output level Vh of the inverter h and the Nandt gate 1 depending on the voltage level V applied to the input terminal e.

Vlが表−2のモードM1〜Mml=なるようにあらか
じめ設定されている。
Vl is set in advance so that the modes M1 to Mml in Table 2 are satisfied.

表−ま ただし、表−2のモードMs 〜Ms 、 H、L 、
 HVはそれぞれ表−1の同一記号のものな示す。なお
、CPU30でスタンバイ状態への要求が発生したとき
にローレベルとなり、スタンバイ要求が発生していない
ときにはハイレベルであるスタンバイ信号fがCPU6
0からテスト回路201=出力される。
Table-2 However, the modes of Table-2 are Ms ~ Ms, H, L,
HVs are shown with the same symbol in Table 1. Note that the standby signal f, which is low level when a request to enter the standby state is generated in the CPU 30 and high level when no standby request is generated, is transmitted to the CPU 6.
0 to test circuit 201=output.

次::、本実施例の動作を説明する。スタンバイ要求が
発生していなければ、スタンバイ信号fはハイレベルで
あるので、MOSトランジスタgはオン状態であり、入
力端子eの電圧レベルV・にしたがって表−2に示した
モードMl〜Msの各状態となる。次(=、スタンバイ
状態への要求が発生した場合、cpU30はマイクロコ
ンピュータ10をスタンバイ状態にするとともに、スタ
ンバイ信号fをローレベルにしてMOSトランジスタg
をオフさせ、入力端子CからGNDへ流れ込む電流を遮
断する。
Next::The operation of this embodiment will be explained. If a standby request has not occurred, the standby signal f is at a high level, so the MOS transistor g is in the on state, and each of the modes Ml to Ms shown in Table 2 is activated according to the voltage level V of the input terminal e. state. Next (=, When a request to enter the standby state occurs, the cpu 30 puts the microcomputer 10 into the standby state, and also sets the standby signal f to low level to the MOS transistor g.
is turned off, cutting off the current flowing from input terminal C to GND.

ところでスタンバイ状態になっても、入力端子eの電圧
レベルV・がハイレベルであればインバータh、ナント
ゲート五の出力Vh 、 V4はそれぞれローレベル、
ハイレベルであってモードMSが保持され、また入力端
子eの電圧レベルV・がローレベルであれはインバータ
h、ナンドゲートムの出力vh I vlはともにハイ
レベルであってモードM2が保持されているので、スタ
ンバイ状態が解除されるとすぐ)二番モードM1. M
sの動作を行なうことができる。
By the way, even in the standby state, if the voltage level V of input terminal e is high level, the outputs Vh and V4 of inverter h and Nant gate 5 are low level, respectively.
If the voltage level V of the input terminal e is at a low level, the outputs of the inverter h and the NAND gate are both at a high level and mode MS is maintained, so mode M2 is maintained. , as soon as the standby state is released) second mode M1. M
s can be performed.

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

本発明は、以上説明したように、スタンバイ状態(二お
けるテスト回路のテスト端子からの電流の流れ込みを防
ぐことができるので、電力消費を抑えたテスト回路を提
供することができ弼幸キマイクロコンピュータの低消費
電力化が達成される。
As explained above, the present invention can prevent current from flowing from the test terminals of the test circuit in the standby state (secondary state), thereby providing a test circuit with reduced power consumption. Low power consumption is achieved.

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

第1図は本発明の一実施例(二係るテスト回路を内蔵し
たマイクロコンピュータの要部ブロック図、第2図は従
来のテスト回路を内蔵したマイクロコンピュータの要部
ブロック図である。 i、io・・・マイクロコンピュータ 2.20・・・テスト回路 3.60・・・CPU 4.40・・・内部ROM 5.50・・・パス 6160・・・外部ROM 7.8,70.80・・・制御信号 c、e・・・テスト端子 a、b、h・・・インバータ f・・・スタンバイ信号 g・・・MOSトランジスタ i・・・ナントゲート Rs 、 Rt 、 Rs・・・抵抗。 特許出願人   日本電気株式会社 第1図 5P+2図
FIG. 1 is a block diagram of main parts of a microcomputer incorporating a test circuit according to an embodiment of the present invention (2), and FIG. 2 is a block diagram of main parts of a microcomputer incorporating a conventional test circuit. i, io ...Microcomputer 2.20...Test circuit 3.60...CPU 4.40...Internal ROM 5.50...Path 6160...External ROM 7.8, 70.80...・Control signals c, e... Test terminals a, b, h... Inverter f... Standby signal g... MOS transistor i... Nant gate Rs, Rt, Rs... Resistor. Patent application People NEC Corporation Figure 1 5P+2

Claims (1)

【特許請求の範囲】[Claims] 入力端子と基準電位との間に直列に接続された複数の抵
抗を有し、各抵抗の接続点を出力端子とするマイクロコ
ンピュータのテスト回路において、前記複数の抵抗のう
ち少なくとも1個はCPUから出力されるスタンバイ信
号によってゲート電極が制御されるMOSトランジスタ
から構成されることを特徴とするテスト回路。
In a microcomputer test circuit having a plurality of resistors connected in series between an input terminal and a reference potential, and in which the connection point of each resistor is an output terminal, at least one of the plurality of resistors is connected to the CPU. A test circuit comprising a MOS transistor whose gate electrode is controlled by an output standby signal.
JP15360284A 1984-07-24 1984-07-24 Test circuit Granted JPS6130778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15360284A JPS6130778A (en) 1984-07-24 1984-07-24 Test circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15360284A JPS6130778A (en) 1984-07-24 1984-07-24 Test circuit

Publications (2)

Publication Number Publication Date
JPS6130778A true JPS6130778A (en) 1986-02-13
JPH0544051B2 JPH0544051B2 (en) 1993-07-05

Family

ID=15566069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15360284A Granted JPS6130778A (en) 1984-07-24 1984-07-24 Test circuit

Country Status (1)

Country Link
JP (1) JPS6130778A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5884330A (en) * 1981-11-13 1983-05-20 Canon Inc Input circuit of microprocessor
JPS5928986A (en) * 1982-08-10 1984-02-15 松下電工株式会社 Outer blade of electric razor and production thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5884330A (en) * 1981-11-13 1983-05-20 Canon Inc Input circuit of microprocessor
JPS5928986A (en) * 1982-08-10 1984-02-15 松下電工株式会社 Outer blade of electric razor and production thereof

Also Published As

Publication number Publication date
JPH0544051B2 (en) 1993-07-05

Similar Documents

Publication Publication Date Title
US5184031A (en) Semiconductor integrated circuit
KR910000738B1 (en) Semiconductor integrated circuit adapted to carry out operation test
US5880593A (en) On-chip substrate regulator test mode
EP0364925A1 (en) Semiconductor integrated circuit having i/o terminals allowing independent connection test
JP2536871B2 (en) Off-chip drive circuit
KR880014482A (en) Semiconductor integrated circuit device
JPH04290975A (en) Integrated circuit having self-contained electric current testing function and method for testing electric current thereof
JP2906073B2 (en) LSI including DC test circuit
JPS6130778A (en) Test circuit
JPH1173800A (en) Semiconductor device and its testing method
US5212410A (en) Register circuit in which a stop current may be measured
JP3170583B2 (en) Semiconductor integrated circuit testing method and apparatus
JP3235132B2 (en) Semiconductor integrated circuit
JPH05259879A (en) Input output buffer
JP2692555B2 (en) Self overcurrent protection circuit
JP3036962B2 (en) Integrated circuit test circuit
JP3116423B2 (en) Inspection circuit for output circuit
JPH03229314A (en) Power semiconductor device
JPS6324502Y2 (en)
KR20030025116A (en) A circuit for detecting of voltage
JPH0640112B2 (en) Power supply voltage detection hold circuit
JP3062117B2 (en) Semiconductor device
JP2712411B2 (en) Test circuit
JPH08254563A (en) Open error detection circuit for input pin
JPH0491466A (en) Semiconductor storage device

Legal Events

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