JPH07336338A - Clock switching circuit - Google Patents

Clock switching circuit

Info

Publication number
JPH07336338A
JPH07336338A JP6122174A JP12217494A JPH07336338A JP H07336338 A JPH07336338 A JP H07336338A JP 6122174 A JP6122174 A JP 6122174A JP 12217494 A JP12217494 A JP 12217494A JP H07336338 A JPH07336338 A JP H07336338A
Authority
JP
Japan
Prior art keywords
clock
data
signal
output
latch means
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
JP6122174A
Other languages
Japanese (ja)
Inventor
Takeo Kubo
武雄 久保
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6122174A priority Critical patent/JPH07336338A/en
Publication of JPH07336338A publication Critical patent/JPH07336338A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To guarantee data continuity at the time of approaching transmission and reception clocks by generating first and second changeover control signals for a clock switching part based on the coincidence result of a phase comparator part and the monitored result of a phase fluctuation direction monitoring part. CONSTITUTION:The clock switching part 1 receives reception data by the reception clock and prepares three pieces of data with different phases from the received data by the transmission clock. Then, one of the three pieces of the data with different phases is selected by the first and second changeover control signals. In the phase comparator part 2, the phases of the reception and transmission clocks are compared and the coincidence of both is detected. The phase fluctuation direction monitoring part 3 monitors the phase fluctuation direction of the reception and transmission clocks and a control signal generation part 4 prepares the first and second changeover control signals for the clock switching part 1 by the coincidence result of the comparator part 2 and the monitored result of the monitoring part 3. The switching part 1 is controlled by the changeover control signals and coping is performed so as to guarantee final output data against the approach of the rising edges of both reception and transmission clocks.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、伝送装置にもちいるク
ロック乗せ換え回路に関するものである。伝送装置にお
いて、受信データを該受信データに同期した受信クロッ
クにより受入れ、該受信データを前記伝送装置内でつく
られた送信クロックに乗せ換え、送信データとして送出
するクロック乗せ換え回路をもちいる。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock transfer circuit used in a transmission device. The transmission apparatus has a clock transfer circuit that receives the received data by a reception clock synchronized with the received data, transfers the received data to a transmission clock created in the transmission apparatus, and sends the transmission data as transmission data.

【0002】このデータ処理に際し、データの欠落、デ
ータの2度読みなどを起こすことはデータの信頼性低下
につながるので、これらを回避するクロック乗せ換え回
路が必要になる。
In this data processing, loss of data, double reading of data, and the like lead to a decrease in reliability of data. Therefore, a clock transfer circuit for avoiding these is necessary.

【0003】[0003]

【従来の技術】以下、図8〜図10をもちいて従来例のク
ロック乗せ換え回路を説明する。図8は従来の一実施例
回路の構成を示す図である。図9は図8における一実施
例のタイミングを示す図(その1)であり、送信クロッ
ク(SCK)の位相変動が受信クロック(RCK)に対
して遅れる方向の場合に対応する。
2. Description of the Related Art A conventional clock changing circuit will be described below with reference to FIGS. FIG. 8 is a diagram showing the configuration of a conventional example circuit. FIG. 9 is a diagram (No. 1) showing the timing of the embodiment in FIG. 8, which corresponds to the case where the phase variation of the transmission clock (SCK) is delayed with respect to the reception clock (RCK).

【0004】また、図10は図8における一実施例のタイ
ミングを示す図(その2)であり、送信クロック(SC
K)の位相変動が受信クロック(RCK)に対して進む
方向の場合に対応する。
FIG. 10 is a diagram (part 2) showing the timing of one embodiment in FIG.
This corresponds to the case where the phase fluctuation of (K) advances in the direction of the reception clock (RCK).

【0005】さらに、図9と図10の両タイムチャートに
記載する信号名は、図8に記載する信号名に対応する。
まず、図8から説明する。図8において、6はクロック
乗せ換え部であり、4つの第1FF(フリップフロッ
プ)61, 第2FF62, 第3FF64, 第4FF66と、1つ
のINV(インバータ)63および、1つのセレクタ65よ
りなる。
Further, the signal names described in both the time charts of FIG. 9 and FIG. 10 correspond to the signal names described in FIG.
First, FIG. 8 will be described. In FIG. 8, 6 is a clock transfer unit, which is composed of four first FFs (flip-flops) 61, second FFs 62, third FFs 64, fourth FFs 66, one INV (inverter) 63, and one selector 65.

【0006】クロック乗せ換え部6では、RCKに同期
した受信データ(SDTi)をRCKに対し非同期のS
CKに乗せ換え、送信データ(SDTo)として送出す
る。7は位相比較部であり、立上がり検出部71と立上が
り立下がり検出部72よりなる。
In the clock transfer section 6, the received data (SDTi) synchronized with RCK is S-synchronized with RCK.
It is transferred to CK and transmitted as transmission data (SDTo). Reference numeral 7 denotes a phase comparison unit, which includes a rising edge detection section 71 and a rising edge falling edge detection section 72.

【0007】立上がり検出部71では、RCKのマスタク
ロック(RCM)からRCKの立上がりエッジを検出し
た信号aをつくる。立上がり立下がり検出部72では、S
CKのマスタクロック(SCM)からSCKの立上がり
エッジを検出した信号bおよび、該SCKからSCKの
立下がりエッジを検出した第1の切り換え制御信号対応
の信号c(以下、信号cと称す)をつくる。
The rising edge detecting section 71 produces a signal a which detects the rising edge of RCK from the master clock (RCM) of RCK. In the rise / fall detection unit 72, S
A signal b that detects the rising edge of SCK from the master clock (SCM) of CK and a signal c corresponding to the first switching control signal that detects the falling edge of SCK from SCK (hereinafter referred to as signal c) are generated. .

【0008】さらに、RCKはRCM(凡そRCKの8
倍乃至16倍の速度をもつ)から、SCKはSCM(凡そ
SCKの8倍乃至16倍の速度をもつ)から、それぞれ分
周してつくられるクロックである。
Further, RCK is RCM (approximately 8 of RCK).
SCK is a clock that is divided from SCM (having a speed that is approximately 8 to 16 times that of SCK).

【0009】8は制御信号生成部であり、2つのNAN
D81,82 と1つのFF83よりなる。NAND81では、信
号aと信号bのNAND積を求め、RCKの立上がりエ
ッジとSCKの立上がりエッジ間の接近を検出した第2
の切り換え制御信号である信号d(以下、信号dと称
す)をつくる。
Reference numeral 8 is a control signal generator, which is a two NAN.
It consists of D81,82 and one FF83. The NAND 81 obtains the NAND product of the signal a and the signal b, and detects the approach between the rising edge of RCK and the rising edge of SCK.
Signal d (hereinafter, referred to as signal d) which is a switching control signal of the above.

【0010】NAND82では、信号aと信号cのNAN
D積を求め、RCKの立上がりエッジとSCKの立下が
りエッジ間の接近を検出した信号eをつくる。FF83で
は、信号dをセット(S)信号、信号eをリセット
(R)信号としてもちいて、セレクタ65を切り換える信
号fをつくる。
In the NAND 82, the NAN of the signal a and the signal c
The D product is obtained, and a signal e which detects the approach between the rising edge of RCK and the falling edge of SCK is created. The FF 83 uses the signal d as a set (S) signal and the signal e as a reset (R) signal to generate a signal f for switching the selector 65.

【0011】以下において、図8に示すクロック乗せ換
え部6の動きを、SCKの位相変動が遅れる方向の場合
とSCKの位相変動が進む方向の場合を説明する。この
際、SDTiは、‘H’のデータ1、‘L’のデータ
2、‘H’のデータ3・・・の順に並ぶ正負の交互信号
とする。 1-1 SCKの位相変動が遅れる方向の場合(図9) (a) RCKの立上がりエッジがSCKの立上がりエッジ
に接近する状態の時 信号aはRCKの立上がりエッジ間が‘H’のパルス信
号であり、信号bはSCKの立上がりエッジ間が‘H’
のパルス信号であり、信号cはSCKの立下がりエッジ
間が‘H’のパルス信号である。
In the following, the operation of the clock transfer unit 6 shown in FIG. 8 will be described in the case where the SCK phase fluctuation is delayed and in the case where the SCK phase fluctuation is advanced. At this time, SDTi is a positive / negative alternating signal arranged in the order of “H” data 1, “L” data 2, “H” data 3, ... 1-1 When the phase fluctuation of SCK is delayed (Fig. 9) (a) When the rising edge of RCK approaches the rising edge of SCK Signal a is a pulse signal of "H" between the rising edges of RCK. Yes, signal b is'H 'between rising edges of SCK
Signal c is a pulse signal of'H 'between the falling edges of SCK.

