JPH07200464A - Data bus connection device with different number of bits - Google Patents

Data bus connection device with different number of bits

Info

Publication number
JPH07200464A
JPH07200464A JP33392393A JP33392393A JPH07200464A JP H07200464 A JPH07200464 A JP H07200464A JP 33392393 A JP33392393 A JP 33392393A JP 33392393 A JP33392393 A JP 33392393A JP H07200464 A JPH07200464 A JP H07200464A
Authority
JP
Japan
Prior art keywords
data
signal
output
input
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.)
Granted
Application number
JP33392393A
Other languages
Japanese (ja)
Other versions
JP2760742B2 (en
Inventor
Shinji Masuko
伸二 益子
Toshio Kurihara
俊男 栗原
Shinya Yoshida
伸也 吉田
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.)
Rhythm Co Ltd
Original Assignee
Rhythm Watch Co Ltd
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 Rhythm Watch Co Ltd filed Critical Rhythm Watch Co Ltd
Priority to JP33392393A priority Critical patent/JP2760742B2/en
Publication of JPH07200464A publication Critical patent/JPH07200464A/en
Application granted granted Critical
Publication of JP2760742B2 publication Critical patent/JP2760742B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

(57)【要約】 【目的】 CPU10の負担を軽くしてCPU10のバスサ
イズよりも大きいバスサイズの周辺装置をCPU10に接
続する。 【構成】 CPU10のデータを記憶し、且つ、周辺装置
12のデータも記憶するデータ記憶部41と、所定のアドレ
スにより制御部やデータ保持記憶部61に選択信号を出力
するアドレスデコーダ25と、アドレスデコーダ25からの
選択信号とCPU10からのライト信号とが入力されると
データ記憶手段46に作動信号を出力し、選択信号とリー
ド信号が入力されたときも別の作動信号を出力する制御
部31と、周辺装置12からライト信号が入力されると保存
状態を維持し且つ選択信号が入力されると記憶信号を出
力し、又、前記制御部31に入力される選択信号の内の1
つが入力されると保存状態を解除するデータ保持記憶部
61と、選択信号が入力されているときにCPU10からの
ライト信号が入力されると周辺装置12にリード信号を出
力する書き込み命令形成部71と、を設ける。
(57) [Abstract] [Purpose] To reduce the burden on the CPU 10 and connect a peripheral device having a bus size larger than the bus size of the CPU 10 to the CPU 10. [Structure] Data of the CPU 10 is stored and peripheral devices
The data storage unit 41 that also stores 12 data, the address decoder 25 that outputs a selection signal to the control unit and the data holding storage unit 61 by a predetermined address, the selection signal from the address decoder 25, and the write signal from the CPU 10. When the input signal is input, the operation signal is output to the data storage means 46, and when the selection signal and the read signal are input, another control signal is output, and when the write signal is input from the peripheral device 12, it is saved. A memory signal is output when the state is maintained and a selection signal is input, and one of the selection signals input to the control unit 31 is output.
Data storage unit that releases the saved state when one is input
61 and a write command forming unit 71 that outputs a read signal to the peripheral device 12 when a write signal from the CPU 10 is input while the selection signal is input.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、中央演算処理装置と、
この中央演算処理装置に接続される周辺装置とでバスサ
イズの異なるデータバスを有する場合の接続に関するも
のである。
BACKGROUND OF THE INVENTION The present invention relates to a central processing unit,
The present invention relates to the connection in the case where the peripheral device connected to the central processing unit has a data bus having a different bus size.

【0002】[0002]

【従来の技術】今日、中央演算処理装置(以下CPUと
いう)に制御されて作動する種々の周辺装置があり、こ
の周辺装置にも適宜のコントローラが組み込まれ、CP
Uとの間で多くのデータの受け渡しを行っている。そし
て、この周辺装置内で取り扱うデータのビット数がCP
Uの取り扱うデータのビット数よりも少ない場合は、周
辺装置のデータバスの全てをCPUのデータバスに接続
し、CPUでは周辺装置に接続されたデータバスのビッ
トに合わせてデータの処理を行っている。
2. Description of the Related Art Today, there are various peripheral devices which are controlled and operated by a central processing unit (hereinafter referred to as CPU), and an appropriate controller is incorporated in this peripheral device as well.
We exchange a lot of data with U. The number of bits of data handled in this peripheral device is CP
If the number of data bits handled by U is smaller than the number of data bits handled by U, all the data buses of the peripheral device are connected to the data bus of the CPU, and the CPU processes the data according to the bits of the data bus connected to the peripheral device. There is.

【0003】また、周辺装置内で取り扱うデータのビッ
ト数がCPUの取り扱うビット数よりも多い場合は、図
3に示すように、周辺装置用入出力装置85(以下PIO
という)を用いて、データのビット操作を行っている。
すなわち、CPU10が8ビットデータで処理を行い、周
辺装置12では12ビットデータ又は16ビットデータに
より処理を行っている場合、CPU10から周辺装置12に
データを送るに際しては、まずデコーダ83に特定のアド
レス信号を出力してPIO85を選択するとともに、PI
O85のAポートを選択し、8ビットデータの出力を確定
させた後、ライト信号を出力することによりまず下位8
ビットのデータをAポートに記憶させ、続いてPIO85
を選択するとともに、PIO85のBポートを選択するア
ドレス信号をデコーダに出力して周辺装置12の残り上位
ビット数にデータを含ませた8ビットデータを出力しつ
つライト信号をCPU10は出力してBポートにこのデー
タを記憶させ、さらに、PIO85と周辺装置12とを選択
するアドレス信号をデコーダ83に出力して再度ライト信
号を出力することによりAポートの8ビットデータとB
ポートの8ビットデータとを合わせた16ビットデータ
又はAポートの8ビットデータとBポートからの下位4
ビットデータとによる12ビットデータを周辺装置12に
送るものであり、周辺装置12からデータを受け取るに際
しては、PIO85と周辺装置12とを選択するアドレス信
号をデコーダ83に出力しつつリード信号を出力して周辺
装置12のデータをPIO85のAポート及びBポートにデ
ータを移し、しかる後、PIO85のAポートを選択する
アドレス信号とリード信号とを出力してAポートから8
ビットのデータを読み込み、続いてBポートを選択する
アドレス信号とリード信号とを出力してBポートのデー
タを読み込んでいる。
When the number of bits of data handled in the peripheral device is larger than the number of bits handled by the CPU, as shown in FIG. 3, the peripheral device input / output device 85 (hereinafter referred to as PIO) is used.
Is used) to perform bit manipulation of data.
That is, when the CPU 10 performs processing with 8-bit data and the peripheral device 12 performs processing with 12-bit data or 16-bit data, when sending data from the CPU 10 to the peripheral device 12, first, a specific address is given to the decoder 83. Output a signal to select PIO85 and PI
First select the A port of O85, confirm the output of 8-bit data, and then output the write signal to output the lower 8 bits.
Store bit data in port A, then PIO85
And the address signal for selecting the B port of PIO85 is output to the decoder to output 8-bit data including the data in the remaining upper bits of the peripheral device 12, and the CPU 10 outputs the write signal to output B. By storing this data in the port, further outputting the address signal for selecting the PIO 85 and the peripheral device 12 to the decoder 83 and outputting the write signal again, the 8-bit data of the A port and the B
16-bit data combined with 8-bit data of port or 8-bit data of A port and lower 4 from B port
12-bit data based on bit data is sent to the peripheral device 12, and when receiving data from the peripheral device 12, a read signal is output while outputting an address signal for selecting the PIO 85 and the peripheral device 12 to the decoder 83. Then, the data of the peripheral device 12 is transferred to the A port and B port of the PIO 85, and thereafter, the address signal and the read signal for selecting the A port of the PIO 85 are output and the A port 8
Bit data is read, and then an address signal for selecting the B port and a read signal are output to read the B port data.

【0004】[0004]

【発明が解決しようとする課題】前述のように、周辺装
置で処理するデータのビット数がCPUで処理している
データのビット数よりも少ない場合、データバスの接続
及びCPUでのデータの処理は容易に行い得るも、CP
Uの機能が過剰となる場合が多く無駄が生じる欠点があ
った。
As described above, when the number of bits of data processed by the peripheral device is smaller than the number of bits of data processed by the CPU, data bus connection and data processing by the CPU are performed. Can be done easily, but CP
There is a disadvantage that the function of U is often excessive and wasteful.

