JP2002278920A - Device access system and electronic unit - Google Patents

Device access system and electronic unit

Info

Publication number
JP2002278920A
JP2002278920A JP2001080594A JP2001080594A JP2002278920A JP 2002278920 A JP2002278920 A JP 2002278920A JP 2001080594 A JP2001080594 A JP 2001080594A JP 2001080594 A JP2001080594 A JP 2001080594A JP 2002278920 A JP2002278920 A JP 2002278920A
Authority
JP
Japan
Prior art keywords
input
state
output
cpu
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001080594A
Other languages
Japanese (ja)
Inventor
Naohito Miura
尚人 三浦
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP2001080594A priority Critical patent/JP2002278920A/en
Publication of JP2002278920A publication Critical patent/JP2002278920A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To permit a CPU to efficiently access a plurality of peripheral devices. SOLUTION: In a device access system, the CPU 23 accesses a plurality of devices 26 connected to a data bus Bd and an address bus Ba. A plurality of input/output buffers 27 which can be set into a state where the signals of the respective bit lines of the data bus Bd are taken in, a state where the signals are outputted to the respective bit lines or a state where the signals are separated from the bit lines and an input/output controller 28 which independently controls the state of a plurality of the input/output buffers 27 in a bit unit in accordance with an address signal outputted from the CPU 23 to the address bus Ba are installed in each device 26. The data transmission direction of the data bus Bd can arbitrarily be set in the bit unit by the address signal outputted from the CPU 23 to the address bus Ba.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、CPUが周辺の複
数のデバイスを効率的にアクセスするための技術に関す
る。
[0001] 1. Field of the Invention [0002] The present invention relates to a technique for a CPU to efficiently access a plurality of peripheral devices.

【0002】[0002]

【従来の技術】例えば測定装置や通信装置等の電子機器
では、その測定や通信等に関わる複数のデバイス(ユニ
ット)に対する制御を、CPU、ROM、RAM等から
なるマイクロコンピュータによって行っている。
2. Description of the Related Art For example, in electronic equipment such as a measuring device and a communication device, control of a plurality of devices (units) related to the measurement and communication is performed by a microcomputer including a CPU, a ROM, a RAM, and the like.

【0003】図8は、このような電子機器におけるCP
U1から複数nのデバイス10、10、……、10
n−1へアクセスするための構成を示している。
FIG. 8 shows a CP in such an electronic device.
From U1, a plurality of n devices 10 0 , 10 1 ,..., 10
3 shows a configuration for accessing n-1 .

【0004】ここで、CPU1のkビットのデータバス
Bdは各デバイス10〜10n− に並列に接続され
ており、CPU1のmビットのアドレスバスBaのう
ち、上位側のhビットはデバイス選択回路15に接続さ
れている。
[0004] Here, the data bus Bd of k bits of CPU1 is connected in parallel to each device 10 0 to 10 n-1, of the address bus Ba m bits of CPU1, h bits of upper devices It is connected to the selection circuit 15.

【0005】デバイス選択回路15は、デバイス10
〜10n−1のうち、アドレス信号Aの上位hビットの
データ値iで決まるデバイス10に選択信号Csを出
力する。
[0005] Device selection circuit 15, the device 10 0
10 of n-1, and outputs a selection signal Cs to the device 10 i which is determined by the upper h-bit data value i of the address signal A.

【0006】また、CPU1は、コントロールバスBc
を介してリードライト信号R/Wを各デバイス10
10n−1に出力する。
Further, the CPU 1 controls the control bus Bc.
0 Each device 10 a read-write signal R / W through -
Output to 10 n-1 .

【0007】各デバイス10〜10n−1には、デー
タバスBdの各ビットラインb(0)〜b(k−1)に
それぞれ接続された入出力バッファ11(0)〜11
(k−1)、11(0)〜11(k−1)、…
…、11n−1(0)〜11 −1(k−1)が設けら
れている。
[0007] Each device 10 0 ~10 n-1, the data bus each bit line b (0) of Bd ~b (k-1) output buffer 11 connected respectively to the 0 (0) to 11
0 (k-1), 11 1 (0) to 11 1 (k-1), ...
, 11 n-1 (0) to 11 n -1 (k-1) are provided.

【0008】また、各デバイス10〜10n−1
は、デバイス選択回路15から選択信号Csの有無、コ
ントロールバスBcを介して入力されるリードライト信
号R/Wの状態に応じて、対応する全ての入出力バッフ
ァを、データバスBdからデータを取り込む状態(I
N)、データバスBdへデータを出力する状態(OU
T)、データバスBdから切り離されたハイインピーダ
ンス状態(Z)のいずれかに設定する入出力コントロー
ラ12〜12n−1がそれぞれ設けられている。
[0008] Each device 10 0 ~10 n-1, the presence or absence of the selection signal Cs from the device selection circuit 15, in accordance with the state of the read-write signal R / W which is input through the control bus Bc, corresponding All the input / output buffers to be loaded with data from the data bus Bd (I
N), a state of outputting data to the data bus Bd (OU
T), output controller 12 0 ~12 n-1 to be set in one of the data bus Bd high impedance state disconnected from (Z), respectively.

