JPH05233091A - Clock generating circuit - Google Patents

Clock generating circuit

Info

Publication number
JPH05233091A
JPH05233091A JP4029837A JP2983792A JPH05233091A JP H05233091 A JPH05233091 A JP H05233091A JP 4029837 A JP4029837 A JP 4029837A JP 2983792 A JP2983792 A JP 2983792A JP H05233091 A JPH05233091 A JP H05233091A
Authority
JP
Japan
Prior art keywords
oscillator
circuit
output
clock
oscillation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP4029837A
Other languages
Japanese (ja)
Inventor
Yoshiaki Matsuno
好晃 松野
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
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP4029837A priority Critical patent/JPH05233091A/en
Publication of JPH05233091A publication Critical patent/JPH05233091A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To oscillate a clock output just after impressing power supply by selectively switching either an oscillator using a control element with a high Q or an oscillator using a control element with a low Q at a frequency almost equal to each other in the case of activating power supply. CONSTITUTION:Oscillators 1 and 2 start oscillation when a power supply voltage is impressed. In this case, since the high Q frequency control element such as a crystal oscillator is used for the oscillator 1, stable oscillation time at the degree of several dozens of mS is required. Since the oscillator 2 is the CR oscillation circuit of the low Q frequency control element, however, the oscillator 2 is started just after the power supply voltage impression and starts stable oscillation. Therefore, control is executed in the beginning to a switching circuit 3 so as to select the oscillator 2 and when a microcomputer is operated by a clock CK and the stable oscillation time of the oscillator 1 is lapsed, control is executed to the switching circuit 3 so as to select the oscillator 1. At the same time, the oscillator 2 is stopped by an oscillation stop signal S. Therefore, the output of the oscillator 1 is supplied to a clock generating circuit 5.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はクロック発生回路に関
し、特に水晶発振器等を用いたマイクロコンピュータ等
のクロック発生回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock generating circuit, and more particularly to a clock generating circuit for a microcomputer using a crystal oscillator or the like.

【0002】[0002]

【従来の技術】一般に、水晶発振器等の高Qの周波数制
御素子を用いる発振器は、電源が印加され発振を開始し
てから十分に発振が安定するまでに要する時間、すなわ
ち、発振安定時間tsが数十mS程度存在する。したが
って、この発振安定時間の期間中は発振が不安定である
ため、これによるクロックを用いるマイクロコンピュー
タ等は誤動作を避けるために、この期間のクロック出力
を停止するような構成としていた。
2. Description of the Related Art Generally, an oscillator using a high-Q frequency control element such as a crystal oscillator has a time required for the oscillation to be sufficiently stabilized after the power is applied to start oscillation, that is, an oscillation stabilization time ts. There are several tens of mS. Therefore, since the oscillation is unstable during the period of the oscillation stabilization time, the microcomputer or the like using the clock due to the oscillation is configured to stop the clock output during this period in order to avoid malfunction.

【0003】従来のこの種のクロック発生回路は、図4
に示すように、周波数制御素子として水晶振動子あるい
はセラミック振動子等を用いた発振器1と、発振器1の
出力周波数を計数するカウンタ8と、カウンタ8のオー
バフロー信号によりセットされるフリップフロップ9
と、発振器1の出力とフリップフロップ9の出力との論
理積をとるアンド回路10と、アンド回路10を介した
発振器1の出力からシステムクロックCKを生成するク
ロック生成回路5とを備えて構成されていた。
A conventional clock generating circuit of this type is shown in FIG.
3, an oscillator 1 using a crystal oscillator or a ceramic oscillator as a frequency control element, a counter 8 for counting the output frequency of the oscillator 1, and a flip-flop 9 set by an overflow signal of the counter 8
And an AND circuit 10 that takes the logical product of the output of the oscillator 1 and the output of the flip-flop 9, and a clock generation circuit 5 that generates the system clock CK from the output of the oscillator 1 via the AND circuit 10. Was there.

【0004】次に、従来のクロック発生回路の動作につ
いて説明する。
Next, the operation of the conventional clock generating circuit will be described.

【0005】図5は従来のクロック発生回路の動作タイ
ムチャ―トである。
FIG. 5 is an operation time chart of the conventional clock generation circuit.