【0005】また、周辺装置で処理するデータのビット
数がCPUで処理するデータのビット数よりも多い場
合、PIOを用いてビット数を変更するも、CPUはP
IOを選択するアドレス信号と周辺装置を選択するアド
レス信号を出力してPIOに対するリードライト信号の
他、周辺装置に対するリードライト信号も出力する必要
があり、プログラムが複雑となるとともにデータ転送に
必要な時間が長くなる欠点があった。
When the number of bits of data processed by the peripheral device is larger than the number of bits of data processed by the CPU, the number of bits is changed by using PIO, but the CPU still outputs P
It is necessary to output the address signal for selecting the IO and the address signal for selecting the peripheral device to output the read / write signal for the PIO as well as the read / write signal for the peripheral device, which complicates the program and is necessary for the data transfer. There was a drawback that it took a long time.

【0006】本発明は、このような欠点を排除し、周辺
装置で処理するデータのビット数がCPUで処理するデ
ータのビット数よりも多い場合、PIOにCPUからデ
ータが書き込まれると自動的に周辺装置に読み込み命令
を出力し、周辺装置からPIOにデータが出力されると
このデータを保持しておくことによりCPUの負担を軽
減することのできるPIOを提供するものである。
The present invention eliminates such drawbacks, and when the number of bits of data processed by the peripheral device is larger than the number of bits of data processed by the CPU, the data is automatically written from the CPU to the PIO. A PIO capable of reducing the load on the CPU by outputting a read command to the peripheral device and holding the data when the data is output from the peripheral device to the PIO is provided.

【0007】[0007]

【課題を解決するための手段】CPUのアドレスバスに
接続されて所定のアドレス信号により複数個の選択信号
出力端子の何れか一つに選択信号を出力するアドレスデ
コーダと、複数個の作動信号出力手段で構成され、各作
動信号出力手段は、各々前記アドレスデコーダの別個の
選択信号出力端子に接続されるとともに、各作動信号出
力手段は、CPUのリード信号端子及びライト信号端子
に接続され、各作動信号出力手段はアドレスデコーダか
らの選択信号が入力されているときにライト信号が入力
されると書き込み作動信号を出力し、選択信号が入力さ
れているときにリード信号が入力されると読み出し作動
信号を出力する制御部と、作動信号出力手段と同数個の
ラッチ手段で構成され、各ラッチ手段はCPUが出力す
るビット数に応じたビット数のデータを記憶するデータ
記憶手段とデータ保持手段とを一組として有し、データ
記憶手段のデータ出力端子及びデータ保持手段のデータ
入力端子は合わせて各ラッチ手段毎に周辺装置の異なる
データ端子に接続され、且つ、各ラッチ手段におけるデ
ータ記憶手段のデータ入力端子及びデータ保持手段のデ
ータ出力端子はともに全てがCPUのデータバスに接続
され、各ラッチ手段は各々前記制御部の作動信号出力手
段に接続され、ラッチ手段におけるデータ記憶手段の読
み込み制御端子に前記書き込み作動信号が、データ保持
手段のデータ出力制御端子に読み出し作動信号が入力さ
れ、さらに全てのデータ保持手段の読み込み制御端子は
周辺装置のライト信号端子に接続され、全てのデータ記
憶手段のデータ出力制御端子は書き込み命令形成部のリ
ード信号出力端子に接続されているデータ記憶部と、周
辺装置のライト信号端子と、前記制御部における作動信
号出力手段に接続される前記アドレスデコーダの選択信
号出力端子の内の一つと独自の選択信号出力端子との2
つの選択信号出力端子と、更にCPUのリード信号端子
とに接続され、周辺装置からライト信号が入力されると
周辺装置へのデータレディー信号の出力を停止する保存
状態となってこの保存状態を維持し、保存状態のときに
独自の選択信号出力端子からの選択信号が入力されると
CPUのデータバスに記憶信号を出力し、又、作動信号
出力手段と共通の選択信号が入力され、且つ、このとき
CPUからのリード信号が入力されると保存状態を解除
するとともに周辺装置にデータレディー信号を出力する
データ保持記憶部と、前記データ保持記憶部及び作動信
号出力手段が接続されたデコーダの選択信号出力端子
と、CPUのライト信号端子とに接続され、選択信号が
入力されているときにライト信号が入力されると周辺装
置にリード信号を出力する書き込み命令形成部と、を有
するビット数の異なるデータバスの接続装置とする。
An address decoder connected to an address bus of a CPU for outputting a selection signal to any one of a plurality of selection signal output terminals according to a predetermined address signal, and a plurality of operation signal outputs. Each operation signal output means is connected to a separate selection signal output terminal of the address decoder, and each operation signal output means is connected to a read signal terminal and a write signal terminal of the CPU. The operation signal output means outputs a write operation signal when a write signal is input while the selection signal from the address decoder is input, and a read operation when a read signal is input when the selection signal is input. It is composed of a control section for outputting a signal and a latch means of the same number as the operation signal output means, and each latch means depends on the number of bits output by the CPU. The data storage means for storing the data of the number of bits and the data holding means are provided as a set, and the data output terminal of the data storage means and the data input terminal of the data holding means are combined and the data of the peripheral device different for each latch means. All of the data input terminals of the data storage means and the data output terminals of the data holding means in each latch means are connected to the data bus of the CPU, and each latch means outputs the operation signal of the control section. The read operation signal is input to the read control terminal of the data storage means in the latch means, and the read operation signal is input to the data output control terminal of the data holding means, and the read control terminals of all the data holding means are peripheral. Connected to the write signal terminal of the device, write the data output control terminal of all data storage means Of the data storage unit connected to the read signal output terminal of the instruction forming unit, the write signal terminal of the peripheral device, and the selection signal output terminal of the address decoder connected to the operation signal output unit of the control unit. 2 with one and its own selection signal output terminal
One select signal output terminal and the read signal terminal of the CPU are further connected, and when a write signal is input from the peripheral device, the output of the data ready signal to the peripheral device is stopped and the save state is maintained. However, when the selection signal from the original selection signal output terminal is input in the storage state, the storage signal is output to the data bus of the CPU, and the selection signal common to the operation signal output means is input, and At this time, when a read signal from the CPU is input, the storage state is released and a data holding / storage unit that outputs a data ready signal to the peripheral device, and a decoder to which the data holding / storage unit and the operation signal output means are connected are selected. It is connected to the signal output terminal and the write signal terminal of the CPU, and outputs a read signal to the peripheral device when the write signal is input while the selection signal is input. A write instruction forming part of, the different data bus of the connection device of the number of bits with.

【0008】[0008]

【作 用】本発明は、所定のアドレス信号が入力される
と複数個の選択信号出力端子の内の一つに選択信号を出
力するアドレスデコーダを有し、このアドレスデコーダ
の各選択信号出力端子は、各々作動信号出力手段などに
接続される故、アドレスバスから所定のアドレス信号が
入力されたとき、アドレス信号の内容によって制御部の
各作動信号出力手段又はデータ保持記憶部や書き込み命
令形成部に選択信号を出力し、各作動信号出力手段又は
データ保持記憶部や書き込み命令形成部の内の所定のも
のだけを作動させることができる。
[Operation] The present invention has an address decoder that outputs a selection signal to one of a plurality of selection signal output terminals when a predetermined address signal is input, and each selection signal output terminal of this address decoder Are connected to the operation signal output means, etc., and therefore, when a predetermined address signal is input from the address bus, each operation signal output means of the control section or the data holding storage section or the write command forming section depending on the content of the address signal. It is possible to output a selection signal to each of the operation signal output means, or to operate only a predetermined one of the data holding / storage section and the write command forming section.

【0009】また、制御部は複数個の作動信号出力手段
を有し、各作動信号出力手段は各々別個の選択信号出力
端子に接続され、選択信号が入力されている状態でライ
ト信号が入力されると書き込み作動信号を出力し、リー
ド信号が入力されると読み出し作動信号を出力する故、
アドレスデコーダに入力されるアドレスの内容により、
何れか一つの作動信号出力手段がリード信号を読み出し
作動信号として、ライト信号を書き込み作動信号として
出力する。
The control unit has a plurality of operation signal output means, each operation signal output means is connected to a separate selection signal output terminal, and a write signal is input while the selection signal is being input. Then, the write operation signal is output, and when the read signal is input, the read operation signal is output.
Depending on the contents of the address input to the address decoder,
Any one operation signal output means outputs the read signal as a read operation signal and the write signal as a write operation signal.

