JPH11220369A - Clock detecting circuit - Google Patents

Clock detecting circuit

Info

Publication number
JPH11220369A
JPH11220369A JP10021859A JP2185998A JPH11220369A JP H11220369 A JPH11220369 A JP H11220369A JP 10021859 A JP10021859 A JP 10021859A JP 2185998 A JP2185998 A JP 2185998A JP H11220369 A JPH11220369 A JP H11220369A
Authority
JP
Japan
Prior art keywords
clock
edge
load
detection circuit
input clock
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
JP10021859A
Other languages
Japanese (ja)
Inventor
Akio Morikawa
昭夫 森川
Masahiko Muto
雅彦 武藤
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.)
Advantest Corp
Original Assignee
Advantest 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 Advantest Corp filed Critical Advantest Corp
Priority to JP10021859A priority Critical patent/JPH11220369A/en
Publication of JPH11220369A publication Critical patent/JPH11220369A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a clock detecting circuit which can detect whether or not an input clock is present and obtain an optimum detection time by varying the detection time as cycles of an input clock vary. SOLUTION: This clock detecting circuit is equipped with an edge detecting circuit 20 which detects an edge of an input clock Fi with an internal clock Fr, a down counter 30 with a load which receives the edge signal of the edge detecting circuit 20 at its load terminal and outputs a carry signal when having a count value 0, and a flip-flop 40 with a set which receives the carry signal of the down counter 30 with the load at its enable terminal and the edge signal of the edge detecting circuit 20 at its set terminal to detect a clock, and an initial value is loaded to the down counter 30 with the load to detect whether or not the input clock is present.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、カウンタ等に使用
され、入力クロックの有り無しを検出するクロック検出
回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock detection circuit used for a counter or the like and for detecting the presence or absence of an input clock.

【0002】[0002]

【従来の技術】従来技術の例について、図3と図4とを
参照して説明する。図3に示すように、従来のクロック
検出回路は、ワンショットマルチバイブレータ10で構
成している。
2. Description of the Related Art An example of the prior art will be described with reference to FIGS. As shown in FIG. 3, the conventional clock detection circuit includes a one-shot multivibrator 10.

【0003】図4にタイミングチャートを示すように、
入力クロックFiの周期をT1とする。また、入力クロ
ックFiの各クロックでのワンショットの時間は、Cと
Rとの積分回路できまりT2とする。
As shown in a timing chart of FIG.
The cycle of the input clock Fi is T1. The one-shot time of each clock of the input clock Fi is set to T2 by the integration circuit of C and R.

【0004】入力クロックFiが固定の周波数であれ
ば、その周期T1も変化しないのでT2の範囲は下記式
(1)の範囲であれば入力クロックの有り無しの検出が
できる。 T1<T2<2・T1 ・・・・(1) つまり、入力クロックFiのクロック有りの場合は各ク
ロックでのワンショット期間が重なりあってクロック検
出信号500はH(High)となり、入力クロックFiの
クロック無しの場合は各入力クロックでのワンショット
期間が無いのでクロック検出信号500はL(Low )と
なる。
If the input clock Fi has a fixed frequency, the period T1 does not change. Therefore, if the range of T2 is the range of the following equation (1), the presence or absence of the input clock can be detected. T1 <T2 <2 · T1 (1) That is, when there is a clock of the input clock Fi, the one-shot periods of the respective clocks overlap each other, the clock detection signal 500 becomes H (High), and the input clock Fi is input. When there is no clock, the clock detection signal 500 becomes L (Low) since there is no one-shot period in each input clock.

【0005】しかし、入力クロックFiの周波数が高く
なって周期T1が短くなっても、T2は固定で一定であ
るので、入力クロックFiのクロック無しを検出する検
出時間が早くならない。また、入力クロックFiの周波
数が低くなって周期T1が、T1>T2となったとき
は、入力クロックFiのクロック有り無しの検出ができ
ない。さらに、入力クロックFiの周波数が高くなって
周期T1が、T2>2・T1となったときも、入力クロ
ックFiのクロック有り無しの検出ができなくなる。
However, even if the frequency of the input clock Fi becomes higher and the period T1 becomes shorter, T2 is fixed and constant, so that the detection time for detecting the absence of the input clock Fi is not shortened. Further, when the frequency of the input clock Fi becomes low and the period T1 becomes T1> T2, it is not possible to detect the presence or absence of the clock of the input clock Fi. Further, even when the frequency of the input clock Fi becomes high and the period T1 becomes T2> 2 · T1, it is not possible to detect whether or not the input clock Fi has a clock.

