JPH08316946A - Clock break detection circuit - Google Patents

Clock break detection circuit

Info

Publication number
JPH08316946A
JPH08316946A JP7118828A JP11882895A JPH08316946A JP H08316946 A JPH08316946 A JP H08316946A JP 7118828 A JP7118828 A JP 7118828A JP 11882895 A JP11882895 A JP 11882895A JP H08316946 A JPH08316946 A JP H08316946A
Authority
JP
Japan
Prior art keywords
clock
monitored
clk
monitor
clocks
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
JP7118828A
Other languages
Japanese (ja)
Inventor
Takaaki Komori
孝昭 小森
Shinya Takigawa
信也 滝川
Morio Ito
守夫 伊藤
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.)
Fujitsu Ltd
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP7118828A priority Critical patent/JPH08316946A/en
Publication of JPH08316946A publication Critical patent/JPH08316946A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To detect the number of breaks of a clock to be monitored, which is asynchronous with a monitor clock and has the same speed as the monitor clock, in the unit of one clock by the monitor clock by using the monitor clock to detect the presence or the absence of a change point of the frequency divided clock to be monitored. CONSTITUTION: A clock CLK to be monitored has the frequency divided by (n) in a frequency division part 11, and the width of two clocks is given to high and low level parts by a decoder part 12, and the change point is shifted by one clock. The frequency divided clock to be monitored which has the change point shifted is applied to corresponding edge detection parts 21 to 24, and pulses having the width of one monitor clock are taken out by edge detection in these parts, and AND is operated in an AND part 3, and the result is applied to the load terminal of a counter 4. When AND is in the low level, the counting operation is not performed. When it is in the high level, the counting operation is performed; and at the time of full counts, a pulse is sent from the CO terminal to indicate that a break of the clock is detected.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば、データ伝送装
置で使用するクロック断検出回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock loss detection circuit used in, for example, a data transmission device.

【0002】通常、データ伝送の際、送信側からデータ
とこのデータに同期したクロック(被監視クロックと云
う)を受信側に送出する。受信側では被監視クロックと
同一速度で非同期のシステムクロック(監視クロックと
云う)を用いて、受信した被監視クロックの断を検出す
ることがある。
[0002] Usually, during data transmission, data and a clock synchronized with this data (called a monitored clock) are sent from the transmitting side to the receiving side. On the receiving side, a disconnection of the received monitored clock may be detected using a system clock (referred to as a monitoring clock) that is asynchronous with the monitored clock at the same speed.

【0003】この時、被監視クロックの断数を1クロッ
ク単位で検出できる様にすることが必要である。
At this time, it is necessary to detect the number of monitored clocks in units of one clock.

【0004】[0004]

【従来の技術】図6は従来例の説明図(その1)で、
(a) は構成図、(b) は正常動作時の説明図、図7は従来
例の説明図(その2)で、(a) は異常動作時( H固定)
の説明図、(b) は別の異常動作時( L固定)の説明図、
図8は別の従来例の説明図で、(a) は構成図、(b) は正
常動作時の説明図、(c) は異常動作時(H→L,L→
H)の説明図である。
2. Description of the Related Art FIG. 6 is an explanatory view (1) of a conventional example.
(a) is a configuration diagram, (b) is an explanatory diagram of normal operation, and FIG. 7 is an explanatory diagram of a conventional example (No. 2). (a) is an abnormal operation (fixed to H)
And (b) is an explanatory diagram of another abnormal operation (fixed to L),
FIG. 8 is an explanatory diagram of another conventional example, (a) is a configuration diagram, (b) is an explanatory diagram of normal operation, and (c) is an abnormal operation (H → L, L →
It is explanatory drawing of (H).

【0005】以下、図6〜図8の説明を行うが、図6
(b),図7(a),(b),図8(b),(c) の左側の符号は図6(a),
図8(a) 中の同じ符号部分の波形を示す。先ず、クロッ
ク断検出は主として下記A、Bの方法で行われる。即
ち、 A.監視クロックと被監視クロックが非同期で同一速度
の場合、監視クロックで一定周期毎に非監視クロックを
監視し、その周期内で被監視クロックが全く入力しなけ
ればクロック断発生とする方法である(図6、図7の場
合)。 B.監視クロックと被監視クロックが非同期で、被監視
クロックが監視クロックよりも低速の場合、監視クロッ
クで被監視クロックのエッジ検出を行うが、エッジ検出
周期が予め設定した周期よりも長い時にクロック断発生
とする方法である(図8の場合)。
6 to 8 will be described below.
(b), FIG. 7 (a), (b), FIG. 8 (b), and (c) have the reference numerals in FIG. 6 (a),
The waveform of the same code part in FIG. 8 (a) is shown. First, the clock loss detection is mainly performed by the following methods A and B. That is, A. When the monitoring clock and the monitored clock are asynchronous and have the same speed, the monitoring clock monitors the non-monitoring clock at regular intervals, and if there is no input of the monitored clock within that period, a clock outage occurs ( 6 and 7). B. If the monitored clock and the monitored clock are asynchronous and the monitored clock is slower than the monitored clock, the monitored clock detects the edge of the monitored clock, but a clock loss occurs when the edge detection period is longer than the preset period. Is the method (in the case of FIG. 8).

【0006】さて、図6(a) に示す様に、2ビットカウ
ンタ51は入力した監視クロック( 以下、監視CLK と省略
する) を4分周して4分周CLK を生成し (図6(b)-,
参照) 、4分周CLK をフリップ・フロップ( 以下、FF
と省略する) 54, 55のCK端子に加える。そこで、これら
のFFは4分周CLK の立上り点で+5V、即ち、 "H"レベル
を取り込む。
Now, as shown in FIG. 6 (a), the 2-bit counter 51 divides the input monitor clock (hereinafter, abbreviated as monitor CLK) by 4 to generate a CLK divided by 4 (see FIG. b)-,
FF is a flip-flop (hereinafter, FF)
Abbreviated as)) Add to CK pin of 54 and 55. Therefore, these FFs take in + 5V, that is, the "H" level at the rising point of CLK divided by 4.

