[go: up one dir, main page]

JP2001308839A - Circuit and method for clock synchronization - Google Patents

Circuit and method for clock synchronization

Info

Publication number
JP2001308839A
JP2001308839A JP2000121536A JP2000121536A JP2001308839A JP 2001308839 A JP2001308839 A JP 2001308839A JP 2000121536 A JP2000121536 A JP 2000121536A JP 2000121536 A JP2000121536 A JP 2000121536A JP 2001308839 A JP2001308839 A JP 2001308839A
Authority
JP
Japan
Prior art keywords
clock
counting
count
speed
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2000121536A
Other languages
Japanese (ja)
Inventor
Takeshi Tokura
武 戸倉
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.)
Fujikura Ltd
Original Assignee
Fujikura 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 Fujikura Ltd filed Critical Fujikura Ltd
Priority to JP2000121536A priority Critical patent/JP2001308839A/en
Publication of JP2001308839A publication Critical patent/JP2001308839A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To realize a clock synchronous circuit and a clock synchronizing method, capable of performing clock synchronization between transmitter- receivers with each other via an asynchronous network. SOLUTION: A frequency-dividing circuit 4 generates an extraction clock, by performing frequency division of a source clock by as many times as the number of prescribed times. A counter 5a counts the receiving timing pulse of a packet transmitted on a fixed cycle for the prescribed number n of comparison packets and generates a count end pulse P1. A counter 7a counts a receiving timing comparison pulse, counted and generated by an extraction clock A2 for the number n of comparison packets and generates a count end pulse P2. A speed code detection circuit 8 detects the speed difference between the count end pulses P1 and P2 and outputs a speed code. An up/down-counter 9 increments or decrements by one, on the basis of the speed code, and a clock- adjustment timing circuit 10 controls the circuit 4, on the basis of a count value B1 and a code B2 of the up/down-counter 9.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、マスタ機器のクロ
ックにスレーブ機器のクロックを同期させるクロック同
期回路に係り、特に、周波数の同期がとれていない非同
期ネットワークを介してデータを送受信する機器に用い
て好適なクロック同期回路、及びクロック同期方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock synchronizing circuit for synchronizing a clock of a slave device with a clock of a master device, and more particularly to a device for transmitting and receiving data via an asynchronous network whose frequency is not synchronized. The present invention relates to a clock synchronization circuit and a clock synchronization method which are preferable.

【0002】[0002]

【従来の技術】LAN(ローカル・エリア・ネットワー
ク)等、クロックまたはデータの周波数の同期がとれて
いない非同期ネットワークを介して行われる連続的なデ
ータ通信では、送受信機器相互のクロックが非同期であ
るために、データ欠落もしくは余剰データが発生する。
このような送受信機器相互のクロック同期が必要なデー
タ通信を非同期ネットワークを介して行う場合には、送
信機器とのクロック周波数のずれを吸収するためのバッ
ファを受信機器に備えることによって対処する方法が知
られている。
2. Description of the Related Art In continuous data communication performed through an asynchronous network such as a LAN (local area network) in which clocks or data frequencies are not synchronized, clocks between transmitting and receiving devices are asynchronous. In this case, data loss or surplus data occurs.
When performing data communication that requires clock synchronization between such transmitting and receiving devices via an asynchronous network, a method for coping with the problem is to provide a buffer in the receiving device for absorbing a shift in clock frequency with the transmitting device. Are known.

【0003】[0003]

【発明が解決しようとする課題】しかし、上述した従来
の対処方法では、長時間連続的なデータ通信をデータの
欠落なしに行うためには、膨大な容量のバッファが受信
機器に必要であるという問題がある。また、バッファの
容量以上のずれを生じてデータ欠落や余剰データが発生
した場合に、データ補間や余剰データの削除などの信号
処理によって対処する方法もあるが、この方法では伝送
エラーが生じたり信号品質を劣化させる場合があり、高
い通信品質を得ることは困難である。
However, according to the above-mentioned conventional method, an enormous capacity buffer is required for a receiving device in order to perform long-time continuous data communication without data loss. There's a problem. In addition, when data loss or excess data occurs due to a shift larger than the capacity of the buffer, there is a method to cope with it by signal processing such as data interpolation or deletion of excess data, but this method causes transmission error or signal The quality may deteriorate, and it is difficult to obtain high communication quality.

【0004】本発明は、このような事情を考慮してなさ
れたもので、その目的は、非同期ネットワークを介して
送受信機器相互のクロック同期を行うことができるクロ
ック同期回路、及びクロック同期方法を提供することに
ある。
The present invention has been made in view of such circumstances, and has as its object to provide a clock synchronization circuit and a clock synchronization method capable of performing clock synchronization between transmitting and receiving devices via an asynchronous network. Is to do.

【0005】[0005]

【課題を解決するための手段】上記の課題を解決するた
めに、請求項1に記載の発明は、クロックを生成するク
ロック生成手段と、一定のパケット送信周期で送信され
るパケットの受信数を計数し、該計数値が所定のカウン
ト数に達するまで計数する第1の計数手段と、前記クロ
ックを使用して前記パケット送信周期と等しい周期で時
間を計数し、該計数値が前記第1の計数手段と等しいカ
ウント数に達するまで計数する第2の計数手段と、前記
第1の計数手段の計数速度と前記第2の計数手段の計数
速度とを比較する計数速度比較手段とを具備し、前記ク
ロック生成手段は、前記計数速度の比較結果により制御
されることを特徴とする。
According to a first aspect of the present invention, there is provided a clock generating means for generating a clock, comprising: a clock generating unit for generating a clock; First counting means for counting and counting until the count value reaches a predetermined count number, and counting time in a cycle equal to the packet transmission cycle using the clock, wherein the count value is the first count value. A second counting means for counting until reaching a count equal to the counting means, and a counting speed comparing means for comparing a counting speed of the first counting means with a counting speed of the second counting means, The clock generation means is controlled by a result of the comparison of the counting speed.

【0006】請求項2に記載の発明は、請求項1に記載
の発明において、前記クロック生成手段は、前記第1の
計数手段の計数速度の方が速い場合は、前記クロックの
位相を進ませ、前記第1の計数手段の計数速度の方が遅
い場合は、前記クロックの位相を遅らせるように制御さ
れることを特徴とする。
According to a second aspect of the present invention, in the first aspect of the invention, the clock generating means advances the phase of the clock when the counting speed of the first counting means is faster. When the counting speed of the first counting means is slower, control is performed so as to delay the phase of the clock.

【0007】請求項3に記載の発明は、ソースクロック
を所定回数だけ分周することによって抽出クロックを生
成する第1の分周回路と、一定のパケット送信周期で送
信されるパケットの受信数を所定の比較パケット数n
(n;1以上の整数)分計数して該計数毎に第1のカウ
ント終了パルスを発生する第1の計数手段と、前記抽出
クロックを使用して前記パケット送信周期に相当する所
定のカウント数m(m;1以上の整数)を計数し、該計
数毎に発生する受信タイミング比較パルスを前記比較パ
ケット数n分計数して該計数毎に第2のカウント終了パ
ルスを発生する第2の計数手段と、前記第1のカウント
終了パルスと前記第2のカウント終了パルスとの発生す
る速度差を検出して該速度差の速度符号を出力する速度
符号検出回路と、前記速度符号検出回路から出力される
速度符号に基づいて、カウントアップまたはカウントダ
ウンまたはカウント未実施のいずれかを行い、該カウン
ト値と該カウント値の符号とを出力するアップダウンカ
ウンタと、前記アップダウンカウンタから入力されるカ
ウント値と符号に基づいて、前記第1の分周回路の制御
を行うクロック調整タイミング回路とを具備することを
特徴とする。
According to a third aspect of the present invention, there is provided a first frequency dividing circuit for generating an extracted clock by dividing a source clock by a predetermined number of times, and a receiving number of packets transmitted in a fixed packet transmission cycle. Predetermined number of comparison packets n
(N; an integer equal to or greater than 1) counting means for generating a first count end pulse for each count, and a predetermined count corresponding to the packet transmission cycle using the extracted clock m (m; an integer equal to or greater than 1), a second count for generating a second count end pulse for each count by counting the number n of reception timing comparison pulses generated for each count. Means, a speed code detection circuit for detecting a speed difference between the first count end pulse and the second count end pulse, and outputting a speed code of the speed difference, and an output from the speed code detection circuit. An up / down counter that counts up, counts down, or does not perform counting based on the speed code to be output, and outputs the count value and the sign of the count value; Based on the count value and the code input from the down counter, characterized by comprising a clock adjustment timing circuit for controlling the first frequency divider.

【0008】請求項4に記載の発明は、ソースクロック
を所定回数だけ分周することによって抽出クロックを生
成する第1の分周回路と、一定のパケット送信周期で送
信されるパケットの受信数を所定の比較パケット数n
(n;1以上の整数)分計数して該計数毎に第1のカウ
ント終了パルスを発生する第1の計数手段と、前記抽出
クロックを使用して前記パケット送信周期に相当する所
定のカウント数m(m;1以上の整数)を計数し、該計
数毎に発生する受信タイミング比較パルスを前記比較パ
ケット数n分計数して該計数毎に第2のカウント終了パ
ルスを発生する第2の計数手段と、前記第1のカウント
終了パルスと前記第2のカウント終了パルスとの発生す
る速度差を検出して該速度差の符号を出力する速度符号
検出回路と、前記抽出クロックを所定回数だけ分周する
ことによってクロックを生成する第2の分周回路と、前
記第2の分周回路によって生成されるクロックを使用し
て、前記第1のカウント終了パルスと前記第2のカウン
ト終了パルスとの発生間の時間差をカウントして該カウ
ント値を出力する速度差検出カウンタと、前記速度差検
出カウンタから入力されるカウント値と前記速度符号検
出回路から入力される符号とに基づいて、前記第1の分
周回路の制御を行うクロック調整タイミング回路とを具
備することを特徴とする。
According to a fourth aspect of the present invention, there is provided a first frequency dividing circuit for generating an extracted clock by dividing a source clock by a predetermined number of times, and a receiving frequency of a packet transmitted in a fixed packet transmission cycle. Predetermined number of comparison packets n
(N; an integer equal to or greater than 1) counting means for generating a first count end pulse for each count, and a predetermined count corresponding to the packet transmission cycle using the extracted clock m (m; an integer equal to or greater than 1), a second count for generating a second count end pulse for each count by counting the number n of reception timing comparison pulses generated for each count. Means, a speed code detecting circuit for detecting a speed difference between the first count end pulse and the second count end pulse and outputting a sign of the speed difference, and dividing the extracted clock by a predetermined number of times. A second frequency divider circuit that generates a clock by dividing the frequency, and using the clock generated by the second frequency divider circuit, the first count end pulse and the second count end pulse A speed difference detection counter that counts a time difference between raw and outputs the count value; and a first value counter based on a count value input from the speed difference detection counter and a code input from the speed code detection circuit. And a clock adjusting timing circuit for controlling the frequency dividing circuit.

