JPH04277809A - Clock signal control circuit - Google Patents

Clock signal control circuit

Info

Publication number
JPH04277809A
JPH04277809A JP3039650A JP3965091A JPH04277809A JP H04277809 A JPH04277809 A JP H04277809A JP 3039650 A JP3039650 A JP 3039650A JP 3965091 A JP3965091 A JP 3965091A JP H04277809 A JPH04277809 A JP H04277809A
Authority
JP
Japan
Prior art keywords
flip
flop
control circuit
clock signal
circuit
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
JP3039650A
Other languages
Japanese (ja)
Other versions
JP2738159B2 (en
Inventor
Hideyo Kanayama
金山 英世
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 JP3039650A priority Critical patent/JP2738159B2/en
Publication of JPH04277809A publication Critical patent/JPH04277809A/en
Application granted granted Critical
Publication of JP2738159B2 publication Critical patent/JP2738159B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To secure stable time when starting an oscillation circuit in the case of using a resonator, to eliminate useless waiting time for stabilizing oscillation when being supplied a clock pulse from the outside and to improve responsiveness. CONSTITUTION:A flip-flop 1 is provided as a first control circuit to control the operation of an oscillator 2 under the control of a stop signal and a reset signal. A counter 3 is provided to be initialized by the output of the flip-flop 1, to count the output signal of the oscillator 2 and to output an overflow signal after the lapse of set time. A power on reset type flip-flop 4 is provided as the second control circuit. A flip-flop 5 is provided as the third control circuit to control the operation of a clock signal generating circuit 6 under the control of the flip-flop 1 and the flip-flop 4.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はクロック信号制御回路に
関し、特にクロック信号発生回路を有する集積回路装置
のクロック信号制御回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock signal control circuit, and more particularly to a clock signal control circuit for an integrated circuit device having a clock signal generation circuit.

【0002】0002

【従来の技術】近年、集積回路技術の進歩により高密度
半導体集積回路(以下LSIという)のCMOS化が急
速に進んでいる。これに伴い、CMOSの低消費電力の
特徴を生かすため、LSIが非動作状態(スタンバイ)
時にはクロック信号発生回路の原発振を停止させ、内部
回路の動作を禁止し、消費電力を極小にする機能のクロ
ック信号制御回路をもつLSIが開発されている。
2. Description of the Related Art In recent years, with the advancement of integrated circuit technology, high-density semiconductor integrated circuits (hereinafter referred to as LSIs) are rapidly becoming CMOS. Along with this, in order to take advantage of the low power consumption characteristics of CMOS, LSIs are placed in a non-operating state (standby).
LSIs have been developed that have a clock signal control circuit that sometimes stops the original oscillation of the clock signal generation circuit, prohibits the operation of internal circuits, and minimizes power consumption.

【0003】特に、CMOSのマイクロコンピュータ(
以下マイコンという)においては、前述のクロック信号
制御機能を備えているものが多い。これらのマイコンで
は、マイコンの命令をユーザプログラムで実行してクロ
ック信号制御回路をスタンバイ状態に設定するのが一般
的である。
In particular, CMOS microcomputers (
Many microcomputers (hereinafter referred to as microcomputers) are equipped with the above-mentioned clock signal control function. In these microcomputers, it is common to set the clock signal control circuit to a standby state by executing instructions from the microcomputer using a user program.

【0004】これらのLSIは、いろいろな電子機器に
応用されるが、例えばマイコンとゲートアレイのように
複数個用いられることが多い。この場合、それぞれのL
SIに共振子を使用することは不経済であるため、発振
回路を備えたLSIであっても、他のLSIからクロッ
クパルスを供給するのが一般的である。
[0004] These LSIs are applied to various electronic devices, and a plurality of LSIs are often used, for example, in microcomputers and gate arrays. In this case, each L
Since it is uneconomical to use a resonator in an SI, even if the LSI is equipped with an oscillation circuit, clock pulses are generally supplied from another LSI.

【0005】従来のクロック信号制御回路は、共振子の
使用を前提して設定されていたスタンバイ状態を解除し
、再動作させる場合には、発振回路の立上り時における
安定時間内では内部回路にクロック信号を供給しないよ
う構成されていた。
[0005] In the conventional clock signal control circuit, when canceling the standby state that was set on the premise of using the resonator and restarting the operation, the clock signal control circuit does not control the clock signal to the internal circuit during the stabilization time at the rise of the oscillation circuit. It was configured not to provide any signal.

【0006】[0006]

【発明が解決しようとする課題】この従来のクロック信
号制御回路では、発振回路の立上り時における安定時間
の間はクロック信号を停止するため、共振子を使用せず
外部からクロックパルスの供給を受ける場合においても
、前述の発振安定時間の経過後でないと再動作しないの
で、応答性が悪いという問題点があった。
[Problems to be Solved by the Invention] In this conventional clock signal control circuit, the clock signal is stopped during the stabilization time at the rise of the oscillation circuit, so the clock pulse is supplied from the outside without using a resonator. Even in this case, the problem is that the response is poor because the device does not operate again until the oscillation stabilization time described above has elapsed.

【0007】本発明の目的は、以上の問題点を解決し、
共振子を使用する場合には発振安定時間を確保でき、外
部からクロック信号の供給を受ける場合には、無駄な待
時間のないようにスタンバイ状態の解除が可能なクロッ
ク信号制御回路を提供することである。
[0007] The purpose of the present invention is to solve the above problems,
To provide a clock signal control circuit that can secure oscillation stabilization time when using a resonator, and can cancel a standby state without wasteful waiting time when receiving a clock signal from an external source. It is.

【0008】[0008]

【課題を解決するための手段】本発明のクロック信号制
御回路は、共振子を用いる発振回路と前記発振回路の出
力信号にもとずいてクロック信号を発生するクロック信
号発生回路とを備えるクロック信号制御回路において、
外部からの制御信号とリセット信号により制御され前記
発振回路の動作を制御する第一の制御回路と、前記第一
の制御回路により初期化され前記発振回路の出力信号を
計数し予め定めた計数値に達したとき計数信号を出力す
る計数回路と、前記計数信号を制御する第二の制御回路
と、前記第一および第二の制御回路により前記クロック
信号発生回路の動作を制御する第三の制御回路とを備え
て構成されている。
[Means for Solving the Problems] A clock signal control circuit of the present invention includes an oscillation circuit using a resonator and a clock signal generation circuit that generates a clock signal based on an output signal of the oscillation circuit. In the control circuit,
a first control circuit that is controlled by an external control signal and a reset signal to control the operation of the oscillation circuit; and a predetermined count value that is initialized by the first control circuit and counts the output signal of the oscillation circuit. a counting circuit that outputs a counting signal when the count signal is reached, a second control circuit that controls the counting signal, and a third control that controls the operation of the clock signal generation circuit by the first and second control circuits. It is configured with a circuit.

【0009】[0009]

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

【0010】図1は本発明のクロック信号制御回路の一
実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a clock signal control circuit according to the present invention.

【0011】本実施例はマイクロコンピュータ(マイコ
ン)のクロック信号制御回路に適用した例を示す。
This embodiment shows an example in which the present invention is applied to a clock signal control circuit of a microcomputer.

【0012】本実施例のクロック信号制御回路は、図1
に示すように、フリップフロップ1,4,5と、発振器
2と、カウンタ3と、クロック信号発生回路6と、イン
バータA1と、オアゲートA2,A3とを備えて構成さ
れている。
The clock signal control circuit of this embodiment is shown in FIG.
As shown in FIG. 2, the circuit includes flip-flops 1, 4, and 5, an oscillator 2, a counter 3, a clock signal generation circuit 6, an inverter A1, and OR gates A2 and A3.

【0013】フリップフロップ1は、RSフリップフロ
ップであり、マイコンのストップ命令信号であるストッ
プ信号Sによりセットされ、リセット端子TRから入力
されるローアクティブのリセット信号RIをインバータ
A1により反転したRによりリセットされ、その出力に
より発振器2の動作を制御する。
Flip-flop 1 is an RS flip-flop, and is set by a stop signal S, which is a stop command signal of the microcomputer, and reset by R, which is obtained by inverting a low active reset signal RI input from a reset terminal TR by an inverter A1. The output of the oscillator 2 controls the operation of the oscillator 2.

【0014】カウンタ3は、発振器2の発振出力OSC
をカウントし、一定時間経過後に所定の計数値に達する
のでオーバフロー信号(OVF)を出力する。
The counter 3 receives the oscillation output OSC of the oscillator 2.
is counted, and when a predetermined count value is reached after a certain period of time has elapsed, an overflow signal (OVF) is output.

【0015】フリップフロップ4は、電源投入時には論
理‘0’に初期化され、特定命令の実行によりセットさ
れるパワーオンフリップフロップ(POF)である。
The flip-flop 4 is a power-on flip-flop (POF) that is initialized to logic '0' when the power is turned on and is set by executing a specific instruction.

【0016】フリップフロップ5は、セット優先RSフ
リップフロップであり、フリップフロップ1の出力と、
オアゲートA3の出力が入力され、その出力によりクロ
ック信号発生回路6の動作を制御する。
Flip-flop 5 is a set priority RS flip-flop, and the output of flip-flop 1 and
The output of OR gate A3 is input, and the operation of clock signal generation circuit 6 is controlled by the output.

【0017】クロック信号発生回路6は、発振器2の出
力OSCにもとずいてクロック信号CK1,CK2を出
力する。
The clock signal generation circuit 6 outputs clock signals CK1 and CK2 based on the output OSC of the oscillator 2.

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

【0019】図2は本発明の共振子を用いた場合の動作
を説明するためのタイムチャートであり、以下に図1お
よび図2を用いてその動作を説明する。
FIG. 2 is a time chart for explaining the operation when using the resonator of the present invention, and the operation will be explained below using FIGS. 1 and 2.

【0020】まず、時刻t0で電源が投入され、リセッ
ト信号RIが‘0’になるとフリップフロップ1および
カウンタ3とLSI内部の論理回路が初期化される。ま
たフリップフロップ4は‘0’となる。フリップフロッ
プ5は‘0’あるいは‘1’どちらであっても、電源投
入時のリセット信号RIは通常発振安定に必要な10〜
50msの間‘0’とするため特に問題はないが、説明
の便宜上‘1’とする。したがって発振器2が発振して
も、クロック信号発生回路6は、停止状態にある。
First, the power is turned on at time t0, and when the reset signal RI becomes '0', the flip-flop 1, the counter 3, and the logic circuit inside the LSI are initialized. Further, the flip-flop 4 becomes '0'. Regardless of whether the flip-flop 5 is '0' or '1', the reset signal RI when the power is turned on is normally 10 to 10, which is necessary for stabilizing oscillation.
Although there is no particular problem since it is set to '0' for 50 ms, it is set to '1' for convenience of explanation. Therefore, even if the oscillator 2 oscillates, the clock signal generation circuit 6 is in a stopped state.

【0021】次に、時刻t1でリセット信号RIが‘1
’になるが、フリップフロップ5の出力は‘1’のため
クロック信号CK1,CK2は出力されない。
Next, at time t1, the reset signal RI becomes '1'.
' However, since the output of the flip-flop 5 is '1', the clock signals CK1 and CK2 are not output.

【0022】時刻t2でカウンタ3のOVF信号が出力
されると、オアゲートA3が‘1’となりフリップフロ
ップ5がリセットされるためクロック信号CK1,CK
2が出力され、LSIの内部動作が開始する。
When the OVF signal of the counter 3 is output at time t2, the OR gate A3 becomes '1' and the flip-flop 5 is reset, so that the clock signals CK1 and CK
2 is output and the internal operation of the LSI starts.

【0023】時刻t3においてストップ信号Sが入力さ
れると、フリップフロップ1および5がセットされ、発
振器2が停止し、カウンタ3が初期化されるとともにク
ロック信号CK1,CK2が停止する。このためLSI
の消費電力が極小となる。
When stop signal S is input at time t3, flip-flops 1 and 5 are set, oscillator 2 is stopped, counter 3 is initialized, and clock signals CK1 and CK2 are stopped. For this reason, LSI
The power consumption of is minimized.

【0024】時刻t4でリセット信号RIが‘0’にな
ると、フリップフロップ1がリセットされ発振器2が動
作する。リセット信号RIが‘1’になるとカウンタ3
が動作し所定の数、すなわち、時間をカウント後時刻t
5でOVF信号を出力し、フリップフロップ5がリセッ
トされクロック信号CK1,CK2が出力される。
When the reset signal RI becomes '0' at time t4, the flip-flop 1 is reset and the oscillator 2 operates. When the reset signal RI becomes '1', the counter 3
operates and after counting a predetermined number, that is, time, the time t
5, the OVF signal is output, the flip-flop 5 is reset, and the clock signals CK1 and CK2 are output.

【0025】このように、フリップフロップ4の出力P
OFを‘0’にしておくことにより共振子を用いた場合
の発振安定時間の確保が可能であり、したがってLSI
の確実な動作が可能である。
In this way, the output P of the flip-flop 4
By setting OF to '0', it is possible to secure the oscillation stabilization time when using a resonator, and therefore the LSI
reliable operation is possible.

【0026】次に、図3を用い外部からクロックパルス
の供給を受ける場合について説明する。
Next, the case where clock pulses are supplied from the outside will be explained using FIG.

【0027】ここでは、前述の図2との相違点のみを説
明する。まず、時刻t6でフリップフロップ4を命令信
号によりセットする。
Here, only the differences from FIG. 2 described above will be explained. First, at time t6, the flip-flop 4 is set by a command signal.

【0028】次にt7でスタンバイ状態に設定するため
、ストップ信号Sを出力すると、フリップフロップ1,
5がセットされ、発振器2の出力OSCおよびクロック
信号CK1,CK2が停止し、消費電力が極小となる。 ここでフリップフロップ4の出力POFは‘1’、オア
ゲートA3の出力も‘1’であるが、フリップフロップ
5の出力はセット優先のため‘1’のままである。
Next, at t7, in order to set the standby state, when the stop signal S is output, the flip-flops 1,
5 is set, the output OSC of the oscillator 2 and the clock signals CK1 and CK2 are stopped, and power consumption becomes minimum. Here, the output POF of the flip-flop 4 is '1' and the output of the OR gate A3 is also '1', but the output of the flip-flop 5 remains '1' due to set priority.

【0029】時刻t8でリセット信号RIが‘0’とな
ると、フリップフロップ1,5の出力がすぐに‘0’と
なり、発振器2およびクロック信号発生回路6が動作し
てクロック信号CK1,CK2を出力する。このため、
無駄な発振安定時間がなく、リセット信号RIが‘1’
となると、直ちにLSIの内部動作が有効となる。
When the reset signal RI becomes '0' at time t8, the outputs of the flip-flops 1 and 5 immediately become '0', and the oscillator 2 and clock signal generation circuit 6 operate to output clock signals CK1 and CK2. do. For this reason,
There is no wasted oscillation stabilization time, and the reset signal RI is '1'.
Immediately, the internal operation of the LSI becomes effective.

【0030】以上、本発明の実施例を説明したが、本発
明は上記実施例に限られることなく種々の変形が可能で
ある。
Although the embodiments of the present invention have been described above, the present invention is not limited to the above embodiments and can be modified in various ways.

【0031】たとえば、電源投入時に論理‘0’に初期
化されるパワーオンフリップフロップの代りに、予め出
力論理値を外部からクロックパルスの供給を受ける場合
には‘1’に、また、共振子を用いる場合には‘0’に
フォトマスクでそれぞれ設定したROMを用いても、本
発明の主旨を逸脱しない限り適用できることは勿論であ
る。
For example, instead of a power-on flip-flop that is initialized to logic ``0'' when the power is turned on, the output logic value may be set to ``1'' when receiving a clock pulse from an external source, or a resonator. It goes without saying that in the case of using , a ROM each set to '0' by a photomask can be used as long as it does not depart from the spirit of the present invention.

【0032】[0032]

【発明の効果】以上説明したように、本発明のクロック
信号制御回路は、共振子を用いた場合の発振回路の立上
り時の安定時間を確保するとともに、外部からのクロッ
クパルスの供給を受ける場合には、発振安定のための無
駄な待時間を削除し、応答性を向上できるという効果が
ある。
[Effects of the Invention] As explained above, the clock signal control circuit of the present invention secures the stabilization time at the rise of the oscillation circuit when using a resonator, and when receiving clock pulses from an external source. This has the effect of eliminating unnecessary waiting time for oscillation stabilization and improving responsiveness.

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

【図1】本発明のクロック信号制御回路の一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing one embodiment of a clock signal control circuit of the present invention.

【図2】本実施例のクロック信号制御回路における共振
器を用いた場合の動作の一例を示すタイムチャートであ
る。
FIG. 2 is a time chart showing an example of the operation when using a resonator in the clock signal control circuit of this embodiment.

【図3】本実施例のクロック信号制御回路における外部
からクロックパルスの供給を受けた場合の動作の一例を
示すタイムチャートである。
FIG. 3 is a time chart showing an example of the operation of the clock signal control circuit of the present embodiment when receiving a clock pulse from the outside.

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

1,4,5    フリップフロップ 2    発振器 3    カウンタ 6    クロック信号発生回路 A1    インバータ A2,A3    オアゲート 1, 4, 5 Flip-flop 2 Oscillator 3 Counter 6 Clock signal generation circuit A1 Inverter A2, A3 Or gate

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  共振子を用いる発振回路と前記発振回
路の出力信号にもとずいてクロック信号を発生するクロ
ック信号発生回路とを備えるクロック信号制御回路にお
いて、外部からの制御信号とリセット信号により制御さ
れ前記発振回路の動作を制御する第一の制御回路と、前
記第一の制御回路により初期化され前記発振回路の出力
信号を計数し予め定めた計数値に達したとき計数信号を
出力する計数回路と、前記計数信号を制御する第二の制
御回路と、前記第一および第二の制御回路により前記ク
ロック信号発生回路の動作を制御する第三の制御回路と
を備えることを特徴とするクロック信号制御回路。
1. A clock signal control circuit comprising an oscillation circuit using a resonator and a clock signal generation circuit that generates a clock signal based on an output signal of the oscillation circuit. a first control circuit that is controlled and controls the operation of the oscillation circuit; and a first control circuit that is initialized by the first control circuit and counts the output signal of the oscillation circuit and outputs a count signal when a predetermined count value is reached. It is characterized by comprising a counting circuit, a second control circuit that controls the counting signal, and a third control circuit that controls the operation of the clock signal generation circuit by the first and second control circuits. Clock signal control circuit.
JP3039650A 1991-03-06 1991-03-06 Clock signal control circuit Expired - Lifetime JP2738159B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3039650A JP2738159B2 (en) 1991-03-06 1991-03-06 Clock signal control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3039650A JP2738159B2 (en) 1991-03-06 1991-03-06 Clock signal control circuit

Publications (2)

Publication Number Publication Date
JPH04277809A true JPH04277809A (en) 1992-10-02
JP2738159B2 JP2738159B2 (en) 1998-04-08

Family

ID=12558961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3039650A Expired - Lifetime JP2738159B2 (en) 1991-03-06 1991-03-06 Clock signal control circuit

Country Status (1)

Country Link
JP (1) JP2738159B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2789257A1 (en) * 1999-02-02 2000-08-04 Schneider Electric Sa TRANSDUCER DEVICE WITH OSCILLATING CIRCUIT

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61228725A (en) * 1985-04-03 1986-10-11 Nec Corp Integrated circuit device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61228725A (en) * 1985-04-03 1986-10-11 Nec Corp Integrated circuit device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2789257A1 (en) * 1999-02-02 2000-08-04 Schneider Electric Sa TRANSDUCER DEVICE WITH OSCILLATING CIRCUIT

Also Published As

Publication number Publication date
JP2738159B2 (en) 1998-04-08

Similar Documents

Publication Publication Date Title
JP3291569B2 (en) Microcomputer
JP2001350739A (en) Microcomputer
JP2738159B2 (en) Clock signal control circuit
JPH04348410A (en) Microcomputer
JP2921494B2 (en) Oscillation circuit
JP3727670B2 (en) Microcontroller
JP2716386B2 (en) Clock output circuit
JPH0681041B2 (en) Integrated circuit device
JPS6348203B2 (en)
JPH05259825A (en) Clock generating circuit
JP2830216B2 (en) Standby circuit
JP2546536B2 (en) Standby control circuit
JPH035948Y2 (en)
JP2789725B2 (en) Microcomputer
JPS5943765B2 (en) semiconductor integrated circuit
JPH0713655A (en) Semiconductor integrated circuit
JPH0535359A (en) Clock oscillator
JPH01248216A (en) Microcomputer
JPH0651860A (en) Oscillation stablizing time guarantee circuit
JPH04177516A (en) Microcomputer
JPH0734169B2 (en) Micro computer
JPS5858628A (en) Data processor
JPS6270924A (en) Data processor
JPH03274810A (en) Semiconductor integrated circuit
JPH0326112A (en) Integrated circuit device

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: 19971216