JPH06150022A - Memory chip selection control circuit - Google Patents

Memory chip selection control circuit

Info

Publication number
JPH06150022A
JPH06150022A JP4298645A JP29864592A JPH06150022A JP H06150022 A JPH06150022 A JP H06150022A JP 4298645 A JP4298645 A JP 4298645A JP 29864592 A JP29864592 A JP 29864592A JP H06150022 A JPH06150022 A JP H06150022A
Authority
JP
Japan
Prior art keywords
address
chip
signal
chip select
output
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
JP4298645A
Other languages
Japanese (ja)
Inventor
Yoshinori Doi
良規 土居
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4298645A priority Critical patent/JPH06150022A/en
Publication of JPH06150022A publication Critical patent/JPH06150022A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To miniaturize a single chip microcomputer-mounted substrate and to omit the pins of an IC package without requiring any address decoder for chip selection signal generation and any dedicated output terminal for a chip selection signal for selecting an external memory chip from a single chip microcomputer. CONSTITUTION:An address decode circuit 8 is built in a single chip microcomputer 1 and generates a chip selection signal 9 from an address signal 7 for generating the chip selection signal of the external memory chip, and a switching circuit 11 selectively outputs an address signal 10 for specifying an access address inside the external memory chip and the chip selection signal 9 from an address/chip selection terminal 12 while switching the outputs of the chip selection signal 9 and the address signal 10.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば、 CPU,内部メ
モリ,演算回路, I/O ポートが同一基板に集積されたシ
ングルチップマイクロコンピュータ(以下、シングルチ
ップマイコンという)による外部メモリチップの選択を
コントロールする回路に関する。
BACKGROUND OF THE INVENTION The present invention relates to the selection of an external memory chip by a single chip microcomputer (hereinafter referred to as a single chip microcomputer) in which a CPU, an internal memory, an arithmetic circuit and an I / O port are integrated on the same substrate. Related to the circuit that controls.

【0002】[0002]

【従来の技術】図7はシングルチップマイコンの従来の
メモリチップ選択に関連する部分のブロック図である。
シングルチップマイコン1が複数の外部メモリ2a, 2bの
中からアクセス対象のメモリチップを選択する場合、シ
ングルチップマイコン1のアドレス出力端子から出力さ
れる外部メモリ2a又は2bのアドレス信号の一部を、外部
に設けられたアドレスデコード回路8,8 がそれぞれデコ
ードしてアクセス対象のメモリ2a又は2bのいずれかのチ
ップセレクト信号3又は4をアクティブにする。選択さ
れたメモリ2a又は2bはメモリ2a又は2b内のアクセスアド
レスを特定するアドレス信号6を取り込み、メモリ2a又
は2bとシングルチップマイコン1との間でデータ信号5
が転送される。
2. Description of the Related Art FIG. 7 is a block diagram of a portion related to a conventional memory chip selection of a single chip microcomputer.
When the single-chip microcomputer 1 selects a memory chip to be accessed from a plurality of external memories 2a, 2b, a part of the address signal of the external memory 2a or 2b output from the address output terminal of the single-chip microcomputer 1 is Address decoding circuits 8 and 8 provided outside are respectively decoded to activate the chip select signal 3 or 4 of either the memory 2a or 2b to be accessed. The selected memory 2a or 2b fetches the address signal 6 for specifying the access address in the memory 2a or 2b, and the data signal 5 is transferred between the memory 2a or 2b and the single-chip microcomputer 1.
Is transferred.

【0003】また、図8に示すようにアドレスデコーダ
8,8 を内蔵するシングルチップマイコン1の場合、シン
グルチップマイコン1にはチップセレクト信号3,4を
出力する専用端子が設けられている。
Further, as shown in FIG.
In the case of the single-chip microcomputer 1 incorporating 8 and 8, the single-chip microcomputer 1 is provided with dedicated terminals for outputting the chip select signals 3 and 4.

【0004】さらに、図9は、アドレス信号の一部とデ
ータ信号との出力を、CPU からの制御信号 ALE(Address
Latch Enable)によって切り替えて兼用端子から出力す
るシングルチップマイコンのメモリチップ選択に関連す
る従来部分のブロック図であって、前述と同一部分には
同一符号を付してその説明を省略する。図中、19は ALE
信号、20a 〜20d はラッチ、21はデータ信号、22a 〜22
d は ALE信号19によって出力が切り替えられたデータ/
アドレス信号であって、兼用端子から出力される。
Further, FIG. 9 shows the output of a part of the address signal and the data signal as a control signal ALE (Address
FIG. 11 is a block diagram of a conventional portion related to memory chip selection of a single-chip microcomputer which is switched by a Latch Enable) and output from a dual-purpose terminal. The same portions as those described above are designated by the same reference numerals and the description thereof will be omitted. In the figure, 19 is ALE
Signals, 20a to 20d are latches, 21 is a data signal, 22a to 22
d is the data whose output is switched by the ALE signal 19
The address signal is output from the shared terminal.