【0007】一方、 "H"レベルのXRST信号が印加してオ
ン状態になったAND ゲート52とANDゲート53を介して、
被監視CLK と反転した被被監視CLK を対応するFF 54 と
FF 55 の R端子に印加する。
On the other hand, through the AND gate 52 and the AND gate 53 which are turned on by the application of the "H" level XRST signal,
The monitored CLK and the inverted monitored CLK are
Applied to the R terminal of FF 55.

【0008】ここで、AND ゲート52, 53の出力が "L"レ
ベルであれば対応する FF はリセットされるので、FF 5
4 の Q端子から周期的に幅の狭いパルスが OR ゲート56
に送出され、FF 55 のQ 端子から "L"レベルが同じくOR
ゲート56に送出される( 図6(b)-〜, , 参照)
If the outputs of the AND gates 52 and 53 are at "L" level, the corresponding FF is reset, so FF 5
A narrow pulse is periodically output from the Q terminal of 4 by OR gate 56.
And the "L" level is ORed from the Q terminal of FF 55.
It is sent to the gate 56 (see Fig. 6 (b)-~ ,,)
.

【0009】これは、AND ゲート52, 53及びFF 54, 55
を通る信号は、素子内で生ずる遅延により、入力側より
も若干遅れて出力する。しかし、FF 54, 55 に印加する
CLKはカウンタ51の出力が直接、加わるので遅延がな
い。
This is due to AND gates 52, 53 and FFs 54, 55.
The signal passing through is output with a slight delay from the input side due to the delay generated in the element. However, it is applied to FF 54, 55
Since the output of the counter 51 is directly added to CLK, there is no delay.

【0010】この為、FF 54 については Q端子から"H"
レベルを送出した直後にリセットされるので幅の狭いパ
ルスが出た後に "L"レベルとなる。しかし、FF 55 につ
いては+5V を取り込む時点でリセット状態にあるの
で、幅の狭いパルスを送出することなく"L" レベルとな
る。
Therefore, for FF 54, "H" from the Q terminal
Since it is reset immediately after sending the level, it becomes "L" level after a narrow pulse appears. However, FF 55 is in the reset state when + 5V is fetched, so it becomes "L" level without sending a narrow pulse.

【0011】さて、ORゲート56は FF 54, 55の出力の論
理和を取った後、FF 57 に送出するので、FF 57 は上記
4分周CLK で論理和出力を取り込む。この時、4分周CL
K の立上り点における OR ゲート56の状態が"L" レベル
の為、Q 端子から"L" レベルを出力する。そこで、クロ
ック断のアラームは出ない( 図6(b)-, 参照) 。
Since the OR gate 56 takes the logical sum of the outputs of the FFs 54 and 55 and then sends the logical sum to the FF 57, the FF 57 takes in the logical sum output with the above-mentioned quarter frequency CLK. At this time, CL divided by 4
Since the state of the OR gate 56 at the rising edge of K is "L" level, "L" level is output from the Q terminal. Therefore, the clock loss alarm does not occur (see Fig. 6 (b)-,).

【0012】しかし、図7(a)-に示す様に、4分周CL
K の1周期の間に1個所だけ変化点があり、残りの周期
は"H" レベル固定の被監視CLK が入力すると、AND ゲー
ト52, 53から図7(a)-, に示す出力がFF 54, 55 の
R 端子に印加する。
However, as shown in FIG. 7 (a)-, CL divided by 4
There is only one change point during one cycle of K, and for the rest of the cycle, when the monitored CLK fixed at "H" level is input, the output from AND gates 52, 53 shown in Fig. 7 (a)-, becomes FF. 54, 55 of
Apply to R terminal.

