JPH0879225A - Data communication system and data communication method - Google Patents

Data communication system and data communication method

Info

Publication number
JPH0879225A
JPH0879225A JP6210259A JP21025994A JPH0879225A JP H0879225 A JPH0879225 A JP H0879225A JP 6210259 A JP6210259 A JP 6210259A JP 21025994 A JP21025994 A JP 21025994A JP H0879225 A JPH0879225 A JP H0879225A
Authority
JP
Japan
Prior art keywords
data
data communication
transfer direction
transmission
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP6210259A
Other languages
Japanese (ja)
Inventor
Nobuaki Matsui
信明 松井
Katsuhiko Yanagawa
勝彦 柳川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP6210259A priority Critical patent/JPH0879225A/en
Publication of JPH0879225A publication Critical patent/JPH0879225A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Bidirectional Digital Transmission (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE: To provide a data communication system capable of performing bidirectional data transfer by one data signal line. CONSTITUTION: Master communication equipment connected to one data communication line outputs a transfer direction bit 212 for instructing the transfer direction of communication data following the output of a start bit 211 to the data communication line and the master communication equipment or a slave communication equipment receives transfer data from the data communication line or outputs transmission data to the data communication line as needed corresponding to the level (instruction) of the transfer direction bit. Then, a data transmission side equipment outputs a stop bit 214 when the transmission of the data is ended.

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 and method, and more particularly to a data communication system and method for performing serial data communication.

【0002】[0002]

【従来の技術】従来、シリアルデータ通信を行う装置
は、通信装置Aから通信装置Bへデータを転送する信号
線と、通信装置Bから通信装置Aへデータを転送する信
号線とで互いに接続されており、このように2本の通信
線で接続することにより、双方向のデータ転送を実現し
ている。
2. Description of the Related Art Conventionally, devices for performing serial data communication are connected to each other by a signal line for transferring data from the communication device A to the communication device B and a signal line for transferring data from the communication device B to the communication device A. Thus, bidirectional data transfer is realized by connecting the two communication lines in this manner.

【0003】[0003]

【発明が解決しようとしている課題】しかしながら、上
記した従来例では通信装置を接続するために2本以上の
信号線を必要とするため、線材のコストが高かった。
However, in the above-mentioned conventional example, since the two or more signal lines are required to connect the communication device, the cost of the wire rod is high.

【0004】[0004]

【課題を解決するための手段】本発明波上述した課題を
解決するためになされたもので、上述の課題を解決する
一手段として以下の構成を備える。即ち、1本のデータ
通信線に少なくとも2台のデータ通信装置を接続してな
るデータ通信システムであって、前記データ通信線に接
続された少なくとも1台のデータ通信装置に、前記デー
タ通信線への通信データの転送方向を指示するデータ転
送方向指示を前記データ通信線に出力する送信指示手段
と、前記送信指示手段による指示に従い必要に応じて前
記データ通信線よりの転送データを受信するかあるいは
前記データ通信線に送信データを出力する第1のデータ
送受信手段とを備え、前記出た通信線に接続された他の
データ通信装置に、前記データ通信線よりの前記データ
転送方向指示を判断する判断手段と、前記判断手段の判
断結果に従って必要に応じて前記データ通信線に出力デ
ータを出力するかあるいは前記データ通信線よりの転送
データを受信する第2のデータ送受信手段とを備えるこ
とを特徴とする。
The present invention has been made in order to solve the above-mentioned problems, and has the following structure as one means for solving the above-mentioned problems. That is, a data communication system in which at least two data communication devices are connected to one data communication line, wherein at least one data communication device connected to the data communication line is connected to the data communication line. Transmission instruction means for outputting a data transfer direction instruction for instructing the transfer direction of the communication data to the data communication line, and receiving the transfer data from the data communication line as necessary according to the instruction by the transmission instruction means, or A first data transmission / reception unit for outputting transmission data to the data communication line, and determining to the other data communication device connected to the output communication line the data transfer direction instruction from the data communication line. Depending on the judgment means and the judgment result of the judgment means, the output data is output to the data communication line as necessary or is transferred from the data communication line. Characterized in that it comprises a second data transmitting and receiving means for receiving data.

【0005】そして例えば、データ通信線に対するデー
タ通信はシリアルデータ通信であり、前記送信指示手段
によるデータ転送方向指示はデータ転送方向を示すレベ
ル信号であることを特徴とする。そして、前記送信指示
手段はスタートビットに続いて前記データ転送方向指示
を示す転送方向ビットを出力するものであることを特徴
とする。
For example, the data communication to the data communication line is serial data communication, and the data transfer direction instruction by the transmission instructing means is a level signal indicating the data transfer direction. The transmission instructing means outputs a transfer direction bit indicating the data transfer direction instruction after the start bit.

【0006】また例えば、前記第1のデータ送受信手段
は、前記送信指示手段による転送方向ビットの出力に引
き続いて送信データの出力を行い、データ出力終了後ス
トップビットを出力することを特徴とし、前記第2のデ
ータ送受信通信手段は自装置よりのデータ送信時には前
記送信指示手段による転送方向ビットの受信に引き続い
て送信データの出力を行い、データ出力終了後ストップ
ビットを出力することを特徴とする。そして前記スター
トビット及び転送方向ビット、ストップビットは略同じ
時間出力されることを特徴とする。
Further, for example, the first data transmitting / receiving means outputs the transmission data following the output of the transfer direction bit by the transmission instructing means, and outputs a stop bit after the end of the data output. The second data transmission / reception communication means is characterized in that, at the time of data transmission from the own device, the transmission data is output following the reception of the transfer direction bit by the transmission instruction means, and the stop bit is output after the data output is completed. The start bit, the transfer direction bit, and the stop bit are output at substantially the same time.

【0007】[0007]

【作用】以上の構成を備えることにより、データの通信
に先立ってデータ転送方向指示を行うことにより、デー
タ通信方向の制御が行えるため、1本のデータ信号線に
より双方向のデータ転送を可能としている。
With the above structure, the direction of the data communication can be controlled by instructing the data transfer direction prior to the data communication, so that the bidirectional data transfer can be performed by one data signal line. There is.

【0008】[0008]

【実施例】以下、図面を参照して本発明に係る一実施例
を詳細に説明する。図1は本発明に係る一実施例の構成
を示すブロック図である。ここでは2つの通信装置を区
別するために、一方をマスタ通信装置110、他方をス
レーブ通信装置120と呼ぶ。 本実施例におけるマス
タ通信装置110とスレーブ通信装置120間のデータ
通信で用いられる通信フォーマット及び信号線101上
における通信データの信号レベルの例を図2に示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an embodiment according to the present invention. Here, in order to distinguish the two communication devices, one is called a master communication device 110 and the other is called a slave communication device 120. FIG. 2 shows an example of the communication format used in the data communication between the master communication device 110 and the slave communication device 120 and the signal level of the communication data on the signal line 101 in the present embodiment.

【0009】図2に示すように、本実施例の通信フォー
マットは、スタートビット211、転送方向ビット21
2、データチェックビットを含む転送データ213、ス
トップビット214よりなる。即ち、本実施例において
は、通常の通信フォーマットに加え、転送方向を示す転
送方向ビット212を付加し、この転送方向ビット21
2が”ハイレベル”の場合にはスレーブ通信装置120
よりマスタ通信装置110へのデータ転送であることを
示し、転送方向ビット212が”ローレベル”の場合に
はマスタ通信装置110よりスレーブ通信装置120へ
のデータ転送であることを示している。従って、本実施
例においては、この転送方向ビット212を調べること
によりいずれの装置より送られてきたデータかを認識す
ることができ、1本のデータ通信線で相方向通信を行う
ことができる。
As shown in FIG. 2, the communication format of this embodiment has a start bit 211 and a transfer direction bit 21.
2. Transfer data 213 including data check bits and stop bits 214. That is, in this embodiment, a transfer direction bit 212 indicating the transfer direction is added to the normal communication format, and the transfer direction bit 21 is added.
When 2 is "high level", the slave communication device 120
It indicates that the data is transferred to the master communication device 110. When the transfer direction bit 212 is "low level", the data is transferred from the master communication device 110 to the slave communication device 120. Therefore, in this embodiment, by checking the transfer direction bit 212, it is possible to recognize from which device the data has been sent, and it is possible to carry out the phase direction communication using one data communication line.

【0010】マスタ通信装置110の制御回路111
は、データを送信する必要が生じると内部信号線114
を経由して送信レジスタ112にスタートビット21
1、転送方向ビット212、データチェックビットを含
む転送データ213、ストップビット214を送信レジ
スタ112に格納する。その後、制御回路111が内部
信号線115を経由して送信レジスタ112にシリアル
クロックを印加することでデータ転送が開始される。
Control circuit 111 of master communication device 110
Internal signal line 114 when data needs to be transmitted.
Start bit 21 is sent to the transmission register 112 via
1, the transfer direction bit 212, the transfer data 213 including the data check bit, and the stop bit 214 are stored in the transmission register 112. After that, the control circuit 111 applies a serial clock to the transmission register 112 via the internal signal line 115 to start data transfer.

【0011】送信レジスタ112にシリアルクロックが
印加されると、送信レジスタ112はオープンドレイン
(もしくはオープンコレクタ)の出力バッファ113を
経由してセットされた送信データをの出力を開始する。
まず最初にスタートビットを通信信号線101に出力す
る。通信信号線101から入力バッファ127、内部信
号線130を経由してスタートビットを受信したスレー
ブ通信装置120の制御回路121は、受信動作を開始
する。続いて送信レジスタ112が転送方向ビット21
2をオープンドレイン出力バッファ113を経由して通
信信号線101に乗せると、制御回路121は入力バッ
ファ127、内部信号線130を経由してこの転送方向
ビット212を受信し、データの転送方向を判断する。
When a serial clock is applied to the transmission register 112, the transmission register 112 starts to output the transmission data set via the open drain (or open collector) output buffer 113.
First, a start bit is output to the communication signal line 101. Upon receiving the start bit from the communication signal line 101 via the input buffer 127 and the internal signal line 130, the control circuit 121 of the slave communication device 120 starts the receiving operation. Then, the transmission register 112 sets the transfer direction bit 21.
When 2 is placed on the communication signal line 101 via the open drain output buffer 113, the control circuit 121 receives the transfer direction bit 212 via the input buffer 127 and the internal signal line 130, and determines the data transfer direction. To do.

【0012】データ転送方向がマスタ通信装置110か
らスレーブ通信装置120への転送であった場合には、
制御回路121は受信レジスタ126に内部信号線12
9を経由してシリアルクロックを印加し、その後転送さ
れてくる転送データ213を受信する。即ち、送信レジ
スタ112が転送方向ビットを送信した後、転送データ
をオープンドレイン出力バッファ113を経由して通信
信号線101に乗せると、入力バッファ127を経由し
て受信レジスタ126にデータが格納される。受信レジ
スタ126に格納されたシリアル受信データは、パラレ
ルデータとして内部信号線128より取り出すことがで
きる。
When the data transfer direction is from the master communication device 110 to the slave communication device 120,
The control circuit 121 causes the reception register 126 to store the internal signal line 12
The serial clock is applied via 9 and the transfer data 213 transferred thereafter is received. That is, when the transfer register 112 transmits the transfer direction bit and then transfers the transfer data to the communication signal line 101 via the open drain output buffer 113, the data is stored in the reception register 126 via the input buffer 127. . The serial reception data stored in the reception register 126 can be taken out from the internal signal line 128 as parallel data.

【0013】また、マスク通信装置110の制御回路1
11は、データを受信する必要が生じると少なくともス
タートビット211及び転送方向ビット212を内部信
号線114を経由して送信レジスタ112に格納する。
その後、制御回路111が内部信号線115を経由して
送信レジスタ112にシリアルクロックを印加すること
でデータ転送が開始する。
Further, the control circuit 1 of the mask communication device 110
The storage unit 11 stores at least the start bit 211 and the transfer direction bit 212 in the transmission register 112 via the internal signal line 114 when it becomes necessary to receive data.
After that, the control circuit 111 applies a serial clock to the transmission register 112 via the internal signal line 115 to start data transfer.

【0014】シリアルクロックが印加されると、送信レ
ジスタ112はオープンドレイン(もしくはオープンコ
レクタ)の出力バッファ113を経由して最初に送信レ
ジスタ112にセットしたスタートビット211を初め
に通信信号線101に出力する。通信信号線101から
入力バッファ127、内部信号線130を経由してスタ
ートビット211を受信したスレーブ通信装置120の
制御回路121は、受信動作を開始する。
When the serial clock is applied, the transmission register 112 outputs the start bit 211 initially set in the transmission register 112 to the communication signal line 101 via the open drain (or open collector) output buffer 113. To do. Upon receiving the start bit 211 from the communication signal line 101 via the input buffer 127 and the internal signal line 130, the control circuit 121 of the slave communication device 120 starts the receiving operation.

【0015】続いて送信レジスタ112が転送方向ビッ
ト212をオープンドレイン出力バッファ113を経由
して通信信号線101に送出すると、制御回路121は
入力バッファ127、内部信号線130を経由してこの
転送方向ビット212を受信し、データの転送方向を判
断する。データの転送方向がスレーブ通信装置120か
らマスタ通信装置110への転送であると判断した場合
には、制御回路121は内部信号線124を経由して送
信データ213およびストップビット214を送信レジ
スタ122に格納し、内部信号線125にシリアルクロ
ックを印加することによりデータ送信を開始する。
Subsequently, when the transmission register 112 sends the transfer direction bit 212 to the communication signal line 101 via the open drain output buffer 113, the control circuit 121 passes this transfer direction via the input buffer 127 and the internal signal line 130. The bit 212 is received and the data transfer direction is determined. When it is determined that the data transfer direction is the transfer from the slave communication device 120 to the master communication device 110, the control circuit 121 sends the transmission data 213 and the stop bit 214 to the transmission register 122 via the internal signal line 124. Data is stored and data transmission is started by applying a serial clock to the internal signal line 125.

【0016】送信レジスタ122から出力されたデータ
は、オープンドレイン(もしくはオープンコレクタ)出
力バッファ123を経由して通信信号線101に出力さ
れる。通信信号線101に出力されたデータは、入力バ
ッファ117を経由してマスタ通信装置110に入力さ
れ、内部信号線119に印加されたシリアルクロックに
同期して受信レジスタ116に格納される。受信レジス
タ116に格納されたシリアル受信データは、パラレル
データとして内部信号線118より取り出すことができ
る。
The data output from the transmission register 122 is output to the communication signal line 101 via the open drain (or open collector) output buffer 123. The data output to the communication signal line 101 is input to the master communication device 110 via the input buffer 117 and stored in the reception register 116 in synchronization with the serial clock applied to the internal signal line 119. The serial reception data stored in the reception register 116 can be taken out from the internal signal line 118 as parallel data.

【0017】なお、抵抗141はプルアップ抵抗であ
る。本実施例の信号線101の通信に用いられる通信フ
ォーマットの詳細を図2を参照して説明する。スタート
ビット211および転送方向ビット212は必ずマスタ
通信装置110が送信する(201,204)。転送方
向ビット212がマスタ通信装置110からスレーブ通
信装置120への転送を示していたならば、マスタ通信
装置110が転送データ213を送信し(204)、ス
レーブ通信装置120はデータを送信しない(20
5)。転送方向ビット212がスレーブ通信装置120
からマスタ通信装置110への転送を示していたなら
ば、スレーブ通信装置120が転送データ213を送信
し(202)、マスタ通信装置110はデータを送信し
ない(201)。マスタ通信装置の出力とスレーブ通信
装置の出力は、オープンドレイン(もしくはオープンコ
レクタ)の出力が直接接続してあるため、負論理のワイ
アードオアになるため、通信信号線101に送出される
信号は203,206に示す様になる。
The resistor 141 is a pull-up resistor. Details of the communication format used for communication of the signal line 101 of the present embodiment will be described with reference to FIG. The start bit 211 and the transfer direction bit 212 are always transmitted by the master communication device 110 (201, 204). If transfer direction bit 212 indicates a transfer from master communication device 110 to slave communication device 120, master communication device 110 sends transfer data 213 (204) and slave communication device 120 does not send data (20).
5). The transfer direction bit 212 is the slave communication device 120.
From the master communication device 110 to the master communication device 110, the slave communication device 120 transmits the transfer data 213 (202), and the master communication device 110 does not transmit the data (201). Since the output of the master communication device and the output of the slave communication device are directly connected to the output of the open drain (or open collector), the output is a negative logic wired OR. Therefore, the signal sent to the communication signal line 101 is 203 , 206.

