JP3221003B2 - I / O port - Google Patents

I / O port

Info

Publication number
JP3221003B2
JP3221003B2 JP17639991A JP17639991A JP3221003B2 JP 3221003 B2 JP3221003 B2 JP 3221003B2 JP 17639991 A JP17639991 A JP 17639991A JP 17639991 A JP17639991 A JP 17639991A JP 3221003 B2 JP3221003 B2 JP 3221003B2
Authority
JP
Japan
Prior art keywords
output
input
latch
output port
internal bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP17639991A
Other languages
Japanese (ja)
Other versions
JPH0520248A (en
Inventor
明徳 岩崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP17639991A priority Critical patent/JP3221003B2/en
Publication of JPH0520248A publication Critical patent/JPH0520248A/en
Application granted granted Critical
Publication of JP3221003B2 publication Critical patent/JP3221003B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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 port,
In particular, the present invention relates to a circuit for improving operability for a plurality of specific bits and reducing a load on software.

【0002】[0002]

【従来の技術】従来の入出力ポートでは、入出力端子
と、内部バスと、前記入出力端子と内部バスの間に専用
命令により値を設定する出力ラッチと、前記入出力端子
の状態または出力ラッチの値を専用命令により前記内部
バスに取り込む入力回路を有しており、それぞれの専用
命令は8ビットあるいは1ビット単位での操作を実現し
ていた。
2. Description of the Related Art A conventional input / output port includes an input / output terminal, an internal bus, an output latch for setting a value between the input / output terminal and the internal bus by a dedicated instruction, a state of the input / output terminal or an output. It has an input circuit for taking the value of the latch into the internal bus by a dedicated instruction, and each dedicated instruction has realized an operation in units of 8 bits or 1 bit.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の入出力
ポートには次に示す欠点がある。
The above-mentioned conventional input / output port has the following disadvantages.

【0004】まず、入出力ポートに対し操作する専用命
令は8ビットあるいは1ビット単位であり、例えば特定
の複数ビットに対し操作する場合は、操作対象以外のポ
ートの内容を保持するために、 出力ラッチの値(8ビット)を読み込み 読み込んだ値と操作対象のビットを演算 演算結果(8ビット)を出力ラッチに設定 等の処理が必要になり、ソフトウェアに負荷がかかると
同時にソフトウェアでの処理の間出力が遅れるという欠
点がある。
First, a dedicated instruction for operating on an input / output port is in units of 8 bits or 1 bit. For example, when operating on a specific plurality of bits, an output is performed to hold the contents of a port other than the operation target. Read the latch value (8 bits) Calculate the read value and the bit to be operated Set the operation result (8 bits) in the output latch, etc. There is a disadvantage that the output is delayed during the operation.

【0005】[0005]

【課題を解決するための手段】本発明の入出力ポート
は、制御レジスタと、内部バスと出力バスの間に、前記
制御レジスタにより制御されるゲート回路と、前記ゲー
ト回路を介して前記出力ラッチに値を設定する専用命令
を備えている。
An input / output port according to the present invention comprises a control register, a gate circuit controlled by the control register between an internal bus and an output bus, and the output latch via the gate circuit. There is a dedicated instruction to set the value to.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0007】図1は本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【0008】図1に示すように、本実施例の入出力ポー
トは、内部バス1と出力ラッチ2の間に制御レジスタ3
により制御されるゲート回路4を有し、入出力ポートへ
の書き込み専用命令Aによるデータは制御レジスタの設
定により指定されたビットのみがゲート回路4を介して
出力ラッチ2に与えられる。
As shown in FIG. 1, an input / output port of the present embodiment has a control register 3 between an internal bus 1 and an output latch 2.
, And only the bits specified by the setting of the control register are given to the output latch 2 via the gate circuit 4 for the data according to the write-only instruction A to the input / output port.

【0009】次に本実施例の動作について説明する。Next, the operation of this embodiment will be described.

【0010】本実施例では、ゲート回路4はANDゲー
トで構成され、入出力ポートへの書き込み命令Aにより
内部バスのデータの制御レジスタ3のセット“1”され
ているビットに相当するデータが出力ラッチ2にラッチ
される。この時、出力ラッチ2のラッチ信号は制御レジ
スタ3のセット“1”されているビットにのみ与えられ
るため、入出力ポートへの書き込み命令Aにより出力ラ
ッチ2にラッチされるデータは制御レジスタ3のセット
“1”されているビットのみであり、制御レジスタ3の
リセット“0”されているビットに相当する出力ラッチ
2のデータは入出力ポートへの書き込み命令Aの実行さ
れる以前の値を保持する。
In this embodiment, the gate circuit 4 is constituted by an AND gate, and outputs data corresponding to the set bit of the control register 3 of the internal bus data in response to a write instruction A to the input / output port. Latched by latch 2. At this time, since the latch signal of the output latch 2 is given only to the set bit of the control register 3, the data latched in the output latch 2 by the write instruction A to the input / output port is Only the bits that have been set to “1” and the data of the output latch 2 corresponding to the bits that have been reset to “0” in the control register 3 retain the values before the execution of the write instruction A to the input / output port I do.

【0011】[0011]

【発明の効果】以上説明のように本発明は、内部バスと
出力ラッチの間に制御レジスタにより制御されるゲート
回路有し、入出力ポートへの書き込み専用命令Aによる
データは制御レジスタの設定により指定されたビットの
みがゲート回路を介して出力ラッチに与えられるため、
入出力ポートへの書き込み専用命令Aにより出力ラッチ
の値の更新は制御レジスタにより指定されたビットのみ
であり指定されていないビットは入出力ポートへの書き
込み命令Aの実行前の値を保持する。
As described above, the present invention has the gate circuit controlled by the control register between the internal bus and the output latch, and the data by the write-only instruction A to the input / output port is set by the control register. Since only specified bits are given to the output latch via the gate circuit,
The update of the value of the output latch by the write-only instruction A to the input / output port is only the bit specified by the control register, and the bits not specified retain the value before the execution of the write instruction A to the input / output port.

【0012】そのため、入出力ポートの特定ビットのみ
を操作する場合は、予め制御レジスタに操作対象のビッ
トを設定すれば、入出力ポートへの書き込み命令を実行
することにより実現でき、ソフトウェアの負担の軽減と
入出力ポートの出力が高速になる効果がある。
Therefore, when only a specific bit of an input / output port is operated, setting a bit to be operated in a control register in advance can be realized by executing a write instruction to the input / output port, thereby reducing software burden. This has the effect of reducing the output and increasing the output speed of the input / output port.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

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

1 内部バス 2 出力ラッチ 3 制御レジスタ 4 ゲート回路 5 出力バッファ 6 入力回路 7 入出力端子 A 入出力ポートの書き込み専用命令(制御レジスタ
により制御) B 入出力ポートの書き込み専用命令 C 入出力ポートの読み込み専用命令
1 Internal bus 2 Output latch 3 Control register 4 Gate circuit 5 Output buffer 6 Input circuit 7 Input / output terminal A Input / output port write-only instruction (controlled by control register) B Input / output port write-only instruction C Input / output port read Dedicated instructions

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入出力端子と、内部バスと、前記入出力
端子と内部バスの間に専用命令により値を設定する出力
ラッチと、前記出力ラッチの内容を出力する出力バッフ
ァと、前記入出力端子の状態または出力ラッチの値を専
用命令により前記内部バスに取り込む入力回路を有する
入出力ポートにおいて、制御レジスタと、前記内部バス
と前記出力ラッチの間に、前記制御レジスタにより制御
されるゲート回路と、前記ゲート回路を介して前記出力
ラッチに値を設定する専用命令を備えることを特徴とす
る入出力ポート。
1. An input / output terminal, an internal bus, an output latch for setting a value between the input / output terminal and the internal bus by a dedicated instruction, an output buffer for outputting the contents of the output latch, In an input / output port having an input circuit for taking the state of a terminal or the value of an output latch into the internal bus by a dedicated instruction, a control circuit, and a gate circuit controlled by the control register between the internal bus and the output latch And a dedicated instruction for setting a value in the output latch via the gate circuit.
JP17639991A 1991-07-17 1991-07-17 I / O port Expired - Fee Related JP3221003B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17639991A JP3221003B2 (en) 1991-07-17 1991-07-17 I / O port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17639991A JP3221003B2 (en) 1991-07-17 1991-07-17 I / O port

Publications (2)

Publication Number Publication Date
JPH0520248A JPH0520248A (en) 1993-01-29
JP3221003B2 true JP3221003B2 (en) 2001-10-22

Family

ID=16012994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17639991A Expired - Fee Related JP3221003B2 (en) 1991-07-17 1991-07-17 I / O port

Country Status (1)

Country Link
JP (1) JP3221003B2 (en)

Also Published As

Publication number Publication date
JPH0520248A (en) 1993-01-29

Similar Documents

Publication Publication Date Title
JPH0612863A (en) Dual port dram
JP3221003B2 (en) I / O port
JPH0831033B2 (en) Data processing device
US5018092A (en) Stack-type arithmetic circuit
JPH04100150A (en) Register circuit
JPS6260755B2 (en)
JP3048762B2 (en) Semiconductor integrated circuit device
JP3057749B2 (en) I / O port
JP2664109B2 (en) Real-time port
JPS6022774B2 (en) Input/output terminal control method
JPH05242009A (en) Direct memory access device
JPH038016A (en) Latch data bit operating circuit
JPS58217033A (en) Direct memory access controller
JPS61216030A (en) Control system for microprogram
JPH10143462A (en) Microcomputer
JPH04372038A (en) Computer system
JPH05143441A (en) Single chip microcomputer
JPH02183874A (en) Depicting circuit
JPH0786922A (en) Counter circuit
JPH04299480A (en) Data latch with bit operation
JPH05173715A (en) Input/output circuit
JPH09135343A (en) Video control circuit that allows division and reduction of data
JPH0738242B2 (en) Head switching processing circuit
JPH04245333A (en) Information processor
JPH01205338A (en) Instruction control system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010717

LAPS Cancellation because of no payment of annual fees