JPH0916517A - Bus interface - Google Patents

Bus interface

Info

Publication number
JPH0916517A
JPH0916517A JP18210295A JP18210295A JPH0916517A JP H0916517 A JPH0916517 A JP H0916517A JP 18210295 A JP18210295 A JP 18210295A JP 18210295 A JP18210295 A JP 18210295A JP H0916517 A JPH0916517 A JP H0916517A
Authority
JP
Japan
Prior art keywords
port
unit
slave
master unit
slave unit
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
JP18210295A
Other languages
Japanese (ja)
Inventor
Satoru Owada
哲 大和田
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP18210295A priority Critical patent/JPH0916517A/en
Publication of JPH0916517A publication Critical patent/JPH0916517A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE: To freely increase/decrease the number of slave machines by connecting to a master machine via an RS232C interface. CONSTITUTION: The master machine 10 is connected to a first slave machine 11(1) via a cable 12. A branch circuit 13 is provided in the first slave machine 11(1), and the master machine is connected to the port P1 of the slave machine. Also, one port P3 out of two remaining ports is connected to the internal circuit of the first slave machine 11(1), and the remaining port P2 to the next slave machine 11(2). Data from the master machine 10 is transferred to the first slave machine 11(1) and the next slave machine 11(2) simultaneously. The data outputted from the first slave machine 11(1) and the one outputted from the next slave machine 11(2) are transmitted from the port P1 to the master machine 10.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、RS232C規格のシ
リアルバスインタフェース等の機能を拡張して使用する
バスインタフェースに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus interface that expands and uses functions such as a serial bus interface of RS232C standard.

【0002】[0002]

【従来の技術】情報処理装置のインタフェースとして多
用されているRS232C規格のインタフェースケーブ
ルは、所定の結線を施したケーブルとその両端に設けた
一対のコネクタにより構成される。しかしながら、例え
ば1台の親機に対し複数台の子機が接続されて、各子機
が親機とのデータ送受信を行うといったシステムも存在
する。このようなシステムでは、親機と全ての子機とを
インタフェースケーブルの一端の切換えスイッチを介し
て接続し、そのスイッチの制御によって接続相手先を選
択するようにしている。また、複数の通信ポートを親機
に設け、各通信ポートをそれぞれ別々の子機に対し別々
のインタフェースケーブルを介して接続するといった構
成のものも存在する。
2. Description of the Related Art An RS232C standard interface cable, which is often used as an interface of an information processing apparatus, comprises a cable having a predetermined connection and a pair of connectors provided at both ends thereof. However, there is also a system in which, for example, a plurality of slave units are connected to one master unit, and each slave unit transmits / receives data to / from the master unit. In such a system, the master unit and all the slave units are connected via a changeover switch at one end of the interface cable, and the connection destination is selected by the control of the switch. There is also a configuration in which a plurality of communication ports are provided in a master unit and each communication port is connected to a different slave unit through a different interface cable.

【0003】[0003]

【発明が解決しようとする課題】ところで、上記のよう
な従来のシリアルバスインタフェースには次のような解
決すべき課題があった。上記のように、1対Nの通信を
実現するために切換えスイッチを使用すると、そのスイ
ッチ切換え時に発生するノイズ対策が新たに必要とな
る。また、スイッチの構成によって切換え可能なポート
数も制限されてしまう。一方、予め親機の方に複数の通
信ポートを設ける方式では、親機と接続される子機が少
ない場合には通信ポートが無駄になり、多い場合には通
信ポートの数により制限されて親機と直接接続できない
子機が発生する。従って、いずれの場合おいても拡張性
が乏しいという問題があった。
The conventional serial bus interface as described above has the following problems to be solved. As described above, when the changeover switch is used to realize the 1-to-N communication, it is necessary to newly take measures against noise generated when the switch is changed over. Also, the number of ports that can be switched is limited by the configuration of the switch. On the other hand, in the method in which a plurality of communication ports are provided in advance on the master unit, the communication ports are wasted when the number of slave units connected to the master unit is small, and when there are many slave units, the master port is limited by the number of communication ports. There is a child device that cannot be directly connected to the device. Therefore, in any case, there is a problem that the expandability is poor.

【0004】[0004]

【課題を解決するための手段】本発明は以上の点を解決
するため次の構成を採用する。本発明のバスインタフェ
ースは、親機と複数の子機とを、各子機に設けられた分
岐回路を介して、順に直列に接続する。分岐回路には、
親機から子機に対して伝送されるデータを受け入れる入
力ポートと、この入力ポートを介して、親機から自己に
対して伝送されるデータを受け入れる出力ポートと、入
力ポートを介して、親機から他の子機に対して伝送され
るデータをそのまま後続子機へ転送する出力ポートと、
自己から親機に対して伝送されるデータを入力する入力
ポートと、他の子機から親機に対して伝送されるデータ
を受け入れる入力ポートと、これらの入力ポートを介し
て、子機から親機に対して伝送されるデータを出力する
出力ポートとを備える。
The present invention employs the following structure to solve the above problems. The bus interface of the present invention sequentially connects a master unit and a plurality of slave units in series via a branch circuit provided in each slave unit. In the branch circuit,
An input port that accepts data transmitted from the master unit to the slave unit, an output port that accepts data transmitted from the master unit to itself via this input port, and a master unit via the input port An output port that transfers the data transmitted from the other device to the succeeding device as it is,
An input port for inputting the data transmitted from itself to the master unit, an input port for receiving the data transmitted from other slave units to the master unit, and the slave unit from the slave unit via these input ports. And an output port for outputting data transmitted to the machine.

