JPH04302218A - Clock interruption detecting circuit - Google Patents

Clock interruption detecting circuit

Info

Publication number
JPH04302218A
JPH04302218A JP3089048A JP8904891A JPH04302218A JP H04302218 A JPH04302218 A JP H04302218A JP 3089048 A JP3089048 A JP 3089048A JP 8904891 A JP8904891 A JP 8904891A JP H04302218 A JPH04302218 A JP H04302218A
Authority
JP
Japan
Prior art keywords
output
flip
flop
clock
clock signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3089048A
Other languages
Japanese (ja)
Inventor
Toshiaki Kobayashi
小林 利秋
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP3089048A priority Critical patent/JPH04302218A/en
Publication of JPH04302218A publication Critical patent/JPH04302218A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

PURPOSE:To make the clock interruption detecting circuit suitable for shortening time for detecting clock interruption, stabilizing the time and being composed of a digital integrated circuit. CONSTITUTION:A clock signal (a) and a timer clock signal (b) have the equal frequency and different phases. When the clock signal (a) is interrupted, an output (c) of a flip-flop 1 is turned to a low (or high) level. Since a flip-flip 1 is turned output (c) at this low level with the rise of the next clock signal (b), afterwards, the output (d) is turned to the low level. Since a flip-flop 3 latches this output (d) at the low level with the rise of the further next clock signal (b), afterwards, the non-inverted output is turned to the low level and therefore, an inverted output (e) is turned to the high level. As the result, the output of an EXOR gate 4 is turned to the high level, a flip-flop 5 latches the output with the rise of the clock signal (b) and a clock interruption detecting signal (f) as the output is turned to the high level.

Description

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

【0001】0001

【産業上の利用分野】本発明は、クロック信号の断を検
出するクロック断検出回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock disconnection detection circuit for detecting disconnection of a clock signal.

【0002】0002

【従来の技術】図3に従来のクロック断検出回路の一例
を示す。この回路は単安定マルチバイブレータ8により
構成されており、端子10にクロック信号が入力される
と、その立上がりでトリガされ、抵抗6およびコンデン
サ7の時定数で決る継続時間がTのローレベルのパルス
を端子15に出力する。ただし、クロック信号が次々に
入力された場合には、そのつど再トリガされ、クロック
信号が入力されている限り、出力はローレベルを維持す
る。そして、クロック信号が断となると、その直前のク
ロック信号の立上りの時点から、時間Tが経過したとき
、出力はハイレベルに変化し、クロック断が検出された
ことになる。
2. Description of the Related Art FIG. 3 shows an example of a conventional clock disconnection detection circuit. This circuit is composed of a monostable multivibrator 8, and when a clock signal is input to a terminal 10, it is triggered at the rising edge of the clock signal, and a low-level pulse whose duration is determined by the time constant of a resistor 6 and a capacitor 7 is T. is output to terminal 15. However, when clock signals are input one after another, the trigger is retriggered each time, and the output maintains a low level as long as the clock signals are input. Then, when the clock signal is cut off, the output changes to a high level when a time T has elapsed from the point in time when the immediately previous clock signal rose, and this means that the clock cutoff has been detected.

【0003】0003

【発明が解決しようとする課題】このようなクロック断
検出回路は、一般通信分野で現用回線の障害監視のため
によく用いられており、その場合、クロック断検出回路
の出力信号は、現用回線から予備回線に切り換えるため
の制御信号として用いられる。ところで、現用回線に障
害が発生し、予備回線に切り替えるとき、通信サービス
が中断する時間はできるだけ短いことが望ましく、従っ
て、クロック断はできるだけ短時間で検出されなければ
ならない。
[Problems to be Solved by the Invention] Such a clock loss detection circuit is often used in the field of general communications to monitor faults in working lines.In this case, the output signal of the clock loss detection circuit is It is used as a control signal to switch from a line to a protection line. Incidentally, when a fault occurs in the working line and the line is switched to the protection line, it is desirable that the time during which communication services are interrupted is as short as possible, and therefore clock interruption must be detected as quickly as possible.