【0013】一方、2ビットカウンタ51は監視CLK を用
いて4分周CLK を生成してFF 54, 55 のCK端子に加える
( 図7(a)-, 参照) 。そこで、FF 54, 55 は R端子
とCK端子の状態に対応して、図7(a)-, に示す出力
を OR ゲート56に送出するので、このゲートは図7-
に示す出力をFF 57 に送出する。
On the other hand, the 2-bit counter 51 uses the monitor CLK to generate a CLK divided by 4 and applies it to the CK terminals of the FFs 54 and 55.
(See Figure 7 (a)-,). Therefore, the FF 54, 55 sends the output shown in Fig. 7 (a)-, to the OR gate 56 according to the state of the R terminal and the CK terminal.
Send the output shown in to FF 57.

【0014】FF 57 は4分周CLK の立上り点でORゲート
56の出力を取り込むが、4分周CLKの一周期の間、被監
視CLK が全く入力しない時は次の周期の立上り点で被監
視CLK 断のアラームを送出する( 図7(a)-参照) 。
FF 57 is an OR gate at the rising edge of CLK divided by 4.
The output of 56 is taken in, but if the monitored CLK is not input during one cycle of CLK divided by 4, an alarm of the monitored CLK interruption is sent at the rising point of the next cycle (see Figure 7 (a)-). ).

【0015】更に、図7(b)-に示す様に、4分周CLK
の一周期の間に1個所だけ変化点があり、残りの周期が
"L" レベル固定の被監視CLK が入力すると、上記"H" レ
ベル固定の場合と同様に、被監視CLK が全く入力しない
4分周CLK の一周期の次の周期の立上り点で、被監視CL
K 断のアラームを送出する( 図7(b) 〜参照) 。
Further, as shown in FIG. 7B, CLK divided by 4
There is only one change point during one cycle, and the rest of the cycle
When the monitored CLK with the fixed "L" level is input, as in the case with the fixed "H" level above, the monitored CLK is input at the rising point of the cycle next to one cycle of the quarter CLK without the monitored CLK input. CL
Sends a K disconnection alarm (see Figure 7 (b)).

【0016】次に、図8(a) 中のFF 61, FF 62, AND ゲ
ート 63 の部分は監視CLK で動作するエッジ検出部分を
構成している。そこで、監視CLK が被監視CLK の、例え
ば、立上り点を検出した時に"H" レベルのパルスをAND
ゲート63からカウンタ64に送出する。なお、被監視CLK
が正常状態の時には上記のパルスは一定周期でカウンタ
に送られる( 図8(b)-〜参照) 。
Next, the portion of FF 61, FF 62 and AND gate 63 in FIG. 8A constitutes an edge detecting portion which operates with the monitor CLK. Therefore, when the monitor CLK detects a rising point of the monitored CLK, for example, AND pulse of "H" level is detected.
It is sent from the gate 63 to the counter 64. The monitored CLK
When is normal, the above pulse is sent to the counter at a constant cycle (see FIG. 8 (b)-).

【0017】そこで、カウンタ64は、パルスが入力する
度にカウント値をリセットして、0からカウントを開始
し、カウント値をデコーダ65に送る。デコーダ65はカウ
ント値が、例えば、4を越えるとデコード出力を被監視
CLK断のアラームとして送出する様になっているが、4
を越えないので、アラームを送出しない(図8(b)-,
参照) 。
Therefore, the counter 64 resets the count value each time a pulse is input, starts counting from 0, and sends the count value to the decoder 65. The decoder 65 monitors the decode output when the count value exceeds 4, for example.
It is sent as an alarm of CLK loss, but 4
Alarm is not sent because it does not exceed (Fig. 8 (b)-,
See).

【0018】しかし、図8(c)-に示す様に、被監視CL
K に異常が発生すると( 点線部分が正常状態で、変化点
が無くなっている) 、カウント値がリセットされずにそ
のまま増加する。そこで、デコーダ65はカウント値が4
になった時にアラームを送出することになる(図8(c)-
〜参照) 。
However, as shown in FIG. 8 (c)-, the monitored CL
When an error occurs in K (the dotted line part is normal and there is no change point), the count value is not reset and increments as it is. Therefore, the decoder 65 has a count value of 4
When it becomes, an alarm will be sent out (Fig. 8 (c)-
~).

【0019】[0019]

