JP2874632B2 - Clock switching circuit - Google Patents

Clock switching circuit

Info

Publication number
JP2874632B2
JP2874632B2 JP8066391A JP6639196A JP2874632B2 JP 2874632 B2 JP2874632 B2 JP 2874632B2 JP 8066391 A JP8066391 A JP 8066391A JP 6639196 A JP6639196 A JP 6639196A JP 2874632 B2 JP2874632 B2 JP 2874632B2
Authority
JP
Japan
Prior art keywords
clock
circuit
signal
output signal
output
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.)
Expired - Fee Related
Application number
JP8066391A
Other languages
Japanese (ja)
Other versions
JPH09257963A (en
Inventor
義明 大野
宏直 田中
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 Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP8066391A priority Critical patent/JP2874632B2/en
Publication of JPH09257963A publication Critical patent/JPH09257963A/en
Application granted granted Critical
Publication of JP2874632B2 publication Critical patent/JP2874632B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、入力される2系統
のクロックのうち、使用していた一方のクロックから、
予備である他方のクロックに切り替えるクロック切替回
路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system which uses one of two input system clocks.
The present invention relates to a clock switching circuit that switches to another spare clock.

【0002】[0002]

【従来の技術】クロック切替回路は、例えば入力される
2系統のクロックのうち、現在使用している一方のクロ
ックが何等かの異常で切断された場合に予備である他方
のクロックに切り替えるときなどに使用される。
2. Description of the Related Art A clock switching circuit is used, for example, when switching one of two input clocks to a spare clock when one of the currently used clocks is disconnected due to some abnormality. Used for

【0003】2系統のクロックが位相同期されて入力さ
れる場合、ケーブル等の伝送路環境の差異からクロック
間には微少な位相差が生じる。この位相差によりクロッ
クを切り替えるタイミングによっては出力クロックに幅
の短い余分なパルスが発生する(いわゆる「クロックの
割れ」)。クロック切替回路ではこの出力クロックの割
れを防止することが重要であり、例えば、図6に示すよ
うな回路(特開平4−51716号公報参照)が開示さ
れている。
When two clocks are input with their phases synchronized, a slight phase difference occurs between the clocks due to differences in the transmission path environment such as a cable. Depending on the timing at which the clock is switched due to this phase difference, an extra pulse with a short width is generated in the output clock (so-called “clock cracking”). In the clock switching circuit, it is important to prevent the output clock from cracking. For example, a circuit as shown in FIG. 6 (see Japanese Patent Application Laid-Open No. 4-51716) is disclosed.

【0004】図6は従来のクロック切替回路の構成を示
すブロック図である。
FIG. 6 is a block diagram showing a configuration of a conventional clock switching circuit.

【0005】図6において、通常使用される現用クロッ
クは第1の入力端子から入力され、入力されたクロック
の所定比倍の周波数のクロックに変換する現用PLO回
路21に入力される。また、予備で使用される予備用ク
ロックは第2の入力端子より入力され、現用クロックと
同様に入力されたクロックの所定比倍の周波数のクロッ
クに変換する予備PLO回路22に入力される。
In FIG. 6, a working clock which is normally used is inputted from a first input terminal and inputted to a working PLO circuit 21 which converts the inputted clock into a clock having a frequency which is a predetermined ratio multiple of that of the inputted clock. The backup clock used for backup is input from the second input terminal, and is input to the backup PLO circuit 22 which converts the input clock into a clock having a frequency which is a predetermined multiple of the input clock in the same manner as the current clock.

【0006】現用PLO回路21の出力及び予備PLO
回路22の出力はそれぞれ2つのクロックを選択する選
択回路29に入力される。また、現用PLO回路21及
び予備PLO回路22からはクロック入力の異常等を知
らせるアラーム信号が出力され、クロック切り替えの制
御信号を出力する切替制御部23にそれぞれ入力され
る。
Output of working PLO circuit 21 and spare PLO
The output of the circuit 22 is input to a selection circuit 29 for selecting two clocks. The active PLO circuit 21 and the backup PLO circuit 22 output an alarm signal indicating an abnormality of the clock input or the like, and input the alarm signal to a switching control unit 23 that outputs a clock switching control signal.

【0007】切替制御部23には上記2つのアラーム信
号の他に、クロックの切り替えを指示する切替信号が切
替制御入力端子を介して入力され、外部からの切り替え
指令である切替信号、あるいはアラーム信号によりクロ
ックが切り替わる。
[0007] In addition to the above two alarm signals, a switching signal for instructing clock switching is input to the switching control unit 23 via a switching control input terminal, and a switching signal as an external switching command or an alarm signal. Changes the clock.

【0008】現用PLO回路21及び予備PLO回路2
2の出力は、現用PLO回路21及び予備PLO回路2
2から出力されるクロックのうち遅い方の立ち上り位相
をとらえるためのAND回路24と、現用PLO回路2
1及び予備PLO回路22から出力されるクロックのう
ち遅い方の立ち下がり位相をとらえるためのNOR回路
25とに入力される。
The working PLO circuit 21 and the spare PLO circuit 2
2 output from the working PLO circuit 21 and the standby PLO circuit 2
An AND circuit 24 for capturing the later rising phase of the clock output from the PLO circuit 2;
1 and a clock output from the backup PLO circuit 22 and a NOR circuit 25 for capturing the later falling phase.

【0009】AND回路24の出力は、2分周用の第1
のフリップフロップ回路26に入力され、第1のフリッ
プフロップ回路26とNOR回路25の出力は、それぞ
れの論理和をとるためのOR回路27に入力される。こ
こで、第1のフリップフロップ回路26は現用PLO回
路21及び予備PLO回路22から出力されるクロック
の位相が完全にそろった(定常位相差=0)場合に、O
R回路27の出力が無くならないようにするために挿入
されている。
The output of the AND circuit 24 is the first output for dividing by two.
, And the outputs of the first flip-flop circuit 26 and the NOR circuit 25 are input to an OR circuit 27 for calculating the logical sum of each. Here, the first flip-flop circuit 26 is turned on when the clocks output from the working PLO circuit 21 and the backup PLO circuit 22 are completely in phase (steady phase difference = 0).
It is inserted so that the output of the R circuit 27 does not disappear.

【0010】また、切替制御部23及びOR回路27の
出力はそれぞれ第2のフリップフロップ回路28に入力
され、OR回路27の出力で切替制御部23の出力がリ
タイミングされる。第2のフリップフロップ回路28の
出力は、現用PLO回路21及び予備PLO回路22か
ら出力されるクロックの一方を選択する選択回路29に
入力され、選択回路29から選択されたクロックがクロ
ック出力端子から出力される。
The output of the switching control unit 23 and the output of the OR circuit 27 are respectively input to a second flip-flop circuit 28, and the output of the switching control unit 23 is retimed by the output of the OR circuit 27. The output of the second flip-flop circuit 28 is input to a selection circuit 29 for selecting one of the clocks output from the working PLO circuit 21 and the backup PLO circuit 22, and the clock selected from the selection circuit 29 is output from the clock output terminal. Is output.

【0011】このような回路構成にすることにより、現
用PLO回路21及び予備PLO回路22の出力のう
ち、位相が遅い方のクロックの立ち上りまたは位相が遅
い方のクロックの立ち下がりにクロックの切り替えタイ
ミングが同期し、2つのクロック間に定常的な位相差が
あっても、クロック切り替え時に発生する出力クロック
の割れを防止している。
With such a circuit configuration, of the outputs of the working PLO circuit 21 and the backup PLO circuit 22, the clock switching timing is set to the rising edge of the clock having the later phase or the falling edge of the clock having the later phase. To prevent the output clock from cracking at the time of clock switching even if there is a steady phase difference between the two clocks.

【0012】また、従来のクロック切替回路の他の例と
して、特開平2−128208号公報で開示された回路
がある。
As another example of the conventional clock switching circuit, there is a circuit disclosed in Japanese Patent Application Laid-Open No. 2-128208.

【0013】特開平2−128208号公報で開示され
たクロック切替回路では、一方のクロック信号と他方の
クロック信号とが同時にローレベルとなる期間を検出す
る同期化クロック発生手段と、同期化クロック発生手段
の出力に同期してクロックの切り替え信号を発生する切
替同期手段とを設け、2つのクロック信号が共にローレ
ベルの期間にクロックの切り替え動作を同期させ、出力
クロックの割れを防止する構成が示されている。
In the clock switching circuit disclosed in Japanese Patent Application Laid-Open No. 2-128208, a synchronization clock generation means for detecting a period in which one clock signal and the other clock signal are simultaneously at a low level, and a synchronization clock generation circuit A switching synchronizing means for generating a clock switching signal in synchronization with an output of the means, and synchronizing clock switching operations during a period when both clock signals are at a low level to prevent cracking of an output clock. Have been.

【0014】[0014]

【発明が解決しようとする課題】しかしながら上記した
ような従来のクロック切替回路のうち、特開平4−51
716号公報で開示されたクロック切替回路では、現用
PLO回路の出力クロックと予備PLO回路の出力クロ
ックとの位相が完全にそろってしまった場合に論理和回
路の出力が無くならないようにするため、第1のフリッ
プフロップ回路でAND回路の出力パルスを2分周して
いる。
However, among the conventional clock switching circuits as described above, Japanese Patent Application Laid-Open No. 4-51
In the clock switching circuit disclosed in Japanese Patent No. 716, in order to prevent the output of the OR circuit from being lost when the output clock of the working PLO circuit and the output clock of the backup PLO circuit are completely aligned, The first flip-flop circuit divides the output pulse of the AND circuit by two.

【0015】このとき、クロックを切り替えるための信
号が現用クロックまたは予備用クロックの位相に同期す
る周期はクロックの2倍の周期になるために、例えば現
用クロックが切断されてハイレベルまたはローレベルで
固定された場合に、切り替えるタイミングによっては出
力クロックのパルス数が入力クロックより少なくなって
しまう問題が発生していた。
At this time, since the cycle for synchronizing the clock switching signal with the phase of the working clock or the spare clock is twice as long as the clock, for example, the working clock is cut off and the cycle becomes high or low. When fixed, the number of pulses of the output clock becomes smaller than that of the input clock depending on the switching timing.

【0016】一方、特開平2−128208号公報で開
示されたクロック切替回路では、一方のクロックが切断
されてハイレベルで固定されている場合に、一方のクロ
ックと他方のクロックとが同時にローレベルになる期間
が存在しなくなるため、クロックを切り替えるための期
間が検出されず、クロックの切り替えが行われないた
め、クロック切替回路の出力に接続されたシステムにク
ロックが供給されないことがあった。
On the other hand, in the clock switching circuit disclosed in Japanese Patent Application Laid-Open No. 2-128208, when one clock is cut and fixed at a high level, one clock and the other clock are simultaneously set to a low level. , The clock switching period is not detected, and the clock is not switched, so that the clock may not be supplied to the system connected to the output of the clock switching circuit.

【0017】本発明は上記したような従来の技術が有す
る問題点を解決するためになされたものであり、2系統
のクロック間で生じる微少な位相差の影響を受けること
がなく、使用しているクロックが切断されてハイレベル
またはローレベルで固定された場合でも、クロックの切
替を確実に行うことができるクロック切替回路を提供す
ることを目的とする。
The present invention has been made to solve the above-mentioned problems of the prior art, and is not affected by a minute phase difference generated between two clocks, and is used. It is an object of the present invention to provide a clock switching circuit that can surely switch clocks even when a clock that has been cut is fixed at a high level or a low level.

【0018】[0018]

【課題を解決するための手段】上記目的を達成するため
本発明のクロック切替回路は、使用している第1のクロ
ックから必要に応じて予備である第2のクロックに切り
替えて出力するクロック切替回路において、前記第1の
クロック及び前記第1のクロックの位相を90度遅延さ
せた信号の排他的論理和をとり前記第1のクロックを2
倍の周波数にする第1の受信処理手段と、前記第2のク
ロック及び前記第2のクロックの位相を90度遅延させ
た信号の排他的論理和をとり前記第2のクロックを2倍
の周波数にする第2の受信処理手段と、前記第1の受信
処理手段の出力信号及び前記第2の受信処理手段の出力
信号の論理和をとる論理和回路と、前記論理和回路の出
力信号の否定信号を出力する否定回路と、前記第1のク
ロック、前記第1の受信処理手段の出力信号、および前
記否定回路の出力信号が入力され、前記第1のクロック
が切断されているか否かを示すクロック監視信号を出力
するクロック監視回路と、前記クロック監視信号を前記
否定回路の出力信号でサンプリングして保持するフリッ
プフロップ回路と、前記第1のクロックおよび前記第2
のクロックが入力され、前記フリップフロップ回路の出
力信号にしたがって、前記第1のクロックが切断されて
いないときには前記第1のクロックを選択して出力し、
前記第1のクロックが切断されている間は前記第2のク
ロックを選択して出力する選択回路とを有することを特
徴とする。
In order to achieve the above object, a clock switching circuit according to the present invention is a clock switching circuit for switching from a used first clock to a spare second clock as required and outputting the clock. In the circuit, an exclusive OR of the first clock and a signal obtained by delaying the phase of the first clock by 90 degrees is used, and the first clock is set to 2
A first reception processing means for doubling the frequency, an exclusive OR of the second clock and a signal obtained by delaying the phase of the second clock by 90 degrees to obtain a second frequency of the second clock A second reception processing unit, an OR circuit for performing an OR operation on an output signal of the first reception processing unit and an output signal of the second reception processing unit, and negation of an output signal of the OR circuit A NOT circuit for outputting a signal, the first clock, an output signal of the first reception processing means, and an output signal of the NOT circuit are input, and indicate whether or not the first clock is disconnected. A clock monitoring circuit that outputs a clock monitoring signal, a flip-flop circuit that samples and holds the clock monitoring signal with an output signal of the negation circuit, the first clock and the second clock.
Is selected, and the first clock is selected and output according to the output signal of the flip-flop circuit when the first clock is not cut off,
A selection circuit for selecting and outputting the second clock while the first clock is cut off.

【0019】このとき、前記クロック監視回路は、前記
第1のクロック及び前記第1のクロックの位相を180
度遅延させた信号の排他的論理和をとる第3の受信処理
手段と、前記第1の受信処理手段の出力信号及び前記否
定回路の出力信号がそれぞれ入力され、所定の時間、前
記第1の受信処理手段の出力パルスがあるか否かを検出
する監視手段と、前記第3の受信処理手段の出力信号お
よび前記監視手段の出力信号の論理積をとり、前記第1
のクロックが切断されているか否かのクロック監視信号
を出力する論理積回路とを有していてもよい。
At this time, the clock monitoring circuit sets the phases of the first clock and the first clock to 180.
A third reception processing means for taking an exclusive OR of the delayed signals, an output signal of the first reception processing means, and an output signal of the negation circuit, respectively, and the first reception processing means and ANDing the output signal of the third reception processing means and the output signal of the monitoring means with the monitoring means for detecting whether or not there is an output pulse of the reception processing means;
And an AND circuit that outputs a clock monitoring signal as to whether or not the clock is cut off.

【0020】また、クロック切替回路の他の構成とし
て、使用している第1のクロックから必要に応じて予備
である第2のクロックに切り替えて出力するクロック切
替回路において、前記第1のクロック及び前記第1のク
ロックの位相を90度遅延させた信号の排他的論理和を
とり前記第1のクロックを2倍の周波数にする第1の受
信処理手段と、前記第2のクロック及び前記第2のクロ
ックの位相を90度遅延させた信号の排他的論理和をと
り前記第2のクロックを2倍の周波数にする第2の受信
処理手段と、前記第1の受信処理手段の出力信号及び前
記第2の受信処理手段の出力信号の論理和をとる論理和
回路と、前記論理和回路の出力信号の否定信号を出力す
る否定回路と、前記第1のクロックの切断を検出し、前
記第1のクロックから前記第2のクロックに切り替える
ためのクロック監視信号を出力する制御手段と、前記の
クロック監視信号を前記否定回路の出力信号でサンプリ
ングし、結果を保持するフリップフロップ回路と、前記
第1のクロックおよび前記第2のクロックが入力され、
前記フリップフロップ回路の出力信号にしたがって、前
記第1のクロックが切断されていないときには前記第1
のクロックを選択して出力し、前記第1のクロックが切
断されている間は前記第2のクロックを選択して出力す
る選択回路とを有することを特徴とする。
As another configuration of the clock switching circuit, a clock switching circuit for switching from the first clock being used to a spare second clock as necessary and outputting the second clock is provided. First reception processing means for taking an exclusive OR of a signal obtained by delaying the phase of the first clock by 90 degrees to make the frequency of the first clock double, the second reception processing means, and the second clock; A second reception processing means for calculating an exclusive OR of a signal obtained by delaying the phase of the clock by 90 degrees to make the second clock a double frequency; an output signal of the first reception processing means; An OR circuit that performs an OR operation on an output signal of the second reception processing unit, a NOT circuit that outputs a NOT signal of an output signal of the OR circuit, and a disconnection of the first clock, wherein The clock Control means for outputting a clock monitoring signal for switching to the second clock; a flip-flop circuit for sampling the clock monitoring signal with an output signal of the NOT circuit and holding a result; Receiving the second clock,
According to the output signal of the flip-flop circuit, when the first clock is not cut off, the first clock
And a selection circuit for selecting and outputting the second clock while the first clock is cut off.

【0021】上記のように構成されたクロック切替回路
は、論理和回路によって第1の受信処理手段の出力信号
及び第2の受信処理手段の出力信号の論理和がとられる
ため、第1のクロックが切断されても、クロックを選択
する選択回路を動作させるためのクロック監視回路及び
フリップフロップ回路に供給される信号が途切れること
がない。
In the clock switching circuit configured as described above, since the logical sum of the output signal of the first reception processing means and the output signal of the second reception processing means is calculated by the logical sum circuit, the first clock , The signal supplied to the clock monitoring circuit and the flip-flop circuit for operating the selection circuit for selecting the clock is not interrupted.

【0022】また、第1の受信処理手段及び第2の受信
処理手段によって、第1のクロック及び第2のクロック
がそれぞれ2分の1の周期のクロックに変換され、位相
が遅れた方のクロックの立ち上り及び立ち下がりから位
相が90度遅延したところでフリップフロップ回路が動
作するため、選択回路は第1のクロックと第2のクロッ
クの間に微少な位相差があっても影響を受けることなく
動作する。
The first and second reception processing means convert the first clock and the second clock into clocks each having a half cycle, and the clock having the phase delayed Since the flip-flop circuit operates when the phase is delayed by 90 degrees from the rising and falling edges, the selection circuit operates without being affected even if there is a slight phase difference between the first clock and the second clock. I do.

【0023】[0023]

【発明の実施の形態】次に本発明について図面を参照し
て説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0024】図1は本発明のクロック切替回路の構成を
示すブロック図であり、図2は図1に示したクロック切
替回路の動作の様子を示すタイムチャートである。
FIG. 1 is a block diagram showing the configuration of the clock switching circuit of the present invention, and FIG. 2 is a time chart showing the operation of the clock switching circuit shown in FIG.

【0025】なお、以下の( )内の符号は図2のタイ
ムチャートで示した各信号を表している。
The symbols in parentheses below represent the signals shown in the time chart of FIG.

【0026】図1において、1は第1のクロック(A)
の位相を90°遅延させる第1の遅延回路、2は第1の
クロック(A)と第1の遅延回路1の出力信号(C)と
の排他的論理和をとる第1の排他的論理和回路、3は第
2のクロック(B)の位相を90°遅延させる第2の遅
延回路、4は第2のクロック(B)と第2の遅延回路3
の出力信号(D)との排他的論理和をとる第2の排他的
論理和回路、5は第1の排他的論理和回路2の出力
(E)と第2の排他的論理和回路4の出力(F)との論
理和をとる論理和回路、6は論理和回路5の出力(G)
を否定出力する否定回路、7は第1のクロック(A)と
第1の排他的論理和回路2の出力(E)と否定回路6の
出力(K)を入力して第1のクロック(A)の障害を監
視するクロック監視回路、8はクロック監視回路7の出
力(M)を否定回路6の出力(K)でサンプリングし、
結果を保持するフリップフロップ回路、9は第1のクロ
ック(A)と第2のクロック(B)とをフリップフロッ
プ回路8の出力(N)によって第1のクロック(A)に
障害が検出されている間、第2のクロック(B)を選択
する選択回路である。
In FIG. 1, 1 is a first clock (A).
Is a first delay circuit for delaying the phase of the first delay circuit by 90 °, and a first exclusive OR circuit 2 calculates the exclusive OR of the first clock (A) and the output signal (C) of the first delay circuit 1 The circuit 3 is a second delay circuit for delaying the phase of the second clock (B) by 90 °, and the reference numeral 4 is the second clock (B) and the second delay circuit 3.
A second exclusive OR circuit 5, which takes an exclusive OR with the output signal (D) of the second exclusive OR circuit 5, and an output (E) of the first exclusive OR circuit 2 and a second exclusive OR circuit 4 A logical sum circuit for calculating a logical sum with the output (F); and 6, an output (G) of the logical sum circuit 5
, The first clock (A), the output (E) of the first exclusive OR circuit 2 and the output (K) of the negative circuit 6 are input to the first clock (A). A) a clock monitoring circuit for monitoring a fault; 8) sampling the output (M) of the clock monitoring circuit 7 with the output (K) of the NOT circuit 6;
The flip-flop circuit 9 for holding the result uses the first clock (A) and the second clock (B) to detect a failure in the first clock (A) by the output (N) of the flip-flop circuit 8. A selection circuit for selecting the second clock (B) during the operation.