【0009】請求項5に記載の発明は、クロックを生成
するクロック生成過程と、一定のパケット送信周期で送
信されるパケットの受信数を計数し、該計数値が所定の
カウント数に達するまで計数する第1の計数過程と、前
記クロックを使用して前記パケット送信周期と等しい周
期で時間を計数し、該計数値が前記第1の計数過程と等
しいカウント数に達するまで計数する第2の計数過程
と、前記第1の計数過程の計数速度と前記第2の計数過
程の計数速度とを比較する計数速度比較過程とを具備
し、前記クロック生成過程は、前記計数速度の比較結果
により制御されることを特徴とする。
According to a fifth aspect of the present invention, there is provided a clock generating step of generating a clock, counting the number of received packets transmitted in a fixed packet transmission cycle, and counting until the counted value reaches a predetermined count. A second counting step of counting time in a cycle equal to the packet transmission cycle using the clock and counting until the count value reaches a count number equal to the first counting step. And a counting speed comparing step of comparing the counting speed of the first counting process and the counting speed of the second counting process, wherein the clock generation process is controlled by a comparison result of the counting speed. It is characterized by that.

【0010】請求項6に記載の発明は、請求項5に記載
の発明において、前記クロック生成過程は、前記第1の
計数過程の計数速度の方が速い場合は、前記クロックの
位相を進ませ、前記第1の計数過程の計数速度の方が遅
い場合は、前記クロックの位相を遅らせるように制御さ
れることを特徴とする。
According to a sixth aspect of the present invention, in the fifth aspect of the invention, the clock generating step advances the phase of the clock when the counting speed of the first counting step is faster. When the counting speed in the first counting process is lower, the control is performed so as to delay the phase of the clock.

【0011】本発明のクロック同期回路の実施形態によ
れば、前記クロック調整タイミング回路は、前記抽出ク
ロックで所定数をカウントして求める周期毎に、クロッ
ク補正イネーブル信号を発生する最小補正値カウンタ
と、前記クロック補正イネーブル信号の発生毎に、前記
入力されるカウント値分をカウントすることによってク
ロック調整イネーブル信号を発生する補正頻度カウンタ
と、前記入力される符号に基づいて、前記第1の分周回
路の動作を一時停止させるディスエーブル信号、または
前記第1の分周回路の動作をクリアして再度、分周動作
を開始させるクリア信号のいずれの信号を発生するかを
決定し、該決定した信号を前記ソースクロックの1クロ
ック分ずつ前記クロック調整イネーブル信号の発生区間
に応じた回数だけ発生する制御信号発生回路とを具備す
ることを特徴とする。
According to an embodiment of the clock synchronization circuit of the present invention, the clock adjustment timing circuit includes a minimum correction value counter for generating a clock correction enable signal for each period obtained by counting a predetermined number by the extracted clock. A correction frequency counter that generates a clock adjustment enable signal by counting the input count value each time the clock correction enable signal is generated, and the first frequency division based on the input code. It is determined which of a disable signal for temporarily stopping the operation of the circuit or a clear signal for clearing the operation of the first frequency dividing circuit and starting the frequency dividing operation again is determined. The signal is generated by the number of times corresponding to the generation period of the clock adjustment enable signal for each one clock of the source clock. Characterized by comprising a control signal generating circuit for.

【0012】本発明のクロック同期方法の実施形態によ
れば、ソースクロックを所定回数だけ分周することによ
って抽出クロックを生成する過程と、一定のパケット送
信周期で送信されるパケットの受信数を所定の比較パケ
ット数n(n;1以上の整数)分計数して該計数毎に第
1のカウント終了パルスを発生する過程と、前記抽出ク
ロックを使用して前記パケット送信周期に相当する所定
のカウント数m(m;1以上の整数)を計数し、該計数
毎に発生する受信タイミング比較パルスを前記比較パケ
ット数n分計数して該計数毎に第2のカウント終了パル
スを発生する過程と、前記第1のカウント終了パルスと
前記第2のカウント終了パルスとの発生する速度差に基
づいて、前記抽出クロックの速度制御量と該速度制御方
向を求める過程と、この速度制御量と速度制御方向に基
づいて、前記分周の制御を行う過程とを具備することを
特徴とする。
According to an embodiment of the clock synchronization method of the present invention, a process of generating an extracted clock by dividing a source clock by a predetermined number of times and a method of determining the number of received packets transmitted at a fixed packet transmission cycle by a predetermined number. Counting the number of comparison packets n (n; an integer equal to or greater than 1) and generating a first count end pulse for each count; and a predetermined count corresponding to the packet transmission cycle using the extracted clock. A step of counting a number m (m; an integer of 1 or more), counting the number n of reception timing comparison pulses generated for each count, and generating a second count end pulse for each count, Obtaining a speed control amount of the extracted clock and the speed control direction based on a speed difference between the first count end pulse and the second count end pulse; Based on the speed control amount and the speed control direction, characterized by comprising a process of performing the frequency division control.

【0013】また、前記分周の制御を行う過程におい
て、所定の周期毎に、前記速度制御方向に基づいて、前
記速度制御量に相当する頻度の前記分周の制御を行うこ
とを特徴とする。
In the step of performing the frequency division control, the frequency division control is performed at a frequency corresponding to the speed control amount based on the speed control direction at predetermined intervals. .

【0014】[0014]

【発明の実施の形態】図1は本発明の実施形態の基本構
成の一例を示すブロック図である。この図において、マ
スタ機器100はマスタクロック発生器120によって
発生されるマスタクロックを使用して、送信データタイ
ミングに同期させて送信バッファ110から一定のパケ
ット送信周期でパケットを送信する。このマスタ機器1
00から送信されたパケットを非同期ネットワーク20
0を介して受信したスレーブ機器300が、その受信し
たパケットの受信タイミングに基づいて自スレーブクロ
ックの速度制御を行うことによって、自スレーブクロッ
クをマスタ機器100のマスタクロックに同期させるも
のである。なお、非同期ネットワーク200はLAN
(ローカル・エリア・ネットワーク)等、クロックまた
はデータの周波数の同期がとれていないネットワークで
ある。以下、図面を参照し、上述した図1の構成におい
て、スレーブ機器300に具備される本発明のクロック
同期回路、及びクロック同期方法の実施形態について説
明する。
FIG. 1 is a block diagram showing an example of a basic configuration of an embodiment of the present invention. In this figure, master device 100 uses a master clock generated by master clock generator 120 to transmit packets from transmission buffer 110 at a fixed packet transmission cycle in synchronization with transmission data timing. This master device 1
00 is transmitted to the asynchronous network 20.
The slave device 300, which receives the packet via the “0”, controls the speed of the own slave clock based on the reception timing of the received packet, thereby synchronizing the own slave clock with the master clock of the master device 100. The asynchronous network 200 is a LAN
(Local Area Network) A network in which the clock or data frequencies are not synchronized. Hereinafter, with reference to the drawings, embodiments of the clock synchronization circuit and the clock synchronization method of the present invention provided in the slave device 300 in the above-described configuration of FIG. 1 will be described.

【0015】図2は本発明の第1の実施形態によるクロ
ック同期回路の構成を示すブロック図である。この図に
おいて、1は一定のパケット送信周期で送信されるパケ
ットを受信して一時保持するバッファ、2はこのバッフ
ァ1から出力される信号であって、その受信するパケッ
トの到着毎にON/OFFを交互に繰り返すパケット受
信信号のエッジを検出して受信タイミングパルスを発生
するエッジ検出回路である。このエッジ検出回路2によ
って発生される受信タイミングパルスは非同期ネットワ
ーク200の歪みや遅延等がなければマスタ機器100
のマスタクロックに同期している。
FIG. 2 is a block diagram showing the configuration of the clock synchronization circuit according to the first embodiment of the present invention. In this figure, reference numeral 1 denotes a buffer for receiving and temporarily holding packets transmitted at a fixed packet transmission cycle, and 2 denotes a signal output from the buffer 1, which is turned ON / OFF every time the received packet arrives. Is an edge detection circuit that detects an edge of a packet reception signal that alternately repeats the above and generates a reception timing pulse. The reception timing pulse generated by the edge detection circuit 2 is the master device 100 if there is no distortion or delay of the asynchronous network 200.
Is synchronized with the master clock.

【0016】3はソースクロックA1を発生するソース
クロック発生器、4はこのソースクロック発生器3によ
って発生されるソースクロックA1を所定回数だけ分周
して抽出クロックA2を送信側のマスタ機器100のマ
スタクロックと等しい周期になるように生成する分周回
路、5aはエッジ検出回路2によって発生される受信タ
イミングパルスの数をカウントし、このカウント値が所
定の比較パケット数n(n;1以上の整数)に達した時
点でカウント終了パルスP1を発生するカウンタであ
り、入力されるカウントリセット信号B5によりカウン
ト値をクリアして再びカウントを開始する。即ち5a
は、パケット受信周期を単位に時間をカウントして、こ
のカウント値が所定の値になるとカウント終了パルスP
1を発生するカウンタである。
Reference numeral 3 denotes a source clock generator for generating a source clock A1, and 4 denotes a source clock A1 generated by the source clock generator 3 which is frequency-divided by a predetermined number of times to generate an extracted clock A2 of the master device 100 on the transmission side. The frequency dividing circuit 5a, which generates the same period as the master clock, counts the number of reception timing pulses generated by the edge detection circuit 2, and this count value is a predetermined comparison packet number n (n; 1 or more). This counter generates a count end pulse P1 when the count reaches an integer, and clears the count value by the input count reset signal B5 and starts counting again. That is, 5a
Counts time in units of a packet reception cycle, and when this count value reaches a predetermined value, the count end pulse P
This is a counter that generates 1.

