JP2003308131A - Clock monitoring device - Google Patents

Clock monitoring device

Info

Publication number
JP2003308131A
JP2003308131A JP2002113755A JP2002113755A JP2003308131A JP 2003308131 A JP2003308131 A JP 2003308131A JP 2002113755 A JP2002113755 A JP 2002113755A JP 2002113755 A JP2002113755 A JP 2002113755A JP 2003308131 A JP2003308131 A JP 2003308131A
Authority
JP
Japan
Prior art keywords
clock
signal
counter value
clock signal
abnormality
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
JP2002113755A
Other languages
Japanese (ja)
Inventor
Katsushi Yamada
勝志 山田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002113755A priority Critical patent/JP2003308131A/en
Publication of JP2003308131A publication Critical patent/JP2003308131A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a clock monitoring device capable of simultaneously monitoring the frequency and duty ratio of an operating clock, and easily monitoring two clocks even in equipment to be operated with two different clocks. <P>SOLUTION: On detecting the rising edge of a clock A, an edge detecting circuit 11 outputs a first notice signal to a counter circuit 12, and on detecting the falling edge of the clock A, the edge detecting circuit 11 outputs a second notice signal to the counter circuit 12. The counter circuit 12 counts the pulse of a clock B, and outputs a second counter value being a counter value at that point of time to a comparator circuit 14 on the basis of the first notice signal, and sets the counter to zero, and outputs a first counter value being the counter value at that point of time to the comparator circuit 14 on the basis of the second notice signal. The comparator circuit 14 compares the first counter value with the second counter value to detect whether or not those values are within a normal range, and detects any abnormality. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル機器等
におけるクロック監視装置に関し、特に、DSP(Digi
tal Signal Processor)等を用いたディジタルオーディ
オ機器に適用して良好なクロック監視装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock monitoring device in a digital device or the like, and more particularly to a DSP (Digi
The present invention relates to a good clock monitoring device applied to a digital audio device using a digital signal processor).

【0002】[0002]

【従来の技術】従来、この種のクロック監視装置として
は、例えば特開平4−326410号公報に記載されて
いるものがあり、図7のように示される。このクロック
監視装置では、基準クロック72が定めた一定時間間隔
内に、動作クロック71がいくつクロックパルスを出し
ているかをカウント回路73でカウントし、記憶装置7
4に記憶された正常のカウンタ値と比較し、不一致であ
れば動作クロック71の異常であると判断する。
2. Description of the Related Art Conventionally, as this type of clock monitoring device, there is one described in, for example, Japanese Patent Laid-Open No. 4-326410, which is shown in FIG. In this clock monitoring device, the count circuit 73 counts how many clock pulses the operation clock 71 outputs within a fixed time interval defined by the reference clock 72, and the storage device 7
4 is compared with the normal counter value stored in 4, and if they do not match, it is determined that the operation clock 71 is abnormal.

【0003】[0003]

【発明が解決しようとする課題】しかし、このような従
来のクロック監視装置では、監視対象の動作クロックの
パルスをカウント(パルスの立ち上がりまたは立ち下が
りのみをカウント)しているだけなので、動作クロック
のパルスのローレベルとハイレベルの区間比率(以降、
これはデューティ比と呼ぶ)の監視を行なうことができ
ないという問題があった。
However, in such a conventional clock monitoring apparatus, since the pulses of the operation clock to be monitored are only counted (only the rising or falling edges of the pulse are counted), the operation clock Pulse low level and high level section ratio (hereinafter,
This is called a duty ratio), but there is a problem in that it cannot be monitored.

【0004】また、一定時間間隔内の動作クロックのパ
ルス数をカウントし正常のカウンタ値と比較してクロッ
クを監視しているために、異なる周波数の動作クロック
源が2つある装置、例えば、DSPのマシンサイクルを
定める一般に数十メガオーダーのクロックと、オーディ
オデータのサンプリング周期を定める一般に数十キロオ
ーダーのクロックを備えるディジタルオーディオ機器な
どにおいて、2つのクロックを同時に監視するにはそれ
ぞれのクロックに監視装置が必要になり、装置構成が煩
雑になるという問題があった。
Further, since the number of pulses of the operation clock within a fixed time interval is counted and compared with a normal counter value to monitor the clock, a device having two operation clock sources of different frequencies, for example, a DSP. To monitor two clocks at the same time in a digital audio device, etc., which generally has a clock of several tens of mega orders that determines the machine cycle and a clock of several tens of kilo orders that determines the sampling period of audio data. There is a problem that a device is required and the device configuration becomes complicated.

【0005】本発明はこのような問題を解決するために
なされたもので、動作クロックの周波数とデューティ比
を同時に監視することができ、異なる2つのクロックで
動作する機器においても容易に2つのクロックを監視す
ることができるクロック監視装置を提供するものであ
る。
The present invention has been made to solve such a problem, and it is possible to simultaneously monitor the frequency and duty ratio of an operating clock, and it is easy to use two clocks even in an apparatus operating with two different clocks. And a clock monitoring device capable of monitoring the clock.

