JPH02110792A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH02110792A
JPH02110792A JP63264555A JP26455588A JPH02110792A JP H02110792 A JPH02110792 A JP H02110792A JP 63264555 A JP63264555 A JP 63264555A JP 26455588 A JP26455588 A JP 26455588A JP H02110792 A JPH02110792 A JP H02110792A
Authority
JP
Japan
Prior art keywords
level
test terminal
terminal
test
microcomputer
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
JP63264555A
Other languages
Japanese (ja)
Inventor
Isao Takahashi
功 高橋
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP63264555A priority Critical patent/JPH02110792A/en
Publication of JPH02110792A publication Critical patent/JPH02110792A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To set plural modes with a single test terminal by setting three or more modes by discriminating the combination between the level of a reset terminal and the level of the test terminal. CONSTITUTION:The title microcomputer is composed of a microcomputer body 1, a gram counter 2, an internal ROM 3, an instruction register 4, an instruction decoder 5, an initializing circuit 6, a mode setting circuit 7 to output a control signal to the initializing circuit 6 and set various modes, an internal bus 8, a reset terminal 9, a test terminal 10, ports 11-13, and an external ROM. Further, three or more modes are set by discriminating the combination of the levels to be impressed to the reset terminal 9 and the test terminal 10 from an external part. Thus, plural modes can be set only by equipping the microcomputer with the single test terminal.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 この発明は外部メモリ・モード、内部メモリ・モードお
よびテスト・モード等の設定を単一の端子により行うこ
とが可能なワンチップマイクロコンピュータに関する。
Detailed Description of the Invention (a) Industrial Application Field The present invention relates to a one-chip microcomputer that can set external memory mode, internal memory mode, test mode, etc. using a single terminal. .

(ロ)従来の技術 プログラム・メモリをマスク・ロムとして内蔵するワン
チップマイクロコンピュータ(以下、単にマイクロコン
ピュータと称する)はパワーオンによりプログラム・メ
モリの実行を開始する。そこで、そのプログラム・メモ
リが正しくプログラムを記憶しているか否か、あるいは
マイクロコンピュータの諸機能が正常に動作をするか否
かの製品テストを行うには、プログラム・メモリの実行
を制御することが必要となる。また、プログラム・メモ
リおよびデータ・メモリの拡張が可能なマイクロコンピ
ュータでは、そのための制御端子も必要である。
(b) Conventional technology A one-chip microcomputer (hereinafter simply referred to as a microcomputer) that incorporates a program memory as a mask ROM starts executing the program memory when the power is turned on. Therefore, in order to perform product tests to determine whether the program memory stores programs correctly or whether the various functions of the microcomputer operate normally, it is necessary to control the execution of the program memory. It becomes necessary. In addition, a microcomputer that allows expansion of program memory and data memory also requires control terminals for this purpose.

これら3〜4種のモードを設定するため、これまでに内
部ロム・モードと外部ロム・モードを切り替え制御する
端子と、実行モードとテスト・モードとを切り替え制御
する端子の2つの端子を備えるマイクロコンピュータ、
あるいは単一のテスト端子を3値入力(例えばOV、5
V、10V)とし、テスト端子のレベルにより3種のモ
ードを設定するマイクロコンピュータが知られているが
、前者は制御端子が増加することによりポート数が制限
される欠点を有し、後者は特殊な入力レベルを持つ回路
が必要になると共に高耐圧化が必要となる欠点を有して
いる。
In order to set these three to four modes, microcontrollers have been equipped with two terminals: one for switching between internal ROM mode and external ROM mode, and the other for switching between execution mode and test mode. Computer,
Alternatively, a single test terminal can be used as a ternary input (e.g. OV, 5
V, 10V), and three types of modes are known depending on the level of the test terminal. However, the former has the disadvantage that the number of ports is limited due to the increase in the number of control terminals, and the latter This has the drawback that it requires a circuit with a high input level and also requires a high breakdown voltage.

