JPH11122230A - Synchronizing method for data communication system and data communication system - Google Patents

Synchronizing method for data communication system and data communication system

Info

Publication number
JPH11122230A
JPH11122230A JP9286532A JP28653297A JPH11122230A JP H11122230 A JPH11122230 A JP H11122230A JP 9286532 A JP9286532 A JP 9286532A JP 28653297 A JP28653297 A JP 28653297A JP H11122230 A JPH11122230 A JP H11122230A
Authority
JP
Japan
Prior art keywords
signal
clock
transmission
memory
response signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9286532A
Other languages
Japanese (ja)
Inventor
Toshiaki Morifuji
敏明 森藤
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.)
PFU Ltd
Original Assignee
PFU Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PFU Ltd filed Critical PFU Ltd
Priority to JP9286532A priority Critical patent/JPH11122230A/en
Publication of JPH11122230A publication Critical patent/JPH11122230A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate the need of adding a synchronizing signal to all response signals and to improve the efficiency of communication between transmission/ reception by permitting a transmission side to transmit transmission data in accordance with an inner reference signal, and permitting a reception side to generate a clock based on a transmission signal and to send the response signal to the transmission side in synchronizing with the clock. SOLUTION: A PLL circuit 8 phase-synchronizes the output clock with a reception signal. A shaping circuit 11 samples the reception signal at a sample clock and holds the value. When a SYNC circuit 10 receives the prescribed quantity of received bit strings matched with a synchronizing signal pattern, the PLL circuit 8 is locked and the output of the matching circuit 11 is written in a memory 9 in synchronizing with a bit clock Bitclk'. At the time of returning the response signal after reception terminates, the response signal is transmitted in synchronizing with the bit clock Bitclk'. On the other hand, the transmission side samples the response signal in accordance with the reception timing of the response signal.

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 which transmits a transmission signal having a synchronization signal from a transmission side to a reception side, and transmits a response signal having no synchronization signal from the reception side to the transmission side. It is.

【0002】[0002]

【従来の技術】従来の技術では、単信において受信側か
らの応答が必要な場合、応答信号にも同期信号が付加さ
れている。応答信号に同期信号を付加した理由は、次の
通りである。応答信号は受信側の内部発振器を基準に作
られるため、応答信号に同期信号が付加されていない
と、送信側は受信側のクロックに同期して応答信号を取
り込むことが出来なくなる。このような事態の発生を防
止するために、応答信号にも同期信号が付加されてい
る。
2. Description of the Related Art In the prior art, when a response from the receiving side is required in simplex, a synchronization signal is also added to a response signal. The reason for adding the synchronization signal to the response signal is as follows. Since the response signal is generated based on the internal oscillator of the receiving side, if the synchronization signal is not added to the response signal, the transmitting side cannot fetch the response signal in synchronization with the clock of the receiving side. In order to prevent such a situation from occurring, a synchronization signal is also added to the response signal.

【0003】図1(a) は従来の送信信号と受信信号を説
明する図である。送信信号や受信信号は、ビット列であ
る。送信信号は、同期信号(SYNC),ヘッダ,データ等か
ら構成されている。同期信号は、例えば1010の繰り
返しであり、128ビットまたは256ビットの大きさ
を持つ。ヘッダは、送信元の名前や相手先の名前, デー
タ開始符号などを有している。応答信号は、同期信号,
ヘッダ,ステータスなどから構成されている。ステータ
スとは、例えば肯定応答や否定応答である。
FIG. 1A is a diagram for explaining a conventional transmission signal and reception signal. The transmission signal and the reception signal are bit strings. The transmission signal includes a synchronization signal (SYNC), a header, data, and the like. The synchronization signal is, for example, a repetition of 1010 and has a size of 128 bits or 256 bits. The header has a transmission source name, a destination name, a data start code, and the like. The response signal is a synchronization signal,
It consists of a header, status, etc. The status is, for example, a positive response or a negative response.

【0004】送信側は同期信号を先頭に持つ送信信号を
受信側に送る。受信側は、送信信号を受け取ると、同期
信号を先頭に持つ応答信号を送信側に送る。送信信号を
正しく受信し、次の送信信号を受信する準備が整ってい
る場合には、応答信号のステータスは、肯定応答とされ
る。
The transmitting side sends a transmitting signal having a synchronization signal at the head to the receiving side. Upon receiving the transmission signal, the receiving side sends a response signal having a synchronization signal at the top to the transmitting side. If the transmission signal has been received correctly and is ready to receive the next transmission signal, the status of the response signal is acknowledged.

【0005】[0005]

【発明が解決しようとする課題】上述のような従来の技
術においては、全ての応答信号に同期信号が付加されて
いるため、送信側と受信側の通信が効率的に行えないと
言う欠点があった。本発明は、この点に鑑みて創作され
たものであって、全ての応答信号に同期信号を付加する
ことを不要とし、送信側と受信側の間の通信を効率的に
行い得るデータ通信システムの同期方法およびデータ通
信システムを提供することを目的としている。
However, in the above-mentioned prior art, since a synchronizing signal is added to all response signals, communication between the transmitting side and the receiving side cannot be performed efficiently. there were. The present invention has been made in view of this point, and eliminates the need to add a synchronization signal to all response signals, and can efficiently perform communication between a transmission side and a reception side. And a data communication system.