【0012】信号aと信号cが一致する点(記載を略
す)から信号aと信号bが一致するX点迄の間では、信
号dと信号eは常に‘H’になり、信号fは‘L’にな
る。第1FF61では、記載していないSDTiをRCK
の立上がりエッジでラッチし、データ1、データ2、デ
ータ3の順に読み出す。
Between the point where signal a and signal c match (not shown) to point X where signal a and signal b match, signal d and signal e are always "H", and signal f is ". It becomes L '. In the 1st FF61, SDTi not described is RCK
Latch at the rising edge of and read out data 1, data 2, and data 3 in this order.

【0013】第2FF62では、第1FF出力をSCKの
立上がりエッジでラッチし、データ1、データ2の順に
読み出す。第3FF64では、SCKをINV63で反転し
たクロック(反転SCK)の立上がりエッジで第1FF
出力をラッチし、データ1、データ2、データ3の順に
読み出す。
The second FF 62 latches the first FF output at the rising edge of SCK and reads out data 1 and data 2 in this order. In the third FF64, the first FF is generated at the rising edge of the clock (inversion SCK) obtained by inverting SCK with INV63.
The output is latched, and data 1, data 2, and data 3 are read in this order.

【0014】このように読み出すと、第2FF62と第3
FF64の出力の順序は第3FF64、第2FF62の順にな
る。さらに、信号fは‘L’なので、セレクタ65は0側
の第2FF出力を選択してデータ1、データ2の順に送
出する。
When read in this way, the second FF 62 and the third FF 62
The output order of the FF64 is the third FF64 and the second FF62. Further, since the signal f is'L ', the selector 65 selects the second FF output on the 0 side and sends out the data 1 and the data 2 in this order.

【0015】従って、第4FF66では、第2FF出力を
SCKの立上がりエッジにしラッチし、第2FF出力よ
り半SCK周期遅れのデータ1を最終出力のSDToと
して送出する。 (b) RCKの立上がりエッジがSCKの立上がりエッジ
より離れる状態の時 以下、前記1-1 と異なる点を中心に説明する。
Therefore, in the fourth FF 66, the second FF output is latched at the rising edge of SCK and the data 1 delayed by a half SCK cycle from the second FF output is sent as SDTo of the final output. (b) When the rising edge of RCK is separated from the rising edge of SCK The following description will focus on the points different from 1-1.

【0016】X点に至ると、信号aと信号bとのタイミ
ングは一致する。この際、信号dは‘L’に切り換わ
り、信号eは‘H’を維持し、信号fはX点における信
号dの‘H’を検出して‘H’に切り換わる。
When reaching the point X, the timings of the signal a and the signal b coincide with each other. At this time, the signal d switches to'L ', the signal e maintains'H', and the signal f detects'H 'of the signal d at the point X and switches to'H'.

【0017】X点から離れると、信号dは‘H’を維持
し、信号eと信号fも‘H’を維持する。第1FF61で
は、データ3の次のデータ4、データ5、データ6・・
・の順に読み出す。
When separated from the point X, the signal d maintains "H", and the signals e and f also maintain "H". In the first FF 61, data 4 next to data 3, data 5, data 6, ...
・ Read in order.

【0018】第2FF62では、X点の次に来るRCKの
立上がりエッジの位相がSCKの立上がりエッジの位相
より進むようになるので、まずX点でデータ3を読み出
し、次はデータ4を飛ばしてデータ5、データ6・・・
の順に読み出す。
In the second FF 62, the phase of the rising edge of RCK, which comes after the X point, becomes more advanced than the phase of the rising edge of SCK, so the data 3 is read at the X point, and the data 4 is skipped next. 5, data 6 ...
Read in order.

【0019】第3FF64では、データ3、データ4、デ
ータ5・・・の順に読み出す。さらに、セレクタ65で
は、信号fは‘H’なので1側を選択し、まずはデータ
幅の短いデータ3、次に通常幅のデータ4・・・の順に
送出する。
The third FF 64 reads data 3, data 4, data 5, ... In this order. Further, in the selector 65, since the signal f is'H ', the 1 side is selected, and the data 3 having the shorter data width, the data 4 having the normal width 4 ...

【0020】従って、第4FF66では、データ3はデー
タ幅が短いので読み出されず、データ2の次にデータ
4、以後はデータ5、データ6・・・の順に読み出して
最終出力のSDToとする。
Therefore, in the fourth FF 66, the data 3 is not read because the data width is short, and the data 4 is read next to the data 2, then the data 5, the data 6 ...

【0021】以上をまとめて、第4FF66では、セレク
タ65から出力されるデータ3のデータ幅が短くなるた
め、SCKの立上がりエッジで該データ3をラッチでき
ないようになり、SDToの中からデータ3は欠落する
ようになる。 1-2 SCKの位相変動が進む方向の場合(図10) 以下、前記1-1(a),(b)と異なる点を中心に説明する。 2-1 SCKの立上がりエッジがRCKの立上がりエッジ
に接近する状態の時 X点迄は、信号aと信号bおよび信号cのタイミングは
不一致であり、信号dと信号eは‘H’であり、信号f
は‘L’である。
In summary, in the fourth FF 66, the data width of the data 3 output from the selector 65 becomes short, so that the data 3 cannot be latched at the rising edge of SCK, and the data 3 from SDTo is Will be missing. 1-2 In the case where the phase variation of SCK advances (FIG. 10) Hereinafter, the points different from the above 1-1 (a) and (b) will be mainly described. 2-1 When the rising edge of SCK approaches the rising edge of RCK Up to point X, the timings of signal a, signal b and signal c do not match, and signal d and signal e are'H ', Signal f
Is'L '.

【0022】第1FF61では、SDTiをデータ1、デ
ータ2、データ3の順に読み出す。第2FF62では、デ
ータ1、データ2、データ3の順に読み出す。また、第
3FF64では、データ1、データ2、データ3の順に読
み出す。
The first FF 61 reads out SDTi in the order of data 1, data 2, and data 3. The second FF 62 reads data 1, data 2, and data 3 in this order. The third FF 64 reads out data 1, data 2, and data 3 in this order.

【0023】このように読み出すと、2つの読み出し順
序は第2FF出力、第3FF出力になる。さらに、信号
fは‘L’なので、セレクタ65は0側、即ち第2FF出
力を選択し、セレクタ65はデータ1、データ2、データ
3の順に出力する。
When read in this way, the two reading orders are the second FF output and the third FF output. Further, since the signal f is'L ', the selector 65 selects the 0 side, that is, the second FF output, and the selector 65 outputs data 1, data 2, and data 3 in this order.

【0024】従って、第4FF66では、該第2FF出力
より半SCK周期遅れのデータ1、データ2・・・を読
み出して最終出力のSDToとする。 2-2 SCKの立上がりエッジがRCKの立上がりエッジ
より離れる状態の時 X点に至ると、信号aと信号bとのタイミングは一致す
る。この際、信号dは‘L’に切り換わり、信号eは
‘H’を維持し、信号fはX点における信号dの‘H’
を検出して‘H’に切り換わる。
Therefore, the fourth FF 66 reads the data 1, data 2 ... Which are delayed by a half SCK cycle from the output of the second FF and sets it as the final output SDTo. 2-2 When the rising edge of SCK is far from the rising edge of RCK When the point X is reached, the timings of the signal a and the signal b match. At this time, the signal d switches to'L ', the signal e maintains'H', and the signal f becomes'H 'of the signal d at the X point.
Is detected and switched to'H '.

【0025】X点から離れると、信号dは‘H’を維持
し、信号eと信号fも‘H’を維持する。第1FF61で
は、データ3の次にデータ4、データ5・・・の順に読
み出す。
When the distance from the point X is increased, the signal d maintains "H", and the signals e and f also maintain "H". The first FF 61 reads data 3, data 4, data 5, ... In this order.

【0026】第2FF62では、X点においてSCKの立
上がりエッジでデータ3は2度読みし、データ3、デー
タ4、データ5・・・の順に読み出す。第3FF64で
は、データ3の次にデータ4、データ5・・の順に読み
出す。
In the second FF 62, the data 3 is read twice at the rising edge of SCK at the point X, and the data 3, the data 4, the data 5, ... Are read in this order. In the third FF 64, data 3, data 4, data 5, ... Are read in this order.

【0027】さらに、セレクタ65では、信号fは‘H’
なので1側、即ち第3FF出力を選択し、まずデータ
3、次にデータ幅の短いデータ3、以後は通常のデータ
幅のデータ4、データ5・・・の順に出力する。
Further, in the selector 65, the signal f is'H '.
Therefore, the 1st side, that is, the 3rd FF output is selected, and the data 3 is first output, the data 3 having the next shortest data width, and then the data 4 having the normal data width, the data 5 ...