【0005】また、別のバスインタフェースは、親機と
複数の子機とを、各子機に設けられた分岐回路を介し
て、順に直列に接続する。分岐回路には、親機から子機
に対して伝送される制御信号を受け入れる入力ポート
と、この入力ポートを介して、親機から自己に対して伝
送される制御信号を受け入れる出力ポートと、入力ポー
トを介して、親機から他の子機に対して伝送される制御
信号をそのまま後続子機へ転送する出力ポートと、自己
から親機に対して伝送される制御信号を入力する入力ポ
ートと、他の子機から親機に対して伝送される制御信号
を受け入れる入力ポートと、これらの入力ポートを介し
て、子機から親機に対して伝送される制御信号を出力す
る出力ポートとを備え、複数の子機から親機に対して伝
送される制御信号が競合したとき、いずれの子機からの
制御信号が先に分岐回路に入力したかを判定して、分岐
回路内で生成した応答信号を、先に制御信号が入力した
子機に返す競合調整回路を備える。
Further, another bus interface connects a master unit and a plurality of slave units in series in order via a branch circuit provided in each slave unit. The branch circuit has an input port that receives the control signal transmitted from the master unit to the slave unit, an output port that receives the control signal transmitted from the master unit to itself via this input port, and an input port. An output port that transfers the control signal transmitted from the master unit to another slave unit through the port to the succeeding slave unit as it is, and an input port that inputs the control signal transmitted from itself to the master unit. , An input port that accepts control signals transmitted from other slave units to the master unit, and an output port that outputs control signals transmitted from the slave units to the master unit via these input ports. When the control signals transmitted from multiple slave units to the master unit compete with each other, it is determined which control signal from the slave unit is input to the branch circuit first, and the control signal is generated in the branch circuit. The response signal comes first, the control signal Comprising a conflict adjustment circuit to return to the force the handset.

【0006】[0006]

【作用】親機はインタフェースケーブルを介して最初の
子機と接続される。最初の子機には分岐回路が設けら
れ、そのポートP1に親機が接続される。また、残りの
2個のポートのうち一方のポートP3は最初の子機の内
部回路に接続され、残りのポートP2は次の子機に接続
される。親機からのデータは最初の子機と次の子機に同
時に転送される。最初の子機から出力されるデータと次
の子機から出力されるデータは、それぞれポートP2,
P3から入力し、ポートP1を介して共に親機に伝送さ
れる。こうして、分岐回路を介して複数の子機が順に直
列に接続され、いずれも分岐回路を介して親機とデータ
の送受信を行う。分岐回路によって子機は自由に増設し
たり削除できる。しかも、親機には通信ポートは1個で
よく、子機は全て外部に対し2個の通信ポートを持てば
よい。
Operation: The master unit is connected to the first slave unit via the interface cable. A branch circuit is provided in the first child device, and the parent device is connected to the port P1. One of the remaining two ports, P3, is connected to the internal circuit of the first slave unit, and the remaining port, P2, is connected to the next slave unit. The data from the master unit is transferred to the first slave unit and the next slave unit at the same time. The data output from the first slave unit and the data output from the second slave unit are respectively set to ports P2 and P2.
It is input from P3 and is transmitted to the master unit together through the port P1. In this way, a plurality of slave units are sequentially connected in series via the branch circuit, and each transmits / receives data to / from the master unit via the branch circuit. The branch circuit allows you to add or remove slave units freely. Moreover, the master unit may have only one communication port, and all the slave units may have two communication ports to the outside.

【0007】[0007]

【実施例】以下、本発明を図の実施例を用いて詳細に説
明する。図1は、本発明のバスインタフェース実施例を
示すブロック図である。この図には、RS232C規格
利用装置である親機10と、この親機10に対しデータ
の送受信を行う複数の子機11(1)〜11(n)が示
されている。各子機11(1)〜11(n)には、それ
ぞれ同一の構成の分岐回路13が設けられている。各分
岐回路13には3個のポートP1,P2,P3が設けら
れている。例えば、最初の子機11(1)の分岐回路1
3ではポート1が親機10とケーブル12を介して接続
されている。ケーブル12はRS232Cインタフェー
スである。また、ポート2は次の子機11(2)とケー
ブル12を介して接続されている。残りのポートP3
は、自己の内部RS232C規格利用回路14に接続さ
れている。他の子機についても全く同様の接続であっ
て、残りの子機11(2)〜11(n−1)は、いずれ
もポートP1が直前の子機とケーブル12を介して接続
され、ポートP2が後続する子機とケーブル12を介し
て接続されている。最後の子機11(N)はポートP1
を直前の子機11(N−1)とケーブル12を介して接
続しており、ポートP2は開放されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the embodiments shown in the drawings. FIG. 1 is a block diagram showing a bus interface embodiment of the present invention. In this figure, a master device 10 which is an RS232C standard utilizing device and a plurality of slave devices 11 (1) to 11 (n) which transmit and receive data to and from the master device 10 are shown. A branch circuit 13 having the same configuration is provided in each of the child devices 11 (1) to 11 (n). Each branch circuit 13 is provided with three ports P1, P2, P3. For example, the branch circuit 1 of the first child device 11 (1)
3, the port 1 is connected to the master device 10 via the cable 12. The cable 12 is an RS232C interface. The port 2 is connected to the next child device 11 (2) via the cable 12. Remaining port P3
Is connected to its own internal RS232C standard utilization circuit 14. The other slaves are connected in exactly the same manner, and in the remaining slaves 11 (2) to 11 (n-1), the port P1 is connected to the immediately preceding slave through the cable 12, P2 is connected to the succeeding child device via the cable 12. The last cordless handset 11 (N) is port P1
Is connected to the immediately preceding slave 11 (N-1) via the cable 12, and the port P2 is open.

