JP2692469B2 - Data controller - Google Patents

Data controller

Info

Publication number
JP2692469B2
JP2692469B2 JP33227291A JP33227291A JP2692469B2 JP 2692469 B2 JP2692469 B2 JP 2692469B2 JP 33227291 A JP33227291 A JP 33227291A JP 33227291 A JP33227291 A JP 33227291A JP 2692469 B2 JP2692469 B2 JP 2692469B2
Authority
JP
Japan
Prior art keywords
control
output
input
data
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.)
Expired - Lifetime
Application number
JP33227291A
Other languages
Japanese (ja)
Other versions
JPH05165753A (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 JP33227291A priority Critical patent/JP2692469B2/en
Publication of JPH05165753A publication Critical patent/JPH05165753A/en
Application granted granted Critical
Publication of JP2692469B2 publication Critical patent/JP2692469B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、CPUにより周辺装置
を制御するデータ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data control device for controlling peripheral devices by a CPU.

【0002】[0002]

【従来の技術】従来のデータ制御装置は、図7に示すよ
うに、あらかじめプログラムされた一連の制御データ、
演算制御信号および入出力制御信号を発生するCPU1
と、データバス2と、演算装置3と、演算結果を保持す
る汎用レジスタ4と、入出力制御信号によりCPU1と
周辺装置7a、7b、7cとをデータバスを介して結合
する制御レジスタ5a、5b、5cおよび状態レジスタ
6とを有する。このようなデータ制御装置では、CPU
1のデータの入出力は複数のデータを並列に行ってお
り、例えば周辺装置7aには制御レジスタ5aを介して
1バイトの制御データが並列に設定される。一方、制御
データをビット単位で設定する場合は、制御レジスタ5
bの内容を汎用レジスタ4に転送した後に演算装置3で
論理演算し、所定のビットをセットまたはリセットして
再度制御レジスタ5bに転送していた。
2. Description of the Related Art A conventional data controller, as shown in FIG. 7, is a series of pre-programmed control data,
CPU 1 for generating arithmetic control signals and input / output control signals
, A data bus 2, an arithmetic unit 3, a general-purpose register 4 for holding an arithmetic result, and control registers 5a, 5b for coupling the CPU 1 and peripheral devices 7a, 7b, 7c via an input / output control signal via the data bus. , 5c and a status register 6. In such a data control device, the CPU
Inputting / outputting 1 data is performed in parallel for a plurality of data. For example, 1 byte of control data is set in parallel in the peripheral device 7a via the control register 5a. On the other hand, when setting the control data in bit units, the control register 5
After transferring the contents of b to the general-purpose register 4, the arithmetic unit 3 performs a logical operation to set or reset a predetermined bit and transfer it to the control register 5b again.

【0003】[0003]

【発明が解決しようとする課題】このような従来例で
は、ビット単位の周辺装置の制御に際して、データバス
を介して制御レジスタの読み出しおよび書き込みを行っ
ているので、バイト単位の制御に比較して処理時間が長
くなる欠点がある。また、通常のビット単位の処理に
は、読み出し、演算、書き込みで2〜3命令が必要であ
り、プログラムメモリを多く消費する欠点があった。
In such a conventional example, since the control register is read and written via the data bus when controlling the bit-by-bit peripheral device, the control is performed in comparison with the byte-by-byte control. There is a drawback that the processing time becomes long. In addition, a normal bit-unit process requires a few instructions for reading, computing, and writing, which has a drawback of consuming a large amount of program memory.

【0004】本発明は、このような欠点を除去するもの
で、ビット単位の制御を高速に行う手段をもつデータ制
御装置を提供することを目的とする。
The present invention eliminates such drawbacks, and an object of the present invention is to provide a data control device having means for performing control in bit units at high speed.

【0005】[0005]

【課題を解決するための手段】本発明は、あらかじめプ
ログラムされた一連の制御データおよび入出力制御信号
を発生するCPUと、上記プログラムに応じて複数ビッ
トの制御データを並列に伝達するデータバスと、入出力
制御信号に応じてCPUと被制御装置とをこのデータバ
スを介して結合する制御レジスタとを備えたデータ制御
装置において、上記制御レジスタは、入出力制御信号の
内のセット信号とクロック信号とが入力端に与えられる
第一アンドゲートと、入出力制御信号の内のリセット信
号とクロック信号とが入力端に与えられる第二アンドゲ
ートと、制御データの1ビットが入力端に与えられ、上
記第一アンドゲートおよび上記第二アンドゲートの出力
信号により制御される第一クロックトインバータと、こ
の第一クロックトインバータの出力端が入力端に接続さ
れ、出力端が当該1ビットにかかわる上記制御レジスタ
の出力端であるインバータと、このインバータの出力端
が入力端に接続され、上記第一アンドゲートおよび上記
第二アンドゲートの出力信号により制御され、出力端が
上記インバータの入力端に接続された第二クロックトイ
ンバータとを制御データの各ビット対応に備えたことを
特徴とする。
According to the present invention, there is provided a CPU for generating a series of preprogrammed control data and input / output control signals, and a data bus for transmitting a plurality of bits of control data in parallel according to the program. In a data control device comprising a control register for coupling a CPU and a controlled device via this data bus according to an input / output control signal, the control register is a set signal and a clock among the input / output control signals. A first AND gate to which a signal is applied to the input terminal, a second AND gate to which a reset signal and a clock signal of the input / output control signals are applied to the input terminal, and 1 bit of control data is applied to the input terminal. A first clocked inverter controlled by the output signals of the first AND gate and the second AND gate, and the first clocked inverter An output terminal of the inverter is connected to an input terminal, and an output terminal is an output terminal of the control register related to the 1 bit, and an output terminal of the inverter is connected to an input terminal. A second clocked inverter, which is controlled by the output signal of the AND gate and has an output end connected to the input end of the inverter, is provided for each bit of control data.

【0006】[0006]

【作用】制御レジスタへのバイト単位の書き込みは、デ
ータバスに制御データを出力した状態で入出力制御信号
Cを「1」にすると行われ、制御レジスタへのビット単
位のセットは、データバスの該当ビットに「1」を出力
した状態で入出力制御信号Sを「1」にすると行われ、
ビット単位のリセットは、データバスの該当ビットに
「0」を出力した状態で入出力制御信号Rを「1」にす
ると行われる。
The byte-wise writing to the control register is performed by setting the input / output control signal C to "1" while the control data is output to the data bus, and the bit-wise setting to the control register is performed by the data bus. It is performed when the input / output control signal S is set to "1" while "1" is output to the corresponding bit.
Resetting in bit units is performed by setting the input / output control signal R to "1" while "0" is output to the corresponding bit of the data bus.

【0007】[0007]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。図1はこの実施例の構成を示すブロック
図である。CPU1は、周辺装置7a、7b、7cを制
御するようあらかじめプログラムされており、一連の制
御データをデータバス2を介して周辺装置7a、7b、
7cの各々に出力する。周辺装置7aはバイト単位の制
御信号が入力されて制御される。周辺装置7bはビット
単位の複数の制御信号が入力されて制御される。周辺装
置7cはバイト単位の制御信号が入力されるとともに、
CPU1で読み取られる状態データを出力する。CPU
1が出力した制御データは、入出力制御信号によって選
択される制御レジスタ5bにビット単位で保持され、周
辺装置7bに伝えられる。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of this embodiment. The CPU 1 is pre-programmed to control the peripheral devices 7a, 7b, 7c and sends a series of control data via the data bus 2 to the peripheral devices 7a, 7b,
7c. The peripheral device 7a is controlled by inputting control signals in byte units. The peripheral device 7b is controlled by inputting a plurality of control signals in bit units. The peripheral device 7c receives a control signal in byte units, and
The status data read by the CPU 1 is output. CPU
The control data output by 1 is held in bit units in the control register 5b selected by the input / output control signal and transmitted to the peripheral device 7b.

【0008】図2は制御レジスタ5bのブロック図であ
る。データバス2はビット毎に端子D0、D1、D2、
D3に接続され、それぞれ布線論理回路8に入力する。
フリップフロップ9はビット毎の制御信号を保持してお
り、端子Q0、Q1、Q2、Q3が周辺装置7bに接続
される。また、フリップフロップ9の出力はデータバス
のビットと論理演算された後にフリップフロップ9のデ
ータ入力になっている。
FIG. 2 is a block diagram of the control register 5b. The data bus 2 has terminals D0, D1, D2,
It is connected to D3 and input to the wiring logic circuit 8, respectively.
The flip-flop 9 holds a control signal for each bit, and terminals Q0, Q1, Q2 and Q3 are connected to the peripheral device 7b. The output of the flip-flop 9 is input to the data of the flip-flop 9 after being logically operated with the bit of the data bus.

【0009】図3は制御レジスタ5bの1ビット部分の
論理回路図である。図4に示すCMOS構造で構成され
るクロックトインバータ11および12はその出力が布
線論理接続され、インバータ13に入力する。インバー
タ13とクロックトインバータ12とはフリップフロッ
プを構成し、制御信号を保持するとともに端子Qに出力
する。CPU1から出力される入出力制御信号はアンド
ゲート14およびナンドゲート15の端子C、Sおよび
Rに入力される。
FIG. 3 is a logic circuit diagram of the 1-bit portion of the control register 5b. Outputs of the clocked inverters 11 and 12 each having the CMOS structure shown in FIG. The inverter 13 and the clocked inverter 12 form a flip-flop, which holds the control signal and outputs it to the terminal Q. The input / output control signal output from the CPU 1 is input to the terminals C, S and R of the AND gate 14 and the NAND gate 15.

【0010】すなわち、この実施例は、図1および図3
に示すように、あらかじめプログラムされた一連の制御
データおよび入出力制御信号を発生するCPU1と、上
記プログラムに応じて複数ビットの制御データを並列に
伝達するデータバス2と、入出力制御信号に応じてCP
U1と被制御装置とをデータバス2を介して結合する制
御レジスタ5a、5b、5cとを備え、さらに、本発明
の特徴とする手段として、制御レジスタ5a、5b、5
cのそれぞれは、入出力制御信号の内のセット信号とク
ロック信号とが入力端に与えられる第一アンドゲートで
あるアンドゲート14と、入出力制御信号の内のリセッ
ト信号とクロック信号とが入力端に与えられる第二アン
ドゲートであるナンドゲート15と、制御データの1ビ
ットが入力端に与えられ、アンドゲート14およびナン
ドゲート15の出力信号により制御されるクロックトイ
ンバータ12と、このクロックトインバータ12の出力
端が入力端に接続され、出力端が当該1ビットにかかわ
る上記制御レジスタ5a、5b、5cの出力端であるイ
ンバータ13と、このインバータ13の出力端が入力端
に接続され、アンドゲート14およびナンドゲート15
の出力信号により制御され、出力端がインバータ13の
入力端に接続されたクロックトインバータ12とを各ビ
ット対応に備える。
That is, this embodiment is shown in FIGS.
As shown in FIG. 1, a CPU 1 that generates a series of preprogrammed control data and input / output control signals, a data bus 2 that transmits a plurality of bits of control data in parallel according to the program, and an input / output control signal CP
The control registers 5a, 5b and 5c are provided to connect U1 and the controlled device via the data bus 2. Further, the control registers 5a, 5b and 5 are provided as a feature of the present invention.
Each of c is inputted with an AND gate 14 which is a first AND gate to which the set signal and the clock signal of the input / output control signals are applied to the input terminals, and the reset signal and the clock signal of the input / output control signals. A NAND gate 15 which is a second AND gate applied to the end, a clocked inverter 12 to which one bit of control data is applied to the input end and which is controlled by the output signals of the AND gate 14 and the NAND gate 15, and the clocked inverter 12 The output terminal of the inverter 13 is connected to the input terminal, the output terminal of which is the output terminal of the control registers 5a, 5b, 5c related to the 1 bit, and the output terminal of the inverter 13 is connected to the input terminal of the AND gate. 14 and Nand Gate 15
And the clocked inverter 12 whose output end is connected to the input end of the inverter 13 for each bit.

【0011】次に、この実施例の動作を説明する。図5
は図3の論理回路の真理値表を示す。制御レジスタ5a
へのバイト単位の書き込みは、データバス2に制御デー
タを出力した状態で入出力制御信号Cを「1」にするこ
とにより行われる。制御レジスタ7bへのビット単位の
セットは、データバス2の当該ビットに「1」を出力し
た状態で入出力制御信号Sを「1」にすることにより行
われ、ビット単位のリセットは、データバスの当該ビッ
トに「0」を出力した状態で入出力制御信号Rを「1」
にすることによって行われる。図6は本発明の第二の実
施例のデータ制御装置のデータバスへの入出力部の回路
図を表わす。第一の実施例との相違は、制御レジスタの
保持データとCPU出力データとのワイヤード演算をデ
ータバス2で行う点である。クロックトバッファ20お
よびインバータ21はCPU1のデータバス出力回路で
あり、クロックトバッファ22およびインバータ23は
制御レジスタ5a、5b、5cのデータバス出力回路、
フリップフロップ24は制御レジスタ5a、5b、5c
である。この実施例は、制御レジスタ7a、7b、7c
の保持データを必要に応じてCPU1から読むことがで
きる利点がある。
Next, the operation of this embodiment will be described. FIG.
Shows a truth table of the logic circuit of FIG. Control register 5a
Writing in byte units is performed by setting the input / output control signal C to "1" while the control data is output to the data bus 2. The bit-wise setting to the control register 7b is performed by setting the input / output control signal S to "1" while "1" is output to the bit of the data bus 2, and the bit-wise resetting is performed by the data bus. The input / output control signal R is set to "1" while "0" is output to the relevant bit of
Is done by. FIG. 6 is a circuit diagram of an input / output unit for a data bus of the data control device according to the second embodiment of the present invention. The difference from the first embodiment is that the data bus 2 performs a wired operation between the data held in the control register and the CPU output data. The clocked buffer 20 and the inverter 21 are the data bus output circuits of the CPU 1, the clocked buffer 22 and the inverter 23 are the data bus output circuits of the control registers 5a, 5b, 5c,
The flip-flop 24 is a control register 5a, 5b, 5c.
It is. In this embodiment, the control registers 7a, 7b and 7c are
There is an advantage that the stored data of 1 can be read from the CPU 1 as needed.

【0012】[0012]

【発明の効果】本発明は、以上説明したように、CPU
の周辺装置制御レジスタとしてその保持データとデータ
バスとの布線論理回路を有するレジスタを用いて、デー
タバスを介して制御レジスタを読み出すことなくビット
単位で制御レジスタにデータを設定することができるの
で、周辺装置をビット単位に短時間に制御でき、さらに
制御レジスタの読み出し手段およびビット演算用の演算
回路を不要にする効果がある。
As described above, the present invention provides a CPU.
Since a register having a wiring logic circuit of the held data and the data bus can be used as the peripheral device control register of, the data can be set in the control register bit by bit without reading the control register via the data bus. The peripheral device can be controlled bit by bit in a short time, and the reading means of the control register and the arithmetic circuit for bit arithmetic are unnecessary.

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

【図1】本発明実施例の構成を示すブロック構成図。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】図1に含まれる制御レジスタの構成を示すブロ
ック構成図。
FIG. 2 is a block configuration diagram showing a configuration of a control register included in FIG.

【図3】図2に示す制御レジスタの1ビット部分の構成
を示す回路接続図。
FIG. 3 is a circuit connection diagram showing a configuration of a 1-bit portion of the control register shown in FIG.

【図4】図3に含まれるクロックトインバータの構成を
示す回路接続図。
FIG. 4 is a circuit connection diagram showing the configuration of the clocked inverter included in FIG.

【図5】図1に含まれる制御レジスタの動作を示す真理
値表。
5 is a truth table showing the operation of the control register included in FIG. 1. FIG.

【図6】データバスへの入出力回路の構成を示す回路接
続図。
FIG. 6 is a circuit connection diagram showing a configuration of an input / output circuit for a data bus.

【図7】従来例の構成を示すブロック構成図。FIG. 7 is a block configuration diagram showing a configuration of a conventional example.

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

1 CPU 2 データバス 3 演算装置 4 汎用レジスタ 5a、5b、5c 制御レジスタ 6 状態レジスタ 7a、7b、7c 周辺装置 8 布線論理回路 9、24 フリップフロップ 11、12 クロックトインバータ 13、21、23 インバータ 14 アンドゲート 15 ナンドゲート 20、22 クロックトバッファ 1 CPU 2 Data Bus 3 Arithmetic Unit 4 General-purpose Register 5a, 5b, 5c Control Register 6 Status Register 7a, 7b, 7c Peripheral Device 8 Wiring Logic Circuit 9, 24 Flip-Flop 11, 12 Clocked Inverter 13, 21, 23 Inverter 14 AND gate 15 NAND gate 20, 22 Clocked buffer

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 あらかじめプログラムされた一連の制御
データおよび入出力制御信号を発生するCPUと、 上記プログラムに応じて複数ビットの制御データを並列
に伝達するデータバスと、 入出力制御信号に応じてCPUと被制御装置とをこのデ
ータバスを介して結合する制御レジスタとを備えたデー
タ制御装置において、 上記制御レジスタは、 入出力制御信号の内のセット信号とクロック信号とが入
力端に与えられる第一アンドゲートと、 入出力制御信号の内のリセット信号とクロック信号とが
入力端に与えられる第二アンドゲートと、 制御データの1ビットが入力端に与えられ、上記第一ア
ンドゲートおよび上記第二アンドゲートの出力信号によ
り制御される第一クロックトインバータと、 この第一クロックトインバータの出力端が入力端に接続
され、出力端が当該1ビットにかかわる上記制御レジス
タの出力端であるインバータと、 このインバータの出力端が入力端に接続され、上記第一
アンドゲートおよび上記第二アンドゲートの出力信号に
より制御され、出力端が上記インバータの入力端に接続
された第二クロックトインバータとを1バイト分の制御
データの各ビット対応に備えたことを特徴とするデータ
制御装置。
1. A CPU for generating a series of pre-programmed control data and input / output control signals, a data bus for transmitting control data of a plurality of bits in parallel according to the program, and a CPU for input / output control signals. In a data control device comprising a CPU and a control register for coupling a controlled device via this data bus, the control register is provided with a set signal and a clock signal of input / output control signals at its input end. A first AND gate; a second AND gate to which a reset signal and a clock signal of the input / output control signals are applied to the input terminal; and 1 bit of control data to the input terminal, The first clocked inverter controlled by the output signal of the second AND gate and the output terminal of the first clocked inverter are An inverter that is connected to the output terminal and whose output terminal is the output terminal of the control register relating to the 1 bit, and the output terminal of this inverter is connected to the input terminal, and the output of the first and gate and the second and gate A data control device comprising: a second clocked inverter, which is controlled by a signal and whose output end is connected to the input end of the inverter, corresponding to each bit of control data for 1 byte.
JP33227291A 1991-12-16 1991-12-16 Data controller Expired - Lifetime JP2692469B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33227291A JP2692469B2 (en) 1991-12-16 1991-12-16 Data controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33227291A JP2692469B2 (en) 1991-12-16 1991-12-16 Data controller

Publications (2)

Publication Number Publication Date
JPH05165753A JPH05165753A (en) 1993-07-02
JP2692469B2 true JP2692469B2 (en) 1997-12-17

Family

ID=18253094

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33227291A Expired - Lifetime JP2692469B2 (en) 1991-12-16 1991-12-16 Data controller

Country Status (1)

Country Link
JP (1) JP2692469B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2729369B1 (en) 2011-07-07 2016-11-30 Automated Packaging Systems, Inc. Air cushion inflation machine

Also Published As

Publication number Publication date
JPH05165753A (en) 1993-07-02

Similar Documents

Publication Publication Date Title
US4271466A (en) Direct memory access control system with byte/word control of data bus
EP0189638B1 (en) Bus width adapter
US5079693A (en) Bidirectional FIFO buffer having reread and rewrite means
JPH0219015A (en) Multifunctional flip-flop circuit
US4835684A (en) Microcomputer capable of transferring data from one location to another within a memory without an intermediary data bus
US5287486A (en) DMA controller using a programmable timer, a transfer counter and an or logic gate to control data transfer interrupts
EP0331487B1 (en) Data transfer control system
JP2692469B2 (en) Data controller
JP2563679B2 (en) Bidirectional input / output signal separation circuit
JPH0721103A (en) Data transfer device
JP4201375B2 (en) Data transfer device
KR0118651Y1 (en) Interface apparatus between pc and image processor
KR910006684Y1 (en) Cpu signal controlling circuit
KR100244885B1 (en) Multiple interrupt communication circuit
KR100237298B1 (en) Interrupt signal generating control apparatus
KR0114239Y1 (en) Interrupt handler circuit
KR950014374B1 (en) Dma recognizing signal generating circuit
KR950002316B1 (en) Data transmission device for fax
JP2563807B2 (en) Direct memory access control circuit
JPS62296637A (en) Data sink for serial data
JPH0380354A (en) Parallel interface
JPH04205118A (en) Data processing system
JPS6379441A (en) Transmission/reception equipment for serial data
JPS61190389A (en) Character display unit
JPH0675902A (en) Dma transfer circuit