【0028】従って、第4FF66では、第2FF出力よ
り半SCK周期遅れのデータ3、データ4・・・の順に
読み出して最終出力のSDToとする。以上をまとめ
て、第4FF66では、セレクタ65の出力のデータ幅はS
CKの立上がりエッジでラッチできる長さなので、最終
出力であるSDToの継続性は保障できる。
Therefore, the fourth FF 66 reads the data 3, data 4, ... In summary, in the fourth FF66, the data width of the output of the selector 65 is S
Since the length can be latched at the rising edge of CK, the continuity of SDTo which is the final output can be guaranteed.

【0029】[0029]

【発明が解決しようとする課題】従って、従来例の技術
においては、SCKの位相変動がRCKに対して遅れる
方向の場合は、1回目のRCKの立上がりエッジとSC
Kの立下がりエッジの接近時において、データの欠落が
起こるという課題がある。
Therefore, in the conventional technique, when the phase fluctuation of SCK is delayed relative to RCK, the first rising edge of RCK and SC
There is a problem that data loss occurs when the falling edge of K approaches.

【0030】本発明は、SCKの位相変動がRCKに対
して遅れる方向の場合、進む方向の場合にかかわらず、
1回目のRCKの立上がりエッジとSCKの立下がりエ
ッジの接近に対してデータの継続性が保障されるクロッ
ク乗せ換え回路を提供することを目的とする。
According to the present invention, regardless of whether the phase fluctuation of SCK is delayed or advanced with respect to RCK,
It is an object of the present invention to provide a clock hand-over circuit in which the continuity of data is guaranteed even when the rising edge of RCK and the falling edge of SCK are approached for the first time.

【0031】[0031]

【課題を解決するための手段】上記の目的を達成するた
め、第1発明では図1に示すごとく、受信データを受信
クロックにより受け取り、送信クロックにより該受け取
りデータから位相を異にする少なくとも3つのデータを
つくり、第1、第2の切り換え制御信号にて前記位相を
異にする少なくとも3つのデータから一つを選ぶクロッ
ク乗せ換え部1と、前記の受信クロックと送信クロック
との位相を比較し、該2つの位相の一致を検出する位相
比較部2と、前記受信クロックと送信クロックとの位相
変動方向を監視する位相変動方向監視部3と、前記の位
相比較部2の一致結果と位相変動方向監視部3の監視結
果をもとに、前記クロック乗せ換え部1に対する前記第
1、第2の切り換え制御信号をつくる制御信号生成部4
を設け、送信データにおけるデータの欠落、2度読みを
回避するように構成する。
In order to achieve the above-mentioned object, in the first invention, as shown in FIG. 1, at least three receiving data are received by a receiving clock, and the receiving data are out of phase with each other by the transmitting clock. Comparing the phases of the reception clock and the transmission clock with the clock transfer unit 1 that creates data and selects one from at least three data having different phases by the first and second switching control signals. , A phase comparison unit 2 that detects the coincidence of the two phases, a phase fluctuation direction monitoring unit 3 that monitors the phase fluctuation direction of the reception clock and the transmission clock, and a matching result and phase fluctuation of the phase comparison unit 2. A control signal generation unit 4 for generating the first and second switching control signals for the clock transfer unit 1 based on the monitoring result of the direction monitoring unit 3.
Is provided to avoid missing of data in the transmission data and double reading.

【0032】また、第2発明では図2に示すごとく、上
記位相比較部2を、受信クロックの立上がりエッジを検
出する立上がり検出部21と、送信クロックの立上がりエ
ッジまたは立下がりエッジを検出する立上がり立下がり
検出部22とから構成するようにする。
In the second aspect of the invention, as shown in FIG. 2, the phase comparator 2 includes a rising edge detector 21 for detecting a rising edge of the receive clock and a rising edge for detecting a rising edge or a falling edge of the transmit clock. It is configured to include the falling detection unit 22.

【0033】さらに、第3発明では図2に示すごとく、
前記クロック乗換え部1は、受信データを受信クロック
で取り込む第1ラッチ手段と、該第1ラッチ手段の出力
を送信クロックで取り込む第2ラッチ手段と、前記第1
ラッチ手段の出力を反転送信クロックで取り込む第3ラ
ッチ手段と、該第3ラッチ手段の出力を送信クロックで
取り込む第4ラッチ手段と、前記第3ラッチ手段の出力
と前記第4ラッチ手段の出力の何れか一方を前記第2の
切り換え制御信号に基づき選択出力する第1選択手段
と、前記第2ラッチ手段の出力と前記第1選択手段の出
力の何れか一方を前記第1の切り換え制御信号に基づき
選択出力する第2選択手段と、前記第1選択手段の出力
を送信クロックで取込み、送信データとする第5ラッチ
手段とを有し、前記制御信号生成部4において、受信ク
ロックに対する送信クロックの位相進み/遅れに対応し
て、前記第3ラッチ手段の出力/第4ラッチ手段の出力
が前記第1選択手段により選択されるように前記第2の
切り換え信号を生成するよう構成する。
Further, in the third invention, as shown in FIG.
The clock transfer unit 1 includes a first latch unit that captures received data with a receive clock, a second latch unit that captures an output of the first latch unit with a transmit clock, and the first latch unit.
Third latch means for fetching the output of the latch means with the inverted transmission clock, fourth latch means for fetching the output of the third latch means with the transmission clock, and output of the third latch means and output of the fourth latch means. First selecting means for selectively outputting one of the outputs based on the second switching control signal, and one of the output of the second latching means and the output of the first selecting means for the first switching control signal. The control signal generation unit 4 has a second selection means for selectively outputting based on the transmission clock, and a fifth latch means for taking the output of the first selection means with the transmission clock to obtain transmission data. The second switching signal is generated so that the output of the third latch means / the output of the fourth latch means is selected by the first selecting means in accordance with the phase lead / lag. To so that configuration.

【0034】[0034]

【作用】第1発明は図1に示すように、クロック乗せ換
え部1では、受信データを受信クロックにより受け取
り、送信クロックにより該受け取りデータから位相を異
にする少なくとも3つのデータをつくり、第1、第2の
切り換え制御信号にて前記位相を異にする少なくとも3
つのデータから一つを選ぶようにし、位相比較部2で
は、前記の受信クロックと送信クロックとの位相を比較
し、該2つの位相の一致を検出するようにする。
As shown in FIG. 1, in the first invention, the clock transfer section 1 receives the received data by the received clock and produces at least three data having different phases from the received data by the transmitted clock. , A second switching control signal that causes the phase to differ by at least 3
One is selected from the two data, and the phase comparison unit 2 compares the phases of the reception clock and the transmission clock to detect the coincidence of the two phases.

【0035】また、位相変動方向監視部3では、前記受
信クロックと送信クロックとの位相変動方向を監視する
ようにし、制御信号生成部4では、前記の位相比較部2
の一致結果と位相変動方向監視部3の監視結果をもと
に、前記クロック乗せ換え部1に対する前記第1、第2
の切り換え制御信号をつくるようにする。
The phase fluctuation direction monitoring unit 3 monitors the phase fluctuation directions of the reception clock and the transmission clock, and the control signal generation unit 4 monitors the phase fluctuation unit 2.
On the basis of the result of coincidence with the phase change direction monitoring unit 3 and the first and second clock changing units 1
The switching control signal of is generated.

【0036】従って、前記クロック乗せ換え部1を前記
第1、第2の切り換え制御信号により制御を行うことに
より、送信クロックの位相変動が遅れる方向の場合およ
び進む方向の場合にも、1回目の受信クロックの立上が
りエッジと送信クロックの立上がりエッジの接近に対し
て最終出力データが保障できるように対応することが可
能である。
Therefore, by controlling the clock hand-over section 1 by the first and second switching control signals, the first time can be obtained in the case where the phase fluctuation of the transmission clock is delayed and the phase fluctuation thereof is advanced. It is possible to cope with the approach of the rising edge of the reception clock and the rising edge of the transmission clock so that the final output data can be guaranteed.

【0037】更に、第3発明は図2に示すように、前記
クロック乗換え部1の中に備えた、第1ラッチ手段では
受信データを受信クロックで取り込み、第2ラッチ手段
では該第1ラッチ手段の出力を送信クロックで取り込
み、第3ラッチ手段では前記第1ラッチ手段の出力を反
転送信クロックで取り込み、第4ラッチ手段では該第3
ラッチ手段の出力を送信クロックで取り込むようにす
る。
Furthermore, in the third invention, as shown in FIG. 2, the first latch means provided in the clock transfer section 1 fetches the received data by the received clock, and the second latch means uses the first latch means. Output by the transmission clock, the third latch means captures the output of the first latch means by the inverted transmission clock, and the fourth latch means acquires the third output by the third latch means.
The output of the latch means is taken in by the transmission clock.