【0027】このような構成において、次に図1に示し
たクロック切替回路の動作について図2を参照して説明
する。
In such a configuration, the operation of the clock switching circuit shown in FIG. 1 will now be described with reference to FIG.

【0028】なお、図2のタイムチャートは、第2のク
ロック(B)よりも第1のクロック(A)の位相が進ん
だ状態から、第1のクロック(A)が切断されてハイレ
ベルに固定されるときの様子を示している。
Note that the time chart of FIG. 2 shows that the first clock (A) is disconnected from the state in which the phase of the first clock (A) is advanced with respect to the phase of the second clock (B), and becomes high level. The state when fixed is shown.

【0029】図2において、第1のクロック(A)と第
1の遅延回路1の出力信号(C)との排他的論理和をと
った第1の排他的論理和回路2の出力信号(E)は、第
1のクロック(A)の2分の1の周期の信号となる。同
様に、第2のクロック(B)と第2の遅延回路3の出力
信号(D)との排他的論理和をとった第2の排他的論理
和回路4の出力信号(F)は第2のクロック(B)の2
分の1の周期の信号となる。
In FIG. 2, the output signal (E) of the first exclusive OR circuit 2 which is the exclusive OR of the first clock (A) and the output signal (C) of the first delay circuit 1 is obtained. ) Is a signal having a half cycle of the first clock (A). Similarly, the output signal (F) of the second exclusive OR circuit 4 which is the exclusive OR of the second clock (B) and the output signal (D) of the second delay circuit 3 is the second Clock (B) 2
It becomes a signal with a period of 1 /.