【0005】シングルチップマイコン1が兼用端子から
切り替え出力した一部のアドレス信号22a 〜22d は、ラ
ッチ20a 〜20d の端子Tに入力される ALE信号19の立ち
上がり及び立ち下がりによってラッチ20a 〜20d に保持
される。 ALE信号19の次の立ち上がりでラッチ20a, 20b
の保持データはアドレスデコード回路8,8 に出力されて
それぞれデコードされ、その結果、チップセレクト信号
3又は4のいずれかがアクティブになってメモリ2a又は
2bが選択される。
Some of the address signals 22a to 22d switched and output from the single-chip microcomputer 1 from the dual-purpose terminals are held in the latches 20a to 20d by the rising and falling edges of the ALE signal 19 input to the terminals T of the latches 20a to 20d. To be done. Latch 20a, 20b at next rising edge of ALE signal 19
Data held in the memory 2a or 8 is output to the address decoding circuits 8 and 8 and decoded respectively. As a result, either the chip select signal 3 or 4 becomes active and the memory 2a or
2b is selected.

【0006】他のラッチ20c, 20dの保持データはアドレ
スバスに出力されて残りのアドレス信号6とともにメモ
リ2a又は2b内のアクセスアドレスを特定する。また、ア
ドレス信号22a 〜22d がラッチ20a 〜20d に保持された
後、兼用端子を介してシングルチップマイコン1からメ
モリ2a, 2bへデータ信号21, 22a 〜22d が転送される。
The data held in the other latches 20c and 20d is output to the address bus to specify the access address in the memory 2a or 2b together with the remaining address signal 6. After the address signals 22a to 22d are held in the latches 20a to 20d, the data signals 21, 22a to 22d are transferred from the single chip microcomputer 1 to the memories 2a and 2b via the shared terminals.

【0007】[0007]

【発明が解決しようとする課題】シングルチップマイコ
ン及び複数の外部メモリ間での従来のメモリチップ選択
は以上のような構成で実現されており、複数の外部メモ
リチップの中からアクセス対象のメモリチップを選択す
るためのアドレスデコード回路を外部に設けなければな
らないので、アドレスデコード回路のゲートIC等を同一
基板上に実装した場合に基板が大型になる。
The conventional memory chip selection between the single-chip microcomputer and the plurality of external memories is realized by the above configuration, and the memory chip to be accessed is selected from the plurality of external memory chips. Since an address decode circuit for selecting is to be provided externally, the board becomes large when the gate IC of the address decode circuit and the like are mounted on the same board.

【0008】しかし、アドレスデコード回路をシングル
チップマイコンに内蔵すると、シングルチップマイコン
にチップセレクト信号の専用出力端子を設けなければな
らないので、シングルチップマイコンのICパッケージが
多ピン化して製造コストが上昇する。
However, when the address decoding circuit is built in the single-chip microcomputer, the single-chip microcomputer must be provided with a dedicated output terminal for the chip select signal, so that the IC package of the single-chip microcomputer has a large number of pins and the manufacturing cost increases. .

【0009】本発明はこのような問題点を解決するため
になされたものであって、外部メモリチップを選択する
チップセレクト信号を、CPU 搭載チップの内部で生成す
るとともに、チップセレクト信号をアドレス信号の出力
端子から出力することにより、アドレスデコード回路を
外部に設ける必要がなく、しかもチップセレクト信号専
用の出力端子を必要としないメモリチップ選択コントロ
ール回路の提供を目的とする。
The present invention has been made in order to solve such a problem. A chip select signal for selecting an external memory chip is generated inside a CPU-mounted chip and the chip select signal is used as an address signal. It is an object of the present invention to provide a memory chip selection control circuit which does not require an external address decode circuit and which does not require an output terminal dedicated to a chip select signal.

【0010】[0010]

【課題を解決するための手段】第1の発明に係るメモリ
チップ選択コントロール回路は、CPU を搭載したチップ
に内蔵されて外部メモリチップのチップセレクト信号を
生成する回路と、アドレス出力端子からのチップセレク
ト信号及びアドレス信号の出力を切り替える回路とを備
えたことを特徴とする。
A memory chip selection control circuit according to a first aspect of the present invention includes a circuit which is built in a chip having a CPU and which generates a chip select signal for an external memory chip, and a chip from an address output terminal. And a circuit for switching the output of the select signal and the address signal.

【0011】第2の発明に係るメモリチップ選択コント
ロール回路は、CPU を搭載したチップに内蔵されて外部
メモリチップのチップセレクト信号を生成する回路と、
データ/アドレス兼用端子からのチップセレクト信号及
びアドレス信号並びにデータ信号の出力を切り替える回
路とを備えたことを特徴とする。
A memory chip selection control circuit according to a second aspect of the present invention includes a circuit which is built in a chip on which a CPU is mounted and which generates a chip select signal for an external memory chip.
And a circuit for switching output of a chip select signal, an address signal, and a data signal from the data / address dual-use terminal.