【0038】また、第1選択手段では前記第3ラッチ手
段の出力と前記第4ラッチ手段の出力の何れか一方を前
記第2の切り換え制御信号に基づき選択出力し、第2選
択手段では前記第2ラッチ手段の出力と前記第1選択手
段の出力の何れか一方を前記第1の切り換え制御信号に
基づき選択出力し、そして、第5ラッチ手段では前記第
2選択手段の出力を送信クロックで取込んで送信データ
として送出するようにする。
Further, the first selecting means selectively outputs either one of the output of the third latch means and the output of the fourth latch means based on the second switching control signal, and the second selecting means performs the output. One of the output of the second latch means and the output of the first selecting means is selectively output based on the first switching control signal, and the fifth latch means obtains the output of the second selecting means by the transmission clock. And send it as transmission data.

【0039】従って、受信クロックに対する送信クロッ
クの位相遅れに対しては第4ラッチ手段の出力を有効と
し、また送信クロックの位相進みに対しては第3ラッチ
手段の出力を有効とするように、前記第2の切り換え信
号にて前記第1選択手段を制御することにより、受信ク
ロックに対する送信クロックの位相進み/遅れ時に生じ
るデータの欠落を防止することが可能になる。
Therefore, the output of the fourth latch means is made effective for the phase delay of the transmission clock with respect to the reception clock, and the output of the third latch means is made effective for the phase advance of the transmission clock. By controlling the first selecting unit with the second switching signal, it becomes possible to prevent the loss of data that occurs when the phase of the transmission clock advances / lags with respect to the reception clock.

【0040】[0040]

【実施例】以下において、図2〜図4と図5〜図7にわ
けて本発明を説明する。なお、従来例の図8〜図10と同
一の構成または作用をもつものについては、その説明を
簡単にする。 1.第1実施例の説明:図2〜図4参照 図2は本発明の一実施例回路の構成を示す図であり、図
3は図2における一実施例のタイミングを示す図(その
1)であり、図4は図2における一実施例のタイミング
を示す図(その2)である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT The present invention will be described below with reference to FIGS. It should be noted that, for those having the same configuration or operation as those of the conventional example shown in FIGS. 1. Description of the First Embodiment: See FIGS. 2 to 4. FIG. 2 is a diagram showing the configuration of an embodiment circuit of the present invention, and FIG. 3 is a diagram (No. 1) showing the timing of the embodiment in FIG. FIG. 4 is a diagram (No. 2) showing the timing of the embodiment in FIG.

【0041】また、図3は送信クロック(SCK)の位
相変動が受信クロック(RCK)に対して進む方向の場
合に対応し、図4は送信クロック(SCK)の位相変動
が受信クロック(RCK)に対して進む方向の場合に対
応している。
Further, FIG. 3 corresponds to the case where the phase fluctuation of the transmission clock (SCK) advances with respect to the reception clock (RCK), and FIG. 4 shows the phase fluctuation of the transmission clock (SCK) to the reception clock (RCK). It corresponds to the case of moving in the direction of.

【0042】さらに、図3と図4の両タイムチャートに
記載する信号名は、図2に記載する信号名に対応する。
以下、図2、図3、図4の順に説明を展開する。図2に
おいて、1はクロック乗せ換え部であり、5つの第1F
F11, 第2FF12, 第3FF14, 第4FF15, 第5FF
18と、1つのINV13および、2つの第1セレクタ16,
第2セレクタ17よりなる。
Further, the signal names described in both the time charts of FIGS. 3 and 4 correspond to the signal names described in FIG.
Hereinafter, the description will be developed in the order of FIGS. 2, 3, and 4. In FIG. 2, reference numeral 1 denotes a clock transfer unit, which includes five first Fs.
F11, 2nd FF12, 3rd FF14, 4th FF15, 5th FF
18, one INV 13, and two first selectors 16,
It comprises a second selector 17.

【0043】詳細は後記するが、クロック乗せ換え部1
では、第1FF出力をもとに位相が異なる第2FF出
力、第3FF出力、第4FF出力の3つの信号をつく
り、該3信号を切り換えてRCKに対し非同期のSCK
に乗せ換え、正常なSDToとして送出するようにして
いる。
The clock transfer unit 1 will be described in detail later.
Then, based on the first FF output, three signals of a second FF output, a third FF output and a fourth FF output having different phases are created, and the three signals are switched to make an SCK asynchronous with RCK.
And is sent as normal SDTo.

【0044】21と22の各回路は、RCKの立上がりエッ
ジとSCKの立上がりエッジ或いは立下がりエッジとの
一致を検出する位相比較部2に対応し、21は立上がり検
出部であり、22は立上がり立下がり検出部である。
Each of the circuits 21 and 22 corresponds to the phase comparison unit 2 which detects the coincidence of the rising edge of RCK and the rising edge or falling edge of SCK, 21 is a rising detection unit, and 22 is a rising rising edge. It is a fall detector.

【0045】立上がり検出部21では、RCMからRCK
の立上がりエッジを検出した出力Aをつくる。立上がり
立下がり検出部22では、SCMからSCKの立上がりエ
ッジを検出した出力Bをつくり、また、SCMからSC
Kの立下がりエッジを検出した出力Cをつくる。
In the rising detection section 21, the RCM to RCK
The output A is generated by detecting the rising edge of. The rising / falling detection unit 22 produces an output B in which the rising edge of SCK is detected from the SCM, and from the SCM to the SC.
The output C is generated by detecting the falling edge of K.

【0046】さらに、RCKとRCM、SCKとSCM
の速度比は凡そ8倍乃至16倍であることは従来例と同様
である。31と32の各回路は、RCKに対しSCKの位相
変動の方向を監視するための位相変動方向監視部3に対
応し、31は位相識別パルス生成部であり、32は位相変動
方向判断部である。
Furthermore, RCK and RCM, SCK and SCM
The speed ratio is about 8 to 16 times, which is the same as the conventional example. Each of the circuits 31 and 32 corresponds to the phase fluctuation direction monitoring unit 3 for monitoring the direction of the phase fluctuation of SCK with respect to RCK, 31 is a phase identification pulse generation unit, and 32 is a phase fluctuation direction determination unit. is there.

【0047】位相識別パルス生成部31では、SCMとS
CKから、SCKと同期しかつ位相が異なるパルス信号
の2つのラッチ信号(LAT1、LAT2)をつくる。
位相変動方向判断部32では、前記のLAT1およびLA
T2とRCKからつくられた出力Aとの位相差を判断
し、判断結果の信号Dと信号Eをつくる。
In the phase identification pulse generator 31, the SCM and S
Two latch signals (LAT1 and LAT2) which are pulse signals which are synchronized with SCK and have different phases are generated from CK.
In the phase fluctuation direction determination unit 32, the LAT 1 and LA
The phase difference between the output A generated from T2 and RCK is judged and the judgment result signal D and signal E are generated.

【0048】信号D=‘H’は、LAT1とLAT2の
各レベルをRCKの立上がりエッジで検出し、LAT1
=‘H’、LAT2=‘L’からLAT1=‘H’、L
AT2=‘H’へ転ずる場合に得られる。
The signal D = 'H' detects each level of LAT1 and LAT2 at the rising edge of RCK, and LAT1
= 'H', LAT2 = 'L' to LAT1 = 'H', L
Obtained when AT2 = 'H'.

【0049】信号E=‘H’は、LAT1とLAT2の
各レベルをRCKの立上がりエッジで検出し、LAT1
=‘H’、LAT2=‘H’からLAT1=‘L’、L
AT2=‘H’転ずる場合に得られる。
The signal E = 'H' detects each level of LAT1 and LAT2 at the rising edge of RCK, and LAT1
= 'H', LAT2 = 'H' to LAT1 = 'L', L
AT2 = 'H' Obtained when rolling.

【0050】この際、信号Dの‘H’はSCKの位相変
動がRCKより遅れる方向の場合を示し、信号Eの
‘H’はSCKの位相変動がRCKより進む方向の場合
を示す。4は制御信号生成部であり、2つのNAND4
1、42と2つの第6FF43、第7FF44よりなる。
At this time, "H" of the signal D indicates the case where the phase fluctuation of the SCK lags behind RCK, and "H" of the signal E indicates the case where the phase fluctuation of the SCK leads the RCK. Reference numeral 4 is a control signal generation unit, which includes two NAND4s.
It consists of 1, 42, two 6th FF43 and 7th FF44.

