JPH05173715A - Input/output circuit - Google Patents

Input/output circuit

Info

Publication number
JPH05173715A
JPH05173715A JP35734291A JP35734291A JPH05173715A JP H05173715 A JPH05173715 A JP H05173715A JP 35734291 A JP35734291 A JP 35734291A JP 35734291 A JP35734291 A JP 35734291A JP H05173715 A JPH05173715 A JP H05173715A
Authority
JP
Japan
Prior art keywords
input
output
circuit
analog
terminal
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
JP35734291A
Other languages
Japanese (ja)
Inventor
Yoichi Morimi
洋一 森見
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 JP35734291A priority Critical patent/JPH05173715A/en
Publication of JPH05173715A publication Critical patent/JPH05173715A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify circuit configuration and to miniaturize circuit chips. CONSTITUTION:According to the output of a two-input AND circuit 13 for ANDing the output of a register 3 and the output of an output latch 4, a transmission gate 10 is controlled and when the transmission gate 10 is operated, analog signals inputted to an input/output terminal 6 are supplied through the transmission gate 10 to an analog/digital converter 12.

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 used in a microcomputer or the like, and more particularly to an input / output circuit having an input / output terminal which also serves as a terminal for inputting / outputting a digital signal and a terminal for inputting an analog signal. Is.

【0002】[0002]

【従来の技術】図2は従来の入出力回路の構成を示すブ
ロック図である。図2において、1,11は入出力回
路、2はデータバス、3は図示しないCPUからの命令
によってデータバス2の内容、即ち入出力端子6から信
号を出力するかあるいは信号を入力するかを選択するた
めの選択情報を格納する選択情報格納手段としてのレジ
スタ、4はCPUからの命令によってデータバス2の内
容、即ち入出力端子6から出力したいデータを格納する
データ格納手段としての出力ラッチ、5はレジスタ3の
選択情報によって制御され出力ラッチ4のデータを入出
力端子6へ出力する出力バッファ、7はレジスタ3の選
択情報によって制御され入出力端子6からのデータをデ
ータバス2へ入力する入力バッファ、8はCPUからの
命令によってデータバス2の内容、即ち入出力端子6か
らアナログ信号を入力するためのアナログ入力選択情報
を格納するアナログ入力選択レジスタ、9はアナログ入
力選択レジスタ8の出力信号を反転するインバータ回
路、10はアナログ入力選択レジスタ8の出力信号とイ
ンバータ回路9の出力信号によって制御され入出力端子
6に入力されたアナログ信号を所定の回路であるアナロ
グデジタル変換器12へ供給するアナログ信号供給手段
としてのトランスミッションゲートである。
2. Description of the Related Art FIG. 2 is a block diagram showing a configuration of a conventional input / output circuit. In FIG. 2, 1 and 11 are input / output circuits, 2 is a data bus, and 3 is a content of the data bus 2 according to an instruction from a CPU (not shown), that is, whether a signal is output from the input / output terminal 6 or a signal is input. A register as selection information storage means for storing selection information for selection, 4 is an output latch as data storage means for storing the contents of the data bus 2, that is, data to be output from the input / output terminal 6 in response to an instruction from the CPU, Reference numeral 5 is an output buffer which is controlled by the selection information of the register 3 and outputs the data of the output latch 4 to the input / output terminal 6, and 7 is controlled by the selection information of the register 3 and the data from the input / output terminal 6 is input to the data bus 2. The input buffer 8 is an analog for inputting the contents of the data bus 2, that is, an analog signal from the input / output terminal 6 in response to a command from the CPU. Analog input selection register for storing input input selection information, 9 is an inverter circuit for inverting the output signal of the analog input selection register 8, and 10 is input / output controlled by the output signal of the analog input selection register 8 and the output signal of the inverter circuit 9. It is a transmission gate as an analog signal supply means for supplying the analog signal input to the terminal 6 to the analog-digital converter 12 which is a predetermined circuit.

【0003】まず、デジタル信号を出力する場合につい
て説明する。CPUがレジスタ3に選択情報“1”を書
き込むと、出力バッファ5が動作状態となり、また入力
バッファ7は非動作状態となる。この状態で、CPUが
出力ラッチ4に出力したいデータを書き込むと、その内
容が出力バッファ5を介して入出力端子6に与えられ外
部へ出力される。
First, the case of outputting a digital signal will be described. When the CPU writes the selection information “1” in the register 3, the output buffer 5 is in the operating state and the input buffer 7 is in the non-operating state. In this state, when the CPU writes the data to be output to the output latch 4, the content is given to the input / output terminal 6 via the output buffer 5 and output to the outside.

