JPH047656A - Bit selective output port and output device - Google Patents

Bit selective output port and output device

Info

Publication number
JPH047656A
JPH047656A JP2107419A JP10741990A JPH047656A JP H047656 A JPH047656 A JP H047656A JP 2107419 A JP2107419 A JP 2107419A JP 10741990 A JP10741990 A JP 10741990A JP H047656 A JPH047656 A JP H047656A
Authority
JP
Japan
Prior art keywords
signal
bit
data signal
outputs
holding
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
JP2107419A
Other languages
Japanese (ja)
Other versions
JP2890660B2 (en
Inventor
Haruko Inoue
治子 井上
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 JP2107419A priority Critical patent/JP2890660B2/en
Publication of JPH047656A publication Critical patent/JPH047656A/en
Application granted granted Critical
Publication of JP2890660B2 publication Critical patent/JP2890660B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To reduce the burden of a microprocessor by providing a selection circuit inputting an input data signal and an output data signal and selecting and outputting one signal based on a bit selection instructing signal. CONSTITUTION:The data signal outputted from CPU 11 is inputted to a second holding circuit 15 from the selection circuit 16. When the value of output data is changed in terms of bit, CPU 11 transmits a bit pattern signal, a decoder 12 outputs a first holding signal, a first holding circuit 14 holds the bit pattern signal and outputs it to the selection circuit 16 as a bit selection signal. Then, CPU 11 outputs the value of data corresponding to the bit to be altered to a data bus 17, and the selection circuit 16 selects the value supplied from the data bus 17 or the value given from the second holding circuit 15 so as to generate the data signal. Thus, an arithmetic processing can be reduced in CPU 11.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はマイクロプロセッサに接続された出力ポートに
関し、特にマイクロプロセッサから出力されるデータ信
号の値をビット単位で変化させて外部に出力するビット
選択形出力ポートに関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an output port connected to a microprocessor, and particularly to a bit that changes the value of a data signal output from the microprocessor in bit units and outputs it to the outside. Regarding selective output ports.

[従来の技術] 従来、この種のビット選択形出力ポートでは、マイクロ
プロセッサより出力ポートへ出力されたデータ信号の値
を、−旦、メモリに格納した後、外部へ出力するように
なっている。
[Prior Art] Conventionally, in this type of bit selection type output port, the value of a data signal outputted from a microprocessor to an output port is stored in a memory and then outputted to the outside. .

出力したデータ信号の値の内、任意のビットの値のみ変
更する場合、マイクロプロセッサはメモリからデータを
読み出し、変化させようとする所定のビットをマスクし
て、マスクしたビットに変更すべき値を加え、再度、出
力ポートへ出力し、メモリに記憶すると共に、出力ポー
トから外部へ出力していた。
When changing only the value of a given bit in the value of the output data signal, the microprocessor reads the data from memory, masks the specified bit to be changed, and assigns the value to be changed to the masked bit. In addition, it is output to the output port again, stored in memory, and output to the outside from the output port.

[発明が解決しようとする課題] しかしながら、従来のビット選択形出力ポートではマイ
クロプロセッサがデータの呼出し、所定ビットのマスク
、マスクしたビットのデータ値を変更、変更後のデータ
の再出力、と多くの処理をしなければならないという問
題点がある。
[Problems to be Solved by the Invention] However, with conventional bit-selective output ports, the microprocessor must perform many tasks such as calling data, masking predetermined bits, changing the data value of the masked bits, and re-outputting the changed data. There is a problem in that it has to be processed.

本発明は、マイクロプロセッサの負担を低減するビット
選択形出力ポートの提供を目的とする。
The present invention aims to provide a bit-selective output port that reduces the burden on the microprocessor.

[課題を解決するための手段] 本発明によれば、データバスを介してマイクロプロセッ
サに接続され、前記マイクロプロセッサより前記データ
バスを介して入力されたデータ信号の値を必要に応じて
ビット単位で変化させて出力信号として出力するビット
選択形出力ポートにおいて、 前記データバスを介して入力されるビットパターン信号
を前記マイクロプロセッサからの第1の保持信号に応答
して保持し、ビット選択指示信号を出力する第1の保持
回路と、 前記入力データ信号と前記出力データ信号とを人力とし
、前記ビット選択指示信号に基づいてビット単位でいづ
れか一方の信号を選択し選択されたデータ信号を出力す
る選択回路と、 選択されたデータ信号を前記マイクロプロセッサからの
第2の保持信号に応答して保持し、前記出力データ信号
を出力する第2の保持回路とを備えたことを特徴とする
ビット選択形出力ポートが得られる。
[Means for Solving the Problems] According to the present invention, the value of a data signal that is connected to a microprocessor via a data bus and inputted from the microprocessor via the data bus is converted in bit units as necessary. a bit selection type output port that outputs a bit pattern signal inputted via the data bus as an output signal; a first holding circuit that outputs the input data signal and the output data signal manually, selects one of the signals bit by bit based on the bit selection instruction signal, and outputs the selected data signal. A bit selection comprising: a selection circuit; and a second holding circuit that holds a selected data signal in response to a second holding signal from the microprocessor and outputs the output data signal. A shaped output port is obtained.

また、本発明によればマイクロプロセッサとビット選択
形出力ポートとがデータバス及び制御線で接続された出
力装置であって、前記マイクロプロセッサは、前記デー
タバスにデータ信号及びビットパターン信号を、前記制
御線に第1及び第2の保持信号をそれぞれ所定のタイミ
ングで出力する手段を有し、前記ビット選択形出力ポー
トは、前記ビットパターン信号を前記第1の保持信号に
応答して保持し、ビット選択指示信号を出力する第1の
保持回路と、前記データ信号と前記ビット選択形出力ポ
ートからの出力データ信号とを入力とし、前記ビット選
択指示信号に基づいてビット単位でいづれか一方の信号
を選択し選択されたデータ信号を出力する選択回路と、
選択されたデータ信号を前記マイクロプロセッサからの
第2の保持信号に応答して保持し、変更出力データ信号
として出力する第2の保持回路とを備えていることを特
徴とする出力装置が得られる。
Further, according to the present invention, there is provided an output device in which a microprocessor and a bit selection type output port are connected by a data bus and a control line, wherein the microprocessor sends a data signal and a bit pattern signal to the data bus. comprising means for outputting first and second holding signals to control lines at predetermined timings, the bit selection type output port holding the bit pattern signal in response to the first holding signal, A first holding circuit that outputs a bit selection instruction signal, receives the data signal and the output data signal from the bit selection type output port, and selects one of the signals on a bit-by-bit basis based on the bit selection instruction signal. a selection circuit that selects and outputs the selected data signal;
and a second holding circuit that holds the selected data signal in response to a second holding signal from the microprocessor and outputs it as a modified output data signal. .

[実施例] 以下に図面を参照して本発明の詳細な説明する。[Example] The present invention will be described in detail below with reference to the drawings.

第1図に本発明の一実施例のブロック図を示す。FIG. 1 shows a block diagram of an embodiment of the present invention.

本実施例の出力装置は、マイクロプロセッサとしての中
央演算処理装置(以下CPU)11とデコーダ12、そ
れに、ビット選択形出カプロセッサ13を有している。
The output device of this embodiment includes a central processing unit (hereinafter referred to as CPU) 11 as a microprocessor, a decoder 12, and a bit selection type output processor 13.

また、ビット選択形出力ブロセッサ13は、第1の保持
回路14、第2の保持回路15、及び選択回路16を有
している。
Further, the bit selection type output processor 13 includes a first holding circuit 14 , a second holding circuit 15 , and a selection circuit 16 .

CPUIIと第1の保持回路14及び選択回路16とは
データバス17によって接続されている。
The CPU II, the first holding circuit 14, and the selection circuit 16 are connected by a data bus 17.

また、CPUI 1とデコーダ12とは、アドレスバス
18及び制御信号線19で接続されており、デコーダ1
2は第1及び第2の保持回路14.15にそれぞれ制御
線20.21によって接続されている。
Further, the CPUI 1 and the decoder 12 are connected by an address bus 18 and a control signal line 19, and the decoder 1
2 are connected to the first and second holding circuits 14.15 by control lines 20.21, respectively.

以下にこの出力装置の動作を説明する。The operation of this output device will be explained below.

CPU11は、データ信号またはビットパターン信号を
データバス17に送出する。また、CPU1lは、アド
レスバス18に第1及び第2の保持回路のいずれかを選
択的に指定するアドレス信号と、制御信号線19に制御
信号を送出する。
CPU 11 sends a data signal or a bit pattern signal to data bus 17. Further, the CPU 1l sends an address signal selectively specifying either the first or second holding circuit to the address bus 18 and a control signal to the control signal line 19.

デコーダ12はCPUIIからの制御信号に従って、第
1及び第2の保持回路14.15を制御する。
The decoder 12 controls the first and second holding circuits 14 and 15 according to a control signal from the CPU II.

CPUIIから出力されるデータ信号はビット選択形出
力ポート13へ入力される。ビット選択形出力ポート1
3に入力されたデータ信号は、まず選択回路16に入力
される。選択回路16では第1の保持回路14から何も
信号が入力されないときはそのままデータ信号を第2の
保持回路15へ入力する。
The data signal output from the CPU II is input to the bit selection type output port 13. Bit selection type output port 1
The data signal input to the selector 3 is first input to the selection circuit 16. When no signal is input from the first holding circuit 14, the selection circuit 16 inputs the data signal as is to the second holding circuit 15.

第2の保持回路15はデコーダ12からの保持信号に応
答してデータ信号を保持し、外部へ出力する。
The second holding circuit 15 holds the data signal in response to the holding signal from the decoder 12 and outputs it to the outside.

次に、ビット選択形出力ポート13からの出力データ(
第2の保持回路に保持されているデータ)の値をビット
単位で変化させる場合について説明する。
Next, the output data from the bit selection type output port 13 (
A case will be described in which the value of data held in the second holding circuit is changed bit by bit.

CPU11は、データバス17にデータの値を変化させ
るビットを指定するビットパターン信号を送出し、デコ
ーダ12に対しては第1の保持信号を出力するようにア
ドレス信号及び制御信号を送出する。
The CPU 11 sends a bit pattern signal specifying a bit whose data value is to be changed to the data bus 17, and sends an address signal and a control signal to the decoder 12 so as to output a first holding signal.

第1の保持信号を受けた第1の保持回路14はビットパ
ターン信号を保持する。そして、このビットパターン信
号はビット選択信号として選択回路16に出力される。
The first holding circuit 14 receiving the first holding signal holds the bit pattern signal. This bit pattern signal is then output to the selection circuit 16 as a bit selection signal.

次に、CPUI 1は変更すべきビットに対応するデー
タの値を選択回路17に入力する。ここで、選択回路1
7には、保持回路14で保持されたデータ信号が入力さ
れている。
Next, the CPU 1 inputs the data value corresponding to the bit to be changed to the selection circuit 17. Here, selection circuit 1
A data signal held by the holding circuit 14 is input to 7.

選択回路16は、ビット選択指示信号に従い、指示があ
るビットについては、データバス17より供給された値
を、指示がないビットについては第2の保持回路15よ
り与えられた値を選択して、選択されたデータ信号を作
成する。この選択されたデータ信号は、データバス17
の伝送ビット同じビット数のデータ信号となる。
In accordance with the bit selection instruction signal, the selection circuit 16 selects the value supplied from the data bus 17 for bits for which there is an instruction, and the value provided from the second holding circuit 15 for bits for which there is no instruction. Create selected data signals. This selected data signal is transmitted to the data bus 17.
becomes a data signal with the same number of bits.

この選択されたデータ信号は第2の保持回路15に送ら
れ、デコーダ12からの保持信号により保持され、変更
データ信号として外部に出力される。
This selected data signal is sent to the second holding circuit 15, held by the holding signal from the decoder 12, and outputted to the outside as a changed data signal.

この様に、CPU11は変化させようとするビットを示
すビットパターン信号とその値をデータバス17に送出
し、所定のタイミングで第1及び第2の保持信号を出力
するように、デコーダ12に信号を送るだけで、ビット
単位でデータ信号の値を変えることができる。
In this way, the CPU 11 sends a bit pattern signal indicating the bit to be changed and its value to the data bus 17, and sends a signal to the decoder 12 to output the first and second hold signals at predetermined timing. You can change the value of a data signal bit by bit just by sending .

[発明の効果コ 本発明によれば、ビット選択形出力ポートがデータバス
を介してCPUより入力されるビットパターン信号を前
記CPUからの第1の保持信号に応答して保持し、ビッ
ト選択指示信号を出力する第1の保持回路と、前記入力
データ信号と前記出力データ信号とを入力とし、前記ビ
ット選択指示信号に基づいてビット単位でいづれか一方
の信号を選択し選択されたデータ信号を出力する選択回
路と、選択されたデータ信号を前記CPUからの第2の
保持信号に応答して保持し、変更出力データ信号を出力
する第2の保持回路とを備えたことで、任意のビットの
値を変更することができる。
[Effects of the Invention] According to the present invention, a bit selection type output port holds a bit pattern signal inputted from a CPU via a data bus in response to a first holding signal from the CPU, and outputs a bit selection instruction. A first holding circuit that outputs a signal, receives the input data signal and the output data signal, selects one of the signals in bit units based on the bit selection instruction signal, and outputs the selected data signal. and a second holding circuit that holds the selected data signal in response to a second holding signal from the CPU and outputs a changed output data signal. Value can be changed.

これにより、CPUの演算処理を大幅に削減することが
できる。
Thereby, the calculation processing of the CPU can be significantly reduced.

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

第1図は本発明の一実施例のブロック図である。 11・・・中央演算処理装置、12・・・デコーダ、1
3・・・ビット選択形出力ポート、14・・・第1の保
持回路、15・・・第2の保持回路、16・・・選択回
路、17・・・データバス、18・・・アドレスバス、
19・・・制御信号線、20・・・第1の制御線、21
・・・第2の制御線。
FIG. 1 is a block diagram of one embodiment of the present invention. 11... Central processing unit, 12... Decoder, 1
3... Bit selection type output port, 14... First holding circuit, 15... Second holding circuit, 16... Selection circuit, 17... Data bus, 18... Address bus ,
19... Control signal line, 20... First control line, 21
...Second control line.

Claims (1)

【特許請求の範囲】 1、データバスを介してマイクロプロセッサに接続され
、前記マイクロプロセッサより前記データバスを介して
入力された入力データ信号を保持し、出力データ信号と
して出力する出力ポートであって、 前記出力データ信号の値を必要に応じてビット単位で変
更し、変更出力データ信号として出力するビット選択形
出力ポートにおいて、 前記データバスを介して入力されるビットパターン信号
を前記マイクロプロセッサからの第1の保持信号に応答
して保持し、ビット選択指示信号を出力する第1の保持
回路と、 前記入力データ信号と前記出力データ信号とを入力とし
、前記ビット選択指示信号に基づいてビット単位でいづ
れか一方の信号を選択し選択されたデータ信号を出力す
る選択回路と、 選択されたデータ信号を前記マイクロプロセッサからの
第2の保持信号に応答して保持し、前記変更出力データ
信号を出力する第2の保持回路とを備えたことを特徴と
するビット選択形出力ポート。 2、マイクロプロセッサとビット選択形出力ポートとが
データバス及び制御線で接続された出力装置であって、 前記マイクロプロセッサは、前記データバスにデータ信
号及びビットパターン信号を、前記制御線に第1及び第
2の保持信号をそれぞれ所定のタイミングで出力する手
段を有し、前記ビット選択形出力ポートは、 前記ビットパターン信号を前記第1の保持信号に応答し
て保持し、ビット選択指示信号を出力する第1の保持回
路と、 前記データ信号と前記ビット選択形出力ポートからの出
力データ信号とを入力とし、前記ビット選択指示信号に
基づいてビット単位でいづれか一方の信号を選択し選択
されたデータ信号を出力する選択回路と、 選択されたデータ信号を前記マイクロプロセッサからの
第2の保持信号に応答して保持し、変更出力データ信号
として出力する第2の保持回路とを備えていることを特
徴とする出力装置。
[Claims] 1. An output port that is connected to a microprocessor via a data bus, holds an input data signal input from the microprocessor via the data bus, and outputs it as an output data signal. , a bit selection type output port that changes the value of the output data signal bit by bit as necessary and outputs it as a changed output data signal, the bit pattern signal input via the data bus being output from the microprocessor; a first holding circuit that holds in response to a first holding signal and outputs a bit selection instruction signal; and a first holding circuit that receives the input data signal and the output data signal, and based on the bit selection instruction signal in bit units. a selection circuit that selects one of the signals and outputs the selected data signal; and a selection circuit that holds the selected data signal in response to a second holding signal from the microprocessor and outputs the changed output data signal. A bit selection type output port, comprising: a second holding circuit that holds the bit. 2. An output device in which a microprocessor and a bit selection type output port are connected by a data bus and a control line, wherein the microprocessor sends a data signal and a bit pattern signal to the data bus and a first bit pattern signal to the control line. and means for outputting a second holding signal at predetermined timings, and the bit selection type output port holds the bit pattern signal in response to the first holding signal and outputs a bit selection instruction signal. a first holding circuit that outputs, the data signal and the output data signal from the bit selection type output port are input, and one of the signals is selected bit by bit based on the bit selection instruction signal. A selection circuit that outputs a data signal; and a second holding circuit that holds the selected data signal in response to a second holding signal from the microprocessor and outputs it as a modified output data signal. An output device characterized by:
JP2107419A 1990-04-25 1990-04-25 Bit select output port and output device Expired - Lifetime JP2890660B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2107419A JP2890660B2 (en) 1990-04-25 1990-04-25 Bit select output port and output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2107419A JP2890660B2 (en) 1990-04-25 1990-04-25 Bit select output port and output device

Publications (2)

Publication Number Publication Date
JPH047656A true JPH047656A (en) 1992-01-13
JP2890660B2 JP2890660B2 (en) 1999-05-17

Family

ID=14458672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2107419A Expired - Lifetime JP2890660B2 (en) 1990-04-25 1990-04-25 Bit select output port and output device

Country Status (1)

Country Link
JP (1) JP2890660B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102011017628A1 (en) 2010-04-30 2011-11-03 The Yokohama Rubber Co., Ltd. tire

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102011017628A1 (en) 2010-04-30 2011-11-03 The Yokohama Rubber Co., Ltd. tire

Also Published As

Publication number Publication date
JP2890660B2 (en) 1999-05-17

Similar Documents

Publication Publication Date Title
KR100435349B1 (en) Parallel processing unit and digital audio signal processing apparatus and method including the same
JPH04245324A (en) Arithmetic unit
JPH047656A (en) Bit selective output port and output device
US5416745A (en) Parallel data transfer circuit
US7058842B2 (en) Microcontroller with multiple function blocks and clock signal control
JPH07253872A (en) Input / output circuit of processor
JPH03214250A (en) Memory control circuit
JPS62182857A (en) Input and output controller
KR19980050668U (en) Bit I / O control circuit of the I / O control device
JPH05173876A (en) Extended memory board
JPH0619706A (en) Pipeline processing circuit
JPH0512196A (en) Bus controller
JPH0282342A (en) Data communication equipment
JPH05159042A (en) Picture processor
JPS63229530A (en) Interruption control system
JPH0668055A (en) Digital signal processor
JPH0481154A (en) Programmable state transition circuit for isdn basic interface layer 1
JPH05151151A (en) Bus converting device
JPH02207321A (en) Bidirectional fifo memory
JPH04274547A (en) Data transfer system
JPH01286057A (en) Microprocessor
JPH11150460A (en) Selection method and selector
JPH0215319A (en) Semiconductor integrated circuit
JPH04336613A (en) Digital signal processing circuit
JPS6054010A (en) Multipoint input and output device