(ハ)発明が解決しようとする課題 この発明はこのような点に鑑みてなされたものであって
、単一のテスト端子により複数のモードを設定すること
が可能なマイクロコンピュータを提供することにある。
(c) Problems to be Solved by the Invention The present invention has been made in view of the above points, and an object thereof is to provide a microcomputer that can set multiple modes using a single test terminal. be.

(二〉課題を解決するための手段 この発明は、リセット端子のレベルとテスト端子のレベ
ルの組み合わせ判別、あるいはテスト端子のレベルの変
化およびテスト端子の初期レベルの判別により3種以上
のモードが設定される点を特徴とする。
(2) Means for Solving the Problems This invention sets three or more modes by determining the combination of the level of the reset terminal and the level of the test terminal, or by determining the change in the level of the test terminal and the initial level of the test terminal. It is characterized by the fact that

(ホ)作用 上記構成は、単一のテスト端子への極普通の信号の入力
により複数のモードが設定されるよう作用する。
(e) Operation The above configuration operates so that a plurality of modes can be set by inputting an ordinary signal to a single test terminal.

(へ)実施例 第1図はこの発明の一実施例のブロック図であり、(1
)はマイクロコンピュータ本体、(2)はプログラム・
カウンタ(以下、PCと称する)、(3)は内部ロム、
(4)は命令レジスタ、(5)は命令デコーダ、(6)
は初期化回路、(7)は初期化回路(6)に制御信号を
出力すると共に各種のモードを設定するモード設定回路
、(8)は内部バス、(9)はリセット端子、(10)
はテスト端子、(11)〜(13)はポート、(14)
は外部ロムである。なお、マイクロコンピュータ本体(
1)の外部回路は一接続例を示している。
(f) Embodiment FIG. 1 is a block diagram of an embodiment of this invention.
) is the microcomputer body, (2) is the program/
counter (hereinafter referred to as PC), (3) is an internal ROM,
(4) is an instruction register, (5) is an instruction decoder, (6)
is an initialization circuit, (7) is a mode setting circuit that outputs a control signal to the initialization circuit (6) and sets various modes, (8) is an internal bus, (9) is a reset terminal, (10)
are test terminals, (11) to (13) are ports, (14)
is an external ROM. In addition, the microcomputer main body (
The external circuit 1) shows one connection example.

以下、第2図のタイミング・チャートを参照してモード
別に説明する。
Each mode will be explained below with reference to the timing chart of FIG.

〔1〕 内部ロム実行モード:テスト端子(10)を接
地した状態でパワーオン・リセットが行われると、内部
ロム(3)の命令が実行きれる。タイミング・チャート
を第2図(a)に示す。
[1] Internal ROM execution mode: When a power-on reset is performed with the test terminal (10) grounded, the instructions in the internal ROM (3) can be executed. A timing chart is shown in FIG. 2(a).

“L”レベルTESTを入力する入力バッファCP、の
“L”レベル出力TEST’がモード設定回路(7)に
入力されると、アンドゲートAN、およびA N aが
オフし、インバータIN、により反転された*TEST
は“H”レベルとなる。また、リセット端子電圧RES
が立ち上がり、時間T、に入力バッファのスレッショル
ド電圧V 1 k lになると、入力バッファCP、は
B ITレベルの*RE S ’を出力する。この*R
E S ’をインバータIN、により反転したRESは
時間T、以降″I、 +tレベルとなり、アンドゲート
AN、およびA N sをオフする。そして、このRE
Sと*T E S Tを入力するアンドゲートA N 
tの出力R8Tはvoの立ち上がる時間T、に立ち上が
り、時間T2て立ち下がる。このR8TはRSフリップ
フロップFFのリセット端子に入力され、R8Tの立ち
上がりエツジにてこれをリセットし、そのり出力を“H
”レベルとする。さらに、とのQ出力を入力するオアゲ
ートORのPCINT出力を″H′ルベルとする。“H
”レベルのPCINTはアンドゲートAN、をオンし、
インバータINKにより制御されるアンドゲートAN、
をオフする。さらに、R8Tは初期化回路(6)にも入
力されており、初期化回路(6)はR8Tが所定時間“
H1ルベルを継続すると、PSW、PC,レジスタ類を
初期化する。
When the "L" level output TEST' of the input buffer CP, which inputs the "L" level TEST, is input to the mode setting circuit (7), the AND gate AN and A N a are turned off, and inverted by the inverter IN. *TEST
becomes “H” level. In addition, the reset terminal voltage RES
rises and reaches the input buffer threshold voltage V 1 k l at time T, the input buffer CP outputs *RES' at the B IT level. This *R
RES, which is obtained by inverting ES' by the inverter IN, becomes the ``I, +t level after time T, turning off the AND gate AN and ANs.
AND gate A N that inputs S and *T E S T
The output R8T of t rises at time T when vo rises and falls at time T2. This R8T is input to the reset terminal of the RS flip-flop FF, and it is reset at the rising edge of R8T, and the output is “H”.
Further, the PCINT output of the OR gate OR which inputs the Q output of is set to the "H" level. “H
” level PCINT turns on the AND gate AN,
and gate AN controlled by inverter INK,
Turn off. Furthermore, R8T is also input to the initialization circuit (6), and the initialization circuit (6) inputs R8T for a predetermined period of time.
When the H1 level is continued, the PSW, PC, and registers are initialized.