【0008】図2に、本発明のバスインタフェースの概
略動作説明図を示す。図の(a)は、本発明のバスイン
タフェースであって、(b)、(c)、(d)は3種類
の比較例を示している。(a)に示す本発明の場合に
は、先に説明したように、親機10に対し子機11
(1)〜11(n)がそれぞれケーブル12と分岐回路
13によって直列に順に接続されている。そして、各子
機11(1)〜11(n)はこれらのケーブル12や分
岐回路13を介して親機10と相互に制御信号やデータ
の送受信ができる構成となっている。
FIG. 2 shows a schematic operation explanatory diagram of the bus interface of the present invention. (A) of the figure shows the bus interface of the present invention, and (b), (c), and (d) show three types of comparative examples. In the case of the present invention shown in (a), as described above, the main unit 10 and the slave unit 11 are
(1) to 11 (n) are connected in series by a cable 12 and a branch circuit 13, respectively. Then, each of the slaves 11 (1) to 11 (n) is configured to be capable of transmitting / receiving control signals and data to / from the master 10 via the cable 12 and the branch circuit 13.

【0009】ここで、(b)に示す比較例1は従来の1
対1の接続を示し、1個の通信ポート16を持った情報
処理装置15がケーブル17によって接続されている。
このような構成のインタフェースを1対Nに適用しよう
とすれば、図2(c)、(d)に示すようになる。即
ち、(c)の例では、スイッチ18を介して1台の情報
処理装置15と3台の情報処理装置15とが相互に接続
されている。この場合、切換えスイッチ18を切り換え
ることによって、左側の情報処理装置15と右側のいず
れかの情報処理装置15とが接続されることになる。
Here, the comparative example 1 shown in FIG.
An information processing apparatus 15 having a communication port 16 is shown connected to the information processing apparatus 15 by a cable 17.
If the interface having such a configuration is applied to 1: N, the interfaces are as shown in FIGS. 2 (c) and 2 (d). That is, in the example of (c), one information processing device 15 and three information processing devices 15 are mutually connected via the switch 18. In this case, by switching the changeover switch 18, the information processing device 15 on the left side and one of the information processing devices 15 on the right side are connected.

【0010】(d)に示す例は、左側の情報処理装置1
9に3個の通信ポート16を設け、各通信ポートと右側
の情報処理装置15とをそれぞれ別々のケーブル17に
よって接続した例を示している。この例では、左側の情
報処理装置19に右側の情報処理装置の数に相当する通
信ポートが必要となる。この(c)、(d)に示す例と
(a)に示す例とを比較すれば、本発明の装置の構成は
簡略になり、しかも本発明の装置の場合には子機を直列
接続することによって、子機11の数を自由に増減でき
るという効果がある。
The example shown in (d) is the information processing device 1 on the left side.
9 shows an example in which three communication ports 16 are provided, and each communication port and the information processing device 15 on the right side are connected by separate cables 17. In this example, the information processing device 19 on the left side requires communication ports corresponding to the number of information processing devices on the right side. If the examples shown in (c) and (d) are compared with the example shown in (a), the configuration of the device of the present invention is simplified, and in the case of the device of the present invention, the slave units are connected in series. Thus, there is an effect that the number of child devices 11 can be freely increased or decreased.

