JP2002296309A - Frequency anomaly detecting circuit and anomaly detecting value setting circuit used therefor - Google Patents

Frequency anomaly detecting circuit and anomaly detecting value setting circuit used therefor

Info

Publication number
JP2002296309A
JP2002296309A JP2001094473A JP2001094473A JP2002296309A JP 2002296309 A JP2002296309 A JP 2002296309A JP 2001094473 A JP2001094473 A JP 2001094473A JP 2001094473 A JP2001094473 A JP 2001094473A JP 2002296309 A JP2002296309 A JP 2002296309A
Authority
JP
Japan
Prior art keywords
clock
frequency
value
count value
monitored
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
JP2001094473A
Other languages
Japanese (ja)
Inventor
Hitoshi Masuda
仁 増田
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2001094473A priority Critical patent/JP2002296309A/en
Publication of JP2002296309A publication Critical patent/JP2002296309A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To detect frequency anomalies of a clock to be monitored and to set anomaly detecting values, as desired. SOLUTION: The number of clock pulses of a monitoring clock 2, in the half-period of the block to be monitored 1 by the monitoring clock 2 with a frequency higher than that of the clock to be monitored 1, is counted by a counter 6. When a counted value exceeds a set value of a comparator 7 or when it does not reach a set value of a comparator 8, frequency anomaly of the clock to be monitored 1 is detected. In addition, the values of the counter 6, when the clock to be monitored 1 is under normal conditions, are captured in latching circuits 13 and 14. When the latched values are matched by a number set by a comparator 15, a predetermined value is added to or subtracted from the values to be the set values of the compactors 7 and 8. Accordingly, it is possible to set the anomaly detecting values of the frequency anomaly detecting circuit, as desired.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、周波数異常検出回
路およびそれに用いる異常検出値設定回路に関し、特に
外部からの被監視クロックの周波数異常を監視クロック
を用いて検出する周波数異常検出回路およびそれに用い
る異常検出値設定回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a frequency abnormality detection circuit and an abnormality detection value setting circuit used therewith, and more particularly, to a frequency abnormality detection circuit for detecting a frequency abnormality of an externally monitored clock using a monitoring clock and a frequency abnormality detection circuit used therefor. It relates to an abnormality detection value setting circuit.

【0002】[0002]

【従来の技術】従来、外部から入力される被監視クロッ
クの周波数異常を検出する回路として、特開平7−23
5831号公報に開示されている周波数異常検出回路が
ある。図6にこの周波数異常検出回路のブロック図を示
す。図6は、周波数の異なる2つの発振器を有する場合
の周波数異常検出回路であり、周波数が相異なる発振器
1a,1bと、カウンタ2aと、デコーダ3aと、エッ
ジ検出回路5bと、カウンタ2aのオーバーフローを検
出する異常判別回路41aと、デコーダ3aとエッジ検
出回路5bとが一致していない時に異常と判別する異常
判別回路42aとから構成されている。
2. Description of the Related Art Conventionally, a circuit for detecting an abnormal frequency of a monitored clock input from the outside has been disclosed in JP-A-7-23.
There is a frequency abnormality detection circuit disclosed in Japanese Patent No. 5831. FIG. 6 shows a block diagram of this frequency abnormality detection circuit. FIG. 6 shows a frequency abnormality detection circuit having two oscillators having different frequencies. The overflow abnormality of the oscillators 1a and 1b having different frequencies, the counter 2a, the decoder 3a, the edge detection circuit 5b, and the counter 2a is shown. It comprises an abnormality determination circuit 41a for detecting, and an abnormality determination circuit 42a for determining an abnormality when the decoder 3a and the edge detection circuit 5b do not match.

【0003】この周波数異常検出回路では、通常時、カ
ウンタ2aは発振器1aをカウントし、エッジ検出回路
5bで検出される発振器1bの立ち上がりエッジでカウ
ンタ2aはリセットされる。また、デコーダ3aは、任
意のカウント値でデコードしているが、発振器1bの立
ち下がりエッジを検出するエッジ検出回路5bの出力と
一致した時のカウンタ2aの値を出力するよう予め設定
されている。そして、デコーダ3aの出力とエッジ検出
回路5bで検出される発振器1bの立ち下がりエッジ検
出されたエッジ検出回路5bの出力とが一致している時
は、異常判別回路42aは正常と判別している。
In this frequency abnormality detection circuit, the counter 2a normally counts the oscillator 1a, and the counter 2a is reset at the rising edge of the oscillator 1b detected by the edge detection circuit 5b. Although the decoder 3a decodes with an arbitrary count value, it is preset so as to output the value of the counter 2a when it matches the output of the edge detection circuit 5b for detecting the falling edge of the oscillator 1b. . When the output of the decoder 3a and the output of the edge detection circuit 5b that has detected the falling edge of the oscillator 1b detected by the edge detection circuit 5b match, the abnormality determination circuit 42a has determined that the abnormality is normal. .

【0004】かかる回路において、例えば、発振器1a
が停止した場合、カウンタ2aはカウントアップされな
くなり、同時にデコーダ3aもデコードしなくなるた
め、デコーダ3aの出力とエッジ検出回路5bで検出さ
れる発振器1bの立ち下がりエッジ検出されたエッジ検
出回路5bの出力とが一致しなくなるため、異常判別回
路42aにより異常と判別される。また、発振器1aが
高周波で発振した場合、カウンタ2aは正常な状態より
も早くカウントアップされるため、カウンタ2aはエッ
ジ検出回路5bで検出される発振器1bの立ち上がりエ
ッジにてリセットされる前にオーバーフローとなり、異
常判別回路41aにより異常と判別される。そして、発
振器1b出力が停止した場合や高周波で発振した場合
も、同様に異常検出がなされる。
In such a circuit, for example, an oscillator 1a
Stops, the counter 2a does not count up, and the decoder 3a does not decode at the same time. Therefore, the output of the decoder 3a and the output of the edge detection circuit 5b detected by the falling edge of the oscillator 1b detected by the edge detection circuit 5b are detected. Do not coincide with each other, so that the abnormality determination circuit 42a determines that there is an abnormality. Also, when the oscillator 1a oscillates at a high frequency, the counter 2a counts up earlier than in a normal state, so that the counter 2a overflows before being reset at the rising edge of the oscillator 1b detected by the edge detection circuit 5b. And the abnormality is determined to be abnormal by the abnormality determination circuit 41a. When the output of the oscillator 1b is stopped or when the oscillator oscillates at a high frequency, the abnormality is similarly detected.

【0005】また、外部から入力されるクロックの周波
数異常を検出する他の回路として、特開平11−127
064号公報に開示されている周波数異常検出回路があ
る。図7にこの周波数異常検出回路のブロック図を示
す。図7は、1つの発振器を用いて外部から入力される
クロック周波数の異常を検出する回路であり、内部発振
器100と、異常監視カウンタ101と、ウィンドウ生
成部102と、分周カウンタ103と、比較器104
と、被検出パルス生成用デコード回路105と、ウィン
ドウ生成用デコード回路106と、監視周期タイミング
用デコード回路107とから構成されている。
Another circuit for detecting an abnormal frequency of a clock input from the outside is disclosed in JP-A-11-127.
No. 064 discloses a frequency abnormality detection circuit. FIG. 7 shows a block diagram of this frequency abnormality detection circuit. FIG. 7 shows a circuit for detecting an abnormality of an externally input clock frequency using one oscillator. The internal oscillator 100, an abnormality monitoring counter 101, a window generator 102, a frequency division counter 103, Vessel 104
And a decoding circuit 105 for generating a detected pulse, a decoding circuit 106 for generating a window, and a decoding circuit 107 for monitoring cycle timing.