【0006】[0006]

【課題を解決するための手段】本発明のクロック監視装
置は、第1のクロック信号を入力され、前記第1のクロ
ック信号の立ち上がりエッジを検出すると第1の通知信
号を出力し、前記第1のクロック信号の立ち下がりエッ
ジを検出すると第2の通知信号を出力するエッジ検出手
段と、前記第1のクロック信号の周波数の少なくとも2
倍の周波数の第2のクロック信号を入力され、前記第2
のクロック信号のパルス数をカウントし、前記第1の通
知信号を受信した時点のカウント値と、前記第2の通知
信号を受信した時点のカウント値に基づいて前記クロッ
ク信号の異常を検出する異常検出手段とを備える構成を
有している。
A clock monitoring device of the present invention receives a first clock signal, outputs a first notification signal when a rising edge of the first clock signal is detected, and outputs the first notification signal. Edge detecting means for outputting a second notification signal when the falling edge of the clock signal is detected, and at least 2 of the frequencies of the first clock signal.
A second clock signal having a doubled frequency is input,
An abnormality in which the number of pulses of the clock signal is counted, and the abnormality of the clock signal is detected based on the count value at the time of receiving the first notification signal and the count value at the time of receiving the second notification signal. And a detecting means.

【0007】この構成により、第1のクロック信号のパ
ルスのエッジとエッジの間の第2のクロック信号のパル
ス数に基づいてクロック信号の異常が検出されることと
なる。
With this configuration, an abnormality of the clock signal is detected based on the number of pulses of the second clock signal between the edges of the pulse of the first clock signal.

【0008】ここで、前記異常検出手段は、前記第1の
通知信号から前記第2の通知信号までのカウント値と、
前記第1の通知信号から次の前記第1の通知信号までの
カウント値とに基づいて前記第1のクロック信号の異常
を検出する構成とした。
[0008] Here, the abnormality detecting means has a count value from the first notification signal to the second notification signal,
The configuration is such that an abnormality of the first clock signal is detected based on the count value from the first notification signal to the next first notification signal.

【0009】この構成により、第1のクロック信号の1
周期の第2のクロック信号のパルス数と、第1のクロッ
ク信号のハイレベル期間の第2のクロック信号のパルス
数に基づいてクロック信号の異常が検出されることとな
る。
With this configuration, 1 of the first clock signal is used.
An abnormality of the clock signal is detected based on the number of pulses of the second clock signal in the cycle and the number of pulses of the second clock signal in the high level period of the first clock signal.

【0010】また、前記異常検出手段は、前記第2の通
知信号から前記第1の通知信号までのカウント値と、前
記第第2の通知信号から次の前記第2の通知信号までの
カウント値とに基づいて前記第1のクロック信号の異常
を検出する構成とした。
Further, the abnormality detecting means has a count value from the second notification signal to the first notification signal and a count value from the second notification signal to the next second notification signal. Based on the above, it is configured to detect the abnormality of the first clock signal.

【0011】この構成により、第1のクロック信号の1
周期の第2のクロック信号のパルス数と、第1のクロッ
ク信号のローレベル期間の第2のクロック信号のパルス
数に基づいてクロック信号の異常が検出されることとな
る。
With this configuration, 1 of the first clock signal is used.
The abnormality of the clock signal is detected based on the number of pulses of the second clock signal in the cycle and the number of pulses of the second clock signal in the low level period of the first clock signal.

【0012】また、前記異常検出手段は、前記カウント
値が予め設定された正常範囲内に入っているかを判定し
て前記クロック信号の異常を検出する構成とした。
Further, the abnormality detecting means is configured to detect the abnormality of the clock signal by judging whether the count value is within a preset normal range.

【0013】この構成により、第1のクロック信号のパ
ルスのエッジとエッジの間の第2のクロック信号のパル
ス数が正常範囲内に入っているかによりクロック信号の
異常が検出されることとなる。
With this configuration, the abnormality of the clock signal is detected depending on whether the number of pulses of the second clock signal between the edges of the pulse of the first clock signal is within the normal range.

【0014】また、前記異常検出手段が前記クロック信
号の異常を検出したとき、出力信号をミュートするミュ
ート手段を備える構成とした。
The abnormality detecting means is provided with a mute means for muting the output signal when the abnormality of the clock signal is detected.

【0015】この構成により、クロック信号に異常が発
生した場合、出力信号がミュートされ、動作クロック異
常の際の異常音が出力されないこととなる。
With this configuration, when an abnormality occurs in the clock signal, the output signal is muted, and no abnormal sound is output when the operation clock is abnormal.

