JPH04306930A - Clock fault detector - Google Patents

Clock fault detector

Info

Publication number
JPH04306930A
JPH04306930A JP3071713A JP7171391A JPH04306930A JP H04306930 A JPH04306930 A JP H04306930A JP 3071713 A JP3071713 A JP 3071713A JP 7171391 A JP7171391 A JP 7171391A JP H04306930 A JPH04306930 A JP H04306930A
Authority
JP
Japan
Prior art keywords
clock
outputs
output
comparator
cka
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3071713A
Other languages
Japanese (ja)
Inventor
Naohide Kuroda
黒田 直秀
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP3071713A priority Critical patent/JPH04306930A/en
Publication of JPH04306930A publication Critical patent/JPH04306930A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To quickly and surely detect clock interrupt and clock fluctuation by deciding the state of a clock depending whether or not the number of times of occurrence of clock state changes extracted from a transmission line is contained within a period of a reference clock in a terminal equipment. CONSTITUTION:Frequency dividers 11, 12 frequency-divide a clock CK1 extracted from a transmission line and a reference clock CK2 in a terminal equipment to output CKA, CKB. The CKB is inputted to a timing generator 61 and used for a reference of a reset pulse and a timing pulse. Counters 21, 22 count the number of leading edges and the number of trailing edges of the CKA between adjacent reset pulses and they are added by an adder 31, which outputs the sum as the number of times N1 of state changes of the CKA. If frequencies of the CKA, CKB are let to be fA, fB, then the relation of N2<=N1(N2+1) is established, where N2 is a natural number having relations of N2.fB<=2.fA <(N2+1).fB. A comparator 41 outputs an error signal in the case of N1>(N2+1) and a comparator 42 outputs an error signal in the case of N1<N2. The error signal is used for a reference of an error flag output EF by a discriminator 51.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、端末装置の電源投入時
のクロック安定化状態の検出及び伝送路断時のクロック
断の検出に用いるクロック異常検出器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock abnormality detector used for detecting a clock stabilization state when a terminal device is powered on and detecting a clock disconnection when a transmission line is disconnected.

【0002】0002

【従来の技術】クロック断検出回路は、伝送路上から抽
出したクロックに端末内の基準クロックを同期させて使
用する場合のクロックの異常検出に用いられるが、従来
は特公平3−16442に示されるように、伝送路から
抽出したクロックと端末装置内の基準クロックとのビー
ト周波数を求め、該ビート周波数を計数、比較して異常
を検出していた。
2. Description of the Related Art A clock disconnection detection circuit is used to detect an abnormality in a clock when a reference clock in a terminal is synchronized with a clock extracted from a transmission path. In this way, the beat frequency between the clock extracted from the transmission path and the reference clock in the terminal device is determined, and the beat frequency is counted and compared to detect an abnormality.

【0003】0003

【発明が解決しようとする課題】従来の方法では、2つ
のクロックが互いに整数倍の関係に無い場合、両クロッ
クの最大公約数となる周波数まで分周してからビート周
波数を検出する必要が有る為に検出周期が長くなり、ク
ロック断や著しいジッター等を早期、確実に検出するこ
とは困難であった。
[Problem to be Solved by the Invention] In the conventional method, if two clocks are not in an integral multiple relationship with each other, it is necessary to detect the beat frequency after dividing the frequency to the greatest common divisor of both clocks. Therefore, the detection cycle becomes long, making it difficult to detect clock interruptions, significant jitter, etc. early and reliably.

【0004】本発明はかかる点を改善し、その目的とす
るところはクロック断及びクロック変動を迅速、確実に
検出する手段を提供することにある。
[0004] The present invention aims to improve this problem and to provide a means for quickly and reliably detecting clock interruptions and clock fluctuations.

【0005】[0005]