【0009】上記のような構成を有する電子機器で、例
えばCPU1からデバイス10に対して測定や通信に
必要なパラメータ等のデータDを通知する場合、CPU
1からアドレスバスBaに対して上位側pビットのデー
タ値iが0となるアドレス信号Aを出力し、データバス
Bdに対してデータ信号Dを出力し、さらにリードライ
ト信号R/Wをライト状態にする。
[0009] In the electronic apparatus having the above configuration, for example, when notifying the data D parameters necessary for measurement and communication from CPU1 to the device 10 0, CPU
From 1 to the address bus Ba, an address signal A for which the data value i of the high-order p bits becomes 0 is output, a data signal D is output to the data bus Bd, and the read / write signal R / W is in a write state. To

【0010】データ値iが0のpビットの信号を受けた
デバイス選択回路15は、デバイス10に対して選択
信号Csを出力する。
[0010] Device selection circuit 15 where the data values i receives a signal of p bits of 0, and outputs a selection signal Cs with respect to device 10 0.

【0011】この選択信号Csを受けたデバイス10
の入出力コントローラ12は、リードライト信号R/
Wがライト状態であることを確認して、対応する全ての
入出力バッファ11(0)〜11(k−1)をデー
タ取り込み状態(IN)状態に設定する。
[0011] The device 10 0 which has received the selection signal Cs
Input / output controller 120 of read / write signal R /
W is confirmed to be write state, the corresponding all input and output buffers 11 to 0 (0) to 11 sets 0 to (k-1) to the data acquisition state (IN) state.

【0012】また、選択信号Csを受けていない他のデ
バイス10〜10n−1の入出力コントローラ12
〜12n−1は、対応する全ての入出力バッファ11
(0)〜11(k−1)、11(0)〜11(k
−1)、……、11n−1(0)〜11n−1(k−
1)をハイインピーダンス状態(Z)に設定する。
[0012] Furthermore, the input-output controller 12 1 of the other device 10 1 to 10 n-1 not receiving the selection signal Cs
-12n -1 are all the corresponding input / output buffers 11 1
(0) ~11 1 (k- 1), 11 2 (0) ~11 2 (k
−1),..., 11 n−1 (0) to 11 n−1 (k−
1) is set to a high impedance state (Z).

【0013】これによって、他のデバイス10〜10
n−1はデータバスBdから切り離された状態となり、
CPU1からデータバスBdへ出力されたデータ信号D
がデバイス10に取り込まれる。
Thus, the other devices 10 1 to 10 1
n-1 is disconnected from the data bus Bd,
Data signal D output from CPU 1 to data bus Bd
There is incorporated into the device 10 0.

【0014】なお、リードライト信号R/Wをリード状
態にすれば、デバイス10の入出力コントローラ12
が、全ての入出力バッファ11(0)〜11(k−
1)をデータ出力状態(OUT)状態に設定して、デバ
イス10内のデータをCPU1に通知することができ
る。
[0014] Incidentally, when the read write signal R / W to the read state, the device 10 0 output controller 12
There, all of the input and output buffer 11 0 (0) ~11 0 ( k-
1) Set the data output state (OUT) state, it is possible to notify the data of the device 10 in the 0 to CPU 1.

【0015】[0015]

【発明が解決しようとする課題】しかしながら、上記し
たように、アドレス信号でデバイスの一つを選択して、
データの授受を行う従来のデバイスアクセス方式では、
たとえ複数のデバイスに同種の制御を行う場合であって
も、各デバイスをアドレス信号で一つずつ順番にアクセ
スしてデータのやりとりを行わなければならず、効率的
な制御が行えないという問題があった。
However, as described above, one of the devices is selected by the address signal,
In the conventional device access method for exchanging data,
Even if the same type of control is performed for a plurality of devices, data must be exchanged by sequentially accessing each device one by one with an address signal. there were.

【0016】本発明は、この問題を解決し、複数のデバ
イスに対するアクセスを効率的に行うことができるデバ
イスアクセスシステムおよび電子機器を提供することを
目的としている。
An object of the present invention is to solve the above problem and to provide a device access system and an electronic apparatus which can efficiently access a plurality of devices.

【0017】[0017]

【課題を解決するための手段】前記目的を達成するため
に、本発明のCPUからそのデータバスおよびアドレス
バスに接続された複数のデバイスをアクセスするデバイ
スアクセスシステムにおいて、前記各デバイスには、前
記データバスの各ビットラインにそれぞれ接続され、該
ビットラインの信号を取り込む状態、前記ビットライン
へ信号を出力する状態または該ビットラインが切り離さ
れた状態のいずれかに設定可能な複数の入出力バッファ
と、前記CPUから前記アドレスバスに出力されるアド
レス信号に応じて前記複数の入出力バッファの状態をビ
ット単位で独立に制御する入出力コントローラとが、そ
れぞれ設けられており、前記CPUから前記アドレスバ
スに出力されるアドレス信号によって、前記データバス
のデータ伝達方向をビット単位で任意に設定できるよう
にしている。
According to a first aspect of the present invention, there is provided a device access system for accessing a plurality of devices connected to a data bus and an address bus from a CPU according to the present invention. A plurality of input / output buffers respectively connected to each bit line of the data bus and capable of being set to a state of taking in a signal of the bit line, a state of outputting a signal to the bit line, or a state of disconnecting the bit line And an input / output controller that independently controls the state of the plurality of input / output buffers in bit units in accordance with an address signal output from the CPU to the address bus. The data transmission direction of the data bus depends on the address signal output to the bus. It is to be set arbitrarily in bits.