【0006】この周波数異常検出回路では、内部発振器
100の発生するクロックを基準としてウィンドウ生成
部102でウィンドウパルスを生成し、このウィンドウ
パルスによって規定される監視ウィンドウを定め、外部
から入力される被検出クロックから被検出パルス生成用
デコード回路105で被検出パルスを生成して、この被
検出パルスが監視ウィンドウ内にあるか否かを比較器1
04で判別することによって外部から入力される被検出
クロックの周波数異常を判定するものである。
In this frequency anomaly detection circuit, a window pulse is generated by a window generator 102 based on a clock generated by an internal oscillator 100, a monitoring window defined by the window pulse is determined, and a detection target input from the outside is detected. A detected pulse is generated from the clock by the detected pulse generating decode circuit 105, and the comparator 1 determines whether or not the detected pulse is within the monitoring window.
By making a determination in step 04, a frequency abnormality of the detected clock input from the outside is determined.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記図
6の周波数異常検出回路では、デコーダ3aがカウンタ
2aの値を出力するに当たり、デコーダ3aの出力を発
振器1bの立ち下がりエッジを検出するエッジ検出回路
5bの出力と一致するよう予め設定しておく必要がある
ため、発振器1bの発振周波数が変わると、デコーダ3
aの出力位置や、異常判別回路41aによるカウンタ2
0aのオーバーフロー検出値を変更しなければならな
い。
However, in the frequency abnormality detection circuit shown in FIG. 6, when the decoder 3a outputs the value of the counter 2a, the output of the decoder 3a is used as an edge detection circuit for detecting the falling edge of the oscillator 1b. 5b must be set in advance to match the output of the decoder 1b.
output position of the counter a and the counter 2 by the abnormality determination circuit 41a.
The overflow detection value of 0a must be changed.

【0008】また、デコーダ3aの出力は発振器1bの
立ち下がりエッジを検出した時の発振器1aのカウント
値、すなわちカウンタ2aの値であり、発振器1a,1
bの周波数およびデコード値は一定のタイミングで関連
付けられている。よって、デコード値を変更するために
は、発振器1a,1bの周波数も再度設定し直す必要が
ある。従って、周波数異常を検出する検出値を任意に設
定することができないため、周波数異常検出回路として
集積化が図れず汎用性がないという問題がある。
The output of the decoder 3a is the count value of the oscillator 1a when the falling edge of the oscillator 1b is detected, that is, the value of the counter 2a.
The frequency b and the decode value are associated at a certain timing. Therefore, in order to change the decode value, it is necessary to set the frequencies of the oscillators 1a and 1b again. Therefore, it is not possible to arbitrarily set a detection value for detecting a frequency abnormality, so that there is a problem that the frequency abnormality detection circuit cannot be integrated and has no versatility.

【0009】また、上記図7の周波数異常検出回路で
は、被検出パルスが、監視ウィンドウ内にあるか否かに
よって外部から入力される被検出クロックの周波数異常
を判定しているため、周波数異常検出の精度は、監視ウ
ィンドウの安定性に影響されることになる。よって、監
視ウィンドウの生成元である内部発振器100には安定
度の高いものが要求されるため、コストがかかるという
問題がある。
In the frequency abnormality detection circuit shown in FIG. 7, the frequency abnormality of the detected clock input from the outside is determined based on whether or not the detected pulse is within the monitoring window. Accuracy will be affected by the stability of the monitoring window. Therefore, there is a problem that the internal oscillator 100, which is the source of the monitoring window, is required to have a high degree of stability, which increases the cost.

【0010】そこで、本発明はかかる従来技術の問題点
を解決すべくなされたものであって、その目的とすると
ころは、被監視クロックと監視クロックとの周波数関係
に自由度を持たせ、監視クロックの周波数精度を特に必
要とせず、また周波数異常検出値を任意に設定可能な周
波数異常検出回路およびそれに用いる異常検出値設定回
路を提供することにある。
The present invention has been made to solve the above-mentioned problems of the prior art, and an object of the present invention is to provide a degree of freedom in the frequency relationship between a monitored clock and a monitored clock so that monitoring can be performed. An object of the present invention is to provide a frequency abnormality detection circuit which does not particularly require the frequency accuracy of a clock and which can arbitrarily set a frequency abnormality detection value, and an abnormality detection value setting circuit used therefor.

【0011】[0011]

【課題を解決するための手段】本発明によれば、外部か
らの被監視クロックの周波数異常を検出する周波数異常
検出回路であって、前記被監視クロックより大なる周波
数の監視クロックを用い、前記被監視クロックの所定の
周期における前記監視クロックのクロックパルス数を計
数する計数手段と、前記計数手段の計数値と予め設定さ
れた第1の設定値との比較をなす第1の比較手段と、前
記第1の設定値より小なる第2の設定値と前記計数手段
の計数値との比較をなす第2の比較手段とを含み、前記
第1、第2の比較手段の出力に応じて前記被監視クロッ
クの周波数異常を検出する検出手段を含むことを特徴と
する周波数異常検出回路が得られる。
According to the present invention, there is provided a frequency abnormality detecting circuit for detecting a frequency abnormality of an externally monitored clock, wherein the frequency abnormality detecting circuit uses a monitoring clock having a frequency higher than the monitored clock. Counting means for counting the number of clock pulses of the monitoring clock in a predetermined cycle of the monitored clock; first comparing means for comparing a count value of the counting means with a first set value set in advance; A second comparison unit configured to compare a second set value smaller than the first set value with a count value of the counting unit; A frequency abnormality detection circuit including detection means for detecting a frequency abnormality of the monitored clock is obtained.

【0012】また、前記第1の比較手段は、前記計数値
が前記第1の設定値を上回ると第1の異常信号を出力
し、前記第2の比較手段は、前記計数値が前記第2の設
定値を下回ると第2の異常信号を出力することを特徴と
し、前記第2の比較手段の比較出力を、少なくとも前記
所定の周期に相当する期間マスキングする手段を更に含
むことを特徴とする。
Further, the first comparing means outputs a first abnormal signal when the count value exceeds the first set value, and the second comparing means outputs the first abnormal signal when the count value exceeds the second set value. A second abnormal signal is output when the value falls below a set value of the second period, and further comprising means for masking the comparison output of the second comparing means for at least a period corresponding to the predetermined period. .