【0018】図3はマスタ通信装置110の通信手順を
示したフローチャートである。マスタ通信装置110
は、送信もしくは受信の必要が発生すると、初めにスタ
ートビット211を送信し(S301)、次に転送方向
ビット212を送信する(S302)。マスタ通信装置
110からスレーブ通信装置120へのデータ転送であ
るかを判断する(S303)。マスタ通信装置110か
らスレーブ通信装置120へのデータ転送である場合に
はデータ送信を開始する(S314)。送信すべきデー
タをすべて送信したかを判断し(S315)、まだ送信
データが残っていればデータ送信を続け(S314)、
すべてデータを送信したならストップビットを送信して
(S316)終了する。
FIG. 3 is a flow chart showing the communication procedure of the master communication device 110. Master communication device 110
When the need for transmission or reception occurs, first transmits the start bit 211 (S301), and then transmits the transfer direction bit 212 (S302). It is determined whether the data transfer is from the master communication device 110 to the slave communication device 120 (S303). In the case of data transfer from the master communication device 110 to the slave communication device 120, data transmission is started (S314). It is determined whether all the data to be transmitted has been transmitted (S315), and if there is still transmission data, the data transmission is continued (S314),
When all the data has been transmitted, a stop bit is transmitted (S316), and the process ends.