【0018】また、本発明の請求項2の電子機器は、C
PUを含む制御部と、前記制御部の前記CPUのデータ
バスおよびアドレスバスに共通に接続され、信号処理を
行うための複数のデバイスとを備えた電子機器におい
て、前記各デバイスには、前記データバスの各ビットラ
インにそれぞれ接続され、該ビットラインの信号を取り
込む状態、前記ビットラインへ信号を出力する状態また
は該ビットラインが切り離された状態のいずれかに設定
可能な複数の入出力バッファと、前記CPUから前記ア
ドレスバスに出力されるアドレス信号に応じて前記複数
の入出力バッファの状態をビット単位で独立に制御する
入出力コントローラとが、それぞれ設けられており、前
記CPUから前記アドレスバスに出力されるアドレス信
号によって、前記データバスのデータ伝達方向をビット
単位で任意に設定できるようにしている。
Further, the electronic device according to claim 2 of the present invention has a C
In an electronic apparatus including a control unit including a PU and a plurality of devices commonly connected to a data bus and an address bus of the CPU of the control unit and performing signal processing, each device includes the data A plurality of input / output buffers respectively connected to each bit line of the bus and capable of being set to any of a state for taking in a signal of the bit line, a state for outputting a signal to the bit line, and a state in which the bit line is disconnected; And an input / output controller that independently controls the state of the plurality of input / output buffers on a bit-by-bit basis in accordance with an address signal output from the CPU to the address bus. The data transmission direction of the data bus can be arbitrarily set in bit units by the address signal output to It has to so that.

【0019】[0019]

【発明の実施の形態】以下、図面に基づいて本発明の実
施形態を説明する。図1は、本発明を適用した測定装置
20の構成を示している。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a configuration of a measuring device 20 to which the present invention is applied.

【0020】図1において、この測定装置20は、操作
部21、制御部22、複数のデバイス26〜26
n−1、記憶装置30、表示器31、プリンタ32等に
よって構成されている。
[0020] In FIG. 1, the measuring apparatus 20, operation unit 21, the control unit 22, a plurality of devices 26 0-26
n-1 , a storage device 30, a display 31, a printer 32, and the like.

【0021】操作部21は、測定装置20の動作モード
やその動作条件等を決定する情報を入力するためのもの
であり、キースイッチや回転つまみ等によって構成され
ている。
The operation unit 21 is for inputting information for determining the operation mode of the measuring device 20 and its operating conditions and the like, and is constituted by key switches, rotary knobs and the like.

【0022】制御部22は、CPU23、ROM24、
RAM25等からなり、複数nのデバイス26〜26
n−1に対する制御を行う。
The control unit 22 includes a CPU 23, a ROM 24,
A plurality of n devices 26 0 to 26
Control for n-1 is performed.

【0023】記憶装置30は、フロッピー(登録商標)
ディスクドライブ、ハードディスクドライブ、メモリカ
ード読書装置等であり、測定条件や測定結果等の情報の
フロッピーディスク、ハードディスク、メモリカード等
に対する読み書きを行う。
The storage device 30 is a floppy (registered trademark).
A disk drive, a hard disk drive, a memory card reader, and the like read and write information such as measurement conditions and measurement results to a floppy disk, a hard disk, a memory card, and the like.

【0024】表示器31は、例えば液晶型で測定条件や
測定結果等を表示し、プリンタ32は、表示器31と同
様に測定条件や測定結果等を印刷出力する。
The display 31 displays, for example, measurement conditions and measurement results in a liquid crystal type, and the printer 32 prints out the measurement conditions and measurement results in the same manner as the display 31.

【0025】一方、各デバイス26〜26n−1は、
この測定装置20の測定部および操作部21、記憶装置
30、表示器31、プリンタ32のインタフェースやコ
ントローラ等を構成するものであり、例えば、デバイス
26は、記憶装置30のコントローラ、デバイス26
は、操作部21、表示器31およびプリンタ32のイ
ンタフェース、他のデバイス26〜26n−1は測定
部を構成するユニットである。
On the other hand, each device 26 0 ~26 n-1 is
Measuring unit and the operation unit 21 of the measuring device 20, storage device 30, a display unit 31, which constitutes the interface or controller of the printer 32, for example, the device 26 0, storage device 30 controller, device 26
1 includes an operation unit 21, display 31 and interface of the printer 32, another device 26 2 ~ 26 n-1 is a unit constituting the measuring unit.

【0026】これらの各デバイス26〜26
n−1は、例えばFPGA(フィールドプログラマブル
ゲートアレイ)によって構成されており、CPU23の
kビットのデータバスBdおよびmビットのアドレスバ
スBaに並列に接続されている。
[0026] Each of these devices 26 0-26
n-1 is constituted by, for example, an FPGA (field programmable gate array), and is connected in parallel to the k-bit data bus Bd and the m-bit address bus Ba of the CPU 23.