【0017】6は、マスタ機器100のパケット送信周
期と抽出クロックA2の周期の比に相当する所定のカウ
ント数m(m;1以上の整数)になるまで抽出クロック
A2で巡回してカウントし、受信タイミング比較パルス
を発生するカウンタである。このカウンタ6によってパ
ケット送信周期と等しい一定の周期で受信タイミング比
較パルスが発生することになり、この受信タイミング比
較パルスは抽出クロックA2に同期している。7aはこ
のカウンタ6によって発生される受信タイミング比較パ
ルスの数をカウントし、このカウント値が所定の比較パ
ケット数nに達した時点でカウント終了パルスP2を発
生するカウンタであり、入力されるカウントリセット信
号B5によりカウント値をクリアして再びカウントを開
始する。即ち7aは、パケット送信周期を単位に時間を
カウントして、このカウント値が上記カウンタ5aと等
しい値になるとカウント終了パルスP2を発生するカウ
ンタである。
Reference numeral 6 denotes a cycle of counting with the extraction clock A2 until a predetermined count m (m; an integer of 1 or more) corresponding to the ratio of the packet transmission cycle of the master device 100 to the cycle of the extraction clock A2 is reached. This is a counter that generates a reception timing comparison pulse. The counter 6 generates a reception timing comparison pulse at a constant period equal to the packet transmission period, and the reception timing comparison pulse is synchronized with the extraction clock A2. A counter 7a counts the number of reception timing comparison pulses generated by the counter 6, and generates a count end pulse P2 when the count value reaches a predetermined comparison packet number n. The count value is cleared by the signal B5, and the counting is started again. That is, reference numeral 7a denotes a counter which counts time in units of a packet transmission cycle and generates a count end pulse P2 when the count value becomes equal to the value of the counter 5a.

【0018】8は、このカウンタ7aから出力されるカ
ウント終了パルスP2とカウンタ5aから出力されるカ
ウント終了パルスP1との速いか遅いか、すなわち遅速
を検出する速度符号検出回路であって、カウンタ7aか
ら出力されるカウント終了パルスP2とカウンタ5aか
ら出力されるカウント終了パルスP1との内、いずれの
パルスが速く出力されるか比較し、この比較結果をカウ
ント終了パルスP1、P2間の遅速の検出結果である速
度符号として出力する。この速度符号は、カウント終了
パルスP1の出力が速い場合には正が出力され、一方、
カウント終了パルスP1の出力が遅い場合には負が出力
される。また、この速度符号検出回路8は入力されるカ
ウント終了パルスP1、P2の内、いずれか遅い方のパ
ルスの入力時点で比較終了パルスP3を出力する。
Numeral 8 is a speed code detecting circuit for detecting whether the count end pulse P2 output from the counter 7a is faster or slower, that is, the slow speed of the count end pulse P1 output from the counter 5a. Of the count end pulse P2 output from the counter 5a and the count end pulse P1 output from the counter 5a are compared, and the result of the comparison is used to detect the delay between the count end pulses P1 and P2. The result is output as the speed code. This speed code is positive when the output of the count end pulse P1 is fast, while
If the output of the count end pulse P1 is slow, a negative value is output. The speed code detection circuit 8 outputs a comparison end pulse P3 at the input point of the later one of the input count end pulses P1 and P2.

【0019】9は0から1刻みでカウントするカウンタ
で、この速度符号検出回路8から出力される速度符号が
正の場合にはカウントアップし、一方、負の場合にはカ
ウントダウンして、そのカウント値B1とカウント値B
1の符号B2とを出力するアップダウンカウンタであ
り、カウント値B1が抽出クロックA2の速度制御量を
示し、符号B2が抽出クロックA2の速度制御方向を示
す。なお、上記した速度符号検出回路8はカウント終了
パルスP1、P2が同時に出力された場合には、速度符
号を正負として出力し、アップダウンカウンタ9はカウ
ントを行わない。また、アップダウンカウンタ9は比較
終了パルスP3が入力されると、そのカウント処理を行
い、次の比較終了パルスP3が入力されるまでカウント
値B1と符号B2として出力し続ける。
Reference numeral 9 denotes a counter which counts from 0 to 1 in increments. When the speed code output from the speed code detection circuit 8 is positive, it counts up, and when it is negative, it counts down and counts down. Value B1 and count value B
This is an up / down counter that outputs a code B2 of 1 and the count value B1 indicates the speed control amount of the extracted clock A2, and the code B2 indicates the speed control direction of the extracted clock A2. When the count end pulses P1 and P2 are output simultaneously, the speed code detection circuit 8 outputs the speed code as positive or negative, and the up / down counter 9 does not count. Further, when the comparison end pulse P3 is input, the up / down counter 9 performs the counting process and continues to output the count value B1 and the code B2 until the next comparison end pulse P3 is input.

【0020】10はこのアップダウンカウンタ9から出
力されるカウント値B1と符号B2に基づいて、分周回
路4の動作を一時停止させるディスエーブル信号B3と
分周回路4の動作をクリアして再度、分周動作を開始さ
せるクリア信号B4とを生成して出力するクロック調整
タイミング回路、11は速度符号検出回路8から出力さ
れる比較終了パルスP3が入力された後、エッジ検出回
路2から入力される受信タイミングパルスを最初に検出
した時点でカウントリセット信号B5を出力する比較開
始検出回路である。
Reference numeral 10 denotes a disable signal B3 for temporarily suspending the operation of the frequency dividing circuit 4 and the operation of the frequency dividing circuit 4 based on the count value B1 and the sign B2 output from the up / down counter 9, and again. And a clock adjustment timing circuit 11 for generating and outputting a clear signal B4 for starting the frequency division operation. The clock adjustment timing circuit 11 is input from the edge detection circuit 2 after the comparison end pulse P3 output from the speed code detection circuit 8 is input. A comparison start detection circuit that outputs a count reset signal B5 when a first reception timing pulse is detected.

【0021】なお、上述した第1の実施形態において
は、速度符号検出回路8がマスタ機器100のマスタク
ロックに同期した受信タイミングパルスと抽出クロック
A2に同期した受信タイミング比較パルスとの速度差を
カウント終了パルスP1、P2間の遅速として検出し、
その検出結果に基づいて、カウント終了パルスP1、P
2とが同期するように、すなわち受信タイミングパルス
と受信タイミング比較パルスとが同期するように分周回
路4の制御が行われる。この分周回路4の制御によって
抽出クロックA2の速度制御が行われ、その結果、抽出
クロックA2とマスタクロックとは同期される。
In the first embodiment, the speed code detection circuit 8 counts the speed difference between the reception timing pulse synchronized with the master clock of the master device 100 and the reception timing comparison pulse synchronized with the extracted clock A2. Detected as a slow speed between the end pulses P1 and P2,
Based on the detection result, the count end pulses P1, P
2 is synchronized so that the reception timing pulse and the reception timing comparison pulse are synchronized. The speed of the extracted clock A2 is controlled by the control of the frequency dividing circuit 4, and as a result, the extracted clock A2 and the master clock are synchronized.

【0022】なお、上記速度符号検出回路8の速度差の
検出頻度をパケット送信周期毎とすると、パケット伝送
遅延時間に揺らぎがある場合、抽出クロックA2の速度
制御量と速度制御方向がその揺らぎに応じて逐次変動し
てしまい、抽出クロックA2とマスタクロックとの同期
化がうまくゆかない可能性がある。そのため、速度符号
検出回路8の速度差の検出頻度は、パケットが伝送され
る非同期ネットワーク200のパケット伝送遅延時間の
揺らぎ量、各クロック発生器120、3のクロック発生
素子のクロック周波数と周波数偏差、及びマスタ機器1
00のパケット送信周期を考慮して決定され、カウンタ
5a、7aに比較パケット数nとして予め設定される。
したがって、この比較パケット数n毎に発生されるカウ
ント終了パルスP1、P2間の遅速によって速度制御さ
れる抽出クロックA2は、受信タイミングパルスと受信
タイミング比較パルスとの速度差に基づいて制御され、
且つ安定に制御される。なお、その比較パケット数n値
としては、例えば、数〜数百パケットのいずれかの値で
ある。
Assuming that the speed difference detection circuit 8 detects the speed difference every packet transmission cycle, if there is a fluctuation in the packet transmission delay time, the speed control amount and the speed control direction of the extracted clock A2 are affected by the fluctuation. Accordingly, there is a possibility that the synchronization between the extracted clock A2 and the master clock does not go well. Therefore, the frequency of detection of the speed difference by the speed code detection circuit 8 depends on the fluctuation amount of the packet transmission delay time of the asynchronous network 200 through which the packet is transmitted, the clock frequency and the frequency deviation of the clock generation elements of the clock generators 120 and 3, And master device 1
It is determined in consideration of the packet transmission cycle of 00, and is set in advance in the counters 5a and 7a as the number of comparison packets n.
Accordingly, the extraction clock A2, which is speed-controlled by the delay between the count end pulses P1 and P2 generated for each comparison packet number n, is controlled based on the speed difference between the reception timing pulse and the reception timing comparison pulse,
And it is controlled stably. The comparison packet number n value is, for example, any value of several to several hundred packets.

【0023】次に、図2、3を参照して、上述した第1
の実施形態によるクロック同期回路の動作について説明
する。図3は、図2のクロック同期回路の動作を説明す
るための波形図である。初めに、分周回路4はソースク
ロック発生器3によって発生されるソースクロックA1
を予め設定された回数だけ分周して抽出クロックA2が
マスタクロックと等しい周期になるように出力する。ま
た、カウンタ5a、7aには比較パケット数nが予め設
定され、カウンタ6にはマスタ機器100のパケット送
信周期とマスタクロック周期との比に相当するカウント
数mが予め設定される。
Next, with reference to FIGS.
The operation of the clock synchronous circuit according to the embodiment will be described. FIG. 3 is a waveform diagram for explaining the operation of the clock synchronization circuit of FIG. First, the frequency dividing circuit 4 generates the source clock A1 generated by the source clock generator 3.
Is divided by a preset number of times and output so that the extracted clock A2 has the same cycle as the master clock. The number of comparison packets n is set in advance in the counters 5a and 7a, and the count number m corresponding to the ratio between the packet transmission cycle of the master device 100 and the master clock cycle is set in the counter 6 in advance.

【0024】先ず、バッファ1はパケットが到着する毎
に、パケット受信信号のON/OFFを交互に繰り返
し、エッジ検出回路2はこのパケット受信信号のエッジ
を検出して受信タイミングパルスを発生し出力する。次
いで、カウンタ5aはこのエッジ検出回路2から入力さ
れる受信タイミングパルスを比較パケット数nに達する
までカウントし、このカウント終了後に受信タイミング
パルスのカウントを停止してカウント終了パルスP1を
出力する。
First, the buffer 1 alternately repeats ON / OFF of the packet reception signal every time a packet arrives, and the edge detection circuit 2 detects the edge of the packet reception signal, generates and outputs a reception timing pulse. . Next, the counter 5a counts the reception timing pulse input from the edge detection circuit 2 until the number of comparison packets reaches n, stops counting the reception timing pulse after this count ends, and outputs a count end pulse P1.

