JPS63271514A - Switching circuit for clock signal - Google Patents

Switching circuit for clock signal

Info

Publication number
JPS63271514A
JPS63271514A JP62105367A JP10536787A JPS63271514A JP S63271514 A JPS63271514 A JP S63271514A JP 62105367 A JP62105367 A JP 62105367A JP 10536787 A JP10536787 A JP 10536787A JP S63271514 A JPS63271514 A JP S63271514A
Authority
JP
Japan
Prior art keywords
clock
signal
switching
pulse width
clock signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62105367A
Other languages
Japanese (ja)
Inventor
Shunsaku Miyazawa
俊作 宮澤
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP62105367A priority Critical patent/JPS63271514A/en
Publication of JPS63271514A publication Critical patent/JPS63271514A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To secure pulse width and to prevent a system from malfunctioning at the time of the switching of a clock signal by providing a delay circuit which delays the output signal from a switching circuit and inputs it to a gate means. CONSTITUTION:The delay circuit such as a flip-flop controls the switching timing of the clock. Namely, the current output levels of clock signals 12 an 13 are equalized to the output levels at the time of switching and after the necessary pulse width of the level is secured, the switching is performed. Consequently, the pulse width of the level is secured and further the output width of the other level is secured as long as the pulse width of the clock signals 12 and 13. Then when plural clock signal sources suffice the rule of the pulse width of a CPU, the rule of minimum pulse width can be followed even at the time of the clock switching.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明は、中央処理装置(CP U)などに使用される
クロック信号の切替回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a clock signal switching circuit used in a central processing unit (CPU) or the like.

〔従来の技術〕[Conventional technology]

第5図は、従来のクロック切り替え回路の例である%5
1.52はそれぞれ、クロック信号源であり、55のク
ロック切替信号により、53の選択ゲートで一方のクロ
ック信号が選択される。
Figure 5 shows an example of a conventional clock switching circuit.
1.52 are clock signal sources, and one clock signal is selected by a selection gate 53 in response to a clock switching signal 55.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

この回路では、51のクロック信号が選択されていて、
ロウレベルであるときに55の切替信号によって52の
クロック信号に切替り、その時点での52のクロック信
号が、ハイレベル期間であるという可能性が、存在する
、このため、ハイレベルパルス幅が、短くなる可能性が
存在する。逆に、ロウレベルパルス幅も、切替タイミン
グによって、短くなる。CPUに入力されるクロックに
は、ハイレベル、ロウレベルのパルス幅に規定があるの
が普通であり、このクロック切替回路では、最小パルス
幅の規定を守れず、CPUの誤動作を生じさせる。
In this circuit, 51 clock signals are selected,
There is a possibility that the switching signal 55 switches to the clock signal 52 when it is at low level, and the clock signal 52 at that point is in the high level period. Therefore, the high level pulse width is There is a possibility that it will be shorter. Conversely, the low level pulse width also becomes shorter depending on the switching timing. Normally, the clock input to the CPU has a specified pulse width for high level and low level, and this clock switching circuit does not comply with the minimum pulse width specification, causing malfunction of the CPU.

本発明の目的は、このような、従来のクロック信号の切
替回路の欠点を除去し、パルス幅を保障する装置を提供
することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a device that eliminates the drawbacks of conventional clock signal switching circuits and ensures pulse width.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、現在のクロック信号による出力レベルと、切
替った時の出力レベルが、同じになるようにし、かつそ
のレベルのパルス幅を必要とするだけ確保してから切替
ることにする。これによって、このレベルのパルス幅を
確保し、さらに他方のレベルのパルス幅も、クロック信
号のパルス幅だけ確保される。そして、複数のクロック
信号源がそれぞれ、CPUのパルス幅の規定を満足して
いれば、クロック切替においても、最小パルス幅の規定
を守ることができることを特徴とする。
In the present invention, the current output level of the clock signal is made to be the same as the output level at the time of switching, and the required pulse width of the level is secured before switching. As a result, the pulse width of this level is secured, and the pulse width of the other level is also secured by the pulse width of the clock signal. The present invention is characterized in that if each of the plurality of clock signal sources satisfies the CPU pulse width regulations, the minimum pulse width regulations can be observed even in clock switching.

〔作用〕[Effect]