【0027】また、各デバイス26〜26n−1
は、データバスBdの各ビットラインb(0)〜b(k
−1)にそれぞれ接続されたk個の3ステート型の入出
力バッファ27(0)〜27(k−1)、27
(0)〜27(k−1)、……、27n−1(0)
〜27n−1(k−1)が設けられている。
Further, each device 26 0 ~26 n-1, each bit line b (0) of the data bus Bd ~b (k
-1) k three-state type input / output buffers 27 0 (0) to 27 0 (k−1), 27 respectively connected to
1 (0) to 27 1 (k-1), ..., 27 n-1 (0)
To 27 n-1 (k-1).

【0028】また、各デバイス26〜26n−1
は、対応する入出力バッファ27(0)〜27(k
−1)、27(0)〜27(k−1)、……、27
n−1(0)〜27n−1(k−1)の状態をそれぞれ
ビット単位に独立に制御する入出力コントローラ28
〜28n−1が設けられている。
Further, each device 26 0 ~26 n-1, the corresponding output buffer 27 0 (0) ~27 0 ( k
-1), 27 1 (0) to 27 1 (k-1), ..., 27
n-1 (0) ~27 n -1 (k-1) output controller 28 for controlling the state of the independently each bitwise 0
~ 28 n-1 are provided.

【0029】各入出力コントローラ28〜28n−1
は、アドレス信号Aとリードライト信号R/Wに対する
ビット入出力パターンを予め記憶しており、CPU23
から出力されるアドレス信号Aおよびリードライト信号
R/Wに対応したビット入出力パターンにしたがって、
入出力バッファ27(0)〜27(k−1)の状態
をビット単位で制御する。
[0029] Each input and output controller 28 0 ~28 n-1
Stores in advance a bit input / output pattern for the address signal A and the read / write signal R / W,
According to the bit input / output pattern corresponding to the address signal A and the read / write signal R / W output from
The state of the input / output buffers 27 X (0) to 27 X (k−1) is controlled in bit units.

【0030】このように、各デバイス26〜26
n−1の入出力コントローラ28〜28n−1は、C
PU23からのアドレス信号Aに応じて、対応する入出
力バッファ27(0)〜27(k−1)の状態をビ
ット単位に独立に制御することができるようになってい
るので、例えば共通のアドレス信号Aで、任意の複数の
デバイスをアクセスしたり、複数のデバイス間でデータ
の授受を行うことができる。
As described above, each of the devices 26 1 to 26 26
n-1 input / output controllers 28 1 to 28 n-1
In accordance with the address signal A from the PU23, since the state of the corresponding output buffer 27 X (0) ~27 X ( k-1) is adapted to be controlled independently of the bits, for example, the common Any of a plurality of devices can be accessed or data can be transferred between the plurality of devices by using the address signal A.

【0031】次に、デバイス数nが16、データ信号D
のビット数kが16、アドレス信号Aのビット数mが1
6の場合のアクセス例について説明する。
Next, when the number n of devices is 16, and the data signal D
Is 16 and the number m of bits of the address signal A is 1.
An access example in the case of No. 6 will be described.

【0032】例えば、図2の(a)に示すように、アド
レス信号Aの上位6ビット、a(15)、a(14)、
…、a(10)が全て0の範囲では、デバイス26
26 n−1以外のR0M24やRAM25が指定され
る。このとき、各入出力コントローラ28〜28
n−1は、図2の(b)に示すように、全てのデバイス
26 〜26n−1の入出力バッファ27(0)〜2
(15)、27(0)〜27(15)、……、
27n−1(0)〜27n−1(15)の状態をハイイ
ンピーダンス状態(Z)とする。
For example, as shown in FIG.
The upper six bits of the address signal A, a (15), a (14),
.., A (10) is in the range of all 0, the device 261~
26 n-1R0M24 or RAM25 other than
You. At this time, each input / output controller 281~ 28
n-1Are all devices as shown in FIG.
26 0~ 26n-1Input / output buffer 270(0) -2
70(15), 271(0) -271(15), ...,
27n-1(0) -27n-1The state of (15) is high
Impedance state (Z).

【0033】また、図3の(a)のように、アドレス信
号Aの上位2ビットa(15)、a(14)が0で、そ
れに続く4ビットa(13)〜a(10)の少なくとも
一つが1のときには、その4ビットa(13)〜a(1
0)の値x(この例ではx=9)で指定されるデバイス
26の入出力コントローラ28のみが対応する全て
の入出力バッファ27(0)〜27(15)を、リ
ードライト信号R/Wに対応する状態に設定し、他の入
出力コントローラ28〜28x−1、28 +1〜2
n−1は、対応する入出力バッファをハイインピーダ
ンス状態Zにする。
As shown in FIG. 3A, the upper two bits a (15) and a (14) of the address signal A are 0, and at least the following four bits a (13) to a (10) When one is 1, the four bits a (13) to a (1)
0) read / write all the input / output buffers 27 x (0) to 27 x (15) corresponding to only the input / output controller 28 x of the device 26 x specified by the value x (x = 9 in this example). The input / output controller is set to a state corresponding to the signal R / W, and the other input / output controllers 28 0 to 28 x−1 and 28 x + 1 to 2
8 n-1 brings the corresponding input / output buffer into the high impedance state Z.