【0006】まず、発振器1は電源電圧Vが印加される
と発振を開始する。同時に、カウンタ8およびフリップ
フロップ9は外部からのリセット信号Rによりリセット
される。このとき、アンド回路10の一方入力であるフ
リップフロップ9の出力Qは″L″レベルであり、他の
一方の入力である発振器1の出力F、すなわち、クロッ
ク生成回路5の入力を阻止する。したがって、クロック
生成回路5は動作を停止し、クロックCKは出力されな
い。次に、カウンタ8は発振器1の出力Fの周波数を計
数し始め、発振安定時間tsに相当する予め設定した計
数値に達するとオーバフロー信号Oを出力する。フリッ
プフロップ9はオーバフロー信号Oによりセットされ出
力Qを″H″レベルとする。これにより、アンド回路1
0は発振器1の出力F、すなわち、クロック生成回路5
の入力を通過させる。したがって、クロック生成回路5
は動作を開始し、クロックCKを出力するというもので
あった。
First, the oscillator 1 starts to oscillate when the power supply voltage V is applied. At the same time, the counter 8 and the flip-flop 9 are reset by the reset signal R from the outside. At this time, the output Q of the flip-flop 9 which is one input of the AND circuit 10 is at "L" level, and the output F of the oscillator 1 which is the other input, that is, the input of the clock generation circuit 5 is blocked. Therefore, the clock generation circuit 5 stops its operation and the clock CK is not output. Next, the counter 8 starts counting the frequency of the output F of the oscillator 1, and outputs the overflow signal O when the preset count value corresponding to the oscillation stabilization time ts is reached. The flip-flop 9 is set by the overflow signal O and sets the output Q to "H" level. As a result, the AND circuit 1
0 is the output F of the oscillator 1, that is, the clock generation circuit 5
Pass the input of. Therefore, the clock generation circuit 5
Was to start the operation and output the clock CK.

【0007】前述のように、発振器1の発振安定時間t
sは数十mS程度である。この間、数MHzのクロック
を用いるマイクロコンピュータでは、数十ステップから
数百ステップもの命令を実行できる。したがって、リセ
ット後、緊急に処理を実行する必要があるマイクロコン
ピュータの応用においては、この間のクロック供給の停
止は極めて大きな欠点となるというものであった。
As described above, the oscillation stabilization time t of the oscillator 1
s is about several tens of mS. During this time, a microcomputer using a clock of several MHz can execute instructions of tens to hundreds of steps. Therefore, in the application of the microcomputer in which it is necessary to urgently execute the processing after the reset, the stop of the clock supply during this period is an extremely serious drawback.

【0008】[0008]

【発明が解決しようとする課題】上述した従来のクロッ
ク発生回路は、発振が十分安定するまで動作を停止する
ためクロックを発生しないので、これを搭載したマイク
ロコンピュータは、その間処理を実行することが不可能
であるという欠点があった。特に、リセット後、緊急に
処理を実行する必要があるマイクロコンピュータの応用
においては、この待機時間は極めて大きな不具合である
という問題点があった。
Since the above-described conventional clock generation circuit stops the operation until the oscillation is sufficiently stabilized, it does not generate the clock. Therefore, the microcomputer equipped with it can execute the processing during that period. It had the drawback of being impossible. In particular, in the application of a microcomputer that needs to execute processing urgently after resetting, there is a problem that this waiting time is an extremely large problem.

【0009】[0009]

【課題を解決するための手段】本発明のクロック発生回
路は、高Qの周波数制御素子を用いる第一の発振器と、
第一の発振器とほぼ等しい周波数の低Qの周波数制御素
子を用いる第二の発振器と、前記第一および第二の発振
器のいずれかの出力を選択する発振器切替手段とを備え
て構成されている。
The clock generation circuit of the present invention comprises a first oscillator using a high Q frequency control element,
A second oscillator using a low Q frequency control element having a frequency substantially equal to that of the first oscillator, and oscillator switching means for selecting an output of either the first oscillator or the second oscillator. ..

【0010】[0010]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0011】図1は本発明のクロック発生回路の第一の
実施例を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a clock generation circuit of the present invention.