【0051】NAND41では、前記の出力Aと出力Bと
のNAND積をとり、RCKの立上がりエッジとSCK
の立上がりエッジの接近を検出した信号A(負極性)と
をつくる。
In the NAND 41, the NAND product of the output A and the output B is taken, and the rising edge of RCK and SCK
Signal A (negative polarity) that detects the approach of the rising edge of

【0052】NAND42では、前記の出力Aと出力Cと
のNAND積をとり、RCKの立上がりエッジとSCK
の立下がりエッジの接近を検出した信号B(負極性)と
をつくる。
In the NAND 42, the NAND product of the output A and the output C is taken, and the rising edge of RCK and SCK
Signal B (negative polarity) that detects the approach of the falling edge of

【0053】第6FF43では、信号Aが‘H’から
‘L’に転ずると、信号Cは‘L’から‘H’に転じ
る。また、信号Bが‘H’から‘L’に転ずると、信号
Cは‘H’から‘L’に転ずる。該信号Cは第2セレク
タ17の第1の切り換え制御信号として働く。
In the sixth FF 43, when the signal A changes from'H 'to'L', the signal C changes from'L 'to'H'. Also, when the signal B changes from'H 'to'L', the signal C changes from'H 'to'L'. The signal C serves as a first switching control signal for the second selector 17.

【0054】第7FF44では、信号Dが‘H’から
‘L’に転ずると、信号Fは‘L’から‘H’に転ず
る。また、信号Eが‘H’から‘L’に転ずると、信号
Fは‘H’から‘L’に転ずる。該信号Fは第1セレク
タ16の第2の切り換え制御信号として働く。
In the seventh FF 44, when the signal D changes from'H 'to'L', the signal F changes from'L 'to'H'. Further, when the signal E changes from'H 'to'L', the signal F changes from'H 'to'L'. The signal F serves as a second switching control signal for the first selector 16.

【0055】以下、図3をもちいてSCKの位相変動が
遅れる方向の場合を説明し、図4をもちいてSCKの位
相変動が進む方向の場合を説明する。この際、SDTi
は、‘H’のデータ1、‘L’のデータ2、‘H’のデ
ータ3・・・の順に続く正負の交互信号であることは、
従来例の通りである。 1-1 SCKの位相変動が遅れる方向の場合(図3) 第6FF43が初期リセットされているので、信号Fは常
に‘L’であり、第1セレクタ16は0側の第4FF15の
出力を選択している。 (a) RCKの立上がりエッジがSCKの立上がりエッジ
に接近する状態の時 RCKの立上がりエッジとSCKの立下がりエッジとが
一致する点(記載を略す)からRCKの立上がりエッジ
とSCKの立上がりエッジが一致するX点迄の間では、
信号A、Bは共に‘H’だから信号Cは‘L’であり、
第2セレクタ17は0側が有効になり、1側は無効にな
り、第1セレクタ16の出力は第2セレクタ17を通らな
い。
Hereinafter, a case where the phase fluctuation of the SCK is delayed will be described with reference to FIG. 3, and a case where the phase fluctuation of the SCK is advanced will be described with reference to FIG. At this time, SDTi
Is a positive / negative alternating signal that follows in order of'H 'data 1,' L 'data 2,' H 'data 3, ...
This is as in the conventional example. 1-1 In the case where the phase fluctuation of SCK is delayed (FIG. 3) Since the sixth FF43 is initially reset, the signal F is always'L ', and the first selector 16 selects the output of the fourth FF15 on the 0 side. is doing. (a) When the rising edge of RCK approaches the rising edge of SCK The rising edge of RCK and the rising edge of SCK match from the point where the rising edge of RCK and the falling edge of SCK match (not shown). Up to point X
Since the signals A and B are both “H”, the signal C is “L”,
The second selector 17 is valid on the 0 side and invalid on the 1 side, and the output of the first selector 16 does not pass through the second selector 17.

【0056】この際、第5FF18では、第2セレクタ17
の出力(第2FF12の出力)をSCKでラッチし、該第
2FF出力より1SCK周期遅れのデータ1を最終出力
のSDToとする。 (b) RCKの立上がりエッジがSCKの立上がりエッジ
より離れる状態の時 RCKの立上がりエッジとSCKの立上がりエッジが一
致するX点では、信号Cは‘L’から‘H’に切り換わ
り、第2セレクタ17は第1セレクタ16からの出力(第4
FF15の出力)を選択する。
At this time, in the fifth FF 18, the second selector 17
Output (output of the second FF12) is latched by SCK, and data 1 delayed by one SCK cycle from the second FF output is used as the final output SDTo. (b) When the rising edge of RCK is more distant from the rising edge of SCK At the point X where the rising edge of RCK and the rising edge of SCK match, the signal C switches from'L 'to'H', and the second selector 17 is the output from the first selector 16 (fourth
Output of FF15) is selected.

【0057】また、Y点では、位相変動方向判断部32は
SCKの位相変動がRCKに対して遅れる方向であると
判断し、信号Eは1RCK周期幅だけ‘L’になるか、
または信号Fは‘L’のままなので、第1セレクタ16は
0側の第4FF15の出力を選択している。
At the point Y, the phase fluctuation direction judging unit 32 judges that the phase fluctuation of the SCK is in the direction behind the RCK, and the signal E becomes'L 'by 1 RCK cycle width.
Alternatively, since the signal F remains'L ', the first selector 16 selects the output of the 0th fourth FF 15.

【0058】この際、第2セレクタ17からの出力のデー
タ幅は、第5FF18においてSCKの立上がりエッジで
ラッチできるデータ長である。X点以後において、第5
FF18では、第1セレクタ16の出力(第4FF出力)を
SCKでラッチし、該第4FF出力より半SCK周期遅
れのデータ2、データ3・・・を最終出力のSDToと
する。
At this time, the data width of the output from the second selector 17 is the data length that can be latched at the rising edge of SCK in the fifth FF 18. 5th after point X
In the FF 18, the output of the first selector 16 (the fourth FF output) is latched by SCK, and the data 2, data 3, ... Delayed by a half SCK cycle from the fourth FF output are used as the final output SDTo.

【0059】さらに、位相変動方向判断部32がSCKの
位相変動が遅れる方向であると判断したY点において、
信号Eは1RCKの間だけ‘L’になるが、該‘L’は
第7FF44に無効であり、その説明を省略する。
Further, at the point Y which the phase fluctuation direction judging unit 32 judges that the phase fluctuation of the SCK is delayed,
The signal E becomes “L” only for 1 RCK, but the “L” is invalid for the seventh FF 44, and the description thereof will be omitted.

【0060】以上をまとめて、SDToは、データ1、
データ2・・・と続く正常なデータになる。 1-2 SCKの位相変動が進む方向の場合(図4) SCK位相変動方向判断部32がSCKの位相変動が進む
方向であると判断したZ点において、信号Dの立下がり
エッジの‘L’を検出して信号Fは‘L’から‘H’に
切り換わり、第1セレクタ16は1側の第3FF14の出力
を選択するようになる。 (a) SCKの立上がりエッジがRCKの立上がりエッジ
に接近する状態の時 Z点迄の間は、信号Cは‘L’であり、信号Fも‘L’
である。この際、第2セレクタ17は0側、即ち第2FF
12の出力を選択し、第5FF18では、第2FF出力より
半SCK周期遅れのデータ1を送出する。 (b) SCKの立上がりエッジがRCKの立上がりエッジ
より離れる状態の時 Z点で信号Fは‘L’から‘H’に転じるが、信号Fの
‘L’から‘H’への変化は第2セレクタ17には無効で
ある。
Summarizing the above, SDTo is data 1,
It becomes normal data that continues with data 2 ... 1-2 When the SCK phase fluctuation advances (FIG. 4) At the Z point where the SCK phase fluctuation direction determination unit 32 determines that the SCK phase fluctuation advances, the falling edge of the signal D is'L '. Is detected, the signal F is switched from'L 'to'H', and the first selector 16 selects the output of the third FF 14 on the first side. (a) When the rising edge of SCK approaches the rising edge of RCK Up to point Z, signal C is'L 'and signal F is'L'.
Is. At this time, the second selector 17 is on the 0 side, that is, the second FF.
Twelve outputs are selected, and the fifth FF 18 outputs data 1 which is delayed by a half SCK cycle from the second FF output. (b) When the rising edge of SCK is separated from the rising edge of RCK The signal F changes from'L 'to'H' at the Z point, but the change of the signal F from'L 'to'H' is the second. It is invalid for the selector 17.