【0019】一方、S303でマスタ通信装置110か
らスレーブ通信装置120への転送でなければ、データ
受信を開始する(S304)。受信したデータがストッ
プビットであるかを判断し(S305)、ストップビッ
トでなければデータ受信を継続し(S304)、ストッ
プビットであれば受信を終了する。図4はスレーブ通信
装置120の通信手順を示したフローチャートである。
スレーブ通信装置120は、スタートビット211を受
信し(S401)、次に転送方向ビット212を受信す
る(S402)。転送方向ビット212によりマスタ通
信装置110からスレーブ通信装置120へのデータ転
送であるか否かを判断する(S403)。マスタ通信装
置110からスレーブ通信装置120へのデータ転送で
ない場合にはスレーブ通信装置120寄りの送信モード
であるため、スレーブ通信装置120の制御回路121
はデータ送信を開始する(S414)。送信すべきデー
タをすべて送信したかを判断し(S415)、まだ送信
データが残っていればデータ送信を続け(S414)、
全てデータを送信したならばストップビット214を送
信して(S416)、次のスタートビット211を待つ
(S401)。
On the other hand, if the transfer is not from the master communication device 110 to the slave communication device 120 in S303, data reception is started (S304). It is determined whether the received data is a stop bit (S305), if it is not a stop bit, data reception is continued (S304), and if it is a stop bit, reception is ended. FIG. 4 is a flowchart showing a communication procedure of the slave communication device 120.
The slave communication device 120 receives the start bit 211 (S401) and then the transfer direction bit 212 (S402). Based on the transfer direction bit 212, it is determined whether the data is transferred from the master communication device 110 to the slave communication device 120 (S403). If the data is not transferred from the master communication device 110 to the slave communication device 120, the control mode 121 of the slave communication device 120 is used because the transmission mode is closer to the slave communication device 120.
Starts data transmission (S414). It is determined whether all the data to be transmitted has been transmitted (S415), and if there is still transmission data, the data transmission is continued (S414),
If all the data has been transmitted, the stop bit 214 is transmitted (S416) and the next start bit 211 is waited for (S401).