【0004】次に、外部からのデジタル信号を入力する
場合について説明する。CPUがレジスタ3に選択情報
“0”を書き込むと、出力バッファ5が非動作状態とな
り、また入力バッファ7が動作状態となり、外部より入
出力端子6へ入力されたデータがデータバス2へ入力さ
れる。
Next, the case of inputting a digital signal from the outside will be described. When the CPU writes the selection information “0” to the register 3, the output buffer 5 becomes inactive, the input buffer 7 becomes active, and the data externally input to the input / output terminal 6 is input to the data bus 2. It

【0005】次に、アナログ信号を入力する場合につい
て説明する。CPUがレジスタ3に選択情報“0”を書
き込み、出力バッファ5を非動作状態にし、出力ラッチ
4の内容が入出力端子6へ出力されない状態にする。次
に、CPUは、入出力回路1と入出力回路11のどちら
のアナログ信号をアナログデジタル変換器12へ入力す
るかを選択するため、入力したい入出力回路のアナログ
入力選択レジスタ8にアナログ選択情報“1”を書き込
み、非選択の入出力回路のアナログ選択レジスタ8にア
ナログ入力選択情報“0”を書き込む。アナログ入力選
択レジスタ8にアナログ入力選択情報“1”を書き込む
と、トランスミッションゲート10がオンし、入出力端
子6に入力されたアナログ信号がアナログデジタル変換
器12に入力される。
Next, the case of inputting an analog signal will be described. The CPU writes the selection information “0” to the register 3, deactivates the output buffer 5, and puts the contents of the output latch 4 in a state where it is not output to the input / output terminal 6. Next, the CPU selects which analog signal of the input / output circuit 1 or the input / output circuit 11 to input to the analog-digital converter 12. "1" is written, and the analog input selection information "0" is written in the analog selection register 8 of the unselected input / output circuit. When the analog input selection information “1” is written in the analog input selection register 8, the transmission gate 10 is turned on and the analog signal input to the input / output terminal 6 is input to the analog / digital converter 12.

【0006】[0006]

【発明が解決しようとする課題】従来の入出力回路は以
上のように構成されているので、アナログ信号入力時,
出力ラッチ(データ格納手段)は、なにも機能せず、こ
の出力ラッチを有効に活用することができず、このため
更に少ない回路構成で集積回路化を実現することが難し
いなどの問題点があった。
Since the conventional input / output circuit is configured as described above, when an analog signal is input,
The output latch (data storage means) does not function at all, and this output latch cannot be effectively utilized, which makes it difficult to realize an integrated circuit with a smaller circuit configuration. there were.

【0007】この発明は上記のような問題点を解消する
ためになされたもので、更に少ない回路構成で、集積回
路化を実現できる入出力回路を得ることを目的とする。
The present invention has been made to solve the above problems, and an object thereof is to obtain an input / output circuit which can be integrated into a circuit with a smaller circuit configuration.

【0008】[0008]

【課題を解決するための手段】この発明に係る入出力回
路は、入出力端子6がアナログ信号を入力する端子とし
て作用している時、データ格納手段(出力ラッチ4)の
出力信号に従ってアナログ信号供給手段(トランスミッ
ションゲート10)を動作させる制御を行なう制御手段
(2入力アンド回路13)を備えたものである。
In the input / output circuit according to the present invention, when the input / output terminal 6 acts as a terminal for inputting an analog signal, the analog signal is output according to the output signal of the data storage means (output latch 4). The control means (2-input AND circuit 13) for controlling the supply means (transmission gate 10) is provided.

【0009】[0009]

【作用】入出力端子6がアナログ信号を入力する端子と
して作用している時、制御手段(2入力アンド回路1
3)はデータ格納手段(出力ラッチ4)の出力信号によ
り動作状態になり、これにより入出力端子6に入力され
たアナログ信号はアナログ信号供給手段(トランスミッ
ションゲート10)を介して所定の回路(アナログデジ
タル変換器12)に供給される。
When the input / output terminal 6 functions as a terminal for inputting an analog signal, the control means (2-input AND circuit 1
3) is activated by the output signal of the data storage means (output latch 4), whereby the analog signal input to the input / output terminal 6 is passed through the analog signal supply means (transmission gate 10) to a predetermined circuit (analog). It is supplied to the digital converter 12).