【0013】そして本発明によれば、外部からの被監視
クロックをこの被監視クロックより大なる周波数の監視
クロックを用い、前記被監視クロックの所定の周期にお
ける前記監視クロックのクロックパルス数を計数する計
数手段と、前記計数手段の計数値と予め設定された第1
の設定値との比較をなす第1の比較手段と、前記第1の
設定値より小なる第2の設定値と前記計数手段の計数値
との比較をなす第2の比較手段とを含み、前記第1、第
2の比較手段の出力に応じて前記被監視クロックの周波
数異常を検出する周波数異常検出回路に用いる異常検出
値設定回路であって、前記被監視クロックの周期で前記
計数値を順次取り込み、第1の計数値として保持する第
1のラッチ手段と、前記被監視クロックの周期で前記第
1の計数値を順次取り込み、第2の計数値として保持す
る第2のラッチ手段と、前記第1の計数値と前記第2の
計数値とが所定回数一致すると、この計数値に所定の値
を加算し、前記第1の設定値とする加算手段と、この計
数値から所定の値を減算し、前記第2の設定値とする減
算手段とを含むことを特徴とする周波数異常検出回路に
用いる異常検出値設定回路が得られる。
According to the present invention, the number of clock pulses of the monitoring clock in a predetermined cycle of the monitored clock is counted by using the monitoring clock from the outside as a monitoring clock having a frequency higher than that of the monitoring clock. Counting means, and a count value of the counting means and a preset first value
First comparing means for comparing with a set value of the second set value, and second comparing means for comparing a second set value smaller than the first set value with a count value of the counting means, An abnormality detection value setting circuit used in a frequency abnormality detection circuit for detecting an abnormality in the frequency of the monitored clock in accordance with an output of the first and second comparing means, wherein the count value is calculated in a cycle of the monitored clock. First latch means for sequentially capturing and holding as a first count value, and second latch means for sequentially capturing the first count value at a cycle of the monitored clock and holding as a second count value; When the first count value and the second count value match a predetermined number of times, a predetermined value is added to the count value to make the first set value, and a predetermined value is calculated from the count value. And a subtraction means for subtracting the second set value. Abnormality detection value setting circuit used in the frequency anomaly detection circuit, wherein is obtained.

【0014】本発明の作用を述べる。被監視クロックよ
り高い周波数の監視クロックを用いて、被監視クロック
の所定周期における監視クロックのクロックパルス数を
カウントする。このカウント値が予め設定された上限値
を超えた場合、あるいは予め設定された下限値を下回っ
た場合、被監視クロックの周波数が異常であると判断す
る。また、被監視クロックの周波数が正常の時のカウン
タ値を被監視クロックの周期でラッチ回路に取り込むと
ともに、この取り込んだカウンタ値を被監視クロックの
更に次の周期で他のラッチ回路に取り込む。そして、こ
れ等2つのラッチ回路に保持されたカウンタ値が所定回
数一致すれば、このカウンタ値に所定値を加算して周波
数異常検出の上限値として設定し、カウンタ値から所定
値を減算して周波数異常検出の下限値として設定する。
これにより、周波数異常検出回路の異常検出値を任意に
設定可能となる。
The operation of the present invention will be described. Using the monitoring clock having a higher frequency than the monitored clock, the number of clock pulses of the monitoring clock in a predetermined period of the monitored clock is counted. If the count value exceeds a preset upper limit value or falls below a preset lower limit value, it is determined that the frequency of the monitored clock is abnormal. Further, the counter value when the frequency of the monitored clock is normal is taken into the latch circuit at the period of the monitored clock, and the taken counter value is taken into another latch circuit at the next period of the monitored clock. If the counter values held in these two latch circuits match a predetermined number of times, a predetermined value is added to the counter value to set it as an upper limit value for frequency abnormality detection, and the predetermined value is subtracted from the counter value. Set as the lower limit of frequency abnormality detection.
This makes it possible to arbitrarily set the abnormality detection value of the frequency abnormality detection circuit.

【0015】[0015]

【発明の実施の形態】以下に、添付図面を参照しつつ本
発明の実施の形態について説明する。図1は本発明の実
施の一形態における周波数異常検出回路の構成を示すブ
ロック図である。図1において、本発明による周波数異
常検出回路は、周波数異常検出部20aと異常検出値設
定部20bとに大別される。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a block diagram showing a configuration of a frequency abnormality detection circuit according to one embodiment of the present invention. In FIG. 1, the frequency abnormality detection circuit according to the present invention is roughly divided into a frequency abnormality detection section 20a and an abnormality detection value setting section 20b.

【0016】まず、周波数異常検出部20aは、被監視
クロック1と、被監視クロック1より周波数の高い監視
クロック2と、監視クロック2と被監視クロック1との
同期を取るDフリップフロップ(以下、「DFF」とい
う)3と、被監視クロック1と監視クロック2との同期
を取った後、その同期出力を監視クロック2にてサンプ
リングするAND回路4と、被監視クロック1と監視ク
ロック2の同期を取った後、その同期出力の立ち上がり
エッジを検出し、カウンタ6に対してロードをかけるエ
ッジ検出回路5と、サンプリング結果をカウントするカ
ウンタ6と、カウンタ6のカウント値を予め定めた値と
比較するコンパレータ7およびコンパレータ8と、コン
パレータ8の出力をトリガとして所定時間その出力状態
を維持するリトリガブルな単安定マルチバイブレータ
(以下、「モノマルチ」という)9と、コンパレータ7
の比較結果とモノマルチ9の出力との論理積をとるAN
D回路10とから構成され、周波数異常出力端子11に
被監視クロック1の周波数の異常の有無が出力される。
First, the frequency abnormality detecting section 20a includes a monitored clock 1, a monitored clock 2 having a higher frequency than the monitored clock 1, and a D flip-flop (hereinafter, referred to as a D flip-flop) for synchronizing the monitored clock 2 and the monitored clock 1. After synchronizing the monitored clock 1 and the monitored clock 2, the AND circuit 4 samples the synchronous output with the monitored clock 2, and synchronizes the monitored clock 1 with the monitored clock 2. After that, the rising edge of the synchronous output is detected, the edge detection circuit 5 loads the counter 6, the counter 6 counts the sampling result, and the count value of the counter 6 is compared with a predetermined value. And a comparator for maintaining the output state for a predetermined time triggered by the output of the comparator 8 Bull monostable multivibrator (hereinafter referred to as "mono-multi") and 9, the comparator 7
ANDing the logical product of the result of comparison with the output of the mono-multi 9
A frequency abnormality output terminal 11 outputs whether or not the frequency of the monitored clock 1 is abnormal.