【0004】しかし、従来のクロック断検出回路を、図
3のように汎用集積回路の単安定マルチバイブレータで
構成した場合、現在の汎用集積回路の性能では、クロッ
ク断の検出時間を安定に100ns以下に設定すること
は困難である。
However, when the conventional clock loss detection circuit is configured with a monostable multivibrator of a general-purpose integrated circuit as shown in FIG. It is difficult to set it to .

【0005】また、抵抗およびコンデンサを用いている
が、これらのアナログ素子は回路のディジタルLSI化
の障害となっている。
Although resistors and capacitors are used, these analog elements are an obstacle to converting the circuit into a digital LSI.

【0006】本発明の目的は、このような問題を解決し
、クロック断の検出時間が短く、かつ安定であり、そし
てディジタル集積回路で構成するのに適したクロック断
検出回路を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve these problems and to provide a clock interruption detection circuit which has a short clock interruption detection time, is stable, and is suitable for being constructed with a digital integrated circuit. be.

【0007】[0007]

【課題を解決するための手段】本発明は、クロック信号
の断を検出するクロック断検出回路において、前記クロ
ック信号と周波数が同じで位相が異なるタイマクロック
信号を発生するクロック発生回路と、前記クロック信号
が入力されるごとに、出力が反転する第1のフリップフ
ロップと、前記タイマクロック信号が入力されるごとに
、前記第1のフリップフロップの出力をラッチする第2
のフリップフロップと、前記タイマクロック信号が入力
されるごとに、前記第2のフリップフロップの出力をラ
ッチする第3のフリップフロップと、前記第2および第
3のフリップフロップの出力の排他的論理和をとるゲー
トと、このゲートの出力を前記タイマクロック信号が入
力されるごとにラッチする第4のフリップフロップとを
備えたことを特徴とする。
[Means for Solving the Problems] The present invention provides a clock interruption detection circuit for detecting interruption of a clock signal, which includes a clock generation circuit that generates a timer clock signal having the same frequency as the clock signal but different in phase from the clock signal, and a first flip-flop whose output is inverted each time a signal is input; and a second flip-flop that latches the output of the first flip-flop each time the timer clock signal is input.
a third flip-flop that latches the output of the second flip-flop each time the timer clock signal is input, and an exclusive OR of the outputs of the second and third flip-flops. The fourth flip-flop is characterized in that it includes a gate that takes the value , and a fourth flip-flop that latches the output of the gate every time the timer clock signal is input.

【0008】[0008]

【実施例】次に本発明の実施例について説明する。図1
に本発明によるクロック断検出回路の一例を示す。この
回路は、フリップフロップ1〜3,5および排他的論理
和ゲート4により構成されている。そして、端子10は
クロック断を検出すべきクロック信号aを入力する端子
であり、フリップフロップ1のクロック入力101に接
続されている。 フリップフロップ1の反転出力104
はデータ入力102に接続され、非反転出力103はフ
リップフロップ2のデータ入力202に接続されている
。 フリップフロップ2の非反転出力203はフリップフロ
ップ3のデータ入力302と排他的論理和ゲート4の一
方の入力とに接続され、フリップフロップ3の反転出力
304は論理和ゲート4のもう一方の入力に接続されて
いる。排他的論理和ゲート4の出力はフリップフロップ
5のデータ入力502に接続され、フリップフロップ5
の非反転出力503は出力端子15に接続されている。 フリップフロップ2,3,5のクロック入力201,3
01,501にはPLL回路20からのタイマクロック
信号bが入力されている。
[Example] Next, an example of the present invention will be described. Figure 1
An example of a clock disconnection detection circuit according to the present invention is shown in FIG. This circuit is composed of flip-flops 1 to 3 and 5 and an exclusive OR gate 4. A terminal 10 is a terminal for inputting a clock signal a for detecting clock interruption, and is connected to a clock input 101 of the flip-flop 1. Inverted output 104 of flip-flop 1
is connected to the data input 102, and the non-inverting output 103 is connected to the data input 202 of flip-flop 2. The non-inverting output 203 of flip-flop 2 is connected to the data input 302 of flip-flop 3 and one input of exclusive OR gate 4, and the inverting output 304 of flip-flop 3 is connected to the other input of OR gate 4. It is connected. The output of exclusive OR gate 4 is connected to the data input 502 of flip-flop 5.
The non-inverted output 503 of is connected to the output terminal 15. Clock inputs 201, 3 of flip-flops 2, 3, 5
The timer clock signal b from the PLL circuit 20 is input to 01 and 501.