【発明が解決しようとする課題】上記の様に従来の技術
A,Bを用いて、 監視CLK と被監視CLK が非同期で同一速度 断となったCLK の数を1CLK 単位で検出可能 とする条件のCLK 断検出を行う場合、下記の様な課題が
発生する。 従来の技術A の場合、一周期の間に被監視CLK が全く入
力しなければ、被監視CLK 断発生とする方法なので、正
確なCLK 断数は検出できない。また、CLK 断を検出して
も、次の周期がくるまでアラームを発生しないので、断
が発生してからアラーム発生迄に時間がかかる。 従来の技術B の場合、被監視CLK のエッジ検出を監視CL
K で確実に検出できるとは限らない。
As described above, by using the conventional techniques A and B, the condition that the number of CLKs in which the monitoring CLK and the monitored CLK are asynchronous and the speeds are the same can be detected in 1 CLK units. The following problems occur when detecting the CLK disconnection. In the case of conventional technology A, if the monitored CLK is not input at all during one cycle, the monitored CLK interruption occurs, so the exact number of CLK interruptions cannot be detected. Also, even if the CLK interruption is detected, the alarm does not occur until the next cycle comes, so it takes time from the occurrence of the interruption to the occurrence of the alarm. In the case of conventional technology B, the edge detection of the monitored CLK is monitored CL
It is not always possible to detect with K.

【0020】何故なら、監視CLK で被監視CLK の変化点
を検出しているので、2つのCLK の変化点が同じ場合に
は変化点を検出できないことがある。この為、被監視CL
K が入力しても断と検出する可能性がある。
Since the change point of the monitored CLK is detected by the monitor CLK, the change point may not be detected when the change points of the two CLKs are the same. Therefore, the monitored CL
Even if K is input, it may be detected as disconnected.

【0021】本発明は監視クロックが、該監視クロック
と非同期で同一速度の被監視クロックの断数を1クロッ
ク単位で検出できる様にすることを目的とする。
An object of the present invention is to enable a supervisory clock to detect the number of monitored clocks having the same speed asynchronously with the supervisory clock in units of one clock.

【0022】[0022]

【課題を解決するための手段】監視クロックが、該監視
クロックと非同期で同一速度の被監視クロックの断を検
出する際、第1の本発明は、分周手段とクロック断検出
手段を設け、分周手段で被監視クロックをn分周して変
化点が順次、ずれたn系列の分周被監視クロックを生成
する。 そして、クロック断検出手段において、監視ク
ロックを用いて分周被監視クロックの変化点の有無を検
出し、検出結果から被監視クロックの断を1クロック単
位で検出する様にした。
When a monitor clock detects a disconnection of a monitored clock of the same speed asynchronously with the monitor clock, the first aspect of the present invention is to provide frequency dividing means and clock disconnection detecting means. The monitored clock is frequency-divided by the frequency dividing means to generate n series of frequency-divided monitored clocks whose change points are sequentially shifted. Then, the clock break detecting means detects the presence or absence of a change point of the divided monitored clock by using the monitoring clock, and detects the break of the monitored clock in units of one clock from the detection result.

【0023】第2の本発明は、クロック断検出手段に、
検出した被監視クロックの断数をカウントするカウント
手段を設ける。そして、カウント手段のロード値を外部
から設定可能にして、アラーム送出開始時点の断数を可
変できる様にした。
A second aspect of the present invention provides a clock loss detecting means,
Counting means for counting the detected number of monitored clocks is provided. The load value of the counting means can be set externally so that the number of alarms at the start of alarm transmission can be changed.

【0024】[0024]

【作用】図1は本発明の原理構成図、図2は図1の動作
説明図である。以下、図2を用いて図1の動作を説明す
る。
1 is a block diagram showing the principle of the present invention, and FIG. 2 is a diagram for explaining the operation of FIG. The operation of FIG. 1 will be described below with reference to FIG.

【0025】先ず、監視CLK が、該監視CLK と同一速度
で非同期の被監視CLK のエッジを確実に検出するには、
被監視CLK は監視CLK 2周期以上の幅が必要となる。こ
の為、被監視CLK を分周手段1内の分周部分11でn分周
(例えば、4分周)した後、デコーダ部分12で "H"レベ
ル部分と "L"レベル部分の幅を、それぞれ2CLK の幅を
確保させると共に、変化点( 例えば、立上り点) を1CL
K ずつずらす(図2- , 参照) 。
First, in order to reliably detect the edge of the monitored CLK that is asynchronous with the monitoring CLK at the same speed as the monitoring CLK,
The monitored CLK needs to have a width of two or more monitoring CLK cycles. Therefore, after the frequency of the monitored CLK is divided by n in the frequency dividing means 1 (for example, by 4), the width of the "H" level portion and the width of the "L" level portion are divided by the decoder portion 12. The width of 2 CLK is secured for each, and the change point (for example, the rising point) is 1 CL.
Shift by K (see Figure 2-).