【0006】[0006]

【課題を解決するための手段】請求項1の発明のデータ
通信システムの同期方法は、送信側は送信信号を受信側
に送り、受信側は送信信号を受信したときに応答信号を
送信側に送り、送信側は応答信号を受信したことを条件
として次の送信信号を受信側に送るデータ通信システム
の同期方法であって、送信側は、内部基準信号に従って
送信データを送信し、応答信号の受信タイミングを保持
し、該受信タイミングに従って応答信号をサンプルし、
サンプル結果をメモリに書き込み、受信側は、送信装置
から送られてきた送信信号をもとにクロックを生成し、
該クロックに同期して応答信号を送信側に送ることを特
徴とするものである。
According to a first aspect of the present invention, there is provided a synchronization method for a data communication system, wherein a transmitting side sends a transmission signal to a receiving side, and the receiving side sends a response signal to the transmitting side when receiving the transmitting signal. The transmitting side transmits a next transmission signal to the receiving side on condition that the response signal is received, wherein the transmitting side transmits the transmission data according to the internal reference signal, and transmits the response signal. Holding the reception timing, sampling a response signal according to the reception timing,
The sample result is written into the memory, and the receiving side generates a clock based on the transmission signal transmitted from the transmitting device,
A response signal is sent to the transmission side in synchronization with the clock.

【0007】請求項2の発明のデータ通信システムは、
送信信号をメモリから読み出して受信装置に送り、受信
装置から送られてきた応答信号をメモリに格納する送信
装置と、送信装置から送られて来た送信信号をメモリに
格納し、メモリから読み出された応答信号を送信装置に
送る受信装置とを具備するデータ通信システムであっ
て、送信装置は、基準クロック発生器と、基準クロック
発生器から出力されるビット・クロックに同期してアク
セスされるメモリと、出力クロックを応答信号に位相同
期させるPLL回路と、応答信号の先頭に存在する同期
信号を検出する同期検出回路と、PLL回路の出力クロ
ックから生成されたサンプル・クロックに基づいて応答
信号をサンプルし、サンプル値を保持する整形手段とを
具備し、且つ同期検出回路が同期信号を検出した時にP
LL回路がロックされ、整形手段の出力データがメモリ
に書き込まれ、受信装置は、出力クロックを送信信号に
位相同期させるPLL回路と、PLL回路の出力クロッ
クに同期してアクセスされるメモリと、送信信号の先頭
に存在する同期信号を検出する同期検出回路と、PLL
回路の出力クロックに基づいて送信信号をサンプルし、
サンプル値を保持する整形手段とを具備し、且つ同期検
出回路が同期信号を検出した時にPLL回路がロックさ
れ、整形手段の出力データがメモリに書き込まれ、最初
の応答信号の先頭には同期信号が存在し、それ以外の応
答信号には同期信号が存在しないことを特徴とするもの
である。
A data communication system according to a second aspect of the present invention
The transmission signal is read from the memory and sent to the receiving device, and the response signal sent from the receiving device is stored in the memory.The transmission signal sent from the transmitting device is stored in the memory and read from the memory. A data communication system comprising a receiving device for sending the response signal to the transmitting device, wherein the transmitting device is accessed in synchronization with a reference clock generator and a bit clock output from the reference clock generator. A memory, a PLL circuit for synchronizing an output clock with a response signal, a synchronization detection circuit for detecting a synchronization signal existing at the head of the response signal, and a response signal based on a sample clock generated from the output clock of the PLL circuit. And a shaping means for holding a sampled value, and when the synchronization detection circuit detects a synchronization signal,
The LL circuit is locked, the output data of the shaping means is written to the memory, and the receiving apparatus comprises: a PLL circuit for synchronizing an output clock with a transmission signal in phase; a memory accessed in synchronization with the output clock of the PLL circuit; A synchronization detection circuit for detecting a synchronization signal existing at the head of the signal;
Sample the transmit signal based on the output clock of the circuit,
And a shaping means for holding the sample value, and when the synchronization detecting circuit detects the synchronizing signal, the PLL circuit is locked, the output data of the shaping means is written into the memory, and the synchronizing signal is provided at the beginning of the first response signal. Is present, and no synchronous signal is present in other response signals.

【0008】[0008]

【発明の実施の形態】図1(b) は本発明の概要を示す図
である。送信側から受信側に送られる送信信号は、同期
信号(SYNC)やヘッダ,データ等から構成されている。受
信側は、送信信号を受け取り、応答信号を送信側に返
す。最初(1回目)の応答信号は同期信号やヘッダ,ス
テータスを有しているが、最初の応答信号以降の応答信
号は同期信号を持たず、ヘッダやステータス等から構成
されている。
FIG. 1 (b) is a diagram showing an outline of the present invention. The transmission signal transmitted from the transmission side to the reception side is composed of a synchronization signal (SYNC), a header, data, and the like. The receiving side receives the transmission signal and returns a response signal to the transmitting side. The first (first) response signal has a synchronization signal, a header, and a status, but the response signals after the first response signal do not have a synchronization signal and are composed of a header, a status, and the like.