【課題を解決するための手段】本発明のクロック異常検
出器は、伝送路から抽出したクロックに端末装置内の基
準クロックを同期化させて使用する端末装置のクロック
異常検出器において、伝送路から抽出したクロック(C
K1 )及び端末装置内の基準クロック(CK2)の内
どちらか一方を分周比M1 で分周した出力CKA (
周波数fA )及び他方を分周比M2 で分周した出力
CKB (周波数fB)を用い(但し、M1 ,M2 
は、2・fA >fB を満たす任意の自然数)、CK
A の立ち上がりを計数して出力し、    リセット
パルスによりリセットされるカウンタ1と、CKAの立
ち下がりを計数して出力し、前記リセットパルスにより
リセットされるカウンタ2と、前記カウンタ1及びカウ
ンタ2の出力を加算し、その和N1 を出力する加算器
と、前記加算器の出力N1 と、値N2 (但しN2 
は、N2 ・fB <2・fA <(N2 +1)・f
B を満たす任意の自然数)を比較し、N1 <N2 
を検出し出力する比較器1と、前記加算器の出力N1 
と(N2 +1)を比較し、N1>(N2 +1)を検
出し出力する比較器2と、前記比較器1及び比較器2の
出力とタイミングパルスを入力としてクロックの状態を
判定し状態を示すフラグを出力する判定器と、CKB 
を取り込んで、前記リセットパルス及びタイミングパル
スを発生させるタイミング発生器から成ることを特徴と
する。
[Means for Solving the Problems] The clock abnormality detector of the present invention is a clock abnormality detector for a terminal device that synchronizes a reference clock in the terminal device with a clock extracted from the transmission path. Extracted clock (C
The output CKA (
Using the frequency fA) and the output CKB (frequency fB) obtained by dividing the other by the frequency division ratio M2 (however, M1, M2
is any natural number satisfying 2・fA > fB), CK
A counter 1 that counts and outputs the rising edge of CKA and is reset by a reset pulse, a counter 2 that counts and outputs the falling edge of CKA and is reset by the reset pulse, and the outputs of the counter 1 and counter 2. an adder that adds the sum N1 and outputs the sum N1, the output N1 of the adder, and the value N2 (however, N2
is N2・fB <2・fA <(N2 +1)・f
N1 < N2
a comparator 1 that detects and outputs the output N1 of the adder;
and (N2 +1), detects and outputs N1>(N2 +1), and inputs the outputs and timing pulses of the comparators 1 and 2 to determine the state of the clock and indicate the state. A determiner that outputs a flag and a CKB
The present invention is characterized by comprising a timing generator that takes in the reset pulse and the timing pulse.

【0006】また、本発明のクロック異常検出器は、前
記加算器の出力N1 と、ある自然数N3 (但しN3
 は、2・fA /fB の少数部分Mが、M<0.5
ならN3 =(N2 +1)、M>0.5ならN3 =
N2 )を比較し、N1 =N3 を検出する比較器3
と、前記タイミング発生器の出力するタイミングパルス
のタイミングで比較器3の出力がN1 ≠N3 ならカ
ウントアップ、N1 =N3 ならリセットするカウン
タ2と、前記タイミングパルスのタイミングで比較器3
の出力がN1 =N3 の時、カウンタ2の出力N4 
と(K−1)を比較(但しKは、M<0.5の時K<1
/M<(K+1)、M>0.5の時K<1/(M−0.
5)<(K+1)となる自然数)し、N4 <(K−1
)を検出する比較器4と、前記N4 とKを比較し、N
4 >Kを検出する比較器5と、前記比較器1、比較器
2、比較器4、比較器5の出力及びタイミングパルスか
らクロックの状態を判定し、状態を示すフラグを出力す
る判定器を持つことを特徴とする。
[0006] Furthermore, the clock anomaly detector of the present invention uses the output N1 of the adder and a certain natural number N3 (however, N3
is, the fractional part M of 2・fA /fB is M<0.5
If N3 = (N2 +1), if M>0.5 then N3 =
Comparator 3 that compares N2 ) and detects N1 = N3
If the output of the comparator 3 is N1 ≠ N3 at the timing of the timing pulse outputted by the timing generator, the counter 2 counts up, and if N1 = N3, the counter 2 is reset, and at the timing of the timing pulse, the comparator 3
When the output of counter 2 is N1 = N3, the output of counter 2 is N4
Compare (K-1) (where K is K<1 when M<0.5
/M<(K+1), when M>0.5, K<1/(M-0.
5) <(K+1), a natural number), and N4 <(K-1)
), the comparator 4 compares N4 and K, and N
A comparator 5 that detects >K, and a determiner that determines the state of the clock from the outputs and timing pulses of the comparators 1, 2, 4, and 5, and outputs a flag indicating the state. characterized by having

【0007】[0007]

【実施例】図1は、本発明の第一の実施例を示すブロッ
ク図である。
Embodiment FIG. 1 is a block diagram showing a first embodiment of the present invention.

【0008】分周器11,12は、それぞれ1/M1 
,1/M2 の分周器であり、CK1 及びCK2 を
分周してCKA 及びCKB を出力する。このうち、
CKB はタイミング発生器61の入力となり、リセッ
トパルス及びタイミングパルスの基準となる。他方、C
KA はカウンタ21及び22のクロックとなる。
[0008] The frequency dividers 11 and 12 each have a frequency of 1/M1.
, 1/M2, which divides the frequencies of CK1 and CK2 and outputs CKA and CKB. this house,
CKB becomes an input to the timing generator 61 and serves as a reference for reset pulses and timing pulses. On the other hand, C
KA becomes a clock for counters 21 and 22.

【0009】カウンタ21は、隣り合うリセットパルス
間のCKA の立ち上がりの数を、カウンタ22は立ち
下がりの数を計数し、出力する。
A counter 21 counts and outputs the number of rising edges of CKA between adjacent reset pulses, and a counter 22 counts and outputs the number of falling edges.

【0010】カウンタ21及び22の出力は、加算器3
1で加算され、隣り合うリセットパルス間のCKA の
状態変化の回数N1 として出力される。
The outputs of the counters 21 and 22 are sent to the adder 3
1 and output as the number N1 of state changes of CKA between adjacent reset pulses.

【0011】ここで、リセットパルスの間隔はCKB 
の周波数によって決まるから、CKA及びCKB の周
波数をそれぞれfA 及びfB と置いた時、N2 ・
fB <2・fA <(N2 +1)・fB となる自
然数N2 に対して、N2 <N1 (N2 +1)と
いう関係が成立する。比較器41及び42はN1 とN
2がこの関係を満たすか判定するためのもので、比較器
41はN1 >(N2 +1)の場合、比較器42はN
1<N2 の場合に、エラー信号を出力する。
Here, the reset pulse interval is CKB
Since it is determined by the frequency of , when the frequencies of CKA and CKB are respectively fA and fB, N2 ・
For a natural number N2 such that fB <2·fA <(N2 +1)·fB, the relationship N2 <N1 (N2 +1) holds true. Comparators 41 and 42 are N1 and N
2 satisfies this relationship. If N1 > (N2 + 1), the comparator 42 determines whether N1 satisfies this relationship.
If 1<N2, an error signal is output.

【0012】エラー信号は判定器51に取り込まれ、エ
ラーフラグ出力EFの基準となる。もしCKA が本来
の周波数より高いか、CKB が本来の周波数より低い
場合、N1 >(N2 +1)となり比較器41がエラ
ー信号を出力するために、EFはエラー信号を出力する
。逆に、CKA が本来の周波数より低いかCKB が
本来の周波数より高い場合にはN1 <N2 となり、
比較器42がエラー信号を出力するために、EFはエラ
ー信号を出力する。
The error signal is taken into the determiner 51 and serves as a reference for the error flag output EF. If CKA is higher than the original frequency or CKB is lower than the original frequency, N1 > (N2 + 1) and the comparator 41 outputs an error signal, so EF outputs an error signal. Conversely, if CKA is lower than the original frequency or CKB is higher than the original frequency, N1 < N2,
Since comparator 42 outputs an error signal, EF outputs an error signal.

【0013】ここで、比較器の出力の時間的な変化につ
いて考える。リセットパルス直後はカウンタ21及び2
2がリセットされた状態になっている為、N1 =0と
なっている。従って、当然N1 <N2 となる為比較
器42はエラー信号を出力している。CKA の状態変
化が起きる毎にカウンタ21又は22のどちらかがカウ
ントアップし、従ってN1 も1づつ増加する。そして
、N1 =N2 となった時点で比較器42のエラー出
力は停止し、次のリセットパルスまで停止した状態が継
続する。即ち、比較器42がエラー信号を出力するのは
、回路の動作上、リセット信号が発生する毎に起きる現
象であり、それ自体はクロックの異常とは1対1で対応
していない。 故に、N1 <N2 の異常判定は、CKB の一周期
の終了直前、即ち次回のリセットパルスの直前に、タイ
ミングパルスに同期して行なう必要がある。
[0013] Here, consider the temporal change in the output of the comparator. Immediately after the reset pulse, counters 21 and 2
2 is in a reset state, so N1 = 0. Therefore, since N1 <N2, the comparator 42 outputs an error signal. Each time a change in the state of CKA occurs, either counter 21 or 22 counts up, and therefore N1 also increases by one. Then, when N1 = N2, the error output of the comparator 42 stops, and the stopped state continues until the next reset pulse. That is, the fact that the comparator 42 outputs an error signal is a phenomenon that occurs every time a reset signal is generated due to the operation of the circuit, and as such does not have a one-to-one correspondence with an abnormality in the clock. Therefore, the abnormality determination of N1 <N2 needs to be performed in synchronization with the timing pulse immediately before the end of one cycle of CKB, that is, immediately before the next reset pulse.

【0014】逆に、比較器41は、N1 >(N2 +
1)を検出した場合にエラー信号を出力しているが、こ
の状態は、N1 とN2 の定義N2 <N1 <(N
2 +1)から考えると、CKA とCKB が正常な
状態に有る限り起こり得ない。更に、N1 >(N2 
+1)となる原因の一つとして、CKB の切断状態と
いう可能性が有り、この場合にはタイミングパルスが発
生しない。従ってN1 >(N2 +1)の場合の異常
判定は、タイミングパルスとは無関係に、比較器41が
エラー信号を出力した時点で、EFはエラー信号を出力
する必要がある。
On the contrary, the comparator 41 calculates that N1 >(N2 +
1) is detected, an error signal is output, but this state is based on the definition of N1 and N2: N2 < N1 < (N
2 + 1), this cannot occur as long as CKA and CKB are in a normal state. Furthermore, N1 > (N2
One of the causes of +1) is the possibility that CKB is disconnected, and in this case, no timing pulse is generated. Therefore, for abnormality determination in the case of N1 > (N2 +1), the EF needs to output an error signal at the time when the comparator 41 outputs the error signal, regardless of the timing pulse.

【0015】図2は、第一の実施例のタイミングチャー
トの例である。
FIG. 2 is an example of a timing chart of the first embodiment.

【0016】ある周波数のCKA (101)に対して
、CKB の周波数が変化した場合の比較器及び判定器
の出力を示している。
The outputs of the comparator and determiner are shown when the frequency of CKB changes with respect to CKA (101) at a certain frequency.

【0017】(a)は、本来の周波数関係に有る場合で
あり、CKB (111)及びそれに対応するタイミン
グパルス(121)及びリセットパルス(131)を示
している。(b)は、CKB (112)の周波数が通
常時よりも高い場合であり、タイミングパルス(122
)の立ち下がりの時点でN1 <N2 の場合、比較器
42のエラー信号出力(142)が‘H’レベルとなる
ために、判定器51はクロックの異常と判定し、エラー
フラグ出力(152)は‘H’レベルとなる。(c)は
、CKB (113)の周波数が通常時より低い場合で
あり、N1 >(N2 +1)となった時点で比較器4
1の出力(163)は‘H’レベルとなり、判定器51
はクロックの異常と判定してエラーフラグ出力(153
)は‘H’レベルとなる。
(a) shows the case where the original frequency relationship exists, and shows CKB (111) and its corresponding timing pulse (121) and reset pulse (131). (b) is a case where the frequency of CKB (112) is higher than normal, and the timing pulse (122)
) when N1 < N2, the error signal output (142) of the comparator 42 becomes 'H' level, so the determiner 51 determines that the clock is abnormal and outputs the error flag (152). becomes 'H' level. (c) is a case where the frequency of CKB (113) is lower than normal, and when N1 > (N2 +1), the comparator 4
1's output (163) becomes 'H' level, and the determiner 51
determines that the clock is abnormal and outputs an error flag (153
) becomes 'H' level.