【0010】そして、データ記憶部は作動信号出力手段
と同数個のラッチ手段を有し、各ラッチ手段はデータ記
憶手段とデータ保持手段とを一組として有し、この各デ
ータ記憶手段の読み込み制御端子には各々作動信号出力
手段からの書き込み作動信号を入力するように接続し、
且つ、データ記憶手段のデータ入力端子をCPUのデー
タバスに接続している故、書き込み信号が入力されたデ
ータ記憶手段はCPUがデータバスに出力しているデー
タを記憶し、また、各データ保持手段のデータ出力制御
端子には各々作動信号出力手段からの読み出し作動信号
を入力するように接続し、且つ、データ出力端子をCP
Uのデータバスに接続している故、読み出し作動信号が
入力されたデータ保持手段は、データ保持手段が保持し
ているデータをCPUのデータバスに出力する。
The data storage section has the same number of latch means as the operation signal output means, and each latch means has a set of the data storage means and the data holding means, and the read control of each data storage means. Connect to each terminal to input the write operation signal from the operation signal output means,
Moreover, since the data input terminal of the data storage means is connected to the data bus of the CPU, the data storage means to which the write signal is input stores the data output by the CPU to the data bus, and holds each data. The data output control terminals of the means are connected so as to input the read operation signals from the operation signal output means, and the data output terminals are connected to the CP.
Since it is connected to the U data bus, the data holding means to which the read operation signal is input outputs the data held by the data holding means to the data bus of the CPU.

【0011】また、各データ記憶手段のデータ出力端子
は、各々データ記憶手段と組とされているデータ保持手
段のデータ入力端子と共に、各ラッチ手段毎に周辺装置
の異なるデータ端子に接続されており、データ出力制御
端子は書き込み命令形成部のリード信号出力端子に接続
されている故、書き込み命令形成部が周辺装置にリード
信号を出力したとき、各データ記憶手段に各々記憶され
た全データをパラレルとして周辺装置に送ることがで
き、データ保持手段のデータ入力端子が各々周辺装置の
データ端子に接続され、このデータ保持手段の読み込み
制御端子には周辺装置のライト信号が入力されるように
接続されている故、周辺装置がライト信号を出力する
と、データ保持手段は周辺装置が出力しているデータを
一斉に保持するように記憶するものである。
The data output terminal of each data storage means is connected to a different data terminal of the peripheral device for each latch means together with the data input terminal of the data holding means paired with the data storage means. Since the data output control terminal is connected to the read signal output terminal of the write command forming unit, when the write command forming unit outputs a read signal to the peripheral device, all the data stored in the respective data storage units are parallelized. The data input terminal of the data holding means is connected to the data terminal of the peripheral apparatus, and the read control terminal of the data holding means is connected so that the write signal of the peripheral apparatus is input. Therefore, when the peripheral device outputs a write signal, the data holding means holds the data output by the peripheral device all at once. It is intended to 憶.

【0012】さらに、データ保持記憶部は、ライト信号
が周辺装置から入力されるとデータレディー信号の出力
を停止する保存状態となり、この保存状態のときに独自
の選択信号が入力されると記憶信号をCPUのデータバ
スに出力するものである故、CPUがアドレスデコーダ
に該データ保持記憶部が接続される選択信号出力端子の
アドレスを出力すると、データ保持記憶部はCPUのア
ドレスバスに記憶信号を出力し、当該データ保持記憶部
が保存状態であること、言い換えると周辺装置からのラ
イト信号により前述のデータ保持手段が周辺装置からの
データを保持したことをCPUに知らせることができ
る。
Further, the data holding / storage unit is in a storage state in which the output of the data ready signal is stopped when the write signal is input from the peripheral device, and when the original selection signal is input in this storage state, the storage signal is stored. Is output to the data bus of the CPU, the CPU outputs the storage signal to the address bus of the CPU when the CPU outputs the address of the selection signal output terminal to which the data storage unit is connected to the address decoder. By outputting the data, it is possible to inform the CPU that the data holding storage section is in the saved state, in other words, the write signal from the peripheral device indicates that the data holding means holds the data from the peripheral device.

【0013】また、このデータ保持記憶部は、制御部に
おける作動信号出力手段に接続される選択信号出力端子
の一つにも接続され、この選択信号出力端子から選択信
号が入力され、且つ、CPUのリード信号が入力される
と保持状態を解除して周辺装置にデータレディー信号を
出力するものである故、アドレスデコーダに選択信号出
力端子の何れかに選択信号を出力させるアドレス信号が
入力され、このアドレス信号とCPUのリード信号とに
よりあるラッチ手段におけるデータ保持手段がデータバ
スにデータを出力したとき、該データ保存記憶手段は初
期状態に戻って周辺装置にデータレディー信号を出力し
て周辺装置からのデータがCPUに読み込まれたことを
知らせることができる。
The data holding / storage section is also connected to one of the selection signal output terminals connected to the operation signal output means in the control section, the selection signal is input from the selection signal output terminal, and the CPU When the read signal is input, the holding state is released and the data ready signal is output to the peripheral device.Therefore, the address signal that causes the address decoder to output the selection signal is input to one of the selection signal output terminals. When the data holding means in a certain latch means outputs the data to the data bus by the address signal and the read signal of the CPU, the data storage / storage means returns to the initial state and outputs the data ready signal to the peripheral device to output the peripheral device. The data from can be signaled to the CPU to be read.

【0014】そして、読み込み命令形成部は、データ保
持記憶部と作動信号出力手段とが接続された選択信号出
力端子からの選択信号とCPUからのライト信号とが入
力されたときに周辺装置とデータ記憶部におけるデータ
記憶手段とにリード信号を出力するものである故、ある
ラッチ手段におけるデータ記憶手段にデータが記憶され
たときに周辺装置にリード信号を出力し、且つ、データ
記憶手段のデータ出力制御端子に信号を出力してデータ
記憶部のデータを周辺装置に読み込ませることができる
ものである。
The read command forming unit receives data from the peripheral device and the data when the selection signal from the selection signal output terminal to which the data holding / storage unit and the operation signal output means are connected and the write signal from the CPU are input. Since the read signal is output to the data storage means in the storage section, the read signal is output to the peripheral device when data is stored in the data storage means in a certain latch means, and the data output of the data storage means is performed. By outputting a signal to the control terminal, the data in the data storage section can be read by the peripheral device.

【0015】[0015]

【実施例】本発明に係るビット数の異なるデータバスの
接続装置の実施例は、例えば図1に示すように、8ビッ
トデータを取り扱うCPU10のデータバス15と24ビッ
トデータを取り扱う周辺装置12のデータバスとを接続す
るものである。この接続装置は、4個の選択信号出力端
子AS1〜AS4を有するアドレスデコーダ25と、このア
ドレスデコーダ25の第1選択信号出力端子AS1乃至第
3選択信号出力端子AS3に接続され、3個の作動信号
出力手段32,35,38を有する制御部31と、3個のラッチ手
段45,51,55を有するデータ記憶部41と第3選択信号出力
端子AS3及び第4選択信号出力端子AS4に接続される
データ保持記憶部61と、第3選択信号出力端子AS3に
接続される書き込み命令形成部71とで構成されるもので
ある。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of a data bus connection device having a different number of bits according to the present invention is, for example, as shown in FIG. 1, a data bus 15 of a CPU 10 for handling 8-bit data and a peripheral device 12 for handling 24-bit data. It connects to the data bus. This connection device is connected to an address decoder 25 having four selection signal output terminals AS1 to AS4 and to the first selection signal output terminal AS1 to third selection signal output terminal AS3 of the address decoder 25, and three operation signals are provided. It is connected to the control section 31 having the signal output means 32, 35, 38, the data storage section 41 having the three latch means 45, 51, 55, the third selection signal output terminal AS3 and the fourth selection signal output terminal AS4. And a write command forming unit 71 connected to the third selection signal output terminal AS3.

