[go: up one dir, main page]

JPH04236537A - Data communication system - Google Patents

Data communication system

Info

Publication number
JPH04236537A
JPH04236537A JP3004719A JP471991A JPH04236537A JP H04236537 A JPH04236537 A JP H04236537A JP 3004719 A JP3004719 A JP 3004719A JP 471991 A JP471991 A JP 471991A JP H04236537 A JPH04236537 A JP H04236537A
Authority
JP
Japan
Prior art keywords
data
address
slave devices
signal
communication
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.)
Withdrawn
Application number
JP3004719A
Other languages
Japanese (ja)
Inventor
Tamiko Yamada
山田 民子
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3004719A priority Critical patent/JPH04236537A/en
Publication of JPH04236537A publication Critical patent/JPH04236537A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To attain economical data communication by connecting a master and a slave equipment with a couple of data and address buses in parallel and designating and selecting the slave equipment and a data address from the address bus for the communication. CONSTITUTION:A bus from a CPU is selected by a transmission data selection circuit 11 and a transmission data is sent to a reception data selection circuit 12 via a bi-directional buffer 21, a bus is selected and the data is sent to the CPU. An FF circuit 31 and an 8-bit counter 32 generate a control signal and an address. An output Q1 of the counter 32 masks a change point of a selection signal and an address signal. An output Q2 of the counter 32 is a read/write signal. Outputs Q3-Q5 of the counter 32 select one of slave equipments 21-28. Outputs Q6-Q8 of the counter 32 designate a data address. Thus, the equipments 21-28 in parallel bus connection are sequentially selected by a selection signal and transmission reception is implemented by the designation by the address signal, then the slave equipment is connected to a master equipment 1 by a couple of signal lines.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はデータ通信方式に関する
。詳しくはマスタ装置が複数のスレーブ装置と接続され
ており、マスタ装置が複数のスレーブ装置を順次選択し
て情報交換を行うデータ通信方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication system. Specifically, the present invention relates to a data communication method in which a master device is connected to a plurality of slave devices, and the master device sequentially selects the plurality of slave devices to exchange information.

【0002】例えば、マスタ装置が複数のスレーブ装置
との情報交換を行う場合、マスタ装置と複数のスレーブ
装置とを接続する信号線の本数が多くなると、スレーブ
装置を接続するためのケーブルの本数およびコネクタの
数が多くなりマスタ装置の規模が大きくなる。
For example, when a master device exchanges information with a plurality of slave devices, the number of signal lines connecting the master device and the plurality of slave devices increases. As the number of connectors increases, the scale of the master device increases.

【0003】一方、省電力、省スペースの観点からは装
置の小型化が要求されている。
On the other hand, from the viewpoint of power saving and space saving, there is a demand for miniaturization of the device.

【0004】0004

【従来の技術】図5は従来例を説明するブロック図であ
り、図中の1aはマスタ装置、21 a〜2N aはス
レーブ装置を示す。
2. Description of the Related Art FIG. 5 is a block diagram illustrating a conventional example, in which 1a indicates a master device, and 21a to 2Na indicate slave devices.

【0005】従来例におけるマスタ装置1aとスレーブ
装置21 a〜2N aとの接続はそれぞれスレーブ装
置21 a〜2Naに対して1対のアドレスバスとデー
タバスを割り当てている。
In the conventional connection between the master device 1a and the slave devices 21a to 2Na, a pair of address buses and data buses are assigned to each of the slave devices 21a to 2Na.

【0006】マスタ装置1aはスレーブ装置21 a〜
2N aの中の1つを選択してアドレスを指定し情報交
換を行う。
[0006] The master device 1a is connected to the slave devices 21a~
Select one of the 2Na, specify the address, and exchange information.

【0007】[0007]