【0006】[0006]

【発明が解決しようとする課題】上記説明のように、従
来のワンショットマルチバイブレータを使用したクロッ
ク検出回路は、時定数が固定であるので、入力クロック
Fiが変化する周期範囲が限定される。また、入力クロ
ック無しを検出する検出時間が早くならない実用上の不
便があった。そこで、本発明は、こうした問題に鑑みな
されたもので、その目的は、入力クロックの周期の変化
に対して検出時間をデジタルデータで変化できるように
して、所望の入力クロックの周期に対して入力クロック
の有り無しの検出と、最適な検出時間が得られるクロッ
ク検出回路を提供することにある。
As described above, the clock detection circuit using the conventional one-shot multivibrator has a fixed time constant, so that the cycle range in which the input clock Fi changes is limited. Further, there is a practical inconvenience that the detection time for detecting the absence of the input clock is not shortened. Therefore, the present invention has been made in view of such a problem, and an object of the present invention is to make it possible to change the detection time with digital data in response to a change in the cycle of the input clock, and to input the detection time to a desired cycle of the input clock. An object of the present invention is to provide a clock detection circuit which can detect the presence / absence of a clock and obtain an optimum detection time.

【0007】[0007]

【課題を解決するための手段】即ち、上記目的を達成す
るためになされた本発明の第1は、入力クロックのエッ
ジを内部クロックにより検出するエッジ検出回路と、該
エッジ検出回路のエッジ信号をロードに受けて検出時間
を決定するロード付ダウンカウンタと、を具備して入力
クロックの有り無しを検出していることを特徴としたク
ロック検出回路を要旨としている。
That is, the first object of the present invention to achieve the above object is to provide an edge detecting circuit for detecting an edge of an input clock by an internal clock, and an edge signal of the edge detecting circuit. The gist of the present invention is a clock detection circuit including a down counter with load that determines a detection time in response to a load, and detects the presence or absence of an input clock.

【0008】また、上記目的を達成するためになされた
本発明の第2は、入力クロックのエッジを内部クロック
により検出するエッジ検出回路と、該エッジ検出回路の
エッジ信号をロード端子に受けてカウント0でキャリー
信号を出力するロード付ダウンカウンタと、該ロード付
ダウンカウンタのキャリー信号をイネーブル端子に受
け、前記エッジ検出回路のエッジ信号をセット端子に受
けてクロックを検出するセット付フリップフロップと、
を具備し、初期値を前記ロード付ダウンカウンタにロー
ドして入力クロックの有り無しを検出していることを特
徴としたクロック検出回路を要旨としている。
In order to achieve the above object, a second aspect of the present invention is to provide an edge detection circuit for detecting an edge of an input clock by an internal clock, and a counter for receiving an edge signal of the edge detection circuit at a load terminal. A down counter with a load that outputs a carry signal at 0; a flip-flop with a set that receives a carry signal of the down counter with a load at an enable terminal and receives an edge signal of the edge detection circuit at a set terminal to detect a clock;
The clock detection circuit is characterized in that an initial value is loaded into the down counter with load to detect the presence or absence of an input clock.

【0009】そして、上記目的を達成するためになされ
た本発明の第3は、エッジ検出回路のエッジ信号と、ロ
ード付ダウンカウンタのキャリー信号とを割り込み信号
としてCPUに受けて入力クロックの有り無しを検出し
ている請求項2記載のクロック検出回路を要旨としてい
る。
In order to achieve the above object, a third aspect of the present invention is to receive an edge signal of an edge detection circuit and a carry signal of a down counter with a load as interrupt signals to a CPU, and determine whether or not an input clock is present. The gist of the present invention is a clock detection circuit according to claim 2 for detecting a clock signal.

【0010】[0010]

【発明の実施の形態】本発明の実施の形態は、下記の実
施例において説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described in the following examples.

【0011】[0011]