【0025】また、カウンタ6は抽出クロックA2でカ
ウント数mになるまで巡回してカウントし、そのカウン
ト終了毎に受信タイミング比較パルスを出力する。次い
で、カウンタ7aはこのカウンタ6から出力される受信
タイミング比較パルスを比較パケット数nに達するまで
カウントし、このカウント終了後に受信タイミングパル
スのカウントを停止してカウント終了パルスP2を出力
する。次いで、速度符号検出回路8はこのカウンタ7a
から出力されるカウント終了パルスP2とカウンタ5a
から出力されるカウント終了パルスP1との内、いずれ
のパルスが速く出力されるかを比較して速度符号を出力
し、その入力されるカウント終了パルスP1、P2の
内、いずれか遅い方のパルスの入力時点で比較終了パル
スP3を出力する。この速度符号検出回路8から出力さ
れる速度符号に応じて、アップダウンカウンタ9はカウ
ントアップまたはカウントダウンのいずれかのカウント
を行い、比較終了パルスP3入力時にそのカウント値を
処理してカウント値B1と符号B2として、次比較終了
パルスP3入力時まで出力し続ける。
The counter 6 circulates and counts with the extraction clock A2 until it reaches the count number m, and outputs a reception timing comparison pulse every time the counting is completed. Next, the counter 7a counts the reception timing comparison pulse output from the counter 6 until the number of comparison packets reaches n, stops counting the reception timing pulse after the count ends, and outputs a count end pulse P2. Next, the speed code detection circuit 8 operates the counter 7a.
End pulse P2 output from the counter and the counter 5a
And outputs a speed code by comparing which one of the count end pulses P1 is output faster, and outputs the count end pulse P1 or P2 which is later, whichever is later. The comparison end pulse P3 is output at the time of input. The up / down counter 9 counts up or down in accordance with the speed code output from the speed code detection circuit 8. When the comparison end pulse P3 is input, the up / down counter 9 processes the count value to obtain a count value B1. As the code B2, the output is continued until the next comparison end pulse P3 is input.

【0026】例えば、図3(a)〜(c)に示す波形図
において、図3(a)のカウント終了パルスP1のパル
スWa1と図3(b)のカウント終了パルスP2のパル
スWb1とがカウンタ5a、7aから各々同時に出力さ
れると、速度符号検出回路8は速度符号を正負として出
力し、図3(c)の比較終了パルスP3のパルスWc1
を出力する。この場合には、アップダウンカウンタ9は
カウントを行わず、そのカウント値は「0」とする。次
いで、図3(a)のカウント終了パルスP1のパルスW
a2に対して図3(b)のカウント終了パルスP2のパ
ルスWb2が遅れて出力されると、抽出クロックA2の
速度を速くする方向に制御するために正の速度符号が出
力されて、アップダウンカウンタ9によりカウントアッ
プされて、図3(c)の比較終了パルスP3のパルスW
c2がパルスWb2の入力後に、カウント値は「+1」
となる。次いで、図3(a)のカウント終了パルスP1
のパルスWa3に対して図3(b)のカウント終了パル
スP2のパルスWb3が同様に遅れて出力されると、正
の速度符号が出力されて、アップダウンカウンタ9によ
りさらにカウントアップされて、図3(c)の比較終了
パルスP3のパルスWc3がパルスWb3の入力後に、
カウント値は「+2」となる。
For example, in the waveform diagrams shown in FIGS. 3A to 3C, the pulse Wa1 of the count end pulse P1 in FIG. 3A and the pulse Wb1 of the count end pulse P2 in FIG. When output simultaneously from 5a and 7a, the speed code detection circuit 8 outputs the speed code as positive or negative, and the pulse Wc1 of the comparison end pulse P3 in FIG.
Is output. In this case, the up / down counter 9 does not count, and the count value is “0”. Next, the pulse W of the count end pulse P1 in FIG.
When the pulse Wb2 of the count end pulse P2 in FIG. 3B is output with a delay with respect to a2, a positive speed code is output to control the speed of the extracted clock A2 to be increased, and the speed is increased and decreased. The pulse W is counted up by the counter 9 and is the comparison end pulse P3 in FIG.
After the input of the pulse Wb2, the count value becomes “+1”.
Becomes Next, the count end pulse P1 in FIG.
Similarly, if the pulse Wb3 of the count end pulse P2 in FIG. 3B is output with a delay with respect to the pulse Wa3, a positive speed code is output and the up / down counter 9 further counts up. 3 (c), the pulse Wc3 of the comparison end pulse P3 is inputted after the input of the pulse Wb3.
The count value is “+2”.

【0027】次いで、図3(a)のカウント終了パルス
P1のパルスWa4に対して図3(b)のカウント終了
パルスP2のパルスWb4が速く出力されると、抽出ク
ロックA2の速度を遅くする方向に制御するために負の
速度符号が出力されて、アップダウンカウンタ9により
カウントダウンされて、図3(c)の比較終了パルスP
3のパルスWc4がパルスWa4の入力後に、カウント
値は「+1」となる。なお、このアップダウンカウンタ
9のカウント値は、その絶対値であるカウント値B1と
符号B2として出力される。このように、アップダウン
カウンタ9のカウント値は比較パケット数nのカウント
終了毎に、カウント終了パルスP1、P2間の速度差に
基づいてアップダウンカウントが繰り返される。
Next, when the pulse Wb4 of the count end pulse P2 in FIG. 3B is output faster than the pulse Wa4 of the count end pulse P1 in FIG. 3A, the speed of the extraction clock A2 is reduced. , A negative speed code is output and counted down by the up / down counter 9, and the comparison end pulse P shown in FIG.
After the pulse Wc4 of the third pulse is input, the count value becomes “+1”. The count value of the up / down counter 9 is output as a count value B1 and a sign B2, which are absolute values. As described above, the count value of the up / down counter 9 repeats the up / down count based on the speed difference between the count end pulses P1 and P2 each time the count of the comparison packet number n ends.

【0028】次いで、このようにアップダウンカウンタ
9によって、カウントアップまたはカウントダウンのい
ずれかが行われカウント値B1と符号B2とが出力され
ると、クロック調整タイミング回路10はこのアップダ
ウンカウンタ9から入力されるカウント値B1と符号B
2に基づいて、分周回路4へディスエーブル信号B3ま
たはクリア信号B4のいずれかの信号を発生して出力す
る。このディスエーブル信号B3またはクリア信号B4
のいずれかを発生するクロック調整タイミング回路10
の動作について、図4、5を参照して説明する。図4は
クロック調整タイミング回路10によって発生されるデ
ィスエーブル信号B3の一例を示す波形図である。ま
た、図5はクロック調整タイミング回路10によって発
生されるクリア信号B4の一例を示す波形図である。
Next, when either the count-up or the count-down is performed by the up / down counter 9 and the count value B1 and the code B2 are output, the clock adjustment timing circuit 10 receives the input from the up / down counter 9. Count value B1 and code B
2, a signal of either the disable signal B3 or the clear signal B4 is generated and output to the frequency dividing circuit 4. This disable signal B3 or clear signal B4
Clock adjustment timing circuit 10 for generating any one of
Will be described with reference to FIGS. FIG. 4 is a waveform diagram showing an example of the disable signal B3 generated by the clock adjustment timing circuit 10. FIG. 5 is a waveform diagram showing an example of the clear signal B4 generated by the clock adjustment timing circuit 10.

【0029】クロック調整タイミング回路10は入力さ
れる符号B2が負の場合、抽出クロックA2の速度を遅
くする方向に制御するために、図4(b)に示すよう
に、ディスエーブル信号B3を図4(a)に示すソース
クロックA1の1クロック分だけ発生し、分周回路4に
出力する。このディスエーブル信号B3が入力される
と、分周回路4はソースクロックA1の1ビット分だけ
分周動作を一時停止する。この結果、図4(c)に示す
抽出クロックA2は実線で示される波形となり、ディス
エーブル信号B3発生周期において、ディスエーブル信
号B3が未発生の波形(点線で示す)に比してソースク
ロックA1の1クロック分だけ周期が長くなる。
When the input code B2 is negative, the clock adjustment timing circuit 10 outputs the disable signal B3 as shown in FIG. 4 (b) to control the speed of the extracted clock A2 to decrease. 4 (a) is generated for one source clock A1 and output to the frequency dividing circuit 4. When the disable signal B3 is input, the frequency dividing circuit 4 temporarily stops the frequency dividing operation by one bit of the source clock A1. As a result, the extracted clock A2 shown in FIG. 4C has a waveform shown by a solid line, and in the generation cycle of the disable signal B3, the source clock A1 is smaller than a waveform (shown by a dotted line) in which the disable signal B3 is not generated. The period becomes longer by one clock.

【0030】一方、クロック調整タイミング回路10は
入力される符号B2が正の場合、抽出クロックA2の速
度を速くする方向に制御するために、図5(b)に示す
ようにクリア信号B4を分周回路4のカウント終了(図
5(c)の点線で示す抽出クロックA2の立ち下がり)
に対して、図5(a)に示すソースクロックA1の1ク
ロック分前に発生し、分周回路4に出力する。このクリ
ア信号B4が入力されると、分周回路4は分周動作をク
リアして再度、初期状態から分周動作を開始する。この
結果、図5(c)に示す抽出クロックA2は実線で示さ
れる波形となり、クリア信号B4発生周期において、ク
リア信号B4が未発生の波形(点線で示す)に比してソ
ースクロックA1の1クロック分だけ周期が短くなる。
On the other hand, when the input code B2 is positive, the clock adjustment timing circuit 10 separates the clear signal B4 as shown in FIG. 5B in order to increase the speed of the extracted clock A2. The counting of the circuit 4 is completed (falling of the extracted clock A2 indicated by the dotted line in FIG. 5C).
5A is generated one clock before the source clock A1 shown in FIG. When the clear signal B4 is input, the frequency dividing circuit 4 clears the frequency dividing operation and starts the frequency dividing operation again from the initial state. As a result, the extracted clock A2 shown in FIG. 5 (c) has a waveform shown by a solid line, and in the generation cycle of the clear signal B4, the source clock A1 has a waveform which is smaller than a waveform (shown by a dotted line) where the clear signal B4 has not been generated. The period becomes shorter by the amount of the clock.

