JPH05224790A - Input/output circuit - Google Patents

Input/output circuit

Info

Publication number
JPH05224790A
JPH05224790A JP4024021A JP2402192A JPH05224790A JP H05224790 A JPH05224790 A JP H05224790A JP 4024021 A JP4024021 A JP 4024021A JP 2402192 A JP2402192 A JP 2402192A JP H05224790 A JPH05224790 A JP H05224790A
Authority
JP
Japan
Prior art keywords
input
circuit
output
register
pull
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.)
Withdrawn
Application number
JP4024021A
Other languages
Japanese (ja)
Inventor
Tsutomu Kato
勉 加藤
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.)
Fujitsu VLSI Ltd
Fujitsu Ltd
Original Assignee
Fujitsu VLSI Ltd
Fujitsu 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 Fujitsu VLSI Ltd, Fujitsu Ltd filed Critical Fujitsu VLSI Ltd
Priority to JP4024021A priority Critical patent/JPH05224790A/en
Publication of JPH05224790A publication Critical patent/JPH05224790A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Semiconductor Integrated Circuits (AREA)
  • Logic Circuits (AREA)

Abstract

PURPOSE:To reduce the area of the circuit without lowering the function of the input/output circuit at a single-chip microcomputer. CONSTITUTION:An input buffer circuit 12, output buffer circuit 11, pull-up resistor R1, first switch circuit Tr 3, pull-down resistor R2, second switch circuit Tr 4, input/output switching register 4, selection designating register 16 and an enable register 17 are connected to an input/output terminal 2. On the other hand, decode circuits 13a, 13b and 13c enabling the reload of stored data are respectively connected to the respective registers. Further, the decode circuit 13a to activate the input buffer circuit 12 is connected to the input buffer circuit 12 and, between the respective registers and the output buffer circuit 11 and between the first and second switch circuits Tr 3 and Tr 4, a logic circuit 18 is provided to drive the output buffer circuit 11 and the first and second switch circuits Tr 3 and Tr 4 based on stored data in the respective registers.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はシングルチップマイク
ロコンピュータの入出力回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input / output circuit of a single chip microcomputer.

【0002】近年、シングルチップマイクロコンピュー
タの入出力回路には、シングルチップマイクロコンピュ
ータを使用する装置の部品点数を削減するために入出力
端子レベルを所定のレベルまで引き上げるプルアップ抵
抗や入出力端子レベルを所定のレベルまで引き下げるプ
ルダウン抵抗を内蔵することが一般的になりつつある。
しかし、内蔵されたプルアップ抵抗やプルダウン抵抗を
使用するか否かはユーザーによって異なるため、あらか
じめ設定されたプログラムによりプルアップ抵抗やプル
ダウン抵抗を使用するか否かを選択可能となっている。
In recent years, in the input / output circuit of a single chip microcomputer, a pull-up resistor or an input / output terminal level for raising the input / output terminal level to a predetermined level in order to reduce the number of parts of a device using the single chip microcomputer. It is becoming more common to incorporate a pull-down resistor that pulls down to a predetermined level.
However, since whether or not to use the built-in pull-up resistor or pull-down resistor depends on the user, it is possible to select whether or not to use the pull-up resistor or pull-down resistor by a preset program.

【0003】[0003]

【従来の技術】従来のシングルチップマイクロコンピュ
ータの8ビット構成の入出力回路の一例を図5に従って
説明すると、8ビットの入出力回路1a〜1hには入出
力端子2a〜2hがそれぞれ設けられるとともに、各入
出力回路1a〜1hはバス3にそれぞれ接続されてい
る。
2. Description of the Related Art An example of an 8-bit input / output circuit of a conventional single-chip microcomputer will be described with reference to FIG. 5. 8-bit input / output circuits 1a-1h are provided with input / output terminals 2a-2h, respectively. , The input / output circuits 1a to 1h are connected to the bus 3, respectively.

【0004】各入出力回路1a〜1hは同一構成である
ので、入出力回路1aについてその構成を説明すると、
同入出力回路1aには入出力切り換えレジスタ4と、出
力データレジスタ5と、プルアップイネーブルレジスタ
6と、プルダウンイネーブルレジスタ7との4つのレジ
スタが設けられ、各レジスタはそれぞれ前記バス3から
出力される1ビットの書き込みデータを格納可能となっ
ている。
Since the input / output circuits 1a to 1h have the same structure, the structure of the input / output circuit 1a will be described below.
The input / output circuit 1a is provided with four registers, an input / output switching register 4, an output data register 5, a pull-up enable register 6 and a pull-down enable register 7, and each register is output from the bus 3, respectively. 1-bit write data can be stored.

【0005】前記入出力切り換えレジスタ4の出力信号
はNAND回路8aの一方の入力端子に入力されるとと
もに、インバータ回路9aを介してNOR回路10aの
一方の入力端子に入力されている。
The output signal of the input / output switching register 4 is input to one input terminal of the NAND circuit 8a and also to one input terminal of the NOR circuit 10a via the inverter circuit 9a.

【0006】前記出力データレジスタ5の出力信号は前
記NAND回路8a及びNOR回路10aの他方の入力
端子に入力されている。そして、NAND回路8aの出
力信号は出力バッファ回路11を構成するPチャネルM
OSトランジスタTr1のゲートに出力され、NOR回路
10aの出力信号は同じく出力バッファ回路11を構成
するNチャネルMOSトランジスタTr2のゲートに出力
されている。そのバッファ回路11はトランジスタTr
1,Tr2が高電位側電源Vccと低電位側電源Vssとの間
で直列に接続され、両トランジスタTr1,Tr2のドレイ
ンが前記入出力端子2aに接続されている。
The output signal of the output data register 5 is input to the other input terminals of the NAND circuit 8a and the NOR circuit 10a. The output signal of the NAND circuit 8a is the P channel M which constitutes the output buffer circuit 11.
The output signal of the NOR circuit 10a, which is output to the gate of the OS transistor Tr1, is also output to the gate of the N-channel MOS transistor Tr2 that also forms the output buffer circuit 11. The buffer circuit 11 is a transistor Tr
1 and Tr2 are connected in series between the high potential side power source Vcc and the low potential side power source Vss, and the drains of both transistors Tr1 and Tr2 are connected to the input / output terminal 2a.

【0007】前記プルアップイネーブルレジスタ6の出
力信号はインバータ回路9bを介してスイッチ回路を構
成するPチャネルMOSトランジスタTr3のゲートに入
力され、同トランジスタTr3のソースは電源Vccに接続
されるとともにドレインはプルアップ抵抗R1を介して
前記入出力端子2aに接続されている。
The output signal of the pull-up enable register 6 is input to the gate of a P-channel MOS transistor Tr3 forming a switch circuit via an inverter circuit 9b, the source of the transistor Tr3 is connected to a power supply Vcc and the drain is It is connected to the input / output terminal 2a via a pull-up resistor R1.

【0008】前記プルダウンイネーブルレジスタ7の出
力信号はスイッチ回路を構成するNチャネルMOSトラ
ンジスタTr4のゲートに出力され、同トランジスタTr4
のソースは電源Vssに接続されるとともにドレインはプ
ルダウン抵抗R2を介して前記入出力端子2aに接続さ
れている。
The output signal of the pull-down enable register 7 is output to the gate of an N-channel MOS transistor Tr4 which constitutes a switch circuit, and the transistor Tr4 is provided.
Is connected to the power supply Vss, and the drain is connected to the input / output terminal 2a through the pull-down resistor R2.

