JPH0520248A - Input/output port - Google Patents

Input/output port

Info

Publication number
JPH0520248A
JPH0520248A JP17639991A JP17639991A JPH0520248A JP H0520248 A JPH0520248 A JP H0520248A JP 17639991 A JP17639991 A JP 17639991A JP 17639991 A JP17639991 A JP 17639991A JP H0520248 A JPH0520248 A JP H0520248A
Authority
JP
Japan
Prior art keywords
output
input
latch
instruction
bit
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.)
Granted
Application number
JP17639991A
Other languages
Japanese (ja)
Other versions
JP3221003B2 (en
Inventor
Akinori Iwasaki
明徳 岩崎
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

Abstract

PURPOSE:To improve the operability of a specific bit and to reduce the load of software by connecting a gate circuit to be controlled by a control register between an internal bus and an output latch. CONSTITUTION:The gate circuit 4 to be controlled by the control register 3 is connected between the internal bus 1 and the output latch 2 and only the bit specified by the setting of the register 3 out of data based upon a write-only instruction A to an I/O port is applied to the latch 2 through the circuit 4. Namely only the bit specified by the register 3 out of the value of the latch 2 is updated based upon the exclusive write instruction A and unspecified bits store the value of the latch 2 obtained before executing the instruction A to the I/O port. Consequently the operation of only the specific bit of the I/O port can be attained by previously setting up the bit to be operated in the register 3 and executing the write instruction.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、入出力ポートに関し、
特に複数の特定ビットに対する操作性を向上し、ソフト
ウェアの負荷を軽減するための回路に関する。
BACKGROUND OF THE INVENTION The present invention relates to an input / output port,
Particularly, the present invention relates to a circuit for improving the operability for a plurality of specific bits and reducing the load on software.

【0002】[0002]

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

【0003】[0003]

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

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

【0005】[0005]

【課題を解決するための手段】本発明の入出力ポート
は、制御レジスタと、内部バスと出力バスの間に、前記
制御レジスタにより制御されるゲート回路と、前記ゲー
ト回路を介して前記出力ラッチに値を設定する専用命令
を備えている。
An input / output port of the present invention is 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. It has a dedicated instruction to set the value to.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

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

【0008】図1に示すように、本実施例の入出力ポー
トは、内部バス1と出力ラッチ2の間に制御レジスタ3
により制御されるゲート回路4を有し、入出力ポートへ
の書き込み専用命令Aによるデータは制御レジスタの設
定により指定されたビットのみがゲート回路4を介して
出力ラッチ2に与えられる。
As shown in FIG. 1, the input / output port of this embodiment has a control register 3 between an internal bus 1 and an output latch 2.
Only the bit designated by the setting of the control register is given to the output latch 2 via the gate circuit 4 as the data by 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 composed of an AND gate, and the data corresponding to the set "1" bit of the control register 3 of the data of the internal bus is output by the write command A to the input / output port. It is latched by the latch 2. At this time, since the latch signal of the output latch 2 is given only to the set bit “1” of the control register 3, the data latched in the output latch 2 by the write command A to the input / output port is stored in the control register 3. The data of the output latch 2 corresponding to the bit that is set "1" and that is reset "0" of the control register 3 retains the value before the execution of the write instruction A to the input / output port. To 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 the designated bit is given to the output latch through the gate circuit,
The value of the output latch is updated only by the write-only instruction A to the input / output port, and only the bits designated by the control register are held. The bits not designated hold the value before the execution of the write instruction A to the input / output port.

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

【図面の簡単な説明】[Brief description of 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 instruction

Claims (1)

【特許請求の範囲】 【請求項1】 入出力端子と、内部バスと、前記入出力
端子と内部バスの間に専用命令により値を設定する出力
ラッチと、前記出力ラッチの内容を出力する出力バッフ
ァと、前記入出力端子の状態または出力ラッチの値を専
用命令により前記内部バスに取り込む入力回路を有する
入出力ポートにおいて、制御レジスタと、前記内部バス
と前記出力ラッチの間に、前記制御レジスタにより制御
されるゲート回路と、前記ゲート回路を介して前記出力
ラッチに値を設定する専用命令を備えることを特徴とす
る入出力ポート。
Claim: What is claimed is: 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, and an output for outputting the content of the output latch. In a I / O port having a buffer and an input circuit for fetching the state of the I / O terminal or the value of the output latch to the internal bus by a dedicated instruction, a control register and the control register between the internal bus and the output latch And an exclusive 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 true JPH0520248A (en) 1993-01-29
JP3221003B2 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
JP3221003B2 (en) 2001-10-22

Similar Documents

Publication Publication Date Title
US5303354A (en) Data transfer system between registers for microcomputer
US5483566A (en) Method and apparatus for modifying the contents of a register via a command bit
JPH0520248A (en) Input/output port
JPH0831033B2 (en) Data processing device
US7133979B2 (en) Method of transferring data between a first device and a second device while manipulating at least one quantity in dependence on an address
JPH05242009A (en) Direct memory access device
US5018092A (en) Stack-type arithmetic circuit
JPH038016A (en) Latch data bit operating circuit
JP3048762B2 (en) Semiconductor integrated circuit device
JPS6113345A (en) Processor of tagged data
JP3124361B2 (en) Memory data loading device
JPH05143441A (en) Single chip microcomputer
KR100336743B1 (en) Processing circuit for data
JPH04276827A (en) Pipe line processor
JPS61118840A (en) Control system of electronic computer
JPH0668055A (en) Digital signal processor
JPS6375838A (en) Address modifying system
JPS61216030A (en) Control system for microprogram
JPS58217033A (en) Direct memory access controller
JPH10143462A (en) Microcomputer
JPH04245333A (en) Information processor
JPS61237136A (en) Register controlling system
JPH05250079A (en) Input/output port
JPS6367635A (en) Microprogram controller
JPH05274115A (en) Compact electronic computer

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