JP2964704B2 - Clock stop circuit - Google Patents

Clock stop circuit

Info

Publication number
JP2964704B2
JP2964704B2 JP3140565A JP14056591A JP2964704B2 JP 2964704 B2 JP2964704 B2 JP 2964704B2 JP 3140565 A JP3140565 A JP 3140565A JP 14056591 A JP14056591 A JP 14056591A JP 2964704 B2 JP2964704 B2 JP 2964704B2
Authority
JP
Japan
Prior art keywords
clock
circuit
stop
internal clock
external
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
JP3140565A
Other languages
Japanese (ja)
Other versions
JPH04365110A (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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP3140565A priority Critical patent/JP2964704B2/en
Publication of JPH04365110A publication Critical patent/JPH04365110A/en
Application granted granted Critical
Publication of JP2964704B2 publication Critical patent/JP2964704B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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 circuit, and more particularly to a circuit for stopping an external clock supplied to a large-scale integrated circuit (hereinafter abbreviated as LSI).

【0002】[0002]

【従来の技術】近年マイクロコンピュータ等のLSIの
進歩に伴ってハンディ・ターミナルや電子手帳等の帯用
機器が多く開発されている。これらの機器はその用途か
ら軽量化と長時間動作が必要であり、これらの機器に搭
載されるLSIについても低消費電極が要求される。こ
の低消費電力化を計るため、キー入力持ち等でLSIが
動作していない時にはクロックを一時的に停止させる機
能を持つLSIが多くなっている。
2. Description of the Related Art In recent years, band devices such as handy terminals and electronic notebooks have been developed with the progress of LSIs such as microcomputers. These devices need to be lightweight and operate for a long time because of their applications, and LSIs mounted on these devices also require low power consumption electrodes. In order to reduce the power consumption, many LSIs have a function of temporarily stopping a clock when the LSI is not operating due to a key input or the like.

【0003】クロックを停止させる方法としては、LS
Iを動作させる内部命令の一つとしてストップ命令を持
ちこの命令を実行してクロックを停止させるソフトウェ
ア・ストップがある。また外部ストップ端子を設けて外
部信号によりクロックを停止させるハードウェア・スト
ップもある。他のクロック停止方法として外部クロック
を直接停止してしまう方法もある。
[0003] As a method of stopping the clock, LS
As one of the internal instructions for operating I, there is a software stop which has a stop instruction and executes this instruction to stop the clock. There is also a hardware stop in which an external stop terminal is provided to stop the clock by an external signal. As another clock stop method, there is a method of stopping the external clock directly.

【0004】[0004]

【発明が解決しようとする課題】従来のLSIのクロッ
ク停止回路は、ソフトウェア・ストップでは外部から任
意のタイミングでLSIを停止できない問題がある。ま
たハードウェア・ストップでは外部から任意のタイミン
グでLSIを停止できるが外部端子が一本増加する欠点
がある。
The conventional LSI clock stop circuit has a problem that the LSI cannot be stopped at an arbitrary timing from the outside by software stop. In the hardware stop, the LSI can be stopped at an arbitrary timing from the outside, but there is a disadvantage that one external terminal is added.

【0005】クロックを直接停止する方法では次のよう
な問題が生じる。通常マイクロコンピュータ等のLSI
では内部にダイナミック回路を多用する事によりトラン
ジスタ数を削減しチップ・サイズを縮小している。これ
によりLSIのコスト低減を計っている。しかしダイナ
ミック回路はサンプリング・タイミングでクロックを停
止すると保持していた電荷がリーク電流により抜けてし
まいデータ等が破壊されてしまう。
In the method of directly stopping the clock, the following problem occurs. LSIs such as microcomputers
Uses a lot of dynamic circuits inside to reduce the number of transistors and reduce the chip size. Thus, the cost of the LSI is reduced. However, in a dynamic circuit, if the clock is stopped at the sampling timing, the stored charge is released by a leak current, and data and the like are destroyed.

【0006】これを避けるにはLSIの内部回路にスタ
ティック回路を使用すれば良いが、スタティック回路で
はダイナミック回路に比べてほぼ2倍のトランジスタ数
が必要になりチップ・サイズの増大からコスト・アップ
になる。又、LSI内部のバス・サイクルやマシン・サ
イクルには機能上の制約から途中でクロックを停止でき
ないタイミングがある。更にセンス・アンプやチャージ
・ポンプ等ではクロック停止前後で所定の手順を必要と
しクロックを直接停止できない。
To avoid this, a static circuit may be used for the internal circuit of the LSI. However, the static circuit requires almost twice the number of transistors as compared to the dynamic circuit, and the cost increases due to an increase in chip size. Become. In addition, there are timings in the bus cycle and the machine cycle in the LSI where the clock cannot be stopped halfway due to functional restrictions. Further, in a sense amplifier, a charge pump or the like, a predetermined procedure is required before and after the clock is stopped, and the clock cannot be directly stopped.

【0007】本発明の目的は外部クロック信号が停止し
た事を検出してストップ信号を出力すると同時に、マイ
クロコンピュータの内部回路がストップ状態に移行する
ために必要なクロック信号を内部で自動的に発生させる
クロック停止回路を提供することにある。
An object of the present invention is to detect that the external clock signal has stopped and output a stop signal, and at the same time, automatically generate a clock signal necessary for the internal circuit of the microcomputer to shift to the stop state. It is an object of the present invention to provide a clock stop circuit for causing a clock stop.

【0008】[0008]

【課題を解決するための手段】本発明のクロック停止回
路は、外部クロックが停止した事を検出する検出回路
と、該検出回路の出力信号を入力して前記外部クロック
停止後に内部クロックを発生する内部クロック発生回路
と、前記内部クロックの発生数をカウントして所定数に
達したら前記内部クロックの発生を停止する手段と、
記外部クロックまたは前記内部クロック発生回路の出力
する内部クロックとを切換え出力する選択回路とを有し
て構成されている。または本発明のクロック停止回路
は、外部クロックが停止した事を検出する検出回路と、
該検出回路の出力信号を入力して前記外部クロック停止
後に内部クロックを発生する内部クロック発生回路と、
前記内部クロックの発生数をカウントして所定数に達し
たら前記内部クロックの発生を停止する手段と、前記外
部クロック及び前記内部クロックを入力するORゲート
とを有して構成されている。
A clock stop circuit according to the present invention detects a stop of an external clock, receives an output signal of the detect circuit, and generates an internal clock after the stop of the external clock. An internal clock generation circuit, and counts the number of generated internal clocks to a predetermined number.
A means is provided for stopping the generation of the internal clock when it has reached, and a selection circuit for switching and outputting the external clock or the internal clock output from the internal clock generation circuit. Or the clock stop circuit of the present invention
Is a detection circuit that detects that the external clock has stopped,
Stop the external clock by inputting the output signal of the detection circuit
An internal clock generation circuit that generates an internal clock later,
The number of occurrences of the internal clock is counted and reaches a predetermined number.
Means for stopping the generation of the internal clock,
OR gate for inputting an internal clock and the internal clock
And is configured.

【0009】[0009]

【実施例】次に本発明について図面を参照して説明す
る。図1は本発明の一実施例を示すマイクロコンピュー
タのクロック停止回路である。クロック停止回路は、外
部クロックCKEを入力するクロック停止検出回路1
と、検出回路1の出力信号STPを入力して外部クロッ
クCKEの停止後の一定期間(T2〜T3)に内部クロ
ックCKIを発生する内部クロック発生回路6と、外部
クロックCKEまたは内部クロック発生回路6の出力す
る内部クロックCKIとを切換え出力する選択回路5と
を有している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 shows a clock stop circuit of a microcomputer according to an embodiment of the present invention. The clock stop circuit includes a clock stop detection circuit 1 for inputting an external clock CKE.
And an internal clock generation circuit 6 which receives the output signal STP of the detection circuit 1 and generates the internal clock CKI for a certain period (T2 to T3) after the external clock CKE is stopped, and an external clock CKE or an internal clock generation circuit 6 And a selection circuit 5 for switching and outputting the internal clock CKI output by the selector.

【0010】次に動作を説明すると、まずマイクロコン
ピュータの外部端子に外部クロック信号CKEが入力さ
れる。外部クロック信号CKEはクロック停止検出回路
1に入力される。クロック停止検出回路1はSN741
23N等のような再トリガ単安定マルチで構成され、外
部クロック信号CKEの立上がりエッジの周期が動作時
間Tm以内の時はハイレベルを出力し、立上がりエッジ
が動作時間Tm以内に来ない時にロウレベルを出力す
る。クロック停止検出回路1の出力はマイクロコンピュ
ータ内部へロウアクティブのストップ信号STPとして
出力され、ストップ状態への移行処理を行なう。
Next, the operation will be described. First, an external clock signal CKE is input to an external terminal of the microcomputer. The external clock signal CKE is input to the clock stop detection circuit 1. The clock stop detection circuit 1 has the SN741
23N, etc., is constituted by a retrigger monostable multi, and outputs a high level when the period of the rising edge of the external clock signal CKE is within the operation time Tm, and outputs a low level when the rising edge does not come within the operation time Tm. Output. The output of the clock stop detection circuit 1 is output to the inside of the microcomputer as a row active stop signal STP, and performs a transition process to a stop state.

【0011】ストップ信号STPはリセット/セット型
フリップ・フロップ2(以下R/S・FF2と略す)に
入力され、立上がりエッジでセットされる。R/S・F
F2の出力信号RSFは自走マルチ3のストローブ入力
Sに入力され、R/S・FF2の出力信号RSFがハイ
レベルの時に発振する。自走マルチ3は内部クロック信
号CKIを出力する。
The stop signal STP is input to a reset / set flip-flop 2 (hereinafter abbreviated as R / SFF2) and is set at the rising edge. R / SF
The output signal RSF of F2 is input to the strobe input S of the free-running multi 3 and oscillates when the output signal RSF of R / S FF2 is at a high level. Self-running multi 3 outputs internal clock signal CKI.

【0012】内部クロック信号CKIはカウンタ4に入
力される。カウンタ4は4進カウンタでカウンタ出力信
号CTを出力する。カウンタ出力信号CTはR/S・F
F2に入力され立上がりエッジでR/S・FF2をリセ
ットする。
The internal clock signal CKI is input to the counter 4. The counter 4 is a quaternary counter and outputs a counter output signal CT. The counter output signal CT is R / S · F
The signal is input to F2 and the R / S FF2 is reset at the rising edge.

【0013】外部クロック信号CKEと内部クロック信
号CKIは選択回路5に入力され、選択回路5の選択入
力Sにはストップ信号STPが入力される。選択回路5
はストップ信号STPがハイレベルの時に外部クロック
信号CKEを、ロウレベルの時に内部クロック信号CK
Iを選択し、クロック信号CLKをマイクロコンピュー
タ内部へのクロック信号として出力する。
The external clock signal CKE and the internal clock signal CKI are input to a selection circuit 5, and a selection input S of the selection circuit 5 receives a stop signal STP. Selection circuit 5
Indicates an external clock signal CKE when the stop signal STP is at a high level, and an internal clock signal CK when the stop signal STP is at a low level.
I is selected and the clock signal CLK is output as a clock signal to the inside of the microcomputer.

【0014】次に図1のクロック停止回路の動作につい
て図2のタイミング図を参照しながら説明する。タイミ
ングT1まではマイクロコンピュータの通常の動作状態
で、外部クロック信号CKEはクロック停止検出回路1
の動作時間Tm以内で周期的に立下がりエッジが来てい
るので、ストップ信号STPはハイレベルを出力し、選
択回路5はクロック信号CLKとして外部クロック信号
CKEを選択出力する。
Next, the operation of the clock stop circuit of FIG. 1 will be described with reference to the timing chart of FIG. Until timing T1, the microcomputer is in a normal operating state, and the external clock signal CKE is
Since the falling edge periodically comes within the operation time Tm, the stop signal STP outputs a high level, and the selection circuit 5 selects and outputs the external clock signal CKE as the clock signal CLK.

【0015】タイミングT1で外部クロック信号CKE
が停止する。タイミングT2でクロック停止検出回路1
の動作時間Tmになりストップ信号STPはロウレベル
になる。このためR/S・FF2はセットされ、自走マ
ルチ3は発振を開始する。又選択回路5はクロック信号
CLKとして外部クロック信号CKEから内部クロック
信号CKIを切換え出力する。
At timing T1, the external clock signal CKE
Stops. Clock stop detection circuit 1 at timing T2
And the stop signal STP goes low. Therefore, the R / S FF 2 is set, and the self-running multi 3 starts oscillating. The selection circuit 5 switches and outputs the internal clock signal CKI from the external clock signal CKE as the clock signal CLK.

【0016】タイミングT3で内部クロック信号CKI
は4クロック目を出力し、カウンタ出力信号CTは発振
を停止し、クロック信号CLKにはロウレベルが出力さ
れる。
At timing T3, the internal clock signal CKI
Outputs the fourth clock, the counter output signal CT stops oscillating, and a low level is output as the clock signal CLK.

【0017】マイクロコンピュータの内部回路はストッ
プ信号STPがロウレベル(ロウアクティブ)中に出力
された4クロックのクロック信号CLKによりストップ
状態への移行処理を終えストップ状態に入る。タイミン
グT4で外部クロック信号CKEが再開する。
The internal circuit of the microcomputer enters the stop state after completing the transition processing to the stop state by the four clock signals CLK output while the stop signal STP is at the low level (low active). At timing T4, the external clock signal CKE restarts.

【0018】タイミングT5で外部クロック信号CKE
の立下がりエッジによりクロック停止検出回路1に再ト
リガがかかり、ストップ信号STPはハイレベルになり
ストップ状態は解除されてマイクロコンピュータは通常
の動作状態に戻る。
At timing T5, the external clock signal CKE
The stop signal STP goes high, the stop state is released, and the microcomputer returns to the normal operation state due to the falling edge of the clock stop detection circuit 1.

【0019】図3は本発明の第2の実施例を示すクロッ
ク停止回路である。クロック信号CLKの生成回路は図
1の選択回路5の代わりにオアゲート6を使用し、外部
クロック信号CKEと内部クロック信号CKIを入力と
している。その他の回路構成は図1のクロック停止回路
と同じであり、その動作も外部クロック信号CKEがロ
ウレベルで停止した時は同じであるので説明を省略す
る。
FIG. 3 shows a clock stop circuit according to a second embodiment of the present invention. The generation circuit of the clock signal CLK uses an OR gate 6 instead of the selection circuit 5 of FIG. 1 and receives an external clock signal CKE and an internal clock signal CKI as inputs. The other circuit configuration is the same as that of the clock stop circuit of FIG. 1, and the operation thereof is the same when the external clock signal CKE is stopped at the low level, and the description is omitted.

【0020】[0020]

【発明の効果】以上説明したように本発明によれば、マ
イクロコンピュータの外部クロック信号CKEが停止し
た事を検出してストップ信号STPを出力すると同時
に、マイクロコンピュータの内部回路がストップ状態に
移行するために必要なクロック信号を内部クロック発生
回路を設けて自動的に発生させる事により、特別な外部
端子を使用する事なく任意のタイミングでマイクロコン
ピュータを停止させる事ができ、又ダイナミック回路等
の従来は外部クロック信号を直接停止できなかった回路
を使用できるためコスト低減できる効果もある。
As described above, according to the present invention, when the external clock signal CKE of the microcomputer is stopped and the stop signal STP is output, the internal circuit of the microcomputer shifts to the stop state. The internal clock generator circuit automatically generates the necessary clock signals to stop the microcomputer at any timing without using special external terminals. Can use a circuit that cannot directly stop the external clock signal, so that there is also an effect of reducing costs.

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

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

【図2】図1のクロック停止回路の動作を示すタイミン
グ図である。
FIG. 2 is a timing chart showing an operation of the clock stop circuit of FIG. 1;

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

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

1 クロック停止検出回路 2 フリップフロップ 3 自走マルチ 4 カウンタ 5 選択回路 6 ORゲート CKE 外部クロック信号 CKI 内部クロック信号 STP ストップ信号 CT カウンタ出力信号 CLK クロック信号 RSF R/S・FF2の出力信号 T1〜T5 タイミング Tm クロック停止検出回路1の動作時間 Reference Signs List 1 clock stop detection circuit 2 flip-flop 3 self-running multi 4 counter 5 selection circuit 6 OR gate CKE external clock signal CKI internal clock signal STP stop signal CT counter output signal CLK clock signal RSF R / S · FF2 output signal T1 to T5 Timing Tm Operating time of clock stop detection circuit 1

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 外部クロックが停止した事を検出する検
出回路と、該検出回路の出力信号を入力して前記外部ク
ロック停止後に内部クロックを発生する内部クロック発
生回路と、前記内部クロックの発生数をカウントして所
定数に達したら前記内部クロックの発生を停止する手段
と、前記外部クロックまたは前記内部クロック発生回路
の出力する内部クロックとを切換え出力する選択回路と
を有する事を特徴とするクロック停止回路。
A detection circuit as claimed in claim 1] external clock to detect that it has stopped, the internal clock generation circuit which receives the output signal of the detection circuit for generating an internal clock after the external clock stop, the number of occurrences of the internal clock Count and place
Means for stopping generation of the internal clock when a constant is reached
And a selection circuit for switching and outputting the external clock or the internal clock output from the internal clock generation circuit.
【請求項2】(2) 外部クロックが停止した事を検出する検A detection that detects that the external clock has stopped
出回路と、該検出回路の出力信号を入力して前記外部クOutput circuit, and an output signal of the detection circuit.
ロック停止後に内部クロックを発生する内部クロック発Internal clock generation that generates an internal clock after lock is stopped
生回路と、前記内部クロックの発生数をカウントして所Counting the number of generations of the raw clock and the internal clock
定数に達したら前記内部クロックの発生を停止する手段Means for stopping generation of the internal clock when a constant is reached
と、前記外部クロック及び前記内部クロックを入力するAnd inputting the external clock and the internal clock
ORゲートとを有する事を特徴とするクロック停止回A clock stop circuit having an OR gate
路。Road.
JP3140565A 1991-06-13 1991-06-13 Clock stop circuit Expired - Fee Related JP2964704B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3140565A JP2964704B2 (en) 1991-06-13 1991-06-13 Clock stop circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3140565A JP2964704B2 (en) 1991-06-13 1991-06-13 Clock stop circuit

