JPH0467215A - System clock output circuit - Google Patents

System clock output circuit

Info

Publication number
JPH0467215A
JPH0467215A JP2179832A JP17983290A JPH0467215A JP H0467215 A JPH0467215 A JP H0467215A JP 2179832 A JP2179832 A JP 2179832A JP 17983290 A JP17983290 A JP 17983290A JP H0467215 A JPH0467215 A JP H0467215A
Authority
JP
Japan
Prior art keywords
system clock
clock
circuit
signal
supplied
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
JP2179832A
Other languages
Japanese (ja)
Inventor
Yukio Oshiba
大芝 幸雄
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2179832A priority Critical patent/JPH0467215A/en
Publication of JPH0467215A publication Critical patent/JPH0467215A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the malfunctions of a CPU part, etc., by outputting a system clock having the prescribed pulse width and the continuity of clock phase assured even at switching of the system clock. CONSTITUTION:When a clock selection signal instructing the selective switch of clock signals is inputted to a clock signal selection circuit 11, the supply of the output of a system clock generating circuit 13 is discontinued to a circuit which receives the supply of the system clock synchronously with the input timing of the clock selection signal. Thereafter the output (system clock) of the circuit 13 is supplied to said system clock supplied circuit synchronously with a prescribed system clock received from the circuit 13. Thus the pulse width of the system clock supplied to the system clock supplied circuit satisfies the prescribed value even at switching of the system clock. Furthermore the continuity of the clock phase is assured.

Description

【発明の詳細な説明】 ぐ産業上の利用分野〉 本発明は、1チフプマイクロコンピユータ等に於いて用
いられ・るシステムクロック被供給回路に関するもので
あシ、特に、周波数の異なる複数種類のシステムクロッ
クの切夛換え出力が可能なシヌテム被供給回路の改良に
関するものである。
[Detailed description of the invention] Industrial application field> The present invention relates to a system clock supplied circuit used in a single-chip microcomputer, etc. The present invention relates to an improvement in a circuit supplied with a system clock that is capable of outputting a system clock in a switched manner.

〈従来の技術〉 第4図に従来のシステムクロック被供給回路を示す。<Conventional technology> FIG. 4 shows a conventional system clock supplied circuit.

図に於いて、1は、り屹ツク選択信号Sに基づいて、周
波数の異なる2つのクロック信号CKI及びCK2の何
れか一方を選択して出力するクロック信号選択回路であ
シ、2は、クロ1り信号選択回路1よ)出力される選択
クロック信号CKに基づいてシステムクロフクφ、、φ
冨を発生するシステムクロック発生回路である。システ
ムクロ・ツク発生回路2の出力であるシステムクロック
φ寡、φ2は例えば、1チツプマイクロコンビ二一タに
於けるCPU部に供給される。尚、システムクローJり
発生回路2は、分周回路と論理ゲートにより構成される
。該従来のシステムクロック被供給回路に於いては、ク
ロック選択信号Sにより、周波数の異なる2種類のシス
テムクロックφ□。
In the figure, 1 is a clock signal selection circuit that selects and outputs one of two clock signals CKI and CK2 having different frequencies based on a clock selection signal S; Based on the selected clock signal CK outputted by the signal selection circuit 1), the system clocks φ, φ
This is a system clock generation circuit that generates a clock. The system clock φ2, which is the output of the system clock generation circuit 2, is supplied to, for example, a CPU section in a one-chip microcomputer. It should be noted that the system crawl generation circuit 2 is composed of a frequency dividing circuit and a logic gate. In the conventional system clock supplied circuit, two types of system clocks φ□ having different frequencies are generated by the clock selection signal S.

φ2の切り替え出力が可能である。Switching output of φ2 is possible.

〈発明が解決しようとする課題〉 しかしながら、上記従来の回路には以下に示す問題点が
あった。
<Problems to be Solved by the Invention> However, the above conventional circuit has the following problems.

