JP2016131339A - Clock generation device, clock generation module, and clock source selection method - Google Patents

Clock generation device, clock generation module, and clock source selection method Download PDF

Info

Publication number
JP2016131339A
JP2016131339A JP2015005491A JP2015005491A JP2016131339A JP 2016131339 A JP2016131339 A JP 2016131339A JP 2015005491 A JP2015005491 A JP 2015005491A JP 2015005491 A JP2015005491 A JP 2015005491A JP 2016131339 A JP2016131339 A JP 2016131339A
Authority
JP
Japan
Prior art keywords
clock
signal
terminal
clock signal
source selection
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.)
Granted
Application number
JP2015005491A
Other languages
Japanese (ja)
Other versions
JP6522956B2 (en
Inventor
貴光 羽深
Takamitsu Habuka
貴光 羽深
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.)
Lapis Semiconductor Co Ltd
Original Assignee
Lapis Semiconductor Co Ltd
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 Lapis Semiconductor Co Ltd filed Critical Lapis Semiconductor Co Ltd
Priority to JP2015005491A priority Critical patent/JP6522956B2/en
Publication of JP2016131339A publication Critical patent/JP2016131339A/en
Application granted granted Critical
Publication of JP6522956B2 publication Critical patent/JP6522956B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Oscillators With Electromechanical Resonators (AREA)
  • Inductance-Capacitance Distribution Constants And Capacitance-Resistance Oscillators (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a clock generation device capable of automatically discriminating between a passive drive type and an active drive type of a connected oscillator.SOLUTION: A clock generation device comprises: a first terminal connected with a vibrator or a predetermined potential; a second terminal connected with the vibrator or an oscillator; a first clock signal generator that generates a first clock signal on the basis of a signal from the first terminal; a second clock signal generator that generates a second clock signal on the basis of a signal from the second terminal; an output part that outputs the first clock signal or the second clock signal as a master clock signal; and a counter that counts the number of pulses of the master clock signal. In a case where a count value does not reach a predetermined value within a predetermined period of time, the first terminal and the first clock signal generator are connected with each other, and the first clock signal is outputted as the master clock signal. In a case where the count value reaches the predetermined value within the predetermined period of time, the second terminal and the second clock signal generator are connected with each other, and the second clock signal is outputted as the master clock signal.SELECTED DRAWING: Figure 1

Description

本発明は、クロック生成装置、クロック生成モジュール及びクロックソース選択方法に関する。   The present invention relates to a clock generation device, a clock generation module, and a clock source selection method.

発振器からの発振信号に基づいてクロック信号を生成するクロック生成装置として、精度が異なる2つの発振器を接続可能とし、接続された発振器の種類に応じて内部の回路の接続を切替えてクロック信号を生成するようにしたものが提案されている(例えば、特許文献1参照)。かかる装置では、接続された発振器の種類に応じた入力電位や抵抗値の相違に基づく電流値の大小に応じて、内部の回路の接続を選択的に切替えて、クロック信号の生成を行う。   As a clock generator that generates a clock signal based on an oscillation signal from an oscillator, it is possible to connect two oscillators with different accuracy, and switch the connection of internal circuits according to the type of the connected oscillator to generate a clock signal The thing which made it do is proposed (for example, refer patent document 1). In such a device, the connection of internal circuits is selectively switched according to the magnitude of the current value based on the difference in input potential and resistance value according to the type of the connected oscillator, and the clock signal is generated.

特開2005−057478号公報JP 2005-057478 A

このようなクロック生成装置では、電圧値や電流値を基準値と比較してその大小を判定することにより、クロックソースの選択、すなわち、発振器の種類に応じた内部回路の接続の切替えを行う。したがって、電圧値や電流値等のアナログ値を用いるため、環境温度の変化、製造ばらつき等により誤動作が発生する場合がある。   In such a clock generation device, the voltage value or current value is compared with a reference value to determine the magnitude, thereby selecting the clock source, that is, switching the connection of the internal circuit in accordance with the type of the oscillator. Therefore, since analog values such as voltage values and current values are used, malfunctions may occur due to changes in environmental temperature, manufacturing variations, and the like.

また、かかるクロック生成装置は、接続可能な2つの発振器がともに水晶振動子やRC発振器等の発振源を駆動する回路を含まないパッシブ駆動型の振動子から構成されている場合には動作可能であるものの、2つの発振器のうちの1つが例えば発振源を駆動する回路を含むTCXO(temperature compensated crystal oscillator)等のアクティブ駆動型の発振器が接続された場合には、対応していない。   In addition, such a clock generator can operate when two connectable oscillators are both composed of passive drive type oscillators that do not include a circuit for driving an oscillation source such as a crystal oscillator or an RC oscillator. However, when one of the two oscillators is connected to an active drive type oscillator such as a TCXO (temperature compensated crystal oscillator) including a circuit for driving an oscillation source, this is not supported.

本発明は、上記問題を解決するためになされたものであり、電圧印加によって発振する振動子、又は自己発振して発振信号を生成する発振器が接続されるとマスタクロック信号を生成するクロック生成装置であって、前記振動子の一端が接続される又は基準電位が印加される第1端子と、前記振動子の他端又は前記発振器が接続される第2端子と、前記第1及び前記第2端子に電圧を印加することにより第1クロック信号を生成する第1クロック信号生成部と、前記第2端子を介して前記発振信号が供給された場合に前記発振信号に基づき第2クロック信号を生成する第2クロック信号生成部と、前記第1クロック信号及び前記第2クロック信号のうちの一方を前記マスタクロック信号として出力する出力部と、前記マスタクロック信号のパルス数をカウントするカウンタと、を有し、前記出力部は、所定期間内において前記パルス数が所定数に達している場合には前記第2クロック信号を前記マスタクロック信号として出力する一方、前記所定期間内に前記パルス数が前記所定数に満たない場合には前記第1クロック信号を前記マスタクロック信号として出力することを特徴とする。   The present invention has been made to solve the above problem, and a clock generator that generates a master clock signal when a vibrator that oscillates by applying a voltage or an oscillator that oscillates and generates an oscillation signal is connected. A first terminal to which one end of the vibrator is connected or a reference potential is applied; a second terminal to which the other end of the vibrator or the oscillator is connected; and the first and second A first clock signal generator for generating a first clock signal by applying a voltage to the terminal; and a second clock signal is generated based on the oscillation signal when the oscillation signal is supplied via the second terminal. A second clock signal generating unit, an output unit outputting one of the first clock signal and the second clock signal as the master clock signal, and a parameter of the master clock signal. A counter that counts the number of pulses, and the output unit outputs the second clock signal as the master clock signal when the number of pulses reaches a predetermined number within a predetermined period. The first clock signal is output as the master clock signal when the number of pulses does not reach the predetermined number within a predetermined period.

また、本発明に係るクロックソース選択方法は、電圧印加によって発振する振動子、又は自己発振して発振信号を生成する発振器が接続されるとマスタクロック信号を生成するクロック生成装置におけるクロックソース選択方法であって、前記クロック生成装置の第2端子を介して供給された信号を出力信号として出力するステップと、前記出力信号のパルス数をカウントするステップと、所定期間内に前記パルス数が所定数に達しない場合には前記クロック生成装置の第1端子と前記第2端子に電圧を印加することにより前記マスタクロックを生成して出力し、前記所定期間内に前記パルス数が所定数に達した場合には前記第2端子を介して供給された信号を前記マスタクロックとして出力するステップと、を含むことを特徴とする。   The clock source selection method according to the present invention is a clock source selection method in a clock generation device that generates a master clock signal when a vibrator that oscillates by applying a voltage or an oscillator that oscillates and generates an oscillation signal is connected. A step of outputting a signal supplied via the second terminal of the clock generation device as an output signal, a step of counting the number of pulses of the output signal, and the number of pulses within a predetermined period If not, the master clock is generated and output by applying a voltage to the first terminal and the second terminal of the clock generator, and the number of pulses reaches a predetermined number within the predetermined period. In some cases, the method includes a step of outputting a signal supplied via the second terminal as the master clock.

本発明によれば、温度変化、製造ばらつきに拘わらず、接続された振動子又は発振器がパッシブ駆動型であるのかアクティブ駆動型であるのかを自動的に判別して、クロックの生成を行うことが可能なクロック生成装置を提供することが可能となる。   According to the present invention, it is possible to automatically determine whether a connected vibrator or oscillator is a passive drive type or an active drive type and generate a clock regardless of temperature changes and manufacturing variations. It is possible to provide a possible clock generation device.

本発明に係るクロック生成装置の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the clock generator based on this invention. クロックソース選択回路の構成を示すブロック図である。It is a block diagram which shows the structure of a clock source selection circuit. 水晶振動子XTが接続された場合のクロック生成装置の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the clock generation apparatus when the crystal oscillator XT is connected. 水晶振動子XTが接続された場合のクロック生成装置の動作を示すタイムチャートである。It is a time chart which shows operation | movement of the clock generation apparatus when the crystal oscillator XT is connected. TCXOが接続された場合のクロック生成装置の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the clock generation apparatus when TCXO is connected. TCXOが接続された場合のクロック生成装置の動作を示すタイムチャートである。It is a time chart which shows operation | movement of the clock generation apparatus when TCXO is connected.

以下、本発明の実施例を図面を参照しつつ詳細に説明する。図1は、本発明に係るクロック生成装置10の構成を示すブロック図である。XI端子11は、水晶振動子または接地電位(GND)を接続するための第1端子である。XO/TCXO端子12は、水晶振動子XT又は発振器としての例えばTCXO(Temperature Compensated Crystal Oscillator)を接続するための第2端子である。クロック生成装置10は、水晶振動子またはTCXOが接続されることにより、クロック生成モジュールを構成する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a clock generator 10 according to the present invention. The XI terminal 11 is a first terminal for connecting a crystal resonator or a ground potential (GND). The XO / TCXO terminal 12 is a second terminal for connecting a crystal resonator XT or a TCXO (Temperature Compensated Crystal Oscillator) as an oscillator. The clock generation device 10 constitutes a clock generation module by connecting a crystal resonator or a TCXO.

水晶振動子は、XI端子11及びXO/TCXO端子12を介してクロック生成装置10から電圧を印加されることによって発振する、パッシブ型の振動子である。したがって、水晶振動子を用いる場合、XI端子11及びXO/TCXO端子12に水晶振動子を接続し、電圧を印加する。   The crystal resonator is a passive resonator that oscillates when a voltage is applied from the clock generation device 10 via the XI terminal 11 and the XO / TCXO terminal 12. Therefore, when a crystal resonator is used, the crystal resonator is connected to the XI terminal 11 and the XO / TCXO terminal 12 and a voltage is applied.

TCXOは、水晶振動子と共にその周波数温度特性を補正する温度補償用回路や反転増幅器等を備えており、クロック生成装置10側からの電圧供給を受けることなく自己発振して発振信号を生成するアクティブ駆動型の発振器である。したがって、発振器としてTCXOを用いる場合、XO/TCXO端子12にTCXO振動子を接続し、XI端子11には接地電位を印加する。   The TCXO is provided with a temperature compensation circuit for correcting the frequency temperature characteristic, an inverting amplifier, and the like together with a crystal resonator, and is an active device that generates an oscillation signal by self-oscillation without receiving a voltage supply from the clock generator 10 side. It is a drive type oscillator. Therefore, when TCXO is used as the oscillator, a TCXO vibrator is connected to the XO / TCXO terminal 12 and a ground potential is applied to the XI terminal 11.

スイッチ13は、クロックソース選択回路19からのクロックソース選択信号CSに応じて、スイッチング端子13aとスイッチング端子13bとを接続又は非接続とする。例えば、クロックソース選択信号CSが論理レベル1の場合にはスイッチング端子13aと13bとを接続(すなわち、ON)し、クロックソース選択信号CSが論理レベル0の場合にはスイッチング端子13aとスイッチング端子13bとを非接続(すなわち、OFF)とする。すなわち、スイッチ13は、クロックソース選択信号CSが論理レベル1の場合にはXI端子11とインバータ15とを接続し、クロックソース選択信号CSが論理レベル0の場合にはXI端子11とインバータ15との間の接続を遮断する。スイッチ13は、クロック生成装置10の電源投入時にはOFFの状態となるように設定されている。   The switch 13 connects or disconnects the switching terminal 13a and the switching terminal 13b in accordance with the clock source selection signal CS from the clock source selection circuit 19. For example, when the clock source selection signal CS is at logic level 1, the switching terminals 13a and 13b are connected (that is, turned on), and when the clock source selection signal CS is at logic level 0, the switching terminals 13a and 13b are connected. Are not connected (that is, OFF). That is, the switch 13 connects the XI terminal 11 and the inverter 15 when the clock source selection signal CS is at the logic level 1, and connects the XI terminal 11 and the inverter 15 when the clock source selection signal CS is at the logic level 0. Block the connection between. The switch 13 is set to be in an OFF state when the clock generator 10 is turned on.

スイッチ14は、クロックソース選択信号CSに応じて、スイッチング端子14aをスイッチング端子14b及びスイッチング端子14cのうちの一方と接続する。例えば、クロックソース選択信号CSが論理レベル1の場合にはスイッチング端子14aと14bとを接続し、クロックソース選択信号CSが論理レベル0の場合にはスイッチング端子14aと14cとを接続する。すなわち、スイッチ14は、クロックソース選択信号CSが論理レベル1の場合にはXO/TCXO端子12とヒステリシスコンパレータ16とを接続し、クロックソース選択信号CSが論理レベル0の場合にはXO/TCXO端子12とバッファ17とを接続する。スイッチ14は、クロック生成装置10の電源投入時にはスイッチング端子14aと14cとを接続した状態となるように設定されている。   The switch 14 connects the switching terminal 14a to one of the switching terminal 14b and the switching terminal 14c according to the clock source selection signal CS. For example, when the clock source selection signal CS is at logic level 1, the switching terminals 14a and 14b are connected, and when the clock source selection signal CS is at logic level 0, the switching terminals 14a and 14c are connected. That is, the switch 14 connects the XO / TCXO terminal 12 and the hysteresis comparator 16 when the clock source selection signal CS is at logic level 1, and the XO / TCXO terminal when the clock source selection signal CS is at logic level 0. 12 and the buffer 17 are connected. The switch 14 is set so that the switching terminals 14a and 14c are connected when the clock generator 10 is turned on.

インバータ15は、スイッチ13を介してXI端子11から供給された発振信号を反転し、その信号レベルを増幅した信号を反転増幅信号ASとしてヒステリシスコンパレータ16及びスイッチ14のスイッチング端子14bに供給する。   The inverter 15 inverts the oscillation signal supplied from the XI terminal 11 through the switch 13 and supplies a signal obtained by amplifying the signal to the hysteresis comparator 16 and the switching terminal 14b of the switch 14 as an inverted amplification signal AS.

ヒステリシスコンパレータ16は、反転増幅信号ASを2値化し、これをクロック信号CK1としてセレクタ18に供給する。   The hysteresis comparator 16 binarizes the inverted amplified signal AS and supplies it to the selector 18 as the clock signal CK1.

バッファ17は、スイッチ14を介してXO/TCXO端子12から供給された発振信号を2値化して増幅し、これをクロック信号CK2としてセレクタ18に供給する。   The buffer 17 binarizes and amplifies the oscillation signal supplied from the XO / TCXO terminal 12 via the switch 14, and supplies this to the selector 18 as the clock signal CK2.

セレクタ18は、クロックソース選択信号CSに応じて、CK1又はCK2のいずれか一方を選択し、選択した方の信号をマスタクロックMCとして出力する。すなわち、セレクタ18は、クロック信号を出力するクロック信号出力部である。例えば、セレクタ18は、クロックソース選択信号CSが論理レベル1の場合にはCK1を選択して、これをマスタクロックMCとして内部回路及びクロックソース選択回路19に供給する。他方、クロックソース選択信号CSが論理レベル0の場合、セレクタ18はCK2を選択し、これをマスタクロックMCとして内部回路及びクロックソース選択回路19に供給する。なお、セレクタ18は、クロック生成装置10の電源投入時にはCK2を選択した状態となるように設定されている。   The selector 18 selects either CK1 or CK2 according to the clock source selection signal CS, and outputs the selected signal as the master clock MC. That is, the selector 18 is a clock signal output unit that outputs a clock signal. For example, when the clock source selection signal CS is at logic level 1, the selector 18 selects CK1 and supplies it to the internal circuit and the clock source selection circuit 19 as the master clock MC. On the other hand, when the clock source selection signal CS is at logic level 0, the selector 18 selects CK2, and supplies this to the internal circuit and the clock source selection circuit 19 as the master clock MC. The selector 18 is set so that CK2 is selected when the clock generator 10 is turned on.

クロックソース選択回路19は、マスタクロックMCに基づいて、クロックソース選択信号CSを生成してスイッチ13、スイッチ14及びセレクタ18に供給する。   The clock source selection circuit 19 generates a clock source selection signal CS based on the master clock MC and supplies the clock source selection signal CS to the switch 13, the switch 14, and the selector 18.

図2は、クロックソース選択回路19の構成を示すブロック図である。クロックソース選択回路19は、カウンタ21、レジスタ22、比較回路23、インバータ24、インバータ25、セレクタ26、FF(Flip Flop)27及び低速クロック発振回路28を含む。   FIG. 2 is a block diagram showing a configuration of the clock source selection circuit 19. The clock source selection circuit 19 includes a counter 21, a register 22, a comparison circuit 23, an inverter 24, an inverter 25, a selector 26, an FF (Flip Flop) 27, and a low-speed clock oscillation circuit 28.

カウンタ21は、マスタクロックMCの供給を受け、これを動作クロックとしてアップカウントを行う。すなわち、カウンタ21は、マスタクロックMCの信号パルスをカウントする。カウンタ21は、カウント値CNを比較回路23に供給する。   The counter 21 receives the master clock MC and performs up-counting using this as the operation clock. That is, the counter 21 counts signal pulses of the master clock MC. The counter 21 supplies the count value CN to the comparison circuit 23.

レジスタ22は、所定の固定値FN(FNは自然数)を記憶し、これを比較回路23に供給する。FNは、例えば“7”である。   The register 22 stores a predetermined fixed value FN (FN is a natural number) and supplies it to the comparison circuit 23. The FN is, for example, “7”.

比較回路23は、カウント値CNと固定値FNとを比較し、これらが一致している場合に論理レベル1、一致していない場合には論理レベル0の比較信号TSをインバータ24及びセレクタ26に供給する。   The comparison circuit 23 compares the count value CN and the fixed value FN, and if they match, the comparison signal TS of the logic level 1 is sent to the inverter 24 and the selector 26 if they do not match. Supply.

インバータ24は、比較信号TSのレベルを反転したイネーブル信号ENを、カウンタ21に供給する。   The inverter 24 supplies an enable signal EN obtained by inverting the level of the comparison signal TS to the counter 21.

インバータ25は、FF27から出力されたクロックソース選択信号CSを反転し、これを反転信号RSとしてセレクタ26に供給する。   The inverter 25 inverts the clock source selection signal CS output from the FF 27 and supplies this to the selector 26 as an inverted signal RS.

セレクタ26は、クロックソース選択信号CS及び反転信号RSのうちのいずれか一方を比較信号TSに応じて選択し、これを選択信号SSとしてFF27に供給する。例えば、セレクタ26は、比較信号TSが論理レベル1である場合にはクロックソース選択信号CS、論理レベル0である場合には反転増幅信号RSを選択し、これを選択信号SSとしてFF27に供給する。   The selector 26 selects one of the clock source selection signal CS and the inverted signal RS according to the comparison signal TS, and supplies this to the FF 27 as the selection signal SS. For example, the selector 26 selects the clock source selection signal CS when the comparison signal TS is at the logic level 1, and selects the inverted amplification signal RS when the comparison signal TS is at the logic level 0, and supplies this to the FF 27 as the selection signal SS. .

FF27は、低速クロック発振回路28から供給された低速クロック信号LSの立ち上がりエッジに同期して選択信号SSをラッチし、これをクロックソース選択信号CSとして出力する。すなわち、クロックソース選択信号出力部としてのFF27は、クロックソース選択信号CSをスイッチ13、スイッチ14及びセレクタ18に供給する。   The FF 27 latches the selection signal SS in synchronization with the rising edge of the low-speed clock signal LS supplied from the low-speed clock oscillation circuit 28, and outputs this as the clock source selection signal CS. That is, the FF 27 as the clock source selection signal output unit supplies the clock source selection signal CS to the switch 13, the switch 14, and the selector 18.

低速クロック発振回路28は、クロック生成装置10の電源投入時から所定時間T1経過後に立ち上がる低周波数の低速クロック信号LSを生成し、これをFF27のクロック入力端子に供給する。   The low-speed clock oscillation circuit 28 generates a low-frequency low-speed clock signal LS that rises after a predetermined time T1 has elapsed since the clock generator 10 was turned on, and supplies this to the clock input terminal of the FF 27.

次に、クロック生成装置10の動作について説明する。   Next, the operation of the clock generator 10 will be described.

[水晶振動子が接続された場合]
図3は、水晶振動子XTが接続された状態で電源が投入された直後のクロック生成装置10の構成を示すブロック図である。水晶振動子XTは、一端がXI端子11に接続され、他端がXO/TCXO端子12に接続されている。また、水晶振動子XTの一端及びXI端子11は、コンデンサC1を介して接地電位に接続されている。水晶振動子XTの他端及びXO/TCXO端子12は、コンデンサC2を介して接地電位に接続されている。スイッチ13はOFF状態であり、スイッチ14はスイッチング端子14aと14cとを接続した状態にある。
[When a crystal unit is connected]
FIG. 3 is a block diagram showing the configuration of the clock generation device 10 immediately after the power is turned on with the crystal resonator XT connected. The crystal resonator XT has one end connected to the XI terminal 11 and the other end connected to the XO / TCXO terminal 12. One end of the crystal unit XT and the XI terminal 11 are connected to the ground potential via the capacitor C1. The other end of the crystal unit XT and the XO / TCXO terminal 12 are connected to the ground potential via the capacitor C2. The switch 13 is in an OFF state, and the switch 14 is in a state where the switching terminals 14a and 14c are connected.

図4は、水晶振動子XTが接続された状態で電源が投入された直後のクロック生成装置10及びクロックソース選択回路19の内部の動作を示すタイムチャートである。以下、低速クロック発振回路28の出力信号である低速クロック信号LSが時点T1で立ち上がる場合を例として、各部の動作を説明する。   FIG. 4 is a time chart showing the internal operations of the clock generation device 10 and the clock source selection circuit 19 immediately after the power is turned on with the crystal resonator XT connected. Hereinafter, the operation of each unit will be described by taking as an example the case where the low-speed clock signal LS, which is the output signal of the low-speed clock oscillation circuit 28, rises at time T1.

(電源投入から時点T1まで)
クロック生成装置10の電源投入直後はスイッチ13がOFFの状態であるため、水晶振動子XTは発振せず、発振信号はXI端子11に入力されない(図4(a))。また、水晶振動子XTが発振しないため、XO/TCXO端子12にも発振信号は入力されない(図4(b))。
(From power on until T1)
Since the switch 13 is in an OFF state immediately after the clock generator 10 is turned on, the crystal resonator XT does not oscillate, and the oscillation signal is not input to the XI terminal 11 (FIG. 4A). In addition, since the crystal resonator XT does not oscillate, no oscillation signal is input to the XO / TCXO terminal 12 (FIG. 4B).

発振信号がXI端子11から入力されないため、ヒステリシスコンパレータ16は論理レベル0のクロック信号CK1をセレクタ18に供給する(図4(c))。また、XO/TCXO端子12からの発振信号が入力されないため、バッファ17は論理レベル0のクロック信号CK2をセレクタ18に供給する(図4(d))。   Since the oscillation signal is not input from the XI terminal 11, the hysteresis comparator 16 supplies the clock signal CK1 having the logic level 0 to the selector 18 (FIG. 4C). Further, since the oscillation signal from the XO / TCXO terminal 12 is not input, the buffer 17 supplies the clock signal CK2 having the logic level 0 to the selector 18 (FIG. 4 (d)).

セレクタ18は、クロック生成装置10の電源投入直後はバッファ17を選択しているため、クロック信号CK2をマスタクロックMCとして出力する。したがって、マスタクロックMCは論理レベル0となる(図4(e))。   Since the selector 18 selects the buffer 17 immediately after the clock generator 10 is powered on, the selector 18 outputs the clock signal CK2 as the master clock MC. Therefore, the master clock MC becomes a logic level 0 (FIG. 4 (e)).

クロックソース選択回路19のカウンタ21は、マスタクロックMCの信号パルスをカウントする。このため、マスタクロックMCが論理レベル0である間、カウンタ21はアップカウントを行わない(図4(f))。   The counter 21 of the clock source selection circuit 19 counts signal pulses of the master clock MC. Therefore, the counter 21 does not count up while the master clock MC is at the logic level 0 (FIG. 4 (f)).

比較回路23は、カウンタ21から供給されるカウント値CNが0であるため、レジスタ22に記憶された固定値FN、例えば、“7”とカウント値CNとが不一致であることを示す論理レベル0の比較信号TSをセレクタ26に供給する(図4(g))。   Since the count value CN supplied from the counter 21 is 0, the comparison circuit 23 has a logic level 0 indicating that the fixed value FN stored in the register 22, for example, “7” does not match the count value CN. The comparison signal TS is supplied to the selector 26 (FIG. 4G).

セレクタ26は、論理レベル0の比較信号TSに応じて、インバータ25からの反転信号RSを選択し、これを選択信号SSとしてFF27に供給する。すなわち、セレクタ26は、論理レベル0のクロックソース選択信号CSを反転した論理レベル1の信号を選択信号SSとして、FF27に供給する(図4(h))。   The selector 26 selects the inverted signal RS from the inverter 25 according to the comparison signal TS of the logic level 0, and supplies this to the FF 27 as the selection signal SS. That is, the selector 26 supplies the FF 27 with a logic level 1 signal obtained by inverting the logic level 0 clock source selection signal CS as the selection signal SS (FIG. 4 (h)).

低速クロック発振回路28は、時点T1までの間、論理レベル0の低速クロック信号LSを出力する(図4(i))。   The low-speed clock oscillation circuit 28 outputs a low-speed clock signal LS having a logic level 0 until time T1 (FIG. 4 (i)).

FF27は、低速クロック発振回路28から供給された低速クロック信号LSが論理レベル0の間、セレクタ26からの選択信号SSをラッチせず、論理レベル0のクロックソース選択信号CSを出力する(図4(j))。   While the low-speed clock signal LS supplied from the low-speed clock oscillation circuit 28 is at the logic level 0, the FF 27 does not latch the selection signal SS from the selector 26 and outputs the clock source selection signal CS at the logic level 0 (FIG. 4). (J)).