【0020】S403でマスタ通信装置110からスレ
ーブ通信装置120への転送であれば、データ受信を開
始する(S404)。そして、受信したデータがストッ
プビット214であるか否かを判断し(S405)、ス
トップビットでなければデータ受信を継続し(S40
4)、ストップビットであれば受信を終了して次のスタ
ートビットを待つ(S401)。
If the transfer is from the master communication device 110 to the slave communication device 120 in S403, data reception is started (S404). Then, it is judged whether the received data is the stop bit 214 (S405), and if it is not the stop bit, the data reception is continued (S40).
4) If it is a stop bit, reception is ended and the next start bit is waited for (S401).

【0021】本実施例は、以上の構成、制御を備えるこ
とにより、簡単な制御を追加するのみで1本の信号線に
より双方向のデータ転送を可能としている。
In the present embodiment, by providing the above-mentioned configuration and control, bidirectional data transfer is possible with one signal line only by adding simple control.

【0022】[0022]

【他の実施例】[Other Examples]

[第2実施例]上述した第1の実施例においては、図1
に示すように信号ライン101への出力ドライバとして
オープンドレイン(もしくはオープンコレクタ)の出力
バッファ113,123を用いたが本発明は以上の例に
限定されるものではなく3ステートバッファを用いても
よい。信号ライン101への出力バッファとして3ステ
ートバッファを用いた本発明に係る第2実施例を以下に
説明する。
[Second Embodiment] In the above-described first embodiment, FIG.
As described above, the open-drain (or open-collector) output buffers 113 and 123 are used as the output driver to the signal line 101, but the present invention is not limited to the above example and a 3-state buffer may be used. . A second embodiment according to the present invention using a 3-state buffer as an output buffer to the signal line 101 will be described below.