【0031】次いで、このようにクロック調整タイミン
グ回路10によって発生されたディスエーブル信号B3
またはクリア信号B4のいずれかの信号によって、分周
回路4における分周動作が制御される。また、比較開始
検出回路11は速度符号検出回路8から比較終了パルス
P3が入力されると、エッジ検出回路2から入力される
受信タイミングパルスの検出を開始して、最初に受信タ
イミングパルスを検出した時にカウントリセット信号B
5を出力する。このカウントリセット信号B5が入力さ
れると、カウンタ5a、7aはそれぞれのカウント値を
クリアして再びカウントを開始する。
Next, the disable signal B3 thus generated by the clock adjustment timing circuit 10
Alternatively, the frequency dividing operation in the frequency dividing circuit 4 is controlled by one of the clear signals B4. When the comparison end pulse P3 is input from the speed code detection circuit 8, the comparison start detection circuit 11 starts detecting the reception timing pulse input from the edge detection circuit 2 and detects the reception timing pulse first. Sometimes count reset signal B
5 is output. When the count reset signal B5 is input, the counters 5a and 7a clear their respective count values and start counting again.

【0032】なお、上述したクロック調整タイミング回
路10は、所定の補正周期毎に、符号B2に基づいて、
カウント値B1に相当する頻度のディスエーブル信号B
3またはクリア信号B4のいずれかの信号を発生する。
また、アップダウンカウンタ9から出力されるカウント
値B1と符号B2が変化するまで、すなわち少なくとも
各比較終了パルスP3が発生されるまでの間は、アップ
ダウンカウンタ9から出力され続けるカウント値B1と
符号B2に基づいて一定の抽出クロックA2の速度制御
が行われる。
It should be noted that the above-described clock adjustment timing circuit 10 uses the code B2 for each predetermined correction cycle.
Disable signal B having a frequency corresponding to count value B1
3 or a clear signal B4.
Until the count value B1 and the sign B2 output from the up / down counter 9 change, that is, at least until each comparison end pulse P3 is generated, the count value B1 and the sign output from the up / down counter 9 continue. Based on B2, constant speed control of the extracted clock A2 is performed.

【0033】図6は上述したクロック調整タイミング回
路10の構成を示すブロック図である。この図におい
て、21は入力される抽出クロックA2で、予め設定さ
れる補正周期設定値数分をカウントして求める周期毎に
クロック補正イネーブル信号C1を発生する最小補正値
カウンタ、22はこの最小補正値カウンタ21からクロ
ック補正イネーブル信号C1が入力される毎に、入力さ
れるカウント値B1分を抽出クロックA2でカウントす
ることによってクロック調整イネーブル信号C2を発生
する補正頻度カウンタ、23は入力される符号B2に基
づいて、ディスエーブル信号B3またはクリア信号B4
のいずれの信号を発生するかを決定し、その決定した信
号をソースクロックA1の1クロック分ずつ、補正頻度
カウンタ22から入力されるクロック調整イネーブル信
号C2の発生区間に応じた回数だけ発生する制御信号発
生回路である。なお、上記した補正周期設定値は、マス
タ機器100のパケット送信周期、各クロック発生器1
20、3のクロック発生素子のクロック周波数と周波数
偏差、及びカウンタ5a、7aに設定される比較パケッ
ト数nとから最適な値が決定される。
FIG. 6 is a block diagram showing the configuration of the clock adjustment timing circuit 10 described above. In this figure, reference numeral 21 denotes an input extracted clock A2, a minimum correction value counter for generating a clock correction enable signal C1 for each period obtained by counting the number of preset correction period setting values, and 22 a minimum correction value. Each time the clock correction enable signal C1 is input from the value counter 21, a correction frequency counter that generates the clock adjustment enable signal C2 by counting the input count value B1 with the extracted clock A2, and 23 is a code that is input. Based on B2, a disable signal B3 or a clear signal B4
Is generated, and the determined signal is generated by the number of times corresponding to the generation section of the clock adjustment enable signal C2 input from the correction frequency counter 22 for each one clock of the source clock A1. It is a signal generation circuit. It should be noted that the above-described correction cycle setting value is based on the packet transmission cycle of the master device 100 and each clock generator 1.
An optimum value is determined from the clock frequencies and frequency deviations of the clock generation elements 20 and 3 and the number n of comparison packets set in the counters 5a and 7a.

【0034】図7はクロック調整タイミング回路10の
動作を説明するためのタイムチャートの一例である。次
に、図7のタイムチャートを参照して、図6に示すクロ
ック調整タイミング回路10の動作を説明する。初め
に、補正周期設定値が「4」に設定され、またカウント
値B1として「2」が入力されているとして以下を説明
する。先ず、最小補正値カウンタ21は設定された補正
周期毎に、すなわち図7(a)に示す抽出クロックA2
の4クロック毎に、図7(b)に示すクロック補正イネ
ーブル信号C1を発生して出力する。次いで、補正頻度
カウンタ22はこのクロック補正イネーブル信号C1が
入力されると、入力されるカウント値B1である「2」
を抽出クロックA2でカウントすることによって、抽出
クロックA2の2クロック幅の図7(c)に示すクロッ
ク調整イネーブル信号C2を発生して出力する。次い
で、制御信号発生回路23はこのクロック調整イネーブ
ル信号C2が入力されると、入力される符号B2に基づ
いて、ディスエーブル信号B3またはクリア信号B4の
いずれの信号を発生するかを決定し、その決定した信号
をソースクロックA1の1クロック分ずつ、補正頻度カ
ウンタ22から入力されるクロック調整イネーブル信号
C2の発生区間に応じた回数だけ発生する。
FIG. 7 is an example of a time chart for explaining the operation of the clock adjustment timing circuit 10. Next, the operation of the clock adjustment timing circuit 10 shown in FIG. 6 will be described with reference to the time chart of FIG. First, the following description is based on the assumption that the correction cycle setting value is set to “4” and “2” is input as the count value B1. First, the minimum correction value counter 21 reads the extracted clock A2 shown in FIG.
A clock correction enable signal C1 shown in FIG. 7B is generated and output every four clocks. Next, when the clock correction enable signal C1 is input, the correction frequency counter 22 sets the input count value B1 to “2”.
Is generated using the extracted clock A2, thereby generating and outputting a clock adjustment enable signal C2 shown in FIG. 7C having a width of two clocks of the extracted clock A2. Next, when the clock adjustment enable signal C2 is input, the control signal generation circuit 23 determines which of the disable signal B3 and the clear signal B4 to generate based on the input code B2. The determined signal is generated for each clock of the source clock A1 by the number of times corresponding to the generation period of the clock adjustment enable signal C2 input from the correction frequency counter 22.

【0035】入力される符号B2が負の場合には、制御
信号発生回路23は図7(d)に示すように、ディスエ
ーブル信号B3を図7(c)のクロック調整イネーブル
信号C2の発生区間に応じた回数、すなわち2回発生す
る。一方、入力される符号B2が正の場合には、制御信
号発生回路23は図7(e)に示すように、クリア信号
B4を図7(c)のクロック調整イネーブル信号C2の
発生区間に応じた回数、すなわち2回発生する。以上の
クロック調整タイミング回路10の動作が、少なくとも
各比較終了パルスP3が発生されるまでの間、カウンタ
5a、7aに設定される比較パケット数nと上記補正周
期に応じた回数分繰り返して行われる。
When the input code B2 is negative, the control signal generation circuit 23 changes the disable signal B3 to the generation period of the clock adjustment enable signal C2 in FIG. 7C as shown in FIG. 7D. , Ie, twice. On the other hand, when the input code B2 is positive, the control signal generation circuit 23 changes the clear signal B4 according to the generation period of the clock adjustment enable signal C2 in FIG. 7C, as shown in FIG. Occur twice, that is, twice. The above operation of the clock adjustment timing circuit 10 is repeatedly performed at least until the comparison end pulse P3 is generated, the number of comparison packets set in the counters 5a and 7a, and the number of times according to the correction cycle. .

【0036】上述したように、第1の実施形態において
は、カウンタ5a、7aに設定される比較パケット数n
のカウント終了毎に受信タイミング比較パルスと受信タ
イミングパルスとの速度差の比較を繰り返して、その都
度、クロック調整タイミング回路10に入力される符号
B2によって抽出クロックA2の速度補正を速くするか
遅くするか決定し、またカウント値B1により速度補正
の頻度を増減させて分周回路4の動作を制御する補正値
を変更するようにしたので、パケット受信信号と抽出ク
ロックA2をより適時に同期させることができ、長期的
にはマスタ機器100のマスタクロックとスレーブ機器
300の抽出クロックA2を同期させることができる。
As described above, in the first embodiment, the number of comparison packets n set in the counters 5a and 7a is n.
Each time the count is completed, the comparison of the speed difference between the reception timing comparison pulse and the reception timing pulse is repeated. Each time, the speed correction of the extracted clock A2 is made faster or slower by the code B2 input to the clock adjustment timing circuit 10. And the correction value for controlling the operation of the frequency dividing circuit 4 is changed by increasing / decreasing the frequency of the speed correction based on the count value B1, so that the packet reception signal and the extracted clock A2 can be more timely synchronized. In the long term, the master clock of the master device 100 and the extracted clock A2 of the slave device 300 can be synchronized.

【0037】次に、図8は本発明の第2の実施形態によ
るクロック同期回路の構成を示すブロック図である。こ
の図において、図2に示す第1の実施形態によるクロッ
ク同期回路と異なる構成は、図2のアップダウンカウン
タ9の代わりにカウント値B1計数用の速度差検出カウ
ンタ31と抽出クロックA2の所定の分周比のクロック
を生成して出力する分周回路32とを設けて、この速度
差検出カウンタ31が、分周回路32から出力されるク
ロックを使用して、入力されるカウント終了パルスP
4、P5発生間の時間差をカウントし、このカウント数
をカウント値B1として出力する点と、カウンタ5b、
7bがカウンタ5、7とは異なり、所定の比較パケット
数nになるまで巡回してカウントし、そのカウント終了
毎にカウント終了パルスP4、P5をそれぞれ出力した
後、自動的にカウント0に戻って再びカウントを開始す
る点である。なお、分周回路32の分周比すなわち分周
回数は、予め決定されたクロック調整タイミング回路1
0が抽出クロックA2を速度制御する分解能に基づいて
設定される。その他の構成とその動作は図2に示す第1
の実施形態と同様である。以下、図8、図9を参照し
て、図2に示す第1の実施形態と異なる構成と動作につ
いて説明する。
FIG. 8 is a block diagram showing a configuration of a clock synchronization circuit according to a second embodiment of the present invention. In this figure, the configuration different from that of the clock synchronous circuit according to the first embodiment shown in FIG. A frequency dividing circuit 32 for generating and outputting a clock having a frequency dividing ratio is provided. This speed difference detection counter 31 uses a clock output from the frequency dividing circuit 32 to input a count end pulse P
4, a point that counts the time difference between the occurrences of P5 and outputs the counted number as a count value B1;
Unlike the counters 5 and 7, the counter 7b circulates and counts up to a predetermined comparison packet number n, outputs count end pulses P4 and P5 each time the count ends, and automatically returns to the count 0. This is the point where counting is started again. It should be noted that the frequency division ratio of the frequency dividing circuit 32, that is, the number of frequency divisions, is determined by a predetermined clock adjustment timing circuit 1
0 is set based on the resolution for controlling the speed of the extraction clock A2. Other configurations and operations are the same as those of the first configuration shown in FIG.
This is the same as the embodiment. Hereinafter, with reference to FIGS. 8 and 9, a configuration and an operation different from those of the first embodiment shown in FIG. 2 will be described.