【0017】次に、異常検出値設定部20bは、被監視
クロック1の周波数が正常時のカウンタ6のカウント値
を保持するラッチ回路13と、ラッチ回路13で保持さ
れたカウント値を保持するラッチ回路14と、これ等ラ
ッチ回路13および14にエッジ検出回路5のタイミン
グでカウント値を保持させるOR回路12と、ラッチ回
路13とラッチ回路14とに保持されたカウント値を比
較するコンパレータ15と、コンパレータ15による比
較の結果、ラッチ回路13のカウント値とラッチ回路1
4のカウント値とが予め定めた回数だけ一致した時、ラ
ッチ回路13からラッチ回路14へのカウント値の保持
を禁止する保護カウンタ16と、ラッチ回路13および
14で保持されたカウント値に予め定められた値を加算
する加算回路17と、ラッチ回路13および14で保持
されたカウント値から予め定められた値を減算する減算
回路18とから構成されている。
Next, the abnormality detection value setting section 20b includes a latch circuit 13 for holding the count value of the counter 6 when the frequency of the monitored clock 1 is normal, and a latch for holding the count value held by the latch circuit 13. A circuit 14, an OR circuit 12 that causes the latch circuits 13 and 14 to hold a count value at the timing of the edge detection circuit 5, a comparator 15 that compares the count values held by the latch circuit 13 and the latch circuit 14, As a result of the comparison by the comparator 15, the count value of the latch circuit 13 and the latch circuit 1
4 and the protection counter 16 for inhibiting the holding of the count value from the latch circuit 13 to the latch circuit 14 when the count value matches the predetermined number of times, and the count value held by the latch circuits 13 and 14 is determined in advance. An addition circuit 17 for adding the obtained values and a subtraction circuit 18 for subtracting a predetermined value from the count values held by the latch circuits 13 and 14 are provided.

【0018】次に、本発明の実施の一形態における周波
数異常検出回路のうち、周波数異常検出部20aの動作
について図1を参照しながら詳細に説明する。周波数異
常検出部20aにおいて、被監視クロック1と監視クロ
ック2とが非同期である場合に対応するため、DFF3
によって被監視クロック1と監視クロック2の同期を取
る。DFF3のQ出力、すなわち、監視クロック2との
同期が取られた被監視クロック1は、AND回路4にお
いて監視クロック2によってサンプリングされる。すな
わち、被監視クロック1の半周期中の監視クロック2の
クロックパルスが得られることになる。
Next, the operation of the frequency abnormality detecting section 20a of the frequency abnormality detecting circuit according to one embodiment of the present invention will be described in detail with reference to FIG. In the frequency abnormality detection unit 20a, the DFF3 is used to cope with the case where the monitored clock 1 and the monitoring clock 2 are asynchronous.
Thus, the monitored clock 1 and the monitoring clock 2 are synchronized. The Q output of the DFF 3, that is, the monitored clock 1 synchronized with the monitoring clock 2 is sampled by the monitoring clock 2 in the AND circuit 4. That is, the clock pulse of the monitoring clock 2 in the half cycle of the monitored clock 1 is obtained.

【0019】ここで、監視クロック2の周波数が被監視
クロック1の周波数に比べて十分高ければ、被監視クロ
ック1と監視クロック2の同期が取れていなくても、A
ND回路4によるサンプリング結果、すなわち、被監視
クロック1の半周期中の監視クロック2のクロックパル
ス数の誤差は、周波数異常の検出精度にほとんど影響を
与えないため、かかる場合は被監視クロック1と監視ク
ロック2とが非同期であっても特に支障はない。
Here, if the frequency of the monitored clock 2 is sufficiently higher than the frequency of the monitored clock 1, even if the monitored clock 1 and the monitoring clock 2 are not synchronized, A
The sampling result of the ND circuit 4, that is, the error in the number of clock pulses of the monitoring clock 2 in the half cycle of the monitored clock 1 hardly affects the detection accuracy of the frequency abnormality. There is no particular problem even if the monitoring clock 2 is asynchronous.

【0020】AND回路4によるサンプリング結果は、
カウンタ6のCK端子に入力される。すなわち、被監視
クロック1の半周期中に存在する監視クロック2のクロ
ックパルス数がカウンタ6によってカウントされ、カウ
ント値はコンパレータ7および8に出力される。一方、
DFF3のQ出力は、エッジ検出回路5にてエッジ検出
され、カウンタ6のLD端子に入力される。
The result of sampling by the AND circuit 4 is as follows:
It is input to the CK terminal of the counter 6. That is, the counter 6 counts the number of clock pulses of the monitoring clock 2 existing in a half cycle of the monitored clock 1, and outputs the count value to the comparators 7 and 8. on the other hand,
The Q output of the DFF 3 is edge-detected by the edge detection circuit 5 and is input to the LD terminal of the counter 6.

【0021】エッジ検出回路5におけるエッジ検出はD
FF3のQ出力の立ち上がりでも立ち下がりでも良い
が、ここでは立ち上がりエッジ検出をする場合について
説明する。エッジ検出回路5は、DFF3のQ出力、す
なわち、被監視クロック1の立ち上がりを検出すると、
カウンタ6のLD端子に”L”パルスを出力し、カウン
タ6をロードする。カウンタ6は、ここから再び被監視
クロック1の半周期中に存在する監視クロック2のクロ
ックパルス数をカウントすることになる。
Edge detection in the edge detection circuit 5 is D
Although the rising or falling of the Q output of the FF3 may be used, the case where the rising edge is detected will be described here. When the edge detection circuit 5 detects the Q output of the DFF 3, that is, the rising edge of the monitored clock 1,
An “L” pulse is output to the LD terminal of the counter 6 to load the counter 6. From here, the counter 6 again counts the number of clock pulses of the monitoring clock 2 existing in the half cycle of the monitored clock 1.

【0022】コンパレータ7および8では、夫々予め設
定された値(以下、「閾値」という)とカウンタ6から
出力されたカウント値との比較が行われる。コンパレー
タ7は、カウンタ6のカウンタ値が閾値を超えれば被監
視クロック1が周波数異常である旨の”L”を出力し、
閾値を超えなければ周波数正常である旨の”H”を出力
する。コンパレータ8は、カウンタ6のカウンタ値が閾
値を超えなければ被監視クロック1が周波数異常である
旨の”L”を出力し、閾値を超れば周波数正常である旨
の”H”を出力する。すなわち、被監視クロック1の周
波数が低くなると、カウンタ6のカウント値が上昇し、
コンパレータ7の閾値を超えると周波数異常と判断され
る。また、被監視クロック1の周波数が高くなると、カ
ウンタ6のカウント値は低下し、コンパレータ8の閾値
を超えなくなると周波数異常と判断されるのである。
Each of the comparators 7 and 8 compares a preset value (hereinafter referred to as a “threshold”) with a count value output from the counter 6. When the counter value of the counter 6 exceeds the threshold value, the comparator 7 outputs “L” indicating that the monitored clock 1 has an abnormal frequency,
If it does not exceed the threshold value, it outputs "H" indicating that the frequency is normal. If the counter value of the counter 6 does not exceed the threshold value, the comparator 8 outputs “L” indicating that the monitored clock 1 is abnormal in frequency, and outputs “H” indicating that the frequency is normal if it exceeds the threshold value. . That is, when the frequency of the monitored clock 1 decreases, the count value of the counter 6 increases,
If the threshold value of the comparator 7 is exceeded, it is determined that the frequency is abnormal. Further, when the frequency of the monitored clock 1 increases, the count value of the counter 6 decreases, and when it does not exceed the threshold value of the comparator 8, it is determined that the frequency is abnormal.