【0016】本発明のクロック監視方法は、第1のクロ
ック信号の立ち上がりエッジ及び立ち下がりエッジを検
出する工程と、前記第1のクロック信号の周波数の少な
くとも1000倍の周波数の第2のクロック信号のパル
スの数をカウントする工程と、前記立ち上がりエッジ検
出時の前記カウントの値と前記立ち下がりエッジ検出時
の前記カウントの値とに基づいて前記クロック信号の異
常を検出する工程とを備える構成を有している。
The clock monitoring method of the present invention comprises the steps of detecting the rising edge and the falling edge of the first clock signal, and the second clock signal having a frequency of at least 1000 times the frequency of the first clock signal. And a step of counting the number of pulses, and a step of detecting an abnormality of the clock signal based on the count value at the time of detecting the rising edge and the count value at the time of detecting the falling edge. is doing.

【0017】この構成により、第1のクロック信号のパ
ルスのエッジとエッジの間の第2のクロック信号のパル
ス数に基づいてクロック信号の異常が検出されることと
なる。
With this configuration, the abnormality of the clock signal is detected based on the number of pulses of the second clock signal between the edges of the pulse of the first clock signal.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を参照して説明する。図1は本発明の第1の実
施の形態のクロック監視装置を示す図である。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a clock monitoring device according to a first embodiment of the present invention.

【0019】図1に示すように、本実施の形態のクロッ
ク監視装置10は、クロックAのエッジを検出してカウ
ンタ回路12に通知するエッジ検出回路11と、クロッ
クBのパルスをカウントするカウンタ回路12と、クロ
ック正常時のカウンタ値の範囲が記憶されたメモリ13
と、カウンタ回路12によるカウンタ値とメモリ13内
のカウンタ値を比較する比較回路14とを備えている。
As shown in FIG. 1, the clock monitoring apparatus 10 of the present embodiment includes an edge detection circuit 11 that detects the edge of the clock A and notifies the counter circuit 12 and a counter circuit that counts the pulses of the clock B. 12 and a memory 13 that stores the range of counter values when the clock is normal
And a comparison circuit 14 for comparing the counter value of the counter circuit 12 with the counter value in the memory 13.

【0020】なお、監視対象とする機器はクロックAと
クロックBによって動作しており、本発明を実施するた
めにはクロックBの周波数は、クロックAの周波数の2
倍あればよいが、クロックAの周波数より十分大きく
(例えば、クロックAの周波数を10kHzとすると、ク
ロックBの周波数は10MHz程度)したほうが好まし
い。
The equipment to be monitored operates by the clock A and the clock B. To implement the present invention, the frequency of the clock B is 2 times the frequency of the clock A.
Although it may be doubled, it is preferable that the frequency is sufficiently higher than the frequency of the clock A (for example, if the frequency of the clock A is 10 kHz, the frequency of the clock B is about 10 MHz).

【0021】このようなクロック監視装置10の動作
は、図2に示すように、まず、エッジ検出回路11は、
クロックAの立ち上がりエッジを検出するとカウンタ回
路12に第1の通知信号を出力する。
As shown in FIG. 2, the operation of the clock monitoring apparatus 10 is as follows.
When the rising edge of the clock A is detected, the counter circuit 12 outputs the first notification signal.

【0022】カウンタ回路12は、第1の通知信号によ
りカウンタをゼロに設定し、クロックBのパルスのカウ
ント動作を開始する。
The counter circuit 12 sets the counter to zero by the first notification signal, and starts the counting operation of the clock B pulse.

【0023】エッジ検出回路11は、クロックAの立ち
下がりエッジを検出するとカウンタ回路12に第2の通
知信号を出力する。
When the edge detection circuit 11 detects the falling edge of the clock A, it outputs a second notification signal to the counter circuit 12.

【0024】カウンタ回路12は、第2の通知信号によ
り、その時点のカウンタ値である第1のカウンタ値を比
較回路14に出力する。
In response to the second notification signal, the counter circuit 12 outputs the first counter value, which is the counter value at that time, to the comparison circuit 14.

【0025】そして、エッジ検出回路11は、クロック
Aの立ち上がりエッジを検出するとカウンタ回路12に
第1の通知信号を出力する。
Then, the edge detection circuit 11 outputs the first notification signal to the counter circuit 12 when detecting the rising edge of the clock A.

【0026】カウンタ回路12は、第1の通知信号によ
り、その時点のカウンタ値である第2のカウンタ値を比
較回路14に出力し、カウンタをゼロに設定し、クロッ
クBのパルスのカウント動作を開始し、同様なカウント
動作を繰り返す。
In response to the first notification signal, the counter circuit 12 outputs the second counter value, which is the counter value at that time, to the comparator circuit 14, sets the counter to zero, and performs the pulse B clock pulse counting operation. Start and repeat similar counting operation.