【0023】図5は信号ライン101への出力バッファ
として3ステートバッファを用いた本発明に係る第2実
施例を示す図である。図5において、上述した第1実施
例の図1に示す構成と同一構成には同一番号を付し詳細
説明を省略する。513,523が3ステート出力バッ
ファである。図5に示すように3ステート出力バッファ
513,523を用いることによっても上述した第1の
実施例と同様の作用効果を実現することができる。
FIG. 5 is a diagram showing a second embodiment according to the present invention in which a 3-state buffer is used as an output buffer for the signal line 101. In FIG. 5, the same components as those shown in FIG. 1 of the first embodiment described above are designated by the same reference numerals and detailed description thereof will be omitted. Reference numerals 513 and 523 are 3-state output buffers. By using the 3-state output buffers 513 and 523 as shown in FIG. 5, it is possible to achieve the same effect as that of the first embodiment.

【0024】[第3実施例]上述した第1実施例におい
ては、マスタ通信装置110の送信レジスタ113と受
信レジスタ116をそれぞれ別個のクロック信号により
動作させる例について説明したが本発明は以上の例に限
定されるものではなく、マスタ通信装置110の送信レ
ジスタ113と受信レジスタ116を同一のクロック信
号により動作させても上述実施例と同様の効果を達成で
きる。このように構成した本発明に係る第3実施例を図
6に示す。図6の例では、同一のシリアルクロック信号
を内部信号線115を経由して送信レジスタ113と受
信レジスタ116に供給し、両レジスタを動作させてい
る。
[Third Embodiment] In the above-described first embodiment, an example has been described in which the transmission register 113 and the reception register 116 of the master communication device 110 are operated by separate clock signals, but the present invention is the above example. However, the same effect as that of the above-described embodiment can be achieved even if the transmission register 113 and the reception register 116 of the master communication device 110 are operated by the same clock signal. FIG. 6 shows a third embodiment of the present invention configured as described above. In the example of FIG. 6, the same serial clock signal is supplied to the transmission register 113 and the reception register 116 via the internal signal line 115 to operate both registers.