【0011】図3には、分岐回路の説明図を示す。上記
実施例に示した分岐回路は、具体的にはこのような構成
となる。図の(a)に示すように、分岐回路13は、親
機10と最初の子機11及び他の子機とを相互に接続す
る。この分岐回路13は、親機10からデータを子機1
1及び他の子機へ伝送する上流から下流へ向かうデータ
伝送機能と、子機11から出力されるデータや他の子機
から出力されるデータを親機10に向かって伝送する下
流から上流へ向かうデータ伝送機能とを持つ。図3
(b)に示すのは、上流から下流に向かってデータ伝送
を行う下り部21の具体的な結線図である。また、
(c)は下流から上流に向かってデータを伝送する上り
部22の結線図である。下り部21はポートP1から入
力する信号をインバータ23により反転し、更にインバ
ータ24によって反転してポートP2に出力すると共
に、インバータ25を用いて反転して出力ポートP3に
出力する構成となっている。即ち、この回路は、ポート
P1に入力する信号をそのままポートP2あるいはポー
トP3に出力する構成となっている。なお、一般には信
号の入力側のインバータ23をレシーバ、出力側のイン
バータ24,25をドライバと呼んでいるが、ディジタ
ル信号のレベルが問題となるので、以下では全てインバ
ータと呼ぶことにする。
FIG. 3 shows an explanatory diagram of the branch circuit. The branch circuit shown in the above embodiment has such a configuration. As shown in (a) of the figure, the branch circuit 13 connects the master device 10, the first slave device 11, and another slave device to each other. This branch circuit 13 receives data from the master device 10 and the slave device 1
1 and the data transmission function of transmitting from the upstream to the downstream of the other handset, and the data transmitted from the handset 11 and the data of the other handset to the base unit 10 from the downstream to the upstream. With the data transmission function to go. FIG.
Shown in (b) is a specific connection diagram of the downlink unit 21 that performs data transmission from upstream to downstream. Also,
(C) is a connection diagram of the upstream section 22 that transmits data from downstream to upstream. The down-link unit 21 is configured to invert the signal input from the port P1 by the inverter 23, further invert it by the inverter 24 and output it to the port P2, and invert it using the inverter 25 to output it to the output port P3. . That is, this circuit is configured to output the signal input to the port P1 to the port P2 or the port P3 as it is. In general, the signal input side inverter 23 is called a receiver and the output side inverters 24 and 25 are called drivers. However, since the level of a digital signal causes a problem, they are all called inverters below.

【0012】なお、この図に示すように、ポートP1に
入力する信号を1−SD、ポートP2から出力される信
号を2−RD、ポートP3から出力される信号を3−R
Dと表示した。この信号の内容については後で説明す
る。(c)に示す上り部22は、ポートP2から入力す
る信号を反転するインバータ26とポートP3から入力
する信号を反転するインバータ27を備える。インバー
タ26とインバータ27の出力は、アンドゲート28を
介してインバータ29に入力し反転されてポートP1に
出力される構成となっている。なお、ここでポートP2
に入力する信号は2−SD、ポートP3に入力する信号
を3−SD、ポートP1から出力される信号を1−RD
と表示した。
As shown in the figure, the signal input to the port P1 is 1-SD, the signal output from the port P2 is 2-RD, and the signal output from the port P3 is 3-R.
Labeled D. The contents of this signal will be described later. The upstream section 22 shown in (c) includes an inverter 26 that inverts a signal input from the port P2 and an inverter 27 that inverts a signal input from the port P3. The outputs of the inverter 26 and the inverter 27 are input to the inverter 29 via the AND gate 28, inverted, and output to the port P1. In addition, here port P2
2-SD, the signal input to port P3 is 3-SD, the signal output from port P1 is 1-RD
Displayed.

【0013】図4は、分岐回路の動作説明図である。こ
の図の(a)は信号の内容を具体的に表示したもので、
(b)は親機から子機へのデータ伝送を行う下り部21
の信号内容説明図、図4(c)は子機から親機に向かっ
て伝送されるデータに対する上り部22の信号説明図で
ある。図4(b)に示すように、親機から分岐回路に入
力する信号1−SDは“1”あるいは“0”の値をと
る。これに対してポートP2の出力信号2−RDとポー
トP3の出力信号3−RDは、いずれもポートP1に入
力する信号と同一の値をとる。この結果を図に示してい
る。
FIG. 4 is an explanatory diagram of the operation of the branch circuit. (A) of this figure shows the contents of the signal concretely.
(B) is a downlink unit 21 that performs data transmission from the master unit to the slave unit.
4C is an explanatory diagram of signals of the upstream section 22 for data transmitted from the slave unit to the master unit. As shown in FIG. 4B, the signal 1-SD input from the parent device to the branch circuit has a value of "1" or "0". On the other hand, the output signal 2-RD of the port P2 and the output signal 3-RD of the port P3 both take the same value as the signal input to the port P1. The results are shown in the figure.

【0014】また、(c)に示すように、ポートP2か
ら入力する信号2−SDは“0”または“1”の値をと
り、ポートP3から入力する信号3−SDは同様に
“0”または“1”の値をとる。両者の組合せを考慮し
4種類のケースを図4(c)に示している。それぞれの
場合に、ポートP1から出力される信号1−RDは図に
示すようになる。即ち、ポートP2とポートP3に入力
する信号がいずれも“0”の場合のみ、ポートP1にそ
の内容が“0”の信号が出力され、その他の場合にはポ
ートP1に必ず“1”の信号が出力する。従って、図4
(c)に示す回路は下流から上流に向かう信号をそのま
ま論理和処理をして出力する構成となっている。
Further, as shown in (c), the signal 2-SD input from the port P2 takes a value of "0" or "1", and the signal 3-SD input from the port P3 is also "0". Alternatively, it takes a value of "1". Four types of cases are shown in FIG. 4C in consideration of the combination of both. In each case, the signal 1-RD output from the port P1 is as shown in the figure. That is, a signal whose content is "0" is output to the port P1 only when the signals input to the port P2 and the port P3 are both "0", and otherwise a signal of "1" is output to the port P1. Will output. Therefore, FIG.
The circuit shown in (c) is configured to output the signal going from the downstream side to the upstream side as it is.