【0038】図9は、図8のクロック同期回路の動作を
説明するための波形図である。図8において、カウンタ
5b、7bは所定の比較パケット数nになるまで巡回し
てカウントし、そのカウント終了毎に図9(a)、
(b)に示すカウント終了パルスP4、P5をそれぞれ
出力する。この図9(a)のカウント終了パルスP4の
パルスWd1と図9(b)のカウント終了パルスP5の
パルスWe1とがカウンタ5b、7bから各々同時に出
力されると、速度差検出カウンタ31はカウント終了パ
ルスP4、P5発生間の時間差が無いのでカウントを行
わず、カウント値B1として「0」を出力する。
FIG. 9 is a waveform chart for explaining the operation of the clock synchronization circuit of FIG. In FIG. 8, the counters 5b and 7b circulate and count until a predetermined comparison packet number n is reached.
The count end pulses P4 and P5 shown in FIG. When the pulse Wd1 of the count end pulse P4 in FIG. 9A and the pulse We1 of the count end pulse P5 in FIG. 9B are simultaneously output from the counters 5b and 7b, the speed difference detection counter 31 ends the count. Since there is no time difference between the generation of the pulses P4 and P5, the counting is not performed, and “0” is output as the count value B1.

【0039】次いで、図9(a)のカウント終了パルス
P4のパルスWd2に対して図9(b)のカウント終了
パルスP5のパルスWe2が遅れて出力されると、速度
差検出カウンタ31はカウント終了パルスP4、P5発
生間の時間差t1の間、分周回路32から出力されるク
ロックでカウントを行い、このカウント数をカウント値
B1として出力する。次いで、図9(a)のカウント終
了パルスP4のパルスWd3に対して図9(b)のカウ
ント終了パルスP5のパルスWe3が分周回路32から
出力されるクロック幅以下の時間差分遅れて出力される
と、速度差検出カウンタ31はカウント終了パルスP
4、P5発生間の時間差のカウントを行わず、カウント
値B1として「0」を出力する。
Next, when the pulse We2 of the count end pulse P5 of FIG. 9B is output with a delay from the pulse Wd2 of the count end pulse P4 of FIG. 9A, the speed difference detection counter 31 ends the count. During the time difference t1 between the generation of the pulses P4 and P5, counting is performed with the clock output from the frequency dividing circuit 32, and this count is output as the count value B1. Next, the pulse We3 of the count end pulse P5 of FIG. 9B is output with a time difference equal to or less than the clock width output from the frequency dividing circuit 32 with respect to the pulse Wd3 of the count end pulse P4 of FIG. Then, the speed difference detection counter 31 outputs the count end pulse P
4. It does not count the time difference between the occurrences of P5 and outputs "0" as the count value B1.

【0040】次いで、図9(a)のカウント終了パルス
P4のパルスWd4に対して図9(b)のカウント終了
パルスP5のパルスWe4が速く出力されると、速度差
検出カウンタ31はカウント終了パルスP4、P5発生
間の時間差t2の間、分周回路32から出力されるクロ
ックでカウントを行い、このカウント数をカウント値B
1として出力する。なお、カウント終了パルスP4に対
してカウント終了パルスP5が分周回路32から出力さ
れるクロック幅以下の時間差分速く出力される場合に
は、速度差検出カウンタ31はカウント終了パルスP
4、P5発生間の時間差のカウントを行わず、カウント
値B1として「0」を出力する。
Next, when the pulse We4 of the count end pulse P5 in FIG. 9B is output faster than the pulse Wd4 of the count end pulse P4 in FIG. 9A, the speed difference detection counter 31 outputs the count end pulse. During the time difference t2 between the occurrence of P4 and P5, counting is performed with the clock output from the frequency dividing circuit 32, and this count is counted by the count value B
Output as 1. If the count end pulse P5 is output faster than the count end pulse P4 by the time difference equal to or smaller than the clock width output from the frequency divider 32, the speed difference detection counter 31 outputs the count end pulse P5.
4. It does not count the time difference between the occurrences of P5 and outputs "0" as the count value B1.

【0041】このように、速度差検出カウンタ31のカ
ウント値B1は比較パケット数nのカウント終了毎に、
カウント終了パルスP1、P2発生間の時間差、すなわ
ち受信タイミングパルス間の速度差に基づいたカウント
が繰り返される。また、速度符号検出回路32は上述し
た第1の実施形態と同様に、カウンタ5bから出力され
るカウント終了パルスP4とカウンタ7bから出力され
るカウント終了パルスP5とに基づいて速度符号を決定
し、抽出クロックA2の速度制御方向を示す符号B2と
して出力する。
As described above, the count value B1 of the speed difference detection counter 31 is incremented each time the counting of the number of comparison packets n is completed.
The counting based on the time difference between the generation of the count end pulses P1 and P2, that is, the speed difference between the reception timing pulses, is repeated. Further, the speed code detection circuit 32 determines the speed code based on the count end pulse P4 output from the counter 5b and the count end pulse P5 output from the counter 7b, as in the first embodiment described above. The extracted clock A2 is output as a code B2 indicating the speed control direction.

【0042】上述した第2の実施形態においては、速度
差検出カウンタ31がカウンタ5b、7bから出力され
るカウント終了パルスP4、P5間の時間差を検出し
て、その時間差の量を抽出クロックA2の速度制御量を
示すカウント値B1とし、クロック調整タイミング回路
10がそのカウント値B1と速度制御方向を示す符号B
2とに基づいて抽出クロックA2の速度制御を行うの
で、1回のカウント終了パルスP4、P5間の時間差検
出によって、大きな抽出クロックA2の速度補正を行う
ことができる。したがって、上述した第1の実施形態に
おける抽出クロックA2のパケット受信信号すなわちマ
スタクロックへの同期化に比して、より高速に、パケッ
ト受信信号すなわちマスタクロックに対して大きな速度
差がある抽出クロックA2をそのパケット受信信号すな
わちマスタクロックに同期させることが可能である。
In the second embodiment described above, the speed difference detection counter 31 detects the time difference between the count end pulses P4 and P5 output from the counters 5b and 7b, and determines the amount of the time difference as the extraction clock A2. The clock adjustment timing circuit 10 sets the count value B1 and the code B indicating the speed control direction as the count value B1 indicating the speed control amount.
2, the speed control of the extracted clock A2 is performed, so that a large time correction of the extracted clock A2 can be performed by detecting the time difference between one count end pulse P4 and P5. Therefore, compared with the synchronization of the extracted clock A2 with the packet reception signal, that is, the master clock, in the first embodiment described above, the extraction clock A2 having a large speed difference with respect to the packet reception signal, that is, the master clock, is faster. Can be synchronized with the packet reception signal, that is, the master clock.

【0043】また、カウント終了パルスP4、P5間の
速度差が分周回路32から出力されるクロック幅以下の
小さい時間差分の場合は、カウント値B1が「0」とな
り抽出クロックA2の速度補正は行われない。したがっ
て、パケット受信信号すなわちマスタクロックと抽出ク
ロックA2との速度差が初めから小さい場合には、1回
のカウント終了パルスP1、P2間の時間差検出毎に抽
出クロックA2の速度補正度合を変える第1の実施形態
に比して、より安定した抽出クロックA2を得ることが
できる。
If the speed difference between the count end pulses P4 and P5 is a small time difference smaller than the clock width output from the frequency dividing circuit 32, the count value B1 becomes "0" and the speed correction of the extracted clock A2 is performed. Not done. Therefore, when the speed difference between the packet reception signal, that is, the master clock and the extracted clock A2 is small from the beginning, the first time the speed correction degree of the extracted clock A2 is changed every time the time difference between the count end pulses P1 and P2 is detected. A more stable extracted clock A2 can be obtained as compared with the embodiment.

【0044】なお、上述した実施形態においては、パケ
ット送信間隔の揺らぎや、非同期ネットワーク200に
おいて発生した遅延時間の揺らぎがある場合には、パケ
ット受信信号はマスタ機器100のマスタクロックと短
期的には同期しなくなるが、スレーブ機器300の抽出
クロックA2は、長期的にみてマスタ機器100のマス
タクロックに同期している。さらに、バッファ1を具備
し、受信したパケットを一時保持するようにしたので、
パケット送信間隔の揺らぎや、非同期ネットワーク20
0において発生した遅延時間の揺らぎによって起こる受
信パケットのずれ、あるいは抽出クロックA2の揺らぎ
を吸収することができる。
In the above-described embodiment, if there is fluctuation of the packet transmission interval or fluctuation of the delay time generated in the asynchronous network 200, the packet reception signal is short-term with the master clock of the master device 100. Although not synchronized, the extracted clock A2 of the slave device 300 is synchronized with the master clock of the master device 100 in a long term. In addition, a buffer 1 is provided to temporarily hold received packets.
The fluctuation of the packet transmission interval and the asynchronous network 20
It is possible to absorb the deviation of the received packet caused by the fluctuation of the delay time generated at 0 or the fluctuation of the extracted clock A2.

【0045】上述した実施形態においては、以下に示す
ような効果を得ることができる。 (1) パケット受信信号を送信側のマスタクロックと
等しい周期の抽出クロックA2で常に同期が取れるよう
になっているので、抽出クロックA2を同期信号に使用
することにより受信信号を安定して再生することができ
る。 (2) マスタ機器100のマスタクロックとスレーブ
機器300の抽出クロックA2を長期的に同期させるこ
とで、半永久的に連続するデータを非同期ネットワーク
200を介して送受信する際に、データの欠落や過剰デ
ータのない通信が可能となる。
In the above-described embodiment, the following effects can be obtained. (1) Since the packet reception signal can always be synchronized with the extraction clock A2 having the same cycle as the transmission side master clock, the reception signal is stably reproduced by using the extraction clock A2 as the synchronization signal. be able to. (2) By synchronizing the master clock of the master device 100 with the extracted clock A2 of the slave device 300 for a long period of time, when transmitting and receiving semi-permanently continuous data via the asynchronous network 200, data loss or excess data Communication without the need.