(時点T1以降)
低速クロック信号LSは、時点T1で立ち上がり、論理レベル1となる。低速クロック発振回路28は、時点T1以降、論理レベル1の低速クロック信号LSを出力する(図4(h))。
(After time T1)
The low-speed clock signal LS rises at time T1 and becomes a logic level 1. The low-speed clock oscillation circuit 28 outputs a low-speed clock signal LS having a logic level 1 after time T1 (FIG. 4 (h)).

時点T1では、FF27には、インバータ25の出力信号、すなわち論理レベル0のクロックソース選択信号CSを反転した論理レベル1の選択信号SSが供給されている。そのため、FF27は、低速クロック信号LSの立ち上がりに同期して、セレクタ26から供給された論理レベル1の選択信号SSをラッチし、論理レベル1のクロックソース選択信号CSを論理レベル1に切り換える(図4(i))。   At time T1, the output signal of the inverter 25, that is, the logic level 1 selection signal SS obtained by inverting the logic level 0 clock source selection signal CS is supplied to the FF 27. Therefore, the FF 27 latches the logic level 1 selection signal SS supplied from the selector 26 in synchronization with the rising edge of the low-speed clock signal LS, and switches the logic level 1 clock source selection signal CS to the logic level 1 (FIG. 4 (i)).

