JPH03282805A - Clock signal switching circuit - Google Patents
Clock signal switching circuitInfo
- Publication number
- JPH03282805A JPH03282805A JP2084028A JP8402890A JPH03282805A JP H03282805 A JPH03282805 A JP H03282805A JP 2084028 A JP2084028 A JP 2084028A JP 8402890 A JP8402890 A JP 8402890A JP H03282805 A JPH03282805 A JP H03282805A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- clock
- clock signal
- output
- switching
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 5
- 238000003708 edge detection Methods 0.000 description 8
- 230000000630 rising effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は2つのクロック信号のうちいずれかを選択して
出力するクロック信号切換回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a clock signal switching circuit that selects and outputs one of two clock signals.
第3図は、この種のクロック信号切換回路の従来例の回
路図である。FIG. 3 is a circuit diagram of a conventional example of this type of clock signal switching circuit.
ラッチ21は、第1のクロック信号CKIをラッチ信号
として第1のクロック信号CKIに比べて周期の長い第
2のクロック信号CK2をラッチする。ラッチ22は、
第1のクロック信号CK1の反転信号をラッチ信号とし
て、ラッチ21の反転出力信号りをラッチする。ラッチ
23は、第1のクロック信号CKIをラッチ信号として
ラッチ22の反転出力信号iをラッチする。NORゲー
ト24はラッチ22の反転出力信号iと、ラッチ23の
反転出力信号jを入力し、信号kを出力する。ラッチ2
5はNORゲート24の出力信号kをラッチ信号として
クロック切換信号SELをラッチする。ラッチ25の非
反転出力がクロック切換同期化信号lとなる。セレクタ
26は、クロック切換同期化信号1によって第1のクロ
ツタ信号CKIまたは第2のクロック信号CK2を選択
してクロック出力信号CKOを出力する0例えばクロク
切換同期化信号1がハイレベルの時、クロック出力信号
CKOとして第1のクロック信号CK1が出力され、ロ
ーレベルの時第2のクロック信号CK2が出力される。The latch 21 uses the first clock signal CKI as a latch signal and latches a second clock signal CK2 having a longer cycle than the first clock signal CKI. The latch 22 is
The inverted output signal of the latch 21 is latched using the inverted signal of the first clock signal CK1 as a latch signal. The latch 23 latches the inverted output signal i of the latch 22 using the first clock signal CKI as a latch signal. The NOR gate 24 inputs the inverted output signal i of the latch 22 and the inverted output signal j of the latch 23, and outputs the signal k. latch 2
5 latches the clock switching signal SEL using the output signal k of the NOR gate 24 as a latch signal. The non-inverted output of latch 25 becomes clock switching synchronization signal l. The selector 26 selects the first clock signal CKI or the second clock signal CK2 according to the clock switching synchronization signal 1 and outputs the clock output signal CKO. For example, when the clock switching synchronization signal 1 is at a high level, the clock The first clock signal CK1 is output as the output signal CKO, and the second clock signal CK2 is output when it is at a low level.
第4図は第3図の回路において、第2のクロック信号C
K2の周期が第1のクロック信号CKIの周期に比べて
十分長い(2倍以上)場合のタイムチャートである。FIG. 4 shows the second clock signal C in the circuit of FIG.
This is a time chart when the period of K2 is sufficiently long (twice or more) compared to the period of the first clock signal CKI.
ラッチ21の反転出力信号h、ラッチ22の反転出力信
号i、ラッチ23の反転出力信号J、ラッチ22の反転
出力信号iとラッチ23の反転出力信号jを入力とする
NORゲート24の出力信号には、それぞれ第4図(3
) 、 (4) 、 (5) 、 (6)のようになり
、クロック切換信号SELが第4図(7)に示すように
与えられた場合、クロック切換信号SELは、NORゲ
ート24の出力信号kによって同期化され、クロック切
換同期化信号lは第4図(8)に示すようになる。クロ
ック切換同期化信号lがセレクト信号となり、クロック
切換同期化信号1がハイレベルの間、クロック出力信号
CKOには第1のクロック信号CKIが出力され、ロー
レベルの間第2のクロック信号CK2が出力される。The output signal of the NOR gate 24 receives the inverted output signal h of the latch 21, the inverted output signal i of the latch 22, the inverted output signal J of the latch 23, the inverted output signal i of the latch 22, and the inverted output signal j of the latch 23. are respectively shown in Figure 4 (3
), (4), (5), and (6), and when the clock switching signal SEL is given as shown in FIG. 4 (7), the clock switching signal SEL is the output signal of the NOR gate 24. The clock switching synchronization signal l becomes as shown in FIG. 4(8). The clock switching synchronization signal 1 becomes a select signal, and while the clock switching synchronization signal 1 is at high level, the first clock signal CKI is output as the clock output signal CKO, and while the clock switching synchronization signal 1 is at low level, the second clock signal CK2 is output. Output.
以上のように、第2のクロック信号CK2の周期が第1
のクロック信号CKIの周期に比べて十分長い場合には
、スパイクを発生することなく、第1のクロック信号C
KIと第2のクロック信号GK2を選択して出力するこ
とが可能である。As described above, the period of the second clock signal CK2 is the first
If the period of the first clock signal CKI is sufficiently long compared to the period of the first clock signal CKI, the first clock signal C
It is possible to select and output KI and the second clock signal GK2.
ところが、第3図に示す回路を用いて周期幅の差が少な
い(2倍以内)第1のクロック信号CK1と第2のクロ
ック信号CK2を切換ようとした場合、クロック出力信
号CKOにスパイクが発生する。第5図はこの場合のタ
イミングチャートである。However, when trying to switch between the first clock signal CK1 and the second clock signal CK2 whose cycle widths have a small difference (within twice) using the circuit shown in Figure 3, a spike occurs in the clock output signal CKO. do. FIG. 5 is a timing chart in this case.
ラッチ21の反転出力信号h、ラッチ22の反転出力信
号i、ラッチ23の反転出力信号j、ラッチ22の反転
出力信号iとラッチ23の反転出力信号Jを入力とする
NORゲート24の出力信号には、それぞれ第5図(3
) 、 (4) 、 (5) 、 (6)のようになる
、クロック切換信号CKOは前述と同じである。The output signal of the NOR gate 24 receives the inverted output signal h of the latch 21, the inverted output signal i of the latch 22, the inverted output signal j of the latch 23, the inverted output signal i of the latch 22, and the inverted output signal J of the latch 23. are respectively shown in Figure 5 (3
), (4), (5), (6), and the clock switching signal CKO is the same as described above.
この場合、クロック出力信号CKOにおいて、第1のク
ロック信号CKIから第2のクロック信号CK2に切り
換わる時に、スパイク27が発生する。このスパイク2
7は、周期の短かい方のクロック信号CKIのパルス幅
よりも狭いため、本回路のクロック出力信号CKOを使
用している回路において誤動作の原因となる。In this case, a spike 27 occurs in the clock output signal CKO when switching from the first clock signal CKI to the second clock signal CK2. This spike 2
7 is narrower than the pulse width of the clock signal CKI with the shorter period, which causes malfunction in the circuit using the clock output signal CKO of this circuit.
〔発明が解決しようとする課題1
上述した従来のクロック信号切換回路は、周期幅の差が
あまりない(2倍以内)2つのクロック信号を切り換え
て出力する時に、スパイクを発生するという欠点がある
。[Problem to be Solved by the Invention 1] The conventional clock signal switching circuit described above has the drawback of generating spikes when switching and outputting two clock signals whose period widths are not much different (within 2 times). .
本発明の目的は、周期差が少ないような2つのクロック
信号でもスパイクを発生することなく切換えて出力する
クロック切換回路を提供することである。An object of the present invention is to provide a clock switching circuit that can switch and output two clock signals with a small period difference without generating spikes.
本発明のクロック信号切換回路は、第1のクロック信号
の第1の論理レベル期間が第1のクロック信号に比べて
周期の長い第2のクロック信号の第2の論理レベル期間
に包含されたことを検出して検出信号を発生する手段と
、クロック切換信号を検出信号により同期化してクロッ
ク切換同期化信号を発生する手段と、クロック切換同期
化信号により第1のクロック信号または第2のクロック
信号を選択して出力する手段とを有している。In the clock signal switching circuit of the present invention, the first logic level period of the first clock signal is included in the second logic level period of the second clock signal, which has a longer cycle than the first clock signal. means for detecting the clock switching synchronization signal to generate a detection signal; means for synchronizing the clock switching signal with the detection signal to generate a clock switching synchronization signal; and means for selecting and outputting.
〔作 用]
第1のクロック信号のハイレベル(またはローレベル)
期間が第2のクロック信号のハイレベル(マタはローレ
ベル)期間に含まれることを検出してクロック切換同期
化信号が出力されるので、クロック信号が切換わる時に
スパイクが発生しない。[Function] High level (or low level) of the first clock signal
Since the clock switching synchronization signal is output by detecting that the period is included in the high level (the master is low level) period of the second clock signal, no spike occurs when the clock signal is switched.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例のクロック切換回路のブロッ
ク図である。FIG. 1 is a block diagram of a clock switching circuit according to an embodiment of the present invention.
立上りエツジ検出回路1は第1のクロック信号CKIの
立上りエツジを検出してアクティブハイのパルスを出力
する。立下りエツジ検出回路2は第1のクロック信号C
KIの立下りエツジを検出してアクティブハイのパルス
を出力する。ANDゲート3は立上りエツジ検出回路1
の出力と第1のクロック信号CKIの周期幅よりも長い
周期幅の第2のクロック信号CK2を入力とし、信号a
を出力する。ANDゲート4は立下りエツジ検出回路2
の出力と第2のクロック信号CK2を入力し、信号すを
出力する。NORゲート5は第1のクロック信号CKI
とANDゲート4の出力信号すを入力し、信号Cを出力
する。RSフリップフロップ6はANDゲート3の出力
信号aをS入力、NORゲート5の出力信号CをR入力
とし、非反転出力dを出力する。ANDゲート7はAN
Dゲート4の出力信号すとRSフリップフロップ6の非
反転出力dを入力し、信号eを出力する。RSフリップ
フロップ8はANDゲート7の出力信号eをS入力、第
1のクロック信号CK1をR入力とする。RSフリップ
フロップ8の非反転出力fは、第1のクロック信号CK
Iのハイレベル期間が第2のクロック信号CK2のハイ
レベル期間に包含した時の検出信号となる。The rising edge detection circuit 1 detects the rising edge of the first clock signal CKI and outputs an active high pulse. The falling edge detection circuit 2 receives the first clock signal C.
It detects the falling edge of KI and outputs an active high pulse. AND gate 3 is the rising edge detection circuit 1
and a second clock signal CK2 having a cycle width longer than that of the first clock signal CKI.
Output. AND gate 4 is the falling edge detection circuit 2
and the second clock signal CK2, and outputs the signal S. NOR gate 5 receives first clock signal CKI
and the output signal S of the AND gate 4 are input, and a signal C is output. The RS flip-flop 6 uses the output signal a of the AND gate 3 as an S input, the output signal C of the NOR gate 5 as an R input, and outputs a non-inverted output d. AND gate 7 is AN
The output signal S of the D gate 4 is inputted with the non-inverted output d of the RS flip-flop 6, and a signal e is output. The RS flip-flop 8 receives the output signal e of the AND gate 7 as its S input, and receives the first clock signal CK1 as its R input. The non-inverted output f of the RS flip-flop 8 is the first clock signal CK.
This is a detection signal when the high level period of I is included in the high level period of the second clock signal CK2.
ラッチ9は、RSフリップフロップ8の反転出力をラッ
チ信号としてクロック切換信号SELをラッチする。ラ
ッチ10は、RSフリップフロップ8の非反転出力fを
ラッチ信号として、ラッチ9の非反転出力をラッチする
。ラッチ10の非反転出力gがクロック切換同期化信号
となる。第1のクロック信号CKIはデイレイ回路11
に入力され、第2のクロック信号CK2はデイレイ回路
12に入力される。セレクタ13は、第2のラッチ1o
の非反転出力gによりデイレイ回路11の出力信号と、
デイレイ回路12の出力信号を切り換えて、クロック出
力信号CKOとして出力する。The latch 9 latches the clock switching signal SEL using the inverted output of the RS flip-flop 8 as a latch signal. The latch 10 latches the non-inverted output of the latch 9 using the non-inverted output f of the RS flip-flop 8 as a latch signal. The non-inverted output g of latch 10 becomes the clock switching synchronization signal. The first clock signal CKI is supplied to the delay circuit 11
The second clock signal CK2 is input to the delay circuit 12. The selector 13 is the second latch 1o
The output signal of the delay circuit 11 by the non-inverted output g of
The output signal of the delay circuit 12 is switched and outputted as a clock output signal CKO.
第2図は第1図の回路のタイミングチャートである。FIG. 2 is a timing chart of the circuit of FIG.
ANDゲート3の出力a、ANDゲート4の出力す、N
ORゲート5の出力c、RSフリップフロップ6の非反
転出力d、ANDゲート7の出力e%RSフリップフロ
ップ8の非反転出力fは、それぞれ第2図(3) 、
(4) 、 (5) 、 (6) 、 (7) 、 (
8)のようなタイミングとなる。クロック切換信号SE
Lが第2図のように入力された場合、RSフリップフロ
ップ8の非反転出力fにより同期化され、ラッチ10の
非反転出力gがクロック切換同期化信号となる。このク
ロック切換同期化信号がハイレベルの時、クロック出力
信号CKOは、デイレイ回路11の出力、すなわち第1
のクロック信号CK1が出力され、ローレベルの時、デ
イレイ回路12の出力、すなわち第2のクロック信号G
K2が出力される。クロック出力信号CKOには、スパ
イクは発生しない。Output a of AND gate 3, output S of AND gate 4, N
The output c of the OR gate 5, the non-inverting output d of the RS flip-flop 6, and the output e% of the AND gate 7, the non-inverting output f of the RS flip-flop 8, are as shown in FIG. 2 (3), respectively.
(4) , (5) , (6) , (7) , (
The timing will be similar to 8). Clock switching signal SE
When L is inputted as shown in FIG. 2, it is synchronized by the non-inverted output f of the RS flip-flop 8, and the non-inverted output g of the latch 10 becomes the clock switching synchronization signal. When this clock switching synchronization signal is at a high level, the clock output signal CKO is the output of the delay circuit 11, that is, the first
When the clock signal CK1 is output and is at low level, the output of the delay circuit 12, that is, the second clock signal G
K2 is output. No spikes occur in the clock output signal CKO.
本実施例のクロック信号切換回路では、第1のクロック
信号CK1のハイレベル期間が第2のクロック信号CK
2のハイレベル期間に包含された時の、第1のクロック
信号CKIの立下りの時点でクロック信号切換を行なう
ものである。第1のクロック信号CKIの立下りの時点
でRSフリップフロップ8の非反転出力信号fがアクテ
ィブになり、したがってラッチ10の非反転出力信号(
クロック切換同期化信号)gがアクティブになり、セレ
クタ13でデイレイ回路11の出力とデイレイ回路12
の出力とを切り換える。デイレイ回路11とデイレイ回
路12のそれぞれのデイレイ値は、第1のクロック信号
CKIの立下り時点からセレクタ13の切換え動作が完
了するまでの期間だけあればよい。In the clock signal switching circuit of this embodiment, the high level period of the first clock signal CK1 is the period of the second clock signal CK1.
The clock signal is switched at the falling edge of the first clock signal CKI during the second high level period. At the falling edge of the first clock signal CKI, the non-inverted output signal f of the RS flip-flop 8 becomes active, and therefore the non-inverted output signal f of the latch 10 (
The clock switching synchronization signal)g becomes active, and the selector 13 selects the output of the delay circuit 11 and the output of the delay circuit 12.
Switch between the output and The delay values of the delay circuit 11 and the delay circuit 12 only need to be set for a period from the falling point of the first clock signal CKI until the switching operation of the selector 13 is completed.
なお、第1図では、第1のクロック信号CKIのハイレ
ベル期間が第2のクロック信号CK2のハイレベル期間
に包含されたことを検出する回路として、立上りエツジ
検出回路1、立下りエツジ検出回路2、RSフリップフ
ロップ6.8等を用いたが、他の回路構成でも実現する
ことは可能である。In FIG. 1, a rising edge detection circuit 1 and a falling edge detection circuit are used as circuits for detecting that the high level period of the first clock signal CKI is included in the high level period of the second clock signal CK2. 2. Although an RS flip-flop 6.8 or the like is used, other circuit configurations can also be used.
以上説明したように本発明は、第1のクロック信号と周
期が第1のクロック信号に比べて長い第2のクロック信
号とを切換えるクロック信号切換回路において、第1の
クロック信号のハイレベル(またはローレベル)期間が
第2のクロック信号のハイレベル(またはローレベル)
期間に含まれていることを検出し、クロック切換信号を
同期化することにより、周期幅の差が少ないような2つ
のクロック信号でもスパイクを発生させることなく、切
り換えて出力することができる効果がある。As explained above, the present invention provides a clock signal switching circuit that switches between a first clock signal and a second clock signal whose period is longer than that of the first clock signal. Low level) period is the high level (or low level) of the second clock signal
By detecting that it is included in the period and synchronizing the clock switching signal, it is possible to switch and output even two clock signals with a small difference in period width without generating spikes. be.
第1図は本発明の一実施例のクロック信号切換回路のブ
ロック図、第2図は第1図の回路のタイミングチャート
、第3図はクロック信号切換回路の従来例のブロック図
、第4図は、切り換える2つのクロック信号の周期幅の
差が十分大きい(2倍以上)場合の第3図の従来例の動
作タイミングチャート、第5図は切り換える2つのクロ
ック信号の周期幅の差が少ない(2倍以下)場合の第3
図の従来例の動作タイミングチャートである。
1・・・・・・立上りエツジ検出回路、2・・・・・・
立下りエツジ検出回路、3、4.7・・・・−A N
Dゲート、5・・・・・・・・・・−NORゲート、6
.8−・・・・・・・・RSフリップフロップ、9.1
0・・・・・・・・・ラッチ、
11、’12・・・・・・デイレイ回路、13・・・・
・・・・・・・・セレクタ、21.22.23.25−
・・・・・ラッチ、24・・・・・・・・・・・・NO
Rゲート、26−−−−−・・・・・・・セレクタ、2
7−−−−−・・・・・・・スパイク、CKI・・・・
・・第1のクロック信号、CK 2−・・・・・第2の
クロック信号、SEL・・・・・・クロック切換信号、
CKO・・・・・・クロック出力信号。FIG. 1 is a block diagram of a clock signal switching circuit according to an embodiment of the present invention, FIG. 2 is a timing chart of the circuit of FIG. 1, FIG. 3 is a block diagram of a conventional example of a clock signal switching circuit, and FIG. 4 is an operation timing chart of the conventional example shown in FIG. 3 when the difference in the period width of the two clock signals to be switched is sufficiently large (more than double), and FIG. 3rd case (less than 2 times)
3 is an operation timing chart of the conventional example shown in FIG. 1... Rising edge detection circuit, 2...
Falling edge detection circuit, 3, 4.7...-AN
D gate, 5 - NOR gate, 6
.. 8-・・・・・・RS flip-flop, 9.1
0...Latch, 11,'12...Delay circuit, 13...
......Selector, 21.22.23.25-
・・・・・・Latch, 24・・・・・・・・・・・・NO
R gate, 26------...Selector, 2
7---------Spike, CKI...
...First clock signal, CK 2-...Second clock signal, SEL...Clock switching signal,
CKO...Clock output signal.
Claims (1)
て周期が長い第2のクロック信号を切り換えて出力する
クロック信号切換回路であって、 第1のクロック信号の第1の論理レベル期間が第2のク
ロック信号の第1の論理レベル期間に包含されたことを
検出して検出信号を発生する手段と、 クロック切換信号を該検出信号により同期化してクロッ
ク切換同期化信号を発生する手段と、該クロック切換同
期化信号により第1のクロック信号または第2のクロッ
ク信号を選択して出力する手段とを有するクロック信号
切換回路。[Claims] 1. A clock signal switching circuit that switches and outputs a first clock signal and a second clock signal having a longer period than the first clock signal, the circuit comprising: means for generating a detection signal by detecting that the first logic level period is included in the first logic level period of the second clock signal; and clock switching synchronization by synchronizing the clock switching signal with the detection signal. 1. A clock signal switching circuit comprising means for generating a synchronization signal, and means for selecting and outputting a first clock signal or a second clock signal based on the clock switching synchronization signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2084028A JPH03282805A (en) | 1990-03-30 | 1990-03-30 | Clock signal switching circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2084028A JPH03282805A (en) | 1990-03-30 | 1990-03-30 | Clock signal switching circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03282805A true JPH03282805A (en) | 1991-12-13 |
Family
ID=13819092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2084028A Pending JPH03282805A (en) | 1990-03-30 | 1990-03-30 | Clock signal switching circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03282805A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04288607A (en) * | 1991-03-18 | 1992-10-13 | Sharp Corp | Clock signal switching circuit |
-
1990
- 1990-03-30 JP JP2084028A patent/JPH03282805A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04288607A (en) * | 1991-03-18 | 1992-10-13 | Sharp Corp | Clock signal switching circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5036230A (en) | CMOS clock-phase synthesizer | |
JPH03282805A (en) | Clock signal switching circuit | |
JPH0590970A (en) | Cmi encoder circuit | |
KR100223026B1 (en) | Synchronizing circuit | |
JP2003179583A (en) | Signal synchronous circuit | |
JP3562321B2 (en) | Clock signal switching device | |
JP2778527B2 (en) | Counting circuit | |
JP2586712B2 (en) | Asynchronous signal selection circuit | |
US5053651A (en) | Deglitched digital mixer circuit | |
JP2792759B2 (en) | Synchronous clock generation circuit | |
KR940000643Y1 (en) | Synchronous pulse generating circuit using flip flop circuit | |
JPH01290013A (en) | Asynchronous clock selecting/synchronizing circuit | |
KR100278271B1 (en) | A clock frequency divider | |
JP2665257B2 (en) | Clock transfer circuit | |
JP3185997B2 (en) | Clock synchronous signal selection circuit | |
JP2543108B2 (en) | Synchronous pulse generator | |
KR940003771Y1 (en) | Glitch Prevention Synchronization Circuit | |
JPH10163821A (en) | Initialization circuit | |
JPH04207216A (en) | Non-overlapping two-phase clock generating circuit | |
JPH09130235A (en) | Digital pll circuit | |
JPH06310999A (en) | Two phase pulse generating circuit | |
JPH02237240A (en) | Bit phase synchronous circuit | |
JPH04196919A (en) | Phase comparator | |
JPH05257566A (en) | Digital signal synchronizing circuit | |
JPH04246908A (en) | Flip flop circuit |