【0010】[0010]

【実施例】図1はこの発明の一実施例に係る入出力回路
の構成を示すブロック図である。図1において、図2に
示す構成要素に対応するものには同一の符号を付し、そ
の説明を省略する。図1において、13は出力ラッチ4
の出力信号とレジスタ3の出力信号を入力して論理積を
とりインバータ回路9及びトランスミッションゲート1
0に出力する2入力アンド回路である。即ち、2入力ア
ンド回路13は出力ラッチ4の出力信号とレジスタ3の
出力信号に従ってトランスミッションゲート10を動作
させる制御を行なう制御手段である。
1 is a block diagram showing the structure of an input / output circuit according to an embodiment of the present invention. In FIG. 1, components corresponding to those shown in FIG. 2 are designated by the same reference numerals, and their description will be omitted. In FIG. 1, 13 is an output latch 4
Of the output signal of the register 3 and the output signal of the register 3 are logically ANDed to obtain the inverter circuit 9 and the transmission gate 1.
It is a 2-input AND circuit that outputs to 0. That is, the 2-input AND circuit 13 is a control means for controlling the operation of the transmission gate 10 according to the output signal of the output latch 4 and the output signal of the register 3.

【0011】まず、デジタル信号を出力する場合につい
て説明する。図示しないCPUがレジスタ3に選択情報
“1”を書き込むと、出力バッファ5が動作状態とな
り、また入力バッファ7は非動作状態となる。この状態
で、CPUが出力ラッチ4に出力したいデータを書き込
むと、その内容が出力バッファ5を介して入出力端子6
に与えられ外部へ出力される。
First, the case of outputting a digital signal will be described. When the CPU (not shown) writes the selection information "1" to the register 3, the output buffer 5 is activated and the input buffer 7 is deactivated. In this state, when the CPU writes the data to be output to the output latch 4, the content is input via the output buffer 5 to the input / output terminal 6
Is output to the outside.

【0012】次に外部からのデジタル信号を入力する場
合について説明する。CPUがレジスタ3に選択情報
“0”を書き込むと、出力バッファ5が非動作状態とな
り、また入力バッヘァ7が動作状態となり、外部より入
出力端子6へ入力されたデータがデータバス2へ入力さ
れる。
Next, the case of inputting a digital signal from the outside will be described. When the CPU writes the selection information "0" to the register 3, the output buffer 5 becomes inactive, the input buffer 7 becomes active, and the data externally input to the input / output terminal 6 is input to the data bus 2. It

【0013】次にアナログ信号を入力する場合について
説明する。CPUがレジスタ3に選択情報“0”を書き
込み、出力バッファ5を非動作状態にし、出力ラッチ4
の内容が入出力端子6へ出力されない状態にする。次に
CPUは、入出力回路1と入出力回路11のどちらのア
ナログ信号をアナログデジタル変換器12へ入力するか
を選択するため、入力したい入出力回路の出力ラッチ4
にデータ“1”、非選択の入出力回路の出力ラッチ4に
データ“0”を書き込む。この時のレジスタ3の内容と
出力ラッチ4の内容が2入力アンド回路13へ入力さ
れ、論理和をとられ、選択された入出力回路の2入力ア
ンド回路13の出力信号が“1”となり、またインバー
タ回路9の出力信号が“0”となり、これによりトラン
スミッションゲート10がオンし、入出力端子6に入力
されたアナログ信号がアナログデジタル変換器12に供
給される。
Next, the case of inputting an analog signal will be described. The CPU writes the selection information “0” to the register 3, deactivates the output buffer 5, and outputs the output latch 4
The contents of is not output to the input / output terminal 6. Next, the CPU selects which analog signal of the input / output circuit 1 or the input / output circuit 11 to input to the analog-digital converter 12, so that the output latch 4 of the input / output circuit to be input is selected.
The data "1" is written in and the data "0" is written in the output latch 4 of the non-selected input / output circuit. At this time, the contents of the register 3 and the contents of the output latch 4 are input to the 2-input AND circuit 13, are logically summed, and the output signal of the 2-input AND circuit 13 of the selected input / output circuit becomes "1", Further, the output signal of the inverter circuit 9 becomes "0", whereby the transmission gate 10 is turned on, and the analog signal input to the input / output terminal 6 is supplied to the analog / digital converter 12.

【0014】[0014]