【0030】これら信号(E)と信号(F)との論理和
をとった信号(G)を否定出力した否定回路6の出力信
号(K)の立ち上がりは、位相が遅れた方のクロック、
すなわち第2のクロック(B)の、立ち上り及び立ち下
がりから位相を90°遅延させたところに一致する。
The rising edge of the output signal (K) of the NOT circuit 6 which outputs the logical sum of the signal (E) and the signal (F), which is the logical OR of the signal (F),
That is, the second clock (B) coincides with the phase where the phase is delayed by 90 ° from the rising edge and the falling edge.

【0031】また、フリップフロップ回路8は第1のク
ロック(A)の障害の監視結果を示すクロック監視信号
(M)を信号(K)のタイミングでサンプリングしてい
るため、クロック選択信号(N)の立上りは第2のクロ
ック(B)の立ち上り及び立ち下がりから位相が90°
遅延したところに一致する。
Since the flip-flop circuit 8 samples the clock monitoring signal (M) indicating the result of monitoring the failure of the first clock (A) at the timing of the signal (K), the clock selection signal (N) Has a phase of 90 ° from the rising and falling of the second clock (B).
Match where delayed.

【0032】なお、クロック監視回路7の障害監視動作
については後述する。
The fault monitoring operation of the clock monitoring circuit 7 will be described later.