本発明においては、クリップフロップ等の遅延回路によ
って、クロックの切替えのタイミングが制御される。
In the present invention, the timing of clock switching is controlled by a delay circuit such as a clip-flop.

〔実施例〕〔Example〕

第1図は、本特許の実施例である。7.8は、独立した
、発振器であり、12.13のクロック信号を出力する
。lOは、本特許のクロック信号切替回路と、12.1
3の信号の分周回路をもち、12.13の信号及び12
.13の信号の分周した信号を切替えて17に出力する
。11は、CPUを含む情報機器であり、17のクロッ
ク信号は、CPUに接続されている。
FIG. 1 is an embodiment of this patent. 7.8 is an independent oscillator which outputs a clock signal of 12.13. lO is the clock signal switching circuit of this patent and 12.1
It has a frequency dividing circuit for 3 signals, 12.13 signals and 12
.. The frequency-divided signal of signal 13 is switched and outputted to 17. 11 is an information device including a CPU, and a clock signal 17 is connected to the CPU.

第2図は、第1図の10の回路ブロックを示している。FIG. 2 shows the ten circuit blocks of FIG.

12.13の源JA振ジクロツク信号つ、それぞれを、
分周する分周器18.19からの出力クロック信号27
.28の計4木のクロック信号を、14.15のクロッ
ク切替信号によって切・替える回路となっている。21
.22.23.24は、各クロック信号をロウレベルに
固定するケートであり、すべてのゲートをロウレベルに
固定すると、17の出力は、ロウレベルとなる。20は
、前記各ゲートを制御する制御i1信号を作る部分であ
り、14.15、のクロック切替信号16の外部同期信
号(メモリリフレッシュ信号と、リセット信号のオア信
号)、12.13.27.28、のクロック信号、17
の出力クロック信号の反転信号である29のクロック信
号が入力され。
12.13 source JA clock clock signals, respectively:
Output clock signal 27 from frequency divider 18.19
.. The circuit switches a total of 28 clock signals using 14.15 clock switching signals. 21
.. Gates 22, 23, and 24 fix each clock signal to low level, and when all gates are fixed to low level, the output of 17 becomes low level. 20 is a part that generates the control i1 signal that controls each gate, 14.15, an external synchronization signal (OR signal of the memory refresh signal and reset signal) of the clock switching signal 16, 12.13.27. Clock signal of 28, 17
A clock signal of 29, which is an inverted signal of the output clock signal of , is input.

30.31.32.33のゲート制御信号を作る第3図
は、MS2図の20の内部であり、第4図のタイミング
チャートとともに、実際の動作を説明する。
FIG. 3, which generates the gate control signals of 30, 31, 32, and 33, shows the inside of 20 in the MS2 diagram, and the actual operation will be explained together with the timing chart of FIG.

第3図の38は、14.15のクロック切替信号を、外
部同期信号16で取り込む回路である。
38 in FIG. 3 is a circuit that takes in the clock switching signal of 14.15 using the external synchronization signal 16.

14がロウレベルからハイレベルに変化し、13のクロ
ック信号が選択されていたものが、12のクロック信号
に切替えられるとして説明する。第4ET1において、
14′がロウレベルからハイレベルに変化する、この信
号が、第3図のデコーダ39に入力され、15’ とと
もにデコードされ、29のクロック信号により、T2に
おいて、52のみロウレベルとなり、53〜55がハイ
レベルとなる、このことによって、次に選択されるクロ
ックは、12のクロック信号であることを示す、T2以
前は、53のみロウレベルである、これは13のクロッ
ク信号が出力されていたことを示していた。T2は、2
9のクロックに同期しているため、出力17がロウレベ
ルになった時点で、53をハイレベルにすることができ
、このタイミングで、13のクロック信号をロウレベル
固定する、つまり32のゲート制御信号をロウレベルと
する。他のゲート制御信号30,31.33もロウで、
17の出力クロックは、ロウレベルを維持する。
14 changes from low level to high level, and the selected clock signal 13 is switched to the clock signal 12. In the 4th ET1,
This signal, in which signal 14' changes from low level to high level, is input to the decoder 39 in FIG. 3, where it is decoded together with signal 15'. At T2, only 52 becomes low level, and 53 to 55 go high, due to the clock signal of 29. This indicates that the next clock to be selected is the clock signal 12. Before T2, only 53 was at low level, which indicates that the clock signal 13 was output. was. T2 is 2
Since it is synchronized with the clock of 9, it is possible to set 53 to high level when the output 17 becomes low level, and at this timing, the clock signal of 13 is fixed to low level, that is, the gate control signal of 32 is set to high level. Low level. Other gate control signals 30, 31, and 33 are also low,
The output clock No. 17 maintains a low level.