【0023】更に、コンパレータ8の出力はモノマルチ
9に入力される。モノマルチ9は、コンパレータ8の”
H”出力が入力される度にトリガがかかるため、所定時
間”H”状態を出力し続ける。コンパレータ7の出力と
モノマルチ9の出力はAND回路10に入力され、最終
的に周波数異常出力端子11の出力が”H”であれば被
監視クロック1の周波数は正常であり、”L”であれば
被監視クロック1の周波数は異常であると検出される。
Further, the output of the comparator 8 is input to the mono multi 9. The mono multi 9 is a comparator 8
Since a trigger is activated each time an H "output is input, the output of the comparator 7 and the output of the mono-multi 9 are input to the AND circuit 10 and finally output as an abnormal frequency output terminal. If the output of the monitor clock 11 is “H”, the frequency of the monitored clock 1 is normal, and if the output of “11” is “L”, the frequency of the monitored clock 1 is detected as abnormal.

【0024】上記動作について図2を用いてより具体的
に説明する。図2は、本発明における周波数異常検出回
路の周波数異常検出部20aにおいて、監視クロック2
の周波数が被監視クロック1の周波数の20倍であると
想定した時の、被監視クロック1の周波数が正常な場合
のタイミングチャート図である。図2において、図1に
示した各部と同等部分については、同一符号で示してい
る。
The above operation will be described more specifically with reference to FIG. FIG. 2 shows a monitoring clock 2 in the frequency abnormality detecting section 20a of the frequency abnormality detecting circuit according to the present invention.
4 is a timing chart when the frequency of the monitored clock 1 is normal, assuming that the frequency of the monitored clock 1 is 20 times the frequency of the monitored clock 1. FIG. In FIG. 2, parts that are the same as the parts shown in FIG. 1 are denoted by the same reference numerals.

【0025】かかる場合、カウンタ6のカウント値は、
被監視クロック1の半周期中の監視クロック2のクロッ
クパルス数が10個であるから0から9までカウントさ
れ、カウント値が9に達するとエッジ検出回路5からの
ロード信号が入力されるまでカウント値9をそのまま保
持し、エッジ検出回路5からのロード信号により再び0
にリセットされる。ここで、コンパレータ7で検出され
る周波数異常と判断する閾値を11に設定し、コンパレ
ータ8で検出される周波数異常と判断する閾値を8に設
定する。
In such a case, the count value of the counter 6 is
Since the number of clock pulses of the monitoring clock 2 in the half cycle of the monitored clock 1 is 10, it is counted from 0 to 9, and when the count value reaches 9, it is counted until the load signal from the edge detection circuit 5 is input. The value 9 is kept as it is, and the value of 0 is reset by the load signal from the edge detection circuit 5.
Is reset to Here, the threshold for judging that the frequency is abnormal detected by the comparator 7 is set to 11, and the threshold for judging that the frequency is abnormal detected by the comparator 8 is set to 8.

【0026】この時、カウント値はコンパレータ7の閾
値11を超えることがないため、コンパレータ7の出力
は常時”H”、すなわち被監視クロック1の周波数は正
常であると判断される。これに対して、コンパレータ8
はカウント値が閾値8を超えるまでの間”L”、すなわ
ち被監視クロック1の周波数異常を出力してしまう。か
かる場合であっても、周波数異常出力端子11におい
て、被監視クロック1の周波数は正常であると検出され
る必要がある。
At this time, since the count value does not exceed the threshold value 11 of the comparator 7, it is determined that the output of the comparator 7 is always "H", that is, the frequency of the monitored clock 1 is normal. On the other hand, the comparator 8
Outputs "L" until the count value exceeds the threshold value 8, that is, an abnormal frequency of the monitored clock 1 is output. Even in such a case, it is necessary for the abnormal frequency output terminal 11 to detect that the frequency of the monitored clock 1 is normal.

【0027】このため、カウント値が閾値8を超えた時
のコンパレータ8の”H”出力が入力されると、所定時
間”H”状態を出力し続けるモノマルチ9を設けてい
る。このモノマルチ9の出力と、コンパレータ7の出力
とをAND回路10に入力することによって、その出力
である周波数異常出力端子11において、被監視クロッ
ク1の周波数異常の有無が正しく検出されることにな
る。すなわち、モノマルチ9とAND回路10は、カウ
ント値が閾値8を超えるまでの間のコンパレータ8の”
L”出力が周波数異常出力端子11に現れないようマス
キングしているのである。
For this reason, there is provided a mono-multi 9 which keeps outputting the "H" state for a predetermined time when the "H" output of the comparator 8 is inputted when the count value exceeds the threshold value 8. By inputting the output of the mono-multi 9 and the output of the comparator 7 to the AND circuit 10, the presence or absence of the frequency abnormality of the monitored clock 1 is correctly detected at the frequency abnormality output terminal 11, which is the output. Become. In other words, the mono-multi 9 and the AND circuit 10 determine whether or not the comparator 8 has been operated until the count value exceeds the threshold value 8.
Masking is performed so that the L ″ output does not appear at the abnormal frequency output terminal 11.

【0028】なお、図2において、被監視クロック1の
周波数は正常な状態が継続しているため、図示したタイ
ミング以前においてもカウンタ値は8を超えている。こ
れにより、コンパレータ8は”H”を出力していること
になるため、これをトリガとするモノマルチ9は結果的
に常時”H”を出力していることになる。また、モノマ
ルチ9において、コンパレータ8の”H”出力をトリガ
として、”H”状態を出力し続ける時間については、外
部に設けられる時定数回路(図示せず)によって任意に
設定可能である。
In FIG. 2, since the frequency of the monitored clock 1 continues to be normal, the counter value exceeds 8 even before the illustrated timing. As a result, the comparator 8 outputs “H”, and as a result, the mono-multi 9 triggered by this output always outputs “H”. In the monomulti 9, the time during which the “H” state is continuously output with the “H” output of the comparator 8 as a trigger can be arbitrarily set by a time constant circuit (not shown) provided outside.

【0029】次に、被監視クロック1の周波数が異常に
なった場合について説明する。図3は、被監視クロック
1の周波数が図2の場合と比較して低くなった場合のタ
イミングチャート図である。なお、コンパレータ7およ
び8の閾値は図2の場合と同様とする。かかる場合、カ
ウンタ6のカウント値が0からカウントされ、カウント
値が11を超えると、コンパレータ7は”L”、すなわ
ち被監視クロック1の周波数異常を出力する。また、コ
ンパレータ7の”L”出力がカウンタ6のEP,ET端
子に入力されているため、カウンタ6の動作も停止して
しまう。
Next, a case where the frequency of the monitored clock 1 becomes abnormal will be described. FIG. 3 is a timing chart when the frequency of the monitored clock 1 is lower than that in FIG. The threshold values of the comparators 7 and 8 are the same as in FIG. In such a case, the count value of the counter 6 is counted from 0, and when the count value exceeds 11, the comparator 7 outputs “L”, that is, an abnormal frequency of the monitored clock 1. Further, since the "L" output of the comparator 7 is input to the EP and ET terminals of the counter 6, the operation of the counter 6 also stops.