【0034】例えば、リードライト信号R/Wがライト
状態Wを示しているときには、図3の(b)のように、
入出力コントローラ28が入出力バッファ27
(0)〜27(15)を全てIN状態とし、リード
状態Rを示しているときには、図3の(c)のように、
入出力バッファ27(0)〜27(15)を全てO
UT状態にする。
For example, when the read / write signal R / W indicates the write state W, as shown in FIG.
I / O controller 28 X is I / O buffer 27
When all of x (0) to 27 x (15) are in the IN state and the read state R is indicated, as shown in FIG.
Input / output buffers 27 x (0) to 27 x (15) are all O
Set to UT state.

【0035】この状態は、CPU23とアドレス信号A
で指定した1つのデバイス26との間で16ビットの
データの授受を行うためのものであり、従来のアクセス
モードと同等である。
In this state, the CPU 23 and the address signal A
In is for transmitting and receiving 16-bit data with a single device 26 x specified, is equivalent to the conventional access mode.

【0036】また、図4の(a)のように、アドレス信
号Aの上位2ビットa(15)、a(14)のうち、a
(15)が0、a(14)が1で他の4ビットa(1
3)〜a(10)が全て0の場合、全ての入出力コント
ローラ28〜28n−1は、このアドレス信号AをC
PU23からの初期化要求と解釈し、図4の(b)のよ
うに、1番目の入出力コントローラ28は、第1ビッ
ト目の入出力バッファ27(0)のみをIN状態、他
の入出力バッファ27(1)〜27(15)をハイ
インピーダンス状態Zとし、2番目の入出力コントロー
ラ28は、第2ビット目の入出力バッファ27
(1)のみをIN状態、他の入出力バッファ27
(0)、27(2)〜27(15)をハイインピ
ーダンス状態Zとするというように、各デバイスについ
て互いに重複しないように1つずつ入出力バッファ27
をIN状態にする。
As shown in FIG. 4A, of the upper two bits a (15) and a (14) of the address signal A, a
(15) is 0, a (14) is 1 and the other 4 bits a (1
When 3) to a (10) are all 0, all of the input / output controllers 28 0 to 28 n-1 output the address signal A to C
Initialization request and interpreted from PU23, as shown in (b) of FIG. 4, 0 the first input-output controller 28, output buffer 27 of the first bit 0 (0) only the IN state, the other output buffer 27 0 (1) to 27 0 (15) to the high impedance state Z, 2-th output controller 28 2, the second bit of the output buffer 27
1 Only (1) is in the IN state, other input / output buffers 27
1 (0), 27 1 (2) to 27 i (15) are set to the high impedance state Z, so that the input / output buffers 27 are provided one by one so as not to overlap each other for each device.
To the IN state.

【0037】このような状態で、CPU23から例えば
図4の(c)に示すように、第1ビットd(0)、第3
ビットd(2)、第10ビットd(9)および第16ビ
ットd(15)が1で他のビットが0のデータ信号Dが
出力されると、その1のデータを受けたデバイス2
、26、26、2615が内部の初期化を行
う。
In such a state, the first bit d (0) and the third bit d (0) are output from the CPU 23, for example, as shown in FIG.
When the bit d (2), the tenth bit d (9), and the sixteenth bit d (15) are 1 and a data signal D whose other bits are 0 is output, the device 2 receiving the 1 data
6 0, 26 2, 26 9, 26 15 initializes the internal.

【0038】また、図5の(a)に示すように、アドレ
ス信号Aの上位2ビットa(15)、a(14)のうち
a(15)が0、a(14)が1で他の4ビットa(1
3)〜a(10)が全て1の場合には、全ての入出力コ
ントローラ28〜28n− は、このアドレス信号A
をCPU23からの起動要求と解釈し、前記同様に、図
5の(b)のように、各デバイスについて互いに重複し
ないように1つずつ入出力バッファ27をIN状態にす
る。
As shown in FIG. 5A, among the upper two bits a (15) and a (14) of the address signal A, a (15) is 0, a (14) is 1 and the other 4 bits a (1
When all of 3) to a (10) are 1, all of the input / output controllers 28 0 to 28 n− 1 output the address signal A.
Is interpreted as an activation request from the CPU 23, and similarly, as shown in FIG. 5B, the input / output buffers 27 are set to the IN state one by one so as not to overlap each other for each device.

【0039】このような状態で、CPU23から例えば
図5の(c)に示すように、第2ビットd(1)、第5
ビットd(4)、第8ビットd(7)および第12ビッ
トd(11)が1で他のビットが0のデータ信号Dが出
力されると、その1のデータを受けたデバイス26
26、26、2611が起動する。
In this state, the CPU 23 outputs the second bit d (1) and the fifth bit d (1) as shown in FIG.
When the data signal D whose bit d (4), the eighth bit d (7) and the twelfth bit d (11) are 1 and the other bits are 0 is output, the device 26 1 receiving the 1 data,
26 4 , 26 7 , 26 11 are activated.