【0016】そして、制御部31の各作動制御信号出力手
段32,35,38は、図2に示すように、各々2個のアンド回
路で構成し、第1作動制御信号出力手段32の2個のアン
ド回路の各一入力端子を合わせてアドレスデコーダ25の
第1選択信号出力端子AS1に、第2作動制御信号出力
手段35の2個のアンド回路の各一入力端子を合わせてア
ドレスデコーダ25の第2選択信号出力端子AS2に、第
3作動制御信号出力手段38の2個のアンド回路の各一入
力端子を合わせてアドレスデコーダ25の第3選択信号出
力端子AS3に接続するように、各々作動制御信号出力
手段32,35,38の2個のアンド回路の各一入力端子を合わ
せてアドレスデコーダ25の各選択信号出力端子に接続
し、各作動信号出力手段32,35,38における一方のアンド
回路の他の入力端子はまとめてCPU10のライト信号端
子に、各作動信号出力手段32,35,38における他方のアン
ド回路の他の入力端子もまとめて1本としてCPU10の
リード信号端子に接続するものである。
As shown in FIG. 2, each operation control signal output means 32, 35, 38 of the control unit 31 is composed of two AND circuits, and two operation control signal output means 32 are provided. Of the AND circuit and the respective one input terminals of the two AND circuits of the second operation control signal output means 35 are combined with the first selection signal output terminal AS1 of the address decoder 25. The second selection signal output terminal AS2 is operated so that each one input terminal of the two AND circuits of the third operation control signal output means 38 is combined and connected to the third selection signal output terminal AS3 of the address decoder 25. The respective one input terminals of the two AND circuits of the control signal output means 32, 35, 38 are combined and connected to each selection signal output terminal of the address decoder 25, and one of the AND signals of the operation signal output means 32, 35, 38 is connected. Other input terminals of the circuit are collectively CPU10 The write signal terminal, and connects to the CPU10 of the read signal terminals as one also collectively other input terminal of the other AND circuits of each actuation signal outputting means 32,35,38.

【0017】又、この制御部31からの各作動信号が入力
されるデータ記憶部41を構成する第1ラッチ手段45乃至
第3ラッチ手段55の3個のラッチ手段45,51,55は、各々
データ記憶手段とデータ保持手段とを組として形成し、
第1ラッチ手段45は前記第1作動制御信号出力手段32
に、第2ラッチ手段51は第2作動制御信号出力手段35
に、第3ラッチ手段55は前記第3作動制御信号出力手段
38に接続するものであって、各作動信号出力手段32,35,
38における一入力端子がライト信号端子に接続されるア
ンド回路は、その出力端子をラッチ手段におけるデータ
記憶手段の読み込み制御端子に接続し、リード信号端子
に一入力端子が接続される他のアンド回路は、その出力
端子をラッチ手段におけるデータ保持手段のデータ出力
制御端子(アウトプットイネーブル端子)に接続するも
のである。
Further, the three latching means 45, 51, 55 of the first latching means 45 to the third latching means 55, which constitute the data storage section 41 to which the respective operation signals from the control section 31 are inputted, are respectively The data storage means and the data holding means are formed as a set,
The first latch means 45 is the first operation control signal output means 32.
In addition, the second latch means 51 is provided with the second operation control signal output means 35.
The third latch means 55 is the third operation control signal output means.
38, which are connected to the respective operation signal output means 32, 35,
The AND circuit of which one input terminal in 38 is connected to the write signal terminal is another AND circuit in which the output terminal is connected to the read control terminal of the data storage means in the latch means, and the one input terminal is connected to the read signal terminal. Has its output terminal connected to the data output control terminal (output enable terminal) of the data holding means in the latch means.

【0018】この各ラッチ手段における各データ記憶手
段及びデータ保持手段としては、例えば8ビットパラレ
ルインパラレルアウトのラッチ回路を用い、各データ記
憶手段としたラッチ回路の全データ入力端子及び各デー
タ保持手段としたラッチ回路の全データ出力端子をCP
U10のデータバス15に接続し、第1ラッチ手段45のデー
タ記憶手段46としたラッチ回路のデータ出力端子及びデ
ータ保持手段47としたラッチ回路のデータ入力端子は合
わせて周辺装置12の0番ビットから7番ビットのデータ
端子に、第2ラッチ手段51のデータ記憶手段52としたラ
ッチ回路のデータ出力端子及びデータ保持手段53とした
ラッチ回路のデータ入力端子を合わせて周辺装置12の8
番ビットから15番ビットのデータ端子に、同様に第3
ラッチ手段55のデータ記憶手段56のデータ出力端子とデ
ータ保持手段57のデータ入力端子も合わせて16番ビッ
トから23番ビットのデータ端子に接続し、第1ラッチ
手段45乃至第3ラッチ手段55の各データ保持手段47,53,
57とした各ラッチ回路の書き込み制御端子は合わせて周
辺装置12のライト信号端子に接続し、第1ラッチ手段45
乃至第3ラッチ手段55の各データ記憶手段46,52,56とし
たラッチ回路のデータ出力制御端子(アウトプットイネ
ーブル端子)は後述する書き込み命令形成部71のリード
信号出力端子に接続するものである。
As each data storage means and data holding means in each latch means, for example, an 8-bit parallel-in parallel-out latch circuit is used, and all data input terminals and each data holding means of the latch circuit used as each data storage means. All data output terminals of the latch circuit
The data output terminal of the latch circuit, which is connected to the data bus 15 of U10 and serves as the data storage means 46 of the first latch means 45, and the data input terminal of the latch circuit which serves as the data holding means 47, are combined into the 0th bit of the peripheral device 12. From the data terminal of the 7th bit to the data output terminal of the latch circuit used as the data storage means 52 of the second latch means 51 and the data input terminal of the latch circuit used as the data holding means 53.
3rd to the data terminal of the 15th bit to the 15th bit similarly
The data output terminal of the data storage means 56 of the latch means 55 and the data input terminal of the data holding means 57 are also connected to the data terminals of the 16th to 23rd bits to connect the first latch means 45 to the third latch means 55. Each data holding means 47, 53,
The write control terminal of each latch circuit 57 is also connected to the write signal terminal of the peripheral device 12, and the first latch means 45 is connected.
The data output control terminals (output enable terminals) of the latch circuits, which are the data storage means 46, 52, 56 of the third latch means 55, are connected to the read signal output terminals of the write command forming unit 71, which will be described later. .

【0019】従って、この接続装置は、CPU10がアド
レスデコーダ25の第1選択信号出力端子AS1のアドレ
スを内容とするアドレス信号をアドレスバス13に出力す
ると、アドレスデコーダ25が第1選択信号を出力し、制
御部31における第1作動信号出力手段31とした2個のア
ンド回路が開き、このアドレス信号を出力しつつさらに
CPU10がライト信号を出力すると、このライト信号は
第1作動信号出力手段32のアンド回路を通ってデータ記
憶部41における第1ラッチ手段45のデータ記憶手段46と
したラッチ回路に書き込み作動信号として入力され、第
1ラッチ手段45のデータ記憶手段46にCPU10がデータ
バス15へ出力している8ビットのデータを記憶させるこ
とになる。
Therefore, in this connection device, when the CPU 10 outputs an address signal containing the address of the first selection signal output terminal AS1 of the address decoder 25 to the address bus 13, the address decoder 25 outputs the first selection signal. , The two AND circuits serving as the first actuation signal output means 31 in the control unit 31 are opened, and when the CPU 10 further outputs a write signal while outputting this address signal, this write signal is sent to the first actuation signal output means 32. It is inputted as a write operation signal to the latch circuit which is the data storage means 46 of the first latch means 45 in the data storage section 41 through the AND circuit, and the CPU 10 outputs the data storage means 46 of the first latch means 45 to the data bus 15. The 8-bit data being stored will be stored.

【0020】同様に、CPU10がアドレスデコーダ25の
第2選択信号出力端子AS2のアドレスを内容とするア
ドレス信号を出力すると、アドレスデコーダ25は第2選
択信号を出力して第2作動信号出力手段35のアンド回路
を開き、CPU10がさらにライト信号を出力するとこの
ライト信号は第2作動信号出力手段35から書き込み作動
信号として出力され、第2ラッチ手段51のデータ記憶手
段52がCPU10のデータバス15に出力されているデータ
を記憶し、CPU10がアドレスデコーダ25の第3選択信
号出力端子AS3のアドレスとライト信号を出力する
と、第3作動信号出力手段38からの書き込み作動信号に
より第3ラッチ手段55のデータ記憶手段56にデータバス
15のデータが記憶される。
Similarly, when the CPU 10 outputs an address signal containing the address of the second selection signal output terminal AS2 of the address decoder 25, the address decoder 25 outputs the second selection signal and the second operation signal output means 35. When the AND circuit is opened and the CPU 10 further outputs a write signal, this write signal is output from the second operation signal output means 35 as a write operation signal, and the data storage means 52 of the second latch means 51 is output to the data bus 15 of the CPU 10. When the CPU 10 stores the output data and outputs the address and write signal of the third selection signal output terminal AS3 of the address decoder 25, the write operation signal from the third operation signal output means 38 causes the third latch means 55 to operate. Data bus to data storage means 56
15 data are stored.