【0012】本実施例のクロック発生回路は、図1に示
すように、水晶振動子あるいはセラミック振動子等を用
いた発振器1と、抵抗および容量からなるCR発振回路
を用いた発振器2と、発振器1と発振器2とを切替る切
替回路3と、CPUからの命令Cでセットされリセット
信号Rによりリセットされる切替回路3の切替指示を設
定するフラグ4と、切替回路3の出力によりクロックを
生成するクロック生成回路5とを備えて構成されてい
る。
As shown in FIG. 1, the clock generation circuit of this embodiment includes an oscillator 1 using a crystal oscillator or a ceramic oscillator, an oscillator 2 using a CR oscillation circuit composed of resistors and capacitors, and an oscillator. 1 and an oscillator 2, a switching circuit 3, a flag 4 for setting a switching instruction of the switching circuit 3 which is set by a command C from the CPU and reset by a reset signal R, and a clock generated by the output of the switching circuit 3. And a clock generation circuit 5 that operates.

【0013】次に、本実施例の動作について従来例と同
様にマイクロコンピュータに搭載した場合の動作を説明
する。
Next, the operation of this embodiment will be described when it is installed in a microcomputer as in the conventional example.

【0014】図2は、図1で示す本実施例のクロック発
生回路のタイムチャ―トである。
FIG. 2 is a time chart of the clock generation circuit of this embodiment shown in FIG.

【0015】まず、発振器1および発振器2は電源電圧
Vが印加されると共に発振を開始する。同時に、フラグ
4はリセット信号Rによりリセットされる。ここで、発
振器1は、前述のように、水晶振動子等の高Qの周波数
制御素子を用いているので、数十mS程度の発振安定時
間tsを必要とする。しかし、発振器2は、前述のよう
に、低Qの周波数制御素子である抵抗および容量からな
るCR発振回路であるので、電源電圧Vの印加後直ちに
立上がり安定な発振を開始する。リセット状態のフラグ
4の出力Pはたとえば’0’であり、切替回路3に対し
発振器2を選択するよう制御する。したがって、クロッ
ク生成回路5には発振器2の出力が供給されこれに同期
してクロックCKが生成される。
First, the oscillator 1 and the oscillator 2 start oscillating when the power supply voltage V is applied. At the same time, the flag 4 is reset by the reset signal R. Here, since the oscillator 1 uses the high-Q frequency control element such as the crystal oscillator as described above, the oscillation stabilization time ts of about several tens of mS is required. However, since the oscillator 2 is a CR oscillation circuit composed of a resistor and a capacitance which are low Q frequency control elements as described above, it immediately rises and starts stable oscillation immediately after the application of the power supply voltage V. The output P of the flag 4 in the reset state is, for example, "0", and controls the switching circuit 3 to select the oscillator 2. Therefore, the output of the oscillator 2 is supplied to the clock generation circuit 5, and the clock CK is generated in synchronization with this.

【0016】次に、クロックCKにより、マイクロコン
ピュータが動作し、発振器1の発振安定時間tsに相当
する時間を計測すると命令Cによりフラグ4の出力P
を’1’にセットする。フラグ4の出力Pが’1’にセ
ットされることにより、切替回路3に対し発振器1を選
択するよう制御する。同時に発振停止信号Sを発振器2
に印加しこれを停止させる。したがって、クロック生成
回路5には発振器1の出力が供給されこれに同期してク
ロックCKが生成される。
Next, the microcomputer is operated by the clock CK, and when the time corresponding to the oscillation stabilization time ts of the oscillator 1 is measured, the output P of the flag 4 is issued by the command C.
Is set to '1'. When the output P of the flag 4 is set to "1", the switching circuit 3 is controlled to select the oscillator 1. At the same time, the oscillation stop signal S is sent to the oscillator 2
To stop this. Therefore, the output of the oscillator 1 is supplied to the clock generation circuit 5, and the clock CK is generated in synchronization with this.

【0017】以上により、発振器1の発振安定時間ts
の期間においても、マイクロコンピュータは動作を行な
うことができる。
From the above, the oscillation stabilization time ts of the oscillator 1
The microcomputer can operate even during the period.

【0018】次に、本発明の第二の実施例について説明
する。
Next, a second embodiment of the present invention will be described.

【0019】図3は本発明の第二の実施例を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a second embodiment of the present invention.