【0012】[0012]

【作用】第1の発明に係るメモリチップ選択コントロー
ル回路は、CPU がアクセス対象の外部メモリチップのア
ドレスを指定すると、このアドレスに基づいてアクセス
対象の外部メモリチップを選択するためのチップセレク
ト信号を生成し、アドレス出力端子からの出力をチップ
セレクト信号の出力に切り替え、アドレス出力端子から
チップセレクト信号を出力する。
When the CPU specifies the address of the external memory chip to be accessed, the memory chip select control circuit according to the first aspect of the present invention outputs a chip select signal for selecting the external memory chip to be accessed based on this address. It is generated and the output from the address output terminal is switched to the output of the chip select signal, and the chip select signal is output from the address output terminal.

【0013】第2の発明に係るメモリチップ選択コント
ロール回路は、CPU がアクセス対象の外部メモリチップ
のアドレスを指定すると、このアドレスに基づいてアク
セス対象の外部メモリチップを選択するためのチップセ
レクト信号を生成し、データ/アドレス兼用端子からの
出力をチップセレクト信号の出力に切り替え、データ/
アドレス兼用端子からチップセレクト信号を出力する。
In the memory chip selection control circuit according to the second invention, when the CPU designates the address of the external memory chip to be accessed, a chip select signal for selecting the external memory chip to be accessed based on this address is sent. Generate and switch the output from the data / address dual-purpose terminal to the output of the chip select signal.
A chip select signal is output from the address shared terminal.

【0014】[0014]

【実施例】以下、本発明をその実施例を示す図に基づい
て説明する。図1は本発明に係るメモリチップ選択コン
トロール回路内蔵のシングルチップマイコン及び外部メ
モリのブロック図、図2は本発明に係るメモリチップ選
択コントロール回路の1端子対応のブロック図である。
なお、従来と同一、又は相当部分には同一符号を付して
その説明を省略する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings showing its embodiments. FIG. 1 is a block diagram of a single chip microcomputer incorporating a memory chip selection control circuit according to the present invention and an external memory, and FIG. 2 is a block diagram of the memory chip selection control circuit according to the present invention corresponding to one terminal.
Note that the same or corresponding portions as those of the conventional one are designated by the same reference numerals and the description thereof will be omitted.

【0015】図中、7はメモリ2a又は2bを指定するため
のチップセレクトアドレス信号、9はアドレスデコード
回路8により生成されるチップセレクト信号、10はメモ
リ2a, 2b内のアクセスアドレスを特定するアドレス信号
のうちの1ビットのアドレス信号、11はチップセレクト
信号9とアドレス信号10との出力を切り替える切替回
路、12はアドレス端子の一部であってチップセレクト信
号3(4)の出力端子として兼用するアドレス/チップセレ
クト端子である。兼用とする端子は、メモリ2a,2bの容
量及び接続個数に応じて所要ビット数が定まるアドレス
信号のビット数対応の出力端子を除くアドレス出力端子
とする。
In the figure, 7 is a chip select address signal for designating the memory 2a or 2b, 9 is a chip select signal generated by the address decoding circuit 8, and 10 is an address for specifying an access address in the memories 2a and 2b. 1-bit address signal of the signal, 11 is a switching circuit for switching the output of the chip select signal 9 and the address signal 10, 12 is a part of the address terminal and also serves as the output terminal of the chip select signal 3 (4) Address / chip select terminal. The shared terminal is an address output terminal excluding an output terminal corresponding to the number of bits of the address signal in which the required number of bits is determined according to the capacities of the memories 2a and 2b and the number of connections.

【0016】図3は上述したアドレスデコード回路8の
具体的回路図である。アドレスレジスタ13にはその端子
からのチップセレクト信号がアクティブになることによ
り選択されるメモリ2a又は2bのアドレスが記憶される。
メモリ容量レジスタ14には、シングルチップマイコン1
に設けられたアドレス出力端子から出力されるアドレス
信号のうち、メモリ2a, 2bの容量及び接続個数に応じて
所要ビット数が定まるアドレス信号のビット数対応の出
力を“H”に、またこれらのビットを除く、チップセレ
クト信号の出力兼用端子に対応する上位アドレスのビッ
ト出力を“L”に設定したデータが記憶される。
FIG. 3 is a specific circuit diagram of the address decoding circuit 8 described above. The address register 13 stores the address of the memory 2a or 2b selected when the chip select signal from that terminal becomes active.
The memory capacity register 14 has a single chip microcomputer 1
Among the address signals output from the address output terminal provided in, the output corresponding to the bit number of the address signal whose required bit number is determined according to the capacity and the number of connections of the memories 2a and 2b is set to "H", and these Data in which the bit output of the upper address corresponding to the output / terminal of the chip select signal except the bit is set to "L" is stored.