【0021】このように、本実施例では、CPU10がア
ドレスデコーダ25の第1選択信号出力端子AS1乃至第
3選択信号出力端子AS3のアドレスを順次出力し、ラ
イト信号を出力しつつデータバス15にデータを3回出力
すると、このCPU10が出力した8ビットのデータはデ
ータ記憶部41の各データ記憶手段46,52,56に各々記憶さ
れ、周辺装置12に対して24ビットデータとして出力し
得るようにするものである。
As described above, in this embodiment, the CPU 10 sequentially outputs the addresses of the first selection signal output terminal AS1 to the third selection signal output terminal AS3 of the address decoder 25 and outputs the write signal to the data bus 15 while outputting the write signal. When the data is output three times, the 8-bit data output by the CPU 10 is stored in each of the data storage means 46, 52, 56 of the data storage unit 41 and can be output as 24-bit data to the peripheral device 12. It is something to do.

【0022】そして、本実施例では、アドレスデコーダ
25の第3選択信号出力端子AS3及びCPU10のライト
信号端子を書き込み命令形成部71に接続し、この書き込
み命令形成部71は、3個の直列に接続したD−フリップ
フロップ73,75,77と1個のアンド回路79で構成し、第1
段フリップフロップ73のデータ入力端子を第3選択信号
出力端子AS3に接続し、第1段フリップフロップ73の
クロック入力端子をCPU10のライト信号端子に接続
し、第2段フリップフロップ75及び第3段フリップフロ
ップ77のクロック入力端子に基準クロック信号を入力
し、第2段フリップフロップ75の出力端子と第3フリッ
プフロップ77の出力端子とをアンド回路79に接続し、こ
のアンド回路79の出力端子を周辺装置12のリード端子に
接続するように構成している。
In this embodiment, the address decoder
The third selection signal output terminal AS3 of 25 and the write signal terminal of the CPU 10 are connected to the write command forming unit 71, and the write command forming unit 71 includes three D-flip-flops 73, 75, 77 connected in series. It consists of one AND circuit 79,
The data input terminal of the stage flip-flop 73 is connected to the third selection signal output terminal AS3, the clock input terminal of the first stage flip-flop 73 is connected to the write signal terminal of the CPU 10, and the second stage flip-flop 75 and the third stage are connected. The reference clock signal is input to the clock input terminal of the flip-flop 77, the output terminal of the second-stage flip-flop 75 and the output terminal of the third flip-flop 77 are connected to the AND circuit 79, and the output terminal of this AND circuit 79 is connected. It is configured to be connected to the lead terminal of the peripheral device 12.

【0023】従って、この書き込み命令形成部71は、ア
ドレスデコーダ25からの第3選択信号が入力されCPU
10からライト信号が入力されると第1段フリップフロッ
プ73の出力を反転させ、基準クロック信号に基づいて第
2段フリップフロップ75及び第3段のフリップフロップ
77の出力を順次反転させることにより基準クロック信号
のタイミングに合わせた基準クロック信号の1周期分の
書き込み命令信号としてリード信号をリード信号出力端
子から周辺装置12に出力し、このリード信号は同時にデ
ータ記憶部41におけるデータ記憶手段46,52,56のデータ
出力制御端子にも出力するものである。
Therefore, the write command forming unit 71 receives the third selection signal from the address decoder 25 and receives the CPU.
When a write signal is input from 10, the output of the first-stage flip-flop 73 is inverted, and the second-stage flip-flop 75 and the third-stage flip-flop are based on the reference clock signal.
By sequentially inverting the output of 77, a read signal is output from the read signal output terminal to the peripheral device 12 as a write command signal for one cycle of the reference clock signal synchronized with the timing of the reference clock signal. The data is also output to the data output control terminals of the data storage means 46, 52, 56 in the storage unit 41.

【0024】即ち、CPU10がデータ記憶部41の第3ラ
ッチ手段55にデータを記憶させたとき、この接続装置は
リード信号を周辺装置12に出力し、24ビットのデータ
を周辺装置12に読み込ませるものである。また、この接
続装置におけるデータ記憶部41のデータ保持手段47,53,
57とした各ラッチ回路は、前述のように、その読み込み
制御端子を周辺装置12のライト信号端子に接続してい
る。
That is, when the CPU 10 stores data in the third latch means 55 of the data storage unit 41, this connecting device outputs a read signal to the peripheral device 12 and causes the peripheral device 12 to read 24-bit data. It is a thing. Further, data holding means 47, 53, of the data storage unit 41 in this connection device,
As described above, each latch circuit 57 has its read control terminal connected to the write signal terminal of the peripheral device 12.

【0025】従って、周辺装置12がライト信号を出力す
ると、このときに周辺装置12が出力しているデータの下
位8ビットを第1ラッチ手段45のデータ保持手段47が読
み込み、中位8ビットデータを第2ラッチ手段51のデー
タ保持手段53が読み込み、さらに、上位8ビットのデー
タを第3ラッチ手段55のデータ保持手段57が読み込んで
記憶することになる。
Therefore, when the peripheral device 12 outputs a write signal, the lower 8 bits of the data output by the peripheral device 12 at this time are read by the data holding means 47 of the first latch means 45, and the middle 8-bit data is read. Is read by the data holding means 53 of the second latch means 51, and the upper 8 bits of data are read and stored by the data holding means 57 of the third latch means 55.

【0026】そして、CPU10がアドレスデコーダ25に
対して第1選択信号出力端子AS1のアドレス信号を出
力し、且つ、リード信号を出力するとアドレスデコーダ
25は第1選択信号を出力して第1作動信号出力手段32の
アンド回路を開き、リード信号を第1作動信号出力手段
32のアンド回路を通過させて読み出し作動信号として第
1作動信号出力手段32から出力させ、この読み出し作動
信号により第1ラッチ手段45のデータ保持手段47とした
ラッチ回路から8ビットのデータをデータバス15に出力
させてこのデータをCPU10に読み込ませることができ
るものである。
When the CPU 10 outputs the address signal of the first selection signal output terminal AS1 to the address decoder 25 and outputs the read signal, the address decoder
25 outputs the first selection signal to open the AND circuit of the first actuation signal output means 32 and outputs the read signal to the first actuation signal output means.
The first operation signal output means 32 outputs it as a read operation signal through the AND circuit of 32, and the read operation signal outputs 8-bit data from the latch circuit which is the data holding means 47 of the first latch means 45. This data can be output to 15, and this data can be read by the CPU 10.

【0027】同様に、第2選択信号出力端子AS2のア
ドレスを出力してリード信号をCPU10が出力すれば、
第2作動信号出力手段35から読み出し作動信号が出力さ
れ、第2ラッチ手段51から8ビットデータがCPU10に
読み込むことができ、第3選択信号出力端子AS3のア
ドレスとリード信号とを出力して第3ラッチ手段55から
の8ビットデータを読み込み、24ビットのデータをC
PU10に取り込ませることができる。
Similarly, if the address of the second selection signal output terminal AS2 is output and the read signal is output by the CPU 10,
A read operation signal is output from the second operation signal output means 35, 8-bit data can be read from the second latch means 51 into the CPU 10, and an address and a read signal of the third selection signal output terminal AS3 are output to output the first operation signal. The 8-bit data from the 3 latch means 55 is read, and the 24-bit data is C
It can be incorporated into PU10.