論理レベル1のクロックソース選択信号CSにより、スイッチ13はON状態となり、スイッチ14はスイッチング端子14aと14bとを接続した状態となる。これにより、インバータ15の入力端子がXI端子11、出力端子がXO/TCXO端子12に接続された状態となり、XI端子11及びXO/TCXO端子12に電圧が印加され、水晶振動子XTが発振する(図4(a)、(b))。   In response to the clock source selection signal CS of logic level 1, the switch 13 is turned on, and the switch 14 is connected to the switching terminals 14a and 14b. As a result, the input terminal of the inverter 15 is connected to the XI terminal 11 and the output terminal is connected to the XO / TCXO terminal 12, voltage is applied to the XI terminal 11 and the XO / TCXO terminal 12, and the crystal resonator XT oscillates. (FIGS. 4A and 4B).

ヒステリシスコンパレータ16は、インバータ15を介して供給された反転増幅信号ASを2値化した発振信号を、クロック信号CK1としてセレクタ18に供給する(図4(c))。   The hysteresis comparator 16 supplies an oscillation signal obtained by binarizing the inverted amplification signal AS supplied via the inverter 15 to the selector 18 as the clock signal CK1 (FIG. 4C).

この間、スイッチ14のスイッチング端子14aと14cとが非接続の状態となり、バッファ17には発振信号が供給されないため、バッファ17は論理レベル0のクロック信号CK2をセレクタ18に供給する(図4(d))。   During this time, the switching terminals 14a and 14c of the switch 14 are disconnected and no oscillation signal is supplied to the buffer 17, so the buffer 17 supplies the clock signal CK2 of logic level 0 to the selector 18 (FIG. 4 (d) )).