【0009】前記入出力端子2aは入力バッファ回路1
2の入力端子に接続され、同入力バッファ回路12の出
力信号はバス3に出力される。前記バス3には前記各レ
ジスタ4〜7及び入力バッファ回路12を選択して同レ
ジスタ4〜7にデータを書き込み、あるいは入力バッフ
ァ回路12を活性化するためのアドレスデコーダラッチ
回路13a〜13dが接続されている。そして、各アド
レスデコーダラッチ回路13a〜13dにあらかじめ設
定されたアドレスと一致するアドレス信号がバス3から
入力されると、各アドレスデコーダラッチ回路13a〜
13dはHレベルの信号を出力し、その状態でラッチ信
号ALEが入力されると各アドレスデコーダラッチ回路
13a〜13dはその出力信号をラッチする。
The input / output terminal 2a is the input buffer circuit 1
2 and the output signal of the input buffer circuit 12 is output to the bus 3. Address decoder latch circuits 13a to 13d for selecting the registers 4 to 7 and the input buffer circuit 12 and writing data to the registers 4 to 7 or activating the input buffer circuit 12 are connected to the bus 3. Has been done. Then, when an address signal that matches an address set in advance in each of the address decoder latch circuits 13a to 13d is input from the bus 3, each of the address decoder latch circuits 13a to 13d.
13d outputs a signal of H level, and when the latch signal ALE is input in that state, each of the address decoder latch circuits 13a to 13d latches the output signal.

【0010】前記アドレスデコーダラッチ回路13a〜
13dの構成はあらかじめ設定されるアドレス信号を除
いて同一構成であるので、アドレスデコーダラッチ回路
13aについてその構成を図6に従って説明すると、バ
ス3を構成する8本のバス線B0〜B7のうち、B0,
B1,B4,B5,B7はNAND回路8bの入力端子
に接続され、B2,B3,B6はNOR回路10bの入
力端子に接続され、前記NAND回路8bの出力信号は
NOR回路10bに入力されている。従って、バス線B
0〜B7に出力されたアドレス信号が「1100110
1」となった場合に限りNOR回路10bがHレベルの
信号を出力するので、このアドレスデコーダラッチ回路
13aにはあらかじめ設定されたアドレスは「1100
1101」となる。
Address decoder latch circuits 13a ...
Since the configuration of 13d is the same except for the address signal set in advance, the configuration of the address decoder / latch circuit 13a will be described with reference to FIG. 6. Of the eight bus lines B0 to B7 forming the bus 3, B0,
B1, B4, B5, B7 are connected to the input terminal of the NAND circuit 8b, B2, B3, B6 are connected to the input terminal of the NOR circuit 10b, and the output signal of the NAND circuit 8b is input to the NOR circuit 10b. .. Therefore, bus line B
The address signal output to 0 to B7 is "1100110".
Since the NOR circuit 10b outputs an H level signal only when it becomes "1", the preset address is "1100" in the address decoder latch circuit 13a.
1101 ".

【0011】前記NOR回路10bの出力信号はインバ
ータ回路9i,9hを介してNAND回路8cの一方の
入力端子に入力される。また、インバータ回路9hには
ラッチ信号ALEが入力され、同ラッチ信号ALEがH
レベルとなると同インバータ回路9hが活性化されてN
OR回路10bの出力信号がNAND回路8cに入力さ
れる。
The output signal of the NOR circuit 10b is input to one input terminal of the NAND circuit 8c via the inverter circuits 9i and 9h. Further, the latch signal ALE is input to the inverter circuit 9h, and the latch signal ALE becomes H level.
At the level, the inverter circuit 9h is activated and N
The output signal of the OR circuit 10b is input to the NAND circuit 8c.

【0012】前記NAND回路8cの他方の入力端子に
は常にはHレベルのリセット信号RSが入力されてい
る。また、NAND回路8cの出力信号はインバータ回
路9cを介して出力されるとともに、インバータ回路9
dを介して同NAND回路8cの一方の入力端子に入力
され、同インバータ回路9dには前記ラッチ信号ALE
がインバータ回路9eを介して入力されて同インバータ
回路9eの出力信号がHレベルとなった時にインバータ
回路9dが活性化されるようになっている。
The H-level reset signal RS is always input to the other input terminal of the NAND circuit 8c. The output signal of the NAND circuit 8c is output via the inverter circuit 9c, and
It is inputted to one input terminal of the NAND circuit 8c via d and the latch signal ALE is inputted to the inverter circuit 9d.
Is inputted through the inverter circuit 9e and the output signal of the inverter circuit 9e becomes H level, the inverter circuit 9d is activated.

【0013】従って、Hレベルのラッチ信号ALEが前
記インバータ回路9h及びインバータ回路9eに入力さ
れると、同インバータ回路9hが活性化されてNOR回
路10bの出力信号がNAND回路8cに出力され、次
いでラッチ信号ALEがLレベルとなるとインバータ回
路9dが活性化されてNAND回路8cの出力信号がラ
ッチされるようになっている。
Therefore, when the H-level latch signal ALE is input to the inverter circuit 9h and the inverter circuit 9e, the inverter circuit 9h is activated and the output signal of the NOR circuit 10b is output to the NAND circuit 8c. When the latch signal ALE becomes L level, the inverter circuit 9d is activated and the output signal of the NAND circuit 8c is latched.

【0014】前記アドレスデコーダラッチ回路13aの
出力信号はAND回路14a,14cの一方の入力端子
に入力され、同AND回路14aの他方の入力端子には
読出し信号RDが入力されている。そして、アドレスデ
コーダラッチ回路13aの出力信号と読出し信号RDが
Hレベルとなると、AND回路14aはHレベルの信号
を前記入力バッファ回路12に出力し、同入力バッファ
回路12はそのHレベルの信号に基づいて活性化され
る。
The output signal of the address decoder latch circuit 13a is input to one input terminal of the AND circuits 14a and 14c, and the read signal RD is input to the other input terminal of the AND circuit 14a. When the output signal of the address decoder / latch circuit 13a and the read signal RD become H level, the AND circuit 14a outputs an H level signal to the input buffer circuit 12, and the same input buffer circuit 12 becomes the H level signal. Is activated based on.

【0015】AND回路14bの一方の入力端子には前
記アドレスデコーダラッチ回路13bの出力信号が入力
されるとともに、他方の入力端子には書き込み信号WR
が入力され、アドレスデコーダラッチ回路13bの出力
信号及び書き込み信号WRがともにHレベルとなるとA
ND回路14bはHレベルの信号を前記入出力切り換え
レジスタ4に出力する。そして、入出力切り換えレジス
タ4はそのHレベルの信号に基づいて、格納されている
データをバス3から入力される書き込みデータに書き換
える。
The output signal of the address decoder / latch circuit 13b is input to one input terminal of the AND circuit 14b, and the write signal WR is input to the other input terminal.
Is input and both the output signal of the address decoder latch circuit 13b and the write signal WR become H level, A
The ND circuit 14b outputs an H level signal to the input / output switching register 4. Then, the input / output switching register 4 rewrites the stored data into the write data input from the bus 3 based on the H level signal.