【0061】Z点からX点迄の間では、信号Cは‘L’
なので第2セレクタ17は第2FF12の出力を選択し、第
5FF18では、第2FF出力より半SCK周期遅れのデ
ータ2を送出する。
From the Z point to the X point, the signal C is'L '.
Therefore, the second selector 17 selects the output of the second FF12, and the fifth FF18 sends out the data 2 which is a half SCK cycle behind the output of the second FF.

【0062】X点において、RCKの立上がりエッジが
SCKの立上がりエッジに接近した時、信号Cは‘L’
から‘H’に切り換わり、第2セレクタ17は第1セレク
タ16の出力(第3FF14の出力)を選択する。
At the point X, when the rising edge of RCK approaches the rising edge of SCK, the signal C becomes'L '.
From "H", the second selector 17 selects the output of the first selector 16 (the output of the third FF 14).

【0063】従って、第5FF18では、第3FF出力よ
り半SCK周期遅れのデータ3、データ4・・・を送出
する。以上をまとめて、第5FF18では、第2セレクタ
17の出力のデータ幅はSCKの立上がりエッジでラッチ
できる長さなので内容の保障ができ、SDToはデータ
1、データ2・・・と続く正常なデータになる。 2.第2実施例の説明:図5〜図7参照 図5は本発明の他の実施例回路の構成を示す図であり、
図6は図5における一実施例のタイミングを示す図(そ
の1)であり、図7は図5における一実施例のタイミン
グを示す図(その2)である。
Therefore, the fifth FF 18 sends data 3, data 4, ... Which are delayed by a half SCK cycle from the output of the third FF. Summarizing the above, in the fifth FF 18, the second selector
Since the data width of the output of 17 is the length that can be latched at the rising edge of SCK, the content can be guaranteed, and SDTo becomes normal data such as data 1, data 2 ... 2. Description of Second Embodiment: See FIGS. 5 to 7. FIG. 5 is a diagram showing the configuration of a circuit of another embodiment of the present invention.
6 is a diagram (No. 1) showing the timing of the embodiment in FIG. 5, and FIG. 7 is a diagram (No. 2) showing the timing of the embodiment in FIG.

【0064】なお、図6は送信クロック(SCK)の位
相変動が受信クロック(RCK)に対して進む方向の場
合に対応し、図7は送信クロック(SCK)の位相変動
が受信クロック(RCK)に対して進む方向の場合に対
応する。
FIG. 6 corresponds to the case where the phase variation of the transmission clock (SCK) advances with respect to the reception clock (RCK), and FIG. 7 shows the phase variation of the transmission clock (SCK) to the reception clock (RCK). Corresponds to the case of going forward with respect to.

【0065】また、図6と図7の両タイムチャートに記
載する信号名は図5に記載する信号名に対応している。
以下、図5の説明を図6、図7を参照し行う。図5にお
いて、1はクロック乗せ換え部であり、5つの第1FF
11, 第2FF12, 第3FF14, 第4FF15, 第5FF18
と、2つの第1セレクタ16と第2セレクタ17よりなる。
なお、図2に比べてINV13が除かれている。
The signal names described in both the time charts of FIG. 6 and FIG. 7 correspond to the signal names described in FIG.
The description of FIG. 5 will be given below with reference to FIGS. 6 and 7. In FIG. 5, reference numeral 1 denotes a clock transfer unit, which includes five first FFs.
11, 2nd FF12, 3rd FF14, 4th FF15, 5th FF18
It is composed of two first selectors 16 and two second selectors 17.
In addition, INV13 is removed as compared with FIG.

【0066】第1FF11では、入力するSDTiをRC
Kでラッチし、該第1FF11のラッチ出力を3つに分岐
して第2FF12、第3FF14、第4FF15に加え、後記
する信号K、信号L、信号Mの中間信号をもとに、SD
Tiから位相を異にする3つのラッチ信号(SDTiと
同じ)をつくる。
In the first FF11, the input SDTi is RC
Latch by K, and the latch output of the first FF11 is branched into three and added to the second FF12, the third FF14, and the fourth FF15, and based on the intermediate signal of the signals K, L, and M described later, SD
Three latch signals (same as SDTi) with different phases are generated from Ti.

【0067】第2FF12では、第1FF11の出力を信号
Kでラッチして、該第1FF11の出力を第1セレクタ16
の0側に加える。第3FF14では、第1FF11の出力を
信号Lでラッチして、該第1FF11の出力を第2セレク
タ17の1側に加える。さらに第4FF15では、第1FF
11の出力を信号Mでラッチして、該第1FF11の出力を
第1セレクタ16の1側に加える。
The second FF 12 latches the output of the first FF 11 with the signal K and outputs the output of the first FF 11 to the first selector 16
Add to the 0 side of. In the third FF 14, the output of the first FF 11 is latched by the signal L, and the output of the first FF 11 is added to the 1 side of the second selector 17. Furthermore, in the 4th FF15, the 1st FF
The output of 11 is latched by the signal M, and the output of the first FF 11 is applied to the 1 side of the first selector 16.

【0068】第1セレクタ16では、信号Fを第2の切り
換え制御信号にもちいて、信号Fが‘L’なら第2FF
12の出力を選択するよう動き、信号Fが‘H’なら第4
FF15の出力を選択するように動き、該選択結果を第2
セレクタ17の0側に加える。
The first selector 16 uses the signal F as the second switching control signal, and if the signal F is'L ', the second FF
Move to select 12 outputs, 4th if signal F is'H '
Moves to select the output of FF15 and outputs the selection result to the second
Add to the 0 side of selector 17.

【0069】第2セレクタ17では、信号Cを第1の切り
換え制御信号にもちいて、信号Cが‘L’なら第1セレ
クタ16の出力を選択するように動き、信号Cが‘H’な
らば第3FF14の出力を選択するように動く。
The second selector 17 uses the signal C as the first switching control signal, and if the signal C is'L ', it moves so as to select the output of the first selector 16, and if the signal C is'H'. It operates to select the output of the 3rd FF14.

【0070】第5FF18では、第2セレクタ17から出力
される信号Jを非同期のSCKに乗せ換え、最終出力の
SDToとしている。以下、クロック乗せ換え部1にお
いて、第1の切り換え制御信号の信号Cと第2の切り換
え制御信号の信号Fおよび、受信データを処理する信号
K、信号L、信号Mをつくる回路の説明を行う。
In the fifth FF 18, the signal J output from the second selector 17 is transferred to the asynchronous SCK to obtain the final output SDTo. Hereinafter, in the clock transfer unit 1, a circuit for producing the signal C of the first switching control signal and the signal F of the second switching control signal and the signals K, L and M for processing the received data will be described. .

【0071】23と24の各回路は位相比較部2に対応し、
23は立下がり検出部であり、24はウィンドウパルス生成
部である。立下がり検出部23では、RCMからRCKの
立下がりエッジを検出した前記信号Aをつくる。
The circuits 23 and 24 correspond to the phase comparison unit 2,
23 is a trailing edge detector, and 24 is a window pulse generator. The falling edge detection section 23 produces the signal A by detecting the falling edge of RCK from the RCM.

【0072】ウィンドウパルス生成部24では、SCKと
SCMから、SCKの立下がりエッジ付近をマスクする
ウィンドウパルスの前記信号Gをつくる。比較部25で
は、信号Aと信号Gの比較を行う。該比較結果は、SC
Kの位相変動が遅れる方向の場合は‘L’になり、ま
た、SCKの位相変動が進む方向の場合は‘H’にな
る。
The window pulse generator 24 produces the signal G of the window pulse for masking the vicinity of the falling edge of SCK from SCK and SCM. The comparison unit 25 compares the signal A with the signal G. The comparison result is SC
It becomes'L 'when the phase fluctuation of K is delayed, and becomes'H' when the phase fluctuation of SCK is advanced.

【0073】31と32の各回路は位相変動方向監視部3に
対応し、31は位相識別パルス生成部であり、32は位相変
動方向判断部である。位相識別パルス生成部31では、S
CMとSCKから該SCKに同期しかつそれぞれ位相の
異なる前記の信号K、信号L、信号Mをつくる。
Each of the circuits 31 and 32 corresponds to the phase fluctuation direction monitoring unit 3, 31 is a phase identification pulse generation unit, and 32 is a phase fluctuation direction determination unit. In the phase identification pulse generator 31, S
The signal K, the signal L, and the signal M which are in synchronization with the SCK and have different phases are produced from the CM and the SCK.