セレクタ18は、論理レベル1のクロックソース選択信号CSの供給を受け、クロック信号CK1を選択し、これをマスタクロックMCとして出力する(図4(e))。   The selector 18 receives the logic level 1 clock source selection signal CS, selects the clock signal CK1, and outputs it as the master clock MC (FIG. 4E).

カウンタ21は、マスタクロックMCの信号パルスをアップカウントする。カウンタ21のカウント値が“7”に到ると、比較回路23は、カウント値CNと固定値FNとが一致したことを示す論理レベル1の比較信号TSを、インバータ24及びセレクタ26に供給する(図4(g))。   The counter 21 counts up the signal pulse of the master clock MC. When the count value of the counter 21 reaches “7”, the comparison circuit 23 supplies the inverter 24 and the selector 26 with a comparison signal TS having a logic level 1 indicating that the count value CN matches the fixed value FN. (FIG. 4 (g)).

インバータ24は、論理レベル1の比較信号TSを反転した論理レベル0の信号をカウンタ21に供給する。カウント値が“7”になった時点T2で、カウンタ21はディセーブル状態となり、カウント動作を停止する(図4(f))。   The inverter 24 supplies the counter 21 with a logic level 0 signal obtained by inverting the logic level 1 comparison signal TS. At time T2 when the count value becomes “7”, the counter 21 is disabled and stops the counting operation (FIG. 4 (f)).