【0017】例えば、シングルチップマイコン1に設け
られたアドレス出力端子が20本、メモリ2a, 2bの容量が
それぞれ64Kbyteとすると、メモリ2a, 2bを2個接続し
た場合のアドレスは17ビットを必要とするので、上位ア
ドレスに対応する3本のアドレス出力端子がチップセレ
クト信号の出力兼用となり、メモリ容量レジスタ14に
は、最上位から3ビットを“L”,他のビットを“H”
に設定したデータが記憶される。
For example, assuming that the address output terminals provided in the single chip microcomputer 1 are 20 and the capacities of the memories 2a and 2b are 64 Kbytes, the address when two memories 2a and 2b are connected requires 17 bits. Therefore, the three address output terminals corresponding to the higher-order address also serve as the output of the chip select signal, and the memory capacity register 14 has 3 bits from the most significant "L" and the other bits "H".
The data set in is stored.

【0018】EXORゲート15a 〜15c は3ビットからなる
チップセレクトアドレス信号7の各ビット値をそれぞれ
の一方の入力とし、アドレスレジスタ13に記憶されてい
るアドレスの各ビット値をそれぞれの他方の入力とす
る。NANDゲート16a 〜16c はEXORゲート15a 〜15c の出
力をそれぞれの一方の入力とし、メモリ容量レジスタ14
の出力のうち、最上位から3ビット分の値、即ち、
“L”をそれぞれの他方の入力とする。またNANDゲート
16d はNANDゲート16a 〜16c の出力を3入力としてチッ
プセレクト信号9を切替回路11に出力する。
The EXOR gates 15a to 15c use the bit value of the 3-bit chip select address signal 7 as one input and the bit value of the address stored in the address register 13 as the other input. To do. The NAND gates 16a to 16c use the outputs of the EXOR gates 15a to 15c as one input, and the memory capacity register 14
Of the output of, the value for the most significant 3 bits, that is,
Let “L” be the other input of each. Also NAND gate
16d outputs the chip select signal 9 to the switching circuit 11 with the outputs of the NAND gates 16a to 16c as three inputs.

【0019】図4は切替回路11の具体的回路図である。
第1のNANDゲート16e はアドレスデコード回路8からの
チップセレクト信号9を一方の入力とし、インバータ17
a によるアドレス/チップセレクト切り替え信号18の反
転信号を他方の入力とする。第2のNANDゲート16f はア
ドレス/チップセレクト切り替え信号18を一方の入力と
し、アドレス信号10を他方の入力とする。さらに、第3
のNANDゲート16g はNANDゲート16e,16f の出力を2入力
としてアドレス/チップセレクト端子12からチップセレ
クト信号/アドレス信号3(4)を出力する。
FIG. 4 is a specific circuit diagram of the switching circuit 11.
The first NAND gate 16e receives the chip select signal 9 from the address decoding circuit 8 as one input, and receives the inverter 17
The inverted signal of the address / chip select switching signal 18 by a is used as the other input. The second NAND gate 16f receives the address / chip select switching signal 18 as one input and the address signal 10 as the other input. Furthermore, the third
The NAND gate 16g receives the outputs of the NAND gates 16e and 16f as two inputs and outputs the chip select signal / address signal 3 (4) from the address / chip select terminal 12.

【0020】なお、アドレス/チップセレクト切り替え
信号18が“H”の時、アドレス/チップセレクト端子12
からはアドレス信号10が出力され、アドレス/チップセ
レクト切り替え信号18が“L”の時、アドレス/チップ
セレクト端子12からはチップセレクト信号9が出力され
る。
When the address / chip select switching signal 18 is "H", the address / chip select terminal 12
Outputs an address signal 10, and when the address / chip select switching signal 18 is "L", the address / chip select terminal 12 outputs a chip select signal 9.

【0021】次に、動作について説明する。図示しない
CPU が指定するメモリ2a, 2bのチップセレクトアドレス
信号7とアドレスレジスタ13に記憶しているアドレスと
をEXORゲート15a 〜15c が比較し、比較結果が一致した
場合、即ち、この端子からのチップセレクト信号9が選
択するメモリ2a又は2bが指定対象であった場合、EXORゲ
ート15a 〜15c の出力が全て“L”となる。さらに、NA
NDゲート16a 〜16c が、EXORゲート15a 〜15c の出力
“L”とメモリ容量レジスタ14の上位3ビット分の
“L”との論理積をとってNANDゲート16a 〜16c の出力
が全て“H”となる。その結果、NANDゲート16d から出
力されるチップセレクト信号9は“L”となる。
Next, the operation will be described. Not shown
The EXOR gates 15a to 15c compare the chip select address signal 7 of the memories 2a and 2b designated by the CPU with the address stored in the address register 13, and when the comparison result is coincident, that is, the chip select from this terminal When the memory 2a or 2b selected by the signal 9 is designated, all the outputs of the EXOR gates 15a to 15c become "L". In addition, NA
The ND gates 16a to 16c take the logical product of the output "L" of the EXOR gates 15a to 15c and the "L" of the upper 3 bits of the memory capacity register 14, and the outputs of the NAND gates 16a to 16c are all "H". Becomes As a result, the chip select signal 9 output from the NAND gate 16d becomes "L".