【0074】位相変動方向判断部32では、前記の信号
K、信号L、信号Mと前記信号Aとを比較し、SCKの
位相変動がRCKに対して遅れる方向であると判断した
場合は一方の信号Hを‘H’にし、SCKの位相変動が
RCKに対して進む方向であると判断した場合は他方の
信号Iを‘L’にするように動く。
The phase fluctuation direction judging unit 32 compares the signal K, the signal L and the signal M with the signal A, and if it is judged that the phase fluctuation of the SCK is delayed relative to the RCK, one of them is judged. When the signal H is set to “H” and it is determined that the phase fluctuation of the SCK is in the direction to advance with respect to the RCK, the other signal I is moved to “L”.

【0075】制御信号生成部4では、比較部25の比較結
果をもとに、クロック乗せ換え部1の第2セレクタ17を
切り換える第1の切り換え制御信号の信号Cと、第1セ
レクタ16を切り換える第2の切り換え制御信号の信号F
をつくる。
The control signal generator 4 switches the signal C of the first switching control signal for switching the second selector 17 of the clock transfer unit 1 and the first selector 16 based on the comparison result of the comparator 25. Signal F of second switching control signal
To make.

【0076】この際、SCKの位相変動が遅れる方向の
場合は信号Fは‘L’になり、SCKの位相変動が進む
方向の場合は信号Fは‘H’になる。このように、第2
セレクタ17が第1セレクタ16の出力を選択し、第1セレ
クタ16が第2FF12の出力を選択している状態からの切
り換えには、SCKの位相変動がRCKに対して遅れる
方向の場合と進む方向の場合の2つが存在する。
At this time, the signal F becomes "L" when the phase fluctuation of the SCK is delayed, and the signal F becomes "H" when the phase fluctuation of the SCK is advanced. Thus, the second
To switch from the state in which the selector 17 selects the output of the first selector 16 and the first selector 16 selects the output of the second FF 12, the phase fluctuation of SCK is delayed relative to RCK and the forward direction is selected. There are two cases.

【0077】さらに、RCKとRCM、SCKとSCM
の速度比は凡そ8倍乃至16倍であることは前記と同様で
ある。 2-1 SCKの位相変動が遅れる方向の場合(図6) 図6に示す、SDTi、RCK、信号A、SCK、信号
G、信号K、信号L、信号Mのつくる方法等は、前記説
明と重複するので省略する。
Furthermore, RCK and RCM, SCK and SCM
The speed ratio is about 8 to 16 times, which is the same as above. 2-1 In the case where the phase fluctuation of SCK is delayed (FIG. 6) The method of making SDTi, RCK, signal A, SCK, signal G, signal K, signal L, signal M shown in FIG. Omitted because it overlaps.

【0078】位相変動方向判断部32が、SCKの位相変
動が遅れる方向であると判断しているので信号Fは常に
‘L’のままであり、第1セレクタ16は第2FF12の出
力を選択する。
Since the phase fluctuation direction judging unit 32 judges that the phase fluctuation of the SCK is in the delaying direction, the signal F always remains at "L", and the first selector 16 selects the output of the second FF12. .

【0079】X点迄は、信号Aの立上がりエッジが信号
Gの‘H’区間内にあるので信号Cは‘H’であり、第
2セレクタ17は第3FF14の出力を選択するので、第2
セレクタ17が出力する信号Jは、信号Lの立上がりエッ
ジに同期した第3FF14の出力となる。
Up to the point X, since the rising edge of the signal A is within the'H 'section of the signal G, the signal C is'H' and the second selector 17 selects the output of the third FF14.
The signal J output from the selector 17 becomes the output of the third FF 14 synchronized with the rising edge of the signal L.

【0080】従って、SDToは信号Lに同期した第3
FF14の出力をSCKでラッチした送信信号になる。X
点に至ると、信号Aの立上がりエッジが信号Gの‘H’
区間から外れるので信号Cは‘H’から‘L’に切り換
わり、第2セレクタ17は第2FF12の出力を選択する。
Therefore, SDTo is the third signal synchronized with the signal L.
The output of FF14 becomes the transmission signal which is latched by SCK. X
When reaching the point, the rising edge of signal A is'H 'of signal G.
Since it is out of the section, the signal C switches from "H" to "L", and the second selector 17 selects the output of the second FF12.

【0081】このように信号Cが‘H’から‘L’に切
り換わると、第2セレクタ17の出力は、信号Kの立上が
りエッジに同期した第2FF12の出力に切り換わる。従
って、SDToは信号Kに同期した第2FF12の出力を
SCKでラッチした信号になる。
When the signal C switches from "H" to "L" in this manner, the output of the second selector 17 switches to the output of the second FF 12 synchronized with the rising edge of the signal K. Therefore, SDTo is a signal obtained by latching the output of the second FF 12 synchronized with the signal K with SCK.

【0082】以上をまとめると、第5FF18では、第2
セレクタ17からの出力のデータ幅をSCKの立上がりエ
ッジでラッチできる長さになるように信号K、信号L、
信号Mの時間幅を設定しているので、SDToの内容は
保障できる。 2-2 SCKの位相変動が進む方向の場合(図7) SCK位相変動方向判断部32が、SCKの位相変動が進
む方向であると判断しているので、信号Fは‘L’から
‘H’に切り換わり、第1セレクタ16は第4FF15の出
力を選択する。
Summarizing the above, in the fifth FF 18, the second
The data width of the output from the selector 17 is set so that the signal K, the signal L, and the like can be latched at the rising edge of SCK.
Since the time width of the signal M is set, the contents of SDTo can be guaranteed. 2-2 When the SCK phase fluctuation advances (FIG. 7) Since the SCK phase fluctuation direction determination unit 32 determines that the SCK phase fluctuation advances, the signal F changes from “L” to “H”. ', And the first selector 16 selects the output of the fourth FF15.

【0083】X点迄は、信号Aの立上がりエッジが信号
Gの‘H’区間内にあるので信号Cは‘H’であり、第
2セレクタ17は第3FF14の出力を選択するので、第2
セレクタ17が出力する信号Jは、信号Lの立上がりエッ
ジに同期した第3FF14の出力となる。
Up to point X, since the rising edge of the signal A is within the'H 'section of the signal G, the signal C is'H' and the second selector 17 selects the output of the third FF14.
The signal J output from the selector 17 becomes the output of the third FF 14 synchronized with the rising edge of the signal L.

【0084】X点に至ると、信号Aの立上がりエッジが
信号Gの‘H’区間から外れ、信号Cは‘H’から
‘L’に切り換わり、第2セレクタ17は第4FF15の出
力を選択する。
When reaching the point X, the rising edge of the signal A deviates from the "H" section of the signal G, the signal C switches from "H" to "L", and the second selector 17 selects the output of the fourth FF15. To do.

【0085】この際、信号Jは信号Mの立上がりエッジ
でラッチした第4FF15の出力に切り換わり、該信号J
は信号Mの立上がりエッジに同期した信号となり、SD
Toは信号Mに同期した信号JをSCKでラッチした信
号となる。
At this time, the signal J switches to the output of the fourth FF15 latched at the rising edge of the signal M, and the signal J
Becomes a signal synchronized with the rising edge of the signal M, and SD
To is a signal obtained by latching the signal J synchronized with the signal M with SCK.

【0086】以上をまとめると、第5FF18では、第2
セレクタ17の出力のデータ幅をSCKの立上がりエッジ
でラッチできる長さになるように信号K、信号L、信号
Mを設定しているので、SDToの内容は保障できる。
Summarizing the above, in the fifth FF 18, the second
Since the signals K, L and M are set so that the data width of the output of the selector 17 can be latched at the rising edge of SCK, the contents of SDTo can be guaranteed.

【0087】[0087]

【発明の効果】以上の説明から明らかなように本発明に
よれば、クロック乗せ換えを行う際、受信クロックに対
して送信クロックの位相変動が遅れる方向であっても、
進む方向であっても柔軟に対応可能となる効果を奏し、
1回目の受信クロックの立上がりエッジと送信クロック
の立上がりエッジの接近では最終の送信データが保障で
き、クロック乗せ換え回路のデータの信頼性向上に寄与
するところが大きいという効果を奏する。
As is apparent from the above description, according to the present invention, when the clocks are changed, even if the phase variation of the transmission clock is delayed with respect to the reception clock,
It has the effect of being able to respond flexibly even in the direction of travel,
The first approach of the rising edge of the reception clock and the rising edge of the transmission clock ensures the final transmission data, and has the effect of greatly contributing to the improvement of the reliability of the data of the clock transfer circuit.

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

【図1】 本発明の原理構成を示す図FIG. 1 is a diagram showing a principle configuration of the present invention.

【図2】 本発明の一実施例回路の構成を示す図FIG. 2 is a diagram showing a configuration of an embodiment circuit of the present invention.