【0026】これにより、監視CLK は被監視CLK を1CL
K 単位で監視することができる。なお、図2- に示す
CLK を分周被監視CLK と云う。さて、変化点がずれた分
周被監視CLK を対応するエッジ検出部分(監視CKL で動
作している) 21〜24に加えて、この部分でエッジ検出を
行って、1監視CLK 幅のパルスを取り出し、論理積部分
3で論理積を取ってカウンタ4のロード(L) 端子に加え
る。( 図2- 〜参照) 。
As a result, the monitored CLK is 1 CL of the monitored CLK.
It can be monitored in K units. Shown in Figure 2-
CLK is called the frequency-divided monitored CLK. Now, in addition to the divided monitored CLK whose change point is shifted to the corresponding edge detection part (operating with monitoring CKL) 21 to 24, the edge is detected in this part and a pulse of 1 monitoring CLK width is added. Then, the logical product is taken out in the logical product part 3 and added to the load (L) terminal of the counter 4. (See Figure 2--).

【0027】ここで、上記の論理積を取ることにより、
図2- に示す様に、被監視CLK が1ビット抜けている
所は1監視CLK 幅の "H"レベルとなり、2ビット抜けて
いる所は2監視CLK 幅の"H" レベルとなる。
Here, by taking the above logical product,
As shown in Fig.2-, the place where the monitored CLK is missing 1 bit is "H" level of 1 monitor CLK width, and the place where 2 bits is missing is "H" level of 2 monitor CLK width.

【0028】一方、カウンタ4は上記と同様に、論理積
が "L"レベルの時はカウント動作を行わないが、 "H"レ
ベルの時はカウント動作を行ってフルカウントになった
時はCO 端子からパルスを送出し、クロック断検出を示
す。( 図2- , 参照) 。
On the other hand, similarly to the above, the counter 4 does not perform the counting operation when the logical product is at the "L" level, but performs the counting operation when the logical product is at the "H" level, and when the full count is reached, the CO pin is output. Pulse out to indicate clock loss detection. (See Figure 2-).

【0029】なお、ロード値は外部から設定可能な為、
被監視CLK の断数も容易に変更することができる。例え
ば、クロック断数を2とした時、カウンタのCO端子の出
力は論理積の出力が1ビットでは"L" レベルのままであ
るが、2ビット以上の時には"H"レベルとなりアラーム
として送出される。
Since the load value can be set externally,
The number of monitored CLKs can be easily changed. For example, when the number of clock interruptions is 2, the output of the CO terminal of the counter remains "L" level when the output of the AND is 1 bit, but when it is 2 bits or more, it becomes "H" level and sent as an alarm. It

【0030】即ち、監視クロックが、該監視クロックと
非同期で同一速度の被監視クロックの断数を1クロック
単位で検出できる。
That is, the monitoring clock can detect the number of monitored clocks having the same speed asynchronously with the monitoring clock in units of one clock.

【0031】[0031]

【実施例】図3は第1の本発明の実施例の構成図、図4
は第2の本発明の実施例の構成図、図5は図4の動作説
明図である。
FIG. 3 is a block diagram of the first embodiment of the present invention, and FIG.
Is a configuration diagram of the second embodiment of the present invention, and FIG. 5 is an operation explanatory diagram of FIG.

【0032】ここで、全図を通じて同一符号は同一対象
物を示す。また、図5の左側の符号は図4中の同じ符号
の部分の波形を示す。なお、図3の動作説明図は図2と
同じであり、図3、図4中の点線部分2は図1中のエッ
ジ検出手段2の具体的構成例である。
Here, the same reference numerals denote the same objects throughout the drawings. Further, the reference numerals on the left side of FIG. 5 indicate the waveforms of the portions having the same reference numerals in FIG. The operation explanatory diagram of FIG. 3 is the same as FIG. 2, and the dotted line portion 2 in FIGS. 3 and 4 is a specific configuration example of the edge detecting means 2 in FIG.

【0033】以下、分周比n=4として図3〜図5の説
明を行うが、上記で詳細説明した部分に対しては概略説
明し、本発明の部分について詳細説明する。図3におい
て、被監視CLK で動作する2ビットカウンタ11a のQ0出
力, Q1出力をEX-NORゲート12a を通して、図2- -1に
示すパルス及び反転して図2- -3に示すパルスを生成
する。
3 to 5 will be described below with the frequency division ratio n = 4, the parts described in detail above will be briefly described, and the part of the present invention will be described in detail. In Fig. 3, the Q0 output and Q1 output of the 2-bit counter 11a operating with the monitored CLK are generated through the EX-NOR gate 12a, and the pulse shown in Fig. 2--1 and the inverted pulse are generated as shown in Fig. 2-3. To do.

【0034】また、2ビットカウンタ11a のQ1出力から
図2- -2に示すパルス及び反転して図2- -4に示す
パルスを生成するが、これら図2- に示すパルスの変
化点は被監視CLK の1ビット幅だけ順次、ずれている。
The pulse shown in FIG. 2-2 and the pulse shown in FIG. 2-4 are generated from the Q1 output of the 2-bit counter 11a, and the pulse shown in FIG. 2-4 is generated. The monitor CLK is sequentially shifted by one bit width.