【0025】以上の構成においても上述した第1実施例
と同様の作用効果を達成でき、更に、クロック単一とし
たため、制御が容易となる。尚、本発明は、複数の機器
から構成されるシステムに適用しても、1つの機器から
成る装置に適用しても良い。また、本発明はシステム或
は装置にプログラムを供給することによって達成される
場合にも適用できることは言うまでもない。
With the above construction, the same operational effects as those of the first embodiment described above can be achieved, and since the single clock is used, the control becomes easy. The present invention may be applied to a system including a plurality of devices or an apparatus including a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0026】[0026]

【発明の効果】以上説明したように本発明によれば、デ
ータの通信に先立ってデータ転送方向指示を行うことに
より、データ通信方向の制御が行えるため、1本のデー
タ信号線により双方向通信が可能となる。
As described above, according to the present invention, since the data communication direction can be controlled by giving the data transfer direction instruction prior to the data communication, the bidirectional communication is performed by one data signal line. Is possible.

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

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

【図2】本実施例の通信の様子を示した模式図である。FIG. 2 is a schematic diagram showing how communication is performed in this embodiment.

【図3】本実施例の図1に示すマスタ通信装置の通信手
順を示すフローチャートである。
3 is a flowchart showing a communication procedure of the master communication device shown in FIG. 1 of the present embodiment.

【図4】本実施例の図1に示すスレーブ通信装置の通信
手順を示すフローチャートである。
FIG. 4 is a flowchart showing a communication procedure of the slave communication device shown in FIG. 1 of the present embodiment.

【図5】本発明に係る第2実施例の構成を示すブロック
図である。
FIG. 5 is a block diagram showing a configuration of a second exemplary embodiment according to the present invention.

【図6】本発明に係る第3実施例の構成を示すブロック
図である。
FIG. 6 is a block diagram showing a configuration of a third exemplary embodiment according to the present invention.

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