T3において、52のロウレベルが56に伝わるため、
30のゲート制御信号をハイレベルとし、12のクロッ
ク信号のロウレベル固定を解除する。この解除タイミン
グは、フリップフロップ40において、12のクロック
信号に同期をとって出力されるため、T3タイミングで
の12のクロックレベル固定解除時における、12のク
ロック信号レベルがロウレベルであることを保証でき、
12のクロック信号がへイレベルとなるT4において1
7の出力クロックが再びハイレベルとなることになるT
2〜T4までが、ロウレベルパルス幅の最小値を保証す
る期間であり、バイパルス幅は、必ず、源のクロック信
号で定まるため、ハイ、ロウレベルのパルス幅の最小値
を保証した、りロック切替が可能となる。
At T3, the low level of 52 is transmitted to 56, so
The gate control signal No. 30 is set to high level, and the fixation of the clock signal No. 12 to low level is released. Since this release timing is output in synchronization with the 12 clock signals in the flip-flop 40, it is possible to guarantee that the 12 clock signal levels are low level when the 12 clock levels are released from fixation at the T3 timing. ,
1 at T4 when the clock signal of 12 becomes high level.
7's output clock becomes high level again.
The period from 2 to T4 is the period in which the minimum value of the low level pulse width is guaranteed, and since the bipulse width is always determined by the source clock signal, relock switching that guarantees the minimum value of the high and low level pulse widths is possible. It becomes possible.

又、第3図16の外部同期信号として、ダイナミックR
AMを記憶装置にもつシステムにおいては、メモリリフ
レッシュ信号を使用してもよい。
In addition, as the external synchronization signal in FIG.
In systems with AM as a storage device, a memory refresh signal may be used.

メモリリフレッシュ期間は、ダイナミックRAMのリフ
レッシュサイクルであり、他の動作をおこなわないため
、クロック周期が変化しても、通常のシステムにおいて
は、問題がないと考えられる、また、システムのリセッ
ト信号も外部同期信号として、使用できる。リセット信
号は、システムを初期化するものであるため、クロック
周期が変化しても通常問題ない。
The memory refresh period is a dynamic RAM refresh cycle and no other operations are performed, so even if the clock cycle changes, there is no problem in a normal system.In addition, the system reset signal is also external. Can be used as a synchronization signal. Since the reset signal initializes the system, there is usually no problem even if the clock cycle changes.

〔発明の効果〕′ 本発明においては、 システム動作中、クロック周期の変化が許されない、動
作イクルが存在する。この動作サイクルでない、メモリ
リフレッシュサイクルまたはリセット時に、クロック信
号を切替えられるように、メモリリフレッシュ信号と、
リセット信号のオアを1、クロック切替にクロック切替
信号をとりこむときの外部同期信号とすることにより、
クロック信号の切替時における、システムの誤動作を防
ぐことができる。
[Effects of the Invention]' In the present invention, during system operation, there are operating cycles in which changes in the clock cycle are not allowed. A memory refresh signal, so that the clock signal can be switched during a memory refresh cycle or reset, which is not this operation cycle.
By setting the OR of the reset signal to 1 and using the external synchronization signal when taking in the clock switching signal for clock switching,
System malfunctions can be prevented when switching clock signals.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本特許の回路を含んだシステム構成図、18
2図、第3図は、本特許の回路説明図、第4図は、本発
明の詳細な説明するタイミングチャートである。第5図
は、従来例を示す図。 1.2・・・・・・クロック信号源 3・・・・・・アンド、オアゲートによる選択ゲート4
・・・・・・インバータ 5・・・・・・クロック切替信号 6・・・・・・クロック切替回路からの出カフ、8・・
・・・・クロック信号発振器9・・・・・・クロック切
替スイッチ 10・・・・・・クロック切替回路 11・・・・・・CPUを含む情報機器12.13・旧
・・クロッ信号 14.15・・・・・・クロック切替信号16・・・・
・・外部同期信号 17・・・・・・クロック切替回路の出力クロック18
・・・・・・12のクロック信号の分周器以上 出願人 セイコーエプソン株式会社 代理人弁理士 最 上 務 他1名 第3日
Figure 1 is a system configuration diagram including the circuit of this patent, 18
2 and 3 are circuit explanatory diagrams of the present patent, and FIG. 4 is a timing chart explaining the present invention in detail. FIG. 5 is a diagram showing a conventional example. 1.2...Clock signal source 3...Selection gate 4 using AND and OR gates
...Inverter 5...Clock switching signal 6...Output from clock switching circuit, 8...
... Clock signal oscillator 9 ... Clock changeover switch 10 ... Clock changeover circuit 11 ... Information equipment including CPU 12.13 Old ... Clock signal 14. 15... Clock switching signal 16...
...External synchronization signal 17...Output clock 18 of the clock switching circuit
・・・・・・12 clock signal frequency dividers and above Applicant: Seiko Epson Co., Ltd. Representative Patent Attorney Tsutomu Mogami and 1 other person 3rd day