【発明が解決しようとする課題】上述の従来例において
は、マスタ装置1aにはスレーブ装置21 a〜2N 
aの数だけアドレスバス、データバスが接続されること
になり、スレーブ装置21 a〜2N aの台数が多く
なると、信号線の本数が多くなり、且つそれを接続する
ためのコネクタの数も多くなり、マスタ装置1aの規模
が大きくなる。また入出力部に使用しているLSIの種
類によっては収容できる信号線の本数に制限があり、ス
レーブ装置21 a〜2N aのからの信号線の本数が
制限以上になる場合には、情報交換が不可能となるスレ
ーブ装置ができてしまう。
In the conventional example described above, the master device 1a has slave devices 21a to 2N.
As many address buses and data buses as the number of slave devices 21a to 2Na are connected, as the number of slave devices 21a to 2Na increases, the number of signal lines increases, and the number of connectors for connecting them also increases. Therefore, the scale of the master device 1a increases. Also, depending on the type of LSI used in the input/output section, there is a limit to the number of signal lines that can be accommodated, and if the number of signal lines from the slave devices 21a to 2Na exceeds the limit, information exchange This results in a slave device that cannot be used.

【0008】本発明はマスタ装置に接続される信号線の
本数を削減し、小型で安価なマスタ装置を実現すること
により経済的なデータ通信方式を実現しようとする。
The present invention aims to realize an economical data communication system by reducing the number of signal lines connected to a master device and realizing a small and inexpensive master device.

【0009】[0009]

【課題を解決するための手段】図1は本発明の原理を説
明するブロック図である。図中の10は複数のスレーブ
装置21 〜2N と通信を行うため、処理装置と接続
された複数のバスの中の1つを選択するデータ選択手段
であり、20はデータ選択手段10と複数のスレーブ装
置21 〜2N との間のデータの入出力を制御するデ
ータ入出力手段であり、30は通信を行う複数のスレー
ブ装置21 〜2N の中の1つを指定する装置アドレ
スと、送受信するデータの装置中のデータアドレスおよ
び制御信号を発生する制御信号発生手段であり、マスタ
装置1と複数のスレーブ装置21 〜2N とを並列に
バス接続し、制御信号発生手段30で、データ通信を行
う複数のスレーブ装置21 〜2N の中の1つを指定
する装置アドレスとそのデータアドレスを指定してデー
タ通信を行うことにより経済的なデータ通信方式が得ら
れる。
Means for Solving the Problems FIG. 1 is a block diagram illustrating the principle of the present invention. 10 in the figure is a data selection means for selecting one of the plurality of buses connected to the processing device in order to communicate with the plurality of slave devices 21 to 2N, and 20 is the data selection means 10 and the plurality of buses. It is a data input/output means that controls the input/output of data between the slave devices 21 to 2N, and 30 is a device address that designates one of the plurality of slave devices 21 to 2N to communicate with, and data to be sent and received. The master device 1 and a plurality of slave devices 21 to 2N are connected in parallel via a bus, and the control signal generation means 30 is a control signal generation means for generating data addresses and control signals in the device. An economical data communication method can be obtained by performing data communication by specifying a device address that specifies one of the slave devices 21 to 2N and its data address.

【0010】0010

【作用】マスタ装置1と複数のスレーブ装置21 〜2
N とを1対のデータバスおよびアドレスバスで並列に
接続する。
[Operation] Master device 1 and multiple slave devices 21 to 2
N in parallel with a pair of data buses and address buses.

【0011】制御信号発生手段30で、データ通信を行
う複数のスレーブ装置21 〜2N の中の1つを選択
する装置アドレスを発生し、装置アドレスによりデータ
通信を行うスレーブ装置を指定し、さらに制御信号発生
手段30で発生するデータアドレスで指定される領域の
データの送受信を行うことにより経済的なデータ通信方
式を実現することが可能となる。
The control signal generating means 30 generates a device address for selecting one of the plurality of slave devices 21 to 2N for data communication, specifies the slave device for data communication by the device address, and further controls the slave device. By transmitting and receiving data in the area specified by the data address generated by the signal generating means 30, it is possible to realize an economical data communication system.

【0012】0012

【実施例】図2は本発明の実施例のマスタ装置を説明す
る図、図3は本発明の実施例のシステム構成を説明する
図である。
Embodiment FIG. 2 is a diagram illustrating a master device according to an embodiment of the present invention, and FIG. 3 is a diagram illustrating a system configuration according to an embodiment of the present invention.