【発明の効果】以上のように本発明によれば、入出力端
子がアナログ信号を入力する端子として作用している
時、データ格納手段の出力信号に従ってアナログ信号供
給手段を動作させる制御を行なう制御手段を設けて構成
したので、データ格納手段が従来のアナログ入力選択レ
ジスタとしても作用し、また制御手段はアナログ入力選
択レジスタよりも回路が簡単であり、これにより回路全
体としては従来よりも回路構成が少なくなり、したがっ
て回路構成の少ない集積回路化を実現することができ、
マイクロコンピュータ等の回路チップを更に小型化でき
るという効果が得られる。
As described above, according to the present invention, the control for controlling the operation of the analog signal supply means in accordance with the output signal of the data storage means when the input / output terminal acts as a terminal for inputting the analog signal. Since the means is provided, the data storage means also functions as a conventional analog input selection register, and the control means has a simpler circuit than the analog input selection register. Therefore, it is possible to realize an integrated circuit with a small circuit configuration.
The effect that the circuit chip of a microcomputer or the like can be further downsized can be obtained.

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

【図1】この発明の一実施例に係る入出力回路の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an input / output circuit according to an embodiment of the present invention.

【図2】従来の入出力回路の構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing a configuration of a conventional input / output circuit.

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

1,11 入出力回路 4 出力ラッチ(データ格納手段) 6 入出力端子 10 トランスミッションゲート(アナログ信号供給手
段) 13 2入力アンド回路(制御手段)
1, 11 Input / output circuit 4 Output latch (data storage means) 6 Input / output terminal 10 Transmission gate (analog signal supply means) 13 2 Input AND circuit (control means)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 デジタル信号を入出力する端子とアナロ
グ信号を入力する端子とを兼用した入出力端子と、上記
入出力端子から出力したいデータを格納するデータ格納
手段と、上記入出力端子から入力されたアナログ信号を
所定の回路に供給するアナログ信号供給手段とを備えた
入出力回路において、上記入出力端子がアナログ信号を
入力する端子として作用している時、上記データ格納手
段の出力信号に従って上記アナログ信号供給手段を動作
させる制御を行なう制御手段を設けたことを特徴とする
入出力回路。
1. An input / output terminal that also serves as a terminal for inputting / outputting a digital signal and a terminal for inputting an analog signal, a data storage unit for storing data to be output from the input / output terminal, and an input from the input / output terminal. In an input / output circuit provided with an analog signal supply means for supplying the analog signal to a predetermined circuit, according to the output signal of the data storage means when the input / output terminal functions as a terminal for inputting the analog signal. An input / output circuit comprising control means for controlling the operation of the analog signal supply means.
JP35734291A 1991-12-25 1991-12-25 Input/output circuit Pending JPH05173715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35734291A JPH05173715A (en) 1991-12-25 1991-12-25 Input/output circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35734291A JPH05173715A (en) 1991-12-25 1991-12-25 Input/output circuit

Publications (1)

Publication Number Publication Date
JPH05173715A true JPH05173715A (en) 1993-07-13

Family

ID=18453639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35734291A Pending JPH05173715A (en) 1991-12-25 1991-12-25 Input/output circuit

Country Status (1)

Country Link
JP (1) JPH05173715A (en)

Similar Documents

Publication Publication Date Title
JPH0612863A (en) Dual port dram
JPH04236682A (en) Microcomputer system
JPH0342732A (en) Semiconductor integrated circuit
JPH05173715A (en) Input/output circuit
JP2693631B2 (en) Scan out control system
JP3048762B2 (en) Semiconductor integrated circuit device
JPH0683616A (en) Semiconductor integrated circuit
JPS6167148A (en) Microcomputer
JPH0435941Y2 (en)
JPS6068724A (en) Analog-digital and digital-analog converter
JPS62173557A (en) Microprocessor
JPH05173676A (en) Disk power source control system
JPH11120024A (en) Chip for software development
JPH0997247A (en) Microcomputer
JPS6039223A (en) Microcomputer device
JPH0358259A (en) Semiconductor integrated circuit device
JPH02146641A (en) Memory device
JPH0831182A (en) Semiconductor memory
JPS5850046A (en) Information processing device
JPH05298089A (en) Register
JPH0581117A (en) Storage element
JPH05181739A (en) Memory access controller
JPH0545978B2 (en)
JPH03257572A (en) Multiprocessor system
JPH02126355A (en) Address data control circuit