JPH0720160B2 - Data communication method - Google Patents

Data communication method

Info

Publication number
JPH0720160B2
JPH0720160B2 JP2009156A JP915690A JPH0720160B2 JP H0720160 B2 JPH0720160 B2 JP H0720160B2 JP 2009156 A JP2009156 A JP 2009156A JP 915690 A JP915690 A JP 915690A JP H0720160 B2 JPH0720160 B2 JP H0720160B2
Authority
JP
Japan
Prior art keywords
control signal
state
transmission
phase
data
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.)
Expired - Lifetime
Application number
JP2009156A
Other languages
Japanese (ja)
Other versions
JPH03213031A (en
Inventor
善弘 瀧山
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.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Digital Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to JP2009156A priority Critical patent/JPH0720160B2/en
Publication of JPH03213031A publication Critical patent/JPH03213031A/en
Publication of JPH0720160B2 publication Critical patent/JPH0720160B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、一対の通信局間でシリアルデータ又はパラレ
ルデータを相互に伝送する方式に関し、特にコンテンシ
ョン方式の伝送制御を採用したデータ通信方式に関する
ものである。
Description: TECHNICAL FIELD The present invention relates to a method of mutually transmitting serial data or parallel data between a pair of communication stations, and in particular, a data communication method adopting contention type transmission control. It is about.

(従来の技術) 一対の情報機器(例えばコンピュータシステム)間で相
互にデータ通信を行なう場合、双方の機器から送信要求
が発せられることによるコンテンションを回避するた
め、データを送信すべき主局とデータを受信する従局を
決定する必要がある。又、主局と従局が決定した後は、
データを確実に送受信するために、主局と従局で互いに
同期をとる必要がある。
(Prior Art) When performing data communication between a pair of information devices (for example, a computer system), in order to avoid contention due to transmission requests from both devices, the main station to which data is to be transmitted is avoided. It is necessary to decide which slave station receives the data. Also, after the master station and the slave stations are decided,
In order to reliably transmit and receive data, the master station and slave stations need to synchronize with each other.

第23図及び第24図は一般にGP−IBと呼ばれる従来のデー
タ通信方式を示している。
23 and 24 show a conventional data communication system generally called GP-IB.

該通信方式に於いては、主局と従局を決定するためのコ
マンドを作成するコントローラが装備され、第23図に示
す如くコントローラから従局(受信側)への制御信号AT
M及びDAV、従局から主局(送信側)への制御信号NRFD及
びNDACによる所定のシーケンスを経て、コントローラが
コマンドデータDI01〜8を従局(受信側)ヘ送出し、従
局がこれを認識した後、初めてデータの送受信が開始さ
れる。
The communication system is equipped with a controller that creates a command for determining the master station and the slave station. As shown in FIG. 23, the control signal AT from the controller to the slave station (reception side) is provided.
After a predetermined sequence of control signals NRFD and NDAC from M and DAV, slave station to master station (transmission side), the controller sends command data DI01 to 8 to the slave station (reception side), and the slave station recognizes this. For the first time, data transmission / reception is started.

送受信に於いては第24図に示す如く、主局から従局へ送
られる制御信号ATN、従局から主局へ送られる制御信号N
RFD及びNDACによる3線ハンドシェイクによって同期が
とられつつ、主局から従局へデータDI01〜8が伝送され
る。
In transmitting and receiving, as shown in FIG. 24, the control signal ATN sent from the master station to the slave station, the control signal N sent from the slave station to the master station
Data DI01-8 is transmitted from the master station to the slave stations while being synchronized by the three-wire handshake by RFD and NDAC.

(解決しようとする課題) しかし、従来のデータ通信方式に於いては、第23図に示
す如く主局と従局を決定するためのシーケンスが複雑
で、その実行に時間がかかるばかりでなく、データ伝送
に於いては、第24図に示す様に各制御信号の立下り及び
立上りの一対を一つの状態変化と据える所謂4エッジ式
のハンドシェイクが行なわれ、データ伝送周期は、制御
信号の状態値変化の周期(立下りから立上りまでの期
間)の2倍となっていたから、データ伝送に時間がかか
り、コンピュータの高速処理に応じた高速の通信を行な
うことが出来ない問題があった。
(Problems to be solved) However, in the conventional data communication system, the sequence for determining the master station and the slave stations is complicated as shown in FIG. In transmission, as shown in FIG. 24, a so-called 4-edge type handshake is performed in which a pair of falling and rising of each control signal is set as one state change, and the data transmission cycle is the state of the control signal. Since the cycle of the value change (the period from the falling edge to the rising edge) is twice, it takes a long time to transmit the data and there is a problem that the high speed communication corresponding to the high speed processing of the computer cannot be performed.

本発明の目的は、何れか一方の局が主局を宣言した後、
他方の局が従局を承諾して、これを主局が認識するまで
の一連のシーケンスが極めて単純で、そのシーケンスの
実行時間が極めて短いデータ通信方式を提供することで
ある。
An object of the present invention is that after one of the stations declares the master station,
It is to provide a data communication system in which the sequence from the other station accepting the slave station until the master station recognizes this is extremely simple and the execution time of the sequence is extremely short.

又、本発明の他の目的は、データ伝送の際に、制御信号
の立下り、立上りを夫々一つの状態変化として据える所
謂2エッジ式のハンドシェイクを採用することによっ
て、制御信号の状態変化周期(立下りから立上りまでの
期間)とデータの伝送周期を同一として、高速のデータ
伝送を行なうことが出来るデータ通信方式を提供するこ
とである。
Another object of the present invention is to adopt a so-called two-edge type handshake in which a falling edge and a rising edge of a control signal are set as one state change at the time of data transmission. It is an object of the present invention to provide a data communication method capable of performing high-speed data transmission by making the data transmission cycle the same as (the period from the fall to the rise) and the data transmission cycle.

(課題を解決する為の手段) 本発明に係るデータ通信方式は、少なくとも4本の信号
線で相互に接続された一対の通信機器間で、任意の一方
の機器が送信側の主局、他方の機器が受信側の従局とな
って、双方向のデータ通信を行なう方式である。前記4
本の信号線中、2本の信号線は主局から従局への第1制
御信号CLKOUT及び第2制御信号STSOUTの送信用に使用す
ると共に、残りの2本の信号線は従局から主局への第3
制御信号CLKIN及び第4制御信号STSINの受信用に使用す
る。
(Means for Solving the Problem) In the data communication system according to the present invention, one of a pair of communication devices connected to each other by at least four signal lines is a main station on the transmitting side and the other is a main station on the transmitting side. Is a slave station on the receiving side and performs bidirectional data communication. 4 above
Of the two signal lines, two signal lines are used for transmitting the first control signal CLKOUT and the second control signal STSOUT from the master station to the slave station, and the remaining two signal lines are from the slave station to the master station. The third
It is used for receiving the control signal CLKIN and the fourth control signal STSIN.

主局と従局を決定するための同期フェーズを経た後、主
局から従局へのデータ伝送を開始する。同期フェーズ
は、第1乃至第4制御信号が同一の状態値に設定された
初期状態から、第1及び第2制御信号をともに状態変化
させる第1ステップと、第1ステップの実現を前提とし
て第3及び第4制御信号の何れか一方又は双方を状態変
化させる第2ステップと、第2ステップの実現を前提と
して第1及び第2制御信号の何れか一方をもとの状態に
戻す第3ステップと、第3ステップの実現を前提として
第3及び第4制御信号をもとの状態に戻す第4ステップ
とから構成され、第4ステップが実現されたときにのみ
伝送フェーズへ遷移する。
After a synchronization phase for determining the master station and the slave stations, data transmission from the master station to the slave stations is started. The synchronization phase includes a first step of changing the states of both the first and second control signals from an initial state in which the first to fourth control signals are set to the same state value, and a first step of realizing the first step. A second step of changing the state of one or both of the third and fourth control signals, and a third step of returning one of the first and second control signals to the original state on the assumption that the second step is realized. And a fourth step of returning the third and fourth control signals to their original states on the assumption that the third step is realized, and transits to the transmission phase only when the fourth step is realized.

又、4本の制御信号線とデータバスで相互に接続された
一対の通信機器間でパラレルデータの双方向通信を行な
う場合、伝送フェーズにおいては、前記同期フェーズの
第4ステップ完了時の第1乃至第4制御信号の状態を初
期状態としてデータ伝送を開始すると共に、第1制御信
号CLKOUTを一定周期で状態変化させつつ、該第1制御信
号の状態変化を前提として第3制御信号CLKINを状態変
化せしめ、該第3制御信号の状態変化と同期してデータ
伝送を継続する。
Further, when bidirectional communication of parallel data is performed between a pair of communication devices that are mutually connected by four control signal lines and a data bus, in the transmission phase, the first step after completion of the fourth step of the synchronization phase. Through starting the data transmission with the state of the fourth control signal as the initial state, while changing the state of the first control signal CLKOUT at a constant cycle, the state of the third control signal CLKIN is changed on the assumption that the state of the first control signal changes. Then, the data transmission is continued in synchronization with the change of the state of the third control signal.

更に又、4本の信号線で相互に接続された一対の通信機
器間でシリアルデータの双方向通信を行なう場合、伝送
フェーズでは、前記第2制御信号STSOUTの信号線をシリ
アルデータの伝送に使用して、前記同期フェーズの第4
ステップ完了時の第1乃至第4制御信号の状態を初期状
態としてデータ伝送を開始すると共に、第1制御信号CL
KOUTを一定周期で状態変化させつつ、該第1制御信号の
状態変化を前提として第3制御信号CLKINを状態変化せ
しめ、該第3制御信号の状態変化と同期してデータ伝送
を継続する。
Furthermore, when bidirectional communication of serial data is performed between a pair of communication devices mutually connected by four signal lines, the signal line of the second control signal STSOUT is used for transmission of serial data in the transmission phase. Then, the fourth of the synchronization phase
The data transmission is started by setting the states of the first to fourth control signals at the completion of the step to the initial state, and the first control signal CL
While changing the state of KOUT at a constant cycle, the state of the third control signal CLKIN is changed on the premise of the state change of the first control signal, and data transmission is continued in synchronization with the state change of the third control signal.

(作 用) 同期フェーズにおいて、一方の通信局(主局)がデータ
を送出せんとする場合、第1ステップが実行され、これ
によって主局から従局へ主局宣言コマンドが送られるこ
とになる。従局がこのコマンドを承諾すると、第2ステ
ップが実行され、これによって主局は従局の承諾状態を
検知する。次に第3ステップが実行され、主局から従局
へ送信開始要求コマンドが送られることになる。従局が
このコマンドを承諾すると、第4ステップが実行され、
これによって主局は従局の受信準備完了状態を検知す
る。
(Operation) When one communication station (master station) does not send data in the synchronization phase, the first step is executed, which causes the master station to send the master station declaration command to the slave station. If the slave accepts this command, the second step is executed, whereby the master detects the slave's consent status. Next, the third step is executed, and the transmission start request command is sent from the master station to the slave station. If the slave accepts this command, the fourth step is executed,
By this, the master station detects the reception ready state of the slave station.

コンテンションが発生した場合、或いは第1ステップか
ら第4ステップの実行の過程で同期不良が発生した場合
は、各制御信号が初期状態へ戻って、再度同期フェーズ
が実行され、コンテンションを解消する。
When contention occurs, or when synchronization failure occurs during the execution of the first to fourth steps, each control signal returns to the initial state and the synchronization phase is executed again to eliminate contention. .

同期フェーズから伝送フェーズへ遷移する際は、同期フ
ェーズの完了時における各制御信号の状態をそのまま伝
送フェーズにおける初期状態とし、伝送フェーズへの遷
移と同時にシリアルデータ又はパラレルデータの伝送が
開始される。
When making a transition from the synchronization phase to the transmission phase, the state of each control signal at the completion of the synchronization phase is used as it is as the initial state in the transmission phase, and at the same time as the transition to the transmission phase, transmission of serial data or parallel data is started.

伝送フェーズにおいては、第1制御信号CLKOUTと第3制
御信号CLKINとの2エッジハンドシェイクが行なわれ、
第1制御信号の状態値変化と同一周期でデータ伝送が行
なわれる。
In the transmission phase, a two-edge handshake between the first control signal CLKOUT and the third control signal CLKIN is performed,
Data transmission is performed in the same cycle as the state value change of the first control signal.

また、伝送フェーズにおいては、第2制御信号STSOUT及
び第4制御信号STSINの双方が同一状態値に維持される
から、同期フェーズの4つのステップで形成される制御
信号パターンが伝送フェーズで出現することはなく、従
って確実なデータ伝送が保証される。
Also, in the transmission phase, both the second control signal STSOUT and the fourth control signal STSIN are maintained at the same state value, so that the control signal pattern formed in the four steps of the synchronization phase appears in the transmission phase. And therefore reliable data transmission is guaranteed.

(発明の効果) 本発明に係るデータ通信方式によれば、同期フェーズが
極めて単純な4つのステップで構成されているから、そ
の実行時間が短く、迅速な伝送フェーズへの移行が可能
である。
(Effect of the Invention) According to the data communication method of the present invention, the synchronization phase is composed of four extremely simple steps, so that the execution time is short and a quick transition to the transmission phase is possible.

また、伝送フェーズでは、第1制御信号の状態変化と同
一周期でデータ伝送が行なわれるから、従来の4エッジ
ハンドシェイクを用いたデータ伝送に比べて伝送速度が
高速化される。
Further, in the transmission phase, data transmission is performed at the same cycle as the state change of the first control signal, so that the transmission speed is increased as compared to the conventional data transmission using the 4-edge handshake.

(実施例) 以下、パラレルデータを伝送する第1実施例とシリアル
データを伝送する第2実施例につき、図面に沿って詳述
する。
(Embodiment) Hereinafter, a first embodiment for transmitting parallel data and a second embodiment for transmitting serial data will be described in detail with reference to the drawings.

尚、実施例は本発明を説明するためのものであって、特
許請求の範囲に記載の発明を限定し、或は範囲を減縮す
る様に解すべきではない。
It should be noted that the examples are for explaining the present invention and should not be understood as limiting the invention described in the claims or reducing the scope.

〔第1実施例〕 第1図は、本発明に係るデータ通信方式によって一対の
コンピュータシステム(1)(2)を結合した例を示し
ており、各コンピュータシステムは夫々、CPU(3)及
びメモリ(4)からなるコンピュータ本体と所定の通信
プロトコルを実行する通信制御回路(5)とから構成さ
れる。
First Embodiment FIG. 1 shows an example in which a pair of computer systems (1) and (2) are connected by the data communication system according to the present invention, and each computer system has a CPU (3) and a memory. It is composed of a computer body composed of (4) and a communication control circuit (5) for executing a predetermined communication protocol.

両コンピュータシステム(1)(2)の通信制御回路
(5)(5)は4本の制御線と8ビットのデータバスDT
PORTを介して互いに連結されている。4本の制御線が接
続される端子は、主局宣言を表わす制御信号CLKOUT及び
STSOUTを出力すべき2つの出力端子と、従局承諾を表わ
す制御信号CLKIN及びSTSINが入力されるべき2つの入力
端子から構成される。
The communication control circuits (5) and (5) of both computer systems (1) and (2) have four control lines and an 8-bit data bus DT.
Connected to each other via PORT. The terminals to which the four control lines are connected are the control signal CLKOUT and
It is composed of two output terminals for outputting STSOUT and two input terminals for inputting control signals CLKIN and STSIN indicating acceptance of the slave station.

通信制御回路(5)は1チップLSIから形成され、第2
図に示す如くデータバスバッファ(6)、リード/ライ
トロジック(7)、コントロールロジック(8)及びデ
ータポート(9)の4つのブロックから構成される。デ
ータバスバッファ(6)は前記CPU(3)とのインター
フェースを司どるもので、リード/ライトロジック
(7)からのデータ方向制御信号及びENABLE信号によ
り、CPUと内部バスとの間のデータ交換、データ保持を
行なうものであり、これによって通信制御回路(5)と
CPU(3)の非同期な動作を可能としている。リード/
ライトロジック(7)は、CPU(3)による制御の下でC
PUからのデータD0〜D7をデータポート(9)を経てデー
タバスDTPORTへ送出し、或いは逆に取り込むことを目的
として、データバスバッファ(6)及びデータポート
(9)を制御するものである。データポート(9)は内
部バスと外部機器とのデータ交換、データ保持を行なう
ものであり、必要に応じて信号のレベル変換等を行な
う。
The communication control circuit (5) is formed of a one-chip LSI, and the second
As shown in the figure, it comprises four blocks of a data bus buffer (6), a read / write logic (7), a control logic (8) and a data port (9). The data bus buffer (6) controls the interface with the CPU (3), and exchanges data between the CPU and the internal bus according to the data direction control signal and the ENABLE signal from the read / write logic (7). It holds data, which enables communication control circuit (5)
It enables the asynchronous operation of the CPU (3). Lead /
The write logic (7) is C under the control of the CPU (3).
It controls the data bus buffer (6) and the data port (9) for the purpose of sending the data D0 to D7 from the PU to the data bus DTPORT through the data port (9) or vice versa. The data port (9) exchanges data between the internal bus and an external device and holds data, and performs signal level conversion and the like as necessary.

コントロールロジック(8)は、後述のアイドル、同期
及び伝送の3つのフェーズを管理制御するものであっ
て、第3図に示す様にフェーズコントロールユニット
(10)、カウンターユニット(11)及びバスコントロー
ルユニット(12)の3つのブロックから構成される。バ
スコントロールユニット(12)は信号のレベル変換、4
本の制御信号線の制御及びサンプリングを行なうもので
ある。フェーズコントロールユニット(10)は前記各フ
ェーズにおける通信制御、フェーズ間の移行制御のため
の一連の手続(第12図乃至第16図参照)を実行するもの
で、必要に応じてバスコントロールユニット(12)の制
御、カウンターユニット(11)の起動を行なう。カウン
ターユニット(11)は前記各フェーズのタイムアウト検
知のための時間監視を行なうものである。
The control logic (8) manages and controls three phases, idle, synchronization and transmission, which will be described later, and as shown in FIG. 3, a phase control unit (10), a counter unit (11) and a bus control unit. It consists of three blocks (12). The bus control unit (12) converts the signal level, 4
The control signal lines of the book are controlled and sampled. The phase control unit (10) executes a series of procedures (see FIGS. 12 to 16) for communication control in each phase and transition control between phases, and if necessary, the bus control unit (12). ) Control and activation of the counter unit (11). The counter unit (11) monitors the time for detecting the timeout in each phase.

伝送制御に際して形成される通信プロトコルは第4図
(a)(b)に示す如く、アイドルフェーズ、同期フェ
ーズ、及び伝送フェーズの3つの基本フェーズで構成さ
れる。アイドルフェーズは、自局の送信要求がない場合
に相手局からの受信要求を監視する状態である。同期フ
ェーズは、主局(送信側)と従局(受信側)の決定をす
ると共に、その後の伝送フェーズにてデータを確実に通
信するための主局、従局間のタイミング調整を行なう状
態であり、両局ともアイドルフェーズにある状態から主
局が従局に受信依頼を通知することによって開始する。
伝送フェーズは2局間で取り決めた個数のデータフレー
ムを送受信するための状態で、同期フェーズにて前記タ
イミング調整が完了(以下、同期確立という)した後に
開始する。
As shown in FIGS. 4 (a) and 4 (b), the communication protocol formed during transmission control is composed of three basic phases: an idle phase, a synchronization phase, and a transmission phase. The idle phase is a state in which the reception request from the partner station is monitored when there is no transmission request from the own station. The synchronization phase is a state in which the master station (transmission side) and the slave station (reception side) are determined, and the timing adjustment between the master station and the slave station for reliable communication of data is performed in the subsequent transmission phase. Both stations start in the idle phase when the master station notifies the slave station of the reception request.
The transmission phase is a state for transmitting and receiving the number of data frames agreed between the two stations, and starts after the timing adjustment is completed (hereinafter, synchronization establishment) in the synchronization phase.