【0015】このような分岐回路の機能によって、図1
に示すように、互いに直列に接続された子機11(1)
〜11(n)に対して親機10から送信されるデータ
が、全ての子機に達し、各子機11(1)〜11(n)
から親機10に対して送信されるデータは必ず親機10
に入力する。なお、このような状態でも、親機10に対
してデータ送信できる子機は同時刻に1台のみである。
従って、2台以上の子機によるデータ送信の競合は防止
しなければならない。そこで、例えば、親機と子機とが
よく知られたポーリングセレクティング方式を用い、親
機により指定された子機のみが許可を受けてデータを送
信できるようにする。また、あるいはデータの衝突が発
生した場合には、これを認識して検出し、そのデータを
無効としたり訂正する処理を行うことになる。この機能
を親機側に設けておけば、上記のバスインタフェースを
有効に利用できる。この他、親機から各子機を区別する
ために、各子機に一定のアドレスを設定しておき、親機
と子機との通信との際、アドレスマッチをとるといった
ソフトウェア補助手段を設けるようにすればよい。
Due to the function of such a branch circuit, FIG.
As shown in FIG. 11, the slave units 11 (1) connected in series with each other
To 11 (n), the data transmitted from the master unit 10 reaches all the slave units, and each slave unit 11 (1) to 11 (n).
The data transmitted from the master device 10 to the master device 10 is always
To enter. Even in such a state, only one slave can transmit data to the master 10 at the same time.
Therefore, it is necessary to prevent contention of data transmission between two or more slave units. Therefore, for example, a well-known polling selection method is used for the master unit and the slave unit so that only the slave unit designated by the master unit is allowed to transmit data. Further, or when data collision occurs, it is recognized and detected, and processing for invalidating or correcting the data is performed. If this function is provided on the base unit side, the above-mentioned bus interface can be effectively used. In addition to this, in order to distinguish each slave unit from the master unit, a fixed address is set in each slave unit, and software assisting means is provided for performing an address match during communication between the master unit and slave unit. You can do it like this.

【0016】上記の他に、例えば分岐回路中のRS23
2Cドライバレシーバとなる各インバータを削除し、電
気的仕様をTTLレベルにすることも可能である。ま
た、分岐回路中のポートP3のインタフェースをTTL
とし、子機内のRS232C回路との通信レベルをTT
Lとすることによって、子機の内部回路と分岐回路との
接続をTTLレベルで行い、回路の簡略化を図ってもよ
い。なお、上記のような下り部21と上り部22の数や
組合せは、RS232Cのインタフェース仕様によって
定められたように選択されるものとする。
In addition to the above, for example, RS23 in a branch circuit
It is also possible to delete each inverter that serves as a 2C driver receiver and set the electrical specifications to the TTL level. Also, the interface of the port P3 in the branch circuit is set to TTL.
And set the communication level with the RS232C circuit in the cordless handset to TT
By setting to L, the internal circuit of the slave unit and the branch circuit may be connected at the TTL level to simplify the circuit. It is assumed that the number and combination of the above-described downlink section 21 and uplink section 22 are selected as determined by the interface specifications of RS232C.

【0017】図5には、本発明のバスインタフェース変
形例ブロック図を示す。この実施例では、図1に示した
装置に新たに子機制御回路5が加えられている。即ち、
この子機制御回路5は、親機10と1番目の子機11
(1)を接続するケーブル12の中に挿入されている。
この子機制御回路5は、子機側から出た送信要求のため
の制御信号が入力した場合に、親機から出力されるべき
データ受信可能信号を生成して子機側に返す回路で、自
動的に応答信号を返すための一般的によく知られている
回路である。
FIG. 5 shows a block diagram of a modification of the bus interface of the present invention. In this embodiment, a slave unit control circuit 5 is newly added to the device shown in FIG. That is,
The slave unit control circuit 5 includes a master unit 10 and a first slave unit 11.
It is inserted in the cable 12 connecting (1).
The slave unit control circuit 5 is a circuit that generates a data receivable signal to be output from the master unit and returns it to the slave unit when a control signal for a transmission request output from the slave unit side is input. It is a generally well-known circuit for automatically returning a response signal.

【0018】なお、上記分岐回路には先に説明したよう
なデータの転送用回路の他に、更に制御信号分岐部が設
けられている。図6には、このような制御信号分岐部の
結線図を示す。この制御信号分岐部も、データ伝送用の
分岐回路と全く同様にポートP1,P2,P3を備えて
いる。ポートP1は親機側に接続され、ポートP2は他
の子機側に接続され、ポートP3は自己の子機に接続さ
れている。
The branch circuit is further provided with a control signal branch section in addition to the data transfer circuit described above. FIG. 6 shows a connection diagram of such a control signal branching unit. This control signal branching unit also has ports P1, P2 and P3, just like the branching circuit for data transmission. The port P1 is connected to the master unit side, the port P2 is connected to another slave unit side, and the port P3 is connected to its own slave unit.