【実施例】本発明の実施例について、図1と図2とを参
照して説明する。本発明のクロック検出回路は、図1に
示すように、エッジ検出回路20と、ロード付ダウンカ
ウンタ30と、セット付フリップフロップ40との構成
になっている。そして、制御部50の初期値で検出時間
の制御をしている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. As shown in FIG. 1, the clock detection circuit of the present invention has an edge detection circuit 20, a down counter 30 with a load, and a flip-flop 40 with a set. The detection time is controlled by the initial value of the control unit 50.

【0012】エッジ検出回路20は、例えばDフリップ
フロップ21と、EXOR22とで構成されている。そ
して、図2のタイミングチャートに示すように、入力ク
ロックFiと、入力クロックFiを内部クロックFrで
ラッチした出力100とをEXOR22で比較してエッ
ジ信号200を出力している。つまり、エッジ信号20
0は、入力クロックFiの立ち上がりと立ち下がりのエ
ッジを検出している。
The edge detection circuit 20 includes, for example, a D flip-flop 21 and an EXOR 22. Then, as shown in the timing chart of FIG. 2, the EXOR 22 compares the input clock Fi with the output 100 obtained by latching the input clock Fi with the internal clock Fr, and outputs an edge signal 200. That is, the edge signal 20
0 detects the rising and falling edges of the input clock Fi.

【0013】また、エッジ信号200のH(High)が出
力されると、エッジ信号200はセット付フリップフロ
ップ40のセット端子Sに接続されているのでクロック
検出信号400はH(High)となる。
When H (High) of the edge signal 200 is output, since the edge signal 200 is connected to the set terminal S of the flip-flop 40 with a set, the clock detection signal 400 becomes H (High).

【0014】さらに、エッジ信号200は、ロード付ダ
ウンカウンタ30のロード(LOAD)端子に接続される。
そして、制御部50で設定した初期値をロード付ダウン
カウンタ30にロードする。
Further, the edge signal 200 is connected to a load (LOAD) terminal of the down counter 30 with load.
Then, the initial value set by the control unit 50 is loaded into the down counter 30 with load.

【0015】例えば、制御部50で設定した初期値nを
3としたとき、入力クロックFiの立ち上がりによるエ
ッジ信号200のH(High)が出力されると、ロード付
ダウンカウンタ30は3が設定され、エッジ信号200
がL(Low )になると、内部クロックFrごとにダウン
カウントされて、2、1、0と変化する。
For example, if the initial value n set by the control unit 50 is set to 3, and the H (High) of the edge signal 200 is output due to the rising of the input clock Fi, the down counter 30 with load is set to 3. , Edge signal 200
Becomes L (Low), the count is down-counted every internal clock Fr, and changes to 2, 1, 0.

【0016】そして、ロード付ダウンカウンタ30は、
カウント数が0となる前に入力クロックFiの立ち下が
りによるエッジ信号200により初期値3がロードされ
る。
The down counter 30 with a load is
Before the count number becomes zero, the initial value 3 is loaded by the edge signal 200 due to the falling edge of the input clock Fi.

【0017】しかし、入力クロックFiのクロックが無
いときエッジ信号200は出力されないので、ロード付
ダウンカウンタ30は、内部クロックFrごとにダウン
カウントされて、2、1、0と変化する。
However, since the edge signal 200 is not output when there is no clock of the input clock Fi, the down counter 30 with a load is down-counted for each internal clock Fr and changes to 2, 1, 0.

【0018】そして、ロード付ダウンカウンタ30のカ
ウント数が0となったとき、C端子からキャリー出力3
00が出力される。
When the count of the down counter with load 30 becomes 0, the carry output 3 from the terminal C is output.
00 is output.

【0019】キャリー出力300は、セット付フリップ
フロップ40のイネーブル信号となる。また、データ端
子DはL(Low )に固定されているので、内部クロック
Frによりセット付フリップフロップ40のクロック検
出信号400はL(Low )となる。
The carry output 300 is an enable signal for the flip-flop 40 with a set. Since the data terminal D is fixed at L (Low), the clock detection signal 400 of the flip-flop 40 with the set becomes L (Low) by the internal clock Fr.

【0020】さらに、キャリー出力300は、入力クロ
ックFiのクロックが有りになり、エッジ信号200が
出力されると、エッジ信号200はセット付フリップフ
ロップ40のセット端子Sに接続されているのでクロッ
ク検出信号400はH(High)となる。
Further, when the carry output 300 receives the clock of the input clock Fi and the edge signal 200 is output, the edge signal 200 is connected to the set terminal S of the flip-flop 40 with a set, so that the clock is detected. The signal 400 becomes H (High).