【0030】更に、カウント値が閾値8を超えるまで
は、図2の場合と同様にコンパレータ8は”L”、すな
わち被監視クロック1の周波数異常を出力してしまうた
め、モノマルチ9によって、カウント値が閾値8を超え
た後のコンパレータ8の”H”出力をトリガとして、上
述した時定数回路により時刻tの間”H”状態を保持
し、常時”H”を出力するようにしている。これによ
り、周波数異常出力端子11では、コンパレータ7で検
出された被監視クロック1の周波数異常のみが検出され
ることになる。
Further, the comparator 8 outputs "L", that is, an abnormal frequency of the monitored clock 1 until the count value exceeds the threshold value 8, as in the case of FIG. With the “H” output of the comparator 8 after the value exceeds the threshold value 8 as a trigger, the “H” state is maintained for the time t by the above-described time constant circuit, and “H” is constantly output. As a result, only the frequency abnormality of the monitored clock 1 detected by the comparator 7 is detected at the frequency abnormality output terminal 11.

【0031】次に、被監視クロック1の周波数が異常に
なった場合として、被監視クロック1の周波数が高くな
った場合について説明する。図4は、被監視クロック1
の周波数が図2の場合と比較して高くなった場合のタイ
ミングチャート図である。なお、コンパレータ7および
8の閾値も図2の場合と同様とする。かかる場合、カウ
ンタ6のカウント値は0から7までカウントされるが、
カウント値は11を超えることはないため、コンパレー
タ7の出力は常時”H”、すなわち被監視クロック1の
周波数が正常である旨出力する。
Next, as a case where the frequency of the monitored clock 1 becomes abnormal, a case where the frequency of the monitored clock 1 becomes higher will be described. FIG. 4 shows the monitored clock 1
FIG. 3 is a timing chart when the frequency is higher than that in FIG. The threshold values of the comparators 7 and 8 are the same as in FIG. In such a case, the count value of the counter 6 is counted from 0 to 7,
Since the count value does not exceed 11, the output of the comparator 7 always outputs "H", that is, the output that the frequency of the monitored clock 1 is normal.

【0032】ところが、カウント値は8も超えないた
め、コンパレータ8は”L”、すなわち被監視クロック
1の周波数異常を出力する。かかる場合、コンパレータ
8からは”H”出力が得られないため、モノマルチ9は
トリガ源を失うことになり、前述した時刻tを経過した
後、”H”出力を継続することができず、”L”を出力
する。従って、周波数異常出力端子11からは、このモ
ノマルチ9の”L”と同時に”L”すなわち被監視クロ
ック1の周波数異常が検出されることになる。
However, since the count value does not exceed 8, the comparator 8 outputs "L", that is, an abnormal frequency of the monitored clock 1. In such a case, since the "H" output is not obtained from the comparator 8, the monomulti 9 loses the trigger source, and the "H" output cannot be continued after the time t described above. "L" is output. Therefore, from the frequency abnormality output terminal 11, "L", that is, the frequency abnormality of the monitored clock 1 is detected simultaneously with "L" of the monomulti 9.

【0033】図1に戻り、本発明における周波数異常検
出回路を構成する異常検出値設定部20bについて説明
する。異常検出値設定部20bにおいて、カウンタ6の
カウント値は、まずエッジ検出回路5のタイミングでラ
ッチ回路13に保持される。また、ラッチ回路13に保
持されたカウント値は、エッジ検出回路5の次のタイミ
ングでラッチ回路14に保持される。すなわち、ラッチ
回路13に保持されたカウント値が現在のカウンタ6の
カウント値であるとすると、ラッチ回路14に保持され
たカウント値は被監視クロック1の1周期前のカウンタ
6のカウント値ということになる。
Returning to FIG. 1, the abnormality detection value setting section 20b constituting the frequency abnormality detection circuit according to the present invention will be described. In the abnormality detection value setting section 20b, the count value of the counter 6 is first held in the latch circuit 13 at the timing of the edge detection circuit 5. The count value held in the latch circuit 13 is held in the latch circuit 14 at the next timing of the edge detection circuit 5. That is, assuming that the count value held in the latch circuit 13 is the current count value of the counter 6, the count value held in the latch circuit 14 is the count value of the counter 6 one cycle before the monitored clock 1. become.

【0034】ラッチ回路13に保持されたカウント値と
ラッチ回路14に保持されたカウント値はコンパレータ
15で比較が行われ、この比較結果が一致した回数を保
護カウンタ16でカウントする。両者のカウント値が保
護カウンタ16で予め設定された回数だけ一致した場
合、OR回路12によりエッジ検出回路5のタイミング
でのラッチ回路13、およびラッチ回路14へのカウン
ト値の保持を禁止する。また、両者のカウント値が保護
カウンタ16で予め設定された回数だけ一致しない場
合、保護カウンタ16を一旦リセットし、保護カウンタ
16で予め設定された回数だけ両者のカウント値が一致
するまでエッジ検出回路5のタイミングでラッチ回路1
3、およびラッチ回路14へのカウント値の保持を継続
する。
The count value held by the latch circuit 13 and the count value held by the latch circuit 14 are compared by a comparator 15, and the number of times the comparison result matches is counted by a protection counter 16. When the count values of the two coincide with each other a predetermined number of times by the protection counter 16, the OR circuit 12 prohibits the latch circuits 13 and 14 from holding the count values at the timing of the edge detection circuit 5. If the count values of the two do not match the number of times set by the protection counter 16 in advance, the protection counter 16 is reset once, and the edge detection circuit is used until the count values match by the number of times set in advance by the protection counter 16. Latch circuit 1 at timing 5
3, and the holding of the count value in the latch circuit 14 is continued.

【0035】保護カウンタ16で予め設定された回数だ
け両者のカウント値が一致すれば、そのカウント値をも
って被監視クロック1の周波数が正常な場合のカウント
値(以下、「正常カウント値」という)とみなす。そし
て、加算回路17によって、この正常カウント値に所定
値が加算されることでコンパレータ7の閾値が設定さ
れ、減算回路18によって、この正常カウント値から所
定値が減算されることでコンパレータ8の閾値が設定さ
れる。
If the count values of the two counters coincide with each other a predetermined number of times by the protection counter 16, the count value when the frequency of the monitored clock 1 is normal (hereinafter referred to as "normal count value") is used as the count value. I reckon. The threshold value of the comparator 7 is set by adding a predetermined value to the normal count value by the adding circuit 17, and the threshold value of the comparator 8 is set by subtracting the predetermined value from the normal count value by the subtraction circuit 18. Is set.