【0016】AND回路14cの他方の入力端子には書
き込み信号WRが入力され、アドレスデコーダラッチ回
路13aの出力信号及び書き込み信号WRがともにHレ
ベルとなるとAND回路14cはHレベルの信号を前記
出力データレジスタ5に出力する。そして、出力データ
レジスタ5はそのHレベルの信号に基づいて、格納され
ているデータをバス3から入力される書き込みデータに
書き換える。
The write signal WR is input to the other input terminal of the AND circuit 14c, and when the output signal of the address decoder / latch circuit 13a and the write signal WR both become H level, the AND circuit 14c outputs the signal of H level as the output data. Output to register 5. Then, the output data register 5 rewrites the stored data into the write data input from the bus 3 based on the H level signal.

【0017】AND回路14dの一方の入力端子には前
記アドレスデコーダラッチ回路13cの出力信号が入力
されるとともに、他方の入力端子には書き込み信号WR
が入力され、アドレスデコーダラッチ回路13cの出力
信号及び書き込み信号WRがともにHレベルとなるとA
ND回路14dはHレベルの信号を前記プルアップイネ
ーブルレジスタ6に出力する。そして、プルアップイネ
ーブルレジスタ6はそのHレベルの信号に基づいて、格
納されているデータをバス3から入力される書き込みデ
ータに書き換える。
The output signal of the address decoder / latch circuit 13c is input to one input terminal of the AND circuit 14d, and the write signal WR is input to the other input terminal.
Is input and both the output signal of the address decoder latch circuit 13c and the write signal WR become H level, A
The ND circuit 14d outputs an H level signal to the pull-up enable register 6. Then, the pull-up enable register 6 rewrites the stored data with the write data input from the bus 3 based on the H level signal.

【0018】AND回路14eの一方の入力端子には前
記アドレスデコーダラッチ回路13dの出力信号が入力
されるとともに、他方の入力端子には書き込み信号WR
が入力され、アドレスデコーダラッチ回路13dの出力
信号及び書き込み信号WRがともにHレベルとなるとA
ND回路14eはHレベルの信号を前記プルダウンイネ
ーブルレジスタ7に出力する。そして、プルダウンイネ
ーブルレジスタ7はそのHレベルの信号に基づいて、格
納されているデータをバス3から入力される書き込みデ
ータに書き換える。
The output signal of the address decoder / latch circuit 13d is input to one input terminal of the AND circuit 14e, and the write signal WR is input to the other input terminal.
Is inputted and both the output signal of the address decoder latch circuit 13d and the write signal WR become H level, A
The ND circuit 14e outputs an H level signal to the pull-down enable register 7. Then, the pull-down enable register 7 rewrites the stored data into the write data input from the bus 3 based on the H level signal.

【0019】上記のように構成された入出力回路1aの
動作を説明すると、入力動作時にはその入力動作に先立
ってバス3に出力されるアドレス信号に基づいてアドレ
スデコーダラッチ回路13bがHレベルの信号を出力す
るとともに書き込み信号WRがHレベルとなってAND
回路14bからHレベルの信号が入出力切り換えレジス
タ4に出力される。そして、バス3から同入出力切り換
えレジスタ4に出力される書き込みデータにより同入出
力切り換えレジスタ4に「0」のデータが書き込まれ
る。
The operation of the input / output circuit 1a configured as described above will be described. At the time of an input operation, the address decoder latch circuit 13b outputs an H level signal based on the address signal output to the bus 3 prior to the input operation. And the write signal WR becomes H level and AND
An H level signal is output from the circuit 14b to the input / output switching register 4. Then, the data “0” is written in the input / output switching register 4 by the write data output from the bus 3 to the input / output switching register 4.

【0020】すると、入出力切り換えレジスタ4からL
レベルの信号が出力バッファ回路11に出力され、その
出力信号に基づいてトランジスタTr1,Tr2はともにオ
フされて出力バッファ回路11は動作しない状態とな
る。
Then, from the input / output switching register 4 to L
A level signal is output to the output buffer circuit 11, and based on the output signal, both the transistors Tr1 and Tr2 are turned off, and the output buffer circuit 11 does not operate.

【0021】また、バス3に出力されるアドレス信号に
基づいてアドレスデコーダラッチ回路13c,13dが
Hレベルの信号を出力するとともに書き込み信号WRが
HレベルとなってAND回路14d,14eからHレベ
ルの信号がプルアップイネーブルレジスタ6及びプルダ
ウンイネーブルレジスタ7に出力される。そして、バス
3から同プルアップイネーブルレジスタ6及びプルダウ
ンイネーブルレジスタ7に出力される書き込みデータに
より同プルアップイネーブルレジスタ6及びプルダウン
イネーブルレジスタ7に「0」若しくは「1」のデータ
が書き込まれる。
Further, based on the address signal output to the bus 3, the address decoder / latch circuits 13c and 13d output H level signals, and the write signal WR becomes H level and the AND circuits 14d and 14e output H level signals. The signal is output to the pull-up enable register 6 and the pull-down enable register 7. Then, the write data output from the bus 3 to the pull-up enable register 6 and the pull-down enable register 7 writes “0” or “1” data to the pull-up enable register 6 and the pull-down enable register 7.

【0022】すると、例えばプルアップイネーブルレジ
スタ6に「0」、プルダウンイネーブルレジスタ7に
「1」のデータが書き込まれているとトランジスタTr3
がオフされるとともにトランジスタTr4がオンされて入
出力端子2aはプルダウン抵抗R2を介して電源Vssに
接続される。また、書き込みデータが逆の場合は入出力
端子2aはプルアップ抵抗R1を介して電源Vccに接続
される。
Then, for example, if data "0" is written in the pull-up enable register 6 and data "1" is written in the pull-down enable register 7, the transistor Tr3 is written.
Is turned off and the transistor Tr4 is turned on, so that the input / output terminal 2a is connected to the power supply Vss via the pull-down resistor R2. When the write data is reversed, the input / output terminal 2a is connected to the power supply Vcc via the pull-up resistor R1.

【0023】また、各レジスタ6,7の格納データが前
記とは逆の場合は、入出力端子2aはプルダウン抵抗R
2を介して電源Vssに接続され、各レジスタ6,7の格
納データがともに「0」の場合は入出力端子2aは電源
Vcc、電源Vssのいずれにも接続されない。
When the data stored in each of the registers 6 and 7 is opposite to the above, the input / output terminal 2a has a pull-down resistor R.
When the data stored in the registers 6 and 7 are both "0", the input / output terminal 2a is not connected to either the power source Vcc or the power source Vss.

【0024】次いで、バス3に出力されるアドレス信号
に基づいてアドレスデコーダラッチ回路13aがHレベ
ルの信号を出力するとともに読出し信号RDがHレベル
となってAND回路14aが入力バッファ回路12にH
レベルの信号を出力することにより入力バッファ回路1
2が活性化され、入出力端子2aに入力される入力信号
は入力バッファ回路12を介してバス3に出力される。
Then, based on the address signal output to the bus 3, the address decoder / latch circuit 13a outputs an H level signal and the read signal RD becomes H level, and the AND circuit 14a outputs H to the input buffer circuit 12.
Input buffer circuit 1 by outputting a level signal
2 is activated and the input signal input to the input / output terminal 2a is output to the bus 3 via the input buffer circuit 12.

【0025】出力動作時にはその出力動作に先立って入
出力切り換えレジスタ4に「1」のデータが書き込ま
れ、出力データレジスタ5には出力データが書き込ま
れ、プルアップイネーブルレジスタ6及びプルダウンイ
ネーブルレジスタ7には「0」のデータが書き込まれ
る。また、読出し信号RDはLレベルとなって入力バッ
ファ回路12は動作しない状態となる。
During the output operation, data "1" is written in the input / output switching register 4 prior to the output operation, the output data is written in the output data register 5, and the pull-up enable register 6 and the pull-down enable register 7 are written. Data of "0" is written. Further, the read signal RD becomes L level, and the input buffer circuit 12 does not operate.