【0013】図2に示す実施例は図1で説明したデータ
選択手段10として、送信データ選択回路11および受
信データ選択回路12と、データ入出力手段20として
双方向バッファ21と、制御信号発生手段30として、
フリップフロップ回路(以下FF回路と称する)31お
よび8ビットカウンタ32より構成した例である。
The embodiment shown in FIG. 2 includes a transmission data selection circuit 11 and a reception data selection circuit 12 as the data selection means 10 explained in FIG. 1, a bidirectional buffer 21 as the data input/output means 20, and a control signal generation means. As 30,
This example is composed of a flip-flop circuit (hereinafter referred to as FF circuit) 31 and an 8-bit counter 32.

【0014】図3の1はマスタ装置、21 〜28 は
スレーブ装置であり、スレーブ装置は8台より構成した
例である。スレーブ装置21 〜28 はデータバスお
よびアドレスバスに並列に接続されている。送信データ
は図示省略されているCPUに接続されているバスを送
信データ選択回路11で選択し、双方向バッファ21を
通して送信し、受信データは双方向バッファ21を通し
て受信データ選択回路12に送られバスを選択して受信
したデータをCPUに送信する。
1 in FIG. 3 is a master device, 21 to 28 are slave devices, and the slave devices are an example of eight devices. Slave devices 21 to 28 are connected in parallel to a data bus and an address bus. The transmission data is selected by the transmission data selection circuit 11 from a bus connected to the CPU (not shown) and is transmitted through the bidirectional buffer 21, and the reception data is sent to the reception data selection circuit 12 through the bidirectional buffer 21 and connected to the bus. Select and send the received data to the CPU.

【0015】図4は本発明の実施例のタイムチャートで
あり、FF回路31と8ビットカウンタ32で制御信号
およびアドレスを発生する動作を示している。■マスタ
クロックを示す。
FIG. 4 is a time chart of an embodiment of the present invention, showing the operation of generating control signals and addresses by the FF circuit 31 and the 8-bit counter 32. ■Indicates the master clock.

【0016】■  8ビットカウンタの21 分周出力
Q1をマスタクロックの反転出力で打って出力した信号
であり、選択信号、アドレス信号の変化点をマスクする
イネーブル信号である。
(2) This is a signal outputted from the 21 frequency-divided output Q1 of the 8-bit counter using the inverted output of the master clock, and is an enable signal for masking the change points of the selection signal and address signal.

【0017】■  8ビットカウンタの22 分周出力
Q2であり、リード/ライト信号(図中R/W信号とし
て示す。) ■  8ビットカウンタの23 、24 、25 分周
出力Q3、Q4、Q5である。
■ 22 frequency divided output Q2 of the 8-bit counter, read/write signal (shown as R/W signal in the figure) ■ 23, 24, 25 frequency divided outputs Q3, Q4, Q5 of the 8 bit counter be.

【0018】■  Q3、Q4、Q5より発生するスレ
ーブ装置21 〜28 の中の1つを選択する選択信号
である。■  8ビットカウンタの26 、27 、2
8 分周出力Q6、Q7、Q8である。
(2) A selection signal for selecting one of the slave devices 21 to 28 generated from Q3, Q4, and Q5. ■ 8-bit counter 26, 27, 2
8 divided outputs Q6, Q7, and Q8.

【0019】■  Q6、Q7、Q8より発生するデー
タアドレスを指定するアドレス信号である。上述の動作
により、並列にバス接続されたスレーブ装置21 〜2
N を選択信号■により順次選択し、選択されたスレー
ブ装置のデータアドレスをアドレス信号■で指定して送
受信することにより、マスタ装置1に接続する信号線本
数は1対のデータバス、アドレスバスのみとすることが
できる。
(2) This is an address signal that specifies a data address generated from Q6, Q7, and Q8. Through the above operation, the slave devices 21 to 2 connected in parallel with the bus
By sequentially selecting N with the selection signal ■ and transmitting/receiving the data address of the selected slave device by specifying the address signal ■, the number of signal lines connected to the master device 1 is reduced to only one pair of data bus and address bus. It can be done.