【0018】図3は、本発明の第二の実施例を示すブロ
ック図である。
FIG. 3 is a block diagram showing a second embodiment of the present invention.

【0019】本実施例では、タイミングパルス間のCK
A の状態変化の回数の端数分M(Mは、2・fA /
fB の少数部分に等しい)を利用してクロック異常の
検出精度を上げている。即ち、M<0.5の場合、K<
1/M<(K+1)となる自然数Kを考えれば、隣り合
ったタイミングパルスの間のCKA の状態変化の回数
が(N2 +1)回となるのは、タイミングパルスがK
又は(K+1)回発生する内の一回であり、M>0.5
の場合、K<1/(M−0.5)<(K+1)となる自
然数Kを考えれば、隣り合ったタイミングパルスの間の
CKA の状態変化の回数がN2 回となるのは、タイ
ミングパルスがK又は(K+1)回発生する内の一回で
ある。
In this embodiment, the CK between timing pulses is
M is the fraction of the number of state changes of A (M is 2・fA/
(equal to the fractional part of fB) is used to improve the accuracy of clock abnormality detection. That is, if M<0.5, K<
Considering a natural number K such that 1/M<(K+1), the number of state changes of CKA between adjacent timing pulses is (N2 +1) because the timing pulse is K.
or once out of (K+1) times, M>0.5
In the case of , considering a natural number K such that K<1/(M-0.5)<(K+1), the number of state changes of CKA between adjacent timing pulses is N2 times. occurs once out of K or (K+1) times.

【0020】実際の回路は、第一の実施例の回路に加え
て、加算器36の出力N1 と自然数N3 (但しN3
 は、M<0.5の時(N2 +1)、M>0.5の時
N2 )を比較する比較器48と、タイミングパルスの
立ち下がりで比較器48の出力が‘H’レベル(N1 
=N3 )の時リセットし、‘L’レベルの時カウント
アップする同期式リセットのカウンタ76と、タイミン
グパルスの立ち下がりで、比較器48の出力が‘H’レ
ベルの場合にカウンタ76の出力N5 と(K−1)を
比較し、N4 <(K−1)ならエラー信号を出力する
比較器77と、N4 とKを比較しN4 >Kならエラ
ー信号を出力する比較器78とを持ち、クロック異常の
判定条件としては、判定器56の入力として比較器77
及び78の出力が加わっている。
In addition to the circuit of the first embodiment, the actual circuit includes the output N1 of the adder 36 and the natural number N3 (however, N3
is a comparator 48 that compares (N2 + 1) when M<0.5 and N2 when M>0.5, and the output of the comparator 48 goes to 'H' level (N1) at the falling edge of the timing pulse.
=N3), and counts up when it is at the 'L' level, and when the output of the comparator 48 is at the 'H' level at the falling edge of the timing pulse, the output of the counter 76 is N5. and (K-1), and outputs an error signal if N4 <(K-1); and a comparator 78, which compares N4 and K and outputs an error signal if N4 > K. The condition for determining clock abnormality is that the comparator 77 is used as an input to the determiner 56.
and 78 outputs are added.

【0021】図4は、第二の実施例のタイミングチャー
トの例である。
FIG. 4 is an example of a timing chart of the second embodiment.

【0022】ある周波数のCKB から生成したタイミ
ングパルス(301)に対して、CKA の周波数が変
化した場合の比較器及び判定器の出力の変化を示してい
る。 (a)はCKA (311)が本来の周波数の場合であ
り、比較器48の出力(321)は、タイミングパルス
の立ち下がりでは、‘H’レベルと‘L’レベルを一回
おきに繰り返している。(b)では、CKA (312
)の周波数が通常より高い為に、比較器48の出力(3
22)がタイミングパルスの立ち下がりの時点で二回続
けて‘H’レベルとなった場合、カウンタ76の値N4
 =0となっている為にN4<(K−1)が成立して比
較器77の出力(332)がエラー信号を出力し、判定
器56のエラーフラグ出力(352)も‘H’レベルと
なる。(c)では、CKA (313)の周波数が通常
より高いために、カウンタ76の出力N4 がN4 =
3となった時点でN4 >K(K=2故)となるために
比較器78のエラー出力(343)が‘H’レベルとな
り、同時に判定器56の出力(353)も‘H’レベル
となる。
The figure shows changes in the outputs of the comparator and determiner when the frequency of CKA changes with respect to a timing pulse (301) generated from CKB of a certain frequency. (a) shows the case where CKA (311) is at the original frequency, and the output (321) of the comparator 48 repeats 'H' level and 'L' level every other time at the falling edge of the timing pulse. There is. In (b), CKA (312
) is higher than normal, the output of comparator 48 (3
22) becomes 'H' level twice in a row at the falling edge of the timing pulse, the value N4 of the counter 76
= 0, N4<(K-1) holds true, the output (332) of the comparator 77 outputs an error signal, and the error flag output (352) of the determiner 56 also becomes 'H' level. Become. In (c), since the frequency of CKA (313) is higher than normal, the output N4 of the counter 76 becomes N4 =
3, N4 > K (because K = 2), so the error output (343) of the comparator 78 becomes 'H' level, and at the same time, the output (353) of the determiner 56 also becomes 'H' level. Become.

【0023】[0023]

【発明の効果】以上述べたように、本発明のクロック異
常検出器の構成によると、整数倍の関係に無いクロック
の異常を短時間に検出し、またはクロックの安定を検出
することが可能となるために、装置の早期立ち上げ等に
大きく寄与することができるという効果がある。
[Effects of the Invention] As described above, according to the configuration of the clock abnormality detector of the present invention, it is possible to detect clock abnormalities that are not related to integral multiples in a short time, or to detect clock stability. This has the effect of greatly contributing to early start-up of the device.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の一実施例を示すブロック図。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】図1の回路の動作説明用タイミングチャートを
示す図。
FIG. 2 is a diagram showing a timing chart for explaining the operation of the circuit in FIG. 1;

【図3】本発明の他の実施例を示すブロック図。FIG. 3 is a block diagram showing another embodiment of the present invention.

【図4】図3の回路の動作説明用タイミングチャートを
示す図。
FIG. 4 is a diagram showing a timing chart for explaining the operation of the circuit in FIG. 3;

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

11,12,16,17  分周器 21,22,26,27  カウンタ 31,36  加算器 41,42,46,47,48  比較器51,56 
 判定器 41,42,46,47,48  比較器51,56 
 判定器 61,66  タイミング発生器 76,77  検出器 101,311,312,313  CKA111,1
12,113  CKB  121,122,123,301  タイミングパルス
131,132,133  リセットパルス142  
比較器1出力 152,153  判定器出力(EF:エラーフラグ)
163  比較器2出力 321,322,323  比較器3出力332  比
較器4出力 343  比較器5出力
11, 12, 16, 17 Frequency divider 21, 22, 26, 27 Counter 31, 36 Adder 41, 42, 46, 47, 48 Comparator 51, 56
Determiner 41, 42, 46, 47, 48 Comparator 51, 56
Determiner 61, 66 Timing generator 76, 77 Detector 101, 311, 312, 313 CKA 111, 1
12,113 CKB 121,122,123,301 Timing pulse 131,132,133 Reset pulse 142
Comparator 1 output 152, 153 Determiner output (EF: error flag)
163 Comparator 2 output 321, 322, 323 Comparator 3 output 332 Comparator 4 output 343 Comparator 5 output

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】伝送路から抽出したクロックに端末装置内
の基準クロックを同期化させて使用する端末装置のクロ
ック異常検出器において、伝送路から抽出したクロック
(CK1 )及び端末装置内の基準クロック(CK2 
)の内どちらか一方を分周比M1 で分周した出力CK
A (周波数fA )及び他方を分周比M2 で分周し
た出力CKB (周波数fB )を用い(但し、M1 
,M2は、2・fA >fB を満たす任意の自然数)
、CKA の立ち上がりを計数して出力し、リセットパ
ルスによりリセットされるカウンタ1と、CKAの立ち
下がりを計数して出力し、前記リセットパルスによりリ
セットされるカウンタ2と、前記カウンタ1及びカウン
タ2の出力を加算し、その和N1 を出力する加算器と
、前記加算器の出力N1 と、値N2 (但しN2 は
、N2 ・fB <2・fA <(N2 +1)・fB
 を満たす任意の自然数)を比較し、N1 <N2 を
検出し出力する比較器1と、前記加算器の出力N1 と
(N2+1)を比較し、N1 >(N2 +1)を検出
し出力する比較器2と、前記比較器1及び比較器2の出
力とタイミングパルスを入力としてクロックの状態を判
定し状態を示すフラグを出力する判定器と、CKB を
取り込んで、前記リセットパルス及びタイミングパルス
を発生させるタイミング発生器から成ることを特徴とす
るクロック異常検出器。
Claim 1: In a clock abnormality detector for a terminal device that synchronizes a reference clock in the terminal device with a clock extracted from the transmission path, the clock (CK1) extracted from the transmission path and the reference clock in the terminal device are used. (CK2
) is divided by the frequency division ratio M1.
A (frequency fA) and the output CKB (frequency fB) obtained by dividing the other by the frequency division ratio M2 (however, M1
, M2 is any natural number that satisfies 2・fA > fB)
, a counter 1 that counts and outputs the rising edge of CKA and is reset by a reset pulse, a counter 2 that counts and outputs the falling edge of CKA and is reset by the reset pulse, and a counter 1 and a counter 2 that count and output the rising edge of CKA and are reset by the reset pulse. an adder that adds the outputs and outputs the sum N1; the output N1 of the adder; and the value N2 (where N2 is N2 ・fB < 2 ・fA < (N2 + 1) ・fB
a comparator 1 that compares N1 < N2 (any natural number that satisfies) and outputs the result; and a comparator 1 that compares the output N1 of the adder with (N2 + 1) and detects and outputs N1 > (N2 + 1). 2, a determiner that inputs the outputs and timing pulses of the comparators 1 and 2, determines the state of the clock, and outputs a flag indicating the state; and a determiner that takes in CKB and generates the reset pulse and timing pulse. A clock anomaly detector comprising a timing generator.
【請求項2】「請求項1」のクロック異常検出器におい
て、前記加算器の出力N1 と、ある自然数N3 (但
しN3 は、2・fA /fB の少数部分Mが、M<
0.5ならN3 =(N2 +1)、M>0.5ならN
3 =N2 )を比較し、N1 =N3 を検出する比
較器3と、前記タイミング発生器の出力するタイミング
パルスのタイミングで比較器3の出力がN1 ≠N3 
ならカウントアップ、N1 =N3 ならリセットする
カウンタ2と、前記タイミングパルスのタイミングで比
較器3の出力がN1 =N3 の時、カウンタ2の出力
N4と(K−1)を比較(但しKは、M<0.5の時K
<1/M<(K+1)、M>0.5の時K<1/(M−
0.5)<(K+1)となる自然数)し、N4 <(K
−1)を検出する比較器4と、前記N4 とKを比較し
、N4 >Kを検出する比較器5と、前記比較器1、比
較器2、比較器4、比較器5の出力及びタイミングパル
スからクロックの状態を判定し、状態を示すフラグを出
力する判定器を持つことを特徴とするクロック異常検出
器。
[Claim 2] In the clock abnormality detector of Claim 1, the output N1 of the adder and a certain natural number N3 (N3 is such that the decimal part M of 2·fA /fB is such that M<
If 0.5, N3 = (N2 +1), if M>0.5, N
3 = N2) and detects N1 = N3, and the output of the comparator 3 at the timing of the timing pulse output from the timing generator is N1 ≠ N3.
If N1 = N3, the counter 2 counts up, and if N1 = N3, it resets. When the output of the comparator 3 is N1 = N3 at the timing of the timing pulse, compare the output N4 of the counter 2 with (K-1) (however, K is When M<0.5, K
<1/M<(K+1), when M>0.5, K<1/(M-
0.5) < (K + 1)), and N4 < (K
-1), a comparator 5 that compares N4 and K and detects N4 > K, and outputs and timings of the comparators 1, 2, 4, and 5. A clock abnormality detector characterized by having a determiner that determines the state of a clock from pulses and outputs a flag indicating the state.
JP3071713A 1991-04-04 1991-04-04 Clock fault detector Pending JPH04306930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3071713A JPH04306930A (en) 1991-04-04 1991-04-04 Clock fault detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3071713A JPH04306930A (en) 1991-04-04 1991-04-04 Clock fault detector

Publications (1)

Publication Number Publication Date
JPH04306930A true JPH04306930A (en) 1992-10-29

Family

ID=13468449

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3071713A Pending JPH04306930A (en) 1991-04-04 1991-04-04 Clock fault detector

Country Status (1)

Country Link
JP (1) JPH04306930A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08274707A (en) * 1995-03-31 1996-10-18 Nec Corp Radio transmission and reception equipment
FR2782387A1 (en) * 1998-08-13 2000-02-18 St Microelectronics Sa Circuit for detecting loss of periodic logic signal in phase locked loops or clock signal circuits, uses a divide-by-two divider
US6333646B1 (en) 1998-05-13 2001-12-25 Mitsubishi Denki Kabushiki Kaisha Abnormal clock detector and abnormal clock detecting apparatus
EP1333579A1 (en) 2002-01-30 2003-08-06 Infineon Technologies AG Device for recognising clock failure
EP1936392A1 (en) 2006-12-20 2008-06-25 Fujitsu Limited Automatic frequency monitoring circuit, electronic device, automatic frequency monitoring method and automatic frequency monitoring program
EP2053740A2 (en) * 2007-10-25 2009-04-29 Continental Automotive GmbH Method and device for operating a circuit arrangement

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08274707A (en) * 1995-03-31 1996-10-18 Nec Corp Radio transmission and reception equipment
US6333646B1 (en) 1998-05-13 2001-12-25 Mitsubishi Denki Kabushiki Kaisha Abnormal clock detector and abnormal clock detecting apparatus
DE19983213B4 (en) * 1998-05-13 2006-02-09 Mitsubishi Denki K.K. Detector device for detecting abnormal clocks
FR2782387A1 (en) * 1998-08-13 2000-02-18 St Microelectronics Sa Circuit for detecting loss of periodic logic signal in phase locked loops or clock signal circuits, uses a divide-by-two divider
US6246261B1 (en) 1998-08-13 2001-06-12 Stmicroelectronics S.A. Circuit for detecting the disappearing of a periodic signal
EP1333579A1 (en) 2002-01-30 2003-08-06 Infineon Technologies AG Device for recognising clock failure
EP1936392A1 (en) 2006-12-20 2008-06-25 Fujitsu Limited Automatic frequency monitoring circuit, electronic device, automatic frequency monitoring method and automatic frequency monitoring program
US8311169B2 (en) 2006-12-20 2012-11-13 Fujitsu Limited Automatic frequency monitoring circuit, electronic device, automatic frequency monitoring method, and automatic frequency monitoring program
EP2053740A2 (en) * 2007-10-25 2009-04-29 Continental Automotive GmbH Method and device for operating a circuit arrangement
EP2053740A3 (en) * 2007-10-25 2014-01-08 Continental Automotive GmbH Method and device for operating a circuit arrangement

Similar Documents

Publication Publication Date Title
US7391240B2 (en) Clock anomaly detection circuit and clock anomaly detection method
EP1675267B1 (en) Periodic electrical signal frequency monitoring systems and methods
US6297702B1 (en) Phase lock loop system and method
US4131856A (en) Electrical synchronizing circuits
US4206414A (en) Electrical synchronizing circuits
JPH04306930A (en) Clock fault detector
CN107154800B (en) Detection system and detection method for phase-locked loop losing lock
JP4819707B2 (en) Redundant computing system and computing unit
EP0527780B1 (en) Scaler for synchronous digital clock
JPH01144738A (en) Circuit for protecting window method synchronization
EP0880707B1 (en) Phase- and frequency detector
US6194918B1 (en) Phase and frequency detector with high resolution
JPS61248635A (en) Digital phase locked loop
CA2011029C (en) Frequency detector circuit
JPH0349319A (en) Synchronization detection system
JP3536780B2 (en) Sync source signal switching circuit
KR100221496B1 (en) Synchronizing state monitoring circuit
EP4199354A1 (en) Clock drift monitor
JPH0316442A (en) Clock fault detection system
JPH11355110A (en) Clock abnormality detection circuit
JPH06140928A (en) Drift detection circuit
JPH0567967A (en) Clock generator
JPH07326963A (en) Digital pll circuit
JPH10240374A (en) Clock abnormality detection circuit
JPS62214733A (en) Code error detector