【0009】PLL回路20は位相比較回路21、フィ
ルタ22、電圧制御発振器23、ならびに分周回路24
により構成されている。クロック信号aは分周回路24
の出力であるタイマクロック信号bと位相比較され、そ
の結果はフィルタ22を通じて電圧制御発振器23に与
えられ、その出力信号の位相が制御される。そして、電
圧制御発振器23の出力は分周回路24で分周され、ク
ロック信号aと周波数が同じで位相の異なるタイマクロ
ック信号bとして位相比較回路21およびフリップフロ
ップ2,3,5に出力される。
The PLL circuit 20 includes a phase comparison circuit 21, a filter 22, a voltage controlled oscillator 23, and a frequency dividing circuit 24.
It is made up of. The clock signal a is passed through the frequency dividing circuit 24
The phase is compared with the timer clock signal b which is the output of , and the result is given to the voltage controlled oscillator 23 through the filter 22, and the phase of the output signal is controlled. The output of the voltage controlled oscillator 23 is divided by the frequency dividing circuit 24 and outputted to the phase comparison circuit 21 and the flip-flops 2, 3, and 5 as a timer clock signal b having the same frequency as the clock signal a but different in phase. .

【0010】次に、図2に示すタイミングチャートを用
いて動作を説明する。まず、クロック信号aが途切れる
ことなく入力されている場合、フリップフロップ1の出
力cは、クロック信号aが入力されるごとに、その立上
りで反転する。フリップフロップ2は、この出力cをタ
イマクロック信号bが入力されるごとに、その立上りで
ラッチし、その結果、その出力dは図のようになる。ま
た、フリップフロップ3はこの出力dを次のタイマクロ
ック信号の立上がりでラッチするので、その出力は出力
dを1クロック分シフトしたものとなり、従ってフリッ
プフロップ3の反転出力eは図のようになる。排他的論
理和ゲート4はこのような出力dと出力eとの排他的論
理和をとるので、常にローレベルとなり、それをラッチ
するフリップフロップ5の出力、すなわちクロック断検
出信号fも常にローレベルとなる。
Next, the operation will be explained using the timing chart shown in FIG. First, when the clock signal a is input without interruption, the output c of the flip-flop 1 is inverted at the rising edge every time the clock signal a is input. The flip-flop 2 latches this output c at the rising edge every time the timer clock signal b is input, and as a result, the output d becomes as shown in the figure. Also, since the flip-flop 3 latches this output d at the next rising edge of the timer clock signal, its output is the output d shifted by one clock, so the inverted output e of the flip-flop 3 is as shown in the figure. . Since the exclusive OR gate 4 takes the exclusive OR of the output d and the output e, it is always at a low level, and the output of the flip-flop 5 that latches it, that is, the clock disconnection detection signal f, is also always at a low level. becomes.