【0020】本実施例の前述の第一の実施例に対する相
違点は、発振器2に加えて、縦続接続した複数の分周回
路61〜6nからなる分周回路群6と、発振器2および
分周回路61〜6nの出力を切替えて出力するスイッチ
回路7とが追加されていることである。他の構成要素は
第一の実施例と共通であり図示を省略している。
The difference of this embodiment from the first embodiment is that, in addition to the oscillator 2, a frequency dividing circuit group 6 composed of a plurality of frequency dividing circuits 61 to 6n connected in cascade, the oscillator 2 and the frequency dividing circuit. That is, a switch circuit 7 for switching and outputting the outputs of the circuits 61 to 6n is added. The other components are common to the first embodiment and are not shown.

【0021】スイッチ回路7の切替はたとえば、製造時
の回路パターンを決定する光学マスクの段階で用意され
ており、それぞれの出力に対応するマスクを選択するマ
スクオプションにより実現できる。
The switching of the switch circuit 7 is prepared, for example, at the stage of an optical mask for determining a circuit pattern at the time of manufacturing, and can be realized by a mask option for selecting a mask corresponding to each output.

【0022】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be described.

【0023】たとえば、ユーザがマイクロコンピュータ
を電池等の低い電源電圧の電源で動作させる場合には、
一般には、クロック周波数を低下させる必要がある。本
実施例は、このクロック周波数の低下を分周回路群6に
より行なうものである。これにより、より広い電源電圧
範囲で動作可能なマイクロコンピュータを提供すること
ができる。
For example, when the user operates the microcomputer with a power source having a low power source voltage such as a battery,
Generally, it is necessary to reduce the clock frequency. In this embodiment, the clock frequency is reduced by the frequency dividing circuit group 6. This makes it possible to provide a microcomputer that can operate in a wider power supply voltage range.

【0024】[0024]

【発明の効果】以上説明したように、本発明のクロック
発生回路は、高Qの周波数制御素子を用いる第一の発振
器と、低Qの周波数制御素子を用いる第二の発振器と、
第一および第二の発振器のいずれかの出力を選択する発
振器切替手段とを備えることにより、電源印加後直にク
ロックを出力することができるという効果がある。した
がって、このクロック発生回路を搭載したマイクロコン
ピュータ等は電源印加後の待機時間が無くなり直に動作
が可能となるという効果がある。
As described above, the clock generation circuit of the present invention comprises a first oscillator using a high Q frequency control element, a second oscillator using a low Q frequency control element, and
By providing the oscillator switching means for selecting the output of either the first oscillator or the second oscillator, it is possible to output the clock immediately after the power is applied. Therefore, there is an effect that a microcomputer or the like equipped with this clock generation circuit can operate directly without a waiting time after application of power.

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

【図1】本発明のクロック発生回路の第一の実施例を示
すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a clock generation circuit of the present invention.

【図2】本実施例のクロック発生回路における動作の一
例を示すタイムチャートである。
FIG. 2 is a time chart showing an example of the operation of the clock generation circuit of this embodiment.

【図3】本発明のクロック発生回路の第二の実施例を示
すブロック図である。
FIG. 3 is a block diagram showing a second embodiment of the clock generation circuit of the present invention.

【図4】従来のクロック発生回路の一例を示すブロック
図である。
FIG. 4 is a block diagram showing an example of a conventional clock generation circuit.

【図5】従来のクロック発生回路における動作の一例を
示すタイムチャートである。
FIG. 5 is a time chart showing an example of the operation of the conventional clock generation circuit.

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

1,2 発振器 3 切替回路 4 フラグ 5 クロック生成回路 6 分周回路群 7 スイッチ回路 8 カウンタ 9 フリップフロップ 10 アンド回路 61〜6n 分周回路 1, 2 oscillator 3 switching circuit 4 flag 5 clock generation circuit 6 frequency dividing circuit group 7 switch circuit 8 counter 9 flip-flop 10 AND circuit 61 to 6n frequency dividing circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 高Qの周波数制御素子を用いる第一の発
振器と、 第一の発振器とほぼ等しい周波数の低Qの周波数制御素
子を用いる第二の発振器と、 前記第一および第二の発振器のいずれかの出力を選択す
る発振器切替手段とを備えることを特徴とするクロック
発生回路。
1. A first oscillator using a high-Q frequency control element, a second oscillator using a low-Q frequency control element having a frequency substantially equal to that of the first oscillator, and the first and second oscillators. And an oscillator switching means for selecting any one of the outputs.
【請求項2】 前記第二の発振器の出力を分周する分周
回路と、 前記第二の発振回路の出力と前記分周回路の出力とのい
ずれかを選択する出力切替手段とを備えることを特徴と
する請求項1記載のクロック発生回路。
2. A frequency divider circuit for dividing the output of the second oscillator, and an output switching means for selecting one of the output of the second oscillator circuit and the output of the frequency divider circuit. The clock generating circuit according to claim 1, wherein
【請求項3】 前記第一の発振器は水晶発振器であり、
前記第二の発振器は抵抗と容量との時定数回路を用いる
CR発振回路であることを特徴とする請求項1記載のク
ロック発生回路。
3. The first oscillator is a crystal oscillator,
2. The clock generation circuit according to claim 1, wherein the second oscillator is a CR oscillation circuit using a time constant circuit of resistance and capacitance.
JP4029837A 1992-02-18 1992-02-18 Clock generating circuit Withdrawn JPH05233091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4029837A JPH05233091A (en) 1992-02-18 1992-02-18 Clock generating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4029837A JPH05233091A (en) 1992-02-18 1992-02-18 Clock generating circuit