【0027】比較回路14は、クロックAのハイレベル
区間をクロックBでカウントした場合の正常なカウンタ
値の範囲を定める下限値と上限値である第1の下限カウ
ンタ値と第1の上限カウンタ値をメモリ13から読み出
し、第1のカウンタ値が第1の下限カウンタ値以上かつ
第1の上限カウンタ値以下であるか比較する。
The comparator circuit 14 includes a first lower limit counter value and a first upper limit counter value which are lower limit values and upper limit values that define a range of normal counter values when the high level section of the clock A is counted by the clock B. Is read from the memory 13 and it is compared whether the first counter value is greater than or equal to the first lower limit counter value and less than or equal to the first upper limit counter value.

【0028】同様に、クロックAの1周期区間をクロッ
クBでカウントした場合の正常なカウンタ値の範囲を定
める下限値と上限値である第2の下限カウンタ値と第2
の上限カウンタ値をメモリ13から読み出し、第2のカ
ウンタ値が第2の下限カウンタ値以上かつ第2の上限カ
ウンタ値以下であるか比較する。
Similarly, the second lower limit counter value and the second lower limit counter value, which are the lower limit value and the upper limit value, which define the range of the normal counter value when the one cycle period of the clock A is counted by the clock B, respectively.
The upper limit counter value of is read from the memory 13, and it is compared whether the second counter value is equal to or more than the second lower limit counter value and is equal to or less than the second upper limit counter value.

【0029】第1のカウンタ値が正常なカウンタ値の範
囲内に入っていなければ、クロックAのデューティ比が
異常か、クロックBが異常であると判断する。
If the first counter value is not within the range of the normal counter value, it is determined that the duty ratio of the clock A is abnormal or the clock B is abnormal.

【0030】第2のカウンタ値が正常なカウンタ値の範
囲内に入っていなければ、クロックAの周波数が異常
か、クロックBが異常であると判断する。
If the second counter value is not within the range of the normal counter value, it is determined that the frequency of the clock A is abnormal or the clock B is abnormal.

【0031】図3は、本実施の形態のクロック監視装置
10のエッジ検出回路11の処理手順を示すフローチャ
ートである。
FIG. 3 is a flow chart showing the processing procedure of the edge detection circuit 11 of the clock monitoring apparatus 10 of this embodiment.

【0032】エッジ検出回路11は、クロックAの立ち
上がりエッジを監視しており(S30)、立ち上がりエ
ッジを検出すると、カウンタ回路12に第1の通知信号
を出力する(S31)。
The edge detection circuit 11 monitors the rising edge of the clock A (S30), and when detecting the rising edge, outputs the first notification signal to the counter circuit 12 (S31).

【0033】次いで、エッジ検出回路11は、クロック
Aの立ち下がりエッジを監視し(S32)、立ち下がり
エッジを検出すると、カウンタ回路12に第2の通知信
号を出力する(S33)。
Next, the edge detection circuit 11 monitors the falling edge of the clock A (S32), and when detecting the falling edge, outputs the second notification signal to the counter circuit 12 (S33).

【0034】このようにすると、S31から次のS31
までの間がクロックAの1周期区間となり、S31から
S32までの間がクロックAのハイレベル区間となる。
In this way, from S31 to the next S31
Is the period of one cycle of the clock A, and the period from S31 to S32 is the high level period of the clock A.

【0035】次に、図4は、本実施の形態のクロック監
視装置10のカウンタ回路12の処理手順を示すフロー
チャートである。
Next, FIG. 4 is a flow chart showing the processing procedure of the counter circuit 12 of the clock monitoring device 10 of the present embodiment.

【0036】カウンタ回路12は、エッジ検出回路11
からの通知信号の入力を待っており(S40)、第1の
通知信号が入力されると、カウンタを0にリセットし、
クロックBのパルスのカウントをスタートする(S4
1)。
The counter circuit 12 includes the edge detection circuit 11
Waiting for the input of the notification signal from (S40), and when the first notification signal is input, the counter is reset to 0,
Start counting the pulses of clock B (S4
1).

【0037】次いで、カウンタ回路12は、エッジ検出
回路11からの第2の通知信号の入力を待ち(S4
2)、第2の通知信号が入力されると、この時点でのカ
ウンタ値を比較回路14に出力する(S43)。
Next, the counter circuit 12 waits for the input of the second notification signal from the edge detection circuit 11 (S4).
2) When the second notification signal is input, the counter value at this point is output to the comparison circuit 14 (S43).

【0038】次いで、カウンタ回路12は、エッジ検出
回路11からの第1の通知信号の入力を待ち(S4
4)、第1の通知信号が入力されると、この時点でのカ
ウンタ値を比較回路14に出力し(S45)、S41に
戻って処理を続ける。
Next, the counter circuit 12 waits for the input of the first notification signal from the edge detection circuit 11 (S4).
4) When the first notification signal is input, the counter value at this time is output to the comparison circuit 14 (S45), and the process returns to S41 to continue the processing.