【0011】一方、タイミングt1のクロックを最後に
クロック信号aが断となったとすると、フリップフロッ
プ1の出力cはタイミングt1以降、ローレベルとなる
。フリップフロップ2はこのローレベルの出力cを次の
タイマクロック信号bの立上りb1でラッチするので、
以降、その出力dもローレベルとなる。また、フリップ
フロップ3はさらに次のタイマクロック信号bの立上り
b2でこのローレベルの出力dをラッチするので、その
非反転出力は以降、ローレベルとなり、従って反転出力
eはハイレベルとなる。その結果、排他的論理和ゲート
4の出力はハイレベルとなり、フリップフロップ5はそ
れをタイマクロック信号bの立上りb3でラッチし、そ
の出力であるクロック断検出信号fはハイレベルとなっ
てクロック断の発生が通知される。そして、タイミング
チャートからも分かるように、クロック断となってから
、クロック信号aの2.5周期分の時間Tが経過した時
点で、クロック断検出信号fはハイレベルになる以上、
クロック断によりフリップフロップ1の出力cがローレ
ベルになる場合を例に説明したが、クロック断が発生す
るタイミングによっては、フリップフロップ1の出力が
ハイレベルになることもある。しかし、その場合にも、
フリップフロップ2の非反転出力dと、フリップフロッ
プ3の反転出力eとは必ず反対の論理レベルで固定され
るので、排他的論理和ゲート4の出力は同様のタイミン
グでハイレベルに変化する。
On the other hand, if the clock signal a is cut off after the clock at timing t1, the output c of the flip-flop 1 becomes low level from timing t1 onwards. Flip-flop 2 latches this low level output c at the next rising edge b1 of timer clock signal b, so
After that, the output d also becomes low level. Moreover, since the flip-flop 3 further latches this low level output d at the next rising edge b2 of the timer clock signal b, its non-inverted output thereafter becomes a low level, and therefore the inverted output e becomes a high level. As a result, the output of the exclusive OR gate 4 becomes high level, the flip-flop 5 latches it at the rising edge b3 of the timer clock signal b, and its output, the clock interruption detection signal f, becomes high level and the clock interruption detection signal f becomes high level. occurrence will be notified. As can be seen from the timing chart, the clock interruption detection signal f becomes high level when a time T corresponding to 2.5 cycles of the clock signal a has elapsed after the clock interruption.
Although the case where the output c of the flip-flop 1 becomes low level due to clock interruption has been described as an example, the output of the flip-flop 1 may become high level depending on the timing at which the clock interruption occurs. However, even in that case,
Since the non-inverted output d of the flip-flop 2 and the inverted output e of the flip-flop 3 are always fixed at opposite logic levels, the output of the exclusive OR gate 4 changes to high level at the same timing.

【0012】0012

【発明の効果】以上説明したように本発明のクロック断
検出回路では、そのクロック断検出時間は、クロック断
を検出すべきクロック信号の2.5周期に相当する時間
となる。従って、クロック信号が高速の場合でも短時間
で、かつ安定にクロック断を検出できる。そして、クロ
ック信号が高速になればそれに応じてクロック断検出時
間も短くなるので、高速クロック信号のクロック断検出
に適している。また、回路は論理素子のみで構成できる
ので、ディジタルLSI化に適している。
As described above, in the clock interruption detection circuit of the present invention, the clock interruption detection time corresponds to 2.5 cycles of the clock signal for which clock interruption is to be detected. Therefore, even if the clock signal is high speed, clock disconnection can be detected stably in a short time. As the clock signal becomes faster, the clock interruption detection time also becomes shorter, which is suitable for clock interruption detection of high-speed clock signals. Furthermore, since the circuit can be constructed from only logic elements, it is suitable for digital LSI implementation.

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

【図1】本発明によるクロック断検出回路の一例を示す
回路図である。
FIG. 1 is a circuit diagram showing an example of a clock disconnection detection circuit according to the present invention.

【図2】図1のクロック断検出回路の動作を説明するた
めのタイミングチャートである。
FIG. 2 is a timing chart for explaining the operation of the clock interruption detection circuit of FIG. 1;

【図3】従来のクロック断検出回路の一例を示す回路図
である。
FIG. 3 is a circuit diagram showing an example of a conventional clock disconnection detection circuit.

【図4】図3のクロック断検出回路の動作を示すタイミ
ングチャートである。
FIG. 4 is a timing chart showing the operation of the clock interruption detection circuit of FIG. 3;

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

