JPH1090317A - Frequency detection circuit - Google Patents

Frequency detection circuit

Info

Publication number
JPH1090317A
JPH1090317A JP14076597A JP14076597A JPH1090317A JP H1090317 A JPH1090317 A JP H1090317A JP 14076597 A JP14076597 A JP 14076597A JP 14076597 A JP14076597 A JP 14076597A JP H1090317 A JPH1090317 A JP H1090317A
Authority
JP
Japan
Prior art keywords
value
holding
count
frequency
input 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.)
Withdrawn
Application number
JP14076597A
Other languages
Japanese (ja)
Inventor
Hiroaki Harada
裕章 原田
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP14076597A priority Critical patent/JPH1090317A/en
Publication of JPH1090317A publication Critical patent/JPH1090317A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a frequency detection circuit which can precisely detect the frequency of an output signal of a PLL circuit or the like. SOLUTION: The output signal fout of a PLL circuit is converted into zerocross pulses ZP by a zerocross detection part 21, and given to counters 22, 23. On the basis of a time base signal TB1 of a timer 25, the count value CNT1 of the counter 22 is read at every period T1 by a synchronization judgement part 24. When continuous M-number of read values are all in a constant range, a synchronization detection signal SYN telling 'effective' is outputted from the synchronization judgement part 24. On the basis of a time base signal TB2 of a period T2 (=T1×M) of a timer 27, a frequency judgement part 26 reads the count value CNT2 of the counter 23. When the count value CNT2 is in a specified range, and the synchronization judgement signal SYN is 'effective', a detection signal OUT telling 'normal' is outputted from the frequency judgement part 26.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、PLL
(Phase Locked Loop 、位相同期ループ)回路等の出力
信号の周波数を検出し、正常な周波数の出力信号である
か否かを判定する周波数検出回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to a frequency detection circuit that detects the frequency of an output signal from a (Phase Locked Loop, phase locked loop) circuit or the like and determines whether the output signal is a normal frequency output signal.

【0002】[0002]

【従来の技術】図2は、従来の周波数検出回路の一例を
示す構成図である。この周波数検出回路10は、例え
ば、PLL回路1の出力信号foutが与えられるゼロ
交差検出部11を有している。ゼロ交差検出部11は、
与えられた出力信号foutの極性が正から負へ、及び
負から正へ変化するいわゆるゼロ交差を検出するもので
ある。ゼロ交差検出部11の出力側には、ゼロ交差の回
数をカウントするカウンタ12が接続されている。カウ
ンタ12には、周波数判定部13が接続されている。周
波数判定部13は、タイマ14から与えられる一定周期
のタイムベース信号TBに従ってカウンタ12のカウン
ト値CNTを読出し、そのカウント値CNTが一定範囲
の値であるか否かを判定して、その判定結果の検出信号
OUTを出力するものである。また、周波数判定部13
は、カウンタ12のカウント値CNTを読出した後、こ
のカウンタ12を次の周期のカウント動作のためにリセ
ットする機能を有している。例えば、PLL回路1が入
力信号finに同期したとき、出力信号foutの周波
数が6000Hzであるとする。出力信号foutは周
波数検出回路10のゼロ交差検出部11に与えられ、そ
の極性が正から負へ変化した時と、負から正へ変化した
時に、このゼロ交差検出部11からゼロ交差パルスZP
が出力される。ゼロ交差パルスZPは、カウンタ12に
よってカウントされる。
2. Description of the Related Art FIG. 2 is a block diagram showing an example of a conventional frequency detection circuit. The frequency detection circuit 10 includes, for example, a zero-crossing detection unit 11 to which an output signal fout of the PLL circuit 1 is provided. The zero-crossing detector 11
It detects a so-called zero-crossing in which the polarity of the applied output signal fout changes from positive to negative and from negative to positive. A counter 12 for counting the number of zero crossings is connected to the output side of the zero crossing detector 11. The frequency determination unit 13 is connected to the counter 12. Frequency determining section 13 reads count value CNT of counter 12 according to time base signal TB having a constant cycle provided from timer 14, determines whether or not count value CNT is a value within a predetermined range, and determines the determination result. Is output. Further, the frequency determination unit 13
Has a function of resetting the counter 12 for the counting operation in the next cycle after reading the count value CNT of the counter 12. For example, it is assumed that when the PLL circuit 1 is synchronized with the input signal fin, the frequency of the output signal fout is 6000 Hz. The output signal fout is supplied to a zero-crossing detecting unit 11 of the frequency detecting circuit 10, and when the polarity changes from positive to negative and from negative to positive, the zero-crossing detecting unit 11 outputs a zero-crossing pulse ZP.
Is output. The zero-crossing pulse ZP is counted by the counter 12.

【0003】一方、タイマ14から、例えば周期0.1
sのタイムベース信号TBが周波数判定部13へ与えら
れ、このタイムベース信号TBに基づいて周波数判定部
13によってカウンタ12のカウント値CNTが読取ら
れる。出力信号foutの周波数が6000Hzで一定
の値となっていれば、0.1sの周期におけるカウンタ
12のカウント値CNTは、1200となる。カウンタ
12からのカウント値CNTが所定の範囲(例えば、1
200±4)に入っていれば、周波数判定部13におい
て、PLL回路1の出力信号foutは正常であると判
定され、正常の旨の検出信号OUTが出力される。もし
も、カウント値CNTが所定の範囲に入っていなけれ
ば、PLL回路1の出力信号foutは異常であるとし
て、周波数判定部13から異常の旨の検出信号OUTが
出力される。周波数判定部13から、正常または異常の
検出信号OUTが出力された後、カウンタ12へリセッ
ト信号RSTが出力され、このカウンタ12のカウント
値CNTが0にリセットされる。このようにして、例え
ば0.1sの一定周期毎に、PLL回路1の出力信号f
outが正常であるか否かが検出されるようになってい
る。
On the other hand, from a timer 14, for example, a period of 0.1
The time base signal TB of s is supplied to the frequency determination unit 13, and the count value CNT of the counter 12 is read by the frequency determination unit 13 based on the time base signal TB. If the frequency of the output signal fout has a constant value of 6000 Hz, the count value CNT of the counter 12 in the period of 0.1 s is 1200. When the count value CNT from the counter 12 is within a predetermined range (for example, 1
If it is within 200 ± 4), the frequency determination unit 13 determines that the output signal fout of the PLL circuit 1 is normal, and outputs a normal detection signal OUT. If the count value CNT does not fall within the predetermined range, the output signal fout of the PLL circuit 1 is determined to be abnormal, and the frequency determination unit 13 outputs a detection signal OUT indicating an abnormality. After the normal or abnormal detection signal OUT is output from the frequency determination unit 13, a reset signal RST is output to the counter 12, and the count value CNT of the counter 12 is reset to zero. In this manner, the output signal f of the PLL circuit 1 is set at a constant period of 0.1 s, for example.
Whether or not out is normal is detected.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
周波数検出回路では、次のような課題があった。PLL
回路1が同期状態になっておらず、0.1sの周期のう
ち、例えば前半の出力信号foutが6100Hz、後
半の出力信号foutが5900Hzとなっていても、
周波数判定部13における判定結果は正常となる。そこ
で、このような誤判定を避けるために、カウントの周期
を短縮すると、こんどは同期状態でないときに、同期状
態と判定する誤判定が生ずる。本発明は、前記従来技術
が持っていた課題を解決し、PLL回路1等の出力信号
foutの周波数を精度良く検出することができる周波
数検出回路を提供するものである。
However, the conventional frequency detection circuit has the following problems. PLL
Even if the circuit 1 is not in the synchronized state and the output signal fout in the first half is 6100 Hz and the output signal fout in the second half is 5900 Hz in the period of 0.1 s,
The determination result in the frequency determination unit 13 becomes normal. Therefore, if the counting cycle is shortened in order to avoid such erroneous determination, an erroneous determination of determining a synchronous state occurs when the state is not the synchronous state. The present invention solves the problem of the prior art and provides a frequency detection circuit that can accurately detect the frequency of an output signal fout of a PLL circuit 1 or the like.