【0040】また、図6の(a)に示すようにアドレス
信号Aの上位2ビットa(15)、a(14)のうちの
a(15)が1、a(14)が0の場合には、全ての入
出力コントローラ28〜28n−1は、その後に続く
4ビットa(13)〜a(10)の値p(この例ではp
=3)で指定されたデバイス26から、さらにその後
に続く4ビットa(9)〜a(6)ビットの値q(この
例ではq=5)で指定されたデバイス26に16ビッ
トのデータを転送させる転送要求と解釈し、図6の
(b)のように、転送元に指定されたデバイス26
入出力コントローラ28がその全ての入出力バッファ
27(0)〜27(15)を出力状態に設定し、転
送先に指定されたデバイス26の入出力コントローラ
28が全ての入出力バッファ27(0)〜27
(15)を入力状態に設定する。
As shown in FIG. 6A, when a (15) of the upper two bits a (15) and a (14) of the address signal A is 1 and a (14) is 0, Means that all of the input / output controllers 28 0 to 28 n-1 have values p (p in this example) of the following four bits a (13) to a (10).
= 3) to the device 26 q specified by the value q of 4 bits a (9) to a (6) bits (q = 5 in this example) following the device 26 p specified by 16 bits data interprets transfer request to transfer, as shown in (b) of FIG. 6, the input-output controller 28 p all its input and output buffers 27 p (0) of the device 26 p specified in the transfer source ~ 27 p (15) is set to the output state, and the input / output controller 28 q of the device 26 q designated as the transfer destination sets all the input / output buffers 27 q (0) to 27
Set q (15) to the input state.

【0041】また、図7の(a)に示すように、アドレ
ス信号Aの上位2ビットa(15)、a(14)がとも
に1で、次に続く4ビットa(13)〜a(10)のデ
ータの値xが0の場合には、図7の(b)のように、各
入出力コントローラ28が各デバイスについて互いに重
複しないように1つずつ入出力バッファ27をOUT状
態にして、他の入出力バッファをハイインピーダンス状
態Zにする。
As shown in FIG. 7A, the upper two bits a (15) and a (14) of the address signal A are both 1, and the following four bits a (13) to a (10) 7), the input / output controller 27 sets the input / output buffer 27 to the OUT state one by one so that the input / output controllers 28 do not overlap with each other, as shown in FIG. The other input / output buffers are set to the high impedance state Z.

【0042】この状態は、各デバイス26〜26
n−1がデータバスBdにそれぞれ1ビットずつデータ
を出力する状態であり、CPU23は、このデータ信号
Dの各ビットから各デバイス26〜26n−1の状態
を知ることができる。
[0042] In this state, each device 26 0-26
n-1 is a state of outputting the data bit by bit to the data bus Bd, CPU 23 can know the status of each device 26 0 ~ 26 n-1 from each bit of the data signal D.

【0043】以下同様に、各デバイス26〜26
n−1の入出力コントローラ28〜28n−1は、C
PU23からのアドレス信号Aに対応したビット入出力
パターンにしたがって、それぞれの入出力バッファをビ
ット単位に制御して、データバスBdに接続された任意
のデバイス間で、ビット単位にデータを授受させる。
[0043] Similarly, each device 26 0-26
n-1 input / output controllers 28 0 to 28 n-1
According to the bit input / output pattern corresponding to the address signal A from the PU 23, each input / output buffer is controlled in bit units, and data is transmitted and received in bit units between arbitrary devices connected to the data bus Bd.

【0044】なお、上記したビット入出力のパターン
は、データを1対1、あるいは1対複数で授受する比較
的単純な例であったが、、前記したように、各入出力コ
ントローラは、それぞれの入出力バッファの状態をビッ
ト単位で制御できるので、例えば、CPU23から2つ
のデバイスにデータを送りながら、他のデバイス間でデ
ータの授受を行う等の複雑な制御も一つの共通なアドレ
ス信号Aで行うことができる。
Although the above-described bit input / output pattern is a relatively simple example of transmitting and receiving data in a one-to-one or one-to-many manner, as described above, each input / output controller has Can control the state of the input / output buffer on a bit-by-bit basis. For example, it is possible to perform complicated control such as sending and receiving data between two devices while the CPU 23 sends data to two devices. Can be done with

【0045】このように実施形態の測定装置20では、
各デバイス26〜26n−1に、制御部22のCPU
23からのアドレス信号Aに応じて、データバスBdに
接続されている入出力バッファをビット単位で独立に制
御できる入出力コントローラ28〜28n−1がそれ
ぞれ設けられているため、CPU23と複数のデバイス
26〜26n−1との間や、複数のデバイス26
26n−1の間で、データバスBd上でデータを、任意
のビット数で任意の方向に伝達することができる。
As described above, in the measuring device 20 of the embodiment,
Each device 26 0 ~26 n-1, CPU of the control unit 22
Since input / output controllers 28 0 to 28 n−1 that can independently control an input / output buffer connected to the data bus Bd in units of bits in accordance with the address signal A from the CPU 23 are provided, and between the device 26 0 ~ 26 n-1, the plurality of devices 26 0 -
Between 26 n−1 , data can be transmitted on the data bus Bd with an arbitrary number of bits in an arbitrary direction.

【0046】このため、前記したように、初期化、起
動、状態監視等のような各デバイスに共通の処理を行う
際であっても、CPU23からの共通のアドレス信号A
を指定するだけて済み、迅速な制御が可能となる。
Therefore, as described above, even when performing common processing for each device such as initialization, activation, status monitoring, etc., the common address signal A from the CPU 23 is used.
, And quick control is possible.

【0047】なお、ここでは測定装置20について説明
したが、通信装置等の他の電子機器にも本発明を同様に
適用できる。
Although the measuring device 20 has been described here, the present invention can be similarly applied to other electronic devices such as a communication device.

