JP2674574B2 - Clock generation circuit - Google Patents

Clock generation circuit

Info

Publication number
JP2674574B2
JP2674574B2 JP7181352A JP18135295A JP2674574B2 JP 2674574 B2 JP2674574 B2 JP 2674574B2 JP 7181352 A JP7181352 A JP 7181352A JP 18135295 A JP18135295 A JP 18135295A JP 2674574 B2 JP2674574 B2 JP 2674574B2
Authority
JP
Japan
Prior art keywords
clock
circuit
start signal
generation circuit
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.)
Expired - Fee Related
Application number
JP7181352A
Other languages
Japanese (ja)
Other versions
JPH0934582A (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
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 JP7181352A priority Critical patent/JP2674574B2/en
Publication of JPH0934582A publication Critical patent/JPH0934582A/en
Application granted granted Critical
Publication of JP2674574B2 publication Critical patent/JP2674574B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Oscillators With Electromechanical Resonators (AREA)
  • Inductance-Capacitance Distribution Constants And Capacitance-Resistance Oscillators (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はクロック生成回路に関
し、特にマイクロコンピュータ等のLSIに内蔵される
クロック生成回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock generation circuit, and more particularly to a clock generation circuit built in an LSI such as a microcomputer.

【0002】[0002]

【従来の技術】従来この種の一般的なクロック生成回路
は、基準周波数の基準クロックを発生する水晶発振回路
とこの基準クロックを分周して所要の複数のクロックを
生成するクロックデバイダとを備えて構成されていた。
2. Description of the Related Art Conventionally, a general clock generation circuit of this type includes a crystal oscillation circuit for generating a reference clock having a reference frequency and a clock divider for dividing the reference clock to generate a plurality of required clocks. Was configured.

【0003】従来のクロック生成回路をブロックで示す
図3を参照すると、この従来のクロック生成回路は、外
部に接続した水晶振動子5により周波数が決定され発振
信号CLOおよびこの信号CLOを波形整形した基準ク
ロックCLKを発生する発振回路1と、発振回路1の発
振安定時間を設定するため一定値を計数しオーバフロー
信号をスタート信号STとして出力するカウンタ3と、
スタート信号STの供給に応答してクロックCKをそれ
ぞれ所定の分周比で分周したn+1個のクロックφ0,
φ1…φnを生成するクロックデバイダ4とを備える。
Referring to FIG. 3, which shows a block diagram of a conventional clock generation circuit, in this conventional clock generation circuit, the frequency is determined by a crystal oscillator 5 connected to the outside, and an oscillation signal CLO and this signal CLO are waveform-shaped. An oscillator circuit 1 that generates a reference clock CLK; a counter 3 that counts a constant value to set an oscillation stabilization time of the oscillator circuit 1 and outputs an overflow signal as a start signal ST;
In response to the supply of the start signal ST, the clock CK is divided by a predetermined dividing ratio, and n + 1 clocks φ0,
and a clock divider 4 for generating φ1 ... φn.

【0004】次に、図3および各部の動作波形を示すタ
イムチャートである図4を参照して、従来のクロック生
成回路の動作について説明すると、電源電圧の立上りに
ともない、発振回路1は発信を開始し、発振信号CLO
およびその波形整形信号である基準クロックCLKも振
幅が徐々に立上がり一定振幅に達する。このクロックC
LKはカウンタ3に供給される。カウンタ3はXビット
のカウンタであり、クロックCLKの供給に応答してこ
れを計数し、カウント値n=2Xに達したとき、オーバ
フロー信号すなわちスタート信号STを出力する。この
カウント値nは発振回路1すなわちクロックCLKの振
幅の安定時間を十分カバーするように設定される。クロ
ックデバイダ4はオスタート信号STの供給に応答して
各クロックφ0,φ1…φnの生成を開始する。
Next, the operation of the conventional clock generation circuit will be described with reference to FIG. 3 and FIG. 4 which is a time chart showing the operation waveforms of the respective parts. The oscillation circuit 1 oscillates when the power supply voltage rises. Start, oscillation signal CLO
Also, the amplitude of the reference clock CLK, which is its waveform shaping signal, gradually rises and reaches a constant amplitude. This clock C
LK is supplied to the counter 3. The counter 3 is an X-bit counter, counts it in response to the supply of the clock CLK, and outputs an overflow signal, that is, a start signal ST when the count value n = 2X is reached. The count value n is set so as to sufficiently cover the oscillation circuit 1, that is, the stabilization time of the amplitude of the clock CLK. The clock divider 4 starts generating the clocks φ0, φ1 ... φn in response to the supply of the start signal ST.

【0005】この従来の第1のクロック生成回路は、上
述のようなスムーズな発振開始が行なわれる場合には問
題がない。しかし、水晶振動子は、それぞれ異なる固有
振動周波数を有する縦振動,横振動,厚み振動など各振
動モードがあり、本来はその内の一つの振動モードした
がって一つの周波数で発振するように電極が付けられて
いる。しかし電源の立上り特性等の要因ににより、発振
立上り時に寄生振動あるいは異常発振を生ずることがあ
る。その場合発振信号CLOの周波数が異常に上昇する
ため、発振が安定する前にカウンタ3がオーバフローし
スタート信号STを発生してしまい、不完全なクロック
φ0,φ1…φnを生成する。
This conventional first clock generation circuit has no problem when the above-described smooth oscillation start is performed. However, the crystal unit has various vibration modes such as longitudinal vibration, lateral vibration, thickness vibration, etc., each of which has a different natural vibration frequency. Originally, one of the vibration modes, and therefore the electrode attached to oscillate at one frequency Has been. However, due to factors such as the power-on characteristics of the power supply, parasitic oscillation or abnormal oscillation may occur when the oscillation starts. In that case, since the frequency of the oscillation signal CLO rises abnormally, the counter 3 overflows before the oscillation stabilizes and the start signal ST is generated, and incomplete clocks φ0, φ1 ... φn are generated.

【0006】[0006]

【発明が解決しようとする課題】上述した従来のクロッ
ク生成回路は、水晶発振回路が電源の立上り特性等の要
因ににより発振立上り時に寄生振動あるいは異常発振を
生じた場合に発振周波数が異常に上昇するため、発振の
安定前に安定時間設定用のカウンタがオーバフローして
しまい、クロックデバイダが動作を開始し不完全なクロ
ックを生成することによりこのクロックの供給に応答し
て動作するLSI内部の回路が誤動作するという欠点が
あった。
In the above-described conventional clock generation circuit, the oscillation frequency rises abnormally when the crystal oscillation circuit causes parasitic oscillation or abnormal oscillation at the time of oscillation startup due to factors such as the power supply startup characteristics. Therefore, the counter for setting the stable time overflows before the oscillation stabilizes, the clock divider starts operating and generates an incomplete clock, and the circuit inside the LSI operates in response to the supply of this clock. Had the drawback of malfunctioning.

【0007】[0007]

【課題を解決するための手段】本発明のクロック生成回
路は、基準クロックを発生する水晶発振回路と、所定数
の前記基準クロックを計数し分周スタート信号を出力す
る分周スタート信号発生回路と、前記分周スタート信号
の供給に応答して前記基準クロックに同期した被分周ク
ロックをそれぞれ所定の分周比で分周した少なくとも1
つの分周クロックを生成するクロックデバイダとを備え
るクロック生成回路において、前記分周スタート信号発
生回路が、前記発振回路の異常発振の検出に応答して少
なくともこの異常発振期間中前記スタート信号の出力を
禁止する分周スタート制御回路を備えて構成されてい
る。
A clock generation circuit of the present invention includes a crystal oscillation circuit for generating a reference clock, and a frequency division start signal generation circuit for counting a predetermined number of the reference clocks and outputting a frequency division start signal. A divided clock synchronized with the reference clock in response to the supply of the divided start signal is divided by a predetermined dividing ratio.
In a clock generation circuit including a clock divider that generates two divided clocks, the divided start signal generation circuit outputs the start signal at least during the abnormal oscillation period in response to detection of abnormal oscillation of the oscillation circuit. It is configured with a frequency division start control circuit that prohibits it.

【0008】[0008]

【実施例】次に、本発明の実施例を図3と共通の構成要
素には共通の参照文字/数字を付して同様にブロックで
示す図1を参照すると、この図に示す本実施例のクロッ
ク生成回路は、従来と共通の発振回路1と、クロックデ
バイダ4と、水晶振動子5とに加えて、カウンタ3の代
りに発振回路1の発振安定時間を設定してクロックデバ
イダ4の動作を開始させるスタート信号STを出力する
とともに異常発振を検出したとき異常発振期間中はスタ
ート信号STの出力を禁止するスタート制御回路2を備
える。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Next, referring to FIG. 1, which is a block diagram in which components common to those of FIG. 3 are designated by common reference characters / numerals, the embodiment of this invention shown in FIG. In addition to the conventional oscillation circuit 1, the clock divider 4, and the crystal oscillator 5, the clock generation circuit of FIG. 1 operates the clock divider 4 by setting the oscillation stabilization time of the oscillation circuit 1 instead of the counter 3. A start control circuit 2 is provided which outputs a start signal ST for starting the operation and inhibits the output of the start signal ST during the abnormal oscillation period when the abnormal oscillation is detected.

【0009】スタート制御回路2は、基準クロックCL
Kを異常発振周期より十分大きくこのクロックCLKの
周期より小さい一定時間遅延させ遅延クロックDCを出
力する遅延回路211と基準クロックCLKと遅延クロ
ックDCとのANDをとりクロックCDKを出力するA
ND回路212とを含むワンショット回路21と、クロ
ックCDKをカウントしカウント値N1とオーバフロー
信号をスタート信号STとして出力するXビットのカウ
ンタ22と、スタート信号STでリセットされクロック
CLKをカウントしカウント値N2を出力するカウンタ
22と同一のカウンタ23と、カウント値N1,N2と
を比較し一致するとクロックCPとして出力するコンパ
レータ24とを備える。
The start control circuit 2 uses the reference clock CL
A delay circuit 211 that delays K for a fixed time sufficiently larger than the abnormal oscillation cycle and smaller than the cycle of the clock CLK and outputs the delayed clock DC, ANDs the reference clock CLK and the delayed clock DC, and outputs the clock CDK A
A one-shot circuit 21 including an ND circuit 212, an X-bit counter 22 that counts a clock CDK and outputs a count value N1 and an overflow signal as a start signal ST, and a count value that counts a clock CLK that is reset by the start signal ST. A counter 23 that is the same as the counter 22 that outputs N2 and a comparator 24 that compares the count values N1 and N2 and outputs them as a clock CP when they match are provided.

【0010】次に、図1および異常発振時の各部の動作
波形を示すタイムチャートである図2を参照して本実施
例の動作について説明すると、まず、発振回路1が正常
発振の場合は、基準クロックCLKと遅延クロックDC
とは常にANDがとれるのでクロックCDKは基準クロ
ックCLKと同一周期となり、したがってカウンタ2
2,23の各々のカウント値N1,N2も常に同一であ
るので、コンパレータ24はクロックCLKと同一周期
のクロックCPをクロックデバイダ4に供給する。一
方、カウンタ22はクロックCDKを計数し従来と同様
にカウント値N1がn=2Xに達したときオーバフロー
信号をスタート信号STとして出力する。クロックデバ
イダ4はスタート信号STの供給に応答してクロックC
Pの分周動作を行ない、所定のクロックφ0,φ1…φ
nを生成する。
Next, the operation of the present embodiment will be described with reference to FIG. 1 and FIG. 2, which is a time chart showing the operation waveforms of the respective parts during abnormal oscillation. First, when the oscillation circuit 1 is in normal oscillation, Reference clock CLK and delayed clock DC
Is always ANDed, the clock CDK has the same cycle as the reference clock CLK, and therefore the counter 2
Since the count values N1 and N2 of 2 and 23 are always the same, the comparator 24 supplies the clock CP with the same period as the clock CLK to the clock divider 4. On the other hand, the counter 22 counts the clock CDK and outputs the overflow signal as the start signal ST when the count value N1 reaches n = 2X, as in the conventional case. The clock divider 4 responds to the supply of the start signal ST with the clock C.
The frequency division operation of P is performed, and predetermined clocks φ0, φ1 ... φ
Generate n.

【0011】すなわち、上述の従来のクロック生成回路
と同一の動作を行う。
That is, the same operation as the above-described conventional clock generation circuit is performed.

【0012】次に、異常発振時の動作について説明する
と、異常発振の期間Tの間は基準クロックCLKと遅延
クロックDCとはANDがとれないのでワンショット回
路21はクロックCDKを出力しない。したがってカウ
ンタ22は期間Tの終了後発振が正常状態になった時点
からクロックCDKのカウントを開始し、カウント値N
1がn=2Xに達したときスタート信号STを発生す
る。一方、カウンタ22は基準クロックCLKをそのま
まカウントしているので、発振開始時点からこのスター
ト信号STの供給時点までは両者のカウント値N1,N
2は相違しており、したがって、コンパレータ24はク
ロックCPを出力しない。カウンタ23はスタート信号
STの供給に応答してリセットされ、この時点でカウン
ト値N2は0からスタートする。当然同時にカウンタ2
2のカウント値N1も0からスタートするので、両者の
カウント値N1,N2は一致し、コンパレータ24はク
ロックCPの出力を開始する。クロックデバイダ4はス
タート信号STの供給に応答して同時に供給を開始され
たクロックCPの分周動作を行ない、所定のクロックφ
0,φ1…φnを生成する。
The operation during abnormal oscillation will now be described. Since the reference clock CLK and the delayed clock DC cannot be ANDed during the abnormal oscillation period T, the one-shot circuit 21 does not output the clock CDK. Therefore, the counter 22 starts counting the clock CDK from the time when the oscillation becomes normal after the end of the period T, and the count value N
When 1 reaches n = 2X, a start signal ST is generated. On the other hand, since the counter 22 counts the reference clock CLK as it is, the count values N1 and N of both are maintained from the start of oscillation to the supply of this start signal ST.
2 are different, so the comparator 24 does not output the clock CP. The counter 23 is reset in response to the supply of the start signal ST, and the count value N2 starts from 0 at this point. Naturally counter 2 at the same time
Since the count value N1 of 2 also starts from 0, the count values N1 and N2 of both match, and the comparator 24 starts outputting the clock CP. In response to the supply of the start signal ST, the clock divider 4 divides the clock CP that is started to be supplied at the same time, and a predetermined clock φ
0, φ1, ... φn are generated.

【0013】[0013]

【発明の効果】以上説明したように、本発明のクロック
生成回路は、異常発振期間中スタート信号の出力を禁止
する分周スタート制御回路を備えることにより、LSI
内部回路の誤動作要因となる不完全なクロックの生成を
防止できるという効果がある。
As described above, the clock generation circuit of the present invention is provided with the frequency division start control circuit for inhibiting the output of the start signal during the abnormal oscillation period, so that the LSI
There is an effect that it is possible to prevent generation of an incomplete clock that causes a malfunction of the internal circuit.

【0014】[0014]

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

【図1】本発明のクロック生成回路の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing an 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 an example of a conventional clock generation circuit.

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

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

1 発振回路 2 スタート制御回路 3,22,23 カウンタ 4 クロックデバイダ 5 水晶振動子 21 ワンショット回路 24 コンパレータ 211 遅延回路 212 AND回路 1 Oscillation Circuit 2 Start Control Circuit 3, 22, 23 Counter 4 Clock Divider 5 Crystal Oscillator 21 One-shot Circuit 24 Comparator 211 Delay Circuit 212 AND Circuit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 基準クロックを発生する水晶発振回路
と、所定数の前記基準クロックを計数し分周スタート信
号を出力する分周スタート信号発生回路と、前記分周ス
タート信号の供給に応答して前記基準クロックに同期し
た被分周クロックをそれぞれ所定の分周比で分周した少
なくとも1つの分周クロックを生成するクロックデバイ
ダとを備えるクロック生成回路において、 前記分周スタート信号発生回路が、前記発振回路の異常
発振の検出に応答して少なくともこの異常発振期間中前
記スタート信号の出力を禁止する分周スタート制御回路
を備えることを特徴とするクロック生成回路。
1. A crystal oscillation circuit for generating a reference clock, a frequency division start signal generation circuit for counting a predetermined number of the reference clocks and outputting a frequency division start signal, and in response to the supply of the frequency division start signal. And a clock divider that generates at least one divided clock that is obtained by dividing a divided clock that is synchronized with the reference clock by a predetermined dividing ratio, the dividing start signal generating circuit including: A clock generation circuit comprising a frequency division start control circuit which inhibits the output of the start signal at least during the abnormal oscillation period in response to detection of abnormal oscillation of the oscillation circuit.
【請求項2】 前記分周スタート制御回路が、前記基準
クロックの供給に応答してこの基準クロックの周期が予
め定めた時間幅を超えた場合に第1のクロックを発生す
る第1のクロック発生回路と、 前記第1のクロックを計数し第1の計数値と前記スター
ト信号であるオーバフロー信号とをそれぞれ出力する第
1のカウンタと、 前記前記スタート信号の供給に応答してリセットし前記
基準クロックを計数し第2の計数値を出力する第2のカ
ウンタと、 前記第1および第2の計数値の一致に応答して前記被分
周クロックを出力する比較回路とを備えることを特徴と
する請求項1記載のクロック生成回路。
2. The first clock generation circuit, wherein the frequency division start control circuit generates a first clock when the cycle of the reference clock exceeds a predetermined time width in response to the supply of the reference clock. A circuit, a first counter that counts the first clock and outputs a first count value and an overflow signal that is the start signal, and resets the reference clock in response to the supply of the start signal. And a second counter for counting the second count value and outputting a second count value, and a comparator circuit for outputting the divided clock in response to the coincidence of the first and second count values. The clock generation circuit according to claim 1.
【請求項3】 前記第1のクロック発生回路が、前記基
準クロックを前記時間幅分遅延させ遅延クロックを出力
する遅延回路と、 前記基準クロックと遅延クロックとの論理積演算を行い
前記第1のクロックを生成するAND回路とを備えるこ
とを特徴とする請求項2記載のクロック生成回路。
3. A delay circuit, wherein the first clock generation circuit delays the reference clock by the time width and outputs a delayed clock, and performs a logical product operation of the reference clock and the delayed clock to perform the first AND operation. The clock generation circuit according to claim 2, further comprising an AND circuit that generates a clock.
JP7181352A 1995-07-18 1995-07-18 Clock generation circuit Expired - Fee Related JP2674574B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7181352A JP2674574B2 (en) 1995-07-18 1995-07-18 Clock generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7181352A JP2674574B2 (en) 1995-07-18 1995-07-18 Clock generation circuit

Publications (2)

Publication Number Publication Date
JPH0934582A JPH0934582A (en) 1997-02-07
JP2674574B2 true JP2674574B2 (en) 1997-11-12

Family

ID=16099216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7181352A Expired - Fee Related JP2674574B2 (en) 1995-07-18 1995-07-18 Clock generation circuit

Country Status (1)

Country Link
JP (1) JP2674574B2 (en)

Also Published As

Publication number Publication date
JPH0934582A (en) 1997-02-07

Similar Documents

Publication Publication Date Title
JP5774344B2 (en) Clock signal generation circuit
US6084441A (en) Apparatus for and method of processing data
US4864255A (en) Oscillator capable of quickly supplying a stable oscillation signal
JP2000174615A (en) Method and device for automatically correcting internal clock frequency of integrated circuit
JP3930773B2 (en) Frequency correction circuit
JP2674574B2 (en) Clock generation circuit
TWI638517B (en) Mitigation of long wake-up delay of a crystal oscillator
JP3523362B2 (en) Clock circuit and processor using the same
US6529447B1 (en) Compensation of crystal start up for accurate time measurement
JP2716386B2 (en) Clock output circuit
US6496078B1 (en) Activating on-chip oscillator using ring oscillator
US6177821B1 (en) Microcomputer with frequency multiplication circuit
JPS6148726B2 (en)
JPH1114714A (en) Semiconductor testing device
JP2718191B2 (en) Microcomputer standby circuit
JPH09326679A (en) Clock generation circuit
JP2540544Y2 (en) Counter circuit
JPH05315898A (en) Trigger synchronization circuit
JP2959192B2 (en) Microcomputer
JP3904656B2 (en) Clock controller
JPH0756649A (en) Clock generating circuit
JP2002073201A (en) Microprocessor
JP2865261B2 (en) Clock generation circuit for switched capacitor circuit
JPH0535359A (en) Clock oscillator
JP2935319B2 (en) Multi vibrator

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970617

LAPS Cancellation because of no payment of annual fees