Publications (1)

Publication Number Publication Date
JPH05233091A true JPH05233091A (en) 1993-09-10

Family

ID=12287131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4029837A Withdrawn JPH05233091A (en) 1992-02-18 1992-02-18 Clock generating circuit

Country Status (1)

Country Link
JP (1) JPH05233091A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006525750A (en) * 2003-04-30 2006-11-09 イーストマン コダック カンパニー Waveform glitch prevention method
JP2008065843A (en) * 1996-02-19 2008-03-21 St Microelectronics Sa Clocking control method for integrated circuit and integrated circuit to which the same is applied
JP2008067246A (en) * 2006-09-11 2008-03-21 Ricoh Co Ltd Delay time generating circuit, semiconductor device for protecting secondary battery using same, battery pack, and electronic device
JP2009044433A (en) * 2007-08-08 2009-02-26 Sanyo Electric Co Ltd Clock switching circuit
WO2010067495A1 (en) * 2008-12-08 2010-06-17 パナソニック株式会社 System clock monitoring apparatus and motor control system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065843A (en) * 1996-02-19 2008-03-21 St Microelectronics Sa Clocking control method for integrated circuit and integrated circuit to which the same is applied
JP2006525750A (en) * 2003-04-30 2006-11-09 イーストマン コダック カンパニー Waveform glitch prevention method
JP2008067246A (en) * 2006-09-11 2008-03-21 Ricoh Co Ltd Delay time generating circuit, semiconductor device for protecting secondary battery using same, battery pack, and electronic device
JP2009044433A (en) * 2007-08-08 2009-02-26 Sanyo Electric Co Ltd Clock switching circuit
WO2010067495A1 (en) * 2008-12-08 2010-06-17 パナソニック株式会社 System clock monitoring apparatus and motor control system
US8638154B2 (en) 2008-12-08 2014-01-28 Panasonic Corporation System clock monitoring apparatus and motor control system

Similar Documents

Publication Publication Date Title
US4344046A (en) Signal generator including high and low frequency oscillators
US4020626A (en) Electronic timepiece
US4654604A (en) Frequency controlled oscillator utilizing an U/D counter in the feedback
JPH08166834A (en) Clock generating circuit and microcomputer
JPH05233091A (en) Clock generating circuit
US4068462A (en) Frequency adjustment circuit
JP2575702B2 (en) Synthesizer tuner
JPH07321644A (en) Method for updating temperature versus frequency characteristic data for oscillator
US3946321A (en) Digital encoder
JP2959223B2 (en) Clock oscillator
JPH0449705Y2 (en)
JPH03273712A (en) Pll circuit
JP3120352B2 (en) Clock supply system, real-time clock module, operation clock supply unit, and information processing device
JPH09326679A (en) Clock generation circuit
JPS585395B2 (en) Suishiyoudokei no Kankiyuhoushiki
JPH0715237A (en) Oscillation controller
JPH03165617A (en) Initial state clock generating circuit
JPH04326802A (en) Oscillation circuit
JPS6012353Y2 (en) Frequency adjustment device in time reference signal generator
JPH03198116A (en) Oscillation stabilizing circuit for microcomputer
JPS6143274Y2 (en)
JP2927801B2 (en) PLL circuit
JPS5986311A (en) Oscillating frequency compensating circuit
JPS61288259A (en) Microcomputer
JPH01208909A (en) Timer device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518