一方、*RE S ’と“L ITレベルのTEST”
が入力される排他オアゲートEORの出力IRINTは
*RES’がL I+レベルである時間T I” T 
*には“L”レベルであり、時間T、以降は“H”レベ
ルとなる。そこで時間T、以降は“H”レベルのI R
I NTにより、アンドゲートA N aはオンし、イ
ンバータIN、により制御されるアンドゲートA N 
sはオフする。
On the other hand, *RES' and “LIT level TEST”
The output IRINT of the exclusive OR gate EOR to which
It is at "L" level at *, and becomes "H" level from time T onwards. Then, at time T, from then on, the I R is at "H" level.
I NT turns on the AND gate A N a , and the AND gate A N a controlled by the inverter IN turns on.
s is off.

したがって、時間T、にマイクロコンピュータが初期化
されると、PC(2)によって0番地から順に内部ロム
(3)がアクセスされ、その命令がアンドゲートA N
 4、命令レジスタ(4)を介して命令デコーダ(5)
に転送され、実行される。
Therefore, when the microcomputer is initialized at time T, the internal ROM (3) is sequentially accessed from address 0 by the PC (2), and its instructions are passed through the AND gate A N
4. Instruction decoder (5) via instruction register (4)
transferred to and executed.

〔2〕 内部ロム読出しモード:リセット端子(9)を
接地すると共にテスト端子(10)に“H”レベルを与
えることにより、内部ロム(3)のデータがポート出力
される。タイミング・チャートを第2図(b)に示す。
[2] Internal ROM read mode: By grounding the reset terminal (9) and applying an "H" level to the test terminal (10), data in the internal ROM (3) is output to the port. A timing chart is shown in FIG. 2(b).

TEST端子(10)が“H′ルベルであるため入力バ
ッファCP、の出力TEST’がH”レベルとなり、ま
たリセット端子(9)の接地によりRESおよび*RE
 S ’がL”レベルとなる。そこで、*RES’を入
力するインバータIN、の出力RESがH”レベルとな
り、RESとTEST’とを入力するアンドゲートA 
N sは“HITレベルのROMRD信号を出力する。
Since the TEST terminal (10) is at the "H" level, the output TEST' of the input buffer CP is at the "H" level, and the grounding of the reset terminal (9) causes the RES and *RE
S' becomes L" level. Then, the output RES of inverter IN which inputs *RES' becomes H" level, and AND gate A which inputs RES and TEST'
Ns outputs a ROMRD signal of "HIT level.