【0046】(3) 非同期ネットワーク200上に複
数の機器が接続される場合は、その接続機器を1台のマ
スタ機器100とその他の複数のスレーブ機器300の
構成とすることによって、マスタ機器100の送信パケ
ットにて全てのスレーブ機器300の抽出クロックA2
を同期させることができる。1台のマスク機器100が
全てのスレーブ機器300をポーリングするような通信
系にも使用することができる。
(3) When a plurality of devices are connected on the asynchronous network 200, the connected devices are constituted by one master device 100 and a plurality of other slave devices 300. Extraction clock A2 of all slave devices 300 in transmission packet
Can be synchronized. It can also be used in a communication system in which one mask device 100 polls all slave devices 300.

【0047】(4) 第2の実施形態においては、分周
回路32に予め設定される分周比を変更することによっ
て、抽出クロックA2の速度補正の分解能や補正頻度を
変化させることができるので、使用されるシステムに応
じてより安定した抽出クロックA2を生成することがで
きる。
(4) In the second embodiment, the resolution and the frequency of the speed correction of the extracted clock A2 can be changed by changing the frequency dividing ratio preset in the frequency dividing circuit 32. , It is possible to generate a more stable extracted clock A2 according to the system used.

【0048】(5) 補正頻度値カウンタ22を具備す
るようにしたので、カウント値B1が増加することによ
って抽出クロックA2の速度補正の頻度が多くなり、大
きい位相のずれでも高速に位相をあわせることができ
る。 (6) 全てデジタル回路で構成可能であり、FPGA
化やゲートアレイ化が容易である。
(5) Since the correction frequency counter 22 is provided, the frequency of the speed correction of the extracted clock A2 increases as the count value B1 increases, so that the phase can be quickly adjusted even with a large phase shift. Can be. (6) FPGA can be composed entirely of digital circuits
And gate arrays are easy.

【0049】(7) 非同期ネットワーク200を介し
てモデム信号などのデータ伝送を行う場合に有効なクロ
ック同期手段であり、特に、上位プロトコルにデータエ
ラー時の対応機能がない場合に有効である。また、リア
ルタイム性が要求される音声や画像信号がデジタル化さ
れた信号をLANなどの非同期ネットワークを介して伝
送する場合にも有効である。
(7) Clock synchronizing means effective when data such as a modem signal is transmitted through the asynchronous network 200, and is particularly effective when the upper layer protocol does not have a function to cope with a data error. Further, the present invention is also effective when a digital signal of a voice or image signal requiring real-time transmission is transmitted via an asynchronous network such as a LAN.

【0050】なお、本発明の本質は、 .クロックを生成し、 .一定のパケット送信周期で送信されるパケットの受
信数を計数して、その計数値が所定のカウント数に達す
るまで計数し、 .で生成したクロックを使用してのパケット送信
周期と等しい周期で時間を計数し、その計数値がの所
定のカウント数と等しいカウント数に達するまで計数
し、 .との所定のカウント数に達するまでの計数速度
を比較し、この比較結果に基づいてのクロックの生成
の制御を行う ことにあって、上述した実施形態に限定されるものでは
ない。ここで、との所定のカウント数に達するまで
の計数速度を比較することにより生成クロックと送信側
のマスタクロックとのずれを検出することができ、その
比較結果に基づいてのクロックの生成の制御を行うこ
とによって、このずれを低下させることができる。
The essence of the present invention is as follows. Generating a clock; Counting the number of received packets transmitted in a fixed packet transmission cycle until the count reaches a predetermined count; Counting the time in a cycle equal to the packet transmission cycle using the clock generated in the above, and counting until the count reaches a count equal to a predetermined count of. The present invention is not limited to the above-described embodiment in that the counting speed until the predetermined count number is reached is compared with that of the above, and the generation of the clock is controlled based on the comparison result. Here, the difference between the generated clock and the master clock on the transmission side can be detected by comparing the counting speed until the predetermined count number is reached, and control of clock generation based on the comparison result is performed. By performing the above, the deviation can be reduced.

【0051】[0051]

【発明の効果】以上説明したように、本発明によれば、
一定のパケット送信周期で送信されるパケットの受信数
を計数して、該計数値が所定のカウント数に達するまで
計数し、またクロックを生成し、この生成したクロック
を使用してそのパケット送信周期と等しい周期で時間を
計数して、該計数値がその所定のカウント数と等しいカ
ウント数に達するまで計数し、これら両方の所定のカウ
ント数に達するまでの計数速度を比較し、この比較結果
に基づいて、その生成するクロックの生成の制御を行う
ようにしたので、このクロックを受信機器の同期信号に
することにより、受信信号を安定して再生することがで
き、非同期ネットワークを介して送受信機器相互のクロ
ック同期を行うことができる。
As described above, according to the present invention,
Count the number of packets transmitted in a fixed packet transmission cycle, count until the counted value reaches a predetermined count, generate a clock, and use the generated clock to perform the packet transmission cycle. Is counted until the count value reaches a count number equal to the predetermined count number, and the counting speed until both count values reach the predetermined count number is compared. Based on the control of the generation of the clock to be generated, the received signal can be reproduced stably by using this clock as the synchronization signal of the receiving device, and the transmitting and receiving device can be reproduced via the asynchronous network. Clock synchronization can be performed between each other.

【0052】さらに、パケットの受信数の計数値が所定
のカウント数に達するまでの計数速度の方が速い場合
は、クロックの位相を進ませ、一方、パケットの受信数
の計数値が所定のカウント数に達するまでの計数速度の
方が遅い場合は、クロックの位相を遅らせるようにクロ
ックの生成の制御を行うようにしたので、より適確に送
受信機器相互のクロック同期を行うことができる。
Further, if the counting speed until the count of the number of received packets reaches the predetermined count is faster, the phase of the clock is advanced, while the count of the number of received packets is equal to the predetermined count. If the counting speed until the number is reached is slower, the clock generation is controlled so as to delay the phase of the clock, so that the clock synchronization between the transmitting and receiving devices can be performed more accurately.

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

【図1】 本発明の実施形態の基本構成の一例を示すブ
ロック図である。
FIG. 1 is a block diagram illustrating an example of a basic configuration of an embodiment of the present invention.

【図2】 本発明の第1の実施形態によるクロック同期
回路の構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a clock synchronization circuit according to the first embodiment of the present invention.

【図3】 図2に示すクロック同期回路の動作を説明す
るための波形図である。
FIG. 3 is a waveform chart for explaining an operation of the clock synchronization circuit shown in FIG. 2;

【図4】 図2に示すクロック調整タイミング回路10
の動作を説明するための第1の波形図である。
FIG. 4 is a clock adjustment timing circuit 10 shown in FIG. 2;
FIG. 6 is a first waveform diagram for explaining the operation of FIG.

【図5】 図2に示すクロック調整タイミング回路10
の動作を説明するための第2の波形図である。
FIG. 5 is a clock adjustment timing circuit 10 shown in FIG. 2;
FIG. 4 is a second waveform diagram for explaining the operation of FIG.

【図6】 図2に示すクロック調整タイミング回路10
の構成を示すブロック図である。
FIG. 6 is a clock adjustment timing circuit 10 shown in FIG. 2;
FIG. 3 is a block diagram showing the configuration of FIG.

【図7】 図6に示すクロック調整タイミング回路10
の動作を説明するための波形図である。
7 is a clock adjustment timing circuit 10 shown in FIG.
FIG. 6 is a waveform diagram for explaining the operation of FIG.

【図8】 本発明の第2の実施形態によるクロック同期
回路の構成を示すブロック図である。
FIG. 8 is a block diagram illustrating a configuration of a clock synchronization circuit according to a second embodiment of the present invention.

【図9】 図8に示すクロック同期回路の動作を説明す
るための波形図である。
FIG. 9 is a waveform chart for explaining the operation of the clock synchronization circuit shown in FIG.

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

1 バッファ 2 エッジ検出回路 3 ソースクロック発生器 4 分周回路 5a、6、7a カウンタ 8 速度符号検出回路 9 アップダウンカウンタ 10 クロック調整タイミング回路 11 比較開始検出回路 100 マスタ機器 110 送信バッファ 120 マスタクロック発生器 200 非同期ネットワーク 300 スレーブ機器 DESCRIPTION OF SYMBOLS 1 Buffer 2 Edge detection circuit 3 Source clock generator 4 Divider circuit 5a, 6, 7a Counter 8 Speed code detection circuit 9 Up / down counter 10 Clock adjustment timing circuit 11 Comparison start detection circuit 100 Master device 110 Transmission buffer 120 Master clock generation Device 200 asynchronous network 300 slave device