【0022】アドレス/チップセレクト切り替え信号18
が“L”であって、チップセレクト信号9が“L”の場
合、第1のNANDゲート16e の出力が“H”、第2のNAND
ゲート16f の出力も“H”となるので、第3のNANDゲー
ト16g の出力が“L”となってアドレス/チップセレク
ト端子12から出力されるチップセレクト信号3(4)がアク
ティブになる。
Address / chip select switching signal 18
Is "L" and the chip select signal 9 is "L", the output of the first NAND gate 16e is "H", and the output of the second NAND gate 16e is "H".
Since the output of the gate 16f also becomes "H", the output of the third NAND gate 16g becomes "L" and the chip select signal 3 (4) output from the address / chip select terminal 12 becomes active.

【0023】また、アドレス/チップセレクト切り替え
信号18が“L”であって、チップセレクト信号9が
“H”の場合、第1のNANDゲート16e の出力が“L”、
第2のNANDゲート16f の出力が“H”となるので、第3
のNANDゲート16g の出力が“H”となってアドレス/チ
ップセレクト端子12から出力されるチップセレクト信号
3(4)はノンアクティブである。
When the address / chip select switching signal 18 is "L" and the chip select signal 9 is "H", the output of the first NAND gate 16e is "L",
Since the output of the second NAND gate 16f becomes "H",
The output of the NAND gate 16g becomes "H" and the chip select signal is output from the address / chip select terminal 12.
3 (4) is non-active.

【0024】一方、アドレス/チップセレクト切り替え
信号18が“H”の場合、チップセレクト信号9が“H”
“L”のいずれであっても、第1のNANDゲート16e の出
力が“H”となるので、アドレス信号10の値が第2のNA
NDゲート16f により反転され、さらに第3のNANDゲート
16g によって反転され、結果的にもとのアドレス信号10
の値がアドレス/チップセレクト端子12から出力され
る。
On the other hand, when the address / chip select switching signal 18 is "H", the chip select signal 9 is "H".
The output of the first NAND gate 16e becomes "H" regardless of "L", so that the value of the address signal 10 becomes the second NA.
Inverted by ND gate 16f, and the third NAND gate
Inverted by 16g, resulting in the original address signal 10
Is output from the address / chip select terminal 12.

【0025】図5は本発明に係るメモリチップ選択コン
トロール回路を内蔵したデータ/アドレス/チップセレ
クト信号切り替え構造のシングルチップマイコンのブロ
ック図、図6は本発明に係るメモリチップ選択コントロ
ール回路のうちの切替回路の具体的回路図である。な
お、前述の実施例と同一、又は相当部分には同一符号を
付してその説明を省略する。図中、22a 〜22d は兼用端
子から切り替え出力されがデータ/アドレス/チップセ
レクト信号、23a,23b はチップセレクト信号、24はデー
タ/アドレス・チップセレクト切り替え信号、25はデー
タ信号、26は兼用端子から切り替え出力するデータ/ア
ドレス/チップセレクト信号である。
FIG. 5 is a block diagram of a single-chip microcomputer having a data / address / chip select signal switching structure incorporating a memory chip selection control circuit according to the present invention, and FIG. 6 is a memory chip selection control circuit according to the present invention. It is a concrete circuit diagram of a switching circuit. The same or corresponding parts as those in the above-described embodiment are designated by the same reference numerals and the description thereof will be omitted. In the figure, 22a to 22d are switched and output from the dual-purpose terminals, but data / address / chip select signals, 23a and 23b are chip select signals, 24 is a data / address / chip select switching signal, 25 is a data signal, and 26 is a dual-purpose terminal. Is a data / address / chip select signal that is output by switching from.

【0026】第1のNANDゲート16h はアドレスデコード
回路8からのチップセレクト信号9、インバータ17b に
よるアドレス/チップセレクト切り替え信号18の反転信
号、及びインバータ17c によるデータ/アドレス・チッ
プセレクト切り替え信号24の反転信号を3入力とする。
第2のNANDゲート16i はアドレス/チップセレクト切り
替え信号18、アドレス信号10、及びインバータ17c によ
るデータ/アドレス・チップセレクト切り替え信号24の
反転信号を3入力とする。第3のNANDゲート16j はデー
タ信号25を一方の入力とし、データ/アドレス・チップ
セレクト切り替え信号24を他方の入力とする。さらに、
第4のNANDゲート16k は、NANDゲート16h,16i,16j の出
力を3入力としてデータ/アドレス/チップセレクト信
号26をシングルチップマイコン1の兼用端子から選択的
に出力する。
The first NAND gate 16h inverts the chip select signal 9 from the address decoding circuit 8, the inverted signal of the address / chip select switching signal 18 by the inverter 17b, and the inversion of the data / address / chip select switching signal 24 by the inverter 17c. 3 signals are input.
The second NAND gate 16i receives the address / chip select switching signal 18, the address signal 10, and the inverted signal of the data / address / chip select switching signal 24 by the inverter 17c as three inputs. The third NAND gate 16j receives the data signal 25 as one input and the data / address / chip select switching signal 24 as the other input. further,
The fourth NAND gate 16k receives the outputs of the NAND gates 16h, 16i and 16j as three inputs and selectively outputs the data / address / chip select signal 26 from the shared terminal of the single chip microcomputer 1.