ROMRDが“H”レベルになると、命令デコーダ(5
〉のデコードが禁止されると共にアンドゲートAN、を
オンする。さらに、図示しない制御回路によりPC(2
)により0番地から順に内部ロム(3)がアクセスされ
、内部ロム(3)の全てのデータがデコードされること
なく、命令レジスタ(4)、内部バス(8)を介して所
定のポート(13)に出力する。
When ROMRD becomes “H” level, the instruction decoder (5
> decoding is prohibited and AND gate AN is turned on. Furthermore, a control circuit (not shown) controls the PC (2
), the internal ROM (3) is accessed in order from address 0, and all data in the internal ROM (3) is accessed via the instruction register (4) and internal bus (8) to a predetermined port (13) without being decoded. ).

〔3〕 外部ロム実行モード:テスト端子(10)をリ
セット端子(9)に接続した状態でパワーオン・リセッ
トが行われると、所定のポートからPCデータが出力さ
れ、それによりアクセスされる外部ロム(14)の命令
が実行される。そのタイミング・チャートを第2図(c
)に示す。
[3] External ROM execution mode: When a power-on reset is performed with the test terminal (10) connected to the reset terminal (9), PC data is output from a predetermined port, and the external ROM that is accessed by it is output. The instruction (14) is executed. The timing chart is shown in Figure 2 (c
).

入力バッファCP□、CP、の閾値電圧vlbI。Threshold voltage vlbI of input buffer CP□, CP.

V lh t ハV t h I> V t h * 
ニ設定すtL テオリ、ソノ出力*RE S ’とTE
ST’は僅かな時間差の時間Tt+Tsで立ち上がる。
V t h I> V t h *
2 setting tL theory, sono output *RE S' and TE
ST' rises at a time Tt+Ts with a slight time difference.

これらをそれぞれインバータIN、、IN、により反転
したRESおよび*TESTを入力するアンドゲートA
N、の出力R8Tは電源電圧v0が立ち上がる時間TI
で立ち上がりTEST’が立ち上がる時間T、で立ち下
がる。このR8TはRSフリップフロップFFをリセッ
トし、そのQ出力を“H”とすると共に初期化回路(6
)に入力される。
AND gate A which inputs RES and *TEST which are inverted by inverters IN, IN, respectively.
The output R8T of N is the time TI when the power supply voltage v0 rises.
It rises at TEST' and falls at the time T at which TEST' rises. This R8T resets the RS flip-flop FF, sets its Q output to "H", and also sets the initialization circuit (6
) is entered.

さて、時間T、にはマイクロコンピュータは初期化が終
了し、内部クロックに基づいて動作を開始する。しかし
、時間T、にはマイクロコンピュータは数クロックから
なる命令サイクルの1クロツク目の、例えばPC(2)
のデータを図示しないPCレジスタにセットし、PC(
2)のデータを+1する動作をしている。そこで、*R
ES’とTEST′を入力する排他オアゲートEORが
T t−T s間で“H”レベルのI RI NTを出
力しても、現実的にはI RI NTは“L 11レベ
ルと考えることができる。そして、L”レベルのI R
I NTによりアンドゲートA N 4がオフし、イン
バータ■N4により制御されるアンドゲートAN、がオ
ンする。
Now, at time T, the microcomputer completes its initialization and starts operating based on the internal clock. However, at time T, the microcomputer, for example, PC (2)
Set the data in the PC register (not shown), and
The data in 2) is incremented by 1. Therefore, *R
Even if the exclusive OR gate EOR inputting ES' and TEST' outputs IRINT at "H" level between Tt and Ts, IRINT can realistically be considered to be at "L11 level". .Then, the L” level I R
The AND gate AN4 is turned off by INT, and the AND gate AN controlled by the inverter N4 is turned on.

また、インバータIN、の反転*RE S ’とTES
T’が入力されるアンドゲートA N *はTt  T
s間で“H”となるパルスを出力し、RSフリップフロ
ップFFをセットする。これによりそのQ出力が“L”
となり、オアゲートORの出力PCINTが時間T、以
降“L”レベルとなる。そして、“L”レベルのPCI
NTによりアントゲ−)AN、がオフし、インバータI
N、により制御されるアンドゲートA N aがオンす
る。
Also, the inversion of inverter IN, *RES' and TES
The AND gate A N * to which T' is input is Tt T
It outputs a pulse that becomes "H" for s and sets the RS flip-flop FF. This causes the Q output to be “L”
Therefore, the output PCINT of the OR gate OR becomes "L" level from time T onwards. And “L” level PCI
Ant game) AN is turned off by NT, and inverter I
The AND gate A N a controlled by N is turned on.