第5図は、主局から従局へのデータ伝送(送信)、従局
から主局へのデータ伝送(受信)を行なう場合のフェー
ズ遷移を示している。アイドルフェーズにて受信要求が
出されると受信同期フェーズへ遷移し、送信要求が出さ
れると送信同期フェーズへ遷移する。受信或いは送信同
期フェーズにて同期不良が発生するとアイドルフェーズ
へ戻る。受信同期フェーズ或いは送信同期フェーズで同
期が確立すると、受信伝送フェーズ或いは送信伝送フェ
ーズへ遷移する。受信或いは送信伝送フェーズにて伝送
が終了し、又はタイムアウトが発生するとアイドルフェ
ーズへ戻る。これらのフェーズ遷移を実現するための手
続については後述する。
FIG. 5 shows phase transitions when data transmission (transmission) from the master station to the slave station and data transmission (reception) from the slave station to the master station. When a reception request is issued in the idle phase, the process transits to the reception synchronization phase, and when a transmission request is issued, the process transits to the transmission synchronization phase. When synchronization failure occurs in the reception or transmission synchronization phase, the process returns to the idle phase. When the synchronization is established in the reception synchronization phase or the transmission synchronization phase, the process transits to the reception transmission phase or the transmission transmission phase. When the transmission is completed in the reception or transmission transmission phase or a timeout occurs, the process returns to the idle phase. The procedure for realizing these phase transitions will be described later.

以下、アイドルフェーズ、同期フェーズ及び伝送フェー
ズにおける各制御信号の変化について説明する。
Hereinafter, changes in each control signal in the idle phase, the synchronization phase, and the transmission phase will be described.

アイドルフェーズ 第6図(a)中の1.の印で示す如く、自局は送信の意志
がない場合は制御信号CLKOUT及びSTSOUTをともに1に設
定し、その状態で外部からの基準クロックに同期したタ
イミングで相手局からの制御信号CLKIN及びSTSINの状態
を調査し、両方とも0でなければ相手局からの受信要求
もないと判断し、アイドルフェーズを継続する。図中の
2.の印で示す如くCLKIN及びSTSINがともに0となったと
きは、相手局からの受信要求の可能性があるため、受信
同期フェーズに遷移する。尚、第6図(a)にて括弧書
きの制御信号は相手局にとっての制御信号の種類を表わ
しており、以下の説明及び他の図においても同様とす
る。
Idle phase As indicated by the mark 1 in Fig. 6 (a), if the station has no intention of transmitting, it sets both control signals CLKOUT and STSOUT to 1, and in that state synchronizes with the external reference clock. At this timing, the states of the control signals CLKIN and STSIN from the partner station are checked, and if both are not 0, it is determined that there is no reception request from the partner station, and the idle phase is continued. In the figure
When both CLKIN and STSIN become 0 as indicated by the mark 2., there is a possibility of a reception request from the partner station, so the reception synchronization phase is entered. The parenthesized control signal in FIG. 6 (a) represents the type of control signal for the partner station, and the same applies to the following description and other drawings.

又、自局からの送信要求がある場合は、第6図(b)中
の2.の印で示す如く、CLKIN及びSTSINがともに1である
ことを前提に、CLKOUT及びSTSOUTをともに0に設定す
る。但し、CLKIN及びSTSINがともに1でない場合には、
STSOUTはハイインピーダンス状態を維持し(図示省
略)、データポート上での信号衝突を回避する。
Also, when there is a transmission request from the own station, both CLKOUT and STSOUT are set to 0 on the assumption that both CLKIN and STSIN are 1 as indicated by the mark 2 in Fig. 6 (b). To do. However, if both CLKIN and STSIN are not 1,
STSOUT maintains a high impedance state (not shown) to avoid signal collisions on the data port.