セレクタ26は、論理レベル1の比較信号TSに応じて、クロックソース選択信号CSを選択して、FF27に供給する(図4(i))。   The selector 26 selects the clock source selection signal CS according to the comparison signal TS of the logic level 1 and supplies it to the FF 27 (FIG. 4 (i)).

よって、FF27は、時点T2以後も、論理レベル1のクロックソース選択信号CSの出力を維持する(図4(j))。   Therefore, the FF 27 maintains the output of the clock source selection signal CS at the logic level 1 even after the time T2 (FIG. 4 (j)).

[TCXOが接続された場合]
図5は、TCXOが接続された状態で電源が投入された直後のクロック生成装置10の構成を示すブロック図である。TCXOは、XO/TCXO端子12に接続されている。XI端子11には、接地電位が印加されている。スイッチ13はOFF状態であり、スイッチ14はスイッチング端子14aと14cとを接続した状態にある。
[When TCXO is connected]
FIG. 5 is a block diagram illustrating a configuration of the clock generation device 10 immediately after power is turned on with the TCXO connected. The TCXO is connected to the XO / TCXO terminal 12. A ground potential is applied to the XI terminal 11. The switch 13 is in an OFF state, and the switch 14 is in a state where the switching terminals 14a and 14c are connected.

図6は、TCXOが接続された状態で電源が投入された直後のクロック生成装置10及びクロックソース選択回路19の内部の動作を示すタイムチャートである。   FIG. 6 is a time chart showing the internal operations of the clock generation device 10 and the clock source selection circuit 19 immediately after the power is turned on with the TCXO connected.

XI端子11には接地電位が印加されており(図6(a))、XO/TCXO端子12にはTCXOの発振信号が入力される(図6(b))。   A ground potential is applied to the XI terminal 11 (FIG. 6A), and a TCXO oscillation signal is input to the XO / TCXO terminal 12 (FIG. 6B).

発振信号がXI端子11から入力されないため、ヒステリシスコンパレータ16は論理レベル0のクロック信号CK1をセレクタ18に供給する(図6(c))。バッファ17にはXO/TCXO端子12、スイッチ14を介してTCXOの発振信号が供給される。バッファ17は、これを2値化して得た発振信号をクロック信号CK2としてセレクタ18に供給する(図6(d))。   Since the oscillation signal is not input from the XI terminal 11, the hysteresis comparator 16 supplies the clock signal CK1 having the logic level 0 to the selector 18 (FIG. 6C). A TCXO oscillation signal is supplied to the buffer 17 via the XO / TCXO terminal 12 and the switch 14. The buffer 17 supplies an oscillation signal obtained by binarizing this to the selector 18 as a clock signal CK2 (FIG. 6 (d)).

この間、セレクタ18は、クロック信号CK2を選択しているため、これをマスタクロックMCとして出力する(図6(e))。   During this time, the selector 18 selects the clock signal CK2, and outputs it as the master clock MC (FIG. 6 (e)).

クロックソース選択回路19のカウンタ21は、マスタクロックMCの信号パルスをアップカウントする(図6(f))。   The counter 21 of the clock source selection circuit 19 up-counts the signal pulses of the master clock MC (FIG. 6 (f)).

比較回路23は、カウンタ21によるカウント値CNが“7”に達するまでの間は、カウント値CNと固定値FNとが不一致であることを示す論理レベル0の比較信号TSを、インバータ24及びセレクタ26に供給する。カウント値が“7”になると、比較回路23は、カウント値CNと固定値FNとが一致したことを示す論理レベル1の比較信号TSを、インバータ24及びセレクタ26に供給する(図6(g))。   Until the count value CN of the counter 21 reaches “7”, the comparison circuit 23 outputs a comparison signal TS of logic level 0 indicating that the count value CN and the fixed value FN do not match with the inverter 24 and the selector 24. 26. When the count value becomes “7”, the comparison circuit 23 supplies the inverter 24 and the selector 26 with the comparison signal TS of the logic level 1 indicating that the count value CN matches the fixed value FN (FIG. 6 (g )).

インバータ24は、論理レベル1の比較信号TSを反転した論理レベル0のイネーブル信号ENをカウンタ21に供給する。カウント値が“7”になった時点T0で、カウンタ21はディセーブル状態となり、カウント動作を停止する(図6(f))。   The inverter 24 supplies the counter 21 with a logic level 0 enable signal EN obtained by inverting the logic level 1 comparison signal TS. At the time T0 when the count value becomes “7”, the counter 21 is disabled and stops the counting operation (FIG. 6 (f)).

セレクタ26は、時点T0までは、比較回路23から論理レベル0の比較信号TSの供給を受けるため、インバータ25からの反転信号RSを選択してFF27に供給する。すなわち、時点T0までの間、セレクタ26は、論理レベル1の選択信号SSをFF27に供給する。時点T0以降は、比較回路23から論理レベル1の比較信号TSの供給を受けるため、セレクタ26は、クロックソース選択信号CSを選択してFF27に供給する。すなわち、時点T0以降は、セレクタ26は、論理レベル0の選択信号SSをFF27に供給する(図6(h))。   Since the selector 26 receives the comparison signal TS of the logic level 0 from the comparison circuit 23 until the time T0, the selector 26 selects the inverted signal RS from the inverter 25 and supplies it to the FF 27. That is, until the time point T0, the selector 26 supplies the selection signal SS of the logic level 1 to the FF 27. After time T0, since the comparison signal TS of the logic level 1 is received from the comparison circuit 23, the selector 26 selects the clock source selection signal CS and supplies it to the FF 27. That is, after the time point T0, the selector 26 supplies the selection signal SS of logic level 0 to the FF 27 (FIG. 6 (h)).

低速クロック発振回路28は、時点T1まで論理レベル0の低速クロック信号LSを出力し、時点T1以降は、論理レベル1の低速クロック信号LSの出力を維持する(図6(i))。   The low-speed clock oscillation circuit 28 outputs the low-speed clock signal LS having the logic level 0 until time T1, and maintains the output of the low-speed clock signal LS having the logic level 1 after time T1 (FIG. 6 (i)).