したがって、時間T、に初期化が終了し、時間T、にP
C(2)のデータが時間T、にアンドゲートA N a
を介してポート(11)に出力される。そして、それに
より外部ロム(14)が0番地から順にアクセスされ、
その命令がポート(12)、アンドゲートA N a、
命令レジスタ(4)を介して命令デコーダ(5)にセッ
トされ、実行される。
Therefore, initialization ends at time T, and P
The data of C(2) is applied to the AND gate A N a at time T.
It is output to port (11) via. Then, the external ROM (14) is accessed in order from address 0,
The instruction is port (12), AND gate A N a,
It is set in the instruction decoder (5) via the instruction register (4) and executed.

〔4〕 外部命令印加テスト・モード:テスト端子(1
0)を接地した状態でパワーオン・リセットし、しかる
後にテスト端子(lO)をH”レベルとすることにより
、PC(2)のデータに無関係なテスターの命令を実行
する。そのタイミング・チャートを第2図(d)に示す
[4] External command application test mode: Test terminal (1
By power-on resetting with 0) grounded and then setting the test terminal (lO) to H" level, the tester's commands unrelated to the data on the PC (2) are executed. See the timing chart below. It is shown in FIG. 2(d).

TEST’が*RESに遅れて立ち上がることにより、
インバータINgの反転*RESとTEST’を入力す
るアンドゲートAN、は”H”レベルを出力することが
ない。そこで、RSフフリップフロップFFはR8Tの
立ち上がりによりリセットされたままであり、そのQ出
力は継続的に“H”レベルとなる。一方、TEST’と
*RESを入力する排他オアゲートEOHの出力I R
I NTはTEST’の立ち上がる時間T、以降はL”
レベルとなる。
As TEST' rises later than *RES,
The AND gate AN inputting the inverted *RES and TEST' of the inverter INg never outputs the "H" level. Therefore, the RS flip-flop FF remains reset by the rise of R8T, and its Q output remains at the "H" level. On the other hand, the output I R of the exclusive OR gate EOH which inputs TEST' and *RES
INT is the rising time T of TEST', and thereafter it is L”
level.