【0026】すると、プルアップイネーブルレジスタ6
及びプルダウンイネーブルレジスタ7のLレベルの出力
信号によりトランジスタTr3,Tr4はともにオフされ、
入出力切り換えレジスタ4のHレベルの出力信号により
NAND回路8a及びNOR回路10aは出力データレ
ジスタ5の出力信号を待つ状態となる。
Then, the pull-up enable register 6
And the transistors Tr3 and Tr4 are both turned off by the L level output signal of the pull-down enable register 7,
The H level output signal of the input / output switching register 4 causes the NAND circuit 8a and the NOR circuit 10a to wait for the output signal of the output data register 5.

【0027】ここで、例えば出力データレジスタ5がH
レベルの信号を出力すると出力バッファ回路11のトラ
ンジスタTr1がオンされて入出力端子2aからHレベル
の出力信号が出力され、出力データレジスタ5がLレベ
ルの信号を出力すると出力バッファ回路11のトランジ
スタTr2がオンされて入出力端子2aからLレベルの出
力信号が出力される。
Here, for example, when the output data register 5 is H
When a level signal is output, the transistor Tr1 of the output buffer circuit 11 is turned on to output an H level output signal from the input / output terminal 2a, and when the output data register 5 outputs an L level signal, the transistor Tr2 of the output buffer circuit 11 is output. Is turned on and an L level output signal is output from the input / output terminal 2a.

【0028】前記入出力回路1aは上記のように動作
し、他の入出力回路1b〜1hも同様にアドレスデコー
ダラッチ回路が接続されて同様に動作する。
The input / output circuit 1a operates as described above, and the other input / output circuits 1b-1h similarly operate with the address decoder latch circuit connected.

【0029】[0029]

【発明が解決しようとする課題】ところが、上記のよう
なシングルチップマイクロコンピュータの入出力回路1
a〜1hではそれぞれ4つのアドレスデコーダラッチ回
路13a〜13dが必要となり、各アドレスデコーダラ
ッチ回路13a〜13dは図3に示すように多数の論理
回路から構成されるとともに、特に入力段の多入力NA
ND回路8b及び多入力NOR回路10bは多数のトラ
ンジスタで構成されるため、回路面積が増大する。そし
て、上記従来例では8ビット構成であるが16ビット構
成ではアドレスデコーダラッチ回路の数がさらに増大し
て回路面積が大きく増大するという問題点がある。
However, the input / output circuit 1 of the single chip microcomputer as described above is used.
In each of a to 1h, four address decoder latch circuits 13a to 13d are required, and each address decoder latch circuit 13a to 13d is composed of a large number of logic circuits as shown in FIG.
Since the ND circuit 8b and the multi-input NOR circuit 10b are composed of a large number of transistors, the circuit area increases. Although the conventional example has an 8-bit configuration, the 16-bit configuration has a problem that the number of address decoder latch circuits is further increased and the circuit area is greatly increased.

【0030】この発明の目的は、シングルチップマイク
ロコンピュータの入出力回路の機能を低下させることな
く回路面積を縮小することにある。
An object of the present invention is to reduce the circuit area without deteriorating the function of the input / output circuit of the single chip microcomputer.

【0031】[0031]

【課題を解決するための手段】図1は本発明の原理説明
図である。すなわち、入出力端子2に入力バッファ回路
12と、出力バッファ回路11とが接続され、前記入出
力端子2にはプルアップ抵抗R1と第一のスイッチ回路
Tr3を介して高電位側電源Vccが接続され、前記入出力
端子2にはプルダウン抵抗R2と第二のスイッチ回路T
r4を介して低電位側電源Vssが接続され、前記出力バッ
ファ回路11を活性化するか否かを選択する為のデータ
を格納する入出力切り換えレジスタ4と、前記出力バッ
ファ回路11から出力する出力データ若しくは前記第一
及び第二のスイッチ回路Tr3,Tr4のいずれかの閉路動
作を選択するためのデータのいずれかを格納する選択指
定レジスタ16と、前記第一及び第二のスイッチ回路T
r3,Tr4を動作させるか否かを選択するイネーブルレジ
スタ17とが備えられ、前記各レジスタ4,16,17
にはバス3から入力されるアドレス信号と書き込み信号
WRとに基づいて前記各レジスタ4,16,17を選択
して該バス3から各レジスタ4,16,17に出力され
る書き込みデータに基づいて該レジスタの格納データを
書換え可能とするデコード回路13a,13b,13c
がそれぞれ接続され、前記入力バッファ回路12には前
記バス3から入力されるアドレス信号と読出し信号RD
とに基づいて該入力バッファ回路12を活性化するデコ
ード回路13aが接続され、前記各レジスタ4,16,
17と前記出力バッファ回路11及び前記第一及び第二
のスイッチ回路Tr3,Tr4の間には前記各レジスタ4,
16,17の格納データに基づいて該出力バッファ回路
11及び該第一及び第二のスイッチ回路Tr3,Tr4を駆
動する論理回路18が設けられている。
FIG. 1 illustrates the principle of the present invention. That is, the input buffer circuit 12 and the output buffer circuit 11 are connected to the input / output terminal 2, and the high potential side power source Vcc is connected to the input / output terminal 2 via the pull-up resistor R1 and the first switch circuit Tr3. The input / output terminal 2 has a pull-down resistor R2 and a second switch circuit T.
The low-potential-side power supply Vss is connected via r4, the input / output switching register 4 for storing data for selecting whether to activate the output buffer circuit 11, and the output output from the output buffer circuit 11. A selection designation register 16 for storing either data or data for selecting a closing operation of one of the first and second switch circuits Tr3, Tr4; and the first and second switch circuits T
An enable register 17 for selecting whether or not to operate r3 and Tr4 is provided, and each of the registers 4, 16 and 17 is provided.
The registers 4, 16 and 17 are selected based on the address signal and the write signal WR input from the bus 3 and the write data output from the bus 3 to the registers 4, 16 and 17 are selected. Decoding circuits 13a, 13b, 13c for making it possible to rewrite the data stored in the register
And an address signal and a read signal RD input from the bus 3 to the input buffer circuit 12.
A decode circuit 13a for activating the input buffer circuit 12 is connected to each of the registers 4, 16,
Each of the registers 4, 17 is provided between the output buffer circuit 17 and the first and second switch circuits Tr3, Tr4.
A logic circuit 18 for driving the output buffer circuit 11 and the first and second switch circuits Tr3, Tr4 based on the stored data of 16, 17 is provided.

【0032】また、図3に示すようにプルアップ抵抗と
プルダウン抵抗とは共通の抵抗R3で構成され、前記入
出力端子2から前記抵抗R3と第一のスイッチ回路Tr3
を介して高電位側電源Vccに接続されるとともに、前記
入出力端子2から前記抵抗R3と第二のスイッチ回路T
r4を介して低電位側電源Vssに接続されている。
Further, as shown in FIG. 3, the pull-up resistor and the pull-down resistor are composed of a common resistor R3, and the resistor R3 and the first switch circuit Tr3 are connected from the input / output terminal 2.
Is connected to the high potential side power source Vcc through the input / output terminal 2 and the resistor R3 and the second switch circuit T.
It is connected to the low-potential-side power supply Vss via r4.