【0039】このようにすると、S43においてクロッ
クAのハイレベル区間をクロックBでカウントしたカウ
ンタ値を出力することになり、S45においてクロック
Aの1周期区間をクロックBでカウントしたカウンタ値
を出力することになる。
In this way, the counter value obtained by counting the high level section of the clock A with the clock B is output in S43, and the counter value obtained by counting the one cycle section of the clock A with the clock B is output in S45. It will be.

【0040】次に、図5は、本実施の形態のクロック監
視装置10の比較回路14の処理手順を示すフローチャ
ートである。
Next, FIG. 5 is a flow chart showing the processing procedure of the comparison circuit 14 of the clock monitoring apparatus 10 of the present embodiment.

【0041】比較回路14は、カウンタ回路12からの
カウンタ値の入力を待っており(S50)、カウンタ値
が入力されると、メモリ13からクロックAのハイレベ
ル区間をクロックBでカウントした場合の正常なカウン
タ値の下限値である第1の下限カウンタ値を読み出し、
入力されたカウンタ値が第1の下限カウンタ値以上であ
るか判定する(S51)。
The comparator circuit 14 waits for the input of the counter value from the counter circuit 12 (S50). When the counter value is input, the high-level section of the clock A is counted from the memory 13 by the clock B. Read the first lower limit counter value, which is the lower limit value of the normal counter value,
It is determined whether the input counter value is greater than or equal to the first lower limit counter value (S51).

【0042】入力されたカウンタ値が第1の下限カウン
タ値以上であれば、メモリ13からクロックAのハイレ
ベル区間をクロックBでカウントした場合の正常なカウ
ンタ値の上限値である第1の上限カウンタ値を読み出
し、入力されたカウンタ値が第1の上限カウンタ値以下
であるか判定する(S52)。
If the input counter value is equal to or larger than the first lower limit counter value, the first upper limit which is the upper limit value of the normal counter value when the high level section of the clock A from the memory 13 is counted by the clock B The counter value is read and it is determined whether the input counter value is equal to or less than the first upper limit counter value (S52).

【0043】入力されたカウンタ値が第1の上限カウン
タ値以下であれば、カウンタ回路12からの次のカウン
タ値の入力を待つ(S53)。
If the input counter value is less than or equal to the first upper limit counter value, the input of the next counter value from the counter circuit 12 is awaited (S53).

【0044】次いで、比較回路14は、カウンタ回路1
2からのカウンタ値の入力があると、メモリ13からク
ロックAの1周期区間をクロックBでカウントした場合
の正常なカウンタ値の下限値である第2の下限カウンタ
値を読み出し、入力されたカウンタ値が第2の下限カウ
ンタ値以上であるか判定する(S54)。
Next, the comparison circuit 14 is connected to the counter circuit 1
When the counter value is input from 2, the second lower limit counter value which is the lower limit value of the normal counter value when one cycle period of the clock A is counted by the clock B is read from the memory 13 and the input counter is read. It is determined whether the value is greater than or equal to the second lower limit counter value (S54).

【0045】入力されたカウンタ値が第2の下限カウン
タ値以上であれば、メモリ13からクロックAの1周期
区間をクロックBでカウントした場合の正常なカウンタ
値の上限値である第2の上限カウンタ値を読み出し、入
力されたカウンタ値が第2の上限カウンタ値以下である
か判定する(S55)。
If the input counter value is equal to or larger than the second lower limit counter value, the second upper limit which is the upper limit value of the normal counter value when one cycle period of the clock A is counted by the clock B from the memory 13 The counter value is read, and it is determined whether the input counter value is less than or equal to the second upper limit counter value (S55).

【0046】入力されたカウンタ値が第2の上限カウン
タ値以下であれば、S50に戻って処理を続ける。
If the input counter value is less than or equal to the second upper limit counter value, the process returns to S50 to continue the processing.

【0047】S51において入力されたカウンタ値が第
1の下限カウンタ値より小さい場合、S52において入
力されたカウンタ値が第1の上限カウンタ値より大きい
場合、S54において入力されたカウンタ値が第2の下
限カウンタ値より小さい場合、S55において入力され
たカウンタ値が第2の上限カウンタ値より大きい場合
は、クロック異常通知を監視対象となる機器に出力する
(S56)。
When the counter value input in S51 is smaller than the first lower limit counter value, when the counter value input in S52 is larger than the first upper limit counter value, the counter value input in S54 is the second When it is smaller than the lower limit counter value and when the counter value input in S55 is larger than the second upper limit counter value, the clock abnormality notification is output to the device to be monitored (S56).

【0048】このように本実施の形態においては、クロ
ックAの立ち上がりエッジと立ち下がりエッジを検出し
ているので、ハイレベル区間と1周期区間をクロックB
でカウントすることができ、クロックAのデューティ比
を監視することができる。
As described above, in this embodiment, since the rising edge and the falling edge of the clock A are detected, the high level section and one cycle section are set to the clock B.
The duty ratio of the clock A can be monitored.