【0019】この回路には、ポートP1から入力する親
機からの制御信号を反転するインバータ31と、この信
号をポートP2に出力するためのアンドゲート32と、
ポートP3に出力するためのアンドゲート34と、アン
ドゲート32の出力を反転してポートP2に送るインバ
ータ33と、アンドゲート34の出力する信号を反転し
てポートP3に出力するインバータ35を備えている。
また、子機から親機に向かって送信される制御信号を伝
送するために、ポートP2から入力する信号を反転する
インバータ36と、ポートP3から入力する信号を反転
するインバータ37が設けられている。両インバータ3
6,37の出力は、アンドゲート38に入力し、その出
力はインバータ39で反転されてポートP1に出力する
ように構成されている。
In this circuit, an inverter 31 for inverting the control signal from the master unit input from the port P1, an AND gate 32 for outputting this signal to the port P2,
An AND gate 34 for outputting to the port P3, an inverter 33 that inverts the output of the AND gate 32 and sends it to the port P2, and an inverter 35 that inverts the signal output from the AND gate 34 and outputs it to the port P3. There is.
Further, an inverter 36 for inverting a signal input from the port P2 and an inverter 37 for inverting a signal input from the port P3 are provided to transmit a control signal transmitted from the child device to the parent device. . Both inverters 3
The outputs of 6 and 37 are input to the AND gate 38, and the outputs thereof are inverted by the inverter 39 and output to the port P1.

【0020】更に、この回路にはインバータ36と37
の出力を受け入れて競合調整のための信号を生成し、ア
ンドゲート32と34とを開閉制御する競合調整回路4
0が設けられている。この競合調整回路40は、1対の
ナンドゲート41,42を組み合わせ、一方の出力を他
方の出力に受け入れることによって、一定の信号を出力
するよく知られた結線となっている。これによって、ポ
ートP2あるいはポートP3から送信要求信号が親機に
向けて入力した場合に、親機から応答として返される応
答信号を、その要求を出したポート方向にのみ出力する
ようにアンドゲート32,34が制御される。
In addition, the circuit includes inverters 36 and 37.
Contention adjustment circuit 4 for receiving the output of the AND gate, generating a signal for contention adjustment, and controlling the opening and closing of the AND gates 32 and 34.
0 is provided. The competition adjustment circuit 40 has a well-known connection that outputs a constant signal by combining a pair of NAND gates 41 and 42 and receiving one output from the other output. Thus, when the transmission request signal is input from the port P2 or the port P3 to the master device, the AND gate 32 outputs the response signal returned as a response from the master device only to the port that issued the request. , 34 are controlled.

【0021】図7には、制御信号分岐の動作説明図を示
す。この図の(a)は先に説明した各ポートの入出力信
号を示し、(b)と(c)とは、競合調整回路の動作説
明図を示す。図に示すように、競合調整回路40は、一
方の子機例えばポートP2側の子機から送信要求がある
と、その子機側のアンドゲート32を開放する一方で他
の子機側のアンドゲート34を閉じる。これによって、
図の(b)に示した通り、送信要求をした子機側にの
み、親機側から応答信号が転送される。(c)は、ポー
トP3側の子機から送信要求があった場合の例を示し、
今度はアンドゲート34を開放する一方でアンドゲート
32を閉じる。
FIG. 7 shows an operation explanatory diagram of the control signal branch. In the figure, (a) shows the input / output signals of the respective ports described above, and (b) and (c) show operation explanatory diagrams of the competition adjustment circuit. As shown in the figure, the contention adjusting circuit 40 opens the AND gate 32 on the side of the other handset when the transmission request is made from one of the handset, for example, the handset on the side of the port P2, while opening the AND gate 32 on the other side. Close 34. by this,
As shown in (b) of the figure, the response signal is transferred from the parent device side only to the child device side that has made the transmission request. (C) shows an example of a case where there is a transmission request from the slave unit on the port P3 side,
This time, the AND gate 34 is opened while the AND gate 32 is closed.

【0022】即ち、図5に示すように、1台の親機10
に対し複数台の子機11(1)〜11(n)を接続した
場合に、いずれかの子機から親機10に対しデータ転送
要求を行うと、図6に示す制御信号分岐部を介して親機
にそのデータ転送要求が伝わる。この場合に、図5に示
した子機制御回路5は、子機からのデータ転送要求信号
を受け入れて応答信号を生成しそのまま子機に返す。従
って、子機がデータ転送要求信号を出すと親機10によ
る判断や演算処理等を経ず、瞬時に応答が返される。こ
の場合の応答は図6に示す競合調整回路40によって転
送要求を出した子機に向かってのみ伝送される。従っ
て、他の子機には応答が入力しないことから、いずれか
1台の子機のみが親機に対してデータを転送できる。こ
こで、2台以上の子機が前後してデータ転送要求を出し
た場合を考える。この場合に、競合調整回路40は、最
先に要求信号が入力した側にのみ応答信号を転送するよ
う動作するため競合調整が可能となる。
That is, as shown in FIG.
In contrast, when a plurality of slave units 11 (1) to 11 (n) are connected to each other and a data transfer request is issued from any of the slave units to the master unit 10, the master is routed via the control signal branching unit shown in FIG. The data transfer request is transmitted to the machine. In this case, the slave unit control circuit 5 shown in FIG. 5 receives the data transfer request signal from the slave unit, generates a response signal, and returns it to the slave unit as it is. Therefore, when the child device issues a data transfer request signal, a response is returned instantly without the judgment and arithmetic processing by the parent device 10. The response in this case is transmitted only to the child device which has issued the transfer request by the contention adjusting circuit 40 shown in FIG. Therefore, since no response is input to other slaves, only one slave can transfer data to the master. Here, consider a case where two or more handset units issue data transfer requests one after another. In this case, the competition adjustment circuit 40 operates so as to transfer the response signal only to the side to which the request signal is input first, so that the competition adjustment can be performed.