【0005】[0005]

【課題を解決するための手段】前記課題を解決するた
め、本発明の内の第1の発明は、周波数検出回路におい
て、一定の閾値に対して正方向及び負方向に交互に変化
する入力信号が与えられ、該入力信号の該閾値に対する
変化の回数を一定の第1の周期でカウントする第1のカ
ウント手段と、前記入力信号が与えられ、該入力信号の
前記閾値に対する変化の回数を前記第1の周期よりも長
い一定の第2の周期でカウントする第2のカウント手段
と、前記第1のカウント手段でカウントされた最新の複
数のカウント値が、すべて一定範囲に入っているか否か
の判定を行う判定手段と、前記複数のカウント値がすべ
て一定範囲に入っていると判定された場合に、前記第2
のカウント手段のカウント値が所定の範囲に入っている
か否かを検出して、その検出結果を出力する検出手段と
を備えている。第2の発明は、第1の発明の周波数検出
回路の入力信号を、PLL回路から出力される信号と
し、前記第2の周期を、前記第1の周期のM(但し、M
は複数)倍の長さとし、前記最新の複数のカウント値
を、最新のM個のカウント値として構成している。
According to a first aspect of the present invention, there is provided a frequency detecting circuit, comprising: an input signal which alternately changes in a positive direction and a negative direction with respect to a fixed threshold value; Is provided, a first counting means for counting the number of changes of the input signal with respect to the threshold at a constant first cycle, and the input signal is provided, and the number of changes of the input signal with respect to the threshold is determined. Second counting means for counting at a fixed second cycle longer than the first cycle, and whether or not all of the latest plurality of count values counted by the first counting means are all within a certain range. Determining means for determining whether the plurality of count values are all within a certain range;
Detecting means for detecting whether or not the count value of the counting means falls within a predetermined range, and outputting the detection result. According to a second aspect, an input signal of the frequency detection circuit according to the first aspect is a signal output from a PLL circuit, and the second cycle is M of the first cycle (where M
Are the plural times), and the latest plural count values are configured as the latest M count values.

【0006】第3の発明は、周波数検出回路において、
一定の閾値に対して正方向及び負方向に交互に変化する
入力信号が与えられ、該入力信号の該閾値に対する変化
の回数を一定周期でカウントするカウント手段と、前記
カウント手段でカウントされたカウント値を保持すると
ともに、該保持したカウント値を、前記一定周期で逐次
後段へシフトして保持するN(但し、Nは複数)段の保
持手段と、前記N段の保持手段に保持された前記各カウ
ント値の合計を、前記一定周期毎に算出する加算手段
と、前記加算手段で算出された合計が所定の範囲に入っ
ているか否かを検出して、その検出結果を出力する検出
手段とを備えている。第4の発明は、周波数検出回路に
おいて、一定の閾値に対して正方向及び負方向に交互に
変化する入力信号が与えられ、該入力信号の該閾値に対
する変化の回数を一定周期でカウントするカウント手段
と、前記カウント手段でカウントされたカウント値を保
持するとともに、該保持したカウント値を、前記一定周
期で逐次後段へシフトして保持するN(但し、Nは複
数)段の保持手段と、前記N段の保持手段で保持された
各カウント値の合計を保持するための合計値保持手段
と、前記N段の保持手段の内の初段の保持手段に保持さ
れたカウント値と、前記合計値保持手段に保持された値
とを加算するとともに、該加算された値から該N段の保
持手段の内のN段目の保持手段に保持されたカウント値
を差引いて、更新された合計を該合計値保持手段に出力
する合計値更新手段と、前記合計値更新手段によって更
新された合計が所定の範囲に入っているか否かを検出し
て、その検出結果を出力する検出手段とを備えている。
A third invention provides a frequency detection circuit,
An input signal which alternately changes in a positive direction and a negative direction with respect to a certain threshold value is provided, and a counting means for counting the number of changes of the input signal with respect to the threshold value in a certain cycle; and a count counted by the counting means. N (where N is a plurality) holding means for holding the value and shifting the held count value sequentially to the subsequent stage at the constant period, and the N number of holding means. Adding means for calculating the sum of each count value at regular intervals, detecting means for detecting whether the sum calculated by the adding means is within a predetermined range, and outputting the detection result; It has. According to a fourth aspect of the present invention, in the frequency detection circuit, an input signal which alternately changes in a positive direction and a negative direction with respect to a certain threshold value is provided, and a count for counting the number of changes of the input signal with respect to the threshold value in a certain cycle Means for holding the count value counted by the counting means, and holding the shifted count value to the subsequent stage sequentially at the constant period and holding the count value, wherein N is a plurality of stages; A total value holding means for holding a total of each count value held by the N-stage holding means; a count value held by a first-stage holding means of the N-stage holding means; The value held in the holding means is added, and the count value held in the N-th holding means of the N-stage holding means is subtracted from the added value to obtain an updated total. Total value hold The total value updating means for outputting the stage, the total updated by the total value updating means and a detecting means for detecting whether or not within a predetermined range, and outputs the detection result.

【0007】第5の発明は、周波数検出回路において、
一定の閾値に対して正方向及び負方向に交互に変化する
入力信号が与えられ、該入力信号の該閾値に対する変化
の回数を一定周期でカウントするカウント手段と、前記
カウント手段でカウントされたカウント値を保持すると
ともに、該保持したカウント値を、前記一定周期で逐次
後段へシフトして保持するN(但し、Nは複数)段の保
持手段と、前記N段の保持手段に保持された前記各カウ
ント値の合計を算出する加算手段と、前記N段の保持手
段に保持された各カウント値がすべて一定範囲に入って
いるか否かの判定を行う判定手段と、前記各カウント値
がすべて一定範囲に入っていると判定された場合に、前
記加算手段で算出された前記各カウント値の合計が所定
の範囲に入っているか否かを検出して、その検出結果を
出力する検出手段とを備えている。第1及び第2の発明
によれば、以上のように周波数検出回路を構成したの
で、次のような作用が行われる。
According to a fifth aspect, in a frequency detection circuit,
An input signal which alternately changes in a positive direction and a negative direction with respect to a certain threshold value is provided, and a counting means for counting the number of changes of the input signal with respect to the threshold value in a certain cycle; and a count counted by the counting means. N (where N is a plurality) holding means for holding the value and shifting the held count value sequentially to the subsequent stage at the constant period, and the N number of holding means. Adding means for calculating the sum of the count values; determining means for determining whether all the count values held in the holding means of the N stages are within a certain range; Detecting means for detecting whether or not the sum of the count values calculated by the adding means is within a predetermined range, and outputting the detection result when it is determined that the count value is within the range; It is equipped with a. According to the first and second inventions, since the frequency detection circuit is configured as described above, the following operation is performed.