【0049】また、クロックAのハイレベル区間や1周
期区間をクロックBでカウントし、そのカウント値が正
常範囲内か判定しているので、2つのクロックの監視を
容易に行なうことができる。
Further, since the high level section or one cycle section of the clock A is counted by the clock B and it is determined whether the count value is within the normal range, it is possible to easily monitor the two clocks.

【0050】次に、図6は本発明の第2の実施の形態の
ディジタルオーディオ機器のクロック監視装置を示す図
である。なお、本実施の形態は、上述の第1の実施の形
態と略同様に構成されているので、同様な構成には同一
の符号を付して特徴部分のみ説明する。
Next, FIG. 6 is a diagram showing a clock monitoring device for digital audio equipment according to a second embodiment of the present invention. Since the present embodiment is configured substantially the same as the above-described first embodiment, the same reference numerals are given to the same configurations and only the characteristic portions will be described.

【0051】図6に示すように、本実施の形態のクロッ
ク監視装置20は、比較回路14からのクロック異常通
知を入力され、クロック異常通知によりディジタルオー
ディオ機器に入力されたディジタルオーディオ信号をミ
ュートするミュート回路25を備えている。
As shown in FIG. 6, the clock monitoring device 20 of the present embodiment receives the clock abnormality notification from the comparison circuit 14 and mutes the digital audio signal input to the digital audio device by the clock abnormality notification. A mute circuit 25 is provided.

【0052】本実施の形態のディジタルオーディオ機器
は、クロックAとクロックBとによって動作しており、
例えば、クロックAはオーディオデータのサンプリング
クロックで48kHz程度であり、クロックBはDSPの
マシンクロックで40MHz程度である。
The digital audio equipment of this embodiment operates by the clock A and the clock B,
For example, the clock A is a sampling clock of audio data having a frequency of about 48 kHz, and the clock B is a DSP machine clock having a frequency of about 40 MHz.

【0053】このようなクロック監視装置20におい
て、上述の第1の実施の形態同様にエッジ検出回路1
1、カウンタ回路12、比較回路14によってクロック
監視が行なわれ、比較回路14において動作クロック
(クロックA、クロックB)の異常が検出されると、ク
ロック異常通知がミュート回路25に入力される。
In such a clock monitoring device 20, as in the first embodiment described above, the edge detection circuit 1
1, the counter circuit 12 and the comparison circuit 14 perform clock monitoring, and when the comparison circuit 14 detects an abnormality in the operation clock (clock A, clock B), a clock abnormality notification is input to the mute circuit 25.

【0054】ミュート回路25は、クロック異常通知を
入力されると、ディジタルオーディオ機器に入力された
ディジタルオーディオ信号をミュートしてディジタルオ
ーディオ信号の出力をゼロとする。
Upon receiving the clock abnormality notification, the mute circuit 25 mutes the digital audio signal input to the digital audio device and sets the output of the digital audio signal to zero.

【0055】このように本実施の形態においては、動作
クロックの異常が検出されると、ディジタルオーディオ
信号をミュートしているので、ディジタルオーディオ機
器は無音状態となり、動作クロック異常の際の異常音を
出力しないようにすることができる。
As described above, in this embodiment, when the abnormality of the operation clock is detected, the digital audio signal is muted, so that the digital audio device becomes silent, and an abnormal sound is generated when the operation clock is abnormal. You can turn it off.

【0056】[0056]

【発明の効果】以上説明したように、本発明によれば、
第1のクロック信号の立ち上がりエッジ及び立ち下がり
エッジを検出するとともに、第2のクロック信号のパル
スをカウントし、立ち上がりエッジ検出時のカウント値
と立ち下がりエッジ検出時のカウント値に基づいてクロ
ックの異常を判定することにより、第1のクロック信号
のデューティ比の異常または第1のクロック信号及び第
2のクロック信号の周波数の異常を検出することができ
る。
As described above, according to the present invention,
The rising edge and the falling edge of the first clock signal are detected, the pulses of the second clock signal are counted, and the clock error is detected based on the count value at the time of detecting the rising edge and the count value at the time of detecting the falling edge. By determining, it is possible to detect an abnormality in the duty ratio of the first clock signal or an abnormality in the frequencies of the first clock signal and the second clock signal.

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

【図1】本発明の第1の実施の形態のクロック監視装置
を示す概略ブロック図
FIG. 1 is a schematic block diagram showing a clock monitoring device according to a first embodiment of the present invention.

【図2】本発明の第1の実施の形態のクロック監視装置
のカウンタ計測方法を示すシーケンス図
FIG. 2 is a sequence diagram showing a counter measuring method of the clock monitoring device according to the first embodiment of the present invention.

【図3】本発明の第1の実施の形態のクロック監視装置
のエッジ検出回路の処理を示すフローチャート
FIG. 3 is a flowchart showing processing of an edge detection circuit of the clock monitoring device according to the first embodiment of the present invention.