【0033】また、図4に示すように前記プルアップ抵
抗と第一のスイッチ回路は前記入出力端子2と高電位側
電源Vccとの間に所定のオン抵抗を備えたPチャネルM
OSトランジスタTr5を接続して構成され、前記プルダ
ウン抵抗と第二のスイッチ回路は前記入出力端子2と低
電位側電源Vssとの間に所定のオン抵抗を備えたNチャ
ネルMOSトランジスタTr6を接続して構成される。
Further, as shown in FIG. 4, the pull-up resistor and the first switch circuit have a P-channel M provided with a predetermined ON resistance between the input / output terminal 2 and the high potential side power source Vcc.
An OS transistor Tr5 is connected, and the pull-down resistor and the second switch circuit connect an N-channel MOS transistor Tr6 having a predetermined ON resistance between the input / output terminal 2 and the low potential power supply Vss. Consists of

【0034】[0034]

【作用】入出力切り換えレジスタ4の格納データに基づ
いて出力バッファ回路11が活性化されると選択指定レ
ジスタ16の格納データは出力データとして出力バッフ
ァ回路11を介して入出力端子2から出力される。ま
た、入出力切り換えレジスタ4の格納データに基づいて
出力バッファ回路11が不活性状態となると、選択指定
レジスタ16の格納データに基づいて第一のスイッチ回
路Tr3と第二のスイッチ回路Tr4のいずれかが選択さ
れ、このときイネーブルレジスタ17の格納データに基
づいて選択された第一のスイッチ回路Tr3あるいは第二
のスイッチ回路Tr4を閉路してプルアップ動作あるいは
プルダウン動作を行うか否かが選択される。
When the output buffer circuit 11 is activated based on the data stored in the input / output switching register 4, the data stored in the selection designation register 16 is output from the input / output terminal 2 via the output buffer circuit 11 as output data. .. When the output buffer circuit 11 becomes inactive based on the data stored in the input / output switching register 4, either the first switch circuit Tr3 or the second switch circuit Tr4 is selected based on the data stored in the selection designation register 16. Is selected. At this time, it is selected whether to close the first switch circuit Tr3 or the second switch circuit Tr4 selected based on the data stored in the enable register 17 to perform the pull-up operation or the pull-down operation. ..

【0035】従って、選択指定レジスタ16の格納デー
タは出力動作時と入力動作時とで異なる動作を設定する
データとなり、レジスタの共用を図る事が可能となる。
この結果、レジスタ及びそのレジスタを選択して書き込
み動作を行うためのアドレスデコーダラッチ回路の数が
削減される。
Therefore, the data stored in the selection designating register 16 becomes data for setting different operations during the output operation and the input operation, and it becomes possible to share the register.
As a result, the number of registers and address decoder latch circuits for selecting the registers and performing the write operation is reduced.

【0036】[0036]

【実施例】以下、この発明を具体化した一実施例を図2
に従って説明する。なお、前記従来例と同一構成部分は
同一符号を付してその詳細な説明を省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment embodying the present invention will now be described with reference to FIG.
Follow the instructions below. The same components as those of the conventional example are designated by the same reference numerals, and detailed description thereof will be omitted.

【0037】8ビット構成の入出力回路15a〜15h
はそれぞれバス3に接続されるとともに、それぞれ入出
力端子2a〜2hに接続されている。各入出力回路15
a〜15hは同一構成であるので、入出力回路15aに
ついてその構成を説明すると、同入出力回路1aには入
出力切り換えレジスタ4と、出力データを格納するか若
しくはプルアップ動作とプルダウン動作とのいずれかを
選択する状態を指定する指定データを格納する選択指定
レジスタ16と、プルアップ動作かプルダウン動作かを
選択するイネーブルレジスタ17との3つのレジスタが
設けられ、各レジスタはそれぞれ前記バス3から出力さ
れる1ビットの書き込みデータを格納可能となってい
る。
Input / output circuits 15a to 15h having an 8-bit structure
Are connected to the bus 3 and to the input / output terminals 2a to 2h, respectively. Each input / output circuit 15
Since a to 15h have the same configuration, the configuration of the input / output circuit 15a will be described. In the same input / output circuit 1a, the input / output switching register 4 and the output data are stored or the pull-up operation and the pull-down operation are performed. There are provided three registers, a selection designation register 16 for storing designation data for designating a state for selecting one of them, and an enable register 17 for selecting a pull-up operation or a pull-down operation. The output 1-bit write data can be stored.

【0038】前記入出力切り換えレジスタ4の出力信号
はNAND回路8dの一方の入力端子に入力されるとと
もにNOR回路10dに入力され、インバータ回路9f
を介してNOR回路10cの一方の入力端子及びNAN
D回路8eの入力端子に入力されている。
The output signal of the input / output switching register 4 is input to one input terminal of the NAND circuit 8d and the NOR circuit 10d, and the inverter circuit 9f.
Through one input terminal of the NOR circuit 10c and NAN
It is input to the input terminal of the D circuit 8e.

【0039】前記選択指定レジスタ16の出力信号は前
記NAND回路8d,8e及びNOR回路10c,10
dの入力端子に入力されている。前記イネーブルレジス
タ17の出力信号はNAND回路8eの入力端子に入力
されるとともに、インバータ回路9gを介してNOR回
路10dの入力端子に入力されている。
The output signal of the selection designation register 16 is the NAND circuits 8d and 8e and the NOR circuits 10c and 10.
It is input to the input terminal of d. The output signal of the enable register 17 is input to the input terminal of the NAND circuit 8e and also to the input terminal of the NOR circuit 10d via the inverter circuit 9g.

【0040】そして、NAND回路8dの出力信号は前
記出力バッファ回路11のトランジスタTr1のゲートに
出力され、NOR回路10cの出力信号は前記トランジ
スタTr2のゲートに出力されている。
The output signal of the NAND circuit 8d is output to the gate of the transistor Tr1 of the output buffer circuit 11, and the output signal of the NOR circuit 10c is output to the gate of the transistor Tr2.

【0041】前記NAND回路8eの出力信号はプルア
ップ動作用のトランジスタTr3のゲートに接続され、前
記NOR回路10dの出力信号はプルダウン動作用のト
ランジスタTr4のゲートに接続されている。
The output signal of the NAND circuit 8e is connected to the gate of the transistor Tr3 for pull-up operation, and the output signal of the NOR circuit 10d is connected to the gate of the transistor Tr4 for pull-down operation.

【0042】3つのアドレスデコーダラッチ回路13
a,13b,13c及びAND回路14a,14b,1
4c,14dは前記従来例と同一構成であり、AND回
路14aの出力信号は前記従来例と同様に入力バッファ
回路12に出力され、AND回路14bの出力信号は前
記従来例と同様に入出力切り換えレジスタ4に出力さ
れ、AND回路14cの出力信号は前記選択指定レジス
タ16に出力され、AND回路14dの出力信号は前記
イネーブルレジスタ17に出力されている。そして、各
AND回路がHレベルの信号を出力すると各レジスタで
格納データの書換えが可能となっている。
Three address decoder latch circuits 13
a, 13b, 13c and AND circuits 14a, 14b, 1
4c and 14d have the same configuration as the conventional example, the output signal of the AND circuit 14a is output to the input buffer circuit 12 as in the conventional example, and the output signal of the AND circuit 14b is input / output switched as in the conventional example. The output signal of the AND circuit 14c is output to the register 4 and the output signal of the AND circuit 14d is output to the enable register 17. When each AND circuit outputs an H level signal, the stored data can be rewritten in each register.