【0033】ここで、図2に示すように信号(E)及び
信号(F)の論理和を論理和回路5でとっているため
に、第1のクロック(A)が切断されても、信号(K)
がハイレベルまたはローレベルに固定されることがない
ため、クロックの切り替え処理が確実に行われる。
Here, as shown in FIG. 2, since the logical sum of the signal (E) and the signal (F) is obtained by the logical sum circuit 5, even if the first clock (A) is cut off, the signal (K)
Is not fixed to the high level or the low level, so that the clock switching process is reliably performed.

【0034】また、第2のクロック(B)の立ち上り及
び立ち下がりから、位相を90°遅延させたところにク
ロックを切り替えるためのクロック選択信号(N)を同
期させるため、クロック間の微少な位相差による影響
(クロック割れ等)を受けることがない。
In addition, since the clock selection signal (N) for switching the clock is delayed by 90 ° from the rising and falling of the second clock (B), the clock selection signal (N) is synchronized. It is not affected by the phase difference (clock crack, etc.).

【0035】次に、図3及び図4を参照してクロック監
視回路7について説明する。
Next, the clock monitoring circuit 7 will be described with reference to FIGS.

【0036】図3は図1に示したクロック監視回路の構
成を示すブロック図である。また、図4は図3に示した
クロック監視回路の動作の様子を示すタイムチャートで
ある。
FIG. 3 is a block diagram showing a configuration of the clock monitoring circuit shown in FIG. FIG. 4 is a time chart showing the operation of the clock monitoring circuit shown in FIG.