FF27には、低速クロック信号LSが立ち上がる時点T1で、論理レベル0の選択信号SSが供給されている。したがって、FF27は、時点の如何にかかわらず、論理レベル0のクロックソース選択信号CSを出力する(図6(j))。   The selection signal SS of logic level 0 is supplied to the FF 27 at the time T1 when the low-speed clock signal LS rises. Therefore, the FF 27 outputs the clock source selection signal CS having the logic level 0 regardless of the time (FIG. 6 (j)).

以上のように、図1に示すクロック生成装置10では、まず、パッシブ駆動型である水晶振動子用の発振回路(15、16)と第1の入力端子(11)との接続を第1のスイッチ(13)にて遮断した状態で、第2の入力端子(12)からの信号のパルス数をカウンタ(21)によってカウントする。   As described above, in the clock generation device 10 shown in FIG. 1, first, the connection between the oscillation circuit (15, 16) for the crystal resonator of the passive drive type and the first input terminal (11) is the first. The number of pulses of the signal from the second input terminal (12) is counted by the counter (21) while being shut off by the switch (13).

ここで、電源投入時から所定期間経過した時点(T1)でカウンタのカウント値(CN)が所定値(FN)に到らなかった場合には、クロック生成装置10は、第1及び第2の入力端子に水晶振動子が接続されていると判断し、第1のスイッチにて第1の入力端子と発振回路とを接続する。これにより、第1及び第2の入力端子に接続された水晶振動子が発振動作を開始する。よって、この際、クロック生成装置10は、発振回路において生成されたクロック信号(CK1)をマスタクロック(MC)として出力する。   Here, when the count value (CN) of the counter does not reach the predetermined value (FN) at the time (T1) when a predetermined period has elapsed since the power was turned on, the clock generation device 10 performs the first and second operations. It is determined that a crystal resonator is connected to the input terminal, and the first input terminal and the oscillation circuit are connected by the first switch. Thereby, the crystal resonator connected to the first and second input terminals starts an oscillation operation. Therefore, at this time, the clock generation device 10 outputs the clock signal (CK1) generated in the oscillation circuit as the master clock (MC).

一方、電源投入時から所定期間経過した時点でカウンタのカウント値が所定値に到達した場合には、クロック生成装置10は、第2の入力端子にアクティブ駆動型の発振器であるTCXOが接続されていると判断し、第2の入力端子から供給された信号を2値化して増幅(17)して得たクロック信号(CK2)を、マスタクロックとして出力する。   On the other hand, when the count value of the counter reaches a predetermined value when a predetermined period has elapsed since the power was turned on, the clock generation device 10 is connected to the second input terminal of the TCXO that is an active drive type oscillator. The clock signal (CK2) obtained by binarizing and amplifying (17) the signal supplied from the second input terminal is output as a master clock.

かかる構成により、クロック生成装置10は、接続された振動子又は発振器が水晶振動子のようなパッシブ駆動型の振動子であるのか、又はTCXOのようなアクティブ駆動型の発振器であるのかを自動的に判定し、その接続された振動子又は発振器に対応した処理回路によって生成されたクロック信号をマスタクロックとして出力するようにしている。   With this configuration, the clock generation device 10 automatically determines whether the connected oscillator or oscillator is a passive drive oscillator such as a crystal oscillator or an active drive oscillator such as TCXO. The clock signal generated by the processing circuit corresponding to the connected vibrator or oscillator is output as a master clock.