すなわち、上記従来回路では、クロック信号CKIが選
択されていて、Lレベルにあるとき、選択信号Sにより
クロ・ツク信号CK2に切り替わり1その時点でクロッ
ク信号CK2がHレベルであっtとすると、システムク
ロックφl、φ2のHレベルのパルス幅が短くなる可能
性がある。第5図のタイミングチャートに、その様子を
示す。
That is, in the conventional circuit described above, when the clock signal CKI is selected and is at the L level, the selection signal S switches it to the clock signal CK2, and if the clock signal CK2 is at the H level at that time, the system There is a possibility that the H-level pulse widths of the clocks φl and φ2 become shorter. The timing chart in FIG. 5 shows this situation.

また、逆に、Lレベルのパルス幅も、クロ7り信号の切
り替えタイミングにより短くなる可能性がある。
Moreover, conversely, the pulse width of the L level may also be shortened depending on the switching timing of the black signal.

このような、パルス幅が規定の幅を満足しないシステム
クロックが1チツプマイクロコンビユ〜りのCPU部に
供給されると、CPU部の誤動作を生じさせる可能性が
ある。
If such a system clock whose pulse width does not satisfy the specified width is supplied to the CPU section of a one-chip microcontroller, there is a possibility that the CPU section will malfunction.

本発明は、上記従来回路の問題点に鑑みてなされたもの
であり、システムクロック切シ替え時に於いても、その
出力であるシステムクロックのパルス幅が規定の幅を満
足し、且つ、位相の継続性も保障されるシステムクロッ
ク被供給回路を提供することを目的とするものである。
The present invention has been made in view of the above-mentioned problems of the conventional circuit, and even when the system clock is switched, the pulse width of the output system clock satisfies the specified width and the phase difference is maintained. It is an object of the present invention to provide a system clock supplied circuit whose continuity is also guaranteed.

く課題を解決するための手段〉 本発明のシステムクロック被供給回路は、選択信号に基
づき、複数の入カクロフク信号の中から1のクロック信
号を選択して出力するクロック信号選択回路と、該クロ
ック信号選択回路よフ出力される選択クロック信号に基
づいて、複数のシステムクロックヲ発生するシステムク
ロック発生回路とを備えて成るシステムクロック被供給
回路に於いて、上記選択信号の上記クロック信号選択回
路への入力タイミングに同期させて上記システムクロッ
ク発生回路出力のシステムクロ7り被供給回路への供給
を停止させ、該停止後に、上記システムクロ・り発生回
路より出力される所定のシステムクロックに同期させて
、上記システムクロック発生回路出力の上記システムク
ロック被供給回路への供給を開始させる手段を設けたこ
とを特徴とするものである。
Means for Solving the Problems> A system clock supplied circuit of the present invention includes a clock signal selection circuit that selects and outputs one clock signal from among a plurality of input clock signals based on a selection signal; In a system clock supplied circuit comprising a system clock generation circuit that generates a plurality of system clocks based on a selection clock signal outputted from the signal selection circuit, the selection signal is sent to the clock signal selection circuit. stopping the supply of the output of the system clock generating circuit to the system clock supplied circuit in synchronization with the input timing of the system clock generating circuit; and after the stop, synchronizing with a predetermined system clock output from the system clock generating circuit The present invention is characterized in that means is provided for starting supply of the system clock generation circuit output to the system clock supplied circuit.

〈作 用〉 クロック信号の選択切り替えを指示するクロック選択信
号がクロック信号選択回路に大豆されると、その入力タ
イミングに同期して、システムクロック発生回路出力の
システムクロック被供給回路への供給が停止される。そ
して、その後に、システムクロック発生回路より出力さ
れる所定のシステムクロックに同期して、システムクロ
ック発生回路出力(システムクロック)のシステムクロ
ック被供給回路への供給が開始される。以上により、シ
ステムクロックの切シ替え時に於いても、システムクロ
ック被供給回路に供給されるシステムクロ・・りのパル
ス幅は規定の幅を満足するものとなると共に、その位相
も継続性も保障される。
<Function> When the clock selection signal that instructs the clock signal selection switch is applied to the clock signal selection circuit, the supply of the system clock generation circuit output to the system clock supplied circuit is stopped in synchronization with the input timing. be done. Then, in synchronization with a predetermined system clock output from the system clock generation circuit, supply of the system clock generation circuit output (system clock) to the system clock supplied circuit is started. As a result, even when the system clock is switched, the pulse width of the system clock supplied to the system clock supplied circuit satisfies the specified width, and its phase and continuity are guaranteed. be done.