【0037】図3において、71は第1のクロック
(A)の位相を180°遅延させる180°遅延回路、
72は第1のクロック(A)と180°遅延回路71の
出力(W)との排他的論理和をとるEXOR回路であ
る。
In FIG. 3, reference numeral 71 denotes a 180 ° delay circuit for delaying the phase of the first clock (A) by 180 °;
An EXOR circuit 72 takes an exclusive OR of the first clock (A) and the output (W) of the 180 ° delay circuit 71.

【0038】また、74は否定回路6の出力信号(K)
を入力し、所定時間後に信号(S)を出力するカウンタ
回路、75は第1の排他的論理和回路2の出力信号
(E)をダウンカウント用クロックとし、否定回路6の
出力信号(K)をアップカウント用クロックとするUP
/DOWNカウンタ回路、76はUP/DOWNカウン
タ回路75で行った所定のカウント数を知らせるダウン
用カウンタの出力BO及びアップ用カウンタの出力CA
の論理和をとるOR回路、77はカウンタ回路74の出
力信号(S)を所定の時間だけ遅延する遅延回路、78
はOR回路76の出力信号(R)でセットされ、遅延回
路77の出力信号(T)でリセットされる第1のF/F
(フリップフロップ)回路、79は第1のF/F回路7
8の出力信号(U)をカウンタ回路74の出力信号
(S)でサンプリングして出力する第2のF/F(フリ
ップフロップ)回路、73はEXOR回路72の出力信
号(X)と第2のF/F回路79の出力信号(V)の論
理積をとりクロック監視信号(M)を出力するAND回
路である。なお、図3中の’m’はUP/DOWNカウ
ンタ回路75のカウント数を設定するものであり、所定
の値に設定される。
Reference numeral 74 denotes an output signal (K) of the NOT circuit 6
The counter circuit 75 outputs the signal (S) after a predetermined time, and the output signal (E) of the first exclusive OR circuit 2 is used as a down-counting clock, and the output signal (K) of the NOT circuit 6 UP as a clock for counting up
A / DOWN counter circuit 76 has an output BO of a down counter and an output CA of an up counter for notifying a predetermined count performed by the UP / DOWN counter circuit 75.
An OR circuit 77 for obtaining a logical sum of the signals; a delay circuit 78 for delaying the output signal (S) of the counter circuit 74 by a predetermined time;
Is the first F / F which is set by the output signal (R) of the OR circuit 76 and reset by the output signal (T) of the delay circuit 77
(Flip-flop) circuit, 79 is the first F / F circuit 7
8 is a second F / F (flip-flop) circuit which samples the output signal (U) of the counter circuit 74 with the output signal (S) of the counter circuit 74 and outputs the sampled signal. Reference numeral 73 denotes the output signal (X) of the EXOR circuit 72 and the second signal. This is an AND circuit that takes the logical product of the output signal (V) of the F / F circuit 79 and outputs a clock monitoring signal (M). Note that “m” in FIG. 3 sets the count number of the UP / DOWN counter circuit 75 and is set to a predetermined value.

【0039】このような構成において、次に、図4を参
照してクロック監視回路7の動作について説明する。
In such a configuration, the operation of the clock monitoring circuit 7 will now be described with reference to FIG.