【0023】本発明は以上の実施例に限定されない。上
記の例ではバスインタフェースとしてRS232Cイン
タフェースを例示したが、これは他のよく知られたバス
インタフェースに広く適用することが可能である。な
お、上記の実施例においても、親機が各子機を識別する
ために、各子機に対しアドレス識別用の他の符号等を付
けることが好ましい。また、上記の実施例は1対Nの通
信に対し本発明を利用する例を示したが、親機も複数で
子機も複数の場合にも同様の構成を採用することが可能
である。更に、競合調整回路は、同様の機能を持つもの
であればその結線は自由に変更可能である。
The present invention is not limited to the above embodiments. Although the RS232C interface is illustrated as the bus interface in the above example, it can be widely applied to other well-known bus interfaces. Also in the above embodiment, in order for the master to identify each slave, it is preferable to add another code for address identification to each slave. Further, although the above-described embodiment shows an example in which the present invention is used for one-to-N communication, a similar configuration can be adopted when there are a plurality of parent devices and a plurality of child devices. Further, the connection of the competition adjustment circuit can be freely changed as long as it has a similar function.

【0024】[0024]

【発明の効果】以上説明した本発明のバスインタフェー
スは、各子機に分岐回路を設け、親機から各分岐回路を
介して子機を直列に接続し、親機と子機との間のデータ
伝送や制御信号の送受信を可能にする構成としたので、
親機に多くの通信ポートを設けることなく、多数の子機
とのバス接続が可能となる。また、分岐回路に一定の競
合調整回路を設けることによって、最も早くデータ伝送
を要求した子機が親機に対しデータを送信することが可
能となり、子機を自由に増減でき、しかもデータ伝送の
競合を調整できるバスインタフェースとすることができ
る。
According to the bus interface of the present invention described above, a branch circuit is provided in each slave unit, and the slave units are connected in series from the master unit via each branch circuit so as to connect the master unit and the slave unit. Since it has a configuration that enables data transmission and reception of control signals,
A bus connection with a large number of child devices becomes possible without providing many communication ports in the parent device. Also, by providing a certain contention adjustment circuit in the branch circuit, it becomes possible for the slave unit that has requested the data transmission earliest to transmit data to the master unit. It can be a bus interface that can adjust contention.

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

【図1】本発明のバスインタフェースブロック図であ
る。
FIG. 1 is a block diagram of a bus interface of the present invention.

【図2】本発明のバスインタフェースの概略動作説明図
である。
FIG. 2 is a schematic operation explanatory diagram of a bus interface of the present invention.

【図3】分岐回路の説明図である。FIG. 3 is an explanatory diagram of a branch circuit.

【図4】分岐回路の動作説明図である。FIG. 4 is an operation explanatory diagram of a branch circuit.

【図5】本発明のバスインタフェース変形例ブロック図
である。
FIG. 5 is a block diagram of a modification of the bus interface of the present invention.

【図6】制御信号分岐部の結線図である。FIG. 6 is a connection diagram of a control signal branching unit.

【図7】制御信号分岐部の動作説明図である。FIG. 7 is an operation explanatory diagram of a control signal branching unit.

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