【0008】PLL回路等から与えられた入力信号は、
第1のカウント手段によって、第1の周期毎にカウント
され、その最新の複数のカウント値がすべて一定範囲に
入っているか否かが、判定手段で判定される。また、入
力信号は第2のカウント手段によって、第1の周期より
も長い第2の周期でカウントされる。判定手段によって
すべてのカウント値が一定範囲に入っていると判定され
た場合には、検出手段によって第2のカウント手段のカ
ウント値が所定の範囲に入っているか否かが検出され、
その検出結果が出力される。第3の発明によれば、次の
ような作用が行われる。入力信号は、カウント手段によ
って一定周期でカウントされ、そのカウント値はN段の
保持手段に与えられ、逐次シフトされて保持される。N
段の保持手段の各段に保持されたカウント値は、加算手
段によってその合計が算出され、検出手段によってその
合計が所定の範囲に入っているか否かが検出される。第
4の発明によれば、次のような作用が行われる。
An input signal given from a PLL circuit or the like is
The first counting means counts each first cycle, and the determining means determines whether or not all of the latest count values are all within a certain range. The input signal is counted by the second counting means in a second cycle longer than the first cycle. If the determination means determines that all the count values are within a certain range, the detection means detects whether the count value of the second count means is within a predetermined range,
The detection result is output. According to the third aspect, the following operation is performed. The input signal is counted in a fixed cycle by the counting means, and the count value is given to N-stage holding means, and is sequentially shifted and held. N
The sum of the count values held in each stage of the stage holding unit is calculated by the addition unit, and the detection unit detects whether the total is within a predetermined range. According to the fourth aspect, the following operation is performed.

【0009】入力信号は、カウント手段によって一定周
期でカウントされ、そのカウント値はN段の保持手段に
与えられ、逐次シフトされて保持される。合計値保持手
段の値にN段の保持手段の内の初段のカウント値が加算
され、最終段のカウント値が差引かれて、この合計値保
持手段の値が更新される。そして、検出手段によって、
更新された合計が所定の範囲に入っているか否かが検出
される。第5の発明によれば、次のような作用が行われ
る。入力信号は、カウント手段によって一定周期でカウ
ントされ、そのカウント値はN段の保持手段に与えら
れ、逐次シフトされて保持される。N段の保持手段の各
段に保持されたカウント値は、加算手段によってその合
計が算出され、更に判定手段によって、各カウント値が
すべて一定範囲に入っているか否かが判定される。すべ
て一定範囲に入っていると判定されると、検出手段によ
って加算手段の合計が所定の範囲に入っているか否かが
検出される。
The input signal is counted at a fixed period by the counting means, and the count value is applied to holding means of N stages, and is sequentially shifted and held. The count value of the first stage of the N stages of holding means is added to the value of the total value holding unit, the count value of the last stage is subtracted, and the value of the total value holding unit is updated. And by the detecting means,
It is detected whether the updated sum falls within a predetermined range. According to the fifth aspect, the following operation is performed. The input signal is counted in a fixed cycle by the counting means, and the count value is given to N-stage holding means, and is sequentially shifted and held. The sum of the count values held in each stage of the N-stage holding unit is calculated by the adding unit, and the determining unit determines whether all the count values are within a certain range. When it is determined that all the values are within the predetermined range, the detection unit detects whether the sum of the addition units is within the predetermined range.

【0010】[0010]

【発明の実施の形態】第1の実施形態 図1は、本発明の第1の実施形態を示す周波数検出回路
の構成図である。この周波数検出回路20は、例えば、
PLL回路1の出力信号foutが入力されるゼロ交差
検出部21を有している。ゼロ交差検出部21は、与え
られた出力信号foutのゼロ交差を検出するものであ
り、その出力側には、ゼロ交差の回数をカウントする第
1及び第2のカウント手段(例えば、カウンタ)22,
23が接続されている。カウンタ22には、判定手段
(例えば、同期判定部)24が接続されており、この同
期判定部24には、第1のタイマ25から第1の周期T
1のタイムベース信号TB1が与えられている。同期判
定部24は、タイムベース信号TB1に従ってカウンタ
22のカウント値CNT1を読出して記憶するととも
に、周期T1毎に読出した連続するM(但し、Mは複
数)個のカウント値CNT1の値が、すべて一定の範囲
に入っているか否かの判定して、入っていれば“有
効”、入っていなければ“無効”を示す同期判定信号S
YNを出力するものである。また、同期判定部24は、
カウンタ22を次の周期T1のカウント動作のためにリ
セットする機能を有している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment FIG. 1 is a configuration diagram of a frequency detection circuit according to a first embodiment of the present invention. The frequency detection circuit 20 includes, for example,
It has a zero-crossing detector 21 to which the output signal fout of the PLL circuit 1 is input. The zero-crossing detecting unit 21 detects a zero-crossing of the output signal fout provided, and has on its output side first and second counting means (for example, a counter) 22 for counting the number of zero-crossings. ,
23 are connected. A determination means (for example, a synchronization determination unit) 24 is connected to the counter 22, and the synchronization determination unit 24 receives a first cycle T from a first timer 25.
1 time base signal TB1 is provided. The synchronization determination unit 24 reads and stores the count value CNT1 of the counter 22 in accordance with the time base signal TB1, and when all the values of the continuous M (where M is plural) count values CNT1 read every period T1 are all A determination is made as to whether or not the signal is within a certain range, and if so, a synchronization determination signal S indicating "valid", otherwise indicating "invalid".
YN is output. In addition, the synchronization determination unit 24
It has a function of resetting the counter 22 for the counting operation of the next cycle T1.

【0011】一方、カウンタ23には、検出手段(例え
ば、周波数判定部)26が接続され、この周波数判定部
26には、同期判定部24からの同期判定信号SYN
と、第2のタイマ27からの第2の周期T2(但し、T
2=T1×M)のタイムベース信号TB2が与えられて
いる。周波数判定部26は、同期判定信号SYNが“有
効”のときに、タイムベース信号TB2に従ってカウン
タ23のカウント値CNT2を読出し、そのカウント値
CNT2が一定範囲の値であるか否かを判定して、一定
範囲であれば“正常”、一定範囲でなければ“異常”を
示す検出信号OUTを出力するものである。もし同期判
定信号SYNが“無効”であれば、周波数判定部26
は、カウント値CNTの値に関係なく“異常”の旨の検
出信号OUTを出力するものである。また、周波数判定
部26は、カウンタ23を次の周期T2のカウント動作
のためにリセットする機能を有している。
On the other hand, detecting means (for example, a frequency determining unit) 26 is connected to the counter 23, and the frequency determining unit 26 has a synchronization determination signal SYN from the synchronization determining unit 24.
And a second period T2 from the second timer 27 (where T2
2 = T1 × M). When the synchronization determination signal SYN is "valid", the frequency determination unit 26 reads the count value CNT2 of the counter 23 according to the time base signal TB2, and determines whether or not the count value CNT2 is within a certain range. The detection signal OUT indicates "normal" if it is within a certain range, and "abnormal" if it is not within a certain range. If the synchronization determination signal SYN is “invalid”, the frequency determination unit 26
Outputs a detection signal OUT indicating "abnormal" regardless of the count value CNT. Further, the frequency determination unit 26 has a function of resetting the counter 23 for the counting operation in the next cycle T2.