【0040】なお、図4(a)は、第1のクロック
(A)の位相が第2のクロック(B)の位相よりも進ん
でいる状態から、第1のクロック(A)が切断されロー
レベルに固定される場合を示している。また、図4
(b)は、第1のクロック(A)が切断状態から復旧
し、その位相が第2のクロック(B)よりも遅れて立ち
上がった場合を示している。
FIG. 4A shows a state in which the phase of the first clock (A) is ahead of the phase of the second clock (B), and the first clock (A) is cut off and becomes low. This shows a case where the level is fixed. FIG.
(B) shows a case where the first clock (A) recovers from the disconnected state and its phase rises later than the second clock (B).

【0041】まず、第1のクロック(A)が正常の時
は、アップカウント用クロック(信号(K))及びダウ
ンカウント用クロック(信号(E))がそれぞれ入力さ
れるためUP/DOWNカウンタ回路75が動作せず、
OR回路76の出力信号(R)はローレベル”L”に固
定され、第2のF/F回路79の出力(V)はハイレベ
ル”H”に固定される。
First, when the first clock (A) is normal, an up / count clock (signal (K)) and a down / count clock (signal (E)) are input, respectively, so that the UP / DOWN counter circuit is used. 75 does not work,
The output signal (R) of the OR circuit 76 is fixed at a low level “L”, and the output (V) of the second F / F circuit 79 is fixed at a high level “H”.

【0042】ここで、第1のクロック(A)が切断され
ると、EXOR回路72の出力(X)がローレベル”
L”になり、クロック監視信号Mがローレベル”L”と
なって1クロック以内にクロックの切替処理が行われる
(図4(a)参照)。
Here, when the first clock (A) is cut off, the output (X) of the EXOR circuit 72 becomes low level.
The clock monitoring signal M becomes L level, and the clock monitoring signal M becomes low level L, and the clock switching process is performed within one clock (see FIG. 4A).

【0043】この時、第1の排他的論理和回路2の出力
信号(E)はローレベル”L”に固定され、UP/DO
WNカウンタ回路75がカウントアップを始めて、所定
時間後にアップカウントの所定のカウント数を知らせる
信号CAが出力される。そして、OR回路76の出力
(R)がハイレベル”H”になり、第1のF/F回路7
8の出力(U)がハイレベル”H”となる。第2のF/
F回路15は、この信号(U)をカウンタ回路74の出
力信号(S)のタイミングでサンプリングし、反転出力
(V)はローレベル”L”となる。
At this time, the output signal (E) of the first exclusive OR circuit 2 is fixed at the low level "L", and the UP / DO
After the WN counter circuit 75 starts counting up, a signal CA notifying a predetermined count number of the up-count is output after a predetermined time. Then, the output (R) of the OR circuit 76 becomes high level “H”, and the first F / F circuit 7
The output (U) of No. 8 becomes high level "H". Second F /
The F circuit 15 samples this signal (U) at the timing of the output signal (S) of the counter circuit 74, and the inverted output (V) becomes low level "L".

【0044】一方、第1のクロック(A)が切断状態か
ら復旧した場合、1クロック以内に信号(X)がハイレ
ベル”H”となる。
On the other hand, when the first clock (A) recovers from the disconnected state, the signal (X) becomes high level "H" within one clock.

【0045】このとき、遅延回路77の出力信号(T)
によって第1のF/F回路78のリセットが行われる。
しかしながら、出力信号(S)のタイミングによって第
2のF/F回路79でサンプリングが行われるまで第2
のF/F回路79の出力(V)はローレベル”L”に固
定され、クロック監視信号(M)もローレベル”L”で
保持される(図4(b)参照)。
At this time, the output signal (T) of the delay circuit 77
Thereby, the first F / F circuit 78 is reset.
However, according to the timing of the output signal (S), the second F / F circuit 79 performs the second sampling until sampling is performed.
The output (V) of the F / F circuit 79 is fixed at the low level "L", and the clock monitoring signal (M) is also held at the low level "L" (see FIG. 4B).

【0046】すなわち、クロック監視信号Mがハイレベ
ル”H”となるためには、第1のクロック(A)が復旧
してから所定時間後になるため、クロックの切替処理は
受信したクロックが安定してから行われる。
That is, the clock monitoring signal M becomes high level "H" a predetermined time after the recovery of the first clock (A), so that the received clock is stabilized in the clock switching process. It is done after.

【0047】このような構成にすることにより、第1の
クロック(A)が切断された場合は1クロック以内にク
ロックの切替処理が行われようにクロック監視信号
(M)が出力され、第1のクロックが復旧した場合はク
ロックが安定してから切替処理が行われるようにクロッ
ク監視信号(M)が出力される。
With this configuration, when the first clock (A) is cut off, the clock monitor signal (M) is output so that the clock switching process is performed within one clock, and the first clock (M) is output. When the clock is recovered, the clock monitoring signal (M) is output so that the switching process is performed after the clock is stabilized.

【0048】なお、図5に示すようにクロック監視回路
を構成に含めず、代りに不図示の制御手段によって第1
のクロックの切断を監視し、第2のクロックに切り替え
るためのクロック監視信号(M)をフリップフロップ回
路(F/F回路)に入力する構成にしてもよい。この場
合、クロック監視信号(M)を内部で作成するか外部か
ら入力するかが違うだけで他の構成は同様に動作する。
The clock monitoring circuit is not included in the configuration as shown in FIG.
May be configured to monitor the disconnection of the clock and input a clock monitoring signal (M) for switching to the second clock to the flip-flop circuit (F / F circuit). In this case, the other components operate in the same manner except that the clock monitor signal (M) is generated internally or input externally.

【0049】[0049]

【発明の効果】本発明は以上説明したように構成されて
いるため、以下に記載する効果を奏する。
Since the present invention is configured as described above, the following effects can be obtained.