【図3】 図2おける一実施例のタイミングを示す図
(その1)
FIG. 3 is a diagram showing the timing of one embodiment in FIG. 2 (No. 1)

【図4】 図2おける一実施例のタイミングを示す図
(その2)
FIG. 4 is a diagram showing the timing of one embodiment in FIG. 2 (No. 2)

【図5】 本発明の他の実施例回路の構成を示す図FIG. 5 is a diagram showing a configuration of a circuit according to another embodiment of the present invention.

【図6】 図5おける一実施例のタイミングを示す図
(その1)
6 is a diagram showing the timing of one embodiment in FIG. 5 (No. 1)

【図7】 図5おける一実施例のタイミングを示す図
(その2)
FIG. 7 is a diagram showing the timing of one embodiment in FIG. 5 (No. 2)

【図8】 従来の一実施例回路の構成を示す図FIG. 8 is a diagram showing a configuration of a conventional example circuit.

【図9】 図8おける一実施例のタイミングを示す図
(その1)
FIG. 9 is a diagram showing the timing of one embodiment in FIG. 8 (No. 1).

【図10】 図8おける一実施例のタイミングを示す図
(その2)
FIG. 10 is a diagram showing the timing of one embodiment in FIG. 8 (No. 2)

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

1 クロック乗せ換え部 2 位相比較部 3 位相変動方向監視部 4 制御信号生成部 21 立上がり検出部 22 立上がり立下がり検出部 23 立下がり検出部 24 ウィンドウパルス生成部 1 Clock transfer unit 2 Phase comparison unit 3 Phase fluctuation direction monitoring unit 4 Control signal generation unit 21 Rise detection unit 22 Rise / fall detection unit 23 Fall detection unit 24 Window pulse generation unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 受信データを受信クロックにより受け取
り、送信クロックにより該受け取りデータから位相を異
にする少なくとも3つのデータをつくり、第1、第2の
切り換え制御信号にて前記位相を異にする少なくとも3
つのデータから一つを選ぶクロック乗せ換え部(1) と、 前記の受信クロックと送信クロックとの位相を比較し、
該2つの位相の一致を検出する位相比較部(2) と、 前記受信クロックと送信クロックとの位相変動方向を監
視する位相変動方向監視部(3) と、 前記の位相比較部(2) の一致結果と位相変動方向監視部
(3) の監視結果をもとに、前記クロック乗せ換え部(1)
に対する前記第1、第2の切り換え制御信号をつくる制
御信号生成部(4) を設け、 送信データにおけるデータの欠落、2度読みを回避する
ようにしたことを特徴とするクロック乗せ換え回路。
1. Received data is received by a receive clock, at least three data having different phases are generated from the received data by a transmit clock, and at least three phases are made different by first and second switching control signals. Three
A clock transfer unit (1) that selects one from two data, and compares the phases of the reception clock and the transmission clock,
The phase comparison unit (2) for detecting the coincidence of the two phases, the phase fluctuation direction monitoring unit (3) for monitoring the phase fluctuation directions of the reception clock and the transmission clock, and the phase comparison unit (2) Matching result and phase fluctuation direction monitoring unit
Based on the monitoring result of (3), the clock switching unit (1)
The clock transfer circuit is characterized in that a control signal generator (4) for generating the first and second switching control signals is provided to avoid data loss and double reading in transmission data.
【請求項2】 上記位相比較部(2) を、受信クロックの
立上がりエッジを検出する立上がり検出部(21)と、 送信クロックの立上がりエッジまたは立下がりエッジを
検出する立上がり立下がり検出部(22)とから構成するよ
うにしたことを特徴とする請求項1記載のクロック乗せ
換え回路。
2. The phase comparing section (2) includes a rising edge detecting section (21) for detecting a rising edge of a reception clock and a rising edge falling edge section (22) for detecting a rising edge or a falling edge of a transmission clock. 2. The clock transfer circuit according to claim 1, wherein the clock transfer circuit comprises:
【請求項3】 前記クロック乗換え部(1) は、 受信データを受信クロックで取り込む第1ラッチ手段
と、 該第1ラッチ手段の出力を送信クロックで取り込む第2
ラッチ手段と、 前記第1ラッチ手段の出力を反転送信クロックで取り込
む第3ラッチ手段と、 該第3ラッチ手段の出力を送信クロックで取り込む第4
ラッチ手段と、 前記第3ラッチ手段の出力と前記第4ラッチ手段の出力
の何れか一方を前記第2の切り換え制御信号に基づき選
択出力する第1選択手段と、 前記第2ラッチ手段の出力と前記第1選択手段の出力の
何れか一方を前記第1の切り換え制御信号に基づき選択
出力する第2選択手段と、 前記第1選択手段の出力を送信クロックで取込み、送信
データとする第5ラッチ手段とを有し、 前記制御信号生成部(4) は、受信クロックに対する送信
クロックの位相進み/遅れに対応して、前記第3ラッチ
手段の出力/第4ラッチ手段の出力が前記第1選択手段
により選択されるように前記第2の切り換え信号を生成
するように構成されてなること特徴とする請求項1記載
のクロック乗せ換え回路。
3. The clock transfer unit (1) comprises a first latch means for receiving the received data at the receive clock, and a second latch means for taking the output of the first latch means at the transmit clock.
Latch means, third latch means for fetching the output of the first latch means with an inverted transmission clock, and fourth latch means for fetching the output of the third latch means with the transmission clock
Latch means, first selecting means for selectively outputting one of the output of the third latch means and the output of the fourth latch means based on the second switching control signal, and the output of the second latch means Second selection means for selectively outputting any one of the outputs of the first selection means based on the first switching control signal, and a fifth latch for taking the output of the first selection means by a transmission clock and making it transmission data. The control signal generation section (4) is configured such that the output of the third latch means / the output of the fourth latch means corresponds to the phase lead / lag of the transmission clock with respect to the reception clock. A clock handoff circuit as claimed in claim 1, characterized in that it is arranged to generate the second switching signal so that it is selected by means.
JP6122174A 1994-06-03 1994-06-03 Clock switching circuit Withdrawn JPH07336338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6122174A JPH07336338A (en) 1994-06-03 1994-06-03 Clock switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6122174A JPH07336338A (en) 1994-06-03 1994-06-03 Clock switching circuit

Publications (1)

Publication Number Publication Date
JPH07336338A true JPH07336338A (en) 1995-12-22

Family

ID=14829409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6122174A Withdrawn JPH07336338A (en) 1994-06-03 1994-06-03 Clock switching circuit

Country Status (1)

Country Link
JP (1) JPH07336338A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100310232B1 (en) * 1999-03-25 2001-10-29 박종섭 Method for clock selecting according to first order
US7418036B2 (en) 2003-11-17 2008-08-26 Fujitsu Limited Method and circuit for timing pulse generation
JP2010130060A (en) * 2008-11-25 2010-06-10 Oki Semiconductor Co Ltd Data transfer system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100310232B1 (en) * 1999-03-25 2001-10-29 박종섭 Method for clock selecting according to first order
US7418036B2 (en) 2003-11-17 2008-08-26 Fujitsu Limited Method and circuit for timing pulse generation
JP2010130060A (en) * 2008-11-25 2010-06-10 Oki Semiconductor Co Ltd Data transfer system

Similar Documents

Publication Publication Date Title
KR100546971B1 (en) A data capture method for high speed signaling
US7254201B2 (en) Clock and data recovery circuit and method
US6943595B2 (en) Synchronization circuit
JPH04341013A (en) Synchronous circuit
JPH07336338A (en) Clock switching circuit
JPH0413325A (en) Bit phase synchronizing circuit
EP1085672A2 (en) Method and system for minimising crosstalk
US5294844A (en) Sampling signal generation circuit
JP4166841B2 (en) Method for performing phase comparison and phase comparator
US8811501B2 (en) Receiving apparatus, transmission and reception system, and restoration method
JP3190888B2 (en) Synchronization method between paths
JP3427761B2 (en) Synchronous circuit
JPH05344112A (en) Bit phase synchronizing circuit
JPH10242954A (en) Digital phase synchronizing circuit
JP2564926B2 (en) Phase synchronization circuit for clock and data signals
KR960009974B1 (en) Phase regulating circuit
JP4244468B2 (en) Clock generator
JPH03129933A (en) Bit buffer circuit
JPH02134939A (en) Input data synchronizing circuit
JPH0575510A (en) Space diversity in-phase synthesizing circuit
JPH0385039A (en) Frame transmission system for local area network
JPH10145344A (en) Bit phase synchronizing circuit
JPS62298228A (en) Phase synchronizing device
KR20000008814A (en) Phase synchronization device and method thereof
JPH03203427A (en) Phase synchronizing clock generating circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010904