【0021】よって、入力クロックFiのクロックが有
りのとき、クロック検出信号400はH(High)とな
り、入力クロックFiのクロックが無しのとき、クロッ
ク検出信号400はL(Low )となる。
Therefore, when there is a clock of the input clock Fi, the clock detection signal 400 becomes H (High), and when there is no clock of the input clock Fi, the clock detection signal 400 becomes L (Low).

【0022】従って、本実施例では、入力クロックFi
に対して制御部50の初期値を所望の値に設定すること
で任意に変更できる。また、クロック検出時間を内部ク
ロックFrの周期単位で設定できる。ここで、初期値n
は下記式(2)の端数を切り上げて求められる。 n=Ti/(2・Tr) ・・・・・(2) Ti:入力クロックの周期 Tr:内部クロックの周期
Therefore, in this embodiment, the input clock Fi
Can be arbitrarily changed by setting the initial value of the control unit 50 to a desired value. Further, the clock detection time can be set in a cycle unit of the internal clock Fr. Here, the initial value n
Is obtained by rounding up a fraction of the following equation (2). n = Ti / (2 · Tr) (2) Ti: cycle of input clock Tr: cycle of internal clock

【0023】ところで、エッジ検出回路20のフリップ
フロップ21は、n段のシフトレジスタとしてもよい。
また、検出部のセット付フリップフロップ40はCPU
に置き換えてキャリー出力300と、エッジ信号200
とを割込み信号として検出信号を出力するようにしても
よい。
Incidentally, the flip-flop 21 of the edge detection circuit 20 may be an n-stage shift register.
Further, the set-provided flip-flop 40 of the detection unit is a CPU.
And the carry output 300 and the edge signal 200
May be used as an interrupt signal to output a detection signal.

【0024】[0024]

【発明の効果】本発明は、以上説明したような形態で実
施され、以下に記載されるような効果を奏する。即ち、
入力クロックの周期の変化に対して検出時間を変化でき
るようにして、所望の入力クロックの周期に対して入力
クロックの有り無しの検出と、最適な検出時間が得られ
るクロック検出回路を得ることができる。また、内部ク
ロックの周波数を高くすることにより検出時間の分解能
を高くしてクロック検出時間を早くできる。さらに、デ
ジタル値で検出時間を設定できるので、時間の変更がし
やすく、回路をワンチップ化しやすいので温度変化に対
して強くできる効果もある。
The present invention is embodied in the form described above and has the following effects. That is,
A detection time can be changed with respect to a change in the cycle of the input clock, and a clock detection circuit that can detect the presence or absence of the input clock with respect to a desired cycle of the input clock and obtain an optimum detection time can be obtained. it can. Also, by increasing the frequency of the internal clock, the resolution of the detection time can be increased and the clock detection time can be shortened. Further, since the detection time can be set by a digital value, the time can be easily changed, and the circuit can be easily integrated into one chip, so that there is an effect that the circuit can be made strong against a temperature change.

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

【図1】本発明のクロック検出回路のブロック図であ
る。
FIG. 1 is a block diagram of a clock detection circuit according to the present invention.

【図2】本発明のクロック検出回路のタイミングチャー
トである。
FIG. 2 is a timing chart of the clock detection circuit of the present invention.

【図3】従来のクロック検出回路の回路図である。FIG. 3 is a circuit diagram of a conventional clock detection circuit.

【図4】従来のクロック検出回路のタイミングチャート
である。
FIG. 4 is a timing chart of a conventional clock detection circuit.

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