【0009】送信側はPLL回路を有している。最初の
応答信号には同期信号が付加されているので、送信側は
同期信号を使用して自己のクロックを応答信号に同期さ
せ、一定量の同期信号を受信した時にPLL回路をロッ
クする。即ち、PLL回路から出力されるクロックの周
波数と位相を固定する。2回目以降の応答信号には同期
信号が付加されていないが、送信側はロックされたクロ
ックを使用して、応答信号のヘッダやステータスを取り
込む。
The transmitting side has a PLL circuit. Since the synchronization signal is added to the first response signal, the transmitting side uses the synchronization signal to synchronize its own clock with the response signal, and locks the PLL circuit when a certain amount of the synchronization signal is received. That is, the frequency and phase of the clock output from the PLL circuit are fixed. Although no synchronization signal is added to the second and subsequent response signals, the transmitting side uses the locked clock to capture the header and status of the response signal.

【0010】図2は送信側のデータ送信回路および応答
信号受信回路の例を示す図である。同図において、1は
発振器、2はタイミング・ジェネレータ、3はメモリ、
4はPLL回路、5はSYNC検出回路、6は整形回
路、7はホストCPUの通信制御部をそれぞれ示してい
る。
FIG. 2 is a diagram showing an example of a data transmitting circuit and a response signal receiving circuit on the transmitting side. In the figure, 1 is an oscillator, 2 is a timing generator, 3 is a memory,
4 is a PLL circuit, 5 is a SYNC detection circuit, 6 is a shaping circuit, and 7 is a communication control unit of the host CPU.

【0011】発振器1から出力されるクロックは、タイ
ミング・ジェネレータ2に入力される。タイミング・ジ
ェネレータ2は、分周器である。タイミング・ジェネレ
ータ2の出力はビット・クロックbitclkと呼ばれる。メ
モリ3は、ビット・クロックに同期してリード/ライト
・アクセスされる。
The clock output from the oscillator 1 is input to the timing generator 2. The timing generator 2 is a frequency divider. The output of the timing generator 2 is called a bit clock bitclk. The memory 3 is read / write accessed in synchronization with the bit clock.

【0012】送信データは予めメモリ3に格納されてお
り、ビット・クロックに同期してメモリ3から読み出さ
れる。読み出された送信データは変調器(図示せず)で
変調され、有線または無線の通信路を介して受信側に送
られる。
The transmission data is stored in the memory 3 in advance, and is read from the memory 3 in synchronization with the bit clock. The read transmission data is modulated by a modulator (not shown) and sent to the receiving side via a wired or wireless communication path.

【0013】受信信号(受信側からの応答信号)は、P
LL回路4,SYNC検出回路5および整形回路6に入
力される。PLL回路4は、出力クロックを受信信号に
位相同期させる。受信信号は1,0 のビット列である。
出力クロックの周波数は受信信号のビット・レートに等
しく、出力クロックの立ち上がり点は受信信号のビット
・データの変換点に一致している。SYNC検出回路5
は、受信ビット列と同期信号パターン(例えば101
0)とを比較し、同期信号パターンと一致する受信ビッ
ト列を定められた量だけ受信した時に、PLL回路4に
対してロックを指示する。PLL回路4のロックは、次
の応答受信時にSYNCが付加されている場合、解除さ
れる。
The received signal (response signal from the receiving side) is P
The signals are input to the LL circuit 4, the SYNC detection circuit 5, and the shaping circuit 6. The PLL circuit 4 synchronizes the output clock with the received signal in phase. The received signal is a bit string of 1,0.
The frequency of the output clock is equal to the bit rate of the received signal, and the rising point of the output clock coincides with the conversion point of the bit data of the received signal. SYNC detection circuit 5
Represents a received bit string and a synchronization signal pattern (for example, 101
0) and instructs the PLL circuit 4 to lock when a predetermined amount of the received bit string that matches the synchronization signal pattern is received. The lock of the PLL circuit 4 is released when the SYNC is added when the next response is received.

【0014】サンプル・クロックは、PLL回路4の出
力クロックに基づいて作成される。PLL回路4の出力
クロックの周期をTとすると、サンプル・クロックは出
力クロックが立ち上がってから0.5T経過した時に生
成される。サンプル・クロックは、整形回路6に入力さ
れる。整形回路6は、例えばDフリップフロップであっ
て、サンプル・クロックで受信信号をサンプリングし、
その値を保持する。整形回路6の出力は、応答信号受信
時にメモリ3に書き込まれる。整形回路6は、タイミン
グ調整の機能を持つ。ホストCPUの通信制御部7は、
データ送信指示や応答受信指示を行うと共に、メモリ3
からのステータスの読込やメモリ3への送信データの書
込みを行う。
The sample clock is created based on the output clock of the PLL circuit 4. Assuming that the period of the output clock of the PLL circuit 4 is T, the sample clock is generated when 0.5T has elapsed after the output clock rises. The sample clock is input to the shaping circuit 6. The shaping circuit 6 is, for example, a D flip-flop, which samples a received signal with a sample clock,
Keep that value. The output of the shaping circuit 6 is written to the memory 3 when the response signal is received. The shaping circuit 6 has a function of timing adjustment. The communication control unit 7 of the host CPU
Instructs data transmission and response reception, and
, And writing of transmission data to the memory 3.