【0043】次に、上記のように構成された入出力回路
の作用を説明する。入力動作時にはその入力動作に先立
って入出力切り換えレジスタ4に「0」のデータが書き
込まれ、選択指定レジスタ16には「1」若しくは
「0」の所望のデータが書き込まれ、イネーブルレジス
タ17には「1」若しくは「0」のデータが書き込まれ
る。
Next, the operation of the input / output circuit configured as described above will be described. At the time of input operation, "0" data is written in the input / output switching register 4 prior to the input operation, desired data of "1" or "0" is written in the selection designation register 16, and the enable register 17 is written. Data of "1" or "0" is written.

【0044】上記各レジスタの格納データに基づいて入
出力切り換えレジスタ4からLレベルの信号が出力され
るとNAND回路8dの出力信号はHレベル、NOR回
路10cの出力信号はLレベルとなって出力バッファ回
路11は動作しない状態となる。
When an L level signal is output from the input / output switching register 4 based on the data stored in each of the above registers, the output signal of the NAND circuit 8d becomes the H level and the output signal of the NOR circuit 10c becomes the L level. The buffer circuit 11 becomes inoperative.

【0045】また、選択指定レジスタ16及びイネーブ
ルレジスタ17の格納データが「1」の場合にはNAN
D回路8eの出力信号がLレベルとなるとともにNOR
回路10dの出力信号がLレベルとなってトランジスタ
Tr3がオンされ、入出力端子2aはプルアップ抵抗R1
を介して電源Vccに接続される。
When the data stored in the selection designation register 16 and the enable register 17 is "1", NAN
The output signal of the D circuit 8e becomes L level and NOR
The output signal of the circuit 10d becomes L level, the transistor Tr3 is turned on, and the input / output terminal 2a has a pull-up resistor R1.
Is connected to the power source Vcc via.

【0046】一方、選択指定レジスタ16の格納データ
が「0」、イネーブルレジスタ17の格納データが
「1」の場合にはNAND回路8eの出力信号がHレベ
ルとなるとともにNOR回路10dの出力信号がHレベ
ルとなってトランジスタTr4がオンされ、入出力端子2
aはプルダウン抵抗R2を介して電源Vssに接続され
る。
On the other hand, when the data stored in the selection designation register 16 is "0" and the data stored in the enable register 17 is "1", the output signal of the NAND circuit 8e becomes H level and the output signal of the NOR circuit 10d becomes high. Transistor Tr4 is turned on at the H level and input / output terminal 2
a is connected to the power supply Vss via the pull-down resistor R2.

【0047】また、イネーブルレジスタ17の格納デー
タが「0」のときは選択指定レジスタ16の格納データ
に関わらずトランジスタTr3,Tr4はともにオフされ
る。この状態でバス3にはアドレステコーダラッチ回路
13aに設定されたアドレスに相当するアドレス信号が
出力されるとともに読出し信号RDがHレベルとなって
AND回路14aの出力信号がHレベルとなり、入力バ
ッファ回路12が活性化される。そして、入出力端子2
aに入力される入力データが入力バッファ回路12を介
してバス3に入力される。
When the data stored in the enable register 17 is "0", both the transistors Tr3 and Tr4 are turned off regardless of the data stored in the selection designation register 16. In this state, the address signal corresponding to the address set in the address coder latch circuit 13a is output to the bus 3, the read signal RD becomes H level, and the output signal of the AND circuit 14a becomes H level, and the input buffer The circuit 12 is activated. And input / output terminal 2
The input data input to a is input to the bus 3 via the input buffer circuit 12.

【0048】出力動作時にはその入力動作に先立って入
出力切り換えレジスタ4に「1」のデータが書き込ま
れ、選択指定レジスタ16には「1」若しくは「0」の
所望の出力データが書き込まれ、イネーブルレジスタ1
7には「0」のデータが書き込まれる。
During the output operation, data "1" is written in the input / output switching register 4 and the desired output data "1" or "0" is written in the selection designation register 16 prior to the input operation, and the enable operation is enabled. Register 1
Data of “0” is written in 7.

【0049】上記各レジスタの格納データに基づいてイ
ネーブルレジスタ17からLレベルの信号が出力され、
NAND回路8eの出力信号はHレベルとなるとともに
NOR回路10dの出力信号がLレベルとなってトラン
ジスタTr3,Tr4はオフされる。
An L level signal is output from the enable register 17 based on the data stored in each of the above registers,
The output signal of the NAND circuit 8e becomes H level and the output signal of the NOR circuit 10d becomes L level, and the transistors Tr3 and Tr4 are turned off.

【0050】また、入出力切り換えレジスタ4からHレ
ベルの信号が出力されるとNAND回路8d、NOR回
路10cは選択指定レジスタ16の出力信号を待つ状態
となり、例えば選択指定レジスタ16の格納データが
「1」であってその出力信号がHレベルであればトラン
ジスタTr1がオンされてHレベルの信号が入出力端子2
aに出力され、格納データが「0」であってその出力信
号がLレベルであればトランジスタTr2がオンされてL
レベルの信号が入出力端子2aに出力される。
When the H-level signal is output from the input / output switching register 4, the NAND circuit 8d and the NOR circuit 10c wait for the output signal of the selection designating register 16 and, for example, the data stored in the selection designating register 16 is " 1 "and the output signal is at the H level, the transistor Tr1 is turned on and the H level signal is input / output terminal 2
If the stored data is "0" and the output signal is L level, the transistor Tr2 is turned on and L
A level signal is output to the input / output terminal 2a.

【0051】以上のようにこの入出力回路15aでは出
力データを格納するレジスタとプルアップ動作若しくは
プルダウン動作を選択するレジスタとが共通の選択指定
レジスタ16で構成され、プルアップ動作若しくはプル
ダウン動作を行うか否かを選択するデータを格納するレ
ジスタが一つのイネーブルレジスタ17で構成されてい
る。
As described above, in the input / output circuit 15a, the register for storing the output data and the register for selecting the pull-up operation or the pull-down operation are configured by the common selection designation register 16, and the pull-up operation or the pull-down operation is performed. The register for storing the data for selecting whether or not to be configured is one enable register 17.

【0052】従って、一つの入出力回路15aに必要な
レジスタは計3個となり、その3個のレジスタ及び入力
バッファ回路12を選択するために必要なアドレスデコ
ーダラッチ回路13a〜13cは計3個となる。従っ
て、前記従来例の入出力回路1a〜1hに対し同等の機
能を確保しながら、レジスタ及びアドレスデコーダラッ
チ回路の数を削減することができるので、回路面積を縮
小させることができる。
Therefore, a total of three registers are required for one input / output circuit 15a, and a total of three address decoder latch circuits 13a to 13c are required to select the three registers and the input buffer circuit 12. Become. Therefore, it is possible to reduce the number of registers and address decoder latch circuits while ensuring the same function as the input / output circuits 1a to 1h of the conventional example, so that the circuit area can be reduced.

