JP2641964B2 - Divider - Google Patents

Divider

Info

Publication number
JP2641964B2
JP2641964B2 JP21212190A JP21212190A JP2641964B2 JP 2641964 B2 JP2641964 B2 JP 2641964B2 JP 21212190 A JP21212190 A JP 21212190A JP 21212190 A JP21212190 A JP 21212190A JP 2641964 B2 JP2641964 B2 JP 2641964B2
Authority
JP
Japan
Prior art keywords
signal
clock
clock signal
switching
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.)
Expired - Lifetime
Application number
JP21212190A
Other languages
Japanese (ja)
Other versions
JPH0496422A (en
Inventor
陽 沢村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rohm Co Ltd
Original Assignee
Rohm Co 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP21212190A priority Critical patent/JP2641964B2/en
Publication of JPH0496422A publication Critical patent/JPH0496422A/en
Application granted granted Critical
Publication of JP2641964B2 publication Critical patent/JP2641964B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、高周波信号を分周して所定周波数の信号を
得る分周器に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a frequency divider that divides a high-frequency signal to obtain a signal of a predetermined frequency.

[従来の技術] 従来、周波数fのクロックCK1を基に、周波数fの半
周期タイミングにて、High/Lowが切り換わる分周信号を
必要とする場合がある。このような場合、一旦m=2倍
の逓倍信号mfを発生させた上で(倍精度化といい、mfは
前記クロックCK1の1周期内に2倍のパルス数を有す
る)、逓倍信号mfのパルスを所望周波数に応じてn個カ
ウントすることにより分周信号(m/n)×fを発生させ
ていた。
[Prior Art] Conventionally, on the basis of the clock CK 1 of frequency f, at half-cycle timing of the frequency f, may require divided signal switches the High / Low. In this case, once on at that triggered the m = 2 times the multiplied signal mf (referred to as double-precision reduction, mf have the number of pulses of twice within one period of the clock CK 1), multiplied signal mf A frequency-divided signal (m / n) × f is generated by counting n pulses according to a desired frequency.

第3図は従来の分周器の一例を示す回路図であり、第
4図はそのタイミングチャートである。第3図におい
て、10は逓倍回路であり、D−FF12,14,16、インバータ
18、ORゲート20等から構成されている。22はカウンタで
あり、逓倍信号mfのパルスをカウントし、パルスn個毎
にHigh/Lowが切り換わる分周信号(m/n)×fを出力す
る。逓倍信号mfの発生には、クロックCK1より高周波数
のクロックCK2が必要とされ、第4図に示すように、ク
ロックCK1の立上がりおよび立下がりタイミングに同期
して逓倍信号mfが発生される。
FIG. 3 is a circuit diagram showing an example of a conventional frequency divider, and FIG. 4 is a timing chart thereof. In FIG. 3, reference numeral 10 denotes a multiplying circuit, and D-FFs 12, 14, and 16 and an inverter.
18, and an OR gate 20 and the like. A counter 22 counts the pulses of the multiplied signal mf and outputs a frequency-divided signal (m / n) × f that switches between High and Low every n pulses. The generation of the multiplied signal mf is required clock CK 1 higher-frequency clock CK 2, as shown in FIG. 4, the multiplied signal mf is generated in synchronization with the rising and falling timing of the clock CK 1 You.

また、第5図の回路によっても第6図に示すように、
逓倍信号mfを発生することができる。すなわち、クロッ
クCK1をゲート遅延回路30またはCK遅延回路32で遅らせ
て、EXORゲート34にてクロックCK1と遅延信号CKDの排他
的論理和をとり、逓倍信号mfを発生していた。
Also, as shown in FIG. 6, the circuit of FIG.
A multiplied signal mf can be generated. In other words, by delaying the clock CK 1 in gate delay circuit 30 or CK delay circuit 32, an exclusive OR of the clock CK 1 and the delayed signal CK D by EXOR gate 34, it has occurred the multiplied signal mf.

[発明が解決しようとする課題] しかしながら、上記したような従来の分周技術におい
て、第3図および第4図に示したように、カウントする
クロックCK1より早いクロックCK2を用いる場合には、そ
のシステムで用いている最高速のクロック、例えばクロ
ックCK2について逓倍することはできなかった。
[Problems to be Solved] However, in the conventional frequency division techniques as described above, as shown in FIGS. 3 and 4, in the case of using a fast clock CK 2 from the clock CK 1 to count , it was not possible to multiply the fastest clock is used on the system, for example, the clock CK 2.

また、第5図および第6図に示したように、遅延回路
を用いる場合には、逓倍後のデューティ精度が不安定に
なるという欠点があった。
Further, as shown in FIGS. 5 and 6, when a delay circuit is used, there is a disadvantage that the duty accuracy after the multiplication becomes unstable.

そして、上記の逓倍技術を用いる従来技術では、基本
的にクロックCK1の周波数を倍にするので、次段カウン
タ22において、カウンタ素子の動作がクロック速度に追
いつかない等、処理スピードに問題が出てくる虞れがあ
った。
Then, in the prior art to use a multiplication techniques described above, since essentially doubling the frequency of the clock CK 1, the next stage counter 22, such as operation of the counter element can not keep up with the clock speed, it had problems in processing speed There was a risk of coming.

この発明は、上記従来技術の課題を解決するためにな
されたものであり、その目的は、逓倍技術を用いずに分
周精度を倍に設定できる分周器を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the prior art, and an object of the present invention is to provide a frequency divider which can set the frequency division accuracy to double without using a frequency multiplication technique.

[課題を解決するための手段] 上記目的を達成するために本発明に係る分周器は、ク
ロック信号のパルスをカウントするカウンタを含み、こ
のカウント値が所定値に達する毎に、カウント所要時間
に対応したパルス幅を有する分周信号を発生する分周器
において、前記クロック信号の立上がりおよび立下がり
タイミングに同期して該クロック信号と同位相のクロッ
ク信号を出力する第1のクロック発生回路と、前記クロ
ック信号の立下がりおよび立上がりタイミングに同期し
て該クロック信号と逆位相のクロック信号を出力する第
2のクロック発生回路と、前記カウンタがカウントアッ
プした時点で第1または第2のクロック発生回路を交互
に動作/不動作とし、前記カウンタに入力されるクロッ
ク信号を第1または第2のクロック信号のいずれか一方
に切替える切替信号を出力する切替回路と、を含み、前
記第1のクロック発生回路は、前記切替信号を前記クロ
ック信号の立ち上がり及び立ち下がりタイミングに同期
してラッチすることによって、前記切替信号を前記クロ
ック信号の立ち上がり及び立ち下がりタイミングに同期
して変化する信号に変換する第1のクロック成形回路
と、前記第1のクロック成形回路によって成形された切
替信号に基づいて前記第1のクロック信号を前記カウン
タに出力する第1の選択回路と、を含み、前記第2のク
ロック発生回路は、前記切替信号を前記クロック信号の
立ち上がり及び立ち下がりタイミングに同期してラッチ
し、ラッチした信号を反転することによって、前記切替
信号を前記クロック信号の立ち上がり及び立ち下がりタ
イミングに同期して変化する信号に変換する第2のクロ
ック成形回路と、前記第1のクロック成形回路によって
成形された切替信号に基づいて前記第1のクロック信号
を前記カウンタに出力する第2の選択回路と、を含むこ
とを特徴とする。
[Means for Solving the Problems] To achieve the above object, a frequency divider according to the present invention includes a counter for counting pulses of a clock signal, and every time the count value reaches a predetermined value, a count required time A frequency divider for generating a frequency-divided signal having a pulse width corresponding to a first clock generation circuit that outputs a clock signal in phase with the clock signal in synchronization with the rising and falling timings of the clock signal; A second clock generation circuit for outputting a clock signal having a phase opposite to that of the clock signal in synchronization with the falling and rising timings of the clock signal, and generating the first or second clock when the counter counts up The circuit is turned on / off alternately, and a clock signal input to the counter is a first or second clock signal. A switching circuit that outputs a switching signal for switching to either one of the clock signals, wherein the first clock generation circuit latches the switching signal in synchronization with rising and falling timings of the clock signal, thereby performing the switching. A first clock shaping circuit that converts a signal into a signal that changes in synchronization with rising and falling timings of the clock signal, and the first clock based on a switching signal shaped by the first clock shaping circuit A first selection circuit that outputs a signal to the counter, wherein the second clock generation circuit latches the switching signal in synchronization with rising and falling timings of the clock signal, and outputs the latched signal. By inverting the switching signal, the rising and falling timings of the clock signal A second clock shaping circuit that converts the signal into a signal that changes synchronously; and a second selection circuit that outputs the first clock signal to the counter based on the switching signal shaped by the first clock shaping circuit. And characterized in that:

[作用] 上記構成を有する本発明の分周器によれば、クロック
信号の位相を切り換える毎に、第1のパルスが発生する
までのクロック信号の半周期分の遅延が発生し、この半
周期遅延分を含んでカウントすることにより倍精度カウ
ント動作と同等の分周信号を得ることができる。
[Operation] According to the frequency divider of the present invention having the above configuration, every time the phase of the clock signal is switched, a delay corresponding to a half cycle of the clock signal occurs until the first pulse is generated. By counting including the delay, a frequency-divided signal equivalent to the double-precision counting operation can be obtained.

さらに、切替信号が上記第1及び第2のクロック発生
回路内部の第1及び第2のクロック成形回路によって、
クロック信号といわば同期が取られてから、第1及び第
2の選択回路に供給される。従って、クロック信号の切
替の際に、ハザード等が生じることがなく、安定した動
作を実現することが可能である。
Further, the switching signal is generated by the first and second clock shaping circuits inside the first and second clock generating circuits.
After being synchronized, so to speak, with the clock signal, it is supplied to the first and second selection circuits. Therefore, when switching the clock signal, a hazard or the like does not occur, and a stable operation can be realized.

[実施例] 以下、図面に基づいて本発明の好適な実施例を説明す
る。
Hereinafter, a preferred embodiment of the present invention will be described with reference to the drawings.

第1図は本発明に係る分周器の一実施例を示す回路図
であり、第2図はそのタイミングチャートである。
FIG. 1 is a circuit diagram showing one embodiment of a frequency divider according to the present invention, and FIG. 2 is a timing chart thereof.

第1図において、40は第1のクロック発生回路で、イ
ンバータ42、D−FF44,46,48、ANDゲート50等から構成
されている。第1のクロック信号発生回路40は、第2図
に示すように、クロック信号CK1の立上がりおよび立下
がりタイミングに同期して、クロックCK1と同位相のク
ロック信号CKAを発生する。
In FIG. 1, reference numeral 40 denotes a first clock generation circuit, which comprises an inverter 42, D-FFs 44, 46, 48, an AND gate 50, and the like. First clock signal generating circuit 40, as shown in FIG. 2, in synchronization with the rising and falling timing of the clock signal CK 1, generates a clock signal CK A having the same phase as the clock CK 1.

52は第2のクロック信号発生回路で、インバータ54,5
6,58、D−FF60,62,64、ANDゲート66等から構成されて
いる。第2のクロック発生回路52は、第2図に示すよう
に、クロック信号CK1の立下がりおよび立上がりタイミ
ングに同期して、クロック信号CK1と逆位相のクロック
信号CKBを発生する。
Reference numeral 52 denotes a second clock signal generation circuit which includes inverters 54 and 5
6, 58, D-FF60, 62, 64, AND gate 66 and the like. Second clock generating circuit 52, as shown in FIG. 2, in synchronization with the falling and rising timings of the clock signal CK 1, generates a clock signal CK B of the clock signal CK 1 and opposite phase.

68はORゲートで、上記クロック信号CKAおよびCKBの合
成クロック信号CKCをカウンタ22に出力する。カウンタ2
2は、例えば3分周回路として、D−FF70,72、NANDゲー
ト74等から構成されている。なお、カウンタ22は、3分
周回路の一例を示すものであるが、本発明はこれに限定
されるものではなく、所望の分周数(=n)に応じて任
意に設定できることは当然である。
68 is an OR gate, and outputs a composite clock signal CK C of the clock signal CK A and CK B to the counter 22. Counter 2
Reference numeral 2 denotes, for example, a frequency dividing circuit composed of D-FFs 70 and 72, a NAND gate 74, and the like. Note that the counter 22 is an example of a divide-by-3 circuit, but the present invention is not limited to this and can be set arbitrarily according to a desired number of divisions (= n). is there.

76は切換え回路で、カウンタ22がカウントアップした
時点で第1または第2のクロック発生回路40,52を交互
に動作/不動作とする切換え信号CKSを出力し、カウン
タ22に入力されるクロック信号を、第1または第2のク
ロック信号CAAまたはCKB(すなわち、合成信号CKC)の
いずれか一方に切換える。
76 is a switching circuit, the clock counter 22 outputs a switching signal CK S to operate / inoperative alternately the first or second clock generation circuit 40, 52 at the time of the count-up, is input to the counter 22 The signal is switched to either the first or second clock signal CA A or CK B (ie, the composite signal CK C ).

上記構成において、例えば切換え信号CKSがHighのと
き第1のクロック発生回路40が動作し、Lowのとき第2
のクロック発生回路52が動作するものとする。第2図に
おいて、第1のクロック信号CAA(合成クロック信号C
KC)がカウンタ22に入力されると、カウンタ22はそのパ
ルスを→→のようにカウントする。分周数n=3
によりパルスがカウントされると、カウントアップ信
号Coutが出力される。そして、カウントアップ信号Cout
の立下がりに同期して切換え回路76における切換え信号
CKSがLowになり、第1のクロック発生回路40に代って第
2のクロック発生回路50がONになる。第2のクロック発
生回路52からは、第2のクロック信号CKBが発生され、
このクロック信号CKB(合成クロック信号CKC)が上記同
様にカウンタ22においてカウントされる。そして、カウ
ンタ22がカウントアップした時点で、第1および第2の
クロック発生回路40と52の切換え動作が繰り返される。
In the above configuration, for example, the switching signal CK S operates the first clock generation circuit 40 when the High, when the Low second
It is assumed that the clock generation circuit 52 operates. In FIG. 2, a first clock signal CA A (composite clock signal C
When K C ) is input to the counter 22, the counter 22 counts the pulses as shown by →→. Division number n = 3
, A pulse is counted, and a count-up signal Cout is output. Then, the count-up signal Cout
Switching signal in the switching circuit 76 in synchronization with the falling edge of
CK S goes Low, the second clock generating circuit 50 is turned ON in place of the first clock generation circuit 40. From the second clock generating circuit 52, the second clock signal CK B is generated,
This clock signal CK B (composite clock signal CK C ) is counted by the counter 22 in the same manner as described above. When the counter 22 counts up, the switching operation of the first and second clock generation circuits 40 and 52 is repeated.

ところで、第2図のパルス,,のカウント所要
時間から明らかなように、上記切換え動作が行われる
と、切換え後、第1のパルスをカウントするために要
する時間には、クロック信号CK1の半周期(=T/2)分の
遅延時間が含まれている。すなわち、カウンタ22によっ
て3パルスをカウントすることは、実質的に3.5パルス
をカウントしたことと等しくなる。従って、倍精度(ク
ロック信号CK1の半周期の精度)にて、分周信号のパル
ス幅を規定することができる。
Incidentally, as it is clear from the count duration of the pulse ,, of Figure 2, the the switching operation is performed, after switching, the time required to count the first pulse, the clock signal CK 1 of a half A delay time corresponding to a cycle (= T / 2) is included. That is, counting three pulses by the counter 22 is substantially equivalent to counting 3.5 pulses. Thus, in double precision (precision of half period of the clock signal CK 1), it is possible to define the pulse width of the divided signal.

なお、上記実施例中、カウンタ22からは1パルスのカ
ウントアップ信号Coutが出力されるように説明したが、
カウンタ22から直接分周信号を出力するようにして構わ
ない。この場合、切替え回路76がカウンタ22に含まれる
構成となる。つまり、本実施例で説明した切替え回路76
の切換え信号CKSが、所望パルス幅を有する本発明の分
周信号に該当しているわけである。
In the above embodiment, the counter 22 outputs a one-pulse count-up signal Cout.
The frequency-divided signal may be directly output from the counter 22. In this case, the switching circuit 76 is included in the counter 22. That is, the switching circuit 76 described in the present embodiment is used.
Switching signal CK S of is not being relevant to the division signal of the present invention having a desired pulse width.

このように、本発明によれば、逓倍技術に用いてなく
てもクロック信号CK1に対して倍精度な分周信号が得ら
れる。
Thus, according to the present invention, a double-precision frequency division signal is obtained for the clock signal CK 1 without using the multiplication technique.

[発明の効果] 以上説明したように本発明の分周器によれば、第1お
よび第2のクロック発生回路を切り換えることによっ
て、第1のパルスのカウント所要時間にクロック信号の
半周期相当分の遅延時間が含まれ、分周信号のパルス幅
を倍精度、すなわちクロック信号の半周期単位で規定す
ることができる。
[Effects of the Invention] As described above, according to the frequency divider of the present invention, by switching between the first and second clock generation circuits, the time required for counting the first pulse can be reduced by a half period of the clock signal. , And the pulse width of the frequency-divided signal can be defined in double precision, that is, in units of a half cycle of the clock signal.

また、逓倍技術を必要とせず、カウンタに入力される
クロック信号のパルス幅は元々のクロック信号のパルス
幅と同じなので、カウンタ段の処理スピードを特に考慮
する必要はなくなる。
Further, since the multiplication technique is not required and the pulse width of the clock signal input to the counter is the same as the pulse width of the original clock signal, it is not necessary to particularly consider the processing speed of the counter stage.

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

第1図は本発明に係る分周器の一実施例を示す回路図、 第2図(a)〜(h)は、第1図の動作を示すタイミン
グチャート、 第3図は従来の分周器の一例を示す回路図、 第4図(a)、(b)は第3図の動作を示すタイミング
チャート、 第5図は従来の逓倍回路の他の例を示す回路図、 第6図(a)〜(c)は第5図の動作を示すタイミング
チャートである。 22……カウンタ 40……第1のクロック発生回路 52……第2のクロック発生回路 76……切換え回路
FIG. 1 is a circuit diagram showing an embodiment of a frequency divider according to the present invention, FIGS. 2 (a) to (h) are timing charts showing the operation of FIG. 1, and FIG. 3 is a conventional frequency divider. 4 (a) and 4 (b) are timing charts showing the operation of FIG. 3, FIG. 5 is a circuit diagram showing another example of the conventional multiplying circuit, FIG. 6 ( 5A to 5C are timing charts showing the operation of FIG. 22 counter 40 first clock generation circuit 52 second clock generation circuit 76 switching circuit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】クロック信号のパルスをカウントするカウ
ンタを含み、このカウント値が所定値に達する毎に、カ
ウント所要時間に対応したパルス幅を有する分周信号を
発生する分周器において、 前記クロック信号の立上がりおよび立下がりタイミング
に同期して該クロック信号と同位相のクロック信号を出
力する第1のクロック発生回路と、 前記クロック信号の立下がりおよび立上がりタイミング
に同期して該クロック信号と逆位相のクロック信号を出
力する第2のクロック発生回路と、 前記カウンタがカウントアップした時点で第1または第
2のクロック発生回路を交互に動作/不動作とし、前記
カウンタに入力されるクロック信号を第1または第2の
クロック信号のいずれか一方に切替える切替信号を出力
する切替回路と、 を含み、 前記第1のクロック発生回路は、 前記切替信号を前記クロック信号の立ち上がり及び立ち
下がりタイミングに同期してラッチすることによって、
前記切替信号を前記クロック信号の立ち上がり及び立ち
下がりタイミングに同期して変化する信号に変換する第
1のクロック成形回路と、 前記第1のクロック成形回路によって成形された切替信
号に基づいて前記第1のクロック信号を前記カウンタに
出力する第1の選択回路と、 を含み、 前記第2のクロック発生回路は、 前記切替信号を前記クロック信号の立ち上がり及び立ち
下がりタイミングに同期してラッチし、ラッチした信号
を反転することによって、前記切替信号を前記クロック
信号の立ち上がり及び立ち下がりタイミングに同期して
変化する信号に変換する第2のクロック成形回路と、 前記第1のクロック成形回路によって成形された切替信
号に基づいて前記第1のクロック信号を前記カウンタに
出力する第2の選択回路と、 を含むことを特徴とする分周器。
1. A frequency divider that includes a counter that counts pulses of a clock signal and that generates a frequency-divided signal having a pulse width corresponding to a count required time every time the count value reaches a predetermined value. A first clock generation circuit for outputting a clock signal having the same phase as the clock signal in synchronization with the rising and falling timings of the signal, and an opposite phase to the clock signal in synchronization with the falling and rising timings of the clock signal A second clock generation circuit that outputs a clock signal of the first and second clock generation circuits. When the counter counts up, the first or second clock generation circuit is turned on / off alternately, and the clock signal input to the counter is changed to a second A switching circuit that outputs a switching signal for switching to one of the first and second clock signals, Serial first clock generation circuit, by latching in synchronization with the switching signal to the rise and fall timing of the clock signal,
A first clock shaping circuit that converts the switching signal into a signal that changes in synchronization with the rising and falling timings of the clock signal; A first selection circuit that outputs the clock signal to the counter, wherein the second clock generation circuit latches and latches the switching signal in synchronization with rising and falling timings of the clock signal. A second clock shaping circuit that inverts the signal to convert the switching signal into a signal that changes in synchronization with the rising and falling timings of the clock signal; and a switching shaping circuit formed by the first clock shaping circuit. A second selection circuit that outputs the first clock signal to the counter based on a signal; Divider, which comprises.
JP21212190A 1990-08-10 1990-08-10 Divider Expired - Lifetime JP2641964B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21212190A JP2641964B2 (en) 1990-08-10 1990-08-10 Divider

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21212190A JP2641964B2 (en) 1990-08-10 1990-08-10 Divider

Publications (2)

Publication Number Publication Date
JPH0496422A JPH0496422A (en) 1992-03-27
JP2641964B2 true JP2641964B2 (en) 1997-08-20

Family

ID=16617230

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21212190A Expired - Lifetime JP2641964B2 (en) 1990-08-10 1990-08-10 Divider

Country Status (1)

Country Link
JP (1) JP2641964B2 (en)

Also Published As

Publication number Publication date
JPH0496422A (en) 1992-03-27

Similar Documents

Publication Publication Date Title
US3911368A (en) Phase interpolating apparatus and method
US4041403A (en) Divide-by-N/2 frequency division arrangement
US4443887A (en) Frequency-dividing circuit
US3571728A (en) Fractional frequency divider
US4942595A (en) Circuit for dividing the frequency of a digital clock signal by two and one-half
JP2641964B2 (en) Divider
JP2005045507A (en) Non-integer frequency divider
US4494243A (en) Frequency divider presettable to fractional divisors
JPS62251674A (en) Frequency abnormality detecting circuit
JP2986881B2 (en) Frequency divider for phase difference pulse signal
JP3435751B2 (en) Divider
JP2659186B2 (en) Digital variable frequency divider
JPH0879029A (en) Four-phase clock pulse generating circuit
JP2689539B2 (en) Divider
JP3427939B2 (en) Delay circuit
JPH05347555A (en) Variable frequency divider circuit
JP3382329B2 (en) Odd counter circuit
SU839066A1 (en) Repetition rate scaler
JPS6117636Y2 (en)
JP2669343B2 (en) Divider circuit
SU1669079A1 (en) Controlled pulse repetition rate divider
JP2841360B2 (en) Timing generator
JPH0277914A (en) Multi-phase clock generating circuit
JPS6350719B2 (en)
JPS588612B2 (en) digital phase comparator