【0020】本実施例ではデータアドレスが0〜7の8
としたが、データアドレスが9以上の場合に8ビットカ
ウンタ32のビット数を増加させることにより容易に対
応可能である。
In this embodiment, the data address is 8 from 0 to 7.
However, if the data address is 9 or more, this can be easily handled by increasing the number of bits of the 8-bit counter 32.

【0021】また、スレーブ装置21 〜28 より送
信するデータ量は一定ではなく装置により差があるのが
一般的である。したがってアドレスの指定は、データ量
が最大のスレーブ装置のデータ領域を指定可能なアドレ
スのビット数を持つことが必要である。
Furthermore, the amount of data transmitted from the slave devices 21 to 28 is not constant and generally varies depending on the device. Therefore, the address must have a number of bits that can specify the data area of the slave device with the largest amount of data.

【0022】このとき、データ量が最大のアドレスの半
分以下のスレーブ装置が存在する場合には、その装置が
データを送信するときアドレスビットの最上位のビット
を無視することによりデータ送信回数を2倍とすること
が可能となり、例えば、障害情報の送受信を行っている
場合には、障害発生を迅速に把握することが可能となる
[0022] At this time, if there is a slave device whose data amount is less than half of the maximum address, when that device transmits data, it ignores the most significant bit of the address bit, thereby reducing the number of data transmissions by 2. For example, when fault information is being sent and received, it becomes possible to quickly detect the occurrence of a fault.

【0023】[0023]

【発明の効果】本発明によればマスタ装置と複数のスレ
ーブ装置との接続を1対のデータバスおよびアドレスバ
スで並列接続し、情報交換を行うスレーブ装置およびデ
ータアドレスをアドレスバスから指定選択して通信を行
うことにより経済的なデータ通信方式を得ることができ
る。
According to the present invention, a master device and a plurality of slave devices are connected in parallel using a pair of data buses and address buses, and slave devices and data addresses for information exchange are designated and selected from the address bus. An economical data communication method can be obtained by performing communication using the following methods.

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

【図1】  本発明の原理を説明するブロック図[Figure 1] Block diagram explaining the principle of the present invention

【図2
】  本発明の実施例のマスタ装置を説明する図
[Figure 2
] A diagram illustrating a master device according to an embodiment of the present invention.

【図3
】  本発明の実施例のシステム構成を説明する図
[Figure 3
] Diagram explaining the system configuration of an embodiment of the present invention

【図
4】  本発明の実施例のタイムチャート
[Figure 4] Time chart of the embodiment of the present invention

【図5】  
従来例を説明するブロック図
[Figure 5]
Block diagram explaining conventional example

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

1、1a  マスタ装置 21 〜28 、21 a〜2N a  スレーブ装置
10  データ選択手段 11  送信データ選択回路      12  受信
データ選択回路 20  データ入出力手段        21  双
方向バッファ30  制御信号発生手段       
 31  FF回路32  8ビットカウンタ
1, 1a Master device 21 to 28, 21 a to 2N a Slave device 10 Data selection means 11 Transmission data selection circuit 12 Reception data selection circuit 20 Data input/output means 21 Bidirectional buffer 30 Control signal generation means
31 FF circuit 32 8-bit counter

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  マスタ装置(1)が複数のスレーブ装
置(21 〜2N )とのデータ通信を行うときの通信
方式であって、前記複数のスレーブ装置(21 〜2N
 )と通信を行うため、処理装置と接続された複数のバ