【0012】次に、動作を説明する。例えば、PLL回
路1が入力信号finに同期したときの出力信号fou
tの周波数が6000Hzであるとする。周波数検出回
路20のゼロ交差検出部21において、出力信号fou
tの極性が正から負へ変化した時と、負から正へ変化し
た時に、ゼロ交差パルスZPが出力される。ゼロ交差パ
ルスZPは、カウンタ22,23によってカウントされ
る。タイマ25から、例えば、周期T1=0.01sの
タイムベース信号TB1が同期判定部24へ与えられ、
このタイムベース信号TB1に基づいて同期判定部24
によってカウンタ22のカウント値CNT1が読取られ
る。出力信号foutの周波数が6000Hzで、一定
の値となっていれば、0.01sの周期T1におけるカ
ウンタ22のカウント値CNT1は、120となる。同
期判定部24において、例えば、周期T2=0.1s
(=T1×10)間に周期T1で10回連続して読取っ
たカウント値CNT1の値が、すべて一定範囲(例え
ば、120±1)に入っているか否かが判定され、入っ
ていれば、“有効”の旨の同期検出信号SYNが、周波
数判定部26へ出力される。
Next, the operation will be described. For example, the output signal fou when the PLL circuit 1 is synchronized with the input signal fin
It is assumed that the frequency of t is 6000 Hz. In the zero-crossing detecting section 21 of the frequency detecting circuit 20, the output signal fou
When the polarity of t changes from positive to negative and from negative to positive, a zero-crossing pulse ZP is output. The zero-crossing pulse ZP is counted by the counters 22 and 23. For example, a time base signal TB1 having a period T1 = 0.01 s is provided from the timer 25 to the synchronization determination unit 24,
Based on the time base signal TB1, the synchronization determination unit 24
Thus, the count value CNT1 of the counter 22 is read. If the frequency of the output signal fout is 6000 Hz and has a constant value, the count value CNT1 of the counter 22 in the period T1 of 0.01 s is 120. In the synchronization determination unit 24, for example, the period T2 = 0.1 s
(= T1 × 10) It is determined whether or not all the count values CNT1 read ten times consecutively in the cycle T1 are within a certain range (for example, 120 ± 1). The synchronization detection signal SYN indicating “valid” is output to the frequency determination unit 26.

【0013】周波数判定部26において、タイマ27か
ら、周期T2=0.1sのタイムベース信号TB2が与
えられ、このタイムベース信号TB2に基づいてカウン
タ23のカウント値CNT2が読取られる。出力信号f
outの周波数は6000Hzで、一定の値となってい
れば、0.1sの間におけるカウンタ23のカウント値
CNT2は、1200となる。周波数判定部26におい
て、カウンタ23のカウント値CNT2が所定の範囲
(例えば、1200±4)に入っているか否かが判定さ
れ、入っていればPLL回路1の出力信号foutは正
常であるとして、“正常”である旨の検出信号OUTが
出力される。もしも、カウント値CNT2が所定の範囲
に入っていなければ、PLL回路1の出力信号fout
は異常であるとして、周波数判定部26から“異常”で
ある旨の検出信号OUTが出力される。正常または異常
の検出信号OUTが出力された後、周波数判定部26か
らカウンタ23へリセット信号RST2が出力され、こ
のカウンタ23が0にリセットされる。
In the frequency determination section 26, a time base signal TB2 having a period T2 = 0.1 s is provided from a timer 27, and the count value CNT2 of the counter 23 is read based on the time base signal TB2. Output signal f
If the frequency of out is 6000 Hz and has a constant value, the count value CNT2 of the counter 23 during 0.1 s is 1200. The frequency determination unit 26 determines whether or not the count value CNT2 of the counter 23 is within a predetermined range (for example, 1200 ± 4). If the count value CNT2 is within the range, it is determined that the output signal fout of the PLL circuit 1 is normal. A “normal” detection signal OUT is output. If the count value CNT2 is not within the predetermined range, the output signal fout of the PLL circuit 1 is output.
Is determined to be abnormal, the frequency determination unit 26 outputs a detection signal OUT indicating “abnormal”. After the normal or abnormal detection signal OUT is output, a reset signal RST2 is output from the frequency determination unit 26 to the counter 23, and the counter 23 is reset to 0.

【0014】一方、同期判定部24で読取って記憶され
た10個のカウント値CNT1の少なくとも1個が一定
範囲に入っていなければ、PLL回路1の出力信号fo
utは異常であるとして、“無効”の旨の同期検出信号
SYNが出力される。これにより、周波数判定部26に
おいて、カウンタ23のカウント値CNT2に関係なく
“異常”の旨の検出信号OUTが出力される。このよう
に、第1の実施形態の周波数検出回路は、比較的短い周
期T1で出力信号foutの周波数を読取ってその“有
効”、“無効”を判定する同期判定部24を有している
ので、同期していないときに同期状態と誤判定するおそ
れがない。更に、同期状態と判定されたときに、比較的
長い周期T2(=T1×M)で出力信号foutの周波
数を読取る周波数判定部26を有しているので、出力信
号foutの周波数を確実に検出することができるとい
う利点がある。
On the other hand, if at least one of the ten count values CNT1 read and stored by the synchronization determination unit 24 does not fall within a certain range, the output signal fo of the PLL circuit 1 is output.
ut is determined to be abnormal, and a synchronization detection signal SYN indicating "invalid" is output. Accordingly, the frequency determination unit 26 outputs the detection signal OUT indicating “abnormal” regardless of the count value CNT2 of the counter 23. As described above, the frequency detection circuit of the first embodiment has the synchronization determination unit 24 that reads the frequency of the output signal fout at a relatively short cycle T1 and determines whether the frequency is valid or invalid. In addition, there is no possibility of erroneously determining a synchronization state when synchronization is not performed. Further, when the synchronization state is determined, the frequency determination unit 26 reads the frequency of the output signal fout at a relatively long cycle T2 (= T1 × M), so that the frequency of the output signal fout is reliably detected. There is an advantage that can be.

【0015】第2の実施形態 図3は、本発明の第2の実施形態を示す周波数検出回路
の構成図であり、第1の実施形態を示す図1中の要素と
共通の要素には共通の符号が付されている。この周波数
検出回路20Aと、図1の周波数検出回路20との相違
は、スイッチ28が追加されていることである。スイッ
チ28は、同期判定部24から出力される同期判定信号
SYNに基づいてPLL回路1の出力信号foutの出
力を制御するものである。同期判定信号SYNが“有
効”のときには、出力信号foutを出力し、同期判定
信号SYNが“無効”のときには、出力信号foutの
出力を停止するようになっている。このように、第2の
実施形態の周波数検出回路20Aは、単に“正常”か
“異常”かの検出信号OUTを出力するだけでなく、
“異常”のときにはPLL回路1からの出力信号fou
tも同時に停止させるスイッチ28を備えているので、
第1の実施形態の利点に加えて、安定した出力信号fo
utを出力することができるという利点を有する。
Second Embodiment FIG. 3 is a block diagram of a frequency detection circuit showing a second embodiment of the present invention, and is common to elements in FIG. 1 showing the first embodiment and common elements. Are given. The difference between this frequency detection circuit 20A and the frequency detection circuit 20 of FIG. 1 is that a switch 28 is added. The switch 28 controls the output of the output signal fout of the PLL circuit 1 based on the synchronization determination signal SYN output from the synchronization determination unit 24. When the synchronization determination signal SYN is “valid”, the output signal fout is output. When the synchronization determination signal SYN is “invalid”, the output of the output signal fout is stopped. As described above, the frequency detection circuit 20A according to the second embodiment not only outputs the “normal” or “abnormal” detection signal OUT, but also
In the case of "abnormal", the output signal fou from the PLL circuit 1
Since the switch 28 for stopping t at the same time is provided,
In addition to the advantages of the first embodiment, a stable output signal fo
ut can be output.