そこで、テスト端子(10)の立ち上げ後、テスター(
図示せず)より命令をポート(12)に出力することに
よりその命令が、アンドゲートA N 6、命令レジス
タ(4)を介して命令デコーダ(5)にセットされ、実
行きれる。
Therefore, after starting up the test terminal (10), the tester (
By outputting an instruction to a port (12) from a port (not shown), the instruction is set in an instruction decoder (5) via an AND gate A N 6 and an instruction register (4), and is executed.

各モード時の真理値を下表に示す。The truth values in each mode are shown in the table below.

続いて第3図を参照してモード設定回路の変形例を説明
する。
Next, a modification of the mode setting circuit will be explained with reference to FIG.

このモード設定回路は、テスト端子(10)のレベルが
R8Tの立ち上がり時に“H“レベルであるか ml、
”レベルであるか、およびテスト端子(10)のレベル
が“L 91から“H”に変化するすることより各種モ
ードを判別する。以下モード別に説明する。
This mode setting circuit determines whether the level of the test terminal (10) is "H" level at the rise of R8T or not.
The various modes are determined based on whether the test terminal (10) is at "level" and whether the level of the test terminal (10) changes from "L91" to "H". Each mode will be explained below.

〔1〕 内部ロム実行モード:テスト端子(10)が接
地された状態でパワーオン・リセットすることにより内
部ロムが実行される。そのタイミング・チャートを第4
図(a)に示す。
[1] Internal ROM execution mode: The internal ROM is executed by power-on reset with the test terminal (10) grounded. The timing chart is 4th
Shown in Figure (a).

DフリッププロップFF、はシステム・クロックのポジ
ティブ・エツジにてR8T″H”をラッチする。すなわ
ち、DフリップフロップFFIはvoのポジティブ・エ
ツジを1システム・クロック遅延する。このQ出力はD
フリッププロップFF、のトリガ端子φに入力されてお
り、フリップフロップFF2は入力バッファCP、の出
力をフリップフロップFF、のQ出力の立ち上がりでラ
ッチする。入力バッファCP tの出力TEST’は継
続的に“L”レベルであり、フリッププロップFF、に
より“L”レベルが保存されると共にL”レベルのRO
MRDを出力する。また、TEST’を反転するインバ
ータIN+tはH”ルベルを出力し、オアゲートOR,
、を介して“H1ルベルのI RI NTおよびPCI
NTを生成する。
The D flip-flop FF latches R8T ``H'' at the positive edge of the system clock. That is, D flip-flop FFI delays the positive edge of vo by one system clock. This Q output is D
It is input to the trigger terminal φ of the flip-flop FF, and the flip-flop FF2 latches the output of the input buffer CP at the rising edge of the Q output of the flip-flop FF. The output TEST' of the input buffer CP t is continuously at the "L" level, and the flip-flop FF preserves the "L" level, and the RO is at the "L" level.
Output MRD. In addition, the inverter IN+t that inverts TEST' outputs an H" level, and the OR gate OR,
, via “H1 Lebel’s I RI NT and PCI
Generate NT.

〔2〕 内部ロム読出しモード:テスト端子(10)を
“H”レベルとした状態でパワーオン・リセットするこ
とにより、内部ロム(3)のデータがポート出力される
。タイミング・チャートを第4図(b)に示す。
[2] Internal ROM read mode: By performing a power-on reset with the test terminal (10) set to the "H" level, the data in the internal ROM (3) is output to the port. A timing chart is shown in FIG. 4(b).

リセット時にテス端子(10)が“H”ルベルであるた
め、ROMRDを生成するDフリップフロップF F 
tは“H”レベルのTEST’をラッチし、“HIIレ
ベルのROMRDを生成する。そして、これを入力する
オアゲートOR,、により“H1ルベルのI RI N
TおよびPCINTを生成する。
Since the test terminal (10) is at "H" level at reset, the D flip-flop F F which generates ROMRD
t latches "H" level TEST' and generates "HII level ROMRD. Then, by the OR gate OR, which inputs this, "H1 level I RI N
Generate T and PCINT.

〔3〕 外部ロム実行、外部命令印加モード:テスト端
子(10)をリセット端子(9〉に接続した状態でパワ
ーオン・リセットが行われると、所定のポートからPC
データが出力され、それによりアクセスされる外部ロム
(14)の命令が実行される。
[3] External ROM execution, external command application mode: When a power-on reset is performed with the test terminal (10) connected to the reset terminal (9>), the PC is
The data is output, and the command of the external ROM (14) accessed by the data is executed.

そのタイミング・チャートを第4図(c)に示す。The timing chart is shown in FIG. 4(c).

DフリッププロップFF、はテスト端子(10)の初期
レベル“L”をラッチしており、ROMRDは“L I
Iレベルである。入力バッファcp、、cp、のm値V
lb+ 、 Vlbald Vth+> V+h*に設
定されており、RESが立ち上がると、時間T、で入力
バッファCP、がオンし、これに遅れる時間T。
The D flip-prop FF latches the initial level “L” of the test terminal (10), and the ROMRD latches the “L” level of the test terminal (10).
It is I level. m value V of input buffer cp, , cp,
lb+, Vlbald Vth+>V+h* is set, and when RES rises, input buffer CP turns on at time T, followed by time T.

で入力バッファCPIがオンする。したがって、インバ
ータ11’J+thの出力は初期化が終了する時間T、
以前の時間T、にHITレベルから“L”レベルに変化
する。これにより、オアゲートORは“L”レベルのI
 RI NTおよびPCINTを生成する。
The input buffer CPI is turned on. Therefore, the output of the inverter 11'J+th is the time T when the initialization is completed,
At the previous time T, the level changes from the HIT level to the "L" level. As a result, the OR gate OR is set to “L” level I
Generate RI NT and PCINT.

変形例の各モード時の真理値を下表に示す。The truth values in each mode of the modified example are shown in the table below.

(ト)発明の効果 以上述べたように、 この発明によれば単一のテ スト端子を備えるのみで、しかも極普通の信号の入力に
より複数のモードを設定し得るマイクロコンピュータを
提供することができる。
(G) Effects of the Invention As described above, according to the present invention, it is possible to provide a microcomputer that is equipped with only a single test terminal and can set multiple modes by inputting extremely ordinary signals. .

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

第1図はこの発明の一実施例のブロック図、第2図(a
) 、 (b) 、 (c) 、 (d)は、それぞれ
内部ロム実行時、内部ロム読出し時、外部ロム実行時お
よび外部命令印加時のタイミング・チャート、第3図は
モード設定回路の変形例のブロック図、 第4図(a) 、 (b) 、 (c)は、それぞれ変
形例の内部ロム実行時、内部ロム読出し時、外部ロム実
行時および外部命令印加時のタイミング・チャートであ
る。 (1)・・・マイクロコンピュータ、(2)・・・プロ
グラム・カウンタ、(3)・・・内部ロム、(4)・・
・命令レジスタ、 (5)・・・命令デコーダ、(6)
・・・初期化回路、 (7)・・・モード設定回路、 
(8)・・・内部バス、(14)・・・外部ロム。 第2rIA(c) 第2図(0) 家RES’ 第2図(b) ↑1 z T3 第2図(d) 第3図 第4図(0) CINT 第4図(b) 第4図(C) OMRD mTNT 1f−一一一一]
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG.
), (b), (c), and (d) are timing charts at the time of executing the internal ROM, reading the internal ROM, executing the external ROM, and applying an external command, respectively. Figure 3 is a modified example of the mode setting circuit. The block diagram of FIGS. 4(a), 4(b), and 4(c) are timing charts at the time of executing the internal ROM, reading the internal ROM, executing the external ROM, and applying an external command in the modified example, respectively. (1)...Microcomputer, (2)...Program counter, (3)...Internal ROM, (4)...
・Instruction register, (5)...Instruction decoder, (6)
...Initialization circuit, (7)...Mode setting circuit,
(8)...Internal bus, (14)...External ROM. 2nd rIA (c) Figure 2 (0) House RES' Figure 2 (b) ↑1 z T3 Figure 2 (d) Figure 3 Figure 4 (0) CINT Figure 4 (b) Figure 4 ( C) OMRD mTNT 1f-1111]