10 ワンショットマルチバイブレータ 20 エッジ検出回路 21 フリップフロップ 22 EXOR 30 ロード付ダウンカウンタ 40 セット付フリップフロップ 50 制御部 DESCRIPTION OF SYMBOLS 10 One-shot multivibrator 20 Edge detection circuit 21 Flip-flop 22 EXOR 30 Down counter with load 40 Flip-flop with set 50 Control part

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力クロックのエッジを内部クロックに
より検出するエッジ検出回路と、 該エッジ検出回路のエッジ信号をロードに受けて検出時
間を決定するロード付ダウンカウンタと、 を具備して入力クロックの有り無しを検出していること
を特徴としたクロック検出回路。
1. An input circuit comprising: an edge detection circuit for detecting an edge of an input clock by an internal clock; and a down counter with a load for receiving an edge signal of the edge detection circuit for a load to determine a detection time. A clock detection circuit for detecting presence / absence.
【請求項2】 入力クロックのエッジを内部クロックに
より検出するエッジ検出回路と、 該エッジ検出回路のエッジ信号をロード端子に受けてカ
ウント0でキャリー信号を出力するロード付ダウンカウ
ンタと、 該ロード付ダウンカウンタのキャリー信号をイネーブル
端子に受け、前記エッジ検出回路のエッジ信号をセット
端子に受けてクロックを検出するセット付フリップフロ
ップと、 を具備し、初期値を前記ロード付ダウンカウンタにロー
ドして入力クロックの有り無しを検出していることを特
徴としたクロック検出回路。
2. An edge detection circuit for detecting an edge of an input clock by an internal clock, a down counter with a load receiving an edge signal of the edge detection circuit at a load terminal and outputting a carry signal with a count of 0, A flip-flop with a set that receives a carry signal of a down counter at an enable terminal and receives an edge signal of the edge detection circuit at a set terminal to detect a clock, and loads an initial value into the down counter with a load. A clock detection circuit for detecting the presence or absence of an input clock.
【請求項3】 エッジ検出回路のエッジ信号と、ロード
付ダウンカウンタのキャリー信号とを割り込み信号とし
てCPUに受けて入力クロックの有り無しを検出してい
る請求項2記載のクロック検出回路。
3. The clock detection circuit according to claim 2, wherein an edge signal of the edge detection circuit and a carry signal of the down counter with load are received as interrupt signals by the CPU to detect the presence or absence of an input clock.
JP10021859A 1998-02-03 1998-02-03 Clock detecting circuit Withdrawn JPH11220369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10021859A JPH11220369A (en) 1998-02-03 1998-02-03 Clock detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10021859A JPH11220369A (en) 1998-02-03 1998-02-03 Clock detecting circuit

Publications (1)

Publication Number Publication Date
JPH11220369A true JPH11220369A (en) 1999-08-10

Family

ID=12066851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10021859A Withdrawn JPH11220369A (en) 1998-02-03 1998-02-03 Clock detecting circuit

Country Status (1)

Country Link
JP (1) JPH11220369A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010271210A (en) * 2009-05-22 2010-12-02 Seiko Epson Corp Frequency measuring device
JP2012104046A (en) * 2010-11-12 2012-05-31 Fujitsu Semiconductor Ltd Semiconductor device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010271210A (en) * 2009-05-22 2010-12-02 Seiko Epson Corp Frequency measuring device
JP2012104046A (en) * 2010-11-12 2012-05-31 Fujitsu Semiconductor Ltd Semiconductor device

Similar Documents

Publication Publication Date Title
US5623234A (en) Clock system
KR20080098524A (en) Dynamic timing adjustment in a circuit device
US6008672A (en) Input signal reading circuit having a small delay and a high fidelity
US6066968A (en) Delay lock loop circuit for semiconductor memory device
JP2002158567A (en) Generation of pulse signal from clock signal
JP2003008414A (en) Clock edge detection circuit
JPH1117531A (en) Digital delay circuit and digital pll circuit
JPH11220369A (en) Clock detecting circuit
US6329861B1 (en) Clock generator circuit
US5220585A (en) Serial clock generating circuit
US5799177A (en) Automatic external clock detect and source select circuit
JP2000134070A (en) Noise eliminating circuit
JP3776895B2 (en) Phase adjustment circuit
JP4181908B2 (en) Clock transfer circuit
JP3223884B2 (en) Duty ratio determination circuit and duty ratio determination method
JPS63288513A (en) Clock interruption detecting circuit
KR100223749B1 (en) Register with enable siganl
KR100760948B1 (en) Circuit for Detecting Input Change
JPH08179849A (en) Clock output circuit
JPH1195857A (en) Clock oscillation control circuit
JP2606458Y2 (en) Signal level monitoring circuit
JPH0661809A (en) Duty ratio correction circuit for clock signal
JPH03255743A (en) Bit synchronizing circuit
JPH0722926A (en) Phase comparison circuit
JPH02284514A (en) Binary decision circuit

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050405