1〜3,5  フリップフロップ 4  排他的論理和回路 10,15  端子 21  位相比較回路 22  フィルタ 23  電圧制御発振器 24  分周回路 1~3,5 Flip-flop 4 Exclusive OR circuit 10,15 Terminal 21 Phase comparison circuit 22 Filter 23 Voltage controlled oscillator 24 Frequency divider circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】クロック信号の断を検出するクロック断検
出回路において、前記クロック信号と周波数が同じで位
相が異なるタイマクロック信号を発生するクロック発生
回路と、前記クロック信号が入力されるごとに、出力が
反転する第1のフリップフロップと、前記タイマクロッ
ク信号が入力されるごとに、前記第1のフリップフロッ
プの出力をラッチする第2のフリップフロップと、前記
タイマクロック信号が入力されるごとに、前記第2のフ
リップフロップの出力をラッチする第3のフリップフロ
ップと、前記第2および第3のフリップフロップの出力
の排他的論理和をとるゲートと、このゲートの出力を前
記タイマクロック信号が入力されるごとにラッチする第
4のフリップフロップとを備えたことを特徴とするクロ
ック断検出回路。
1. A clock disconnection detection circuit for detecting disconnection of a clock signal, comprising: a clock generation circuit that generates a timer clock signal having the same frequency as the clock signal but a different phase; a first flip-flop whose output is inverted; a second flip-flop that latches the output of the first flip-flop each time the timer clock signal is input; and a second flip-flop that latches the output of the first flip-flop each time the timer clock signal is input; , a third flip-flop that latches the output of the second flip-flop, a gate that takes an exclusive OR of the outputs of the second and third flip-flops, and the output of this gate is connected to the timer clock signal. A clock disconnection detection circuit comprising a fourth flip-flop that latches each input.
【請求項2】前記クロック発生回路はPLL回路である
ことを特徴とする請求項1記載のクロック断検出回路。
2. The clock disconnection detection circuit according to claim 1, wherein the clock generation circuit is a PLL circuit.
JP3089048A 1991-03-29 1991-03-29 Clock interruption detecting circuit Pending JPH04302218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3089048A JPH04302218A (en) 1991-03-29 1991-03-29 Clock interruption detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3089048A JPH04302218A (en) 1991-03-29 1991-03-29 Clock interruption detecting circuit

Publications (1)

Publication Number Publication Date
JPH04302218A true JPH04302218A (en) 1992-10-26

Family

ID=13960001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3089048A Pending JPH04302218A (en) 1991-03-29 1991-03-29 Clock interruption detecting circuit

Country Status (1)

Country Link
JP (1) JPH04302218A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009272766A (en) * 2008-05-01 2009-11-19 Fujitsu Ltd Phase comparator, phase-locked loop circuit, and phase-comparison control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009272766A (en) * 2008-05-01 2009-11-19 Fujitsu Ltd Phase comparator, phase-locked loop circuit, and phase-comparison control method

Similar Documents

Publication Publication Date Title
JP3805820B2 (en) Method and apparatus for a frequency detection circuit for use in a phase locked loop
US6411665B1 (en) Phase locked loop clock extraction
US4855615A (en) Switching circuit avoiding glitches at the instant of switch-over between two clock signals
JPH07154245A (en) Method and device for giving digital signal representing accurately propagation delay in integrated circuit
JPH0129093B2 (en)
JP2653250B2 (en) Unstable state avoidance circuit and method of avoiding unstable state
US4425514A (en) Fixed pulse width, fast recovery one-shot pulse generator
GB1601068A (en) Frequency indicating circuit
JPH04302218A (en) Clock interruption detecting circuit
US4669098A (en) Increased resolution counting circuit
EP0673121A2 (en) Phase lock detector
JP2001021596A (en) Comparator of binary signal and pll circuit using it
US6674309B1 (en) Differential time sampling circuit
JPS6333738B2 (en)
JP2000278120A (en) Dll circuit having erroneous lock preventing function
SU1285578A2 (en) Clock synchronizing device
JP3011047B2 (en) Phase comparison circuit
JP3074953B2 (en) Peak detection circuit
JP2002026704A (en) Clock fault detector and its method
JP2599759B2 (en) Flip-flop test method
KR930005653B1 (en) Clock variable circuit
JPS6348456B2 (en)
JPS63278414A (en) Clock interruption detection circuit
JP2973613B2 (en) Programmable counter
JPS6233394Y2 (en)