【0028】さらに、本実施例は、アドレスデコーダ25
の第3選択信号出力端子AS3や第4選択信号出力端子
AS4、及びCPU10のリード信号端子や周辺装置12の
ライト信号端子に接続されるデータ保持記憶部61を設け
ている。このデータ保持記憶部61は、2個のアンド回路
62,63と1個のセットリセットフリップフロップ65及び
スリーステートバッファ67を用い、第1アンド回路62の
一入力端子と第2アンド回路63の一入力端子とを合わせ
てCPU10のリード信号端子に、第1アンド回路62の他
の入力端子はアドレスデコーダ25の第3選択信号出力端
子AS3に、第2アンド回路63の他の入力端子はアドレ
スデコーダ25の第4選択信号出力端子AS4に接続し、
第1アンド回路62の出力端子をフリップフロップ65のリ
セット端子に、第2アンド回路63の出力端子をスリース
テートバッファ67の制御端子に接続し、さらに、フリッ
プフロップ65のセット端子を周辺装置12のライト信号端
子に、フリップフロップ65の信号出力端子を周辺装置12
のレディー端子に接続するとともに、スリーステートバ
ッファ67を介してCPU10のデータバス15中の所定の信
号線に接続するものである。
Further, in this embodiment, the address decoder 25
A data holding / storage unit 61 connected to the third selection signal output terminal AS3, the fourth selection signal output terminal AS4, the read signal terminal of the CPU 10 and the write signal terminal of the peripheral device 12 is provided. The data holding / storage unit 61 includes two AND circuits.
62, 63 and one set / reset flip-flop 65 and three-state buffer 67 are used, and one input terminal of the first AND circuit 62 and one input terminal of the second AND circuit 63 are combined to be a read signal terminal of the CPU 10, The other input terminal of the first AND circuit 62 is connected to the third selection signal output terminal AS3 of the address decoder 25, and the other input terminal of the second AND circuit 63 is connected to the fourth selection signal output terminal AS4 of the address decoder 25,
The output terminal of the first AND circuit 62 is connected to the reset terminal of the flip-flop 65, the output terminal of the second AND circuit 63 is connected to the control terminal of the three-state buffer 67, and the set terminal of the flip-flop 65 is connected to the peripheral device 12. The signal output terminal of the flip-flop 65 is connected to the peripheral device 12 as the write signal terminal.
And a predetermined signal line in the data bus 15 of the CPU 10 via the three-state buffer 67.

【0029】従って、このデータ保持記憶部61は、周辺
装置12からライト信号が出力されたとき、すなわち、デ
ータ記憶部41のデータ保持手段47が周辺装置12からのデ
ータを記憶したとき、セットリセットフリップフロップ
65をセット状態としてスリーステートバッファ67に記憶
信号を出力するものである。そしてCPU10がアドレス
デコーダ25の第4選択信号出力端子AS4のアドレスを
出力し、且つ、リード信号を出力すると、アドレスデコ
ーダ25がデータ保持記憶部61を独自に接続した第4選択
信号出力端子AS4から第4選択信号を出力して第2ア
ンド回路63を開き、リード信号を第2アンド回路63を通
過させてスリーステートバッファ67の制御端子に入力
し、スリーステートバッファ67を導通状態としてフリッ
プフロップ65からの記憶信号をデータバス15の所定のビ
ットラインに出力させるものである。
Therefore, the data holding / storage unit 61 sets / resets when the write signal is output from the peripheral device 12, that is, when the data holding means 47 of the data storage unit 41 stores the data from the peripheral device 12. flip flop
The storage signal is output to the three-state buffer 67 with 65 set. When the CPU 10 outputs the address of the fourth selection signal output terminal AS4 of the address decoder 25 and outputs the read signal, the address decoder 25 outputs from the fourth selection signal output terminal AS4 to which the data holding / storage unit 61 is independently connected. The fourth selection signal is output to open the second AND circuit 63, the read signal is passed through the second AND circuit 63, and is input to the control terminal of the three-state buffer 67 to make the three-state buffer 67 conductive and the flip-flop 65. The storage signal from is output to a predetermined bit line of the data bus 15.

【0030】従って、CPU10は、アドレスデコーダ25
の第4選択信号出力端子AS4のアドレスを出力してデ
ータバス15のデータを読み込めば、記憶信号が出力され
ているか否かによりデータ記憶部41のデータ保持手段47
に周辺装置12からのデータが書き込まれたか否かを検知
することができるものである。そして、このデータ保持
記憶部61におけるフリップフロップ65のリセット端子に
接続した第1アンド回路62の入力端子は、アドレスデコ
ーダ25の第3選択信号出力端子AS3とCPU10のリー
ド信号端子とに接続されている故、CPU10がアドレス
デコーダ25の第3選択信号出力端子AS3のアドレスを
内容とするアドレス信号とリード信号とを出力したと
き、すなわち、CPU10がデータ記憶部41の第3ラッチ
手段55のデータを読み込んだとき、このCPU10からの
リード信号が第1アンド回路62を通ってフリップフロッ
プ65のリセット端子に入力され、フリップフロップ65を
リセットして保存状態を解除して記憶信号の出力停止を
するものである。
Therefore, the CPU 10 has the address decoder 25.
When the address of the fourth selection signal output terminal AS4 is output and the data of the data bus 15 is read, the data holding means 47 of the data storage unit 41 depends on whether the storage signal is output.
It is possible to detect whether or not the data from the peripheral device 12 has been written in. The input terminal of the first AND circuit 62 connected to the reset terminal of the flip-flop 65 in the data holding / storage unit 61 is connected to the third selection signal output terminal AS3 of the address decoder 25 and the read signal terminal of the CPU 10. Therefore, when the CPU 10 outputs the address signal and the read signal having the address of the third selection signal output terminal AS3 of the address decoder 25, that is, the CPU 10 outputs the data of the third latch means 55 of the data storage unit 41. When read, the read signal from the CPU 10 is input to the reset terminal of the flip-flop 65 through the first AND circuit 62, resets the flip-flop 65, releases the storage state, and stops the output of the storage signal. Is.

【0031】なお、この記憶信号は、周辺装置12のレデ
ィー端子にも出力される故、周辺装置12に対してデータ
レディー信号として働き、データ記憶部41に記憶した周
辺装置12からのデータがCPU10に取り込まれたとき、
データ保持記憶部61からのデータレディー信号を出力し
てデータが取り込まれたことを周辺装置12に知らせるも
のである。
Since this storage signal is also output to the ready terminal of the peripheral device 12, it acts as a data ready signal for the peripheral device 12, and the data from the peripheral device 12 stored in the data storage unit 41 is stored in the CPU 10. When captured by
The data ready signal from the data holding / storage unit 61 is output to inform the peripheral device 12 that the data has been taken in.

【0032】このように、本実施例に係るデータバス15
の接続装置は、CPU10が第1選択信号出力端子AS1
乃至第3選択信号出力端子AS3のアドレスを順次指定
するアドレス信号を出力するようにしてデータバス15に
データを出力してライト信号を出力すると、データ記憶
部41がこのCPU10が出力したデータを記憶し、データ
記憶部41における第3ラッチ手段55が3回目のデータを
記憶すると書き込み命令形成部71から書き込み命令信号
としてリード信号が周辺装置12に出力され、第1ラッチ
手段45乃至第3ラッチ手段55に記憶された24ビットの
データを周辺装置12に取り込ませることができる。
As described above, the data bus 15 according to the present embodiment.
In the connection device, the CPU 10 has the first selection signal output terminal AS1.
Through outputting data to the data bus 15 and outputting a write signal by outputting an address signal for sequentially designating the address of the third selection signal output terminal AS3, the data storage unit 41 stores the data output by the CPU 10. Then, when the third latch means 55 in the data storage unit 41 stores the third data, a read signal is output from the write command forming unit 71 to the peripheral device 12 as a write command signal, and the first latch unit 45 to the third latch unit 45. The 24-bit data stored in 55 can be taken into the peripheral device 12.

【0033】そして、周辺装置12がデータを出力してラ
イト信号を出力すると、データ記憶部41の各データ保持
手段47,53,57が周辺装置12からデータを読み込み、且
つ、データ保持記憶部61のフリップフロップ65は保存状
態となって周辺装置12にデータレディー信号の出力を停
止し、CPU10が第4選択信号出力端子AS4のアドレ
スを出力してリード信号を出力したとき、スリーステー
トバッファ67を介して記憶信号をCPU10のデータバス
15にデータ保持記憶部61から出力してCPU10に周辺装
置12からのデータが当該接続装置に取り込んでいること
を知らせる。
When the peripheral device 12 outputs data and outputs a write signal, the data holding means 47, 53, 57 of the data storage unit 41 reads the data from the peripheral device 12 and the data holding storage unit 61. When the CPU 10 outputs the read signal by outputting the address of the fourth selection signal output terminal AS4 and the CPU 10 outputs the read ready signal to the peripheral device 12, the flip-flop 65 stops storing the data ready signal. Store memory signals via CPU10 data bus
Data 15 is output from the data storage unit 61 to inform the CPU 10 that the data from the peripheral device 12 has been taken into the connection device.