【0053】次に、前記入出力回路15a〜15hの変
形例を図3に従って説明する。前記実施例ではプルアッ
プ抵抗R1とプルダウン抵抗R2とをそれぞれ別個に設
けたが、図3に示すように入出力端子2aに抵抗R3を
介してトランジスタTr3,Tr4のドレインを接続し、ト
ランジスタTr3のソースを電源Vccに接続するとともに
トランジスタTr4のソースを電源Vssに接続する。そし
て、トランジスタTr3のゲートには前記NAND回路8
eの出力信号を入力し、トランジスタTr4のゲートには
前記NOR回路10dの出力信号を入力する。
Next, a modified example of the input / output circuits 15a to 15h will be described with reference to FIG. Although the pull-up resistor R1 and the pull-down resistor R2 are separately provided in the above-described embodiment, as shown in FIG. 3, the drains of the transistors Tr3 and Tr4 are connected to the input / output terminal 2a via the resistor R3 to connect the drain of the transistor Tr3. The source is connected to the power supply Vcc and the source of the transistor Tr4 is connected to the power supply Vss. The NAND circuit 8 is provided at the gate of the transistor Tr3.
The output signal of the NOR circuit 10d is input to the gate of the transistor Tr4.

【0054】このような構成により、トランジスタTr3
がオンされると入出力端子2aが抵抗R3を介して電源
Vccに接続されてプルアップ動作が行われ、トランジス
タTr4がオンされると入出力端子2aが抵抗R3を介し
て電源Vssに接続されてプルダウン動作が行われる。
With such a configuration, the transistor Tr3
When the transistor Tr4 is turned on, the input / output terminal 2a is connected to the power source Vcc via the resistor R3 to perform the pull-up operation. When the transistor Tr4 is turned on, the input / output terminal 2a is connected to the power source Vss via the resistor R3. Pull-down operation is performed.

【0055】従って、上記のような構成によりプルアッ
プ用の抵抗とプルダウン用の抵抗とを共通化して入出力
回路15a〜15hの回路面積を縮小することができ
る。次に、前記入出力回路15a〜15hの別の変形例
を図4に従って説明する。
Therefore, with the above configuration, the pull-up resistor and the pull-down resistor can be made common to reduce the circuit area of the input / output circuits 15a to 15h. Next, another modification of the input / output circuits 15a to 15h will be described with reference to FIG.

【0056】前記実施例ではプルアップ抵抗R1とプル
ダウン抵抗R2とをそれぞれ別個に設け、各抵抗R1,
R2を電源Vcc若しくは電源Vssに接続するスイッチ回
路としてトランジスタTr3,Tr4をそれぞれ設けたが、
図4に示すようにサイズの小さいPチャネルMOSトラ
ンジスタTr5及びNチャネルMOSトランジスタTr6の
ドレインを入出力端子2aに接続し、同トランジスタT
r5のソースを電源Vccに接続し、同トランジスタTr6の
ソースを電源Vssに接続する。
In the above embodiment, the pull-up resistor R1 and the pull-down resistor R2 are provided separately, and each resistor R1,
Transistors Tr3 and Tr4 are provided as switch circuits for connecting R2 to the power supply Vcc or the power supply Vss, respectively.
As shown in FIG. 4, the drains of the small-sized P-channel MOS transistor Tr5 and N-channel MOS transistor Tr6 are connected to the input / output terminal 2a.
The source of r5 is connected to the power supply Vcc, and the source of the transistor Tr6 is connected to the power supply Vss.

【0057】そして、トランジスタTr5のゲートには前
記NAND回路8eの出力信号を入力し、トランジスタ
Tr6のゲートには前記NOR回路10dの出力信号を入
力する。
The output signal of the NAND circuit 8e is input to the gate of the transistor Tr5, and the output signal of the NOR circuit 10d is input to the gate of the transistor Tr6.

【0058】このような構成により、トランジスタTr5
がオンされると入出力端子2aが同トランジスタTr5の
オン抵抗を介して電源Vccに接続されてプルアップ動作
が行われ、トランジスタTr6がオンされると入出力端子
2aが同トランジスタTr6のオン抵抗を介して電源Vss
に接続されてプルダウン動作が行われる。
With such a configuration, the transistor Tr5
When the transistor Tr6 is turned on, the input / output terminal 2a is connected to the power supply Vcc through the on resistance of the transistor Tr5 to perform a pull-up operation. When the transistor Tr6 is turned on, the input / output terminal 2a is turned on of the transistor Tr6. Power supply Vss via
And pull-down operation is performed.

【0059】従って、上記のような構成によりプルアッ
プ用の抵抗とスイッチ回路としてのトランジスタTr5を
一つの素子で構成し、プルダウン用の抵抗とスイッチ回
路としてのトランジスタTr6を一つの素子で構成して入
出力回路15a〜15hの回路面積を縮小することがで
きる。
Therefore, with the above configuration, the pull-up resistor and the transistor Tr5 as the switch circuit are formed by one element, and the pull-down resistor and the transistor Tr6 as the switch circuit are formed by one element. The circuit area of the input / output circuits 15a to 15h can be reduced.

【0060】[0060]

【発明の効果】以上詳述したように、この発明はシング
ルチップマイクロコンピュータの入出力回路の機能を低
下させることなく回路面積を縮小することができる優れ
た効果を発揮する。
As described above in detail, the present invention exhibits an excellent effect that the circuit area can be reduced without deteriorating the function of the input / output circuit of the single chip microcomputer.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の一実施例を示す回路図である。FIG. 2 is a circuit diagram showing an embodiment of the present invention.

【図3】一実施例の変形例を示す回路図である。FIG. 3 is a circuit diagram showing a modified example of the embodiment.

【図4】一実施例の別の変形例を示す回路図である。FIG. 4 is a circuit diagram showing another modification of the embodiment.

【図5】従来例を示す回路図である。FIG. 5 is a circuit diagram showing a conventional example.

【図6】アドレスデコーダラッチ回路を示す回路図であ
る。
FIG. 6 is a circuit diagram showing an address decoder latch circuit.

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