【0050】論理和回路によって第1の受信処理手段の
出力信号及び第2の受信処理手段の出力信号の論理和が
とられるため、第1のクロックが切断されても、クロッ
クを選択する選択回路を動作させるためのクロック監視
回路及びフリップフロップ回路に供給される信号が途切
れることがなく、クロックの切り替え動作が確実に行わ
れる。
The OR circuit takes the logical sum of the output signal of the first reception processing means and the output signal of the second reception processing means, so that the selection circuit selects the clock even if the first clock is cut off. The signal supplied to the clock monitoring circuit and the flip-flop circuit for operating the circuit is not interrupted, and the clock switching operation is performed reliably.

【0051】また、位相が遅れた方のクロックの立ち上
り及び立ち下がりから位相が90度遅延したところで、
クロックを選択する選択回路を動作させるためのクロッ
ク監視回路及びフリップフロップ回路が動作するため、
選択回路は第1のクロックと第2のクロックの間に微少
な位相差があっても影響を受けることなくクロックを切
り替えることができる。
When the phase is delayed by 90 degrees from the rising and falling edges of the clock having the delayed phase,
Since a clock monitoring circuit and a flip-flop circuit for operating a selection circuit for selecting a clock operate,
The selection circuit can switch clocks without being affected even if there is a small phase difference between the first clock and the second clock.

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

【図1】本発明のクロック切替回路の構成を示すブロッ
ク図である。
FIG. 1 is a block diagram illustrating a configuration of a clock switching circuit according to the present invention.

【図2】図1に示したクロック切替回路の動作の様子を
示すタイムチャートである。
FIG. 2 is a time chart illustrating an operation state of the clock switching circuit illustrated in FIG. 1;

【図3】図1に示したクロック監視回路の構成を示すブ
ロック図である。
FIG. 3 is a block diagram illustrating a configuration of a clock monitoring circuit illustrated in FIG. 1;

【図4】図3に示したクロック監視回路の動作の様子を
示すタイムチャートである。
FIG. 4 is a time chart showing an operation state of the clock monitoring circuit shown in FIG. 3;

【図5】本発明のクロック切替回路の他の構成を示すブ
ロック図である。
FIG. 5 is a block diagram showing another configuration of the clock switching circuit of the present invention.

【図6】従来のクロック切替回路の構成を示すブロック
図である。
FIG. 6 is a block diagram illustrating a configuration of a conventional clock switching circuit.

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