【0015】タイミング・ジェネレータ2からPLL回
路4に向かう線もビット・クロックbitclkを示してい
る。最初の応答信号受信時にPLL回路4の出力(サン
プル・クロック)とビット・クロックbitclkとの差(こ
の差は後述するように2(τ1+τ2+τ3)である)
を保持していれば、次の応答ではビット・クロックbitc
lkを2(τ1+τ2+τ3)だけシフトするだけでサン
プル・クロックが生成され、PLL回路4は全く動作し
なくても良くなる。PLL回路4をロックしたままに動
作させておけば、この線は不要である。
The line from the timing generator 2 to the PLL circuit 4 also indicates the bit clock bitclk. The difference between the output (sample clock) of the PLL circuit 4 and the bit clock bitclk when the first response signal is received (this difference is 2 (τ1 + τ2 + τ3) as described later)
, The next response will be the bit clock bitc
By simply shifting lk by 2 (τ1 + τ2 + τ3), a sample clock is generated, and the PLL circuit 4 does not need to operate at all. This line is unnecessary if the PLL circuit 4 is operated while being locked.

【0016】図3は受信側のデータ受信回路および応答
信号送信回路の例を示す図である。同図において、8は
PLL回路、9はメモリ、10はSYNC検出回路、1
1は整形回路、12はホストCPUの通信制御部をそれ
ぞれ示している。
FIG. 3 is a diagram showing an example of a data receiving circuit and a response signal transmitting circuit on the receiving side. In the figure, 8 is a PLL circuit, 9 is a memory, 10 is a SYNC detection circuit, 1
Reference numeral 1 denotes a shaping circuit, and 12 denotes a communication control unit of the host CPU.

【0017】応答信号は予めメモリ9に格納されてお
り、ビット・クロックbitclk′に同期してメモリ9から
読み出される。読み出された応答信号は変調器(図示せ
ず)で変調され、有線または無線の通信路を介して送信
側に送られる。
The response signal is stored in the memory 9 in advance, and is read from the memory 9 in synchronization with the bit clock bitclk '. The read response signal is modulated by a modulator (not shown) and sent to the transmission side via a wired or wireless communication path.

【0018】受信信号(送信側からの送信信号)は、P
LL回路8,SYNC検出回路10および整形回路11
に入力される。PLL回路8は、出力クロックを受信信
号に位相同期させる。SYNC検出回路10は、図2の
SYNC検出回路5と同じものであり、同期信号パター
ンと一致する受信ビット列を定められた量だけ受信した
時に、PLL回路8に対してロックを指示する。PLL
回路8のロックは、応答信号の送出が終了した時に解除
される。
The reception signal (transmission signal from the transmission side) is P
LL circuit 8, SYNC detection circuit 10, and shaping circuit 11
Is input to The PLL circuit 8 synchronizes the output clock with the received signal in phase. The SYNC detection circuit 10 is the same as the SYNC detection circuit 5 of FIG. 2, and instructs the PLL circuit 8 to lock when a predetermined amount of a received bit string that matches the synchronization signal pattern is received. PLL
The lock of the circuit 8 is released when the transmission of the response signal ends.

【0019】サンプル・クロックは、整形回路11に入
力される。サンプル・クロックとビット・クロックbitc
lk′は同じものである。整形回路11は、サンプル・ク
ロックで受信信号をサンプリングし、その値を保持す
る。整形回路10の出力は、データ受信時に、ビット・
クロックbitclk′に同期してメモリ8に書き込まれる。
整形回路11は、タイミング調整の機能を持つ。ホスト
CPUの通信制御部12は、データ受信指示や応答送信
指示を行うと共に、メモリ9からの受信データの読込や
メモリ9への応答データの書込みを行う。
The sample clock is input to the shaping circuit 11. Sample clock and bit clock bitc
lk 'is the same. The shaping circuit 11 samples the received signal with a sample clock and holds the value. The output of the shaping circuit 10 outputs a bit
The data is written to the memory 8 in synchronization with the clock bitclk '.
The shaping circuit 11 has a function of adjusting timing. The communication control unit 12 of the host CPU issues a data reception instruction and a response transmission instruction, and reads received data from the memory 9 and writes response data to the memory 9.