フロントページの続き Fターム(参考) 5K028 AA01 KK32 NN32 NN41 5K030 GA11 HA08 HC14 KA21 LA15 5K033 CB15 CC01 DB11 5K047 BB15 GG02 GG11 JJ02 MM56 MM59 9A001 BB02 BB04 CC07 DD10 JJ12 KK37 KK56 Continued on the front page F term (reference) 5K028 AA01 KK32 NN32 NN41 5K030 GA11 HA08 HC14 KA21 LA15 5K033 CB15 CC01 DB11 5K047 BB15 GG02 GG11 JJ02 MM56 MM59 9A001 BB02 BB04 CC07 DD10 JJ12 KK37 KK56

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 クロックを生成するクロック生成手段
と、 一定のパケット送信周期で送信されるパケットの受信数
を計数し、該計数値が所定のカウント数に達するまで計
数する第1の計数手段と、 前記クロックを使用して前記パケット送信周期と等しい
周期で時間を計数し、該計数値が前記第1の計数手段と
等しいカウント数に達するまで計数する第2の計数手段
と、 前記第1の計数手段の計数速度と前記第2の計数手段の
計数速度とを比較する計数速度比較手段とを具備し、 前記クロック生成手段は、前記計数速度の比較結果によ
り制御されることを特徴とするクロック同期回路。
1. Clock generating means for generating a clock, and first counting means for counting the number of received packets transmitted at a fixed packet transmission period and counting until the counted value reaches a predetermined count number. A second counting means for counting time in a cycle equal to the packet transmission cycle using the clock, and counting until the counted value reaches a count equal to the first counting means; A clock comprising counting speed comparing means for comparing the counting speed of the counting means with the counting speed of the second counting means, wherein the clock generating means is controlled by a comparison result of the counting speed. Synchronous circuit.
【請求項2】 前記クロック生成手段は、 前記第1の計数手段の計数速度の方が速い場合は、前記
クロックの位相を進ませ、 前記第1の計数手段の計数速度の方が遅い場合は、前記
クロックの位相を遅らせるように制御されることを特徴
とする請求項1に記載のクロック同期回路。
2. The clock generating means, if the counting speed of the first counting means is faster, advances the phase of the clock. If the counting speed of the first counting means is slower, 2. The clock synchronization circuit according to claim 1, wherein the clock is controlled so as to delay the phase of the clock.
【請求項3】 ソースクロックを所定回数だけ分周する
ことによって抽出クロックを生成する第1の分周回路
と、 一定のパケット送信周期で送信されるパケットの受信数
を所定の比較パケット数n(n;1以上の整数)分計数
して該計数毎に第1のカウント終了パルスを発生する第
1の計数手段と、 前記抽出クロックを使用して前記パケット送信周期に相
当する所定のカウント数m(m;1以上の整数)を計数
し、該計数毎に発生する受信タイミング比較パルスを前
記比較パケット数n分計数して該計数毎に第2のカウン
ト終了パルスを発生する第2の計数手段と、 前記第1のカウント終了パルスと前記第2のカウント終
了パルスとの発生する速度差を検出して該速度差の速度
符号を出力する速度符号検出回路と、 前記速度符号検出回路から出力される速度符号に基づい
て、カウントアップまたはカウントダウンまたはカウン
ト未実施のいずれかを行い、該カウント値と該カウント
値の符号とを出力するアップダウンカウンタと、 前記アップダウンカウンタから入力されるカウント値と
符号に基づいて、前記第1の分周回路の制御を行うクロ
ック調整タイミング回路と、 を具備することを特徴とするクロック同期回路。
3. A first frequency dividing circuit for generating an extracted clock by dividing a source clock by a predetermined number of times, and a received number of packets transmitted in a fixed packet transmission cycle is determined by a predetermined comparison packet number n ( n: an integer of 1 or more), a first counting means for generating a first count end pulse for each count, and a predetermined count number m corresponding to the packet transmission cycle using the extracted clock. (M; an integer of 1 or more), a second counting means for counting the number n of reception timing comparison pulses generated for each count, and generating a second count end pulse for each count. A speed code detection circuit that detects a speed difference between the first count end pulse and the second count end pulse and outputs a speed code of the speed difference; An up / down counter that counts up, counts down, or performs no counting based on the output speed code, and outputs the count value and the sign of the count value; and a count input from the up / down counter. A clock adjustment timing circuit that controls the first frequency divider circuit based on a value and a sign.
【請求項4】 ソースクロックを所定回数だけ分周する
ことによって抽出クロックを生成する第1の分周回路
と、 一定のパケット送信周期で送信されるパケットの受信数
を所定の比較パケット数n(n;1以上の整数)分計数
して該計数毎に第1のカウント終了パルスを発生する第
1の計数手段と、 前記抽出クロックを使用して前記パケット送信周期に相
当する所定のカウント数m(m;1以上の整数)を計数
し、該計数毎に発生する受信タイミング比較パルスを前
記比較パケット数n分計数して該計数毎に第2のカウン
ト終了パルスを発生する第2の計数手段と、 前記第1のカウント終了パルスと前記第2のカウント終
了パルスとの発生する速度差を検出して該速度差の符号
を出力する速度符号検出回路と、 前記抽出クロックを所定回数だけ分周することによって
クロックを生成する第2の分周回路と、 前記第2の分周回路によって生成されるクロックを使用
して、前記第1のカウント終了パルスと前記第2のカウ
ント終了パルスとの発生間の時間差をカウントして該カ
ウント値を出力する速度差検出カウンタと、 前記速度差検出カウンタから入力されるカウント値と前
記速度符号検出回路から入力される符号とに基づいて、
前記第1の分周回路の制御を行うクロック調整タイミン
グ回路と、 を具備することを特徴とするクロック同期回路。
4. A first frequency dividing circuit for generating an extracted clock by dividing a source clock by a predetermined number of times, and a received number of packets transmitted in a fixed packet transmission cycle by a predetermined comparison packet number n ( n: an integer of 1 or more), a first counting means for generating a first count end pulse for each count, and a predetermined count number m corresponding to the packet transmission cycle using the extracted clock. (M; an integer of 1 or more), a second counting means for counting the number n of reception timing comparison pulses generated for each count, and generating a second count end pulse for each count. A speed code detection circuit that detects a speed difference between the first count end pulse and the second count end pulse and outputs a sign of the speed difference; A second frequency divider circuit for generating a clock by dividing the frequency, a first count end pulse and a second count end pulse using a clock generated by the second frequency divider circuit And a speed difference detection counter that counts the time difference between occurrences of the two and outputs the count value.Based on the count value input from the speed difference detection counter and the code input from the speed code detection circuit,
A clock adjustment timing circuit for controlling the first frequency divider circuit.
【請求項5】 クロックを生成するクロック生成過程
と、 一定のパケット送信周期で送信されるパケットの受信数
を計数し、該計数値が所定のカウント数に達するまで計
数する第1の計数過程と、 前記クロックを使用して前記パケット送信周期と等しい
周期で時間を計数し、該計数値が前記第1の計数過程と
等しいカウント数に達するまで計数する第2の計数過程
と、 前記第1の計数過程の計数速度と前記第2の計数過程の
計数速度とを比較する計数速度比較過程とを具備し、 前記クロック生成過程は、前記計数速度の比較結果によ
り制御されることを特徴とするクロック同期方法。
5. A clock generating step of generating a clock, a first counting step of counting the number of received packets transmitted in a fixed packet transmission cycle, and counting until the counted value reaches a predetermined count number. A second counting step of counting time in a cycle equal to the packet transmission cycle using the clock and counting until the counted value reaches a count equal to the first counting step; A clock comparing step of comparing the counting speed of the counting process with the counting speed of the second counting process, wherein the clock generation process is controlled by a comparison result of the counting speed. Synchronization method.
【請求項6】 前記クロック生成過程は、 前記第1の計数過程の計数速度の方が速い場合は、前記
クロックの位相を進ませ、 前記第1の計数過程の計数速度の方が遅い場合は、前記
クロックの位相を遅らせるように制御されることを特徴
とする請求項5に記載のクロック同期方法。
6. The clock generating step: if the counting speed of the first counting process is faster, advance the phase of the clock; if the counting speed of the first counting process is slower, The clock synchronization method according to claim 5, wherein the clock is controlled so as to delay the phase of the clock.
JP2000121536A 2000-04-21 2000-04-21 Circuit and method for clock synchronization Withdrawn JP2001308839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000121536A JP2001308839A (en) 2000-04-21 2000-04-21 Circuit and method for clock synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000121536A JP2001308839A (en) 2000-04-21 2000-04-21 Circuit and method for clock synchronization

Publications (1)

Publication Number Publication Date
JP2001308839A true JP2001308839A (en) 2001-11-02

Family

ID=18632168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000121536A Withdrawn JP2001308839A (en) 2000-04-21 2000-04-21 Circuit and method for clock synchronization

Country Status (1)

Country Link
JP (1) JP2001308839A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5936716B2 (en) * 2013-02-04 2016-06-22 三菱電機株式会社 Signal processing device
US9491332B2 (en) 2012-05-31 2016-11-08 Panasonic Intellectual Property Management Co., Ltd. Clock transfer circuit, video processing system, and semiconductor integrated circuit
JP2018067877A (en) * 2016-10-21 2018-04-26 シャープ株式会社 Data transceiver
CN112737571A (en) * 2020-12-30 2021-04-30 上海金卓科技有限公司 Clock circuit and clock circuit generating method, device, equipment and medium
CN115309032A (en) * 2022-08-08 2022-11-08 深圳市远东华强导航定位有限公司 Clock signal correction method, terminal device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9491332B2 (en) 2012-05-31 2016-11-08 Panasonic Intellectual Property Management Co., Ltd. Clock transfer circuit, video processing system, and semiconductor integrated circuit
JP5936716B2 (en) * 2013-02-04 2016-06-22 三菱電機株式会社 Signal processing device
JP2018067877A (en) * 2016-10-21 2018-04-26 シャープ株式会社 Data transceiver
CN112737571A (en) * 2020-12-30 2021-04-30 上海金卓科技有限公司 Clock circuit and clock circuit generating method, device, equipment and medium
CN115309032A (en) * 2022-08-08 2022-11-08 深圳市远东华强导航定位有限公司 Clock signal correction method, terminal device and storage medium

Similar Documents

Publication Publication Date Title
US20070260906A1 (en) Clock synchronization method and apparatus
US6351165B1 (en) Digital jitter attenuator using an accumulated count of phase differences
CN102301639B (en) Method and device for correcting clock jitter
US7664118B2 (en) System and method for high precision clock recovery over packet networks
KR101526025B1 (en) Frequency synchronization system and frequency synchronization method
JPH03220872A (en) Synchronous generation circuit
JPH07250053A (en) Apparatus and method for generating periodic synchronizing pulse
JP2597239B2 (en) Digital phase locked loop, receiver having the digital phase locked loop, and control method therefor
JP2001308839A (en) Circuit and method for clock synchronization
US6316973B1 (en) Transmission timing adjusting circuit and method
JP3909029B2 (en) Terminal synchronization method and terminal synchronization circuit
US20030118209A1 (en) Data and clock extractor with improved linearity
EP1514371B1 (en) Frame boundary discriminator
JP2840569B2 (en) Clock synchronization circuit between stations
JPS6320051B2 (en)
JP2748875B2 (en) Clock extraction circuit
JP2846337B2 (en) Clock recovery circuit
JP2613507B2 (en) Clock recovery circuit
JPH0983354A (en) Dpll circuit
KR100282554B1 (en) Controlled clock synchronous apparatus in cdma system
KR20010008836A (en) clock synchronization appratus using phase comparator in mobile communication system
JPH0661966A (en) Digital stuff control circuit
JPH0752839B2 (en) Convergence determiner for DPLL circuit
JPH04357730A (en) Synchronization device for serial transmission
JPH06104887A (en) Phase fluctuation suppression method when input clock is instantaneously cut in phase locked loop

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070703