【0035】更に、FF 211a, FF 212a, AND ゲート213a
はエッジ検出部分、即ち、微分回路21a を構成し、図2
- -1に示すパルスの立上りエッジ検出を行い、エッジ
が検出できれば図2- -1に示す様に監視CLK の1CLK
幅の "L"レベルのパルスを出力する。
Further, FF 211a, FF 212a, AND gate 213a
2 constitutes an edge detecting portion, that is, a differentiating circuit 21a,
-The rising edge of the pulse shown in -1 is detected, and if the edge can be detected, 1 CLK of the monitor CLK as shown in Figure 2--1.
Output "L" level pulse of width.

【0036】同様に、微分回路22a, 23a, 24a はそれぞ
れ、エッジが検出できれば図2- -2〜図2- -4に示
す様に監視CLK の1CLK 幅の“L"レベルのパルスを出力
する。 そして、これら4つのパルスをAND ゲート3で
論理積を取って1つのパルスにして、例えば、6ビット
カウンタ4の L端子に加える。
Similarly, each of the differentiating circuits 22a, 23a, 24a outputs an "L" level pulse having a 1 CLK width of the monitor CLK as shown in FIGS. 2-2 to 2-4 if an edge can be detected. . Then, these four pulses are logically ANDed by the AND gate 3 to form one pulse, which is applied to the L terminal of the 6-bit counter 4, for example.

【0037】また、ロード値は外部からのスイッチSWで
設定することで設定値を可変とすることができるが、カ
ウンタが6ビットの為にロード値も6ビット(0〜63ま
で可変できる) で設定する。なお、カウンタ4は、微分
回路がエッジ検出を行っている間、 L端子に "L"パルス
が入力しているので、カウントアップせずロード値をそ
のまま出力している。
The load value can be made variable by setting it with a switch SW from the outside. However, since the counter is 6 bits, the load value is also 6 bits (0 to 63 can be changed). Set. The counter 4 does not count up and outputs the load value as it is because the "L" pulse is input to the L terminal while the differential circuit is performing edge detection.

【0038】しかし、エッジ検出ができない間( 被監視
CLK 断の場合) 、L 端子には "H"パルスが入力するの
で、カウンタ4はカウントアップし、フルカウントした
時にカウンタのCO端子からパルスを出力する。
However, while the edge cannot be detected (the monitored
When CLK is off), "H" pulse is input to the L terminal, so the counter 4 counts up and outputs a pulse from the CO terminal of the counter when the counter is fully counted.

【0039】つまり、( フルカウント数) −( ロード
値) の値がクロック断検出の断数となるので、ロード値
を変えることで断数を変えることができる。例えば、図
2- 〜に示す様に、カウンタ4のロード値を「2」
に設定した状態で被監視CLK に2CLK の断が発生する
と、カウンタはCO端子から "H"パルスを出すのでアラー
ムが送出される。しかし、1CLK の断の時は "H"パルス
を出さないのでアラームは送出されない。
That is, since the value of (full count number)-(load value) is the number of clock loss detections, the number of clocks can be changed by changing the load value. For example, as shown in Fig.2--, the load value of the counter 4 is set to "2".
If the monitored CLK is cut off by 2 CLK while set to, the counter sends an "H" pulse from the CO pin and an alarm is sent. However, when 1 CLK is cut off, no "H" pulse is output, so no alarm is sent.

【0040】図4は図示しないマイクロコンピュータ(
以下、マイコンと省略する) を用いてクロック断の断数
設定を行う場合であるが、図中の分周手段1a, エッジ検
出部分2, AND ゲート3の動作説明は図3で詳細説明し
たので省略する。
FIG. 4 shows a microcomputer (not shown)
(Hereinafter, abbreviated as "microcomputer") is used to set the number of clock interruptions. Omit it.

【0041】さて、レジスタ41には図示しないマイコン
からのロード値が格納されているので、この値を反転し
て6ビットのカウンタ4の D端子に入力する。例えば、
レジスタの値が000001の時は111110がロードされる。
Since the load value from the microcomputer (not shown) is stored in the register 41, this value is inverted and input to the D terminal of the 6-bit counter 4. For example,
When the register value is 000001, 111110 is loaded.

【0042】また、AND ゲート3から "H"レベルのパル
スが L端子に入力すると、カウンタ4はカウント動作を
開始してカウント値を1つアップし、CO端子からキャリ
ーをレジスタ42に送出する。
When the "H" level pulse is input from the AND gate 3 to the L terminal, the counter 4 starts the counting operation, increments the count value by one, and sends the carry to the register 42 from the CO terminal.

【0043】これにより、レジスタ42はこのキャリーを
保持してアラームとして出力するが、読み出しタイミン
グをレジスタのE 端子に加えることによりアラームの出
力は停止する( 図5- 〜-2参照) 。
As a result, the register 42 holds this carry and outputs it as an alarm, but the output of the alarm is stopped by adding the read timing to the E terminal of the register (see FIGS. 5--2).