【0027】なお、データ/アドレス・チップセレクト
信号24が“H”の時、データ/アドレス/チップセレク
ト信号26はデータ信号25の出力に切り替えられる。ま
た、データ/アドレス・チップセレクト信号24が“L”
であって、アドレス/チップセレクト切り替え信号18が
“H”の時、データ/アドレス/チップセレクト信号26
はアドレス信号10の出力に切り替えられる。また、デー
タ/アドレス・チップセレクト信号24が“L”であっ
て、アドレス/チップセレクト切り替え信号18が“L”
の時、データ/アドレス/チップセレクト信号26はチッ
プセレクト信号9の出力に切り替えられる。
When the data / address / chip select signal 24 is "H", the data / address / chip select signal 26 is switched to the output of the data signal 25. Also, the data / address / chip select signal 24 is "L".
When the address / chip select switching signal 18 is "H", the data / address / chip select signal 26
Is switched to the output of the address signal 10. Further, the data / address / chip select signal 24 is "L" and the address / chip select switching signal 18 is "L".
At this time, the data / address / chip select signal 26 is switched to the output of the chip select signal 9.

【0028】次に、動作について説明する。データ/ア
ドレス・チップセレクト信号24が“L”であって、アド
レス/チップセレクト切り替え信号18が“L”の場合、
第1のNANDゲート16h の出力は、前述の実施例と同様に
してアドレスデコード回路8で生成されたチップセレク
ト信号の“L”“H”に応じて“H”“L”になるが、
第2のNANDゲート16i の出力が“H”、第3のNANDゲー
ト16j の出力が“H”であるので、第4のNANDゲート16
k の出力はチップセレクト信号9の“L”“H”となっ
てデータ/アドレス/チップセレクト信号26はチップセ
レクト信号9の出力に切り替わる。
Next, the operation will be described. When the data / address / chip select signal 24 is "L" and the address / chip select switching signal 18 is "L",
The output of the first NAND gate 16h becomes "H" or "L" in response to the "L" or "H" of the chip select signal generated by the address decoding circuit 8 in the same manner as the above-mentioned embodiment.
Since the output of the second NAND gate 16i is "H" and the output of the third NAND gate 16j is "H", the fourth NAND gate 16i
The output of k becomes "L" or "H" of the chip select signal 9, and the data / address / chip select signal 26 is switched to the output of the chip select signal 9.

【0029】また、データ/アドレス・チップセレクト
信号24が“L”であって、アドレス/チップセレクト切
り替え信号18が“H”の場合、第1のNANDゲート16h の
出力はチップセレクト信号の“L”“H”にかかわらず
“H”、第3のNANDゲート16j の出力が“H”であるの
で、第2のNANDゲート16i により反転されたアドレス信
号10の“H”“L”が第4のNANDゲート16k によって再
度反転され、データ/アドレス/チップセレクト信号26
はアドレス信号10の出力に切り替わる。
When the data / address / chip select signal 24 is "L" and the address / chip select switching signal 18 is "H", the output of the first NAND gate 16h is "L" of the chip select signal. Since the output of the third NAND gate 16j is "H" regardless of "H" and the output of the third NAND gate 16j is "H", "L" of the address signal 10 inverted by the second NAND gate 16i is the fourth. NAND gate 16k again inverts the data / address / chip select signal 26
Switches to the output of address signal 10.

【0030】第3のNANDゲート16j の出力が“H”とな
った場合、CPU は ALE信号19を出力し、 ALE信号19の立
ち上がり立ち下がりによって出力信号(チップセレクト
又はアドレス信号)がラッチ20a 〜20d にラッチされ
る。
When the output of the third NAND gate 16j becomes "H", the CPU outputs the ALE signal 19, and the output signal (chip select or address signal) is latched by the rising and falling of the ALE signal 19. Latched to 20d.

【0031】一方、データ/アドレス・チップセレクト
信号24が“H”の場合、アドレス/チップセレクト切り
替え信号18及びチップセレクト信号9が“H”“L”の
いずれであっても第1及び第2のNANDゲート16h,16i の
出力は“H”であるので、第3のNANDゲート16j により
反転されたデータ信号25の“H”“L”が第4のNANDゲ
ート16k によって再度反転され、データ/アドレス/チ
ップセレクト信号26はデータ信号25の出力に切り替わ
る。
On the other hand, when the data / address / chip select signal 24 is "H", the first and second signals are set regardless of whether the address / chip select switching signal 18 or the chip select signal 9 is "H" or "L". Since the outputs of the NAND gates 16h and 16i are "H", the "H" and "L" of the data signal 25 inverted by the third NAND gate 16j are inverted again by the fourth NAND gate 16k and the data / The address / chip select signal 26 switches to the output of the data signal 25.