【0036】次に、本発明の他の実施の形態について説
明する。図5は、被監視クロックが複数存在する場合に
おける周波数異常検出回路の構成を示すブロック図であ
る。図5において、1A,1B,1C,および1Dは夫
々周波数異常を監視すべき被監視クロックであり、夫々
の被監視クロック1A〜1Dに対応して周波数異常監視
回路30A,30B,30C,および30Dが設けられ
ている。ここで、周波数異常監視回路30A,30B,
30C,および30Dは図1に示した周波数異常検出回
路と同一のものであり、各回路の内部構成について図1
と同等部分については同一符号で示している。また、監
視クロック2は周波数異常監視回路30A〜30Dに対
して共通とし、夫々の被監視クロック1A〜1Dに対す
る周波数異常検出回路30A〜30Dの検出結果は、外
部に設けられたOR回路19に入力され、検出結果が周
波数異常出力端子11に出力される構成である。
Next, another embodiment of the present invention will be described. FIG. 5 is a block diagram showing a configuration of the frequency abnormality detection circuit when there are a plurality of monitored clocks. In FIG. 5, reference numerals 1A, 1B, 1C, and 1D denote monitored clocks whose frequency abnormalities are to be monitored, respectively. Is provided. Here, the frequency abnormality monitoring circuits 30A, 30B,
30C and 30D are the same as the frequency abnormality detection circuit shown in FIG. 1, and the internal configuration of each circuit is shown in FIG.
The same parts as those shown in FIG. The monitoring clock 2 is common to the frequency abnormality monitoring circuits 30A to 30D, and the detection results of the frequency abnormality detection circuits 30A to 30D for the monitored clocks 1A to 1D are input to an OR circuit 19 provided outside. Then, the detection result is output to the frequency abnormality output terminal 11.

【0037】なお、本発明が上記実施の形態に限定され
ず、本発明の技術的思想の範囲内において適宜変更され
得ることは明らかである。例えば、上記実施の形態では
被監視クロックの周波数異常を検出するに当たり、被監
視クロックの半周期中に存在する監視クロックのクロッ
クパルス数をカウントしているが、被監視クロックの周
波数変動を検出できるものであれば、被監視クロックの
任意のタイミングにおける監視クロックのクロックパル
ス数をカウントすることも可能である。
It is apparent that the present invention is not limited to the above-described embodiment, but can be appropriately modified within the scope of the technical idea of the present invention. For example, in the above-described embodiment, when detecting an abnormal frequency of the monitored clock, the number of clock pulses of the monitoring clock existing in a half cycle of the monitored clock is counted, but the frequency fluctuation of the monitored clock can be detected. If the number of clock pulses of the monitored clock is arbitrary, the number of clock pulses of the monitored clock at an arbitrary timing of the monitored clock can be counted.

【0038】[0038]

【発明の効果】叙上の如く、本発明によれば、被監視ク
ロックより周波数の高い監視クロックを用いて、被監視
クロックの所定周期内の監視クロックパルス数をカウン
トすることで周波数異常検出を行っているため、被監視
クロックと監視クロックとの周波数関係に自由度が増
し、監視クロックの周波数精度を特に必要としない周波
数異常検出回路を提供することができるという効果があ
る。
As described above, according to the present invention, the frequency abnormality detection is performed by counting the number of monitor clock pulses within a predetermined period of the monitored clock using the monitor clock having a higher frequency than the monitored clock. Because of this, the degree of freedom in the frequency relationship between the monitored clock and the monitored clock is increased, and it is possible to provide a frequency abnormality detection circuit that does not particularly require the frequency accuracy of the monitored clock.

【0039】また、本発明によれば、正常時の被監視ク
ロックのカウント値に所定値を加減することで周波数異
常の検出範囲を設定しているため、周波数異常検出回路
における異常検出値を任意に設定することができるとい
う効果がある。
Further, according to the present invention, since the detection range of the frequency abnormality is set by adding or subtracting a predetermined value to the count value of the monitored clock in the normal state, the abnormality detection value in the frequency abnormality detection circuit can be arbitrarily set. There is an effect that can be set to.

【0040】更に、本発明によれば、回路を構成する素
子と被監視クロック、および監視クロックとはタイミン
グにおいて何等関連付けておく必要性がなく、また、全
ての回路素子は論理回路で構成可能であるため、容易に
集積化を図ることができるという効果もある。
Further, according to the present invention, there is no need to associate any elements constituting the circuit with the monitored clock and the monitoring clock in timing, and all the circuit elements can be constituted by logic circuits. Therefore, there is an effect that integration can be easily achieved.

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

【図1】本発明の実施の形態における周波数異常検出回
路のブロック図である。
FIG. 1 is a block diagram of a frequency abnormality detection circuit according to an embodiment of the present invention.

【図2】被監視クロック周波数の正常時のタイミングチ
ャート図である。
FIG. 2 is a timing chart when a monitored clock frequency is normal.

【図3】被監視クロック周波数の異常時(低くなった
時)のタイミングチャート図である。
FIG. 3 is a timing chart when the monitored clock frequency is abnormal (when it becomes low).

【図4】被監視クロック周波数の異常時(高くなった
時)のタイミングチャート図である。
FIG. 4 is a timing chart when the monitored clock frequency is abnormal (when it becomes high).

【図5】被監視クロックが複数ある場合の周波数異常検
出回路のブロック図である。
FIG. 5 is a block diagram of a frequency abnormality detection circuit when there are a plurality of monitored clocks.

【図6】従来の周波数異常検出回路のブロック図であ
る。
FIG. 6 is a block diagram of a conventional frequency abnormality detection circuit.

【図7】従来の他の周波数異常検出回路のブロック図で
ある。
FIG. 7 is a block diagram of another conventional frequency abnormality detection circuit.

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