2 入出力端子 3 バス 4 入出力切り換えレジスタ 11 出力バッファ回路 12 入力バッファ回路 13 アドレスデコーダラッチ回路 16 選択指定レジスタ 17 イネーブルレジスタ 18 論理回路 R1 プルアップ抵抗 R2 プルダウン抵抗 Tr3 第一のスイッチ回路 Tr4 第二のスイッチ回路 Vcc 高電位側電源 Vss 低電位側電源 WR 書き込み信号 RD 読出し信号 2 input / output terminal 3 bus 4 input / output switching register 11 output buffer circuit 12 input buffer circuit 13 address decoder latch circuit 16 selection register 17 enable register 18 logic circuit R1 pull-up resistor R2 pull-down resistor Tr3 first switch circuit Tr4 second Switch circuit Vcc High-potential-side power supply Vss Low-potential-side power supply WR Write signal RD Read signal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入出力端子(2)に入力バッファ回路
(12)と、出力バッファ回路(11)とを接続し、前
記入出力端子(2)にはプルアップ抵抗(R1)と第一
のスイッチ回路(Tr3)を介して高電位側電源(Vcc)
を接続し、前記入出力端子(2)にはプルダウン抵抗
(R2)と第二のスイッチ回路(Tr4)を介して低電位
側電源(Vss)を接続し、前記出力バッファ回路(1
1)を活性化するか否かを選択する為のデータを格納す
る入出力切り換えレジスタ(4)と、前記出力バッファ
回路(11)から出力する出力データ若しくは前記第一
及び第二のスイッチ回路(Tr3,Tr4)のいずれかの閉
路動作を選択するためのデータのいずれかを格納する選
択指定レジスタ(16)と、前記第一及び第二のスイッ
チ回路(Tr3,Tr4)を動作させるか否かを選択するイ
ネーブルレジスタ(17)とを備え、前記各レジスタ
(4,16,17)にはバス(3)から入力されるアド
レス信号と書き込み信号(WR)とに基づいて前記各レ
ジスタ(4,16,17)を選択して該バス(3)から
各レジスタ(4,16,17)に出力される書き込みデ
ータに基づいて該レジスタの格納データを書換えるデコ
ード回路(13a,13b,13c)をそれぞれ接続
し、前記入力バッファ回路(12)には前記バス(3)
から入力されるアドレス信号と読出し信号(RD)とに
基づいて該入力バッファ回路(12)を活性化するデコ
ード回路(13a)を接続し、前記各レジスタ(4,1
6,17)と前記出力バッファ回路(11)及び前記第
一及び第二のスイッチ回路(Tr3,Tr4)の間には前記
各レジスタ(4,16,17)の格納データに基づいて
該出力バッファ回路(11)及び該第一及び第二のスイ
ッチ回路(Tr3,Tr4)を駆動する論理回路(18)を
設けたことを特徴とする入出力回路。
1. An input buffer circuit (12) and an output buffer circuit (11) are connected to an input / output terminal (2), and a pull-up resistor (R1) and a first input / output terminal (2) are connected to the input / output terminal (2). High potential side power supply (Vcc) via switch circuit (Tr3)
And a low potential power source (Vss) is connected to the input / output terminal (2) via a pull-down resistor (R2) and a second switch circuit (Tr4), and the output buffer circuit (1
Input / output switching register (4) for storing data for selecting whether to activate 1), output data output from the output buffer circuit (11) or the first and second switch circuits ( Tr3, Tr4) whether or not to operate the selection designation register (16) for storing any of the data for selecting the closed circuit operation and the first and second switch circuits (Tr3, Tr4) And an enable register (17) for selecting each register (4, 16, 17) based on an address signal and a write signal (WR) input from the bus (3). 16 and 17) and a decoding circuit (13a, 1) for rewriting the data stored in the register based on the write data output from the bus (3) to each register (4, 16, 17). b, and 13c) respectively connected, wherein the input buffer circuit (12) the bus (3)
A decode circuit (13a) that activates the input buffer circuit (12) based on an address signal and a read signal (RD) input from the register is connected to each of the registers (4, 1).
6, 17) and the output buffer circuit (11) and the first and second switch circuits (Tr3, Tr4) based on the data stored in the registers (4, 16, 17). An input / output circuit comprising a circuit (11) and a logic circuit (18) for driving the first and second switch circuits (Tr3, Tr4).
【請求項2】 前記プルアップ抵抗とプルダウン抵抗と
は共通の抵抗(R3)で構成し、前記入出力端子(2)
から前記抵抗(R3)と第一のスイッチ回路(Tr3)を
介して高電位側電源(Vcc)に接続するとともに、前記
入出力端子(2)から前記抵抗(R3)と第二のスイッ
チ回路(Tr4)を介して低電位側電源(Vss)に接続し
たことを特徴とする請求項1記載の入出力回路。
2. The pull-up resistor and the pull-down resistor are composed of a common resistor (R3), and the input / output terminal (2)
From the input / output terminal (2) to the resistor (R3) and the second switch circuit ( 2. The input / output circuit according to claim 1, wherein the input / output circuit is connected to a low potential side power source (Vss) via Tr4).
【請求項3】 前記プルアップ抵抗と第一のスイッチ回
路は前記入出力端子(2)と高電位側電源(Vcc)との
間に所定のオン抵抗を備えたPチャネルMOSトランジ
スタ(Tr5)を接続して構成し、前記プルダウン抵抗と
第二のスイッチ回路は前記入出力端子(2)と低電位側
電源(Vss)との間に所定のオン抵抗を備えたNチャネ
ルMOSトランジスタ(Tr6)を接続して構成したこと
を特徴とする請求項1記載の入出力回路。
3. The pull-up resistor and the first switch circuit include a P-channel MOS transistor (Tr5) having a predetermined ON resistance between the input / output terminal (2) and the high potential side power supply (Vcc). The pull-down resistor and the second switch circuit are connected to form an N-channel MOS transistor (Tr6) having a predetermined ON resistance between the input / output terminal (2) and the low potential side power supply (Vss). The input / output circuit according to claim 1, wherein the input / output circuit is configured to be connected.
JP4024021A 1992-02-10 1992-02-10 Input/output circuit Withdrawn JPH05224790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4024021A JPH05224790A (en) 1992-02-10 1992-02-10 Input/output circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4024021A JPH05224790A (en) 1992-02-10 1992-02-10 Input/output circuit

Publications (1)

Publication Number Publication Date
JPH05224790A true JPH05224790A (en) 1993-09-03

Family

ID=12126884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4024021A Withdrawn JPH05224790A (en) 1992-02-10 1992-02-10 Input/output circuit

Country Status (1)

Country Link
JP (1) JPH05224790A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19545940C2 (en) * 1994-12-15 2000-01-20 Mitsubishi Electric Corp Semiconductor device
US7106092B2 (en) 2002-10-23 2006-09-12 Renesas Technology Corp. Semiconductor device with bus terminating function
JP2007049423A (en) * 2005-08-10 2007-02-22 Rohm Co Ltd Semiconductor integrated circuit and electronic equipment using the same

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19545940C2 (en) * 1994-12-15 2000-01-20 Mitsubishi Electric Corp Semiconductor device
US7106092B2 (en) 2002-10-23 2006-09-12 Renesas Technology Corp. Semiconductor device with bus terminating function
US7116128B2 (en) 2002-10-23 2006-10-03 Renesas Technology Corp. Semiconductor device with bus terminating function
US7221184B2 (en) 2002-10-23 2007-05-22 Mitsubishi Denki Kabushiki Kaisha Semiconductor device with bus terminating function
US7358759B2 (en) 2002-10-23 2008-04-15 Renesas Technology Corp. Semiconductor device with bus terminating function
US7375545B2 (en) 2002-10-23 2008-05-20 Renesas Technology Corp. Semiconductor device with bus terminating function
JP2007049423A (en) * 2005-08-10 2007-02-22 Rohm Co Ltd Semiconductor integrated circuit and electronic equipment using the same

Similar Documents

Publication Publication Date Title
JPS6129069B2 (en)
JP4190836B2 (en) Semiconductor memory device
JP2588936B2 (en) Semiconductor storage device
US6215717B1 (en) Semiconductor memory device for reducing a time needed for performing a protecting operation
JPH05224790A (en) Input/output circuit
JPS6128198B2 (en)
JPS61165884A (en) Semiconductor memory device
JP2669133B2 (en) Semiconductor storage device
JPH04368695A (en) Semiconductor integrated circuit
JPS60119691A (en) Memory circuit
US7184357B2 (en) Decoding circuit for memory device
JP2001184886A (en) Word line decoder
JPS60197995A (en) Static type random access memory
JP3061835B2 (en) Memory circuit
JP3369706B2 (en) Semiconductor storage device
JPH0234117B2 (en)
JP2634686B2 (en) Semiconductor storage device
JP2814540B2 (en) Port shared parallel interface circuit
KR890004855Y1 (en) Address expending circuits of direct memory access device
JPS60115088A (en) Semiconductor memory
JPH06176579A (en) Semiconductor memory device
JPS59221894A (en) Address decode circuit of nonvolatile semiconductor memory
JP2004158081A (en) Semiconductor memory device
JPS59229633A (en) Logical circuit device
JPH02128396A (en) Storage device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518