同期フェーズ 第7図中の1.の印で示す如く、従局(受信側)は受信状
態で制御信号(CLKIN)及び(STSIN)がともに0となる
のを待って、その確認応答として制御信号(CLKOUT)を
1、(STSOUT)を0とする。図中の2.に印で示す如く、
主局(送信側)は、CLKINが1であって且つSTSINが0に
移行したとき、受信側が伝送開始シーケンスを認識した
とみなして、CLKOUTを1、STSOUTを0に設定する。一定
時間内にCLKINが1、STSINが0にならない場合はアイド
ルフェーズに遷移する。更に図中の3.の印で示すよう
に、受信側は、(CLKIN)が1、(STSIN)が0となるの
を待って、伝送フェーズ移行準備完了通知の意味で(CL
KOUT)及び(STSOUT)をともに1に設定する。一定時間
内に上記の状態にならず、或いは他の状態を検出した場
合はアイドルフェーズへ遷移する。
Synchronization phase As indicated by mark 1 in Fig. 7, the slave station (reception side) waits for both the control signals (CLKIN) and (STSIN) to become 0 in the receiving state, and then sends the control signal ( Set CLKOUT) to 1 and (STSOUT) to 0. As shown by mark 2 in the figure,
When CLKIN is 1 and STSIN shifts to 0, the main station (transmission side) considers that the reception side has recognized the transmission start sequence and sets CLKOUT to 1 and STSOUT to 0. If CLKIN is not 1 and STSIN is not 0 within a certain period of time, transition to the idle phase. Further, as indicated by the mark 3 in the figure, the receiving side waits until (CLKIN) becomes 1 and (STSIN) becomes 0, and in the meaning of the transmission phase transition preparation completion notification (CL
Set both (KOUT) and (STSOUT) to 1. If the above state is not reached within a certain period of time, or if another state is detected, the idle phase is entered.

尚、両局が同時に送信を開始せんとしてコンテンション
が発生し、タイムアウトとしてアイドルフェーズへ移行
した場合は、両局が同相同周期の基準クロックを使用す
るわけではないので、再度同期フェーズを実行すること
によってコンテンションは解消される。
If both stations do not start transmission at the same time and contention occurs, and if a timeout occurs and the process shifts to the idle phase, both stations do not use the reference clocks of the same phase and the same period, so the synchronization phase is executed again. Contention is resolved by this.

上記同期フェーズは、4つの制御信号CLKOUT、STSOUT、
CLKIN及びSTSINの状態変化によるパターンマッチングと
して据えることが出来、所定のパターンマッチングが得
られたとき、同期が確立することになる。
In the above synchronization phase, four control signals CLKOUT, STSOUT,
It can be set as pattern matching by changing the state of CLKIN and STSIN, and when a predetermined pattern matching is obtained, synchronization will be established.

又、4つの信号線のパターンには特別な意味が付与され
ている。即ち、第10図(a)(b)に示す様にIの時点
(アイドルフェーズ)からIIの時点(同期フェーズ)へ
の移行(第1ステップ)において、CLKOUT及びSTSOUTを
1から0に変化させることによって、主局宣言コマンド
が形成され、一方の局が主局宣言を為したことが表わさ
れる。次に、IIの時点からIIIの時点への移行(第2ス
テップ)において、(CLKOUT)を1に維持したまま、
(STSOUT)を1から0へ変化させることによって、従局
承諾ステータスが形成され、従局の承諾を表わす。更に
IIIの時点からIVの時点への移行(第3ステップ)にお
いて、STSOUTを0に維持したまま、CLKOUTを0から1へ
変化させることによって、送信開始要求コマンドが形成
され、主局が送信開始を要求したことが表わされる。更
に又、IVの時点からVの時点への移行(第4ステップ)
において、(CLKOUT)を1に維持したまま、(STSOUT)
を0から1に変化させることによって、従局準備完了ス
テータスが形成され、従局の受信準備完了(同期確立)
を表わすのである。
Further, a special meaning is given to the pattern of the four signal lines. That is, as shown in FIGS. 10 (a) and 10 (b), CLKOUT and STSOUT are changed from 1 to 0 at the transition (first step) from the time point I (idle phase) to the time point II (synchronous phase). By this, a master station declaration command is formed, and it is indicated that one station has made a master station declaration. Next, in the transition from the time point II to the time point III (second step), while keeping (CLKOUT) at 1,
By changing (STSOUT) from 1 to 0, a slave consent status is formed and represents the slave's consent. Further
In the transition from the time point III to the time point IV (third step), while maintaining STSOUT at 0, CLKOUT is changed from 0 to 1 to form a transmission start request command, and the main station starts transmission. The request is shown. Furthermore, transition from time point IV to time point V (4th step)
In (STSOUT) while keeping (CLKOUT) at 1,
By changing from 0 to 1, the slave station ready status is formed and the slave station is ready to receive (synchronization is established).
Represents.

前記コマンド及びステータスは、夫々2つの制御信号か
ら形成されているから、制御線の電気特性によってスレ
ッショルドレベルに達するまでの時間に差が生じた場合
にも、誤認による事故は効果的に防止される。
Since the command and the status are each formed of two control signals, even if a difference occurs in the time required to reach the threshold level due to the electrical characteristics of the control line, accidents due to misidentification are effectively prevented. .

又、主局宣言コマンド及び従局承諸ステータスのみなら
ず、送信開始要求コマンド及び受信準備完了ステータス
の形成によって同期確立が達成されているから、コンテ
ンションが発生した場合にも誤認によるデータ伝送は確
実に防止されることになる。
In addition, since synchronization establishment is achieved not only by the master station declaration command and slave station acceptance status but also by the formation of the transmission start request command and the reception preparation completion status, even if contention occurs, data transmission due to misidentification is sure. Will be prevented.

尚、同期フェーズにおける4つの制御信号の同期パター
ンとしては、第10図(a)(b)に示すものを含めて原
理的には36種類あり得るが、初期条件値及び終了条件値
を考慮し、更に後述の伝送フェーズにおいて出現する可
能性のないパターンを選定する必要がある。この条件を
満たすパターンとしては、第10図(a)(b)に示すも
の以外に、第11図(a)(b)に示すパターンが採用可
能である。
In principle, there may be 36 types of synchronization patterns of the four control signals in the synchronization phase, including those shown in FIGS. 10 (a) and (b), but considering the initial condition value and end condition value. Furthermore, it is necessary to select a pattern that is unlikely to appear in the later-described transmission phase. As the pattern satisfying this condition, the patterns shown in FIGS. 11A and 11B can be adopted in addition to the patterns shown in FIGS. 10A and 10B.

伝送フェーズ データの伝送は第8図に示す如く主局(送信側)が送出
する制御信号CLKOUTと従局(受信側)が送出する制御信
号CLKINのハンドシェイクに同期して行なわれる。
Transmission Phase Data transmission is performed in synchronization with the handshake of the control signal CLKOUT sent by the master station (transmission side) and the control signal CLKIN sent by the slave station (reception side) as shown in FIG.

同期フェーズを正常に通過して、制御信号CLKIN及びSTS
INがともに1となって伝送開始条件が整うと、図中の1.
に示す様に、送信側はCLKOUTを0に設定すると共に、DT
PORTに該当ビットを出力する。受信側は同図の2.に示す
様に(CLKIN)が0となるのを待って、(DTPORT)から
該当ビットを取り出し、(CLKOUT)を0に設定する。送
信側は、3.に示す様にCLKINが0となるのを待って、CLK
OUTを1に設定すると共に、DTPORTに該当ビットを出力
する。受信側は、4.に示す様に(CLKIN)が1となるの
を待って、(DTPORT)から該当ビットを取り出し、(CL
KOUT)を1に設定する。以上のシーケンスを繰返すこと
によって次々とデータが伝送されるのである。この過程
で、送信側は、5.に示す様にSTSINが0に変化したと
き、送信アボートとする。受信側は、6.に示す様に(ST
SIN)が1になったとき、相手の送信完了とみなす。
After successfully passing the synchronization phase, control signals CLKIN and STS
When IN becomes 1 and the transmission start condition is satisfied, 1.
As shown in, the transmitting side sets CLKOUT to 0 and DT
Output the corresponding bit to PORT. The receiving side waits for (CLKIN) to become 0, as shown in 2. in the figure, extracts the corresponding bit from (DTPORT), and sets (CLKOUT) to 0. The transmission side waits for CLKIN to become 0 as shown in 3.
Set OUT to 1 and output the corresponding bit to DTPORT. The receiving side waits for (CLKIN) to become 1 as shown in 4, then extracts the corresponding bit from (DTPORT), and (CL
Set KOUT) to 1. Data is transmitted one after another by repeating the above sequence. In this process, the transmission side aborts the transmission when STSIN changes to 0 as shown in 5. On the receiving side, as shown in 6. (ST
When SIN) becomes 1, it is considered that the other party's transmission is completed.

第9図は、上記のアイドルフェーズから同期フェーズを
経て、主局から従局への伝送フェーズへ遷移し、更に同
期フェーズを経て従局から主局への伝送フェーズへ至る
一連のシーケンスを示している。図示の如く、制御信号
の状態変化の僅か2周期で同期が確立し、その後の伝送
フェーズへの移行は淀みなく行なわれ、然も伝送フェー
ズにおけるデータ伝送は制御信号の状態変化周期と同一
の周期で行なわれており、極めて高速のデータ伝送が実
現がされている。
FIG. 9 shows a series of sequences from the idle phase to the synchronization phase, to the transmission phase from the master station to the slave station, and then to the transmission phase from the slave station to the master station via the synchronization phase. As shown in the figure, the synchronization is established in only two cycles of the state change of the control signal, and the transition to the transmission phase thereafter is performed smoothly, and the data transmission in the transmission phase is the same period as the state change cycle of the control signal. And extremely high-speed data transmission has been realized.

以下、第13図乃至第17図のフローチャートに沿って第3
図のフェーズコントロールユニット(10)に登録されて
いる手続について説明する。
The third step will be described below with reference to the flowcharts of FIGS. 13 to 17.
The procedure registered in the phase control unit (10) in the figure will be described.

第12図に示す様にアイドルフェーズでは、CPUからの信
号が送信要求か否か判断(15)し、YESであれば送信同
期フェーズへ遷移し、NOの場合は、CLKOUT及びSTSOUTが
ともに0か否か判断(16)する。NOの場合は前記判断
(15)に戻り、YESの場合は受信同期フェーズへ遷移す
る。
As shown in FIG. 12, in the idle phase, it is judged whether or not the signal from the CPU is a transmission request (15), and if YES, it transits to the transmission synchronization phase. If NO, CLKOUT and STSOUT are both 0. It is judged (16). If NO, the process returns to the judgment (15). If YES, the process shifts to the reception synchronization phase.

送信同期フェーズにおいては、第13図に示す様にステー
ト監視タイマーをスタートした後、該タイマーのタイム
アップを監視しつつ、CLKIN及びSTSINがともに1である
か否かを判断(17)し、YESの場合は、CLKOUT及びSTSOU
Tをともに0に設定する。その後、ステート監視タイマ
ーによるタイムアップを監視しつつ、CLKINが1でSTSIN
が0であるか否かを判断(18)し、YESの場合はCLKOUT
を1、STSOUTを0に設定する。更にステート監視タイマ
ーによるタイムアップを監視しつつ、CLKIN、STSINとも
に1か否かを判断(19)し、YESの場合は送信伝送フェ
ーズへ移行する。
In the transmission synchronization phase, after starting the state monitoring timer as shown in FIG. 13, it is judged whether both CLKIN and STSIN are 1 while monitoring the time-up of the timer (17), and YES If, CLKOUT and STSOU
Both T are set to 0. After that, while monitoring the time up by the state monitoring timer, CLKIN is 1 and STSIN
Is determined (18), and if YES, CLKOUT
To 1 and STSOUT to 0. Furthermore, while monitoring the time-up by the state monitoring timer, it is judged whether or not both CLKIN and STSIN are 1 (19), and if YES, it shifts to the transmission transmission phase.

一方、受信同期フェーズに於いては、第14図に示す如く
ステート監視タイマーによるタイムアップを監視しつ
つ、(CLKIN)、(STSIN)ともに0か否かを判断(20)
し、YESの場合は(CLKOUT)を1、(STSOUT)を0とす
る。次にステート監視タイマーによるタイムアップを監
視しつつ、(CLKIN)が1で(STSIN)が0か否かを判断
(21)し、YESの場合は(CLKOUT)、(STSOUT)をとも
に1とした後、受信伝送フェーズへ遷移する。
On the other hand, in the reception synchronization phase, it is determined whether or not both (CLKIN) and (STSIN) are 0 while monitoring the time-up by the state monitoring timer as shown in FIG. 14 (20).
If YES, (CLKOUT) is set to 1 and (STSOUT) is set to 0. Next, while monitoring the time-up by the state monitoring timer, it is judged whether (CLKIN) is 1 and (STSIN) is 0 (21). If YES, both (CLKOUT) and (STSOUT) are set to 1. After that, it transits to the reception transmission phase.

第15図の如く送信伝送フェーズ1では、ステート監視タ
イマーによるタイムアップを監視しつつ、CLKIN、STSIN
がともに1であるか否かを判断(22)し、YESの場合は
データ送出後、CLKOUT、STSOUTを0に設定する。その
後、送信伝送フェーズ2では、タイムアップ監視の下、
CLKINが0、STSINが1か否かを判断(23)し、YESの場
合はデータ送出後、CLKOUTを1、STSOUTを0に設定した
後、タイムアップ監視の下における前記判断(22)に戻
る。
As shown in Fig. 15, in the transmission and transmission phase 1, CLKIN and STSIN are monitored while monitoring the time up by the state monitoring timer.
Are both 1 (22). If YES, CLKOUT and STSOUT are set to 0 after data transmission. After that, in the transmission transmission phase 2, under time-up monitoring,
It is judged whether CLKIN is 0 and STSIN is 1 (23). If YES, after sending data, set CLKOUT to 1 and STSOUT to 0, and then return to the above judgment (22) under time-up monitoring. .

一方、受信伝送フェーズ1では第16図の如く、タイムア
ップ監視の下、(CLKIN)、(STSIN)がともに0である
か否かを判断(24)し、YESの場合はデータ取込み後、
(CLKOUT)を0、(STSOUT)を1に設定する。その後、
受信伝送フェーズ2では、タイムアップ監視の下、(CL
KIN)が1、(STSIN)が0か否かを判断(25)し、YES
の場合はデータ取込み後、(CLKOUT)、(STSOUT)をと
もに1に設定した後、タイムアップ監視の下における前
記判断(24)に戻る。
On the other hand, in the reception / transmission phase 1, as shown in FIG. 16, it is determined whether or not both (CLKIN) and (STSIN) are 0 under the time-up monitoring (24). If YES, after data acquisition,
Set (CLKOUT) to 0 and (STSOUT) to 1. afterwards,
In the reception transmission phase 2, under the time-up monitoring, (CL
Judge whether (KIN) is 1 and (STSIN) is 0 (25), and YES
In the case of (1), after fetching the data, after setting both (CLKOUT) and (STSOUT) to 1, the process returns to the judgment (24) under the time-up monitoring.

以上の手続によって第5図に示すフェーズ遷移及び各フ
ェーズにおける動作が実現されることになる。
By the above procedure, the phase transition and the operation in each phase shown in FIG. 5 are realized.

〔第2実施例〕 本実施例は、第17図に示す如く一対の通信制御回路(5
0)(50)を連結する4本の制御信号線CLKOUT、CLKIN、
STSOUT及びSTSINによる同期確立の後、1本の信号線STS
OUT(STSIN)をデータ線として利用して、16ビットを1
フレームとするシリアルデータの伝送を行なうものであ
る。尚、本実施例では、前記第1実施例とは信号状態値
“1"と“0"の論理関係が逆に設定されている。
Second Embodiment In this embodiment, as shown in FIG. 17, a pair of communication control circuits (5
0) Four control signal lines CLKOUT, CLKIN, which connect (50)
After establishing synchronization by STSOUT and STSIN, one signal line STS
Uses OUT (STSIN) as a data line and sets 16 bits to 1
The serial data is transmitted as a frame. In this embodiment, the logical relationship between the signal state values "1" and "0" is set opposite to that in the first embodiment.

ハードウエアの構成は第1実施例と略同一であるが、シ
リアル伝送であるから、第2図に示すデータポート
(9)は不要である。
The hardware configuration is almost the same as that of the first embodiment, but the data port (9) shown in FIG. 2 is not necessary because of serial transmission.

アイドルフェーズ及び同期フェーズは、論理関係が逆で
あることを除いて前記第1実施例における第6図(a)
(b)及び第7図に示すシーケンスと全く同一のシーケ
ンスが実行される。
FIG. 6 (a) in the first embodiment, except that the idle phase and the synchronization phase have opposite logical relationships.
The same sequence as the sequence shown in (b) and FIG. 7 is executed.

例えば同期フェーズでは第18図に示す如く、送信側がCL
KOUT及びSTSOUTを0に設定した後、図中の1.に示す様に
CKLIN及びSTSINがともに0であるこを確認して、CLKOUT
及びSTSOUTがともに1に設定する。次に受信側は(CLKI
N)及び(STSIN)がともに1となるのを待って、図中2.
の様に確認応答として(CLKOUT)及び(STSOUT)を1に
設定する。その後、送信側は、CLKIN及びSTSINがとも1
に移行したとき、受信側が伝送開始シーケンスを認識し
たとみなし、CLKOUT及びSTSOUTを1に設定する。一定時
間経過しても変化がなければ回線断とみなす。又、CLKI
N及びSTSINがともに1とならず、他の状態となった場合
はプロトコルエラーであると判断して、アイドルフェー
ズに移行する。更に、受信側は、(CLKIN)が0、(STS
IN)が1となるのを待って、伝送フェーズ移行準備完了
通知の意味で(CLKOUT)、(STSOUT)をともに0に設定
するのである。
For example, in the synchronization phase, as shown in FIG.
After setting KOUT and STSOUT to 0, as shown in 1.
Confirm that CKLIN and STSIN are both 0, and check CLKOUT
Set both STSOUT and STSOUT to 1. Next, the receiving side (CLKI
Wait for both N) and (STSIN) to become 1 and then 2. in the figure.
Set (CLKOUT) and (STSOUT) to 1 as confirmation response as shown in. After that, both CLKIN and STSIN are 1 on the transmitting side.
When it shifts to, it is considered that the receiving side has recognized the transmission start sequence, and CLKOUT and STSOUT are set to 1. If there is no change after a certain period of time, it is considered to be a disconnection. Also, CLKI
If both N and STSIN do not become 1 and other states occur, it is determined that there is a protocol error and the process shifts to the idle phase. Furthermore, on the receiving side, (CLKIN) is 0, (STS
After (IN) becomes 1, both (CLKOUT) and (STSOUT) are set to 0 in the sense of a transmission phase transition preparation completion notification.

データ伝送フェーズでは第1実施例とは異なるシーケン
スが実行される。ビット伝送は、第19図に示す如く送信
側が送出するCLKOUTと受信側が送出するCLKINのハンド
シェイクに同期して行なわれ、偶数ビットはCLKOUTの立
上りに、奇数ビットは立下りに同期して転送される。
In the data transmission phase, a sequence different from that in the first embodiment is executed. Bit transmission is performed in synchronization with the handshake of CLKOUT sent by the transmitter and CLKIN sent by the receiver, as shown in Fig. 19. It

CLKIN、STSINがともに0となって伝送開始条件が整う
と、送信側は、CLKINが0となるのを待って、CLKOUTを
1に設定すると共に、STSOUTに該当ビットを出力する。
受信側は(CLKIN)が1となるのを待って、(STSIN)か
ら該当ビットを取り出し、(CLKOUT)を1に設定する。
次に送信側はCLKINが1となるのを待って、CLKOUTを0
に設定すると共に、STSOUTに該当ビットを出力する。更
に受信側は、(CLKIN)が0となるのを待って、(STSI
N)から該当ビットを取り出し、(CLKOUT)を0に設定
する。受信側の信号(STSOUT)は1フレームの受信開始
時点で1に設定し、受信終了で0に設定する。
When both CLKIN and STSIN become 0 and the transmission start condition is satisfied, the transmitting side waits until CLKIN becomes 0, sets CLKOUT to 1, and outputs the corresponding bit to STSOUT.
The receiving side waits until (CLKIN) becomes 1, extracts the corresponding bit from (STSIN), and sets (CLKOUT) to 1.
Next, the transmission side waits for CLKIN to become 1, and then sets CLKOUT to 0.
And set the corresponding bit to STSOUT. Furthermore, the receiving side waits until (CLKIN) becomes 0, and then (STSI
Extract the relevant bit from (N) and set (CLKOUT) to 0. The signal (STSOUT) on the receiving side is set to 1 at the start of receiving one frame and set to 0 at the end of receiving.

第20図は、上記のシーケンスに従ってアイドルフェーズ
から同期フェーズを経て伝送フェーズへ至り、更に同期
フェーズへ遷移している信号例を示している。前記第1
実施例と同様に、制御信号の僅か2周期で同期が確立
し、その後の伝送フェーズへの移行は淀みなく行なわ
れ、然も伝送フェーズにおけるデータ伝送は、制御信号
の状態変化周期と同一の周期で行なわれ、極めて高速
(例えば60Kbps)のデータ伝送が実現がされている。
FIG. 20 shows an example of a signal in which the idle phase, the synchronization phase, the transmission phase, the transmission phase, and the synchronization phase are transitioned in accordance with the above sequence. The first
Similar to the embodiment, the synchronization is established in only two cycles of the control signal, and the subsequent transition to the transmission phase is performed in a steady manner, and the data transmission in the transmission phase is the same as the state change cycle of the control signal. , And extremely high-speed (for example, 60 Kbps) data transmission has been realized.

本実施例において前記フェーズコントロールユニット
(10)に登録されている手続は、同期フェーズでは第13
図及び第14図の示すものと同じである。以下、第21図及
び第22図に沿って伝送フェーズにおける手続について説
明する。
In the present embodiment, the procedure registered in the phase control unit (10) is
This is the same as that shown in FIG. 14 and FIG. The procedure in the transmission phase will be described below with reference to FIGS. 21 and 22.

第21図に示す様に送信伝送フェーズ1では、ステート監
視タイマーによるタイムアップを監視しつつ、CLKIN、S
TSINがともに1であるか否かを判断(26)し、YESの場
合はSTSOUTにデータ送出後、CLKOUTを0に設定する。そ
の後、送信伝送フェーズ2では、タイムアップ監視の
下、CLKINが0、STSINが1か否かを判断(27)し、YES
の場合はSTSOUTにデータを送出し、CLKOUTを10に設定し
た後、タイムアップ監視の下における前記判断(26)に
戻る。
As shown in Fig. 21, in the transmission and transmission phase 1, while monitoring the time up by the state monitoring timer, CLKIN, S
It is judged whether both TSIN are 1 (26). If YES, CLKOUT is set to 0 after sending data to STSOUT. After that, in the transmission and transmission phase 2, it is judged whether CLKIN is 0 and STSIN is 1 while monitoring the time-up (27), and YES
In the case of, the data is sent to STSOUT, CLKOUT is set to 10, and then the process returns to the judgment (26) under the time-up monitoring.

一方、受信伝送フェーズ1では第22図の如く、タイムア
ップ監視の下、(CLKIN)が0であるか否かを判断(2
8)し、YESの場合は(STSOUT)からデータを取り込んだ
後、(CLKOUT)を0に設定する。その後、受信伝送フェ
ーズ2では、タイムアップ監視の下、(CLKIN)が1か
否かを判断(29)し、YESの場合は(STSOUT)からデー
タを取り込み、(CLKOUT)を1に設定した後、タイムア
ップ監視の下における前記判断(28)に戻る。
On the other hand, in the reception transmission phase 1, as shown in FIG. 22, it is judged whether (CLKIN) is 0 or not under the time-up monitoring (2
8) If yes, after fetching data from (STSOUT), set (CLKOUT) to 0. After that, in the reception transmission phase 2, it is judged whether (CLKIN) is 1 or not under the time-up monitoring (29), and if YES, the data is fetched from (STSOUT) and (CLKOUT) is set to 1 , Return to the judgment (28) under the time-up monitoring.

以上の手続の実行によって第5図に示すフェーズ遷移、
前述の各フェーズにおけるデータ通信が実現されるので
ある。尚、第1実施例と同様に同期フェーズの信号パタ
ーンは伝送フェーズにおいて発生することはなく、従っ
てデータ伝送中に誤動作を起こすことはない。
By executing the above procedure, the phase transition shown in FIG.
Data communication in each phase described above is realized. Incidentally, as in the first embodiment, the signal pattern in the synchronization phase does not occur in the transmission phase, so that no malfunction occurs during data transmission.

上記データ通信方式に於いては、主局宣言から従局承
諾、主局の送信開始要求を経て従局の受信準備完了に至
るまでの一連のシーケンスが極めて単純であるから、そ
のシーケンスの実行時間が従来に比べて大きく短縮され
るばかりでなく、シーケンスの実行を論理回路で実現す
る場合、回路構成が簡易となる。
In the above data communication method, since the sequence from the master station declaration to the slave station acceptance, the master station transmission start request to the slave station ready to receive is extremely simple, the execution time of the sequence is conventionally In addition to being greatly shortened, the circuit configuration becomes simple when the execution of the sequence is realized by the logic circuit.

又、データ伝送の際に2エッジハンドシェイクを採用す
ることによって、制御信号の周期とデータの伝送周期を
同一としているから、高速のデータ伝送が可能である。
Further, by adopting the two-edge handshake at the time of data transmission, the cycle of the control signal and the cycle of data transmission are the same, so that high-speed data transmission is possible.

上記実施例の説明は、本発明を説明するためのものであ
って、特許請求の範囲に記載の発明を限定し、或は範囲
を減縮する様に解すべきではない。又、本発明の各部構
成は上記実施例に限らず、特許請求の範囲に記載の技術
的範囲内で種々の変形が可能であることは勿論である。
The above description of the embodiments is for explaining the present invention, and should not be construed as limiting the invention described in the claims or limiting the scope. The configuration of each part of the present invention is not limited to the above-mentioned embodiment, and it goes without saying that various modifications can be made within the technical scope described in the claims.

例えば第12図乃至第16図、第21図及び第22図に示す手続
はソフトウエアで実現しているが、これをハードウエア
で実現することも可能である。
For example, although the procedures shown in FIGS. 12 to 16, 21 and 22 are realized by software, they can be realized by hardware.

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

第1図乃至第16図は本発明をパラレル伝送に実施した例
を示し、第1図は全体の機器構成を示すブロック図、第
2図は通信制御回路の構成を示すブロック図、第3図は
コントロールロジックの回路構成を示すブロック図、第
4図はフェーズの移行を示すタイムチャート、第5図は
各フェーズ間の遷移図、第6図(a)及び(b)はアイ
ドルフェーズにおける信号の変化を示すタイムチャー
ト、第7図は同期フェーズにおける信号の変化を示すタ
イムチャート、第8図は伝送フェーズにおける信号の変
化を示すタイムチャート、第9図はアイドルフェーズか
ら伝送フェーズへ至る信号の変化を示すタイムチャー
ト、第10図(a)は同期フェーズにおける信号の状態値
の変化を示すタイムチャート、第10図(b)は同上の変
化を表わす図表、第11図(a)は第10図(a)に対応す
る他の状態値変化例を示すタイムチャート、第11図
(b)は同上の変化例を表わす図表、第12図乃至第16図
は各フェーズにおける動作を費用わすフローチャート、
第17図乃至第22図は本発明をシリアル伝送に実施した例
を示し、第17図は信号線の構成を説明するブロック図、
第18図は同期フェーズにおける信号の変化を示すタイム
チャート、第19図は伝送フェーズにおける信号の変化を
示すタイムチャート、第20図はアイドルフェーズから伝
送フェーズへ至る信号の変化を示すタイムチャート、第
21図及び第22図は伝送フェーズにおける動作を示すフロ
ーチャート、第23図及び第24図は従来方式における信号
の変化を示すタイムチャートである。 (1)(2)……コンピュータシステム (5)(50)……通信制御回路 CLKOUT、CLKIN、STSOUT、STSIN……制御信号
1 to 16 show an example in which the present invention is applied to parallel transmission, FIG. 1 is a block diagram showing the overall device configuration, FIG. 2 is a block diagram showing the configuration of a communication control circuit, and FIG. Is a block diagram showing the circuit configuration of the control logic, FIG. 4 is a time chart showing transition of phases, FIG. 5 is a transition diagram between each phase, and FIGS. 6 (a) and 6 (b) are signals of the idle phase. A time chart showing changes, FIG. 7 is a time chart showing changes in signals in the synchronization phase, FIG. 8 is a time chart showing changes in signals in the transmission phase, and FIG. 9 is changes in signals from the idle phase to the transmission phase. FIG. 10 (a) is a time chart showing a change in the state value of a signal in the synchronization phase, FIG. 10 (b) is a chart showing the same change, FIG. a) is a time chart showing another example of change in state value corresponding to FIG. 10 (a), FIG. 11 (b) is a chart showing the same change example, and FIGS. 12 to 16 show the operation in each phase. Flow chart,
17 to 22 show an example in which the present invention is applied to serial transmission, and FIG. 17 is a block diagram illustrating the configuration of signal lines,
FIG. 18 is a time chart showing changes in signals in the synchronization phase, FIG. 19 is a time chart showing changes in signals in the transmission phase, and FIG. 20 is a time chart showing changes in signals from the idle phase to the transmission phase.
21 and 22 are flowcharts showing the operation in the transmission phase, and FIGS. 23 and 24 are time charts showing changes in signals in the conventional system. (1) (2) ...... Computer system (5) (50) ...... Communication control circuit CLKOUT, CLKIN, STSOUT, STSIN ...... Control signal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】少なくとも4本の信号線で相互に接続され
た一対の通信機器間で、任意の一方の機器が送信側の主
局、他方の機器が受信側の従局となって、双方向のデー
タ通信を行なう方式であって、前記4本の信号線中、2
本の信号線は主局から従局への第1制御信号CLKOUT及び
第2制御信号STSOUTの送信用に使用すると供に、残りの
2本の信号線は従局から主局への第3制御信号CLKIN及
び第4制御信号STSINの受信用に使用し、主局と従局を
決定するための同期フェーズを経た後、主局から従局へ
のデータ伝送を開始し、同期フェーズは、第1乃至第4
制御信号が同一の状態値に設定された初期状態から、第
1及び第2制御信号をともに状態変化させる第1ステッ
プと、第1ステップの実現を前提として第3及び第4制
御信号の何れか一方又は双方を状態変化させる第2ステ
ップと、第2ステップの実現を前提として第1及び第2
制御信号の何れか一方をもとの状態に戻す第3ステップ
と、第3ステップの実現を前提として第3及び第4制御
信号をもとの状態に戻す第4ステップとから構成され、
第4ステップが実現されたときにのみ伝送フェーズへ遷
移することを特徴とするデータ通信方式。
1. A pair of communication devices mutually connected by at least four signal lines, one of which is a transmitting side master station, and the other of which is a receiving side slave station. Of the four signal lines, 2
This signal line is used for transmitting the first control signal CLKOUT and the second control signal STSOUT from the master station to the slave station, and the remaining two signal lines are the third control signal CLKIN from the slave station to the master station. And for receiving the fourth control signal STSIN, and after passing through a synchronization phase for determining the master station and the slave stations, data transmission from the master station to the slave stations is started.
From the initial state in which the control signal is set to the same state value, a first step in which both the first and second control signals are changed in state, and one of the third and fourth control signals is premised on realizing the first step. The second step of changing the state of one or both of them, and the first and second steps assuming the realization of the second step.
A third step of returning one of the control signals to the original state, and a fourth step of returning the third and fourth control signals to the original state on the assumption that the third step is realized,
A data communication method characterized in that a transition to a transmission phase is made only when the fourth step is realized.
【請求項2】4本の制御信号線とデータバスで相互に接
続された一対の通信機器間で、任意の一方の機器が送信
側の主局、他方の機器が受信側の従局となって、パラレ
ルデータの双方向通信を行なう方式であって、前記4本
の制御信号線中、2本の信号線は主局から従局への第1
制御信号CLKOUT及び第2制御信号STSOUTの送信用に使用
すると共に、残りの2本の信号線は従局から主局への第
3制御信号CLKIN及び第4制御信号STSINの受信用に使用
し、主局と従局を決定するための同期フェーズを経た
後、主局から従局へデータを伝送する伝送フェーズへ遷
移し、同期フェーズは、第1乃至第4制御信号が同一の
状態値に設定された初期状態から、第1及び第2制御信
号をともに状態変化させる第1ステップと、第1ステッ
プの実現を前提として第3及び第4制御信号の何れか一
方又は双方を状態変化させる第2ステップと、第2ステ
ップの実現を前提として第1及び第2制御信号の何れか
一方をもとの状態に戻す第3ステップと、第3ステップ
の実現を前提として第3及び第4制御信号をもとの状態
に戻す第4ステップとから構成され、第4ステップが実
現されたときにのみ伝送フェーズへ遷移し、伝送フェー
ズにおいては、前記同期フェーズの第4ステップ完了時
の第1乃至第4制御信号の状態を初期状態としてデータ
伝送を開始すると共に、第1制御信号CLKOUTを一定周期
で状態変化させつつ、該第1制御信号の状態変化を前提
として第3制御信号CLKINを状態変化せしめ、該第3制
御信号の状態変化と同期してデータ伝送を継続すること
を特徴とするデータ通信方式。
2. Among a pair of communication devices mutually connected by four control signal lines and a data bus, any one device is a transmitting side master station and the other device is a receiving side slave station. , A parallel data bidirectional communication method, wherein two signal lines of the four control signal lines are the first from the master station to the slave station.
It is used for transmitting the control signal CLKOUT and the second control signal STSOUT, and the remaining two signal lines are used for receiving the third control signal CLKIN and the fourth control signal STSIN from the slave station to the master station. After passing through the synchronization phase for determining the station and the slave station, a transition is made to a transmission phase for transmitting data from the master station to the slave station, and in the synchronization phase, the first to fourth control signals are initially set to the same state value. A first step of changing the states of both the first and second control signals from the state; and a second step of changing the state of either or both of the third and fourth control signals on the assumption that the first step is realized. A third step of returning either one of the first and second control signals to the original state on the premise of the realization of the second step, and a third step on the basis of the third and fourth control signals on the premise of the realization of the third step. It consists of the fourth step of returning to the state. Transition to the transmission phase only when the fourth step is realized, and in the transmission phase, data transmission is performed with the states of the first to fourth control signals at the completion of the fourth step of the synchronization phase as initial states. At the same time as starting, while changing the state of the first control signal CLKOUT at a constant cycle, change the state of the third control signal CLKIN on the premise of the state change of the first control signal, and synchronize with the state change of the third control signal. A data communication method characterized by continuing data transmission.
【請求項3】4本の信号線で相互に接続された一対の通
信機器間で、任意の一方の機器が送信側の主局、他方の
機器が受信側の従局となって、シリアルデータの双方向
通信を行なう方式であって、主局と従局を決定するため
の同期フェーズを経た後、主局から従局へデータを伝送
する伝送フェーズへ遷移し、同期フェーズでは、前記4
本の信号線中、2本の信号線は主局から従局への第1制
御信号CLKOUT及び第2制御信号STSOUTの送信用に使用す
ると共に、残りの2本の信号線は従局から主局への第3
制御信号CLKIN及び第4制御信号STSINの受信用に使用
し、伝送フェーズでは、前記第2制御信号STSOUTの信号
線をシリアルデータの伝送に使用し、同期フェーズは、
第1乃至第4制御信号が同一の状態値に設定された初期
状態から、第1及び第2制御信号をともに状態変化させ
る第1ステップと、第1ステップの実現を前提として第
3及び第4制御信号の何れか一方又は双方を状態変化さ
せる第2ステップと、第2ステップの実現を前提として
第1及び第2制御信号の何れか一方をもとの状態に戻す
第3ステップと、第3ステップの実現を前提として第3
及び第4制御信号をもとの状態に戻す第4ステップとか
ら構成され、第4ステップが実現されたときにのみ伝送
フェーズへ遷移し、伝送フェーズにおいては、前記同期
フェーズの第4ステップ完了時の第1乃至第4制御信号
の状態を初期状態としてデータ伝送を開始すると共に、
第1制御信号CLKOUTを一定周期で状態変化させつつ、該
第1制御信号の状態変化を前提として第3制御信号CLKI
Nを状態変化せしめ、該第3制御信号の状態変化と同期
してデータ伝送を継続することを特徴とするデータ通信
方式。
3. A pair of communication devices connected to each other by four signal lines, one of which is a transmitting master station and the other of which is a receiving slave station. In the bidirectional communication method, after passing through a synchronization phase for determining a master station and a slave station, a transition is made to a transmission phase in which data is transmitted from the master station to the slave station.
Of the two signal lines, two signal lines are used for transmitting the first control signal CLKOUT and the second control signal STSOUT from the master station to the slave station, and the remaining two signal lines are from the slave station to the master station. The third
The control signal CLKIN and the fourth control signal STSIN are used for reception, the transmission phase uses the signal line of the second control signal STSOUT for transmission of serial data, and the synchronization phase uses
From the initial state in which the first to fourth control signals are set to the same state value, the first step of changing the states of both the first and second control signals, and the third and fourth steps assuming the realization of the first step A second step of changing the state of one or both of the control signals; a third step of returning one of the first and second control signals to the original state on the premise of realizing the second step; Third on the assumption that the steps are realized
And a fourth step of returning the fourth control signal to the original state, and transits to the transmission phase only when the fourth step is realized, and in the transmission phase, when the fourth step of the synchronization phase is completed. Data transmission is started by setting the states of the first to fourth control signals of
While changing the state of the first control signal CLKOUT at a constant cycle, the third control signal CLKI is premised on the state change of the first control signal.
A data communication system characterized in that N is changed in state, and data transmission is continued in synchronization with a change in state of the third control signal.
JP2009156A 1990-01-17 1990-01-17 Data communication method Expired - Lifetime JPH0720160B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009156A JPH0720160B2 (en) 1990-01-17 1990-01-17 Data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009156A JPH0720160B2 (en) 1990-01-17 1990-01-17 Data communication method

Publications (2)

Publication Number Publication Date
JPH03213031A JPH03213031A (en) 1991-09-18
JPH0720160B2 true JPH0720160B2 (en) 1995-03-06

Family

ID=11712759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009156A Expired - Lifetime JPH0720160B2 (en) 1990-01-17 1990-01-17 Data communication method

Country Status (1)

Country Link
JP (1) JPH0720160B2 (en)

Also Published As

Publication number Publication date
JPH03213031A (en) 1991-09-18

Similar Documents

Publication Publication Date Title
JP2863771B2 (en) Synchronous serial interface resynchronization method and circuit
CN103312636B (en) Signal conditioning package, serial communication system and device and communication initialization method
EP0570322A1 (en) Power-saving, full duplex nodal communications systems
JPS62155651A (en) Method and apparatus for creating synchronous handshake
US6385319B1 (en) Encoding circuit and method of detecting block code boundary and establishing synchronization between scrambler and descrambler
WO2001095551A2 (en) Method and device for synchronization of phase mismatch in communication systems employing a common clock period
US4835776A (en) Communication filter
JPH0720160B2 (en) Data communication method
JP3361107B2 (en) How to download
EP4075289A1 (en) Handshake circuits
JP5926583B2 (en) Information processing apparatus, serial communication system, communication initialization method thereof, and serial communication apparatus
JP3137696B2 (en) Network communication system and line converter
EP3814918B1 (en) Asynchronous communication
JP5921264B2 (en) Serial communication system and communication initialization method thereof, and serial communication apparatus and communication initialization method thereof
JP2001060977A (en) Transmission system
JP3488378B2 (en) Serial data communication device and error checking method for serial data communication device
JP2558119B2 (en) Transceiver circuit
EP1128272B1 (en) Method for the serial transfer of data between two electronic bus stations and bus station for use in said method
KR930004948B1 (en) Data communication method between microcomputers
JP2001236303A (en) Universal serial bus control circuit
CN121116889A (en) An asynchronous communication method, apparatus, device, and computer-readable storage medium
EP1505776B1 (en) Bus interface for interconnection of cards in mac-equipped electronic equipment
CN121098438A (en) Communication interface, communication device, and communication method
JPWO2012140783A1 (en) Autonomous initialization method for opposite port of semiconductor integrated circuit and semiconductor integrated circuit
JPH0263233A (en) Serial communication equipment

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080306

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090306

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090306

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100306

Year of fee payment: 15

EXPY Cancellation because of completion of term