【図4】本発明の第1の実施の形態のクロック監視装置
のカウンタ回路の処理を示すフローチャート
FIG. 4 is a flowchart showing processing of a counter circuit of the clock monitoring device according to the first embodiment of the present invention.

【図5】本発明の第1の実施の形態のクロック監視装置
の比較回路の処理を示すフローチャート
FIG. 5 is a flowchart showing processing of a comparison circuit of the clock monitoring device according to the first embodiment of the present invention.

【図6】本発明の第2の実施の形態のクロック監視装置
を示す概略ブロック図
FIG. 6 is a schematic block diagram showing a clock monitoring device according to a second embodiment of the present invention.

【図7】従来のクロック監視装置を示す概略ブロック図FIG. 7 is a schematic block diagram showing a conventional clock monitoring device.

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

10 クロック監視装置 11 エッジ検出回路 12 カウンタ回路 13 メモリ 14 比較回路 20 クロック監視装置 25 ミュート回路 71 動作クロック 72 基準クロック 73 カウント回路 74 記憶装置 10 Clock monitoring device 11 Edge detection circuit 12 counter circuit 13 memory 14 Comparison circuit 20 clock monitoring device 25 Mute circuit 71 Operation clock 72 Reference clock 73 Count circuit 74 storage

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 第1のクロック信号を入力され、前記第
1のクロック信号の立ち上がりエッジを検出すると第1
の通知信号を出力し、前記第1のクロック信号の立ち下
がりエッジを検出すると第2の通知信号を出力するエッ
ジ検出手段と、前記第1のクロック信号の周波数の少な
くとも2倍の周波数の第2のクロック信号を入力され、
前記第2のクロック信号のパルス数をカウントし、前記
第1の通知信号を受信した時点のカウント値と、前記第
2の通知信号を受信した時点のカウント値に基づいて前
記クロック信号の異常を検出する異常検出手段とを備え
ることを特徴とするクロック監視装置。
1. When a first clock signal is input and a rising edge of the first clock signal is detected, the first clock signal is detected.
Of the first clock signal, and an edge detecting means for outputting a second notification signal when a falling edge of the first clock signal is detected, and a second frequency of at least twice the frequency of the first clock signal. Input the clock signal of
The number of pulses of the second clock signal is counted, and an abnormality of the clock signal is detected based on the count value at the time of receiving the first notification signal and the count value at the time of receiving the second notification signal. A clock monitoring device comprising: an abnormality detecting unit for detecting.
【請求項2】 前記異常検出手段は、前記第1の通知信
号から前記第2の通知信号までのカウント値と、前記第
1の通知信号から次の前記第1の通知信号までのカウン
ト値とに基づいて前記第1のクロック信号の異常を検出
することを特徴とする請求項1に記載のクロック監視装
置。
2. The abnormality detecting means includes a count value from the first notification signal to the second notification signal and a count value from the first notification signal to the next first notification signal. The clock monitoring device according to claim 1, wherein an abnormality of the first clock signal is detected based on the above.
【請求項3】 前記異常検出手段は、前記第2の通知信
号から前記第1の通知信号までのカウント値と、前記第
第2の通知信号から次の前記第2の通知信号までのカウ
ント値とに基づいて前記第1のクロック信号の異常を検
出することを特徴とする請求項1に記載のクロック監視
装置。
3. The abnormality detecting means includes a count value from the second notification signal to the first notification signal, and a count value from the second notification signal to the next second notification signal. The clock monitoring device according to claim 1, wherein the abnormality of the first clock signal is detected based on the following.
【請求項4】 前記異常検出手段は、前記カウント値が
予め設定された正常範囲内に入っているかを判定して前
記クロック信号の異常を検出することを特徴とする請求
項1から3までのいずれかに記載のクロック監視装置。
4. The abnormality detecting means detects abnormality of the clock signal by judging whether or not the count value is within a preset normal range. The clock monitoring device according to any one of claims.
【請求項5】 前記異常検出手段が前記クロック信号の
異常を検出したとき、出力信号をミュートするミュート
手段を備えることを特徴とする請求項1から4までのい
ずれかに記載のクロック監視装置。
5. The clock monitoring device according to claim 1, further comprising a mute unit for muting an output signal when the abnormality detecting unit detects an abnormality in the clock signal.
【請求項6】 第1のクロック信号の立ち上がりエッジ
及び立ち下がりエッジを検出する工程と、前記第1のク
ロック信号の周波数の少なくとも2倍の周波数の第2の
クロック信号のパルスの数をカウントする工程と、 前記立ち上がりエッジ検出時の前記カウントの値と前記
立ち下がりエッジ検出時の前記カウントの値とに基づい
て前記クロック信号の異常を検出する工程とを備えるこ
とを特徴とするクロック監視方法。
6. A step of detecting a rising edge and a falling edge of a first clock signal, and counting the number of pulses of a second clock signal having a frequency of at least twice the frequency of the first clock signal. A clock monitoring method comprising: a step; and a step of detecting an abnormality of the clock signal based on the count value at the time of detecting the rising edge and the count value at the time of detecting the falling edge.
JP2002113755A 2002-04-16 2002-04-16 Clock monitoring device Pending JP2003308131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002113755A JP2003308131A (en) 2002-04-16 2002-04-16 Clock monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002113755A JP2003308131A (en) 2002-04-16 2002-04-16 Clock monitoring device