101 通信信号線 110 マスタ通信装置 111,121 制御回路 112,122 送信レジスタ 113,123 オープンドレイン(もしくはオープン
コレクタ)出力バッファ 114,115,118,124,125,128,1
29,130 内部信号線 116,126 受信レジスタ 117,127 入力バッファ 141 プルアップ抵抗 201,204 マスタ通信装置出力信号 202,205 スレーブ通信装置出力信号 203,206 シリアル信号 211 スタートビット 212 転送方向ビット 213 転送データ 214 ストップビット 513,523 3スーテト出力バッファ
101 communication signal line 110 master communication device 111, 121 control circuit 112, 122 transmission register 113, 123 open drain (or open collector) output buffer 114, 115, 118, 124, 125, 128, 1
29,130 Internal signal line 116,126 Reception register 117,127 Input buffer 141 Pull-up resistor 201,204 Master communication device output signal 202,205 Slave communication device output signal 203,206 Serial signal 211 Start bit 212 Transfer direction bit 213 Transfer Data 214 Stop bits 513,523 3 State output buffer

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 1本のデータ通信線に少なくとも2台の
データ通信装置を接続してなるデータ通信システムであ
って、 前記データ通信線に接続された少なくとも1台のデータ
通信装置に、前記データ通信線への通信データの転送方
向を指示するデータ転送方向指示を前記データ通信線に
出力する送信指示手段と、前記送信指示手段による指示
に従い必要に応じて前記データ通信線よりの転送データ
を受信するかあるいは前記データ通信線に送信データを
出力する第1のデータ送受信手段とを備え、 前記出た通信線に接続された他のデータ通信装置に、前
記データ通信線よりの前記データ転送方向指示を判断す
る判断手段と、前記判断手段の判断結果に従って必要に
応じて前記データ通信線に出力データを出力するかある
いは前記データ通信線よりの転送データを受信する第2
のデータ送受信手段とを備えることを特徴とするデータ
通信システム。
1. A data communication system in which at least two data communication devices are connected to one data communication line, wherein the data is connected to at least one data communication device connected to the data communication line. Transmission instruction means for outputting a data transfer direction instruction for instructing the transfer direction of the communication data to the communication line to the data communication line, and receiving transfer data from the data communication line as necessary according to the instruction by the transmission instruction means Or a first data transmission / reception unit for outputting transmission data to the data communication line, and for instructing another data communication device connected to the output communication line, the data transfer direction from the data communication line. And output data to the data communication line as necessary according to the result of the judgment of the judgment means or the data communication line. Second for receiving Rino transfer data
A data communication system, comprising:
【請求項2】 前記データ通信線に対するデータ通信は
シリアルデータ通信であり、前記送信指示手段によるデ
ータ転送方向指示はデータ転送方向を示すレベル信号で
あることを特徴とする請求項1記載のデータ通信システ
ム。
2. The data communication according to claim 1, wherein the data communication with respect to the data communication line is serial data communication, and the data transfer direction instruction by the transmission instructing means is a level signal indicating a data transfer direction. system.
【請求項3】 前記送信指示手段はスタートビットに続
いて前記データ転送方向指示を示す転送方向ビットを出
力するものであることを特徴とする請求項2記載のデー
タ通信システム。
3. The data communication system according to claim 2, wherein the transmission instruction means outputs a transfer direction bit indicating the data transfer direction instruction after a start bit.
【請求項4】 前記第1のデータ送受信手段は、前記送
信指示手段による転送方向ビットの出力に引き続いて送
信データの出力を行い、データ出力終了後ストップビッ
トを出力することを特徴とする請求項3記載のデータ通
信システム。
4. The first data transmission / reception means outputs the transmission data following the output of the transfer direction bit by the transmission instruction means, and outputs a stop bit after the end of the data output. 3. The data communication system according to 3.
【請求項5】 前記第2のデータ送受信通信手段は自装
置よりのデータ送信時には前記送信指示手段による転送
方向ビットの受信に引き続いて送信データの出力を行
い、データ出力終了後ストップビットを出力することを
特徴とする請求項3記載のデータ通信システム。
5. The second data transmission / reception communication unit outputs the transmission data following the reception of the transfer direction bit by the transmission instruction unit at the time of the data transmission from the own device, and outputs the stop bit after the end of the data output. The data communication system according to claim 3, wherein:
【請求項6】 前記スタートビット及び転送方向ビッ
ト、ストップビットは略同じ時間出力されることを特徴
とする請求項4又は5のいずれかに記載のデータ通信シ
ステム。
6. The data communication system according to claim 4, wherein the start bit, the transfer direction bit, and the stop bit are output at substantially the same time.
【請求項7】 1本のデータ通信線に少なくとも2台の
データ通信装置を接続してなるデータ通信システムにお
けるデータ通信方法であって、 前記データ通信線への通信データの転送方向を指示する
データ転送方向指示を前記データ通信線に接続されてい
る少なくとも1つのデータ通信装置より出力し、前記デ
ータ通信線接続データ通信装置は当該データ転送方向指
示に従い必要に応じて前記データ通信線よりの転送デー
タを受信するかあるいは前記データ通信線に送信データ
を出力することを特徴とするデータ通信方法。
7. A data communication method in a data communication system in which at least two data communication devices are connected to one data communication line, the data indicating a transfer direction of communication data to the data communication line. A transfer direction instruction is output from at least one data communication device connected to the data communication line, and the data communication line-connected data communication device follows the data transfer direction instruction to transfer data from the data communication line as necessary. Or a transmission data is output to the data communication line.
【請求項8】 前記データ通信線に対するデータ通信は
シリアルデータ通信であり、前記データ転送方向指示は
データ転送方向を示すレベル信号であることを特徴とす
る請求項7記載のデータ通信方法。
8. The data communication method according to claim 7, wherein the data communication with respect to the data communication line is serial data communication, and the data transfer direction instruction is a level signal indicating a data transfer direction.
【請求項9】 前記データ転送方向指示は、スタートビ
ットに続くデータ転送方向指示を示す転送方向ビットで
あることを特徴とする請求項8記載のデータ通信方法。
9. The data communication method according to claim 8, wherein the data transfer direction instruction is a transfer direction bit indicating a data transfer direction instruction following a start bit.
【請求項10】 データ通信装置は、前記転送方向ビッ
トの出力に引き続いて送信データの出力を行い、データ
出力終了後ストップビットを出力することを特徴とする
請求項9記載のデータ通信方法。
10. The data communication method according to claim 9, wherein the data communication device outputs the transmission data subsequent to the output of the transfer direction bit, and outputs the stop bit after the end of the data output.
【請求項11】 前記スターとビット及び転送方向ビッ
ト、ストップビットは略同じ時間出力されることを特徴
とする請求項10記載のデータ通信方法。
11. The data communication method according to claim 10, wherein the star, the bit, the transfer direction bit, and the stop bit are output at substantially the same time.
JP6210259A 1994-09-02 1994-09-02 Data communication system and data communication method Withdrawn JPH0879225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6210259A JPH0879225A (en) 1994-09-02 1994-09-02 Data communication system and data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6210259A JPH0879225A (en) 1994-09-02 1994-09-02 Data communication system and data communication method