Claims (1)

【特許請求の範囲】 複数の個のクロック信号から1つを選択して出力する回
路において、 前記複数個のクロック信号のうちの1つを選択するため
の切り替え回路と、 該切り替え回路よりの信号をレベル固定するためのゲー
ト手段と、 前記切り替え回路よりの出力信号を遅延させて該ゲート
手段に入力する遅延回路とから構成されることを特徴と
するクロック信号の切り替え回路。
[Claims:] A circuit that selects and outputs one of a plurality of clock signals, comprising: a switching circuit for selecting one of the plurality of clock signals; and a signal from the switching circuit. 1. A clock signal switching circuit comprising: gate means for fixing the level of the clock signal; and a delay circuit for delaying an output signal from the switching circuit and inputting the delayed signal to the gate means.
JP62105367A 1987-04-28 1987-04-28 Switching circuit for clock signal Pending JPS63271514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62105367A JPS63271514A (en) 1987-04-28 1987-04-28 Switching circuit for clock signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62105367A JPS63271514A (en) 1987-04-28 1987-04-28 Switching circuit for clock signal

Publications (1)

Publication Number Publication Date
JPS63271514A true JPS63271514A (en) 1988-11-09

Family

ID=14405745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62105367A Pending JPS63271514A (en) 1987-04-28 1987-04-28 Switching circuit for clock signal

Country Status (1)

Country Link
JP (1) JPS63271514A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0320809A (en) * 1989-06-16 1991-01-29 Matsushita Electric Ind Co Ltd Clock switching circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0320809A (en) * 1989-06-16 1991-01-29 Matsushita Electric Ind Co Ltd Clock switching circuit

Similar Documents

Publication Publication Date Title
US4970405A (en) Clock selection circuit for selecting one of a plurality of clock pulse signals
US4855615A (en) Switching circuit avoiding glitches at the instant of switch-over between two clock signals
KR100540487B1 (en) Data output control circuit
JPH0433056B2 (en)
US5233638A (en) Timer input control circuit and counter control circuit
JPS63139415A (en) Clock signal multiplexer
JPS63271514A (en) Switching circuit for clock signal
JPS63271513A (en) Switching circuit for clock signal
US5944835A (en) Method and programmable device for generating variable width pulses
JPH0616277B2 (en) Event distribution / combining device
JP2710682B2 (en) Clock switching circuit
JPH02166503A (en) Information processor
JPH0450657Y2 (en)
JPH0727429B2 (en) Microcomputer oscillation clock switching circuit
JP2591201B2 (en) Signal switching device
JPH04305719A (en) Clock signal switching circuit
JPH0467215A (en) System clock output circuit
JPH0677228B2 (en) Clock signal generation circuit
JPH01317020A (en) Clock frequency switching system
JPS63105513A (en) Method and apparatus for changing synchronizing clock
JPH0385012A (en) Pulse generating circuit
JPH11341108A (en) Switching method and device of active system and standby system
JPH0690657B2 (en) Clock switching circuit
JPH04230136A (en) Apparatus for suppressing phase jitters
JPH0210418A (en) Synchronizing logic circuit