【0048】[0048]

【発明の効果】以上説明したように、本発明の請求項1
のデバイスアクセスシステムは、CPUからそのデータ
バスおよびアドレスバスに接続された複数のデバイスを
アクセスするデバイスアクセスシステムにおいて、前記
各デバイスには、前記データバスの各ビットラインにそ
れぞれ接続され、該ビットラインの信号を取り込む状
態、前記ビットラインへ信号を出力する状態または該ビ
ットラインが切り離された状態のいずれかに設定可能な
複数の入出力バッファと、前記CPUから前記アドレス
バスに出力されるアドレス信号に応じて前記複数の入出
力バッファの状態をビット単位で独立に制御する入出力
コントローラとが、それぞれ設けられており、前記CP
Uから前記アドレスバスに出力されるアドレス信号によ
って、前記データバスのデータ伝達方向をビット単位で
任意に設定できるようにしている。
As described above, according to the first aspect of the present invention,
A device access system for accessing a plurality of devices connected to a data bus and an address bus from a CPU, wherein each of the devices is connected to each bit line of the data bus; And a plurality of input / output buffers that can be set to any of a state in which a signal is taken in, a state in which a signal is output to the bit line, and a state in which the bit line is disconnected, and an address signal output from the CPU to the address bus. And an input / output controller that independently controls the states of the plurality of input / output buffers in bit units in accordance with
The data transmission direction of the data bus can be arbitrarily set in bit units by an address signal output from the U to the address bus.

【0049】このため、共通のアドレス信号で、CPU
と任意の複数のデバイスとの間でデータの授受を行った
り、複数のデバイス間でデータの授受を行うことがで
き、複数のデバイスに対するアクセス処理を極めて迅速
に行うことができる。
For this reason, a common address signal causes the CPU
Data can be exchanged between a plurality of devices and data can be exchanged between a plurality of devices, and access processing to a plurality of devices can be performed extremely quickly.

【0050】また、本発明の請求項2の電子機器は、C
PUを含む制御部と、前記制御部の前記CPUのデータ
バスおよびアドレスバスに共通に接続され、信号処理を
行うための複数のデバイスとを備えた測定装置におい
て、前記各デバイスには、前記データバスの各ビットラ
インにそれぞれ接続され、該ビットラインの信号を取り
込む状態、前記ビットラインへ信号を出力する状態また
は該ビットラインが切り離された状態のいずれかに設定
可能な複数の入出力バッファと、前記CPUから前記ア
ドレスバスに出力されるアドレス信号に応じて前記複数
の入出力バッファの状態をビット単位で独立に制御する
入出力コントローラとが、それぞれ設けられており、前
記CPUから前記アドレスバスに出力されるアドレス信
号によって、前記データバスのデータ伝達方向をビット
単位で任意に設定できるようにしている。
Further, the electronic device according to the second aspect of the present invention has a C
In a measuring apparatus including a control unit including a PU and a plurality of devices commonly connected to a data bus and an address bus of the CPU of the control unit and performing signal processing, each device includes the data A plurality of input / output buffers respectively connected to each bit line of the bus and capable of being set to any of a state for taking in a signal of the bit line, a state for outputting a signal to the bit line, and a state in which the bit line is disconnected; And an input / output controller that independently controls the state of the plurality of input / output buffers on a bit-by-bit basis in accordance with an address signal output from the CPU to the address bus. The data transmission direction of the data bus can be arbitrarily set in bit units by the address signal output to It has to so that.

【0051】このため、共通のアドレス信号で、CPU
と任意の複数のデバイスとの間でデータの授受を行った
り、複数のデバイス間でデータの授受を行うことがで
き、複数のデバイスに対する同種の制御処理を極めて迅
速に行うことができる。
For this reason, a common address signal causes the CPU
Can exchange data with a plurality of arbitrary devices, and exchange data between a plurality of devices, and can perform the same kind of control processing on a plurality of devices extremely quickly.

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

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

【図2】実施の形態の要部の動作を説明するための図FIG. 2 is a diagram illustrating an operation of a main part of the embodiment.

【図3】実施の形態の要部の動作を説明するための図FIG. 3 is a diagram illustrating an operation of a main part of the embodiment.

【図4】実施の形態の要部の動作を説明するための図FIG. 4 is a diagram illustrating an operation of a main part of the embodiment.

【図5】実施の形態の要部の動作を説明するための図FIG. 5 is a diagram illustrating an operation of a main part of the embodiment.

【図6】実施の形態の要部の動作を説明するための図FIG. 6 is a diagram illustrating an operation of a main part of the embodiment.

【図7】実施の形態の要部の動作を説明するための図FIG. 7 is a diagram for explaining an operation of a main part of the embodiment.

【図8】従来のシステムの構成を示す図FIG. 8 is a diagram showing a configuration of a conventional system.

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