【0016】第3の実施形態 図4は、本発明の第3の実施形態を示す周波数検出回路
の構成図であり、第2の実施形態を示す図3中の要素と
共通の要素には共通の符号が付されている。この周波数
検出回路20Bは、図3の周波数検出回路20Aにおけ
るスイッチ28に代えて、切替スイッチ29を設けてい
る。切替スイッチ29は、同期判定部24から出力され
る同期判定信号SYNに基づいてPLL回路1の入力信
号fin又は出力信号foutのいずれか一方を出力す
るものである。即ち、同期判定信号SYNが“有効”の
ときには、出力信号foutを出力し、同期判定信号S
YNが“無効”のときには、入力信号finを出力する
ようになっている。その他の構成は、図3と同様であ
る。このように、第3の実施形態の周波数検出回路20
Bは、単に“正常”か“異常”かの検出信号OUTを出
力するだけでなく、“異常”のときにはPLL回路1か
らの不安定な出力信号foutに代えて入力側の入力信
号finを出力するための切替スイッチ29を備えてい
る。これにより、第2の実施形態の利点に加えて、安定
した出力周波数を停止すること無く供給し続けることが
できるという利点を有する。
Third Embodiment FIG. 4 is a block diagram of a frequency detection circuit showing a third embodiment of the present invention, and is common to the elements in FIG. 3 showing the second embodiment in common. Are given. This frequency detection circuit 20B is provided with a changeover switch 29 instead of the switch 28 in the frequency detection circuit 20A of FIG. The changeover switch 29 outputs either the input signal fin or the output signal fout of the PLL circuit 1 based on the synchronization determination signal SYN output from the synchronization determination unit 24. That is, when the synchronization determination signal SYN is “valid”, the output signal fout is output, and the synchronization determination signal S
When YN is "invalid", an input signal fin is output. Other configurations are the same as those in FIG. Thus, the frequency detection circuit 20 of the third embodiment
B outputs not only the detection signal OUT indicating “normal” or “abnormal” but also outputs the input signal fin on the input side in place of the unstable output signal fout from the PLL circuit 1 in the case of “abnormal”. Switch 29 for performing the operation. Accordingly, in addition to the advantage of the second embodiment, there is an advantage that a stable output frequency can be continuously supplied without stopping.

【0017】第4の実施形態 図5は、本発明の第4の実施形態を示す周波数検出回路
の構成図である。この周波数検出回路30は、例えば、
PLL回路1の出力信号foutが入力されるゼロ交差
検出部31を有している。ゼロ交差検出部31は、与え
られた出力信号foutのゼロ交差を検出して、ゼロ交
差パルスZPを出力するものであり、その出力側には、
ゼロ交差パルスZPをカウントするカウント手段(例え
ば、カウンタ)32が接続されている。カウンタ32の
出力側には、縱続接続されたN段(例えば、N=10)
のレジスタ331 ,332 ,…,3310で構成される保
持手段(例えば、シフトレジスタ)33の初段のレジス
タ331 の入力側が接続されている。シフトレジスタ3
3は、タイマ34から与えられる一定周期T(例えば、
T=0.01s)のタイムベース信号TBに基づいて、
各レジスタ331 〜3310の入力側の信号をラッチし
て、そのラッチした信号を出力側に出力するものであ
る。
Fourth Embodiment FIG. 5 is a configuration diagram of a frequency detection circuit according to a fourth embodiment of the present invention. This frequency detection circuit 30 is, for example,
It has a zero-crossing detector 31 to which the output signal fout of the PLL circuit 1 is input. The zero-crossing detector 31 detects a zero-crossing of the applied output signal fout and outputs a zero-crossing pulse ZP.
A counting means (for example, a counter) 32 for counting the zero-crossing pulse ZP is connected. On the output side of the counter 32, N cascade-connected N stages (for example, N = 10)
Register 33 1, 33 2, ..., the holding means consists of 33 10 (e.g., a shift register) input side of the first-stage register 33 1 33 are connected. Shift register 3
3 is a constant period T (for example, given by the timer 34)
T = 0.01 s) based on the time base signal TB
The input side of the signal of each register 33 to 333 10 latches and outputs the latched signal to the output side.

【0018】シフトレジスタ33の各レジスタ331
3310の出力側は、加算手段(例えば、加算部)35の
入力側に接続されている。加算部35は、縱続接続され
たN−1段の加算器351 〜359 で構成され、最終的
な合計値TOTが最終段の加算器359 の出力側に出力
されるようになっている。加算部35の出力側には、検
出手段(例えば、周波数判定部)36の入力側が接続さ
れている。周波数判定部36は、タイマ34から与えら
れるタイムベース信号TBに従って、加算部35で加算
された合計値TOTを読出し、その合計値TOTが一定
範囲の値であるか否かを判定して、その判定結果の検出
信号OUTを出力するものである。また、周波数判定部
36は、カウンタ32を次の周期Tのカウント動作のた
めにリセットする機能を有している。次に、動作を説明
する。
Each of the registers 33 1 to 33 1 of the shift register 33
The output side of the 33 10, summing means (e.g., an adder) is connected to the input side of 35. Adding unit 35 is composed of the adder 35 1 to 35 9 of N-1 stage is縱続connected, so the final sum TOT is outputted to the output side of the adder 35 9 of the last stage ing. The output side of the addition section 35 is connected to the input side of a detection means (for example, a frequency determination section) 36. The frequency determining unit 36 reads the total value TOT added by the adding unit 35 according to the time base signal TB given from the timer 34, and determines whether the total value TOT is a value in a certain range. A detection signal OUT as a result of the determination is output. Further, the frequency determination unit 36 has a function of resetting the counter 32 for the counting operation in the next cycle T. Next, the operation will be described.

【0019】例えば、PLL回路1が入力信号finに
同期したときの出力信号foutの周波数が6000H
zであるとする。出力信号foutは、周波数検出回路
30のゼロ交差検出部31によって、その極性が正から
負へ変化した時と、負から正へ変化した時に、ゼロ交差
パルスZPが出力される。ゼロ交差パルスZPは、カウ
ンタ32によってカウントされる。タイマ34から、周
期T(=0.01s)のタイムベース信号TBがシフト
レジスタ33及び周波数判定部36へ与えられると、こ
のタイムベース信号TBに従って、カウンタ32でのカ
ウント値CNT(=120)がレジスタ331 に保持さ
れ、レジスタ331 ,332 ,…,339 に保持されて
いたそれぞれのカウント値CNTは、後段のレジスタ3
2 ,333 ,…,3310へ順次シフトされる。そし
て、シフトされた各レジスタ331 〜3310の値が、加
算部35で加算されて、その合計値TOT(=120
0)が周波数判定部36へ与えられる。
For example, when the frequency of the output signal fout when the PLL circuit 1 is synchronized with the input signal fin is 6000H
z. The zero-crossing pulse ZP is output from the output signal fout by the zero-crossing detecting unit 31 of the frequency detecting circuit 30 when the polarity changes from positive to negative and when the polarity changes from negative to positive. The zero-crossing pulse ZP is counted by the counter 32. When a time base signal TB having a period T (= 0.01 s) is supplied from the timer 34 to the shift register 33 and the frequency determination unit 36, the count value CNT (= 120) of the counter 32 is changed according to the time base signal TB. is held in the register 33 1, the register 33 1, 33 2, ..., 33 9 each count value CNT held in the latter stage of the register 3
3 2, 33 3, ..., are sequentially shifted to 33 10. Then, the value of each register 33 to 333 10, which is shifted and summed by an adder 35, the sum value TOT (= 120
0) is provided to the frequency determination unit 36.