【0020】図2および図3を参照して送信側および受
信側の動作について説明する。送信データは、ビット・
クロックbitclkに同期して送信される。受信側では、受
信信号をもとにサンプル・クロックを生成し、サンプル
・クロックで受信信号をサンプルし、サンプル結果をメ
モリ9に書き込む。受信終了後、応答信号を返す際、ビ
ット・クロックbitclk′に同期して応答信号を送信す
る。これにより、送信側は送信信号を送ってから応答信
号を受信するまでを毎回同じタイミングで行えることに
なる。従って、いったん応答信号のタイミングが判れ
ば、応答信号に同期信号は不要となる。但し、応答信号
のタイミングを知るために、最初の応答信号には同期信
号が必要となる。
The operation of the transmitting side and the receiving side will be described with reference to FIGS. Transmission data consists of bits
Sent in synchronization with clock bitclk. The receiving side generates a sample clock based on the received signal, samples the received signal using the sample clock, and writes the sampled result to the memory 9. When the response signal is returned after the reception is completed, the response signal is transmitted in synchronization with the bit clock bitclk '. As a result, the transmitting side can transmit the transmission signal and receive the response signal at the same timing every time. Therefore, once the timing of the response signal is known, the response signal does not require a synchronization signal. However, in order to know the timing of the response signal, the first response signal requires a synchronization signal.

【0021】図4は送信側メモリ読出しから受信側メモ
リ書込みまでの時間を説明する図である。送信側にはメ
モリや変調器が存在し、受信側には復調器やメモリが存
在する。送信側では、送信すべきデータをビット・クロ
ックbitclkに同期してメモリから読み出し、読み出した
データを変調器で変調する。変調信号は有線または無線
の通信路を介して受信側に送られる。受信側では、変調
信号を復調器で元のデータに復調し、復調の結果得られ
るデータをビット・クロックbitclk′に同期してメモリ
に書き込む。
FIG. 4 is a diagram for explaining the time from reading of the memory on the transmitting side to writing on the memory of the receiving side. A memory and a modulator exist on the transmission side, and a demodulator and a memory exist on the reception side. On the transmitting side, data to be transmitted is read from the memory in synchronization with the bit clock bitclk, and the read data is modulated by the modulator. The modulated signal is sent to the receiving side via a wired or wireless communication path. On the receiving side, the modulated signal is demodulated by the demodulator into the original data, and the data obtained as a result of the demodulation is written to the memory in synchronization with the bit clock bitclk '.

【0022】変調に要する時間をτ1 ,通信路を伝播す
るのに要する時間をτ2 ,復調に要する時間をτ3 とす
ると、送信側のメモリから読み出されたデータが受信側
のメモリに到達するまでの時間は、τ1 +τ2 +τ3
なる。送信側のビット・クロックbitclkと受信側のビッ
ト・クロックbitclk′は同じ形をしているが、受信側の
ビット・クロックbitclk′は送信側のビット・クロック
bitclkよりτ1 +τ2+τ3 時間だけ遅れている。
Assuming that the time required for modulation is τ 1 , the time required for propagation through the communication path is τ 2 , and the time required for demodulation is τ 3 , the data read from the memory on the transmission side is stored in the memory on the reception side. The time to reach is τ 1 + τ 2 + τ 3 . The transmission side bit clock bitclk 'and the reception side bit clock bitclk' have the same shape, but the reception side bit clock bitclk 'is the transmission side bit clock.
It is delayed by τ 1 + τ 2 + τ 3 hours from bitclk.