ぐ実施例〉 以下、実施例に基づいて本発明の詳細な説明する。Examples Hereinafter, the present invention will be described in detail based on examples.

第1図は本発明の一実施例の構成を示すブローク図であ
る。また、第2図は、N=2の場合について、第1図に
示される各信号の波形を示したタイミングチャートであ
る〇 第1図に於いて、11はクロック選択信号Sを出力する
クロ・ツク選択レジスタであり、クロック切り替え命令
CIにより制御され、システムクロックφ2′に同期し
て、その内容が変化する。12は、クロ7り選択信号S
に基づいて、周波数の異なる複数のクロ1り信号CKI
、・・−、CKNO中から1のクロック信号を選択して
出力するマルチプレクサであシ、18は、マルチプレク
サ12より出力される選択クロック信号CKに基づいて
システムクロックφl 、φ2′を発生するシステムク
ロック発生回路である。上記システムクロックφ1’ 
+φ2′は、システムクロック供給停止信号Hにより制
御されるオアゲート14及び15によ−て、CPU部へ
の供給、非供給が制御される。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Also, FIG. 2 is a timing chart showing the waveforms of each signal shown in FIG. 1 for the case of N=2. In FIG. The clock selection register is controlled by the clock switching instruction CI, and its contents change in synchronization with the system clock φ2'. 12 is the black 7 selection signal S
A plurality of black signals CKI with different frequencies are generated based on the
,...-, a multiplexer that selects and outputs one clock signal from CKNO, and 18 is a system clock that generates system clocks φl and φ2' based on the selected clock signal CK output from the multiplexer 12. This is a generation circuit. Above system clock φ1'
Supply or non-supply of +φ2' to the CPU section is controlled by OR gates 14 and 15 controlled by the system clock supply stop signal H.

すなわち、システムクロック供給停止信号Hがw Hw
レベル時ニは、システムクロックφ1φ2′の供給が停
止され、φX、φ2共にHレベルに固定される。一方、
システムクロワク供給停止信号Hが″′L″レベル時に
は、システムクロックφl 、φ2′がそのままφ1.
φ2としてCPU部に供給される。
That is, the system clock supply stop signal H is w Hw
At level D, the supply of system clocks φ1φ2' is stopped, and both φX and φ2 are fixed at H level. on the other hand,
When the system clock supply stop signal H is at the "L" level, the system clocks φ1, φ2' remain unchanged.
It is supplied to the CPU section as φ2.

本実施例に於いては、クロック切シ替え命令CIにより
クロツク選択レジスタ11の内容が変化し、クロック選
択信号Sがマルチプレクサ12に入力されると同時に、
上記システムクロック供給停止信号Hをq Hwレベル
にして、CPU部へのシステムクロック供給を一時的に
停止し、その後、新たに切シ替えられたクロック信号に
よるシステムクロックφ2′により、信号Hを″Lルベ
ルに戻し、供給停止前との間で位相の継続性が維持され
るφ2′のタイミングで、再びCPU部へのシステムク
ロック供給を開始させる。
In this embodiment, the contents of the clock selection register 11 are changed by the clock switching instruction CI, and at the same time the clock selection signal S is input to the multiplexer 12,
The system clock supply stop signal H is set to the qHw level to temporarily stop the system clock supply to the CPU section, and then the system clock φ2' based on the newly switched clock signal causes the signal H to be set to q Hw level. The system clock is returned to the L level and the system clock supply to the CPU section is started again at the timing φ2' at which phase continuity is maintained between before and before the supply was stopped.