20 測定装置 21 操作部 22 制御部 23 CPU 24 ROM 25 RAM 26〜26n−1 デバイス 27(0)〜27n−1(k) 入出力バッファ 28〜28n−1 入出力コントローラ 30 記憶装置 31 表示器 32 プリンタ20 measuring device 21 operation unit 22 control unit 23 CPU 24 ROM 25 RAM 26 0 ~26 n-1 devices 27 0 (0) ~27 n- 1 (k) output buffer 28 0 ~28 n-1 output controller 30 Storage device 31 Display device 32 Printer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】CPUからそのデータバスおよびアドレス
バスに接続された複数のデバイスをアクセスするデバイ
スアクセスシステムにおいて、 前記各デバイスには、 前記データバスの各ビットラインにそれぞれ接続され、
該ビットラインの信号を取り込む状態、前記ビットライ
ンへ信号を出力する状態または該ビットラインが切り離
された状態のいずれかに設定可能な複数の入出力バッフ
ァと、 前記CPUから前記アドレスバスに出力されるアドレス
信号に応じて前記複数の入出力バッファの状態をビット
単位で独立に制御する入出力コントローラとが、それぞ
れ設けられており、 前記CPUから前記アドレスバスに出力されるアドレス
信号によって、前記データバスのデータ伝達方向をビッ
ト単位で任意に設定できるようにしたことを特徴とする
デバイスアクセスシステム。
1. A device access system for accessing a plurality of devices connected to a data bus and an address bus from a CPU, wherein each of the devices is connected to each bit line of the data bus.
A plurality of input / output buffers that can be set to any of a state of capturing a signal of the bit line, a state of outputting a signal to the bit line, and a state of disconnection of the bit line; and a plurality of input / output buffers output from the CPU to the address bus. And an input / output controller that independently controls the states of the plurality of input / output buffers in units of bits in accordance with the address signals provided by the CPU. A device access system wherein a data transmission direction of a bus can be arbitrarily set in bit units.
【請求項2】CPUを含む制御部と、 前記制御部の前記CPUのデータバスおよびアドレスバ
スに共通に接続され、信号処理を行うための複数のデバ
イスとを備えた電子機器において、 前記各デバイスには、 前記データバスの各ビットラインにそれぞれ接続され、
該ビットラインの信号を取り込む状態、前記ビットライ
ンへ信号を出力する状態または該ビットラインが切り離
された状態のいずれかに設定可能な複数の入出力バッフ
ァと、 前記CPUから前記アドレスバスに出力されるアドレス
信号に応じて前記複数の入出力バッファの状態をビット
単位で独立に制御する入出力コントローラとが、それぞ
れ設けられており、 前記CPUから前記アドレスバスに出力されるアドレス
信号によって、前記データバスのデータ伝達方向をビッ
ト単位で任意に設定できるようにしたことを特徴とする
電子機器。
2. An electronic apparatus comprising: a control unit including a CPU; and a plurality of devices commonly connected to a data bus and an address bus of the CPU of the control unit for performing signal processing. Is connected to each bit line of the data bus,
A plurality of input / output buffers that can be set to any of a state of capturing a signal of the bit line, a state of outputting a signal to the bit line, and a state of disconnection of the bit line; and a plurality of input / output buffers output from the CPU to the address bus. And an input / output controller that independently controls the states of the plurality of input / output buffers in units of bits in accordance with the address signals provided by the CPU. An electronic device wherein a data transmission direction of a bus can be arbitrarily set in bit units.
JP2001080594A 2001-03-21 2001-03-21 Device access system and electronic unit Pending JP2002278920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001080594A JP2002278920A (en) 2001-03-21 2001-03-21 Device access system and electronic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001080594A JP2002278920A (en) 2001-03-21 2001-03-21 Device access system and electronic unit

Publications (1)

Publication Number Publication Date
JP2002278920A true JP2002278920A (en) 2002-09-27

Family

ID=18936845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001080594A Pending JP2002278920A (en) 2001-03-21 2001-03-21 Device access system and electronic unit

Country Status (1)

Country Link
JP (1) JP2002278920A (en)

Similar Documents

Publication Publication Date Title
US4730251A (en) Automatic I/O address assignment
US6233635B1 (en) Diagnostic/control system using a multi-level I2C bus
US4453229A (en) Bus interface unit
US5416909A (en) Input/output controller circuit using a single transceiver to serve multiple input/output ports and method therefor
US20050097255A1 (en) I2C device including bus switches and programmable address
JPH04218861A (en) Multiple-cluster-signal processor
US5790888A (en) State machine for selectively performing an operation on a single or a plurality of registers depending upon the register address specified in a packet
JP2994589B2 (en) Electronic wiring system by cyclic automatic communication
JPH0440734B2 (en)
KR100239716B1 (en) Diagnostic test apparatus of scsi controller
US6670882B1 (en) Multi drop stack bus detector method and apparatus
JP2002278920A (en) Device access system and electronic unit
EP0174446B1 (en) distributed multiprocessing system
EP0382342B1 (en) Computer system DMA transfer
KR100499350B1 (en) Data transfer method of direct memory access having multi and single channel
WO2021125452A1 (en) Plc analog module comprising hart pass-through interface
JP5060803B2 (en) Series interface circuit
KR100728870B1 (en) Dual port ram and method of losslessly transmitting data using the dual port ram
JP2731461B2 (en) Terminal control method and terminal device
JPH09311716A (en) Lan device
KR950010948B1 (en) Apparatus and method for relaying data in vesa local system
JP3505540B2 (en) Data transfer device
JPS63288543A (en) Data transfer speed switching system
JPH11341028A (en) Method and device for checking set state of terminal resistor
RU2039374C1 (en) Programming interface unit having high workload

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040302

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040309

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040706