【0044】つまり、本発明では被監視CLK と監視CLK
が非同期で同一速度の場合、非監視CLK を1CLK 単位で
監視することかできるので、断数分のクロック断を正確
に検出でき、且つ、CLK 断が発生している時間だけ "H"
レベルのパルスを発生させることができる。
That is, in the present invention, the monitored CLK and the monitored CLK are
If the two are asynchronous and have the same speed, the non-monitored CLK can be monitored in units of 1 CLK. Therefore, it is possible to accurately detect the clock loss for the number of interruptions and "H" only for the time when the CLK interruption occurs.
Level pulses can be generated.

【0045】また、クロック断の発生と復旧が非同期CL
K の乗換時間と監視CLK の1CLK 分の時間でできる。例
えば、図5- の点線部分はクロックの立上りがなくな
っているが、これの検出時間は図5- に示す様に殆ど
かからない。
In addition, the occurrence and recovery of clock loss are asynchronous CL
It can be done by changing time of K and 1 CLK of monitoring CLK. For example, the rising edge of the clock disappears in the dotted line portion of FIG. 5A, but the detection time for this is almost zero as shown in FIG.

【0046】そして、断数の設定を外部から可変できる
ことで、設計後の断数設定の変更が可能となる。特に、
断数の設定をマイコン等で行う場合は外部設定ピン等が
不要で、容易に変更が可能である。
Since the setting of the number of cuts can be changed from the outside, the setting of the number of cuts can be changed after the design. In particular,
When setting the number of breaks with a microcomputer or the like, external setting pins and the like are not required and can be easily changed.

【0047】[0047]

【発明の効果】以上詳細に説明した様に本発明によれ
ば、監視クロックが、監視クロックと非同期で同一速度
の被監視クロックの断数を1クロック単位で検出できる
と云う効果がある。
As described in detail above, according to the present invention, there is an effect that the supervisory clock can detect the number of monitored clocks of the same speed asynchronously with the supervisory clock in units of one clock.

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

【図1】図1は本発明の原理構成図である。FIG. 1 is a block diagram showing the principle of the present invention.

【図2】図1の動作説明図である。FIG. 2 is an operation explanatory diagram of FIG. 1;

【図3】第1の本発明の実施例の構成図である。FIG. 3 is a configuration diagram of an embodiment of the first present invention.

【図4】第2の本発明の実施例の構成図である。FIG. 4 is a configuration diagram of a second embodiment of the present invention.

【図5】図4の動作説明図である。5 is an operation explanatory diagram of FIG. 4;

【図6】従来例の説明図(その1)で、(a) は構成図、
(b) は正常動作時の説明図である。
FIG. 6 is an explanatory view (1) of a conventional example, (a) is a configuration diagram,
(b) is an explanatory view at the time of normal operation.

【図7】従来例の説明図(その2)で、(a) は異常動作
時( H固定) の説明図、(b) は別の異常動作時( L固
定)の説明図である。
7A and 7B are explanatory views of a conventional example (part 2), FIG. 7A is an explanatory view during abnormal operation (fixed to H), and FIG. 7B is an explanatory view during another abnormal operation (fixed to L).