上記の動作を実現するために、クロブク選択レジスタ1
1の変化を捕えるD型フリツプフロブプ16を設け(第
3図にその回路構成図を示す)、このD型フリンプフロ
ノプ16の出力にてR5S型フリップフロ・1プ17を
セットする。このR5S型フリヴプフロフプ17の出力
H′は、オアゲート19により、1チツプマイクロコン
ピユータのスタンバイ制御用のR5S型フリフプフロフ
プ18の出力との論理和かとられ、システムクロック供
給停止信号Hを生成する。
In order to realize the above operation, Kurobuku selection register 1
A D-type flip-flop 16 is provided to catch a change in 1 (a circuit diagram thereof is shown in FIG. 3), and an R5S-type flip-flop 17 is set by the output of this D-type flip-flop 16. The output H' of the R5S type flip-flop 17 is ORed with the output of the R5S type flip-flop 18 for standby control of the one-chip microcomputer by an OR gate 19 to generate a system clock supply stop signal H.

上記R8S型フリップフロ・フプ17はシステムクロ1
りφ2′によりリセットされる。これによりステムクロ
ック供給停止信号Hu @L”レベルに戻る。
The above R8S type flip-flop 17 is system black 1
It is reset by φ2'. As a result, the stem clock supply stop signal Hu returns to the "L" level.

第2図のタイミングチャートは、クロック信号CKIか
らCK2に変化する場合を示している。
The timing chart in FIG. 2 shows the case where the clock signal changes from CKI to CK2.

クロック選択信号Sが変化した際、マルチプレクサの出
力CK及びシステムクロックφ2′に幅の狭いパルヌが
出現するが、この時、システムクロック供給停止信号H
が@H”レベルになっているため、CPU部には供給さ
れない。新たに切シ替えられたクロック信号によるシス
テムクロックφ2により、信号Hは@L”レベルに戻シ
、システムクロックの供給が再開される。
When the clock selection signal S changes, a narrow parnu appears in the output CK of the multiplexer and the system clock φ2', but at this time, the system clock supply stop signal H
Since the signal is at @H" level, it is not supplied to the CPU section. The system clock φ2 based on the newly switched clock signal returns the signal H to @L" level, and the system clock supply resumes. be done.

システムクロ1り供給停止時は、スタンバイモードと同
じ位相でシステムクロックを止めるためCPU部の動作
に悪影響は与えない。
When the supply of system clock 1 is stopped, the system clock is stopped at the same phase as in standby mode, so there is no adverse effect on the operation of the CPU section.

〈発明の効果〉 以上詳細に説明したように、本発明のシステムクロック
被供給回路によれば、切シ替え時に於いても、規定のパ
ルス幅を有し、且つ位相の継続性も保障されたシステム
クロックが出力されるため、CPU部等の誤動作が防止
されるものである。
<Effects of the Invention> As explained in detail above, the system clock supplied circuit of the present invention has a specified pulse width and ensures phase continuity even during switching. Since the system clock is output, malfunctions of the CPU section etc. are prevented.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は第1図に示される各信号の波形を示すタイミング
チャート、第8図は第1図に示されるD型フリフプフロ
ツプの回路構成図、第4図は従来のシステムクロック被
供給回路の構成図、第5図は第4■の従来回路が有する
問題点の説明に供するタイミングチャートである。 符号の説明 11:クロ1り選択レジスタ、12:マルチプレクサ、
18ニジステムクロック発生回路、14.15.19ニ
オアゲート、16:D型フリフプフロノプ、17.18
 :R5S型フリ1プフロフプ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a timing chart showing the waveforms of each signal shown in FIG. 1, and FIG. 8 is a D-type flip-flop shown in FIG. FIG. 4 is a diagram of the circuit configuration of a conventional system clock supplied circuit, and FIG. 5 is a timing chart illustrating the problem of the conventional circuit (4). Explanation of symbols 11: Black 1 selection register, 12: Multiplexer,