1,1A,1B,1C,1D 被監視クロック入力端子 2 監視クロック 3 Dフリップフロップ(DFF) 4,10 AND回路 5 エッジ検出回路 6 カウンタ 7,8,15 コンパレータ 9 単安定マルチバイブレータ(モノマルチ) 11 周波数異常出力端子 12,19 OR回路 13,14 ラッチ回路 16 保護カウンタ 17 加算回路 18 減算回路 20a 周波数異常検出部 20b 異常検出値設定部 30A,30B,30C,30D 周波数異常検出回路 1, 1A, 1B, 1C, 1D Monitored clock input terminal 2 Monitored clock 3 D flip-flop (DFF) 4, 10 AND circuit 5 Edge detection circuit 6 Counter 7, 8, 15 Comparator 9 Monostable multivibrator (mono multi) 11 Frequency abnormality output terminal 12, 19 OR circuit 13, 14 Latch circuit 16 Protection counter 17 Addition circuit 18 Subtraction circuit 20a Frequency abnormality detection unit 20b Abnormal detection value setting unit 30A, 30B, 30C, 30D Frequency abnormality detection circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 外部からの被監視クロックの周波数異常
を検出する周波数異常検出回路であって、 前記被監視クロックより大なる周波数の監視クロックを
用い、前記被監視クロックの所定の周期における前記監
視クロックのクロックパルス数を計数する計数手段と、
前記計数手段の計数値と予め設定された第1の設定値と
の比較をなす第1の比較手段と、前記第1の設定値より
小なる第2の設定値と前記計数手段の計数値との比較を
なす第2の比較手段とを含み、 前記第1、第2の比較手段の出力に応じて前記被監視ク
ロックの周波数異常を検出する検出手段を含むことを特
徴とする周波数異常検出回路。
1. A frequency abnormality detection circuit for detecting an abnormal frequency of a clock to be monitored from outside, wherein the monitoring is performed at a predetermined cycle of the monitored clock using a monitoring clock having a frequency higher than the monitored clock. Counting means for counting the number of clock pulses of the clock;
First comparing means for comparing the count value of the counting means with a first preset value, and a second setting value smaller than the first setting value and a count value of the counting means. And a second comparing means for making a comparison between the first and second comparing means, and a detecting means for detecting an abnormal frequency of the monitored clock in accordance with an output of the first and second comparing means. .
【請求項2】 前記第1の比較手段は、前記計数値が前
記第1の設定値を上回ると第1の異常信号を出力し、前
記第2の比較手段は、前記計数値が前記第2の設定値を
下回ると第2の異常信号を出力することを特徴とする請
求項1記載の周波数異常検出回路。
2. The first comparing means outputs a first abnormal signal when the count value exceeds the first set value, and the second comparing means outputs the first abnormal signal when the count value exceeds the second set value. 2. A frequency abnormality detection circuit according to claim 1, wherein a second abnormality signal is output when the frequency falls below a set value.
【請求項3】 前記第2の比較手段の比較出力を、少な
くとも前記所定の周期に相当する期間マスキングする手
段を更に含むことを特徴とする請求項1または2記載の
周波数異常検出回路。
3. The frequency anomaly detection circuit according to claim 1, further comprising: means for masking a comparison output of said second comparison means for at least a period corresponding to the predetermined period.
【請求項4】 外部からの被監視クロックをこの被監視
クロックより大なる周波数の監視クロックを用い、前記
被監視クロックの所定の周期における前記監視クロック
のクロックパルス数を計数する計数手段と、前記計数手
段の計数値と予め設定された第1の設定値との比較をな
す第1の比較手段と、前記第1の設定値より小なる第2
の設定値と前記計数手段の計数値との比較をなす第2の
比較手段とを含み、前記第1、第2の比較手段の出力に
応じて前記被監視クロックの周波数異常を検出する周波
数異常検出回路に用いる異常検出値設定回路であって、 前記被監視クロックの周期で前記計数値を順次取り込
み、第1の計数値として保持する第1のラッチ手段と、 前記被監視クロックの周期で前記第1の計数値を順次取
り込み、第2の計数値として保持する第2のラッチ手段
と、 前記第1の計数値と前記第2の計数値とが所定回数一致
すると、この計数値に所定の値を加算し、前記第1の設
定値とする加算手段と、 この計数値から所定の値を減算し、前記第2の設定値と
する減算手段と、を含むことを特徴とする周波数異常検
出回路に用いる異常検出値設定回路。
4. A counter for counting the number of clock pulses of the monitor clock in a predetermined cycle of the monitor clock, using a monitor clock from the outside as a monitor clock having a frequency higher than the monitor clock, First comparing means for comparing a count value of the counting means with a first set value set in advance, and a second comparing means smaller than the first set value
And a second comparator for comparing the set value of the counter with the count of the counter, and a frequency abnormality for detecting a frequency abnormality of the monitored clock in accordance with an output of the first and second comparators. An abnormality detection value setting circuit used in a detection circuit, wherein: first latch means for sequentially taking in the count value at a cycle of the monitored clock and holding the count value as a first count value; A second latch means for sequentially taking in the first count value and holding it as a second count value; and when the first count value and the second count value match a predetermined number of times, the count value is set to a predetermined value. Frequency abnormality detection, comprising: adding means for adding a value and setting the first set value; and subtracting a predetermined value from the count value to set the second set value. An abnormality detection value setting circuit used for the circuit.
JP2001094473A 2001-03-29 2001-03-29 Frequency anomaly detecting circuit and anomaly detecting value setting circuit used therefor Pending JP2002296309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001094473A JP2002296309A (en) 2001-03-29 2001-03-29 Frequency anomaly detecting circuit and anomaly detecting value setting circuit used therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001094473A JP2002296309A (en) 2001-03-29 2001-03-29 Frequency anomaly detecting circuit and anomaly detecting value setting circuit used therefor

Publications (1)

Publication Number Publication Date
JP2002296309A true JP2002296309A (en) 2002-10-09

Family

ID=18948661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001094473A Pending JP2002296309A (en) 2001-03-29 2001-03-29 Frequency anomaly detecting circuit and anomaly detecting value setting circuit used therefor

Country Status (1)

Country Link
JP (1) JP2002296309A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007293682A (en) * 2006-04-26 2007-11-08 Fujitsu Ltd Circuit and method for detecting clock abnormality
JP2013024787A (en) * 2011-07-25 2013-02-04 Nec Access Technica Ltd Jitter detector, jitter detection method, and jitter detecting program
JP5199392B2 (en) * 2008-12-08 2013-05-15 パナソニック株式会社 System clock monitoring device and motor control system
JP2013201619A (en) * 2012-03-26 2013-10-03 Nec Computertechno Ltd Clock failure detection device, and clock failure detection method
JP7414514B2 (en) 2019-12-23 2024-01-16 ファナック株式会社 Monitoring device, motor drive device and monitoring method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007293682A (en) * 2006-04-26 2007-11-08 Fujitsu Ltd Circuit and method for detecting clock abnormality
JP4653008B2 (en) * 2006-04-26 2011-03-16 富士通株式会社 Clock abnormality detection circuit and clock abnormality detection method
JP5199392B2 (en) * 2008-12-08 2013-05-15 パナソニック株式会社 System clock monitoring device and motor control system
JP2013024787A (en) * 2011-07-25 2013-02-04 Nec Access Technica Ltd Jitter detector, jitter detection method, and jitter detecting program
JP2013201619A (en) * 2012-03-26 2013-10-03 Nec Computertechno Ltd Clock failure detection device, and clock failure detection method
JP7414514B2 (en) 2019-12-23 2024-01-16 ファナック株式会社 Monitoring device, motor drive device and monitoring method

Similar Documents

Publication Publication Date Title
EP1675267B1 (en) Periodic electrical signal frequency monitoring systems and methods
US6765444B2 (en) Cross clocked lock detector circuit for phase locked loop
US6545508B2 (en) Detection of clock signal period abnormalities
KR19980087059A (en) Locking identification circuit for phase lock loop
US6469544B2 (en) Device for detecting abnormality of clock signal
JPH02283120A (en) Noise eliminator
JP2002296309A (en) Frequency anomaly detecting circuit and anomaly detecting value setting circuit used therefor
JP4819707B2 (en) Redundant computing system and computing unit
JP2013197692A (en) Pll clock generation circuit
JP5171379B2 (en) Frequency abnormality detection circuit
US8212597B2 (en) Method for detecting the locking of a phase-locked loop and associated device
KR19990060348A (en) Clock monitoring circuit using self clock
JPH0349319A (en) Synchronization detection system
JPH10240374A (en) Clock abnormality detection circuit
JP2002041178A (en) Semiconductor integrated circuit device
JP2002026704A (en) Clock fault detector and its method
KR100221496B1 (en) Synchronizing state monitoring circuit
JPH11212663A (en) Clock signal interruption detecting circuit
JPH09244761A (en) Clock abnormality detecting circuit
JP3842880B2 (en) Clock frequency anomaly detection circuit and method
JPH0879066A (en) Lock detector for phase locked loop circuit
JPS62214733A (en) Code error detector
JPH05219097A (en) Timing signal monitoring circuit
JP2004252834A (en) Clock error detection circuit and its detection method
JPH06140928A (en) Drift detection circuit