Publications (1)

Publication Number Publication Date
JPH0879225A true JPH0879225A (en) 1996-03-22

Family

ID=16586428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6210259A Withdrawn JPH0879225A (en) 1994-09-02 1994-09-02 Data communication system and data communication method

Country Status (1)

Country Link
JP (1) JPH0879225A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012169746A (en) * 2011-02-10 2012-09-06 Mitsumi Electric Co Ltd Communication system and device thereof
US10789193B2 (en) 2016-12-22 2020-09-29 Samsung Electronics Co., Ltd. Device connected to other device by single wire and method of operating system including the devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012169746A (en) * 2011-02-10 2012-09-06 Mitsumi Electric Co Ltd Communication system and device thereof
US10789193B2 (en) 2016-12-22 2020-09-29 Samsung Electronics Co., Ltd. Device connected to other device by single wire and method of operating system including the devices

Similar Documents

Publication Publication Date Title
KR101720134B1 (en) Bus bridge apparatus
JPH05211540A (en) Multiplex mechanism for modem control signal
KR20040076730A (en) Serial communication interface apparatus of hybrid type adaptable to high peformance wireless lan and method of the same
JPH04346151A (en) Data processor
US5404137A (en) High speed transition signalling communication system
JPH0879225A (en) Data communication system and data communication method
US6069926A (en) Communication control system and apparatus
JP2006304011A (en) Interface circuit
KR100266963B1 (en) Method and apparatus for reducing latency rime on an interface by overlapping transmitted packets
JP2000324896A (en) Data transmission system and image forming apparatus
KR0184402B1 (en) Interrupt generating apparatus for i bus
JP3413894B2 (en) Serial transmission device
JP2004334551A (en) Serial communication system and local terminal for serial communication
KR100584583B1 (en) Apparatus and method controlling a serial bus
KR100295683B1 (en) General call acknowledge apparatus and method for inter-integrated circuit
JPH11177654A (en) Data transmission reception method
JP3814389B2 (en) Serial communication method and system, and storage medium
JP2000132506A (en) Communication device
JPH1174893A (en) Data communication equipment and its communication method
JP2002198979A (en) Data transmission methods and devices on can(controller area network) data link
JP2708366B2 (en) Data processing system and auxiliary control device
KR100962306B1 (en) Bidirectional data transmission apparatus and the method thereof for embedded system
JP2616010B2 (en) Packet network
JPH09293047A (en) Data transfer device of microcomputer
JPH05113838A (en) Connection 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: 20011106