18 System clock generation circuit, 14.15.19 Nior gate, 16: D-type flip-flop, 17.18
:R5S type Furi 1 Pf Flop.

Claims (1)

【特許請求の範囲】 1、選択信号に基づき、複数の入力クロック信号の中か
ら1のクロック信号を選択して出力するクロック信号選
択回路と、該クロック信号選択回路より出力される選択
クロック信号に基づいて、複数のシステムクロックを発
生するシステムクロック発生回路とを備えて成るシステ
ムクロック出力回路に於いて、 上記選択信号の上記クロック信号選択回路への入力タイ
ミングに同期させて上記システムクロック発生回路出力
のシステムクロック被供給回路への供給を停止させ、該
停止後に、上記システムクロック発生回路より出力され
る所定のシステムクロックに同期させて、上記システム
クロック発生回路出力の上記システムクロック被供給回
路への供給を開始させる手段を設けたことを特徴とする
システムクロック出力回路。
[Claims] 1. A clock signal selection circuit that selects and outputs one clock signal from a plurality of input clock signals based on a selection signal, and a selected clock signal output from the clock signal selection circuit. In a system clock output circuit comprising a system clock generation circuit that generates a plurality of system clocks, the system clock generation circuit outputs the system clock generation circuit in synchronization with the input timing of the selection signal to the clock signal selection circuit. The system clock is stopped from being supplied to the system clock supplied circuit, and after the stop, the output of the system clock generating circuit is synchronized with a predetermined system clock output from the system clock generating circuit to the system clock supplied circuit. A system clock output circuit characterized in that it is provided with means for starting supply.
JP2179832A 1990-07-06 1990-07-06 System clock output circuit Pending JPH0467215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2179832A JPH0467215A (en) 1990-07-06 1990-07-06 System clock output circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2179832A JPH0467215A (en) 1990-07-06 1990-07-06 System clock output circuit

Publications (1)

Publication Number Publication Date
JPH0467215A true JPH0467215A (en) 1992-03-03

Family

ID=16072678

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2179832A Pending JPH0467215A (en) 1990-07-06 1990-07-06 System clock output circuit

Country Status (1)

Country Link
JP (1) JPH0467215A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011519252A (en) * 2008-04-29 2011-06-30 クゥアルコム・インコーポレイテッド System and method for controlling power consumption in a digital phase locked loop (DPLL)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011519252A (en) * 2008-04-29 2011-06-30 クゥアルコム・インコーポレイテッド System and method for controlling power consumption in a digital phase locked loop (DPLL)

Similar Documents

Publication Publication Date Title
US5579353A (en) Dynamic clock mode switch
US4641044A (en) Clock generator with reset and initialization circuitry
JPH075949A (en) Method and device for duplex clock switching
JPS6388926A (en) Clock device
JPH0467215A (en) System clock output circuit
JPH08286780A (en) Clock circuit, processor using the circuit and processor operating method
JPS63232615A (en) Clock switching circuit
JPH05315898A (en) Trigger synchronization circuit
JP2708151B2 (en) Internal timing digital synchronization interface circuit
JPS5831675B2 (en) Memory control method
JP2000163155A (en) Data processing circuit
JPH0731567B2 (en) Clock control circuit
JPH04246908A (en) Flip flop circuit
JPH01116815A (en) Clock switching circuit
JPS6348203B2 (en)
JPH01290013A (en) Asynchronous clock selecting/synchronizing circuit
JPH04160613A (en) Clock switching circuit
JP2002051032A (en) Clock correction circuit
JPS605622A (en) Clock signal generator
JPS63271514A (en) Switching circuit for clock signal
JPH04251312A (en) Clock supplying system
JPH06120815A (en) Pulse swallow system variable frequency divider
JPS63271513A (en) Switching circuit for clock signal
JPH0677228B2 (en) Clock signal generation circuit
JPS63282820A (en) Clock signal switching system