スの中の1つを選択するデータ選択手段(10)と、前
記データ選択手段(10)と前記複数のスレーブ装置(
21 〜2N )との間のデータの入出力を制御するデ
ータ入出力手段(20)と、通信を行う前記複数のスレ
ーブ装置(21 〜2N )の中の1つを指定する装置
アドレスと、送受信するデータの装置の中のデータアド
レスおよび制御信号を発生する制御信号発生手段(30
)を備え、前記マスタ装置(1)と前記複数のスレーブ
装置(21 〜2N )とを並列にバス接続し、前記制
御信号発生手段(30)で、データ通信を行う前記複数
のスレーブ装置(21 〜2N )の中の1つを指定す
る装置アドレスと、そのデータアドレスを指定して通信
を行うことを特徴とするデータ通信方式。
1. A communication method when a master device (1) performs data communication with a plurality of slave devices (21 to 2N), wherein the plurality of slave devices (21 to 2N)
) data selection means (10) for selecting one of a plurality of buses connected to the processing device; and said data selection means (10) and said plurality of slave devices (
21 to 2N), a device address for specifying one of the plurality of slave devices (21 to 2N) for communication, and a data input/output means (20) for controlling data input/output between the slave devices (21 to 2N), and a device address for specifying one of the plurality of slave devices (21 to 2N) for communication; control signal generating means (30) for generating data addresses and control signals in the data device;
), the master device (1) and the plurality of slave devices (21 to 2N) are connected in parallel via a bus, and the plurality of slave devices (21 to 2N) perform data communication by the control signal generating means (30). A data communication method characterized in that communication is performed by specifying a device address that specifies one of .about.2N) and its data address.
【請求項2】  前記複数のスレーブ装置(21 〜2
N )中のデータを記憶する領域のアドレスの数がデー
タアドレスの指定できる領域の半分以下の場合には、デ
ータアドレスの最上位ビットを無視することにより、デ
ータ送信回数を2倍とすることを特徴とする請求項1記
載のデータ通信方式。
2. The plurality of slave devices (21 to 2
N) If the number of addresses in the area that stores data is less than half of the area that can be specified by data addresses, the number of data transmissions can be doubled by ignoring the most significant bit of the data address. The data communication system according to claim 1, characterized in that:
JP3004719A 1991-01-18 1991-01-18 Data communication system Withdrawn JPH04236537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3004719A JPH04236537A (en) 1991-01-18 1991-01-18 Data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3004719A JPH04236537A (en) 1991-01-18 1991-01-18 Data communication system

Publications (1)

Publication Number Publication Date
JPH04236537A true JPH04236537A (en) 1992-08-25

Family

ID=11591696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3004719A Withdrawn JPH04236537A (en) 1991-01-18 1991-01-18 Data communication system

Country Status (1)

Country Link
JP (1) JPH04236537A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008135840A (en) * 2006-11-27 2008-06-12 Denso Corp Communication system and electronic control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008135840A (en) * 2006-11-27 2008-06-12 Denso Corp Communication system and electronic control device

Similar Documents

Publication Publication Date Title
JPH0611134B2 (en) Local Area Network
JP2991023B2 (en) Data transmission device, data transmission / reception device and system
US6192409B1 (en) X.25 network connection for X.25 protocol communication used in a full electronic switching system
JPH04236537A (en) Data communication system
US5701440A (en) Multi-processor system provided with bus control module
JP2006304011A (en) Interface circuit
JP2949118B1 (en) Encoder data output method for bus communication type encoder device
KR950004509B1 (en) Bus relay circuit of long distance interface unit
KR19980026617A (en) Serial data communication system
JPS63110838A (en) Synchronizing signal transfer system
KR100962306B1 (en) Bidirectional Data Communication Device of Embedded System and Its Method
JPH11327948A (en) Operation testing method for serial bus interface macro circuit
JPH04348642A (en) Parallel transmission method utilizing function for serial transmission
JPH09293047A (en) Data transfer device of microcomputer
JP2626501B2 (en) Information transfer device
US5757276A (en) Communication port control system
KR20000013079A (en) Data rate variable circuit for universal synchronous/asynchronous receiver/transmitter
JPH0540516A (en) NC device communication system and NC device
JPS62217751A (en) Line control device
KR20030027307A (en) Serial interface of universal processor
JPH06236348A (en) Data transmission system
JPH0218076A (en) Image forming device
JPH04117507A (en) Communication control circuit and data transmission equipment
JPH0697283A (en) Semiconductor integrated circuit
JPS5975734A (en) Transmission line access device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514