【0032】なお、アドレスデコード回路8,切替回路
11は本実施例の論理構成に限るものではない。
The address decoding circuit 8 and the switching circuit
11 is not limited to the logical configuration of this embodiment.

【0033】[0033]

【発明の効果】以上のように、本発明のメモリチップ選
択コントロール回路は、CPU が搭載されたチップに内蔵
されて外部メモリチップのチップセレクト信号を生成
し、アドレス出力端子又はデータ/アドレス兼用端子を
利用して出力するので、アドレスデコード回路を外部に
設ける必要がなく、また、チップセレクト信号の専用出
力端子を必要とせずにICパッケージの省ピン化が図られ
るという優れた効果を奏する。
As described above, the memory chip selection control circuit of the present invention is built in a chip on which a CPU is mounted to generate a chip select signal of an external memory chip, and an address output terminal or a data / address dual-purpose terminal. Since there is no need to provide an address decode circuit externally, and there is no need for a dedicated output terminal for the chip select signal, it is possible to achieve pin-saving of the IC package.

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

【図1】本発明に係るメモリチップ選択コントロール回
路内蔵のシングルチップマイコン及び外部メモリのブロ
ック図である。
FIG. 1 is a block diagram of a single chip microcomputer with a built-in memory chip selection control circuit and an external memory according to the present invention.

【図2】図1のシングルチップに内蔵される本発明に係
るメモリチップ選択コントロール回路のブロック図であ
る。
2 is a block diagram of a memory chip selection control circuit according to the present invention incorporated in the single chip of FIG. 1. FIG.

【図3】本発明に係るメモリチップ選択コントロール回
路を構成するアドレスデコード回路の回路図である。
FIG. 3 is a circuit diagram of an address decode circuit which constitutes a memory chip selection control circuit according to the present invention.

【図4】本発明に係るメモリチップ選択コントロール回
路を構成する切替回路の回路図である。
FIG. 4 is a circuit diagram of a switching circuit which constitutes a memory chip selection control circuit according to the present invention.

【図5】本発明に係るメモリチップ選択コントロール回
路を内蔵したデータ/アドレス/チップセレクト信号端
子兼用構造のシングルチップマイコン及び外部メモリの
ブロック図である。
FIG. 5 is a block diagram of an external memory and a single-chip microcomputer having a structure that also serves as a data / address / chip select signal terminal having a built-in memory chip selection control circuit according to the present invention.

【図6】図5のシングルチップマイコンに内蔵された本
発明に係るメモリチップ選択コントロール回路を構成す
る切替回路の回路図である。
FIG. 6 is a circuit diagram of a switching circuit included in the single chip microcomputer of FIG. 5, which constitutes a memory chip selection control circuit according to the present invention.

【図7】シングルチップマイコン及び外部メモリ間の従
来のメモリチップ選択に関連する部分のブロック図であ
る。
FIG. 7 is a block diagram of a portion related to a conventional memory chip selection between a single chip microcomputer and an external memory.

【図8】アドレスデコーダ内蔵のシングルチップマイコ
ン及び外部メモリ間の従来のメモリチップ選択に関連す
る部分のブロック図である。
FIG. 8 is a block diagram of a portion related to a conventional memory chip selection between a single-chip microcomputer including an address decoder and an external memory.

【図9】アドレス/データ信号端子兼用のシングルチッ
プマイコン及び外部メモリ間の従来のメモリチップ選択
に関連する部分のブロック図である。
FIG. 9 is a block diagram of a portion related to a conventional memory chip selection between a single-chip microcomputer also serving as an address / data signal terminal and an external memory.

【符号の説明】[Explanation of symbols]