10 親機 11(1)〜11(N) 子機 12 ケーブル 13 分岐回路 14 内部RS232C規格利用回路 10 parent device 11 (1) to 11 (N) child device 12 cable 13 branch circuit 14 internal RS232C standard utilization circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 親機と複数の子機とを、各子機に設けら
れた分岐回路を介して、順に直列に接続するものであっ
て、 前記分岐回路には、 親機から子機に対して伝送されるデータを受け入れる入
力ポートと、 この入力ポートを介して、親機から自己に対して伝送さ
れるデータを受け入れる出力ポートと、 前記入力ポートを介して、親機から他の子機に対して伝
送されるデータをそのまま後続子機へ転送する出力ポー
トと、 自己から親機に対して伝送されるデータを入力する入力
ポートと、 他の子機から親機に対して伝送されるデータを受け入れ
る入力ポートと、 これらの入力ポートを介して、子機から親機に対して伝
送されるデータを出力する出力ポートとを備えたことを
特徴とするバスインタフェース。
1. A master unit and a plurality of slave units are sequentially connected in series via a branch circuit provided in each slave unit, wherein the branch circuit includes a master unit to a slave unit. An input port that receives data transmitted to the parent device, an output port that receives data transmitted from the parent device to itself via this input port, and an external port from the parent device via the input port Output port that directly transfers the data transmitted to the succeeding slave unit, an input port that inputs the data that is transmitted from itself to the master unit, and is transmitted from another slave unit to the master unit. A bus interface comprising an input port for receiving data and an output port for outputting data transmitted from a slave unit to a master unit via these input ports.
【請求項2】 親機と複数の子機とを、各子機に設けら
れた分岐回路を介して、順に直列に接続するものであっ
て、 前記分岐回路には、 親機から子機に対して伝送される制御信号を受け入れる
入力ポートと、 この入力ポートを介して、親機から自己に対して伝送さ
れる制御信号を受け入れる出力ポートと、 前記入力ポートを介して、親機から他の子機に対して伝
送される制御信号をそのまま後続子機へ転送する出力ポ
ートと、 自己から親機に対して伝送される制御信号を入力する入
力ポートと、 他の子機から親機に対して伝送される制御信号を受け入
れる入力ポートと、 これらの入力ポートを介して、子機から親機に対して伝
送される制御信号を出力する出力ポートとを備え、 複数の子機から親機に対して伝送される制御信号が競合
したとき、いずれの子機からの制御信号が先に分岐回路
に入力したかを判定して、分岐回路内で生成した応答信
号を、先に制御信号が入力した子機に返す競合調整回路
を備えたことを特徴とするバスインタフェース。
2. A master unit and a plurality of slave units are serially connected in series via a branch circuit provided in each slave unit, wherein the branch circuit is connected from the master unit to the slave units. An input port that receives a control signal transmitted to the master unit, an output port that receives a control signal transmitted from the master unit to the self unit via this input port, and another port from the master unit via the input port. An output port that transfers the control signal transmitted to the slave unit to the succeeding slave unit as it is, an input port that inputs the control signal transmitted from itself to the master unit, and another slave unit to the master unit. Equipped with input ports that accept control signals transmitted from the slave unit and output ports that output control signals transmitted from the slave unit to the master unit via these input ports. Control signals transmitted to each other competed Equipped with a competition adjustment circuit that determines which control signal from the slave unit is input to the branch circuit first and returns the response signal generated in the branch circuit to the slave unit to which the control signal was input first. Bus interface characterized by
JP18210295A 1995-06-26 1995-06-26 Bus interface Pending JPH0916517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18210295A JPH0916517A (en) 1995-06-26 1995-06-26 Bus interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18210295A JPH0916517A (en) 1995-06-26 1995-06-26 Bus interface

Publications (1)

Publication Number Publication Date
JPH0916517A true JPH0916517A (en) 1997-01-17

Family

ID=16112382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18210295A Pending JPH0916517A (en) 1995-06-26 1995-06-26 Bus interface

Country Status (1)

Country Link
JP (1) JPH0916517A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5879152A (en) * 1998-06-11 1999-03-09 Griffel; Giora Socketless drip preventing candle holder
US6152728A (en) * 1998-06-11 2000-11-28 The Candle Machine Co. Combined drip preventing and fragrance dispensing candle holder
US6264345B1 (en) 1998-06-11 2001-07-24 The Candle Machine Co Drip preventing candle holder with decorative follower providing auxiliary illumination
JP2018120558A (en) * 2017-01-27 2018-08-02 オムロン株式会社 Slave device, method for controlling slave device, master slave control system, and information processing program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5879152A (en) * 1998-06-11 1999-03-09 Griffel; Giora Socketless drip preventing candle holder
US6152728A (en) * 1998-06-11 2000-11-28 The Candle Machine Co. Combined drip preventing and fragrance dispensing candle holder
US6264345B1 (en) 1998-06-11 2001-07-24 The Candle Machine Co Drip preventing candle holder with decorative follower providing auxiliary illumination
JP2018120558A (en) * 2017-01-27 2018-08-02 オムロン株式会社 Slave device, method for controlling slave device, master slave control system, and information processing program
US11762359B2 (en) 2017-01-27 2023-09-19 Omron Corporation Slave apparatus, control method of slave apparatus, master-slave control system, and recording medium that records information processing program

Similar Documents

Publication Publication Date Title
JPH02156750A (en) Multiplex access control method and multiplex access control system executing same
US4628308A (en) Communication network having a master-slave type series architecture and providing master-to-slave and slave-to-master communication
JPH0916517A (en) Bus interface
JP2006304011A (en) Interface circuit
US5117419A (en) System for controlling data transmission and reception in a network
JP3068125B2 (en) Bus type optical transmission line communication station
JP2833801B2 (en) Data multiplex transfer method
JPH09181750A (en) Data processing system
JP2582455B2 (en) Communication control device
JP2680200B2 (en) Communication control device
JP2574773B2 (en) Priority selection method
JP3067159B2 (en) Method and apparatus for controlling signal direction of packet switching apparatus
JP2615815B2 (en) Priority control method
JPS6295654A (en) Transmission system for asynchromous data
JPS62286152A (en) Controller for input and output device
JPH0225962A (en) Inter-processor communication system by serial transmission
JPH04336726A (en) Data transmitter
JPS6074848A (en) Serial data transfer system
JP2616010B2 (en) Packet network
JP2003018190A (en) Atm communication controller
JP2000057086A (en) Bus connector
JPH06266656A (en) Bus communication equipment
JPS62123541A (en) Control system for reception data buffer
JPH04175088A (en) Bi-directional signal transmitter/receiver
KR19980023437A (en) Packet transmission structure that can be transmitted in full duplex