【0020】加算部35の合計値TOTが所定の範囲
(例えば、1200±4)に入っていれば、周波数判定
部36において、“正常”である旨の判定結果の検出信
号OUTが出力される。もしも、合計値TOTが所定の
範囲に入っていなければ、“異常”である旨の検出信号
OUTが出力される。周波数判定部36において、正常
または異常の検出信号OUTが出力された後、カウンタ
32へリセット信号RSTが出力され、このカウンタ3
2が0にリセットされる。このように、第4の実施形態
では、10段のシフトレジスタ33で、0.01s毎の
カウント値CNTをシフトして保持し、加算部35でこ
のシフトレジスタ33の各段に保持されたカウント値を
加算して合計値TOTを出力する。従って、0.01s
毎に最新の10回分、即ち0.1s間のカウント値CN
Tの合計値TOTに基づいて周波数の判定をすることが
可能になる。これにより、正確でかつ応答性の良い周波
数検出を行うことができる。
If the total value TOT of the adder 35 is within a predetermined range (for example, 1200 ± 4), the frequency determiner 36 outputs a detection signal OUT indicating a determination result indicating “normal”. . If the total value TOT does not fall within the predetermined range, a detection signal OUT indicating "abnormal" is output. After the normal or abnormal detection signal OUT is output from the frequency determination unit 36, a reset signal RST is output to the counter 32, and this counter 3
2 is reset to zero. As described above, in the fourth embodiment, the ten-stage shift register 33 shifts and holds the count value CNT every 0.01 s, and the adder 35 shifts the count value CNT held in each stage of the shift register 33. The values are added to output a total value TOT. Therefore, 0.01 s
The latest 10 counts, that is, the count value CN during 0.1 s
The frequency can be determined based on the total value TOT of T. As a result, accurate and responsive frequency detection can be performed.

【0021】第5の実施形態 図6は、本発明の第5の実施形態を示す周波数検出回路
の構成図であり、第4の実施形態を示す図5中の要素と
共通の要素には共通の符号が付されている。この周波数
検出回路30Aは、図5の周波数検出回路30における
加算部35に代えて、これと構成の異なる合計値更新手
段(例えば、演算部)37と合計値保持手段(例えば、
合計レジスタ)38を設けている。その他の構成は、図
5と同様である。演算部37は、シフトレジスタ33の
初段のレジスタ331 の出力信号の値と合計レジスタ3
8の出力信号の値を加算する加算器371 と、この加算
器371の加算結果からレジスタ3310の出力信号の値
を差引く減算器372 とで構成されている。そして、減
算器372 の出力側には、周波数判定部36と合計レジ
スタ38の入力側が接続されている。このような構成の
周波数検出回路30Aでは、演算部37によって、合計
レジスタ38中のレジスタ3310の値が、レジスタ33
1 の値に置き換えられて更新された合計値TOTが出力
されるようになっている。その他の動作は、前記第4の
実施形態と同様である。このように、第5の実施形態で
は、合計レジスタ38を1個設けることにより、演算部
37の構成を簡素化することができる。
Fifth Embodiment FIG. 6 is a block diagram of a frequency detection circuit according to a fifth embodiment of the present invention, and is common to the elements in FIG. 5 showing the fourth embodiment in common. Are given. This frequency detection circuit 30A is different from the frequency detection circuit 30 of FIG. 5 in that the addition section 35 is replaced with a total value updating section (for example, an operation section) 37 and a total value holding section (for example,
(Total register) 38 is provided. Other configurations are the same as those in FIG. Calculation unit 37, the sum register 3 the value of the first-stage register 33 1 of the output signal of the shift register 33
8 an adder 37 1 adds the value of the output signal, and is configured in this adder 37 1 of the addition result from subtracting the value of the output signal of the register 33 10 subtractor 37 2. Then, the output side of the subtractor 37 2, the input side of the sum register 38 is connected to the frequency determination unit 36. In the frequency detection circuit 30A having such a configuration, the value of the register 33 10 in the total register 38
The updated total value TOT replaced with the value of 1 is output. Other operations are the same as in the fourth embodiment. As described above, in the fifth embodiment, by providing one total register 38, the configuration of the operation unit 37 can be simplified.

【0022】第6の実施形態 図7は、本発明の第6の実施形態を示す周波数検出回路
の構成図であり、第4の実施形態を示す図5中の要素と
共通の要素には共通の符号が付されている。この周波数
検出回路30Bは、図5の周波数検出回路30に、判定
手段(例えば、同期判定部)39を追加するとともに、
周波数判定部36に代えてこれと機能が若干異なる周波
数判定部36Aを設けている。その他の構成は図5と同
様である。同期判定部39は、シフトレジスタ33の各
レジスタ331 〜3310からの出力信号が与えられ、こ
れらの出力信号がすべて一定範囲(例えば120±1)
に入っていれば、“有効”の旨の同期検出信号SYNを
周波数判定部36Aへ出力するものである。また、一定
範囲に入っていないものがあれば、同期判定部39は、
“無効”の旨の同期検出信号SYNを周波数判定部36
Aへ出力する機能を有している。一方、周波数判定部3
6Aは、同期判定信号SYNが“有効”の時に、タイマ
34から与えられる一定周期T(例えば、T=0.01
s)のタイムベース信号TBに従って、加算部35の合
計値TOTを読出し、その合計値TOTが一定範囲の値
であるか否かを判定して、その判定結果の検出信号OU
Tを出力するものである。もし同期判定信号SYNが
“無効”であれば、周波数判定部36Aは、合計値TO
Tの値に関係なく“異常”の旨の検出信号OUTを出力
するものである。また、周波数判定部36Aは、加算部
35の合計値TOTを読出した後、カウンタ34を次の
周期Tのカウント動作のためにリセット信号RSTによ
って0にリセットする機能を有している。
Sixth Embodiment FIG. 7 is a block diagram of a frequency detection circuit showing a sixth embodiment of the present invention, and is common to the elements in FIG. 5 showing the fourth embodiment in common. Are given. This frequency detection circuit 30B adds a determination unit (for example, a synchronization determination unit) 39 to the frequency detection circuit 30 of FIG.
A frequency determining unit 36A having a function slightly different from that of the frequency determining unit 36 is provided instead of the frequency determining unit 36. Other configurations are the same as those in FIG. Synchronization determination unit 39, the output signals from the respective registers 33 to 333 10 of the shift register 33 is given a constant of these output signals are all range (e.g. 120 ± 1)
If so, a synchronization detection signal SYN indicating "valid" is output to the frequency determination unit 36A. Also, if any of them does not fall within the certain range, the synchronization determination unit 39
The synchronization detection signal SYN indicating "invalid" is output to the frequency determination unit 36.
A function to output to A. On the other hand, the frequency determination unit 3
6A is a fixed period T (for example, T = 0.01) given from the timer 34 when the synchronization determination signal SYN is “valid”.
s), the total value TOT of the adder 35 is read in accordance with the time base signal TB, and it is determined whether or not the total value TOT is within a certain range.
T is output. If the synchronization determination signal SYN is “invalid”, the frequency determination unit 36A determines that the sum TO
The detection signal OUT indicating "abnormal" is output regardless of the value of T. Further, the frequency determining unit 36A has a function of resetting the counter 34 to 0 by the reset signal RST for the counting operation of the next cycle T after reading the total value TOT of the adding unit 35.