よって、クロック生成装置10によれば、接続されている振動子又は発振器自体の出力レベルに基づきその振動子又は発振器がアクティブ型であるのか或いはパッシブ型であるのかを判断する場合に比べて、環境温度及び製造ばらつきの影響による誤動作のリスクを回避することが可能となる。つまり、クロック生成装置10によれば、環境温度の変化及び製造ばらつきが生じていても、接続されている振動子又は発振器がアクティブ型の発振器(例えばTCXO)であるのか或いはパッシブ型の振動子(水晶振動子)であるのかを正しく判断し、その振動子又は発振器に対応したクロック信号の生成処理を施すことが可能となるのである。   Therefore, according to the clock generation device 10, the environment is compared with the case of determining whether the vibrator or the oscillator is an active type or a passive type based on the output level of the connected vibrator or the oscillator itself. It is possible to avoid the risk of malfunction due to the effects of temperature and manufacturing variations. That is, according to the clock generation device 10, even if environmental temperature changes and manufacturing variations occur, the connected vibrator or oscillator is an active oscillator (eg, TCXO) or a passive vibrator ( Therefore, it is possible to correctly determine whether it is a crystal resonator and generate a clock signal corresponding to the resonator or oscillator.

なお、上記実施例では、振動子として水晶振動子を用いる例について説明した。しかし、これに限られず、例えばセラミック発振子等の他のパッシブ駆動型の振動子を用いてもよい。また、発振器としてTCXOを用いる例について説明した。しかし、これに限られず、例えばSPXO(Single Package Crystal Oscillator)等の他のアクティブ駆動型の発振器を用いてもよい。   In the above embodiment, an example in which a crystal resonator is used as the resonator has been described. However, the present invention is not limited to this, and other passive drive type vibrators such as ceramic oscillators may be used. Moreover, the example using TCXO as an oscillator was demonstrated. However, the present invention is not limited to this, and other active drive type oscillators such as SPXO (Single Package Crystal Oscillator) may be used.

また、上記実施例では、TCXOを用いる場合に、XI端子11を接地電位に接続する例について示した。しかし、これに限られず、所定の固定電位に接続されるものであればよい。   In the above-described embodiment, an example in which the XI terminal 11 is connected to the ground potential when TCXO is used has been described. However, the present invention is not limited to this, and any connection is possible as long as it is connected to a predetermined fixed potential.

また、上記実施例では、インバータ15から供給された反転増幅信号ASをヒステリシスコンパレータ16が2値化し、XO/TCXO端子12から入力された発振信号をバッファ17が2値化する構成について説明した。しかし、バッファ17としてヒステリシスコンパレータを用いてもよく、ヒステリシスコンパレータ16をバッファにより構成してもよい。つまり、ヒステリシスコンパレータ16は、第1端子11を介して供給された発振信号に基づいて2値化したクロック信号を生成するものであればよい。また、バッファ17は、第2端子12を介して供給された発振信号に基づいて2値化したクロック信号を生成するものであればよい。   In the above embodiment, the configuration in which the hysteresis comparator 16 binarizes the inverted amplified signal AS supplied from the inverter 15 and the buffer 17 binarizes the oscillation signal input from the XO / TCXO terminal 12 has been described. However, a hysteresis comparator may be used as the buffer 17, and the hysteresis comparator 16 may be constituted by a buffer. That is, the hysteresis comparator 16 only needs to generate a binarized clock signal based on the oscillation signal supplied via the first terminal 11. The buffer 17 only needs to generate a binarized clock signal based on the oscillation signal supplied via the second terminal 12.

また、上記実施例では、クロック生成装置10は、電源投入直後には、スイッチ13がOFF、スイッチ14がスイッチング端子14aと14cとを接続した状態、セレクタ18がクロック信号CK2を選択した状態となるように設定されている例について説明した。しかし、これとは異なり、クロック生成装置10が、電源投入直後、スイッチ13がON、スイッチ14がスイッチング端子14aと14bとを接続した状態、セレクタ18がクロック信号CK1を選択した状態となるように設定してもよい。   In the above embodiment, immediately after the power is turned on, the clock generator 10 is in the state in which the switch 13 is OFF, the switch 14 is connected to the switching terminals 14a and 14c, and the selector 18 is in the state of selecting the clock signal CK2. The example set as described above has been described. However, unlike this, the clock generator 10 is in a state in which the switch 13 is turned on immediately after the power is turned on, the switch 14 is connected to the switching terminals 14a and 14b, and the selector 18 is in the state in which the clock signal CK1 is selected. It may be set.

10 クロック生成装置
11 XI端子
12 XO/TCXO端子
13、14 スイッチ
15 インバータ
16 ヒステリシスコンパレータ
17 バッファ
18 セレクタ
19 クロックソース選択回路
21 カウンタ
22 レジスタ
23 比較回路
24、25 インバータ
26 セレクタ
27 FF
28 低速クロック発振回路
DESCRIPTION OF SYMBOLS 10 Clock generator 11 XI terminal 12 XO / TCXO terminal 13, 14 Switch 15 Inverter 16 Hysteresis comparator 17 Buffer 18 Selector 19 Clock source selection circuit 21 Counter 22 Register 23 Comparison circuit 24, 25 Inverter 26 Selector 27 FF
28 Low-speed clock oscillation circuit

Claims (9)

電圧印加によって発振する振動子、又は自己発振して発振信号を生成する発振器が接続されるとマスタクロック信号を生成するクロック生成装置であって、
前記振動子の一端が接続される又は基準電位が印加される第1端子と、
前記振動子の他端又は前記発振器が接続される第2端子と、
前記第1及び前記第2端子に電圧を印加することにより第1クロック信号を生成する第1クロック信号生成部と、
前記第2端子を介して前記発振信号が供給された場合に前記発振信号に基づき第2クロック信号を生成する第2クロック信号生成部と、
前記第1クロック信号及び前記第2クロック信号のうちの一方を前記マスタクロック信号として出力する出力部と、
前記マスタクロック信号のパルス数をカウントするカウンタと、を有し、
前記出力部は、所定期間内において前記パルス数が所定数に達している場合には前記第2クロック信号を前記マスタクロック信号として出力する一方、前記所定期間内に前記パルス数が前記所定数に満たない場合には前記第1クロック信号を前記マスタクロック信号として出力することを特徴とするクロック生成装置。
A clock generator that generates a master clock signal when a vibrator that oscillates by applying a voltage or an oscillator that oscillates and generates an oscillation signal is connected,
A first terminal to which one end of the vibrator is connected or a reference potential is applied;
A second terminal to which the other end of the vibrator or the oscillator is connected;
A first clock signal generator for generating a first clock signal by applying a voltage to the first and second terminals;
A second clock signal generator that generates a second clock signal based on the oscillation signal when the oscillation signal is supplied via the second terminal;
An output unit for outputting one of the first clock signal and the second clock signal as the master clock signal;
A counter for counting the number of pulses of the master clock signal,
The output unit outputs the second clock signal as the master clock signal when the number of pulses reaches a predetermined number within a predetermined period, while the number of pulses reaches the predetermined number within the predetermined period. If not, the clock generation apparatus outputs the first clock signal as the master clock signal.
前記第1端子及び前記第1クロック信号生成部を接続又は非接続とする第1接続切替部と、
前記第2端子を前記第1接続切替部及び前記第2クロック信号生成部のうちのいずれか一方と接続する第2接続切替部と、
を含み、
前記カウンタは、電源投入時点から前記カウントを開始し、
前記第1接続切替部は、前記電源投入時点から前記所定期間の経過時点までは前記第1端子及び前記第1クロック信号生成部を非接続とし、前記所定期間の経過時点で前記パルス数が前記所定数に達しなかった場合には前記第1端子及び前記第1クロック信号生成部を接続し、前記所定期間の経過時点で前記パルス数が前記所定数に達した場合には前記第1端子及び前記第1クロック信号生成部を非接続に維持し、
前記第2接続切替部は、前記電源投入時点から前記所定期間の経過時点までは前記第2端子を前記第2クロック信号生成部と接続し、前記所定期間の経過時点で前記パルス数が前記所定数に達しなかった場合には前記第2端子を前記第1接続切替部とを接続し、前記所定期間の経過時点で前記パルス数が前記所定数に達した場合には前記第2端子と前記第1接続切替部との接続を維持する、
ことを特徴とする請求項1に記載のクロック生成装置。
A first connection switching unit for connecting or disconnecting the first terminal and the first clock signal generation unit;
A second connection switching unit that connects the second terminal to one of the first connection switching unit and the second clock signal generation unit;
Including
The counter starts counting from the time of power-on,
The first connection switching unit disconnects the first terminal and the first clock signal generation unit from the power-on time to the elapse of the predetermined period, and the number of pulses at the elapse of the predetermined period When the predetermined number has not been reached, the first terminal and the first clock signal generation unit are connected, and when the predetermined number of pulses has reached the predetermined number when the predetermined period has elapsed, the first terminal and Maintaining the first clock signal generator unconnected;
The second connection switching unit connects the second terminal to the second clock signal generation unit from the power-on time to the elapse of the predetermined period, and the number of pulses is set to the predetermined time at the elapse of the predetermined period. When the number does not reach the number, the second terminal is connected to the first connection switching unit, and when the number of pulses reaches the predetermined number when the predetermined period elapses, the second terminal and the Maintaining the connection with the first connection switching unit;
The clock generation device according to claim 1.
前記マスタクロック信号に基づいてクロックソース選択信号を生成するクロックソース選択信号生成部をさらに含み、
前記第1接続切替部は、前記クロックソース選択信号に応じて、前記第1端子及び前記第1クロック信号生成部を接続又は非接続に切り替え、
前記第2接続切替部は、前記クロックソース選択信号に応じて、前記第2端子の接続先を前記第1接続切替部又は前記第2クロック信号生成部に切り替え、
前記出力部は、前記クロックソース選択信号に応じて、前記マスタクロック信号として出力する信号を前記第1クロック信号又は前記第2クロック信号に切り替える、
ことを特徴とする請求項2に記載のクロック生成装置。
A clock source selection signal generator for generating a clock source selection signal based on the master clock signal;
The first connection switching unit switches the first terminal and the first clock signal generation unit to connection or non-connection according to the clock source selection signal,
The second connection switching unit switches the connection destination of the second terminal to the first connection switching unit or the second clock signal generation unit according to the clock source selection signal,
The output unit switches a signal to be output as the master clock signal to the first clock signal or the second clock signal according to the clock source selection signal.
The clock generation device according to claim 2, wherein:
前記電源投入時点から前記所定期間の経過時点で立ち上がる低速クロック信号を生成する低速クロック発振回路をさらに含み、
前記クロックソース選択信号生成部は、
前記電源投入時点から前記所定期間の経過時点までは、論理レベル0の前記クロックソース選択信号を生成し、
前記所定期間の経過時点で前記パルス数が前記所定数に達しなかった場合には、前記低速クロック信号の立ち上がりに同期して論理レベル1の前記クロックソース選択信号を生成し、
前記所定期間の経過時点で前記パルス数が前記所定数に達した場合には、論理レベル0の前記クロックソース選択信号を生成する、
ことを特徴とする請求項3に記載のクロック生成装置。
A low-speed clock oscillation circuit that generates a low-speed clock signal that rises at the time when the predetermined period has elapsed since the power-on time;
The clock source selection signal generator is
From the power-on time to the elapse of the predetermined period, the clock source selection signal of logic level 0 is generated,
When the predetermined number of pulses has not reached the predetermined number of pulses, the clock source selection signal of logic level 1 is generated in synchronization with the rising edge of the low-speed clock signal,
When the number of pulses reaches the predetermined number at the elapse of the predetermined period, the clock source selection signal of logic level 0 is generated.
The clock generator according to claim 3.
前記所定数の値を記憶するレジスタと、
前記カウンタのカウント値を前記所定数の値と比較し、前記カウンタのカウント値が前記所定数の値と一致しない場合には前記カウンタをイネーブルし、前記所定数の値と一致する場合には前記カウンタをディセーブルする比較回路と、
をさらに含むことを特徴とする請求項1乃至4のいずれか1に記載のクロック生成装置。
A register for storing the predetermined number of values;
Compare the count value of the counter with the predetermined number of values, enable the counter if the counter count value does not match the predetermined number of values, and if the counter value matches the predetermined number of values, A comparison circuit for disabling the counter;
The clock generation device according to claim 1, further comprising:
前記第1クロック信号生成部は、前記第1端子からの入力信号を反転し、信号レベルを増幅し、2値化して前記第1クロック信号を生成し、
前記第2クロック信号生成部は、前記発振信号の信号レベルを増幅し、2値化して前記第2クロック信号を生成する、
ことを特徴とする請求項1乃至5のいずれか1に記載のクロック生成装置。
The first clock signal generation unit inverts an input signal from the first terminal, amplifies a signal level, binarizes and generates the first clock signal,
The second clock signal generation unit amplifies the signal level of the oscillation signal and binarizes to generate the second clock signal.
The clock generation device according to claim 1, wherein the clock generation device is a clock generation device.
前記振動子としての水晶振動子と、
前記第1端子が前記水晶振動子の一端に接続され、前記第2端子が前記水晶振動子の他端に接続された請求項1乃至6のいずれか1に記載のクロック生成装置と、
を備えることを特徴とするクロック生成モジュール。
A crystal resonator as the resonator;
The clock generation device according to any one of claims 1 to 6, wherein the first terminal is connected to one end of the crystal resonator, and the second terminal is connected to the other end of the crystal resonator.
A clock generation module comprising:
前記発振器としての温度補償水晶発振器と、
前記第1端子に前記基準電位が印加され、前記第2端子に前記温度補償水晶発振器が接続された請求項1乃至6のいずれか1に記載のクロック生成装置と、
を備えることを特徴とするクロック生成モジュール。
A temperature compensated crystal oscillator as the oscillator;
The clock generation device according to claim 1, wherein the reference potential is applied to the first terminal, and the temperature-compensated crystal oscillator is connected to the second terminal.
A clock generation module comprising:
電圧印加によって発振する振動子、又は自己発振して発振信号を生成する発振器が接続されるとマスタクロック信号を生成するクロック生成装置におけるクロックソース選択方法であって、
前記クロック生成装置の第2端子を介して供給された信号を出力信号として出力するステップと、
前記出力信号のパルス数をカウントするステップと、
所定期間内に前記パルス数が所定数に達しない場合には前記クロック生成装置の第1端子と前記第2端子に電圧を印加することにより前記マスタクロックを生成して出力し、前記所定期間内に前記パルス数が所定数に達した場合には前記第2端子を介して供給された信号を前記マスタクロックとして出力するステップと、
を含むことを特徴とするクロックソース選択方法。
A clock source selection method in a clock generator that generates a master clock signal when a vibrator that oscillates by applying a voltage or an oscillator that generates an oscillation signal by self-oscillation is connected,
Outputting a signal supplied via the second terminal of the clock generator as an output signal;
Counting the number of pulses of the output signal;
When the number of pulses does not reach a predetermined number within a predetermined period, the master clock is generated and output by applying a voltage to the first terminal and the second terminal of the clock generation apparatus, and within the predetermined period And when the number of pulses reaches a predetermined number, outputting a signal supplied via the second terminal as the master clock;
Including a clock source selection method.
JP2015005491A 2015-01-15 2015-01-15 Clock generator, clock generation module, and clock source selection method Active JP6522956B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015005491A JP6522956B2 (en) 2015-01-15 2015-01-15 Clock generator, clock generation module, and clock source selection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015005491A JP6522956B2 (en) 2015-01-15 2015-01-15 Clock generator, clock generation module, and clock source selection method

Publications (2)

Publication Number Publication Date
JP2016131339A true JP2016131339A (en) 2016-07-21
JP6522956B2 JP6522956B2 (en) 2019-05-29

Family

ID=56415661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015005491A Active JP6522956B2 (en) 2015-01-15 2015-01-15 Clock generator, clock generation module, and clock source selection method

Country Status (1)

Country Link
JP (1) JP6522956B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03274810A (en) * 1990-03-23 1991-12-05 Seiko Instr Inc Semiconductor integrated circuit
JPH0799412A (en) * 1993-08-02 1995-04-11 Nec Corp Oscillation circuit
JP2002217689A (en) * 2001-01-17 2002-08-02 Sanyo Electric Co Ltd Frequency variable rc oscillator and microcomputer
JP2005057478A (en) * 2003-08-04 2005-03-03 Nec Micro Systems Ltd Oscillation circuit and semiconductor integrated circuit device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03274810A (en) * 1990-03-23 1991-12-05 Seiko Instr Inc Semiconductor integrated circuit
JPH0799412A (en) * 1993-08-02 1995-04-11 Nec Corp Oscillation circuit
JP2002217689A (en) * 2001-01-17 2002-08-02 Sanyo Electric Co Ltd Frequency variable rc oscillator and microcomputer
JP2005057478A (en) * 2003-08-04 2005-03-03 Nec Micro Systems Ltd Oscillation circuit and semiconductor integrated circuit device

Also Published As

Publication number Publication date
JP6522956B2 (en) 2019-05-29

Similar Documents

Publication Publication Date Title
US9083338B2 (en) Digital noise protection circuit and method
JP2010087571A (en) Oscillation circuit and method of controlling the same
CN101167253B (en) Phase-locked loop circuit
JP2018518107A5 (en)
US8232847B2 (en) Oscillation circuit
JP4228527B2 (en) Oscillator
JP6349097B2 (en) Input signal amplifier
US6903616B2 (en) Startup circuit and method for starting an oscillator after power-off
US9385652B2 (en) Cross-coupled oscillator, integrated circuit and electronic device
JP6522956B2 (en) Clock generator, clock generation module, and clock source selection method
US11431292B2 (en) Crystal oscillator start-up circuit and method
JP4547226B2 (en) Oscillator and semiconductor device
JP4699430B2 (en) Transmitter integrated circuit having surface acoustic wave (SAW) oscillator
JP6788850B2 (en) Comparator and oscillator circuit using the comparator
JP5193167B2 (en) Oscillator, oscillation device
JP2007318398A (en) Crystal oscillator circuit
JP2006279608A (en) Piezoelectric oscillator
JP6605801B2 (en) Clock generation apparatus and clock generation method
JP4277645B2 (en) Oscillation start detection circuit and semiconductor integrated circuit incorporating the same
JPH051129Y2 (en)
JP4430719B2 (en) Electric field communication device
JPH11234043A (en) Oscillation circuit and semiconductor integrated circuit
JP2014236455A (en) Oven-controlled crystal oscillator
JP2007060347A (en) Crystal-oscillation circuit
JP2016076818A (en) Piezoelectric element drive circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171030

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181002

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181128

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190402

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190425

R150 Certificate of patent or registration of utility model

Ref document number: 6522956

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150