【0023】受信側は、送信信号を受信した後、応答信
号を送信側に送る。送信信号を受信してから応答信号を
送信するまでの時間をnT(Tはビット・クロックbitc
lk′の周期)とする。また、受信側のメモリから読み出
された応答信号が送信側のメモリに到達するまでの時間
をτ1 +τ2 +τ3 とする。従って、送信側のメモリか
ら送信データが読み出されてから此れに対応する応答デ
ータが送信側のメモリに到達するまでの時間は、 2(τ1 +τ2 +τ3 )+nT となる。
After receiving the transmission signal, the receiving side sends a response signal to the transmitting side. The time from reception of a transmission signal to transmission of a response signal is nT (T is a bit clock bitc
lk 'period). The time required for the response signal read from the memory on the receiving side to reach the memory on the transmitting side is τ 1 + τ 2 + τ 3 . Therefore, the time from when the transmission data is read out from the transmission side memory until the response data corresponding to the transmission data reaches the transmission side memory is 2 (τ 1 + τ 2 + τ 3 ) + nT.

【0024】送信側のPLL回路から出力されるクロッ
クは受信側のビット・クロックbitclk′と同じ形をして
いるが、前者は後者よりτ1 +τ2 +τ3 時間だけ遅れ
ている。したがって、送信側のビット・クロックbitclk
と送信側のPLL回路の出力クロックの時間差は、2
(τ1 +τ2 +τ3 )を周期Tで割算したときの余りに
なる。
The clock output from the PLL circuit on the transmitting side has the same form as the bit clock bitclk 'on the receiving side, but the former is delayed by τ 1 + τ 2 + τ 3 hours from the latter. Therefore, the transmission side bit clock bitclk
And the output clock of the PLL circuit on the transmitting side is 2
The remainder is obtained when (τ 1 + τ 2 + τ 3 ) is divided by the period T.

【0025】図5は送信側および受信側の動作タイミン
グを示す図である。送信データはビット・クロックbitc
lkに同期して送信側のメモリから読み出され、τ1 +τ
2 +τ3 時間後に受信側のメモリの入り口に到達し、ビ
ット・クロックbitclk′に同期して受信側のメモリに書
き込まれる。応答データはビット・クロックbitclk′に
同期して受信側のメモリから読み出され、τ1 +τ2
τ3 時間後に送信側のメモリの入り口に到達し、整形さ
れた後、ビット・クロックbitclkに同期して送信側のメ
モリに書き込まれる。
FIG. 5 is a diagram showing operation timings on the transmission side and the reception side. Transmission data is bit clock bitc
read from the memory on the transmission side in synchronization with lk, and τ 1 + τ
2 + τ 3 hours later, the data reaches the entrance of the memory on the receiving side and is written into the memory on the receiving side in synchronization with the bit clock bitclk '. The response data is read from the memory on the receiving side in synchronization with the bit clock bitclk ', and τ 1 + τ 2 +
After τ 3 hours, it reaches the entrance of the memory on the transmission side, is shaped, and is written into the memory on the transmission side in synchronization with the bit clock bitclk.

【0026】受信側は最初の応答信号には同期信号SY
NCを付け、それ以外の応答信号にはSYNCを付加し
ない。最初か否かを区別する方法としては、下記のよう
な第1の方法と第2の方法とがある。
On the receiving side, the synchronization signal SY is included in the first response signal.
NC is added, and SYNC is not added to other response signals. There are a first method and a second method as described below as a method of distinguishing the first or the second.

【0027】第1の方法は、送信データ内のヘッダ内の
1ビットを使用して、応答信号にSYNCを付加するか
否かを指示する方法である。受信側はそのビットを(デ
ータ受信中に)判定し、判定結果に従って応答信号を生
成する。この場合は、受信側では最初か否かを全て送信
側に依存することになる。送信側では、長時間(例え
ば、10フレームに相当する期間)データが無い場合、
次の通信時にSYNC付加指示を持つ送信データを受信
側に送信する。或いは、通信エラー状況を見てSYNC
付加指示の有無を決めるなど、使用環境によって決めて
も良い。
The first method is a method of instructing whether or not to add SYNC to a response signal by using one bit in a header in transmission data. The receiving side determines the bit (during data reception) and generates a response signal according to the determination result. In this case, whether or not the receiving side is the first depends on the transmitting side. On the transmitting side, if there is no data for a long time (for example, a period corresponding to 10 frames),
At the next communication, the transmission data having the SYNC addition instruction is transmitted to the receiving side. Or, check the communication error situation and use SYNC
It may be determined according to the use environment, such as whether or not there is an additional instruction.

【0028】第2の方法は、受信側において一定時間
(例えば、1フレームの何分の1かの期間)受信信号が
ない場合、次に受信されたデータを最初と見做し、応答
信号にSYNCを付加する方法である。第2の方法で
は、SYNCの有無は送信側と受信側で一致が必要であ
る。送信側は、応答受信した後、一定時間内に次のデー
タを送出できない場合は、受信側とのタイミング関係が
壊れたものとして、次の応答にはSYNCがあるものと
する。但し、一定時間内に次のデータを送信できた場合
でも、受信側では時間を越えてしまったと判断すること
もあり得る。このような場合には、送信側ではSYNC
は不要だが、受信側ではSYNCを付けてしまう。受信
側の一定時間の設定を大きくしておくと、逆に送信側は
SYNCを必要とするけれども、受信側はSYNC無し
にしてしまうことになる。
The second method is that if there is no reception signal for a certain period of time (for example, a fraction of one frame) on the receiving side, the next received data is regarded as the first and the response signal is This is a method of adding SYNC. In the second method, the presence / absence of SYNC needs to match between the transmitting side and the receiving side. If the transmitting side cannot send the next data within a fixed time after receiving the response, it is assumed that the timing relationship with the receiving side has been broken and the next response has SYNC. However, even if the next data can be transmitted within a certain time, the receiving side may determine that the time has been exceeded. In such a case, the transmitting side uses SYNC
Is unnecessary, but SYNC is added on the receiving side. If the setting of the fixed time on the receiving side is increased, the transmitting side requires SYNC, but the receiving side does not have SYNC.

【0029】このような現象を回避するには、送信側は
一定時間(TAの期間)内に送信できない場合、暫く時
間(TB)をおいてから次の送信を行うようにする。受
信側はTAとTBの中間あたりに設定しておけば良い。
図6は第2の方法を採用した場合における送信データお
よびSYNC付き応答信号の送出タイミングを説明する
図である。t0は、送信側が応答信号の受信を完了した
時刻を示す。t1とt0の差がTAであり、t2とt0
の差がTBであり、t3−t0は例えば(TA+TB)
/2である。
In order to avoid such a phenomenon, if the transmitting side cannot transmit within a certain time (TA period), the transmitting side waits for a while (TB) and then performs the next transmission. The receiving side may be set at an intermediate point between TA and TB.
FIG. 6 is a diagram for explaining the transmission timing of the transmission data and the response signal with SYNC when the second method is adopted. t0 indicates the time at which the transmission side has completed receiving the response signal. The difference between t1 and t0 is TA, and t2 and t0
Is TB, and t3−t0 is, for example, (TA + TB)
/ 2.

【0030】送信側は、応答信号の受信完了後、TA時
間内に次の送信データを送出できない場合には、TB時
間後に次のデータを送出する。すなわち、時刻t1とt
2の間では、送信側は送信データの送出を開始しせず、
送信データの送出は時刻t1より前で又は時刻t2より
後で行われる。受信側は、時刻t3より前に送信データ
を受信した場合には応答信号にSYNCを付加せず、時
刻t3より後に送信データを受信した場合には次の応答
信号にはSYNCを付加する。
If the transmission side cannot transmit the next transmission data within the TA time after the completion of the reception of the response signal, the transmission side transmits the next data after the TB time. That is, the times t1 and t
Between the two, the transmitting side does not start transmitting the transmission data,
Transmission of transmission data is performed before time t1 or after time t2. The receiving side does not add SYNC to the response signal when receiving the transmission data before time t3, and adds SYNC to the next response signal when receiving the transmission data after time t3.

【0031】[0031]

【発明の効果】以上の説明から明らかなように、本発明
によれば、全ての応答信号に同期信号を付加する必要が
なくなるので、送信側と受信側の通信を効率良く行うこ
とが可能になる。
As is apparent from the above description, according to the present invention, it is not necessary to add a synchronization signal to all response signals, so that the communication between the transmitting side and the receiving side can be performed efficiently. Become.

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

【図1】本発明の概要を示す図である。FIG. 1 is a diagram showing an outline of the present invention.

【図2】送信側のデータ送信回路および応答信号受信回
路の例を示す図である。
FIG. 2 is a diagram illustrating an example of a data transmission circuit and a response signal reception circuit on the transmission side.

【図3】受信側のデータ受信回路および応答信号送信回
路の例を示す図である。
FIG. 3 is a diagram illustrating an example of a data receiving circuit and a response signal transmitting circuit on the receiving side.

【図4】送信側メモリ読出しから受信側メモリ書込みま
での時間を示す図である。
FIG. 4 is a diagram showing a time from reading of a memory on a transmission side to writing on a memory of a reception side.

【図5】送信側および受信側の動作タイミングを示す図
である。
FIG. 5 is a diagram showing operation timings on a transmission side and a reception side.

【図6】送信データ及びSYNC付き応答信号の送出タ
イミングを説明するための図である。
FIG. 6 is a diagram for explaining transmission timing of transmission data and a response signal with SYNC.

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

1 発振器 2 タイミング・ジェネレータ 3 メモリ 4 PLL回路 5 SYNC検出回路 6 整形回路 7 ホストCPUの通信制御部 8 PLL回路 9 メモリ 10 SYNC検出回路 11 整形回路 12 ホストCPUの通信制御部 DESCRIPTION OF SYMBOLS 1 Oscillator 2 Timing generator 3 Memory 4 PLL circuit 5 SYNC detection circuit 6 Shaping circuit 7 Communication control unit of host CPU 8 PLL circuit 9 Memory 10 SYNC detection circuit 11 Shaping circuit 12 Communication control unit of host CPU

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 送信側は送信信号を受信側に送り、受信
側は送信信号を受信したときに応答信号を送信側に送
り、送信側は応答信号を受信したことを条件として次の
送信信号を受信側に送るデータ通信システムの同期方法
であって、 送信側は、内部の基準信号に従って送信データを送信
し、応答信号の受信タイミングを保持し、該受信タイミ
ングに従って応答信号をサンプルし、サンプル結果をメ
モリに書き込み、 受信側は、送信装置から送られてきた送信信号をもとに
クロックを生成し、該クロックに同期して応答信号を送
信側に送ることを特徴とするデータ通信システムの同期
方法。
1. A transmitting side sends a transmission signal to a receiving side, and the receiving side sends a response signal to the transmitting side when receiving the transmission signal, and the transmitting side sends the next transmission signal on condition that the response signal is received. A transmission method for transmitting transmission data according to an internal reference signal, holding reception timing of a response signal, sampling a response signal according to the reception timing, The result is written in a memory, and the receiving side generates a clock based on the transmission signal transmitted from the transmitting device, and transmits a response signal to the transmitting side in synchronization with the clock. Synchronization method.
【請求項2】 送信信号をメモリから読み出して受信装
置に送り、受信装置から送られてきた応答信号をメモリ
に格納する送信装置と、 送信装置から送られて来た送信信号をメモリに格納し、
メモリから読み出された応答信号を送信装置に送る受信
装置とを具備するデータ通信システムであって、 送信装置は、 基準クロック発生器と、 基準クロック発生器から出力されるビット・クロックに
同期してアクセスされるメモリと、 出力クロックを応答信号に位相同期させるPLL回路
と、 応答信号の先頭に存在する同期信号を検出する同期検出
回路と、 PLL回路の出力クロックから生成されたサンプル・ク
ロックに基づいて応答信号をサンプルし、サンプル値を
保持する整形手段とを具備し、且つ同期検出回路が同期
信号を検出した時にPLL回路がロックされ、整形手段
の出力データがメモリに書き込まれ、 受信装置は、 出力クロックを送信信号に位相同期させるPLL回路
と、 PLL回路の出力クロックに同期してアクセスされるメ
モリと、 送信信号の先頭に存在する同期信号を検出する同期検出
回路と、 PLL回路の出力クロックに基づいて送信信号をサンプ
ルし、サンプル値を保持する整形手段とを具備し、且つ
同期検出回路が同期信号を検出した時にPLL回路がロ
ックされ、整形手段の出力データがメモリに書き込ま
れ、最初の応答信号の先頭には同期信号が存在し、それ
以外の応答信号には同期信号が存在しないことを特徴と
するデータ通信システム。
2. A transmitting device for reading out a transmission signal from a memory and sending it to a receiving device, and storing a response signal sent from the receiving device in a memory, and storing a transmitting signal sent from the transmitting device in a memory. ,
A data communication system comprising: a receiving device that sends a response signal read from a memory to a transmitting device, wherein the transmitting device synchronizes with a reference clock generator and a bit clock output from the reference clock generator. Memory, a PLL circuit for synchronizing an output clock with a response signal, a synchronization detection circuit for detecting a synchronization signal existing at the head of the response signal, and a sample clock generated from the output clock of the PLL circuit. And a shaping means for sampling the response signal based on the sampling signal and holding the sampled value. When the synchronization detection circuit detects the synchronization signal, the PLL circuit is locked, and the output data of the shaping means is written to the memory. Is a PLL circuit that synchronizes the output clock phase with the transmission signal, and is accessed in synchronization with the output clock of the PLL circuit Memory, a synchronization detection circuit for detecting a synchronization signal existing at the head of the transmission signal, and a shaping means for sampling the transmission signal based on the output clock of the PLL circuit and holding a sample value, and detecting the synchronization. When the circuit detects the synchronizing signal, the PLL circuit is locked, the output data of the shaping means is written into the memory, and the synchronizing signal exists at the head of the first response signal, and the synchronizing signal exists in the other response signals. A data communication system characterized by not performing.
JP9286532A 1997-10-20 1997-10-20 Synchronizing method for data communication system and data communication system Pending JPH11122230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9286532A JPH11122230A (en) 1997-10-20 1997-10-20 Synchronizing method for data communication system and data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9286532A JPH11122230A (en) 1997-10-20 1997-10-20 Synchronizing method for data communication system and data communication system

Publications (1)

Publication Number Publication Date
JPH11122230A true JPH11122230A (en) 1999-04-30

Family

ID=17705637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9286532A Pending JPH11122230A (en) 1997-10-20 1997-10-20 Synchronizing method for data communication system and data communication system

Country Status (1)

Country Link
JP (1) JPH11122230A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008140538A (en) * 2007-12-19 2008-06-19 Roland Corp Voice data transmitting/receiving device
JP2012100143A (en) * 2010-11-04 2012-05-24 National Institute Of Information & Communication Technology Two channel network system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008140538A (en) * 2007-12-19 2008-06-19 Roland Corp Voice data transmitting/receiving device
JP4481329B2 (en) * 2007-12-19 2010-06-16 ローランド株式会社 Audio data transmitter / receiver
JP2012100143A (en) * 2010-11-04 2012-05-24 National Institute Of Information & Communication Technology Two channel network system

Similar Documents

Publication Publication Date Title
US7406100B2 (en) Bi-directional single wire interface
JPH11161599A (en) Data transfer method
JPH11122230A (en) Synchronizing method for data communication system and data communication system
US4964142A (en) Receiver synchronization in encoder/decoder
JP4708293B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, COMMUNICATION PROGRAM, AND RECORDING MEDIUM CONTAINING COMMUNICATION PROGRAM
JPS6242544B2 (en)
JPH0818546A (en) Data communication equipment
EP1188108B1 (en) Two clock domain pulse to pulse synchronizer
JPS63169150A (en) Data transmission circuit
JP2973725B2 (en) Subframe synchronization signal detection circuit
JPH0628844Y2 (en) Data transceiver
JPH037172B2 (en)
JPH063894B2 (en) Asynchronous data conversion circuit
JP2602350B2 (en) Communication device
JPH04240936A (en) Data transmission system
JPH06177941A (en) Home bus controller
JPH0834462B2 (en) Frame aligner device
JPS6331244A (en) Loop transmitter
JPS6037854A (en) Transmission and receiving circuit of serial data
JPH11177543A (en) Serial communication equipment and its method
JPH0718194Y2 (en) Data transceiver
JPH04170830A (en) Clock synchronizing type serial data transmitter
JPH0787440B2 (en) Auxiliary data insertion circuit
JPS5950645A (en) Independent synchronizing system
JPH0656997B2 (en) Erasable buffer circuit