Claims (5)

【特許請求の範囲】[Claims] (1)プログラムを固定的に記憶するプログラム・メモ
リを内蔵するマイクロコンピュータに於いて、リセット
端子とテスト端子に接続されたモード設定回路を設け、
前記リセット端子とテスト端子に外部から印加されるレ
ベルの組み合わせ判別により3種以上のモードが設定さ
れることを特徴とするマイクロコンピュータ。
(1) In a microcomputer with a built-in program memory that permanently stores programs, a mode setting circuit connected to a reset terminal and a test terminal is provided,
A microcomputer characterized in that three or more modes are set by determining a combination of levels applied externally to the reset terminal and the test terminal.
(2)テスト端子のレベルの変化およびテスト端子の初
期レベルの判別により複数のモードが設定される請求項
1記載のマイクロコンピュータ。
(2) A microcomputer according to claim 1, wherein a plurality of modes are set by changing the level of the test terminal and determining the initial level of the test terminal.
(3)リセット端子電圧およびテスト端子電圧を弁別す
るそれぞれの比較器と、それぞれの比較器出力を入力す
る排他オアゲートと、リセット端子電圧を弁別する比較
器の反転出力とテスト端子電圧を弁別する比較器出力の
アンド論理によりセットされるフリップフロップからな
り、前記排他オアゲートにより内部ロムと外部ロムが選
択され、前記排他オアゲートとフリップフロップ出力の
オア論理信号によりプログラム・カウンタのデータがポ
ートに選択出力される請求項1記載のマイクロコンピュ
ータ。
(3) Comparators that discriminate between the reset terminal voltage and test terminal voltage, exclusive OR gates that input the respective comparator outputs, and a comparison that discriminates between the inverted output of the comparator that discriminates the reset terminal voltage and the test terminal voltage. The internal ROM and external ROM are selected by the exclusive OR gate, and the data of the program counter is selected and output to the port by the OR logic signal of the exclusive OR gate and the flip-flop output. 2. The microcomputer according to claim 1.
(4)テスト端子レベルおよびテスト端子の初期レベル
に基づいて内部ロム・データと外部ロム・データを命令
レジスタに選択入力する手段、テスト端子レベルに基づ
いてPCデータをポートに選択出力する手段、およびテ
スト端子の初期レベルに基づいて命令レジスタのデータ
をポートに選択出力する手段を備える請求項1記載のマ
イクロコンピュータ。
(4) means for selectively inputting internal ROM data and external ROM data to an instruction register based on the test terminal level and the initial level of the test terminal; means for selectively outputting PC data to the port based on the test terminal level; 2. The microcomputer according to claim 1, further comprising means for selectively outputting the data of the instruction register to the port based on the initial level of the test terminal.
(5)テスト端子をリセット端子に接続することにより
モードの1つが選択されることを特徴とする請求項1記
載のマイクロコンピュータ。
5. The microcomputer according to claim 1, wherein one of the modes is selected by connecting the test terminal to the reset terminal.
JP63264555A 1988-10-20 1988-10-20 Microcomputer Pending JPH02110792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63264555A JPH02110792A (en) 1988-10-20 1988-10-20 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63264555A JPH02110792A (en) 1988-10-20 1988-10-20 Microcomputer

Publications (1)

Publication Number Publication Date
JPH02110792A true JPH02110792A (en) 1990-04-23

Family

ID=17404903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63264555A Pending JPH02110792A (en) 1988-10-20 1988-10-20 Microcomputer

Country Status (1)

Country Link
JP (1) JPH02110792A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999052033A1 (en) * 1998-04-03 1999-10-14 Hitachi, Ltd. Semiconductor device
EP3363701A1 (en) 2017-02-17 2018-08-22 Nissin Kogyo Co., Ltd. Brake fluid pressure control device for vehicle and method of manufacturing brake fluid pressure control device for vehicle

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999052033A1 (en) * 1998-04-03 1999-10-14 Hitachi, Ltd. Semiconductor device
US6708304B1 (en) 1998-04-03 2004-03-16 Renesas Technology Corporation Semiconductor device
EP3363701A1 (en) 2017-02-17 2018-08-22 Nissin Kogyo Co., Ltd. Brake fluid pressure control device for vehicle and method of manufacturing brake fluid pressure control device for vehicle

Similar Documents

Publication Publication Date Title
US5438672A (en) Microcontroller emulator for plural device architecture configured by mode control data and operated under control code transmitted via same switching bus
JPH02168320A (en) Microprocessor
SU1541619A1 (en) Device for shaping address
US5535376A (en) Data processor having a timer circuit for performing a buffered pulse width modulation function and method therefor
KR920007253B1 (en) Controlling apparatus for micro-program
JPH02110792A (en) Microcomputer
US20120173762A1 (en) Method for input output expansion in an embedded system utilizing controlled transitions of first and second signals
US20040107388A1 (en) Microcomputer
RU2034329C1 (en) Device for control
SU1151962A1 (en) Microprogram control device
SU1501065A1 (en) Device for monitoring program run
SU1552189A1 (en) Device for monitoring programs
SU1170457A1 (en) Microprogram control device
SU983712A1 (en) Program run checking device
SU1365082A1 (en) Multiprogram self-monitoring control device
KR100186445B1 (en) Program developing apparatus
SU1179342A1 (en) Device for restoring operation of processor
JPH09311849A (en) One-chip microcomputer
SU970367A1 (en) Microprogram control device
SU949657A1 (en) Microprogram control device
SU1410039A1 (en) Storage addressing device
KR0163726B1 (en) Multi-ram-break-condition set circuit using external memory
JPS5925251B2 (en) Creation method for arithmetic control signals in microprogram-controlled electronic computers
JPH0440733B2 (en)
SU1103230A1 (en) Microprogram control device