【0034】そして、CPU10が第1選択信号出力端子
AS1乃至第3選択信号出力端子AS3の各アドレス信号
を出力してリード信号を出力すると、データ記憶部41の
第1ラッチ手段45乃至第3ラッチ手段55から順次データ
をデータバス15に出力させてCPU10はこのデータを読
み込み、第3選択信号出力端子AS3のアドレスとリー
ド信号を出力して第3ラッチ手段55からデータを読み込
んだとき、データ保持記憶部61ではフリップフロップ65
がリセット状態とされて周辺装置12にデータレディー信
号を出力し、データ記憶部41のデータがCPU10に取り
込まれたことを周辺装置12に伝えるものである。
When the CPU 10 outputs the read signals by outputting the address signals of the first selection signal output terminal AS1 to the third selection signal output terminal AS3, the first latch means 45 to the third latch of the data storage unit 41 are output. When data is sequentially output from the means 55 to the data bus 15 and the CPU 10 reads this data and outputs the address and read signal of the third selection signal output terminal AS3 to read the data from the third latch means 55, the data is held The flip-flop 65 in the storage unit 61
Is reset and outputs a data ready signal to the peripheral device 12 to inform the peripheral device 12 that the data in the data storage unit 41 has been taken into the CPU 10.

【0035】なお上記実施例は、アドレスデコーダ25の
選択信号出力端子の数を4個とし、この内の3個を3個
の作動信号出力手段に接続しているも、アドレスデコー
ダ25の選択信号出力端子の数、及びこれに合わせた作動
信号出力手段の数とラッチ手段の数は、周辺装置12で取
り扱うデータのビット数に合わせて適宜増減させ、8ビ
ットCPU10と16ビット周辺装置12とを接続する場合
は、作動信号出力手段及びラッチ手段を2個とし、ま
た、8ビットCPU10と32ビット周辺装置12とを接続
するときは、4個の作動信号出力手段及びラッチ手段を
設け、アドレスデコーダ25の選択信号出力端子の数を5
個とすれば足りるものである。
In the above embodiment, the number of selection signal output terminals of the address decoder 25 is four, and three of these are connected to the three operation signal output means. The number of output terminals, and the number of operation signal output means and the number of latch means corresponding thereto are increased or decreased in accordance with the number of bits of data handled by the peripheral device 12, and the 8-bit CPU 10 and the 16-bit peripheral device 12 are connected. When connecting, the operation signal output means and the latch means are two, and when connecting the 8-bit CPU 10 and the 32-bit peripheral device 12, four operation signal output means and the latch means are provided to provide an address decoder. Number of 25 select signal output terminals is 5
It is enough to have individual pieces.

【0036】また、CPU10や周辺装置12の種類によ
り、制御信号がハイレベルをアクティブとするかローレ
ベルをアクティブとするかにより、当該接続装置におけ
る論理ゲートは適宜否定出力型又は否定入力型の素子を
用いるか、又は、インバータを挿入して信号の反転を行
うことはいうまでもない。
Depending on the type of the CPU 10 and the peripheral device 12, the logic gate in the connection device is appropriately a negative output type or a negative input type device depending on whether the control signal activates the high level or the low level. It is needless to say that the signal is inverted by using, or by inserting an inverter.

【0037】[0037]

【発明の効果】本発明に係るデータバスの接続装置は、
アドレスデコーダ、制御部、データ記憶部で構成されて
CPUが選択信号出力端子のアドレス信号を出力してラ
イト信号を出力するとデータ記憶部がデータバスに出力
されているデータを記憶し、データ記憶部の特定のラッ
チ手段がデータ記憶したとき、書き込み命令形成部が周
辺装置への書き込み命令信号を出力して周辺装置にデー
タ記憶部のデータを読み込ませ、又、周辺装置からライ
ト信号が出力されると周辺装置の出力するデータを1回
でデータ記憶部に保持し、且つ、データ保持記憶回路が
セット状態とされ、このデータ保持記憶回路は周辺装置
へのデータレディー信号の出力を停止してデータの再出
力を禁止し、データ保持記憶回路にのみ接続される選択
信号出力端子のアドレス、言い換えれるとデータ保持記
憶部のアドレスをCPUが出力し且つリード信号を出力
すると、データ保持記憶手段は記憶信号をデータバスに
出力してデータ記憶部にデータが取り込まれていること
をCPUに伝え、CPUがアドレスデコーダの所要の選
択信号出力端子のアドレスを出力してリード信号を出力
すると、順次データ記憶部からCPUが出力したアドレ
スに応じたラッチ手段のデータをデータバスに出力して
CPUに取り込ませるものである。
The data bus connection device according to the present invention comprises:
The data storage unit is composed of an address decoder, a control unit, and a data storage unit. When the CPU outputs the address signal of the selection signal output terminal and outputs the write signal, the data storage unit stores the data output to the data bus. When the specific latch means stores data, the write command forming unit outputs a write command signal to the peripheral device to cause the peripheral device to read the data in the data storage unit, and the peripheral device outputs a write signal. And the data output from the peripheral device are held in the data storage unit at one time, and the data holding storage circuit is set, and the data holding storage circuit stops the output of the data ready signal to the peripheral device and outputs the data. Of the selection signal output terminal that is connected only to the data holding / storage circuit, in other words, the address of the data holding / storage section is prohibited. When the PU outputs and the read signal is output, the data holding / storage means outputs the storage signal to the data bus to inform the CPU that the data is stored in the data storage unit, and the CPU outputs the required selection signal of the address decoder. When the address of the output terminal is output and the read signal is output, the data of the latch means corresponding to the address output by the CPU from the data storage unit is sequentially output to the data bus and captured by the CPU.

【0038】このように、CPUがデータ記憶部にデー
タを書き込み、データ記憶部にデータが揃うと書き込み
命令形成部により自動的に周辺装置にこのデータを読み
込ませるものであるから、CPUから出力するデータの
ビット数が周辺装置の取り扱うビット数に達する回数だ
けデータの出力をCPUが行うと自動的に周辺装置にデ
ータを読み込ませるものであって、CPUのデータバス
よりもビット数の多い周辺装置に対して容易にデータを
送ることができ、また、周辺装置がデータを出力したと
きは、このデータをCPUの取り扱うビット数に分割し
てデータ記憶部が保持し、この状態をデータ保持記憶部
で記憶して周辺装置にはデータの重ね書きを禁止させ、
CPUがデータ保持記憶部のアドレスを出力してデータ
保持記憶回路の状態を見に来たときは記憶信号をデータ
バスに出力してCPUにデータを取り込んでいることを
知らせるものであり、CPUのバス幅よりも大きいバス
幅のデータバスを有する周辺装置へのアクセスを容易と
し、データ変換に要するプログラムを簡易とすることが
可能であり、且つ、データ転送のためのプログラムのス
テップ数を減少させることにより高速処理を可能とする
利点を有するものである。
As described above, the CPU writes the data in the data storage unit, and when the data is stored in the data storage unit, the write command forming unit automatically causes the peripheral device to read the data. Therefore, the data is output from the CPU. When the CPU outputs data as many times as the number of bits of the data handled by the peripheral device, the data is automatically read by the peripheral device, and the peripheral device has more bits than the data bus of the CPU. Data can be easily sent to the CPU, and when the peripheral device outputs the data, the data storage unit holds the data by dividing the data into the number of bits handled by the CPU. Memorize with, and prohibit peripheral devices from overwriting data,
When the CPU outputs the address of the data holding / storage section to see the state of the data holding / storage circuit, it outputs a storage signal to the data bus to inform the CPU that the data is being fetched. A peripheral device having a data bus having a bus width larger than the bus width can be easily accessed, a program required for data conversion can be simplified, and the number of program steps for data transfer can be reduced. This has the advantage of enabling high-speed processing.

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

【図1】本発明に係るデータバス接続装置の回路構成例
を示す図。
FIG. 1 is a diagram showing a circuit configuration example of a data bus connection device according to the present invention.

【図2】本発明に係るデータバス接続装置の回路構成の
一部詳細を示す図。
FIG. 2 is a diagram showing a partial detailed circuit configuration of a data bus connection device according to the present invention.

【図3】従来のデータバス接続装置の一例を示す図。FIG. 3 is a diagram showing an example of a conventional data bus connection device.

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