1 シングルチップマイコン 2a,2b メモリ 3,4 チップセレクト信号 5 データ信号 6 アドレス信号 7 チップセレクトアドレス信号 8 アドレスデコード回路 9 チップセレクト信号 10 アドレス信号 11 切替回路 12 アドレス/チップセレクト端子 13 アドレスレジスタ 14 メモリ容量レジスタ 18 アドレス/チップセレクト切り替え信号 19 ALE 信号 20a 〜20d ラッチ 21 データ信号 22a 〜22d データ/アドレス/チップセレクト信号 23a,23b チップセレクト信号 24 データ/アドレス・チップセレクト切り替え信号 25 データ信号 26 データ/アドレス/チップセレクト信号 1 Single-chip microcomputer 2a, 2b Memory 3, 4 Chip select signal 5 Data signal 6 Address signal 7 Chip select address signal 8 Address decode circuit 9 Chip select signal 10 Address signal 11 Switching circuit 12 Address / chip select terminal 13 Address register 14 Memory Capacity register 18 Address / chip select switching signal 19 ALE signal 20a to 20d Latch 21 Data signal 22a to 22d Data / address / chip select signal 23a, 23b Chip select signal 24 Data / address / chip select switching signal 25 Data signal 26 data / Address / chip select signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 CPUを搭載したチップによる外部メモ
リチップの選択をコントロールする回路において、CP
Uを搭載したチップに内蔵され、CPUが指定するアク
セス対象の外部メモリチップのアドレスに基づいて複数
の外部メモリチップの中からアクセス対象の外部メモリ
チップを選択するためのチップセレクト信号を生成する
回路と、CPUを搭載したチップのアドレス出力端子か
らチップセレクト信号を出力すべく、アドレス信号及び
チップセレクト信号の出力を切り替える回路とを備えた
ことを特徴とするメモリチップ選択コントロール回路。
1. A circuit for controlling selection of an external memory chip by a chip mounting a CPU, comprising:
A circuit which is built in a chip on which U is mounted and which generates a chip select signal for selecting an external memory chip to be accessed from a plurality of external memory chips based on the address of the external memory chip to be accessed specified by the CPU. And a circuit for switching the output of the address signal and the chip select signal so as to output the chip select signal from the address output terminal of the chip on which the CPU is mounted.
【請求項2】 アドレス信号及びデータ信号の出力をC
PUからの制御信号に応じて切り替えてCPUを搭載し
たチップの兼用端子から選択的に出力するチップによる
外部メモリチップの選択をコントロールする回路におい
て、CPUを搭載したチップに内蔵され、CPUが指定
するアクセス対象の外部メモリチップのアドレスに基づ
いて複数の外部メモリチップの中からアクセス対象の外
部メモリチップを選択するためのチップセレクト信号を
生成する回路と、チップセレクト信号を前記兼用端子か
ら出力すべく、データ信号及びアドレス信号並びにチッ
プセレクト信号の出力を切り替える回路とを備えたこと
を特徴とするメモリチップ選択コントロール回路。
2. The output of the address signal and the data signal is C
In a circuit that controls selection of an external memory chip by a chip that is switched according to a control signal from a PU and selectively outputs from a shared terminal of a chip on which a CPU is mounted, the circuit is built in the chip on which the CPU is mounted and specified by the CPU A circuit for generating a chip select signal for selecting an external memory chip to be accessed from a plurality of external memory chips based on an address of the external memory chip to be accessed, and a chip select signal to be output from the dual-purpose terminal , A circuit for switching the output of a data signal, an address signal, and a chip select signal, and a memory chip selection control circuit.
JP4298645A 1992-11-09 1992-11-09 Memory chip selection control circuit Pending JPH06150022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4298645A JPH06150022A (en) 1992-11-09 1992-11-09 Memory chip selection control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4298645A JPH06150022A (en) 1992-11-09 1992-11-09 Memory chip selection control circuit

Publications (1)

Publication Number Publication Date
JPH06150022A true JPH06150022A (en) 1994-05-31

Family

ID=17862420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4298645A Pending JPH06150022A (en) 1992-11-09 1992-11-09 Memory chip selection control circuit

Country Status (1)

Country Link
JP (1) JPH06150022A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009779A (en) * 2006-06-29 2008-01-17 Murata Mach Ltd Port controller and data processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009779A (en) * 2006-06-29 2008-01-17 Murata Mach Ltd Port controller and data processor
JP4640272B2 (en) * 2006-06-29 2011-03-02 村田機械株式会社 Port control device

Similar Documents

Publication Publication Date Title
JPH0342732A (en) Semiconductor integrated circuit
US5179676A (en) Address selection circuit including address counters for performing address selection
JPH02130023A (en) Multifunction programmable logic device
JPH02161544A (en) Single chip microcomputer
JPH06150022A (en) Memory chip selection control circuit
US6003141A (en) Single chip processor with externally executed test function
JPH1139212A (en) Microcomputer
JPH11203161A (en) Microcomputer
JP3251265B2 (en) Memory output control circuit
JPH064480Y2 (en) Semiconductor memory device
JP2922963B2 (en) Sequence controller
KR100206898B1 (en) Multiset dram control unit
JPS6330658B2 (en)
JPH0235700A (en) Memory circuit
JPS5999551A (en) Address generating circuit
KR0146201B1 (en) Data i/o control circuit
JPH07182270A (en) Address/data multiplex-controllable rom internal circuit
JPH05120879A (en) Semiconductor memory device
JPH0262781A (en) Memory circuit
JP2000172555A (en) Memory sharing device
JPH0855477A (en) Memory device
JPH0442329A (en) Data processor
JPH09106684A (en) Semiconductor memory
JPH0562492A (en) Semiconductor integrated circuit
JPH0628245A (en) Microcomputer