Publications (2)

Publication Number Publication Date
JPH04365110A JPH04365110A (en) 1992-12-17
JP2964704B2 true JP2964704B2 (en) 1999-10-18

Family

ID=15271644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3140565A Expired - Fee Related JP2964704B2 (en) 1991-06-13 1991-06-13 Clock stop circuit

Country Status (1)

Country Link
JP (1) JP2964704B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008126239A1 (en) * 2007-03-30 2008-10-23 Fujitsu Microelectronics Limited Semiconductor integrated circuit and clock control method
JP5241450B2 (en) 2008-11-27 2013-07-17 ルネサスエレクトロニクス株式会社 Semiconductor device and abnormality detection method thereof
JP2018014630A (en) 2016-07-21 2018-01-25 ソニーセミコンダクタソリューションズ株式会社 Solid state imaging device and electronic equipment

Also Published As

Publication number Publication date
JPH04365110A (en) 1992-12-17

Similar Documents

Publication Publication Date Title
JP4357692B2 (en) Non-integer frequency divider
US8260835B2 (en) Random number generator with ring oscillation circuit
JP4288011B2 (en) Reset system for multiple component systems
JPH11306759A (en) Clock signal delay apparatus
JPH1195859A (en) Integrated-circuit incorporated oscillation circuit
JP2964704B2 (en) Clock stop circuit
US20020075042A1 (en) Clock switchover circuit
JP3523362B2 (en) Clock circuit and processor using the same
JP2004158144A (en) Semiconductor integrated circuit
US6166574A (en) Circuit for turning on and off a clock without a glitch
JP3690915B2 (en) Semiconductor device having random number generation circuit
JP2000049595A (en) Dll circuit
JP2891176B2 (en) Signal transmission timing adjustment device
JP3368572B2 (en) Period generator
KR100187695B1 (en) Edge detection circuit for detecting edge of input signal without erroneous detection
JP2776157B2 (en) Oscillation circuit
JP3727670B2 (en) Microcontroller
JP2722920B2 (en) Clock oscillation stop control circuit
JPH05327422A (en) D flip-flop circuit
JP3144811B2 (en) Monitoring timer circuit
JP2008510411A (en) Hybrid signal integrated circuit
JP2001216047A (en) Delay adjusting circuit
JP2000163155A (en) Data processing circuit
JPH11220366A (en) Internal clock signal generating circuit
JPH09145803A (en) Test mode setting circuit

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

LAPS Cancellation because of no payment of annual fees