【図8】別の従来例の説明図で、(a) は構成図、(b) は
正常動作時の説明図、(c) は異常動作時(H→L,L→
H)の説明図である。
FIG. 8 is an explanatory diagram of another conventional example, (a) is a configuration diagram, (b) is an explanatory diagram at the time of normal operation, and (c) is at the time of abnormal operation (H → L, L →
It is explanatory drawing of (H).

【符号の説明】 1 分周手段 3 AND ゲート 4 カウンタ 11 分周部分 12 デコーダ 21〜24 エッジ検出部分[Explanation of symbols] 1 frequency dividing means 3 AND gate 4 counter 11 frequency dividing portion 12 decoder 21 to 24 edge detecting portion

フロントページの続き (72)発明者 滝川 信也 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 伊藤 守夫 東京都千代田区内幸町一丁目1番6号 日 本電信電話株式会社内Front page continued (72) Inventor Shinya Takigawa 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 監視クロックが、該監視クロックと非同
期で同一速度の被監視クロックの断を検出する際、該被
監視クロックをn分周(n≧4の正の整数)して変化点
が順次、ずれたn系列の分周被監視クロックを生成する
分周手段と、該監視クロックを用いて該分周被監視クロ
ックの変化点の有無を検出し、検出結果から被監視クロ
ックの断を1クロック単位で検出するクロック断検出手
段を有することを特徴とするクロック断検出回路。
1. When a monitoring clock detects a disconnection of a monitored clock of the same speed asynchronously with the monitoring clock, the monitored clock is divided by n (a positive integer of n ≧ 4) to obtain a change point. Frequency dividing means for sequentially generating the shifted n-series divided monitored clocks, and the presence or absence of a change point of the divided monitored clocks are detected using the monitoring clocks, and the monitored clocks are disconnected from the detection result. A clock loss detection circuit having a clock loss detection means for detecting in units of one clock.
【請求項2】 上記クロック断検出手段に、検出した被
監視クロックの断数をカウントするカウント手段を設
け、該カウント手段のロード値を外部から設定可能にし
て、クロック断アラームの送出開始時点の断数を可変で
きる構成にしたことを特徴とする請求項1のクロック断
検出回路。
2. The clock loss detecting means is provided with a counting means for counting the number of detected monitored clock interruptions, the load value of the counting means can be set externally, and the clock interruption alarm transmission start time is set. 2. The clock loss detection circuit according to claim 1, wherein the number of interruptions is variable.
JP7118828A 1995-05-18 1995-05-18 Clock break detection circuit Withdrawn JPH08316946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7118828A JPH08316946A (en) 1995-05-18 1995-05-18 Clock break detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7118828A JPH08316946A (en) 1995-05-18 1995-05-18 Clock break detection circuit

Publications (1)

Publication Number Publication Date
JPH08316946A true JPH08316946A (en) 1996-11-29

Family

ID=14746166

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7118828A Withdrawn JPH08316946A (en) 1995-05-18 1995-05-18 Clock break detection circuit

Country Status (1)

Country Link
JP (1) JPH08316946A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2782387A1 (en) * 1998-08-13 2000-02-18 St Microelectronics Sa Circuit for detecting loss of periodic logic signal in phase locked loops or clock signal circuits, uses a divide-by-two divider
US6469544B2 (en) 2000-05-17 2002-10-22 Oki Electric Industry Co, Ltd. Device for detecting abnormality of clock signal
JP2007293682A (en) * 2006-04-26 2007-11-08 Fujitsu Ltd Circuit and method for detecting clock abnormality
WO2013008666A1 (en) * 2011-07-08 2013-01-17 オリンパスメディカルシステムズ株式会社 Image pickup apparatus
CN107229010A (en) * 2016-03-25 2017-10-03 精工爱普生株式会社 Circuit, detection means, oscillator, electronic equipment, moving body and detection method
JP2017181485A (en) * 2016-03-25 2017-10-05 セイコーエプソン株式会社 Circuit device, physical quantity detection device, oscillator, electronic apparatus, movable body, and abnormality detection method for master clock signal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2782387A1 (en) * 1998-08-13 2000-02-18 St Microelectronics Sa Circuit for detecting loss of periodic logic signal in phase locked loops or clock signal circuits, uses a divide-by-two divider
US6246261B1 (en) 1998-08-13 2001-06-12 Stmicroelectronics S.A. Circuit for detecting the disappearing of a periodic signal
US6469544B2 (en) 2000-05-17 2002-10-22 Oki Electric Industry Co, Ltd. Device for detecting abnormality of clock signal
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
WO2013008666A1 (en) * 2011-07-08 2013-01-17 オリンパスメディカルシステムズ株式会社 Image pickup apparatus
CN107229010A (en) * 2016-03-25 2017-10-03 精工爱普生株式会社 Circuit, detection means, oscillator, electronic equipment, moving body and detection method
JP2017181485A (en) * 2016-03-25 2017-10-05 セイコーエプソン株式会社 Circuit device, physical quantity detection device, oscillator, electronic apparatus, movable body, and abnormality detection method for master clock signal

Similar Documents

Publication Publication Date Title
EP1675267B1 (en) Periodic electrical signal frequency monitoring systems and methods
JPH07177130A (en) Error count circuit
KR950005940B1 (en) Clock monitoring circuit
JPH08316946A (en) Clock break detection circuit
US20020008548A1 (en) Device for detecting abnormality of clock signal
JPH01205237A (en) Synchronous function failure detection
JPH08181588A (en) Clock interruption detection circuit
JP2002026704A (en) Clock fault detector and its method
KR200262927Y1 (en) Clock fail detector
KR960010757B1 (en) Apparatus for detecting clock status
KR100373333B1 (en) Error detection apparatus of ATM cell synchronous signal
JP2619939B2 (en) Synchronous pattern detection circuit
SU1499489A1 (en) Self-check computing device
KR100208295B1 (en) Clock monitor
JP3586578B2 (en) Edge detection circuit
KR100212051B1 (en) Apparatus and method for receiving data
JPS63312754A (en) Error generation circuit
KR100219596B1 (en) Apparatus for discriminating state of transmission line
JP2970690B2 (en) Synchronous control circuit
JPH05219097A (en) Timing signal monitoring circuit
JPH05264618A (en) Method for detecting abnormality of clock signal
JPH05211488A (en) Data signal error detection system
JPH01241247A (en) Digital signal detection circuit
KR970019598A (en) Video encoder's abnormal status detection and automatic recovery circuit
JPS61131654A (en) Tri-state signal decoding system

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: 20020806