【0023】このように、第6の実施形態では、同期判
定部39を設けたので、前記第4の実施形態の利点に加
えて、更に誤検出のおそれを少なくすることができる。
なお、本発明は、上記実施形態に限定されず、種々の変
形が可能である。この変形例としては、例えば、次の
(a)〜(e)のようなものがある。 (a) カウンタ22,25はゼロ交差検出部21から
のゼロ交差信号ZPをカウントしているが、このような
方法に限定されず、例えば論理ゲート等を用いて、PL
L回路1等からの出力信号foutが一定の閾値を越え
る回数をカウントするようにしても良い。 (b) 図1中のタイマ24,27のタイムベース信号
TB1,TB2の周期は、1:Mの関係となっている
が、このような条件に限定されず、それぞれ任意の周期
を設定することができる。 (c) 同期判定部24,39は、10個のカウント値
CNTを用いて“有効”、“無効”の判定を行っている
が、10個に限定されず、任意の複数個のカウント値C
NTに基づいて判定することができる。 (d) シフトレジスタ33は、10段構成になってい
るが、10段に限定されず、任意のN段で構成すること
ができる。 (e) 同期判定部39では、個々のカウント値CNT
がそれぞれ一定の範囲にあるか否かを判定しているが、
例えば、最大値と最小値の差が一定範囲内にあるか否か
によって、カウント値CNTの妥当性を判定するように
しても良い。
As described above, in the sixth embodiment, since the synchronization determination section 39 is provided, the possibility of erroneous detection can be further reduced in addition to the advantages of the fourth embodiment.
Note that the present invention is not limited to the above embodiment, and various modifications are possible. For example, there are the following modifications (a) to (e). (A) The counters 22 and 25 count the zero-crossing signal ZP from the zero-crossing detecting unit 21, but the present invention is not limited to such a method.
The number of times that the output signal fout from the L circuit 1 or the like exceeds a certain threshold may be counted. (B) The periods of the time base signals TB1 and TB2 of the timers 24 and 27 in FIG. 1 have a relationship of 1: M. However, the present invention is not limited to such conditions, and any period may be set. Can be. (C) The synchronization determination units 24 and 39 determine “valid” or “invalid” using the ten count values CNT, but the number is not limited to ten and any number of count values C
It can be determined based on NT. (D) The shift register 33 has a ten-stage configuration, but is not limited to ten stages, and can be configured with any N stages. (E) In the synchronization determination unit 39, the individual count values CNT
Are in a certain range or not.
For example, the validity of the count value CNT may be determined based on whether or not the difference between the maximum value and the minimum value is within a certain range.

【0024】[0024]

【発明の効果】以上詳細に説明したように、第1及び第
2の発明によれば、第1の周期で入力信号をカウントし
て、そのカウント値が一定範囲に入っているか否かを判
定する判定手段と、一定範囲に入っている場合に、更に
第2の周期でカウントしたカウント値が所定の範囲に入
っているか否かを検出する検出手段とを備えている。こ
れにより、例えば、PLL回路等からの入力信号の周波
数を確実に検出することができる。第3の発明によれ
ば、一定周期のカウント値を逐次シフトして保持する保
持手段と、保持手段の各段のカウント値を合計する加算
手段と、その合計値が所定の範囲に入っているか否かを
検出する検出手段とを備えている。これにより、入力信
号の変動に対して迅速な応答が可能になり、かつ確実に
その周波数を検出することができる。第4の発明によれ
ば、カウント値の合計を保持する合計値保持手段と、こ
の合計値保持手段の保持する値を更新する合計値更新手
段を備えているので、第3の発明と同様の効果を有する
とともに、回路構成を簡素化することができる。第5の
発明によれば、第3の発明に対して、保持手段の各カウ
ント値がすべて一定範囲に入っているか否かを判定する
判定手段を追加しているので、より確実に周波数を検出
することができる。
As described above in detail, according to the first and second aspects, the input signal is counted in the first cycle, and it is determined whether or not the count value is within a certain range. And a detecting means for detecting whether or not the count value counted in the second cycle is within a predetermined range when the value falls within a certain range. Thereby, for example, the frequency of the input signal from the PLL circuit or the like can be reliably detected. According to the third aspect, the holding means for sequentially shifting and holding the count value of the fixed period, the adding means for summing the count values of the respective stages of the holding means, and whether the sum value is within a predetermined range Detection means for detecting whether or not there is no data. As a result, a quick response to a change in the input signal is enabled, and the frequency can be detected reliably. According to the fourth aspect of the present invention, since there is provided the total value holding means for holding the total of the count values and the total value updating means for updating the value held by the total value holding means, the same as the third invention is provided. This has an effect and can simplify the circuit configuration. According to the fifth aspect, the determination means for determining whether or not all the count values of the holding means are all within a certain range is added to the third aspect, so that the frequency can be detected more reliably. can do.

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

【図1】本発明の第1の実施形態を示す周波数検出回路
の構成図である。
FIG. 1 is a configuration diagram of a frequency detection circuit according to a first embodiment of the present invention.

【図2】従来の周波数検出回路の一例を示す構成図であ
る。
FIG. 2 is a configuration diagram illustrating an example of a conventional frequency detection circuit.

【図3】本発明の第2の実施形態を示す周波数検出回路
の構成図である。
FIG. 3 is a configuration diagram of a frequency detection circuit according to a second embodiment of the present invention.

【図4】本発明の第3の実施形態を示す周波数検出回路
の構成図である。
FIG. 4 is a configuration diagram of a frequency detection circuit according to a third embodiment of the present invention.

【図5】本発明の第4の実施形態を示す周波数検出回路
の構成図である。
FIG. 5 is a configuration diagram of a frequency detection circuit according to a fourth embodiment of the present invention.

【図6】本発明の第5の実施形態を示す周波数検出回路
の構成図である。
FIG. 6 is a configuration diagram of a frequency detection circuit according to a fifth embodiment of the present invention.

【図7】本発明の第6の実施形態を示す周波数検出回路
の構成図である。
FIG. 7 is a configuration diagram of a frequency detection circuit according to a sixth embodiment of the present invention.

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