1 第1の遅延回路 2 第1の排他的論理和回路 3 第2の遅延回路 4 第2の排他的論理和回路 5 論理和回路 6 否定回路 7 クロック監視回路 8 フリップフロップ回路 9 選択回路 71 180°遅延回路 72 EXOR回路 73 AND回路 74 カウンタ回路 75 UP/DOWNカウンタ回路 76 OR回路 77 遅延回路 78 第1のF/F回路 79 第2のF/F回路 DESCRIPTION OF SYMBOLS 1 1st delay circuit 2 1st exclusive OR circuit 3 2nd delay circuit 4 2nd exclusive OR circuit 5 OR circuit 6 Negation circuit 7 Clock monitoring circuit 8 Flip-flop circuit 9 Selection circuit 71 180 ° Delay circuit 72 EXOR circuit 73 AND circuit 74 Counter circuit 75 UP / DOWN counter circuit 76 OR circuit 77 Delay circuit 78 First F / F circuit 79 Second F / F circuit

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G04F 7/00 - 13/06 G06F 1/04 H03L 7/00 H04L 1/22,7/00 Continuation of the front page (58) Fields investigated (Int.Cl. 6 , DB name) G04F 7/00-13/06 G06F 1/04 H03L 7/00 H04L 1 / 22,7 / 00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 使用している第1のクロックから必要に
応じて予備である第2のクロックに切り替えて出力する
クロック切替回路において、 前記第1のクロック及び前記第1のクロックの位相を9
0度遅延させた信号の排他的論理和をとり前記第1のク
ロックを2倍の周波数にする第1の受信処理手段と、 前記第2のクロック及び前記第2のクロックの位相を9
0度遅延させた信号の排他的論理和をとり前記第2のク
ロックを2倍の周波数にする第2の受信処理手段と、 前記第1の受信処理手段の出力信号及び前記第2の受信
処理手段の出力信号の論理和をとる論理和回路と、 前記論理和回路の出力信号の否定信号を出力する否定回
路と、 前記第1のクロック、前記第1の受信処理手段の出力信
号、および前記否定回路の出力信号が入力され、前記第
1のクロックが切断されているか否かを示すクロック監
視信号を出力するクロック監視回路と、 前記クロック監視信号を前記否定回路の出力信号でサン
プリングして保持するフリップフロップ回路と、 前記第1のクロックおよび前記第2のクロックが入力さ
れ、前記フリップフロップ回路の出力信号にしたがっ
て、前記第1のクロックが切断されていないときには前
記第1のクロックを選択して出力し、前記第1のクロッ
クが切断されている間は前記第2のクロックを選択して
出力する選択回路と、を有することを特徴とするクロッ
ク切替回路。
1. A clock switching circuit for switching from a used first clock to a spare second clock as necessary and outputting the same, wherein the phases of the first clock and the first clock are 9
First reception processing means for taking an exclusive OR of the signals delayed by 0 degrees to make the first clock a double frequency; and setting the phases of the second clock and the second clock to 9
A second reception processing means for taking an exclusive OR of the signal delayed by 0 degrees to make the second clock a double frequency; an output signal of the first reception processing means and the second reception processing An OR circuit for obtaining a logical sum of output signals of the means, a NOT circuit for outputting a NOT signal of an output signal of the OR circuit, the first clock, an output signal of the first reception processing means, and A clock monitoring circuit to which an output signal of the negation circuit is input and which outputs a clock monitoring signal indicating whether or not the first clock is disconnected; and sampling and holding the clock monitoring signal with an output signal of the negation circuit. And the first clock and the second clock are input, and the first clock is cut off according to an output signal of the flip-flop circuit. A clock selector for selecting and outputting the first clock when there is no clock, and selecting and outputting the second clock while the first clock is cut off. circuit.
【請求項2】 請求項1に記載のクロック切替回路にお
いて、 前記クロック監視回路は、 前記第1のクロック及び前記第1のクロックの位相を1
80度遅延させた信号の排他的論理和をとる第3の受信
処理手段と、 前記第1の受信処理手段の出力信号及び前記否定回路の
出力信号がそれぞれ入力され、所定の時間、前記第1の
受信処理手段の出力パルスがあるか否かを検出する監視
手段と、 前記第3の受信処理手段の出力信号および前記監視手段
の出力信号の論理積をとり、前記第1のクロックが切断
されているか否かのクロック監視信号を出力する論理積
回路と、を有することを特徴とするクロック切替回路。
2. The clock switching circuit according to claim 1, wherein the clock monitoring circuit sets the phases of the first clock and the first clock to one.
A third reception processing unit that takes an exclusive OR of the signal delayed by 80 degrees, an output signal of the first reception processing unit, and an output signal of the negation circuit are input, respectively, Monitoring means for detecting whether there is an output pulse of the reception processing means, and ANDing the output signal of the third reception processing means and the output signal of the monitoring means, and cutting off the first clock. And a logical AND circuit for outputting a clock monitoring signal indicating whether or not the clock is switched.
【請求項3】 使用している第1のクロックから必要に
応じて予備である第2のクロックに切り替えて出力する
クロック切替回路において、 前記第1のクロック及び前記第1のクロックの位相を9
0度遅延させた信号の排他的論理和をとり前記第1のク
ロックを2倍の周波数にする第1の受信処理手段と、 前記第2のクロック及び前記第2のクロックの位相を9
0度遅延させた信号の排他的論理和をとり前記第2のク
ロックを2倍の周波数にする第2の受信処理手段と、 前記第1の受信処理手段の出力信号及び前記第2の受信
処理手段の出力信号の論理和をとる論理和回路と、 前記論理和回路の出力信号の否定信号を出力する否定回
路と、 前記第1のクロックの切断を検出し、前記第1のクロッ
クから前記第2のクロックに切り替えるためのクロック
監視信号を出力する制御手段と、 前記のクロック監視信号を前記否定回路の出力信号でサ
ンプリングし、結果を保持するフリップフロップ回路
と、 前記第1のクロックおよび前記第2のクロックが入力さ
れ、前記フリップフロップ回路の出力信号にしたがっ
て、前記第1のクロックが切断されていないときには前
記第1のクロックを選択して出力し、前記第1のクロッ
クが切断されている間は前記第2のクロックを選択して
出力する選択回路と、を有することを特徴とするクロッ
ク切替回路。
3. A clock switching circuit for switching from a used first clock to a spare second clock as necessary and outputting the same, wherein the phases of the first clock and the first clock are 9
First reception processing means for taking an exclusive OR of the signals delayed by 0 degrees to make the first clock a double frequency; and setting the phases of the second clock and the second clock to 9
A second reception processing means for taking an exclusive OR of the signal delayed by 0 degrees to make the second clock a double frequency; an output signal of the first reception processing means and the second reception processing A logical sum circuit for calculating a logical sum of the output signals of the means, a negative circuit for outputting a negative signal of the output signal of the logical sum circuit, and detecting a disconnection of the first clock; Control means for outputting a clock monitoring signal for switching to the second clock; a flip-flop circuit for sampling the clock monitoring signal with an output signal of the negation circuit and holding a result; 2 is input, and the first clock is selected and output according to the output signal of the flip-flop circuit when the first clock is not cut off. Wherein while the first clock is disconnected clock switching circuit characterized by having a selection circuit for selecting and outputting said second clock.
JP8066391A 1996-03-22 1996-03-22 Clock switching circuit Expired - Fee Related JP2874632B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8066391A JP2874632B2 (en) 1996-03-22 1996-03-22 Clock switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8066391A JP2874632B2 (en) 1996-03-22 1996-03-22 Clock switching circuit

Publications (2)

Publication Number Publication Date
JPH09257963A JPH09257963A (en) 1997-10-03
JP2874632B2 true JP2874632B2 (en) 1999-03-24

Family

ID=13314483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8066391A Expired - Fee Related JP2874632B2 (en) 1996-03-22 1996-03-22 Clock switching circuit

Country Status (1)

Country Link
JP (1) JP2874632B2 (en)

Also Published As

Publication number Publication date
JPH09257963A (en) 1997-10-03

Similar Documents

Publication Publication Date Title
JP2001352241A (en) Digital pll device
JP2874632B2 (en) Clock switching circuit
JP3461428B2 (en) Clock non-stop switching device
JP3930641B2 (en) Switching method and switching system for active and standby systems
JP3229993B2 (en) Frame pulse switching circuit
JP3518503B2 (en) Clock supply device
JP3228408B2 (en) Synchronization circuit and synchronization method
JP2972576B2 (en) Clock generation circuit
JP2689263B2 (en) Differential logic synchronization circuit
JP3720552B2 (en) Dual clock synchronous control system
JP2722921B2 (en) Hitless line switching device
JP4592982B2 (en) Clock switching circuit
JP2754713B2 (en) Synchronous switching device
JP3295868B2 (en) Frame clock synchronization circuit
JP2809202B2 (en) Clock switching circuit and clock transfer device using the same
JPH09298530A (en) Transmission frame timing synchronization circuit for active standby system
JPH07131435A (en) Aps channel fetching circuit
JPH11175182A (en) Clock switching circuit
JPH0666764B2 (en) Digital transmission terminal equipment
JPH1168529A (en) Device and method for clock changeover
JPH0451716A (en) Plo changeover circuit
JPH01264028A (en) Synchronize changing system
JPH05324118A (en) Automatic clock switching system and its circuit
JPH02156743A (en) Frame synchronization protection system
JPH06188949A (en) Data break detecting circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees