JP3177975B2 - One-chip microcomputer - Google Patents

One-chip microcomputer

Info

Publication number
JP3177975B2
JP3177975B2 JP25863888A JP25863888A JP3177975B2 JP 3177975 B2 JP3177975 B2 JP 3177975B2 JP 25863888 A JP25863888 A JP 25863888A JP 25863888 A JP25863888 A JP 25863888A JP 3177975 B2 JP3177975 B2 JP 3177975B2
Authority
JP
Japan
Prior art keywords
signal
input
mode
address
program
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.)
Expired - Fee Related
Application number
JP25863888A
Other languages
Japanese (ja)
Other versions
JPH02105276A (en
Inventor
久 藤原
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 JP25863888A priority Critical patent/JP3177975B2/en
Publication of JPH02105276A publication Critical patent/JPH02105276A/en
Application granted granted Critical
Publication of JP3177975B2 publication Critical patent/JP3177975B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は1チップマイクロコンピュータに関し、特に
外部からプログラム可能なメモリとマイクロプロセッサ
とを単一のチップ上に集積した1チップマイクロコンピ
ュータに関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a one-chip microcomputer, and more particularly to a one-chip microcomputer in which an externally programmable memory and a microprocessor are integrated on a single chip.

〔従来の技術〕[Conventional technology]

従来、外部からプログラム可能なメモリ(例えばEPRO
M,E2PROM等、以下PROMと記す)を同一チップ上に有する
マイクロコンピュータでは、メモリのプログラム書込み
のためにプログラム電圧をメモリに印加するための制御
回路と、アドレス及びプログラムを入力する入力ポー
ト、並びに書込まれたプログラムをチェックするため外
部へ読出す出力ポートが必要であり第7図のような構成
がとられていた。
Conventionally, externally programmable memory (for example, EPRO
A microcomputer having an M, E 2 PROM, or the like, hereinafter referred to as a PROM) on the same chip has a control circuit for applying a program voltage to the memory for writing the program into the memory, and an input port for inputting an address and a program. In order to check the written program, an output port for reading out to the outside is required, and the configuration as shown in FIG. 7 is employed.

第7図はノーマル・モードとプログラム・モードの切
替えを指示するモード設定信号MODE、プログラム制御信
号▲▼及びプログラムの読出しすなわちベリフ
ァイを指示する出力イネーブル信号▲▼が入力する
制御回路14、書込回路12,入力バッファ13を含むPROM10
と、図示しないCPUとを同一チップ上に集積化した1チ
ップマイクロコンピュータのブロック図である。
FIG. 7 shows a control circuit 14 to which a mode setting signal MODE for instructing switching between a normal mode and a program mode, a program control signal ▼, and an output enable signal ▲ for instructing program reading, ie, verifying, are inputted, and a writing circuit. 12, PROM 10 including input buffer 13
FIG. 1 is a block diagram of a one-chip microcomputer in which a CPU (not shown) is integrated on the same chip.

通常、かかる1チップマイクロコンピュータにはPROM
10に書込まれるべきプログラムが入力される入力ポート
及びそのプログラムが書込まれるべき番地情報(アドレ
ス)が入力される入力ポートが必要である。さらに、書
込まれたプログラムが正しいか否かをチェックするため
にPROM10に書込まれたプログラムを外部に読出す機能
(ベリファイ)も要求され、そのための出力ポートも必
要である。第7図に示したポート回路20,30はPROMプロ
グラムモードではそれぞれアドレス入力のための入力ポ
ート,プログラム書込及び読出しのための入出力ポート
として機能するがこれらのポート回路は通常のマイクロ
コンピュータとしての動作時はマイクロコンピュータが
制御するポート回路として機能する。1チップマイクロ
コンピュータである以上、チップ上に集積化されるハー
ドウェアはできる限り小さくしなければならない。その
ためにプログラム及びベリファイのためのアドレス及び
プログラムの入出力ポートはマイクロコンピュータが本
来必要とするポートと共用している。
Usually, such a one-chip microcomputer has a PROM
An input port for inputting a program to be written in 10 and an input port for inputting address information (address) in which the program is to be written are required. Further, a function (verify) of reading out the program written in the PROM 10 to the outside in order to check whether or not the written program is correct is also required, and an output port therefor is also required. The port circuits 20 and 30 shown in FIG. 7 function as an input port for inputting an address and an input / output port for writing and reading out a program in the PROM program mode. During the operation of, it functions as a port circuit controlled by the microcomputer. As a one-chip microcomputer, the hardware integrated on the chip must be as small as possible. For this purpose, the address for program and verification and the input / output port of the program are shared with the ports originally required by the microcomputer.

すなわち、モード設定信号MODEが“0"のときは、通常
の動作モードになり、ポート回路20,30及び制御回路14
はCPU(図示しない)の指示に従う。
That is, when the mode setting signal MODE is “0”, the normal operation mode is set, and the port circuits 20 and 30 and the control circuit 14 are controlled.
Follow the instructions of the CPU (not shown).

モード設定信号MODEが“1"のときはプログラム・モー
ドになり、ポート回路20はアドレス入力用のポート回路
として機能する。制御回路14は出力イネーブル信号▲
▼、プログラム制御信号▲▼の指示に従う。
ポート回路30は、▲▼が“0"ならば出力ポート、
“1"ならば入力ポートとしてそれぞれ機能する。
When the mode setting signal MODE is "1", the mode is the program mode, and the port circuit 20 functions as a port circuit for inputting an address. The control circuit 14 outputs the output enable signal ▲
▼, follow the instructions of the program control signal ▲ ▼.
The port circuit 30 is an output port if ▲ ▼ is “0”,
If “1”, each functions as an input port.

このようなPROMを内蔵したマイクロコンピュータは製
造工程及び組立工程中に発生する不良を検出するために
LSIテスタ等によりマイクロコンピュータ内部のすべて
の機能がテストされる。このテストのひとつとして内蔵
PROMのプログラム及びベリファイテストがある。第7図
においてLSIテスタによりPROM10にプログラムを書込む
場合、端子群21から入力したアドレス(ADDR)がアドレ
スバス50を介しPROM10のアドレスデコーダ11に入力され
る。また、端子群31からは書込まれるべきプログラムデ
ータ(DATA)がデータバス60を介して入出力バッファ13
に入力される。ここでプログラム制御信号▲▼
がロウレベル(“0")になるとPROM10の指定されたメモ
リセルにプログラムの書込みが行なわれる。
A microcomputer incorporating such a PROM is used to detect defects that occur during the manufacturing and assembly processes.
All functions inside the microcomputer are tested by an LSI tester or the like. Built in as one of these tests
There are PROM program and verify test. In FIG. 7, when a program is written to the PROM 10 by the LSI tester, the address (ADDR) input from the terminal group 21 is input to the address decoder 11 of the PROM 10 via the address bus 50. Also, program data (DATA) to be written is sent from the terminal group 31 via the data bus 60 to the input / output buffer 13.
Is input to Here, the program control signal ▲ ▼
Becomes low level ("0"), a program is written to a specified memory cell of the PROM 10.

第8図はこの状態を示すタイミング図である。端子群
21からはアドレスA0,A1,A2,−−−−,Anが入力し、端子
群31からはそれぞれアドレスA0,A1,A2,−−−に対応す
るプログラムデータD0,D1,D2−−−が入力する。プログ
ラム制御信号▲▼はLSIテスタによりマイクロ
コンピュータ外部から与えられるアクティブ・ロウの信
号で▲▼がロウレベルのときに例えばA0のアド
レスで指定されたPROM10のメモリセルにD0のプログラム
データが書込まれる。ポート回路に入力するアドレスと
プログラムデータはそれぞれLSIテスタのパタンメモリ
の中に用意しておく必要があり、ひとつのアドレスに対
するプログラム書込みで1パタンを必要としていた。プ
ログラム書込み後のベリファイチェックは出力イネーブ
ル信号▲▼を制御することにより実現でき、アドレ
スを指定して▲▼をロウレベにすると入出力バッフ
ァ13からデータバス60、ポート回路30を介してプログラ
ムデータが端子群31に出力する(タイミングは図示せ
ず)。
FIG. 8 is a timing chart showing this state. Terminal group
Addresses A0, A1, A2, ---, An are input from 21 and program data D0, D1, D2 --- corresponding to addresses A0, A1, A2, --- are respectively input from terminal group 31. input. The program control signal ▼ is an active low signal given from the outside of the microcomputer by the LSI tester. When ▼ is at a low level, for example, the program data of D0 is written into the memory cell of the PROM 10 designated by the address A0. The address and the program data to be input to the port circuit must be prepared in the pattern memory of the LSI tester, and one pattern is required for writing the program to one address. The verify check after writing the program can be realized by controlling the output enable signal ▲ ▼. When the address is designated and ▲ ▼ is set to low level, the program data is transferred from the input / output buffer 13 to the terminal via the data bus 60 and the port circuit 30. Output to group 31 (timing not shown).

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

上述した従来の1チップマイクロコンピュータでは、
PROMにプログラムを書込むためのLSIテスタの入力パタ
ンは1アドレス毎に用意する必要があり、PROMの容量増
加に伴ってLSIのパタンメモリの容量が増加するため、L
SIテスタの使用効率が減少してしまうという欠点があ
る。
In the conventional one-chip microcomputer described above,
The input pattern of the LSI tester for writing the program to the PROM must be prepared for each address, and the capacity of the pattern memory of the LSI increases with the increase of the PROM capacity.
There is a disadvantage that the use efficiency of the SI tester is reduced.

本発明の目的は、効率よくプログラムのテストができ
る1チップマイクロコンピュータを提供することにあ
る。
An object of the present invention is to provide a one-chip microcomputer capable of efficiently testing a program.

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

本発明の1チップマイクロコンピュータは、ノーマル
・モードとプログラム・モードとの切替えを指示するモ
ード設定信号と出力イネーブル信号とプログラム制御信
号とを受けてメモリセルへのデータ書込及び前記メモリ
セルからのデータ読出を制御する手段を備えるPROM回路
と、n個のアドレス信号入力端子を有し、前記モード設
定信号を受けて前記プログラム・モードのときm(mは
nより小さく、1以上の整数)個の前記アドレス信号入
力端子からの入力を遮断するアドレス入力用のポート回
路と、前記プログラム制御信号を受け、mビットの代替
アドレス信号を発生して前記PROM回路に送出するととも
に2m個の選択信号を発生し、又、リセット信号を受けて
前記選択信号を初期値に戻すポート制御回路と、前記モ
ード設定信号及び前記選択信号を受け、前記プログラム
・モードであって、且つ、前記選択信号により選択され
ているときに、入力モードに設定される2m−1個のデー
タ入出力用のポート回路と、前記モード設定信号と前記
出力イネーブル信号と前記選択信号とを受けて、前記プ
ログラム・モードのとき、前記出力イネーブル信号がイ
ンアクティブ状態で前記選択信号により選択されていれ
ば入力モードに設定され、前記出力イネーブル信号がア
クティブ状態であれば出力モードに設定される1個のデ
ータ入出力用のポート回路とを有しているというもので
ある。
The one-chip microcomputer of the present invention receives a mode setting signal for instructing switching between a normal mode and a program mode, an output enable signal, and a program control signal, and writes data to a memory cell, and outputs data from the memory cell. A PROM circuit including means for controlling data reading, and n address signal input terminals, and m (m is smaller than n and an integer of 1 or more) m in the program mode in response to the mode setting signal A port circuit for address input that blocks input from the address signal input terminal of the above, receives the program control signal, generates an m-bit alternative address signal, sends it to the PROM circuit, and outputs 2 m selection signals. And a port control circuit that receives a reset signal and returns the selection signal to an initial value. Receiving a No.択信, a said program mode, and, when it is selected by the selection signal, and the port circuit of the 2 m -1 pieces of data input and output to be set to the input mode, setting the mode Receiving the signal, the output enable signal, and the selection signal, in the program mode, if the output enable signal is inactive and selected by the selection signal, the input mode is set; Has a single data input / output port circuit set to the output mode if is in the active state.

〔実施例〕〔Example〕

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

第1図は本発明の第1の実施例を示すブロック図、第
2図はこの実施例におけるポート制御回路の回路図であ
る。
FIG. 1 is a block diagram showing a first embodiment of the present invention, and FIG. 2 is a circuit diagram of a port control circuit in this embodiment.

この実施例は、ノーマル・モードとプログラム・モー
ドとの切替えを指示するモード設定信号MODEと出力イネ
ーブル信号▲▼とプログラム制御信号▲▼
とを受けてメモリセルとしてのPROM10へのデータ書込及
びPROM10からのデータ読出を制御する制御回路14とデコ
ーダ11と書込回路12と入出力バッファ13とを備えるPROM
回路と、n個のアドレス信号入力端子21を有し、モード
設定信号MODEを受けてプログラム・モードのときアドレ
ス信号の最下位ビットを入力するアドレス信号入力端子
21からの入力を遮断するアドレス入力用のポート回路20
と、プログラム制御信号▲▼を受け、1ビット
の代替アドレス信号を発生してPROM回路に送出するとと
もに、2個の選択信号を発生し、又、リセット信号▲
▼を受けて前述の選択信号を初期値に戻すポー
ト制御回路100と、インバータ回路200と、モード設定信
号MODE及び前述の選択信号を受け、プログラム・モード
であって、且つ、前述の選択信号により選択されている
ときに、入力モードに設定されるデータ入出力用のポー
ト回路40と、モード設定信号MODEと出力イネーブル信号
▲▼と前述の選択信号とを受けて、プログラム・モ
ードのとき、出力イネーブル信号▲▼がインアクテ
ィブ状態で前述の選択信号により選択されていれば入力
モードに設定され、出力イネーブル信号▲▼がアク
ティブ状態であれば出力モードに設定されるデータ入出
力用のポート回路30とを有しているというものである。
In this embodiment, a mode setting signal MODE for instructing switching between a normal mode and a program mode, an output enable signal ▲ ▼, and a program control signal ▲ ▼
A PROM including a control circuit 14, a decoder 11, a writing circuit 12, and an input / output buffer 13 for controlling data writing to the PROM 10 as a memory cell and data reading from the PROM 10
An address signal input terminal having a circuit and n address signal input terminals 21 for receiving a mode setting signal MODE and inputting the least significant bit of an address signal in a program mode
Port circuit 20 for address input that blocks input from 21
Receives the program control signal ▼, generates a 1-bit alternative address signal and sends it to the PROM circuit, generates two selection signals, and resets the reset signal ▲.
▼ receives the above-mentioned selection signal to the initial value, the port control circuit 100, the inverter circuit 200, receives the mode setting signal MODE and the above-mentioned selection signal, is in the program mode, and When the mode is selected, the data input / output port circuit 40 set to the input mode, the mode setting signal MODE, the output enable signal ▲ ▼, and the above selection signal are received. The data input / output port circuit 30 is set to the input mode if the enable signal ▲ ▼ is inactive and selected by the above selection signal, and is set to the output mode if the output enable signal ▲ ▼ is active. It is that it has.

モード設定信号MODEが“0"のときはノーマル・モード
が指定され、ポート回路20,30,40と制御回路14はCPU
(図示しない)の指示に従う。モード設定信号MODEが
“1"のときは、プログラム・モードが設定される。プロ
グラム・モードではPROM10へのプログラムの書込みとベ
リファイチェックを行なう。
When the mode setting signal MODE is “0”, the normal mode is specified, and the port circuits 20, 30, 40 and the control circuit 14
(Not shown). When the mode setting signal MODE is "1", the program mode is set. In the program mode, a program is written to the PROM 10 and a verify check is performed.

まず、プログラムの書込み動作について説明する。 First, a program write operation will be described.

第3図は第1の実施例のプログラム書込み動作のタイ
ミング図である。
FIG. 3 is a timing chart of the program write operation of the first embodiment.

まず最初に書込み対象となるPROMのメモリセルを選択
するために端子群21からはアドレスA0がアドレスバス50
を介しPROM10のアドレスデコーダ11に入力される。但し
このときアドレスの最下位1ビットの情報(AD0)は後
述のようにポート制御回路100により与えられるため、
アドレスバス50上には出力されない。従ってアドレスバ
ス50からデコーダ11に入力するアドレス情報には偶数ア
ドレスと奇数アドレスの両方の情報が含まれている。例
えばPROM10の容量が256バイトであるとすれば、端子群2
1は通常8本必要である。このときA0として0番地のア
ドレス00000000B(Bは2進表示を表わす)を端子群21
に入力しても、アドレスバス50上には最下位ビット(AD
0)が出力されず0000000×(×は不定を表わす)の情
報が与えられる。最下位ビットが“0"か“1"かを指定す
るのはポート制御回路100の出力(AD0)である。
First, an address A0 is transmitted from the terminal group 21 to the address bus 50 in order to select a memory cell of the PROM to be written.
Is input to the address decoder 11 of the PROM 10 via the. However, at this time, since the least significant bit information (AD0) of the address is given by the port control circuit 100 as described later,
It is not output on the address bus 50. Therefore, the address information input to the decoder 11 from the address bus 50 includes both the even address and the odd address. For example, if the capacity of the PROM 10 is 256 bytes, the terminal group 2
One usually requires eight. At this time, the address 000000000 B (B represents binary notation) is assigned as A0 to the terminal group 21.
, The least significant bit (AD
0) is not output and information of 00000000 × B (× represents indefinite) is given. It is the output (AD0) of the port control circuit 100 that specifies whether the least significant bit is “0” or “1”.

いまA0として0番地のアドレスを端子群21から入力し
た場合を考えると、偶数番地(0番地)のプログラムデ
ータD0は端子群31からポート回路30に、奇数番地(1番
地)のプログラムデータD1は端子群41からポート回路40
に入力される。プログラム制御信号▲▼がロウ
レベルになるタイミングで制御回路14によってPROM10の
指定されたメモリセルに書込みが行なわれるが、▲
▼はさらにポート制御回路100にも入力され、1ビ
ットの代替アドレス信号AD0を発生させる。AD0及び▲
▼はポート回路30及び40の切換えを行なう選択信号
として使用される。第2図はポート制御回路の一構成例
を示し、プログラム制御信号▲▼の分周回路と
して働く。入力端子I2に入力するリセット信号▲
▼をロウレベル,入力端子I1に入力するプログラム
制御信号▲▼をハイレベルとすればアンドノア
ゲート回路101の出力(AD0)はロウレベル,アンドノア
ゲート回路102の出力はハイレベル,オアナンドゲート1
03の出力はロウレベル,オアナンドゲート104の出力は
ハイレベルとなってそれぞれ初期値が設定される。この
状態でリセット信号▲▼をハイレベルとすれ
ば(図示せず)、ポート制御回路100はプログラム制御
信号▲▼の2分周回路として動作する。
Now, assuming that the address of address 0 is input from the terminal group 21 as A0, the program data D0 of the even address (address 0) is transferred from the terminal group 31 to the port circuit 30, and the program data D1 of the odd address (address 1) is From terminal group 41 to port circuit 40
Is input to At the timing when the program control signal ▼ changes to low level, the control circuit 14 writes data into the specified memory cell of the PROM 10;
Is also input to the port control circuit 100 to generate a 1-bit alternative address signal AD0. AD0 and ▲
▼ is used as a selection signal for switching the port circuits 30 and 40. FIG. 2 shows an example of the configuration of the port control circuit, which functions as a frequency dividing circuit for the program control signal ▼. Reset signal input to input terminal I2
If ▼ is low level and the program control signal ▲ ▼ to be input to the input terminal I1 is high level, the output (AD0) of the AND NOR gate circuit 101 is low level, the output of the AND NOR gate circuit 102 is high level, and the ORAND gate 1
The output of 03 is at a low level, the output of the orand gate 104 is at a high level, and initial values are set. In this state, if the reset signal ▼ is set to a high level (not shown), the port control circuit 100 operates as a circuit for dividing the program control signal ▼ by two.

すなわち、ポート制御回路100の出力端子O1の出力AD0
及びAD0からインバータ回路200を経由した信号▲
▼はプログラム制御信号▲▼の立上りに同期し
て変化する。この▲▼,AD0はそれぞれポート回路
30,40の制御信号であるから▲▼がハイレベルの
ときは端子群31から入力された偶数番地のプログラムデ
ータD0がデータバス60に出力され、AD0がハイレベルの
ときは端子群41から入力された奇数番地のデータD1がデ
ータバス60に出力される。また前述のようにアドレスの
最下位1ビットとしてポート制御回路100の出力AD0がデ
コーダ11に入力されるため、AD0がロウレベルのときは
デコーダ11はPROM10の偶数番地(A0すなわち0番地)を
指し、AD0がハイレベルのときはデコーダ11はPROM10の
奇数番地(A1すなわち1番地)を指す。結果として第3
図のようにLSIテスタの入力パタンは1パタンであるに
もかからず2アドレス分の書込みが行なえることにな
る。すなわちLSIテスタから第3図のようにプログラム
制御信号▲▼が入力されると、最初の▲
▼がロウレベルの期間で、アドレスA0(0番地)によ
って指定されたPROM10のメモリセルにポート回路30から
データバス60を介して入力したプログラムデータD0が、
入出力バッファ13及び書込回路12を経由して書き込ま
れ、2回目の▲▼がロウレベルの期間で、アド
レスA1(1番地)によって指定されたPROM10のメモリセ
ルにポート回路40からデータバス60を介して入力したプ
ログラムデータD1が、入出力バッファ13及び書込回路12
を経由して書込まれる。
That is, the output AD0 of the output terminal O1 of the port control circuit 100
And signal from AD0 via inverter circuit 200
▼ changes in synchronization with the rise of the program control signal ▲ ▼. These ▲ ▼ and AD0 are port circuits, respectively.
Since the control signal is 30, 40, the program data D0 of the even address input from the terminal group 31 is output to the data bus 60 when ▲ ▼ is high level, and is input from the terminal group 41 when AD0 is high level. The odd-numbered address data D1 is output to the data bus 60. As described above, the output AD0 of the port control circuit 100 is input to the decoder 11 as the least significant bit of the address. Therefore, when AD0 is at a low level, the decoder 11 points to an even address (A0, that is, address 0) of the PROM 10; When AD0 is at a high level, the decoder 11 points to an odd address (A1, that is, address 1) of the PROM 10. As a result the third
As shown in the figure, although the input pattern of the LSI tester is one pattern, writing for two addresses can be performed. That is, when the program control signal ▼ is input from the LSI tester as shown in FIG.
▼ is a low level period, and the program data D0 input from the port circuit 30 via the data bus 60 to the memory cell of the PROM 10 specified by the address A0 (address 0) is
The data is written via the input / output buffer 13 and the write circuit 12, and during the second low level period, the data bus 60 is transferred from the port circuit 40 to the memory cell of the PROM 10 designated by the address A1 (address 1). The program data D1 input through the I / O buffer 13 and the write circuit 12
Written via

このようにして書込まれたPROM10のプログラムデータ
は出力イネーブル信号▲▼によりベリファイチェッ
クを行なうことができ、端子群21からアドレスを指定し
て▲▼をロウレベルにすると入出力バッファ13から
データバス60を介してプログラムデータがポート回路30
から端子群へ、出力する(図示せず)。
The program data of the PROM 10 written in this manner can be verified by the output enable signal ▲ ▼. When an address is designated from the terminal group 21 and ▲ ▼ is set to the low level, the data bus 60 Via the port circuit 30
To a terminal group (not shown).

以上の説明をまとめると、第1表のようになる。 The above description is summarized in Table 1.

第4図は本発明の第2の実施例のブロック図である。 FIG. 4 is a block diagram of a second embodiment of the present invention.

第1の実施例ではPROM10に書込むプログラムデータを
2個のポートから同時に入力したが、本実施例ではプロ
グラムデータを4個のポートから同時に入力する。第4
図ではそれぞれ端子群301,401を含むポート回路300,400
が第1図に対して追加されている。またポート制御回路
110は第5図に示すように第2図のポート制御回路100と
同等の機能を有するブロック111,112及びインバータ回
路113,114、アンドゲート115,116,117,118で構成され、
その出力S1,S2,S3,S4でそれぞれポート回路30,40,300,4
00を選択し、AD0とAD1よりなる下位2ビットのアドレス
バス150がデコーダ11に入力する。なお、第4図及び第
5図において第1図及び第2図と同様の機能を有するも
のは同一番号又は同一記号を付し、詳細な説明は省く。
In the first embodiment, the program data to be written into the PROM 10 is input simultaneously from two ports. In the present embodiment, the program data is input simultaneously from four ports. 4th
In the figure, port circuits 300 and 400 including terminal groups 301 and 401 respectively
Are added to FIG. Also port control circuit
As shown in FIG. 5, 110 includes blocks 111 and 112 having the same functions as the port control circuit 100 in FIG. 2, inverter circuits 113 and 114, and AND gates 115, 116, 117 and 118.
The output circuits S1, S2, S3, S4 use port circuits 30, 40, 300, 4 respectively.
00 is selected, and an address bus 150 of lower two bits composed of AD0 and AD1 is input to the decoder 11. 4 and 5, those having the same functions as those in FIGS. 1 and 2 are denoted by the same reference numerals or symbols, and detailed description is omitted.

第6図は第2の実施例のプログラム書込みモードにお
ける動作を表わすタイミング図であり、これを用いて第
4図に示す第2の実施例の動作を説明する。まず端子群
21には0番地を表わすアドレスA0が入力される。但しア
ドレス情報の下位2ビット(150)はポート制御回路110
によって生成されるため、アドレスバス50にはこの下位
2ビットの情報は出力されない。端子群31,41,301,401
からはそれぞれ0番地のプログラムデータD0,1番地のプ
ログラムデータD1,2番地のプログラムデータD2,3番地の
プログラムデータD3が入力される。
FIG. 6 is a timing chart showing the operation in the program write mode of the second embodiment. The operation of the second embodiment shown in FIG. 4 will be described with reference to FIG. First, the terminal group
21 is input with an address A0 representing address 0. However, the lower two bits (150) of the address information are stored in the port control circuit 110.
Therefore, the lower two bits of information are not output to the address bus 50. Terminal group 31, 41, 301, 401
, Program data D0 at address 0, program data D1 at address 1, program data D2 at address 2 and program data D3 at address 3 are input.

第5図に示すポート制御回路110は、2分周回路111,1
12(第2図と同様の構成)の直列接続による4分周回路
とインバータ回路113,114及びアンドゲート回路115,11
6,117,118によってプログラム制御信号▲▼の
変化に対して第6図に示す代替アドレス信号AD0,AD1,選
択信号S0,S1,S2,S3を順次発生させる。従ってS0がハイ
レベルの時は、端子群31から入力された0番地に書き込
まれるべきプログラムデータD0がポート回路31を介して
データバス60に出力され、またこのときのAD1,AD0は両
方共ロウレベルであるためデコーダ11に入力するアドレ
スの下位2ビットの情報(150)は00Bに確定し、PROM10
の0番地(A0)が指定されてプログラム制御信号▲
▼ががロウレベルの期間でデータバス60上のプログ
ラムデータD0が入出力バッファ及び書込回路を経由して
書込まれる。同様にしてS2がハイレベルの時はAD1,AD0
がそれぞれロウレベル,ハイレベルとなりアドレスの下
位2ビットの情報(150)は01Bに確定し、1番地(A1)
にプログラムデータD1が書込まれ、S3がハイレベルの時
はアドレスの下位2ビットの情報(150)は10Bとなり2
番地(A2)にプログラムデータD2が、S4がハイレベルの
時はアドレスの下位2ビットの情報(150)は11Bとなり
3番地(A3)にプログラムデータD3がそれぞれ▲
▼がロウレベルの期間で書込まれる。すなわちLSIテ
スタから第6図のようにプログラム制御信号▲
▼が入力されると、LSIテスタの入力パタンは1パタン
であるにもかかわらず4アドレス分の書込みが行なえる
ことになる。なお出力イネーブル信号▲▼の機能は
第1図と同様であり説明は省略する。
The port control circuit 110 shown in FIG.
12 (same configuration as in FIG. 2) is connected in series by a divide-by-4 circuit, inverter circuits 113 and 114, and AND gate circuits 115 and 11
6, 117, 118, the alternative address signals AD0, AD1, selection signals S0, S1, S2, S3 shown in FIG. Therefore, when S0 is at the high level, the program data D0 to be written to the address 0 input from the terminal group 31 is output to the data bus 60 via the port circuit 31, and at this time both AD1 and AD0 are at the low level. lower 2-bit information of the address to be input to the decoder 11 for it (150) is fixed at the 00 B, PROM10
0 (A0) is specified and the program control signal ▲
While ▼ is at the low level, the program data D0 on the data bus 60 is written via the input / output buffer and the write circuit. Similarly, when S2 is high level, AD1, AD0
There confirm the low level, the lower 2 bits of information (150) of the address becomes a high level to 01 B, respectively, address 1 (A1)
When the program data D1 is written to S3 and S3 is at the high level, the information (150) of the lower 2 bits of the address becomes 10 B and 2
When the address (A2) contains the program data D2, and when S4 is at the high level, the lower two bits of the address information (150) becomes 11 B , and the program data D3 becomes ▲ at the address 3 (A3).
Is written in the low level period. That is, as shown in FIG.
When ▼ is input, writing of four addresses can be performed even though the input pattern of the LSI tester is one pattern. The function of the output enable signal ▼ is the same as that of FIG.

以上の説明をまとめると、第2表に示すようになる。 The above description is summarized in Table 2.

以上、第1の実施例としてプログラム制御信号を用い
2つのポートから同時に2アドレス分のプログラムデー
タを入力し、第2の実施例として同じくプログラム制御
信号を用い4つのポートから同時に4アドレス分のプロ
グラムデータを入力するものを説明したが、このポート
数には制限はなく、マイクロコンピュータに内蔵するポ
ートの数だけ同時にプログラムデータを入力するように
することができることは明白である。
As described above, the first embodiment uses a program control signal to simultaneously input program data for two addresses from two ports, and the second embodiment uses the same program control signal to simultaneously program four addresses from four ports. Although data input is described, the number of ports is not limited, and it is clear that program data can be input simultaneously by the number of ports built in the microcomputer.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、nビットのアドレス信
号でアクセスされるPROMの特定のmビットのアドレス信
号をプログラム制御信号にもとづいて発生させると共に
2m個の選択信号を発生させるポート制御回路を有してい
るので、LSIテスタ等によりマイクロコンピュータに内
蔵されるPROMの書き込みを行なう場合、2m個のポートか
ら同時にプログラムデータを入力することにより従来の
1/2mのパタン数でPROMの書き込みが行なえるため、LSI
テスタ等の使用効率を大幅に向上させることができ、製
品検査工程の効率化及びコスト低減につながり、安価な
1チップマイクロコンピュータを提供できるという効果
がある。
As described above, the present invention generates a specific m-bit address signal of a PROM accessed by an n-bit address signal based on a program control signal.
Since it has a port control circuit that generates 2 m selection signals, when writing PROM built in the microcomputer with an LSI tester, etc., it is necessary to input program data from 2 m ports at the same time. Traditional
Since the PROM can be written with 1/2 m pattern, LSI
The use efficiency of a tester or the like can be greatly improved, leading to an increase in the efficiency of a product inspection process and a reduction in cost, and an effect of providing an inexpensive one-chip microcomputer.

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

第1図は本発明の第1の実施例を示すブロック図、第2
図は第1の実施例におけるポート制御回路を示す回路
図、第3図は第1の実施例の動作を説明するためのタイ
ミング図、第4図は本発明の第2の実施例を示すブロッ
ク図、第5図は第2の実施例におけるポート制御回路を
示す回路図、第6図は第2の実施例の動作を説明するた
めのタイミング図、第7図は従来例を示すブロック図、
第8図は従来例の動作を説明するためのタイミング図で
ある。 10……PROM、11……デコーダ、12……書込回路、13……
入出力バッファ、14……制御回路、20,30,40,300,400…
…ポート回路、50,150……アドレスバス、60……データ
バス、100,110……ポート制御回路。
FIG. 1 is a block diagram showing a first embodiment of the present invention, and FIG.
FIG. 3 is a circuit diagram showing a port control circuit according to the first embodiment, FIG. 3 is a timing chart for explaining the operation of the first embodiment, and FIG. 4 is a block diagram showing a second embodiment of the present invention. FIG. 5, FIG. 5 is a circuit diagram showing a port control circuit in the second embodiment, FIG. 6 is a timing chart for explaining the operation of the second embodiment, FIG. 7 is a block diagram showing a conventional example,
FIG. 8 is a timing chart for explaining the operation of the conventional example. 10 ... PROM, 11 ... Decoder, 12 ... Write circuit, 13 ...
I / O buffer, 14 ... Control circuit, 20, 30, 40, 300, 400 ...
... port circuits, 50, 150 ... address bus, 60 ... data bus, 100, 110 ... port control circuit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ノーマル・モードとプログラム・モードと
の切替えを指示するモード設定信号と出力イネーブル信
号とプログラム制御信号とを受けてメモリセルへのデー
タ書込及び前記メモリセルからのデータ読出を制御する
手段を備えるPROM回路と、n個のアドレス信号入力端子
を有し、前記モード設定信号を受けて前記プログラム・
モードのときm(mはnより小さく、1以上の整数)個
の前記アドレス信号入力端子からの入力を遮断するアド
レス入力用のポート回路と、前記プログラム制御信号を
受け、mビットの代替アドレス信号を発生して前記PROM
回路に送出するとともに2m個の選択信号を発生し、又、
リセット信号を受けて前記選択信号を初期値に戻すポー
ト制御回路と、前記モード設定信号及び前記選択信号を
受け、前記プログラム・モードであって、且つ、前記選
択信号により選択されているときに、入力モードに設定
される2m−1個のデータ入出力用のポート回路と、前記
モード設定信号と前記出力イネーブル信号と前記選択信
号とを受けて、前記プログラム・モードのとき、前記出
力イネーブル信号がインアクティブ状態で前記選択信号
により選択されていれば入力モードに設定され、前記出
力イネーブル信号がアクティブ状態であれば出力モード
に設定される1個のデータ入出力用のポート回路と、を
有していることを特徴とする1チップマイクロコンピュ
ータ。
A mode control signal for instructing switching between a normal mode and a program mode, an output enable signal, and a program control signal are used to control data writing to a memory cell and data reading from the memory cell. A PROM circuit having a means for performing the operation, and n address signal input terminals.
An address input port circuit for interrupting an input from m (m is smaller than n and an integer of 1 or more) address signal input terminals in a mode, and an m-bit alternative address signal receiving the program control signal Generating the PROM
Output to the circuit and generate 2 m selection signals.
A port control circuit that receives a reset signal and returns the selection signal to an initial value, and receives the mode setting signal and the selection signal, and is in the program mode, and when selected by the selection signal, Receiving the mode setting signal, the output enable signal, and the selection signal in response to 2 m -1 data input / output port circuits set to the input mode, and setting the output enable signal in the program mode A data input / output port circuit that is set to an input mode when the output signal is selected by the selection signal in an inactive state, and is set to an output mode when the output enable signal is active. A one-chip microcomputer.
JP25863888A 1988-10-13 1988-10-13 One-chip microcomputer Expired - Fee Related JP3177975B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25863888A JP3177975B2 (en) 1988-10-13 1988-10-13 One-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25863888A JP3177975B2 (en) 1988-10-13 1988-10-13 One-chip microcomputer

Publications (2)

Publication Number Publication Date
JPH02105276A JPH02105276A (en) 1990-04-17
JP3177975B2 true JP3177975B2 (en) 2001-06-18

Family

ID=17323050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25863888A Expired - Fee Related JP3177975B2 (en) 1988-10-13 1988-10-13 One-chip microcomputer

Country Status (1)

Country Link
JP (1) JP3177975B2 (en)

Also Published As

Publication number Publication date
JPH02105276A (en) 1990-04-17

Similar Documents

Publication Publication Date Title
KR100327136B1 (en) Semiconductor memory device and parallel bit test method thereof
JPS6231439B2 (en)
EP0747905A1 (en) Memory testing apparatus for microelectronic integrated circuit
JPH0668700A (en) Semiconductor memory device
US20060090108A1 (en) Method and apparatus for testing a memory device with compressed data using a single output
JP2953737B2 (en) Semiconductor memory having a multi-bit parallel test circuit
JP2591825B2 (en) Logic circuit testing method and apparatus using compressed data
JPH103800A (en) Selecting method for output mode of merged data of semiconductor memory device
JP2002312252A (en) Memory diagnostic device and diagnostic method
JP3177975B2 (en) One-chip microcomputer
JPH0512900A (en) Semiconductor storage containing test function and its test method
JPH07307100A (en) Memory integrated circuit
JP4323738B2 (en) Semiconductor memory device
JPS63108747A (en) Gate array integrated circuit
JP2824853B2 (en) Pattern data writing method
JPH0746517B2 (en) Semiconductor memory and its testing method
JP2005032375A (en) Semiconductor memory and its testing method
JPH03269900A (en) Semiconductor integrated circuit
JPH1186595A (en) Semiconductor memory test device
JPH0793039B2 (en) Memory address control circuit
JPH07220499A (en) Pattern generator
JP2000011700A (en) Method and circuit for test of rom
JPH0227600A (en) Integrated circuit device
JPH02144642A (en) Test circuit for memory
JP2003014816A (en) Pin register circuit for semiconductor test apparatus

Legal Events

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