20,20A,20B,30,30A,30B 周波
数検出回路 22,23,32 カウ
ンタ 24,29 同期
判定部 25,27,34 タイ
マ 26,36,36A 周波
数判定部 28 スイ
ッチ 29 切替
スイッチ 33 シフ
トレジスタ 35 加算
部 37 演算
部 38 合計
レジスタ
20, 20A, 20B, 30, 30A, 30B Frequency detection circuit 22, 23, 32 Counter 24, 29 Synchronization determination unit 25, 27, 34 Timer 26, 36, 36A Frequency determination unit 28 Switch 29 Switching switch 33 Shift register 35 Addition Unit 37 Operation unit 38 Total register

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 一定の閾値に対して正方向及び負方向に
交互に変化する入力信号が与えられ、該入力信号の該閾
値に対する変化の回数を一定の第1の周期でカウントす
る第1のカウント手段と、 前記入力信号が与えられ、該入力信号の前記閾値に対す
る変化の回数を前記第1の周期よりも長い一定の第2の
周期でカウントする第2のカウント手段と、 前記第1のカウント手段でカウントされた最新の複数の
カウント値が、すべて一定範囲に入っているか否かの判
定を行う判定手段と、 前記複数のカウント値がすべて一定範囲に入っていると
判定された場合に、前記第2のカウント手段のカウント
値が所定の範囲に入っているか否かを検出して、その検
出結果を出力する検出手段とを、 備えたことを特徴とする周波数検出回路。
An input signal that alternates in a positive direction and a negative direction with respect to a certain threshold value is provided, and a first count of the number of changes of the input signal with respect to the threshold value is performed in a certain first cycle. Counting means, provided with the input signal, a second counting means for counting the number of changes of the input signal with respect to the threshold value in a fixed second cycle longer than the first cycle, Determining means for determining whether or not the latest plurality of count values counted by the counting means are all within a certain range; and if it is determined that all of the plurality of count values are within a certain range, Detecting means for detecting whether or not the count value of the second counting means is within a predetermined range, and outputting a result of the detection.
【請求項2】 前記入力信号は、PLL回路から出力さ
れる信号であり、前記第2の周期は、前記第1の周期の
M(但し、Mは複数)倍の長さであり、前記最新の複数
のカウント値は、最新のM個のカウント値であることを
特徴とする請求項1記載の周波数検出回路。
2. The method according to claim 1, wherein the input signal is a signal output from a PLL circuit, and the second cycle has a length M (where M is a plurality) times the first cycle. 2. The frequency detection circuit according to claim 1, wherein the plurality of count values are the latest M count values.
【請求項3】 一定の閾値に対して正方向及び負方向に
交互に変化する入力信号が与えられ、該入力信号の該閾
値に対する変化の回数を一定周期でカウントするカウン
ト手段と、 前記カウント手段でカウントされたカウント値を保持す
るとともに、該保持したカウント値を、前記一定周期で
逐次後段へシフトして保持するN(但し、Nは複数)段
の保持手段と、 前記N段の保持手段に保持された前記各カウント値の合
計を、前記一定周期毎に算出する加算手段と、 前記加算手段で算出された合計が所定の範囲に入ってい
るか否かを検出して、その検出結果を出力する検出手段
とを、 備えたことを特徴とする周波数検出回路。
3. An input signal which alternately changes in a positive direction and a negative direction with respect to a certain threshold value is provided, and counting means for counting the number of changes of the input signal with respect to the threshold value in a certain cycle; And N (where N is a plurality) stages of holding means for holding the count value counted in the step (b) and sequentially shifting and holding the held count value to the subsequent stage at the constant period; Adding means for calculating the sum of the respective count values held in each of the predetermined cycles; and detecting whether or not the sum calculated by the adding means falls within a predetermined range, and detecting the detection result. A frequency detection circuit, comprising: a detection unit that outputs a signal.
【請求項4】 一定の閾値に対して正方向及び負方向に
交互に変化する入力信号が与えられ、該入力信号の該閾
値に対する変化の回数を一定周期でカウントするカウン
ト手段と、 前記カウント手段でカウントされたカウント値を保持す
るとともに、該保持したカウント値を、前記一定周期で
逐次後段へシフトして保持するN(但し、Nは複数)段
の保持手段と、 前記N段の保持手段で保持された各カウント値の合計を
保持するための合計値保持手段と、 前記N段の保持手段の内の初段の保持手段に保持された
カウント値と、前記合計値保持手段に保持された値とを
加算するとともに、該加算された値から該N段の保持手
段の内のN段目の保持手段に保持されたカウント値を差
引いて、更新された合計を該合計値保持手段に出力する
合計値更新手段と、 前記合計値更新手段によって更新された合計が所定の範
囲に入っているか否かを検出して、その検出結果を出力
する検出手段とを、 備えたことを特徴とする周波数検出回路。
4. An input signal which alternately changes in a positive direction and a negative direction with respect to a certain threshold value is provided, and counting means for counting the number of changes of the input signal with respect to the threshold value in a certain cycle; And N (where N is a plurality) stages of holding means for holding the count value counted in the step (b) and sequentially shifting and holding the held count value to the subsequent stage at the constant period; A total value holding means for holding the sum of the count values held in the step S, a count value held in the first-stage holding means of the N-stage holding means, and a count value held in the total value holding means. Value, and subtracts the count value held in the N-th holding means of the N-stage holding means from the added value, and outputs an updated total to the total value holding means. Total value update Means for detecting whether or not the sum updated by the sum value updating means falls within a predetermined range, and outputting a result of the detection.
【請求項5】 一定の閾値に対して正方向及び負方向に
交互に変化する入力信号が与えられ、該入力信号の該閾
値に対する変化の回数を一定周期でカウントするカウン
ト手段と、 前記カウント手段でカウントされたカウント値を保持す
るとともに、該保持したカウント値を、前記一定周期で
逐次後段へシフトして保持するN(但し、Nは複数)段
の保持手段と、 前記N段の保持手段に保持された前記各カウント値の合
計を算出する加算手段と、 前記N段の保持手段に保持された各カウント値がすべて
一定範囲に入っているか否かの判定を行う判定手段と、 前記各カウント値がすべて一定範囲に入っていると判定
された場合に、前記加算手段で算出された前記各カウン
ト値の合計が所定の範囲に入っているか否かを検出し
て、その検出結果を出力する検出手段とを、 備えたことを特徴とする周波数検出回路。
5. A counting means for receiving an input signal which alternately changes in a positive direction and a negative direction with respect to a certain threshold value, and counting the number of changes of the input signal with respect to the threshold value in a certain cycle; And N (where N is a plurality) stages of holding means for holding the count value counted in the step (b) and sequentially shifting and holding the held count value to the subsequent stage at the constant period; Adding means for calculating the sum of the count values held in the storage means; determining means for determining whether all the count values held in the N-stage holding means are all within a certain range; When it is determined that all the count values are within a certain range, it is detected whether or not the sum of the count values calculated by the adding means is within a predetermined range, and the detection result is obtained. Frequency detection circuit, characterized in that the force detecting means comprises a.
JP14076597A 1996-07-08 1997-05-30 Frequency detection circuit Withdrawn JPH1090317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14076597A JPH1090317A (en) 1996-07-08 1997-05-30 Frequency detection circuit

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP17786196 1996-07-08
JP8-177861 1996-07-08
JP14076597A JPH1090317A (en) 1996-07-08 1997-05-30 Frequency detection circuit

Publications (1)

Publication Number Publication Date
JPH1090317A true JPH1090317A (en) 1998-04-10

Family

ID=26473188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14076597A Withdrawn JPH1090317A (en) 1996-07-08 1997-05-30 Frequency detection circuit

Country Status (1)

Country Link
JP (1) JPH1090317A (en)

Similar Documents

Publication Publication Date Title
US7391240B2 (en) Clock anomaly detection circuit and clock anomaly detection method
KR100363816B1 (en) Device and apparatus for detecting clock failure
JPH0698354A (en) Skew measuring device
US5442278A (en) Apparatus for detecting the frequency of an input signal by counting pulses during an input signal cycle
JPS63314075A (en) Digital timing pulse generator
US20020008548A1 (en) Device for detecting abnormality of clock signal
JP3346017B2 (en) Physical quantity detector
JPH1090317A (en) Frequency detection circuit
JP2659594B2 (en) Physical quantity detector
JPS62251674A (en) Frequency abnormality detecting circuit
JP3257065B2 (en) Digital PLL device
JP3156273B2 (en) Pointer processing circuit
JP2598547Y2 (en) Pattern generator for semiconductor test equipment
JPH11330931A (en) Device and method for monitoring clock operation of control system
WO2003012995A2 (en) Pulse peak and/or trough detector
JPH1028110A (en) Phase difference measuring circuit
JP2776325B2 (en) Duty measurement circuit
JPH034945Y2 (en)
JP2606569B2 (en) Frame pulse output monitoring circuit
JPS60169222A (en) Error counter circuit
JPH0316313A (en) Detector for missing pulse
JPH11212663A (en) Clock signal interruption detecting circuit
JPH0721123A (en) Serial data transfer device
JP2000055958A (en) Duty ratio deciding circuit and method for deciding duty rato
JPS606143B2 (en) Input data state change detection 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: 20040803