Publications (1)

Publication Number Publication Date
JP2003308131A true JP2003308131A (en) 2003-10-31

Family

ID=29395848

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002113755A Pending JP2003308131A (en) 2002-04-16 2002-04-16 Clock monitoring device

Country Status (1)

Country Link
JP (1) JP2003308131A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1936392A1 (en) * 2006-12-20 2008-06-25 Fujitsu Limited Automatic frequency monitoring circuit, electronic device, automatic frequency monitoring method and automatic frequency monitoring program
JP2008259103A (en) * 2007-04-09 2008-10-23 Hitachi Ltd Means for detecting abnormality of carrier wave frequency
JP2010061470A (en) * 2008-09-04 2010-03-18 Denso Corp Processing device and electronic unit
CN101771527A (en) * 2009-12-16 2010-07-07 南京弘毅电气自动化有限公司 Clock extraction device and method for asynchronous communication
WO2010142204A1 (en) * 2009-06-10 2010-12-16 中兴通讯股份有限公司 Clock detection method and device
JP2019536146A (en) * 2016-11-01 2019-12-12 ザイリンクス インコーポレイテッドXilinx Incorporated Programmable clock monitor

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1936392A1 (en) * 2006-12-20 2008-06-25 Fujitsu Limited Automatic frequency monitoring circuit, electronic device, automatic frequency monitoring method and automatic frequency monitoring program
US8311169B2 (en) 2006-12-20 2012-11-13 Fujitsu Limited Automatic frequency monitoring circuit, electronic device, automatic frequency monitoring method, and automatic frequency monitoring program
JP2008259103A (en) * 2007-04-09 2008-10-23 Hitachi Ltd Means for detecting abnormality of carrier wave frequency
JP2010061470A (en) * 2008-09-04 2010-03-18 Denso Corp Processing device and electronic unit
WO2010142204A1 (en) * 2009-06-10 2010-12-16 中兴通讯股份有限公司 Clock detection method and device
JP2012529804A (en) * 2009-06-10 2012-11-22 中興通訊股▲ふん▼有限公司 Clock detection method and apparatus
US8451967B2 (en) 2009-06-10 2013-05-28 Zte Corporation Method and apparatus for clock checking
CN101771527A (en) * 2009-12-16 2010-07-07 南京弘毅电气自动化有限公司 Clock extraction device and method for asynchronous communication
JP2019536146A (en) * 2016-11-01 2019-12-12 ザイリンクス インコーポレイテッドXilinx Incorporated Programmable clock monitor
JP7004712B2 (en) 2016-11-01 2022-01-21 ザイリンクス インコーポレイテッド Programmable clock monitor

Similar Documents

Publication Publication Date Title
JP4287762B2 (en) Howling detection method and apparatus, and acoustic apparatus including the same
JP2003308131A (en) Clock monitoring device
JP5774257B1 (en) Noise analysis device, electronic device, and noise source identification system
WO2020143521A1 (en) Digital audio signal sampling frequency detection method and device
US20080273628A1 (en) Data sampling circuit and data sampling method
US20100008493A1 (en) Methods and apparatus to decode dual-tone signals
US20020008548A1 (en) Device for detecting abnormality of clock signal
US5134366A (en) Magnetic head testing apparatus for detecting occurrences of popcorn noise amid externally generated noise
US8767900B2 (en) Signal transition detection circuit and method of the same
JP2011119799A (en) Signal receiver and signal processing method
JP2010213224A (en) Jitter detection circuit and jitter detection method
KR20040067118A (en) Apparatus for generating bit clock and method thereof
JP2002055128A (en) Ac signal measuring instrument
JP2011085525A (en) Evaluation system of quartz oscillator
CN110631790B (en) Wearable device and detection method thereof
TWI400923B (en) Signal receiving device and frequency judging circuit
CN114280467A (en) Time-frequency parameter measuring device based on FPGA
JP2012122914A (en) Electromagnetic noise occurring pattern estimation device, electromagnetic noise occurring pattern estimation method and electromagnetic noise occurring pattern estimation program
CN114448203A (en) Control circuit and corresponding method
KR100375572B1 (en) Dual-Tone Detecting Device
JPH10240374A (en) Clock abnormality detection circuit
JP2004252834A (en) Clock error detection circuit and its detection method
KR20000050362A (en) Jitter measuring circuit
JP2004342161A (en) Semiconductor testing device and method
JPH0348339A (en) Fixed fault deciding circuit