10 中央演算処理装置(CPU) 12 周辺装置 20 データバス接続装置 25 アドレスデ
コーダ 31 制御部 32 第1作動信
号出力手段 35 第2作動信号出力手段 38 第3作動信
号出力手段 41 データ記憶部 45 第1ラッチ
手段45 46 データ記憶手段 47 データ保持
手段 51 第2ラッチ手段 52 データ記憶
手段 53 データ保持手段 55 第3ラッチ
手段 61 データ保持記憶部 71 書き込み命
令形成部 83 デコーダ 85 PIO
10 Central Processing Unit (CPU) 12 Peripheral Device 20 Data Bus Connection Device 25 Address Decoder 31 Control Unit 32 First Actuation Signal Output Means 35 Second Actuation Signal Output Means 38 Third Actuation Signal Output Means 41 Data Storage Unit 45 First Latching means 45 46 Data storing means 47 Data holding means 51 Second latching means 52 Data storing means 53 Data holding means 55 Third latching means 61 Data holding and storing section 71 Write command forming section 83 Decoder 85 PIO

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央演算処理装置のアドレスバスに接続
されて所定のアドレス信号により複数個の選択信号出力
端子の何れか一つに選択信号を出力するアドレスデコー
ダと、 複数個の作動信号出力手段で構成され、各作動信号出力
手段は、各々前記アドレスデコーダの別個の選択信号出
力端子に接続されるとともに、各作動信号出力手段は、
中央演算処理装置のリード信号端子及びライト信号端子
に接続され、各作動信号出力手段は選択信号が入力され
ているときにライト信号が入力されると書き込み作動信
号を出力し、選択信号が入力されているときにリード信
号が入力されると読み出し作動信号を出力する制御部
と、 作動信号出力手段と同数個のラッチ手段で構成され、各
ラッチ手段は中央演算処理装置が出力するビット数に応
じたビット数のデータを記憶するデータ記憶手段とデー
タ保持手段とを一組として備え、データ記憶手段のデー
タ出力端子及びデータ保持手段のデータ入力端子は合わ
せて各ラッチ手段毎に周辺装置の異なるデータ端子に接
続され、且つ、各ラッチ手段におけるデータ記憶手段の
データ入力端子及びデータ保持手段のデータ出力端子は
ともに中央演算処理装置のデータバスに接続され、各ラ
ッチ手段は各々前記制御部の作動信号出力手段に接続さ
れ、ラッチ手段におけるデータ記憶手段の読み込み制御
端子に前記書き込み作動信号が、データ保持手段のデー
タ出力制御端子に読み出し作動信号が入力され、さらに
全てのデータ保持手段の読み込み制御端子は周辺装置の
ライト信号端子に接続され、全てのデータ記憶手段のデ
ータ出力制御端子は書き込み命令形成部のリード信号出
力端子に接続されているデータ記憶部と、 周辺装置のライト信号端子、及び、前記制御部における
作動信号出力手段に接続される前記アドレスデコーダの
選択信号出力端子の内の一つと独自の選択信号出力端子
と、更に中央演算処理装置のリード信号端子とに接続さ
れ、周辺装置からライト信号が入力されると周辺装置へ
のデータレディー信号の出力を停止する保存状態となっ
てこの保存状態を維持し、保存状態のときに前記独自の
選択信号出力端子からの選択信号が入力されると中央演
算処理装置のデータバスに記憶信号を出力し、作動信号
出力手段と共通の選択信号が入力され、且つ、このとき
中央演算処理装置からのリード信号が入力されると保存
状態を解除するとともに周辺装置へのデータレディー信
号を出力するデータ保持記憶部と、 前記データ保持記憶部及び作動信号出力手段が接続され
たアドレスデコーダの選択信号出力端子と、中央演算処
理装置のライト信号端子とに接続され、選択信号が入力
されているときにライト信号が入力されると周辺装置に
リード信号を出力する書き込み命令形成部と、 を有することを特徴とするビット数の異なるデータバス
の接続装置。
1. An address decoder connected to an address bus of a central processing unit to output a selection signal to any one of a plurality of selection signal output terminals according to a predetermined address signal, and a plurality of operation signal output means. And each actuation signal output means is connected to a separate selection signal output terminal of the address decoder, and each actuation signal output means is
Connected to the read signal terminal and the write signal terminal of the central processing unit, each operation signal output means outputs a write operation signal when the write signal is input while the selection signal is input, and the selection signal is input. When a read signal is input while the read signal is input, the control unit outputs a read operation signal, and the operation signal output unit is composed of the same number of latch units. Each latch unit depends on the number of bits output by the central processing unit. A data storage means for storing data of a different number of bits and a data holding means as a set, and the data output terminal of the data storage means and the data input terminal of the data holding means are combined and the data of the peripheral device different for each latch means. The data input terminal of the data storage means and the data output terminal of the data holding means in each latch means are both connected to the central processing unit. The latch means is connected to the data bus of the processor, and each latch means is connected to the operation signal output means of the control section. The write operation signal is supplied to the read control terminal of the data storage means of the latch means and the data output control of the data holding means is performed. The read operation signal is input to the terminals, the read control terminals of all the data holding means are connected to the write signal terminals of the peripheral device, and the data output control terminals of all the data storage means are the read signal output terminals of the write command forming unit. Selected from the data storage unit connected to the peripheral device, the write signal terminal of the peripheral device, and the selection signal output terminal of the address decoder connected to the operation signal output unit of the control unit, and a unique selection signal output terminal. When the write signal is input from the peripheral device, it is connected to the read signal terminal of the central processing unit. When a selection signal is input from the unique selection signal output terminal while in the storage state in which the output of the data ready signal to the peripheral device is stopped and this storage state is maintained, the central processing unit of the central processing unit is When a storage signal is output to the data bus, a selection signal common to the operation signal output means is input, and a read signal from the central processing unit is input at this time, the storage state is released and data to the peripheral device is released. A data holding storage unit for outputting a ready signal, a selection signal output terminal of an address decoder to which the data holding storage unit and operation signal output means are connected, and a write signal terminal of a central processing unit are connected, and a selection signal is And a write command forming unit that outputs a read signal to the peripheral device when a write signal is input while the bit number is included. Connecting device of different data bus.
JP33392393A 1993-12-28 1993-12-28 Data bus connection device with different number of bits Expired - Fee Related JP2760742B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33392393A JP2760742B2 (en) 1993-12-28 1993-12-28 Data bus connection device with different number of bits

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33392393A JP2760742B2 (en) 1993-12-28 1993-12-28 Data bus connection device with different number of bits

Publications (2)

Publication Number Publication Date
JPH07200464A true JPH07200464A (en) 1995-08-04
JP2760742B2 JP2760742B2 (en) 1998-06-04

Family

ID=18271484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33392393A Expired - Fee Related JP2760742B2 (en) 1993-12-28 1993-12-28 Data bus connection device with different number of bits

Country Status (1)

Country Link
JP (1) JP2760742B2 (en)

Also Published As

Publication number Publication date
JP2760742B2 (en) 1998-06-04

Similar Documents

Publication Publication Date Title
JPH0612863A (en) Dual port DRAM
JP2760742B2 (en) Data bus connection device with different number of bits
JPS6019538B2 (en) Program writing method
JPH05166391A (en) Memory device
JP2634609B2 (en) Data transfer device
JPH01147648A (en) Data memory device
JPH01239485A (en) Large-scale integrated circuit
JPS6431253A (en) Data transferring system
JPH0567035A (en) Data alignment method in DMA transfer
JPH01171191A (en) Storage element with arithmetic function
JPH01119823A (en) First-in first-out storage device
JP3116361B2 (en) Color pallet equipment
KR890003236Y1 (en) Write and Lead Circuit of Data Conversion Values
JPH05120879A (en) Semiconductor memory device
JPH01233515A (en) Information processor
JPS6126160A (en) Simultaneous processing circuit for data reading/writing
JPH09147549A (en) Memory device with programmable logic circuit
JPH0581166A (en) Data transfer control device and system with this device
JPH07105171A (en) Data processing device
JPS61128342A (en) Serial scan control system
JPH01126744A (en) Data processor
JPH07192454A (en) Semiconductor memory and image processing device
JPH01219930A (en) Interrupt control circuit device for indirect address system
JPH0236483A (en) Memory device for picture
JPS62175852A (en) Register access device

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees