JPH03282804A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH03282804A
JPH03282804A JP2084035A JP8403590A JPH03282804A JP H03282804 A JPH03282804 A JP H03282804A JP 2084035 A JP2084035 A JP 2084035A JP 8403590 A JP8403590 A JP 8403590A JP H03282804 A JPH03282804 A JP H03282804A
Authority
JP
Japan
Prior art keywords
oscillator
reset
cpu
signal
output
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.)
Pending
Application number
JP2084035A
Other languages
Japanese (ja)
Inventor
Hatsuhiro Nagaishi
永石 初弘
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 JP2084035A priority Critical patent/JPH03282804A/en
Publication of JPH03282804A publication Critical patent/JPH03282804A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a wide application range of a microcomputer by discriminating whether reset is inputted with an oscillator stopped or oscillated and switching the state to the CPU operation state immediately after release of reset in the case of reset input with the oscillator not stopped. CONSTITUTION:A power-on flag 14 is cleared by a CPU 1 in the instruction execution state, namely, in the oscillating state of an oscillator 3. When a reset signal RST is made active in this state, the CPU 1 is initialized, and a CPU operation clock is not outputted to the CPU because a mask control signal MSK is active. The reset signal RST is made inactive, the CPU operation clock is outputted to the CPU 1 because the mask control signal MSK is made inactive, and the state is switched to the CPU operation state after release of reset. Thus, a wise application range of the microcomputer is obtained.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、マイクロコンピュータのリセット制御回路に
関し、特にリセット解除後の発振安定時間の制御回路に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a reset control circuit for a microcomputer, and more particularly to a control circuit for oscillation stabilization time after reset release.

[従来の技術] シングルチップマイクロコンピュータは通常発振器を内
蔵しており、外部に水晶発振子やセラミック発振子等を
発振器に接続してクロックを生成する。また、最近のマ
イクロコンピュータては消費電力を低減てきるストップ
モードなどのスタンバイ機能を内蔵していることが多い
。ストップモードは、発振器を停止させることてマイク
ロコンピュータ全体の動作を停止するモートであり相補
型金属酸化膜半導体て実現されたマイクロコンピュータ
ては発振器停止によりマイクロコンピュータ内の全ての
動作クロックが停止するためリーク電流だけの超低消費
電力状態を実現することか可能である。このスタンバイ
状態は一般的にはリセット入力あるいは外部割込み人力
で解除される。そして、発振器の特性として、発振器が
停止している状態から発振器の出力が安定するまでには
、接続された発振子の種類によって固有の発振安定時間
(例えば数m sec〜数十m sec )を確保する
必要がある。
[Prior Art] A single-chip microcomputer usually has a built-in oscillator, and a clock is generated by connecting an external crystal oscillator, ceramic oscillator, etc. to the oscillator. Additionally, recent microcomputers often have built-in standby functions such as stop mode that reduce power consumption. Stop mode is a mode that stops the operation of the entire microcomputer by stopping the oscillator.For microcomputers realized using complementary metal oxide film semiconductors, stopping the oscillator causes all operating clocks in the microcomputer to stop. It is possible to achieve ultra-low power consumption with only leakage current. This standby state is generally canceled by a reset input or an external interrupt manually. As a characteristic of an oscillator, it takes a specific oscillation stabilization time (for example, several msec to several tens of msec) depending on the type of connected oscillator until the output of the oscillator stabilizes from a state where the oscillator is stopped. It is necessary to secure it.

第2図はこの種のマイクロコンピュータの従来例のブロ
ック図である。
FIG. 2 is a block diagram of a conventional example of this type of microcomputer.

発振子接続端子10.11に水晶発振子等(図示せず)
か接続され、発振器3の出力f8は発振安定時間計測用
カウンタ2(以下カウンタ2と略す)およびANDケー
ト9に入力されている。
A crystal oscillator, etc. (not shown) is connected to the oscillator connection terminals 10 and 11.
The output f8 of the oscillator 3 is input to a counter 2 for measuring oscillation stabilization time (hereinafter abbreviated as counter 2) and an AND gate 9.

MSKは発振器3の出力f、、のマスク制御信号て、A
NDゲート9の一方に入力される。ANDケート9の出
力fcpuはスタンバイ制御機能を内蔵した中央処理装
置(以下、略してrcPUJと書く)1へ入力されるC
PU動作クロックの基準クロックである。リセット入力
端子13を介してリセット信号RSTがCPUIに入力
される。同様に、リセット信号RSTはORゲート7お
よび8に入力される。外部割込み入力端子12からは、
外部割込要求信号INTが外部割込み検出回路4に人力
され、その出力である割込み要求信号INTRQはOR
ゲート8およびCPUIに入力される。5TOPは、C
PLIIから出力されるストップ制御信号て、エツジ検
出回路6に人力される。STPは、RSフリップフロッ
プ5のQ出力て、発振器3に人力され発振器3を停止さ
せる信号で、ORゲート7にも入力されている。RSフ
リップフロップ5は、エツジ検出回路6の出力によって
セットされ、ORケート8の出力によってリセットされ
る。ORケート7の出力CLRはカウンタ2に入力され
、カウンタ2のクリア動作を行なう。
MSK is the mask control signal of the output f of the oscillator 3, A
It is input to one side of the ND gate 9. The output fcpu of the AND gate 9 is the C input to the central processing unit (hereinafter abbreviated as rcPUJ) 1 that has a built-in standby control function.
This is the reference clock for the PU operation clock. A reset signal RST is input to the CPUI via the reset input terminal 13. Similarly, reset signal RST is input to OR gates 7 and 8. From the external interrupt input terminal 12,
The external interrupt request signal INT is input to the external interrupt detection circuit 4, and its output, the interrupt request signal INTRQ, is ORed.
Input to gate 8 and CPUI. 5TOP is C
A stop control signal output from the PLII is manually input to the edge detection circuit 6. STP is a signal inputted to the oscillator 3 by the Q output of the RS flip-flop 5 to stop the oscillator 3, and is also input to the OR gate 7. The RS flip-flop 5 is set by the output of the edge detection circuit 6 and reset by the output of the OR gate 8. The output CLR of the OR gate 7 is input to the counter 2, and the counter 2 is cleared.

次に、第2図の従来例の動作を説明する。Next, the operation of the conventional example shown in FIG. 2 will be explained.

リセット入力によってリセット信号R5Tがアクティブ
レベルの“H” (ハイレベル)に設定されると、CP
UIが初期化されストップ制御信号5TOPもクリアさ
れる。リセット信号RSTかアクティブな状態では、O
Rゲート7の出力CLRは強制的にアクティブ状態にあ
るためカウンタ2かリセットされ、発振器3の出力f、
のマスク制御信号MSKは“L” (ロウレベル)であ
りCPU動作クロりクfcpuも停止状態になる。
When the reset signal R5T is set to the active level "H" (high level) by the reset input, the CP
The UI is initialized and the stop control signal 5TOP is also cleared. When the reset signal RST is active, O
Since the output CLR of the R gate 7 is forcibly in the active state, the counter 2 is reset, and the output f of the oscillator 3 is
The mask control signal MSK is "L" (low level), and the CPU operation clock fcpu is also stopped.

方、RSフリップフロップ5の出力STPはリセット信
号R5Tがアクティブ状態で“L”になるのて発振器3
は発振状態になる。以上のリセットアクティブ状態から
リセット解除、つまりリセット信号R3Tが“H”から
“L”へ立ち下かるとORケート7の出力であるCLR
h1″し”になり、カウンタ2はクリア状態から解放さ
れ、発振器3の出力fwを入力クロックとしてカウント
動作を開始する。カウンタ2か所定クロック数を計数終
了、すなわち発振安定時間の計測か終了してカウンタ2
がオーバーフローを起こすとマスク制御信号MSKが“
H”に変化しCPUIの動作クロックf cpuが発生
され、CPUIが動作を開始する。この様にリセット信
号R3Tか人力された場合には電源投入時の発振安定時
間の確保を考慮し発振安定時間の計測が行なわれる。
On the other hand, the output STP of the RS flip-flop 5 becomes "L" when the reset signal R5T is active, so the oscillator 3
becomes an oscillating state. When the reset is released from the above-mentioned reset active state, that is, when the reset signal R3T falls from "H" to "L", the CLR which is the output of OR gate 7
h1 becomes ``h1'', the counter 2 is released from the clear state, and starts counting using the output fw of the oscillator 3 as an input clock. Counter 2 finishes counting the predetermined number of clocks, that is, finishes counting the oscillation stabilization time, and counter 2
When overflow occurs, the mask control signal MSK becomes “
When the reset signal R3T is input manually, the oscillation stabilization time is set in consideration of securing the oscillation stabilization time when the power is turned on. measurements are taken.

次ニ、CPUIが動作状態で、マイクロコンピュータが
消費するパワーを抑えるためにストップモードに設定す
る命令を実行すると、ストップ制御信号5TOPが”H
”レベルでCPUIから出力される。このストップ制御
信号5TOPの立ちあがりをエツジ検出回路6によって
検出し、この出力でフリップフロップ5かセットされ、
その出力STPがアクティブになる。すると、発振器3
が停止し、同時にカウンタ・2かリセットされマスフ制
御信号MSにが“L”になってCPU動作クロりクfe
puが停止し、ストップモートに入る。
Next, when the CPU is in operation and an instruction is executed to set the microcomputer to stop mode in order to reduce power consumption, the stop control signal 5TOP goes to "H".
" level is output from the CPUI. The rise of this stop control signal 5TOP is detected by the edge detection circuit 6, and the flip-flop 5 is set by this output.
Its output STP becomes active. Then, oscillator 3
stops, and at the same time counter 2 is reset, the mass control signal MS becomes "L", and the CPU operation clock fe
pu stops and enters stop mode.

このストップモートを解除する場合は外部割込み検出回
路4において外部割込み信号INTの立ちあがりあるい
は立ち下がりを検出して割込み要求信号I NTRQを
発生させる。このときRSフリップフロップ5はクリア
されてその出力信号STPが“L”に変化し発振器3が
発振を開始する。そして同時にカウンタ2はリセット状
態から解除されカウンタ2のカウント動作がスタートす
る。所定の発振安定時間の計測が終了すると、カウンタ
2がオーバーフローを起こしマスク制御信号MSKが“
H”へ変化する。モしてCPU動作クロりクfcpuが
再び発生される。
To cancel this stop mode, the external interrupt detection circuit 4 detects the rising or falling edge of the external interrupt signal INT and generates an interrupt request signal INTRQ. At this time, the RS flip-flop 5 is cleared, its output signal STP changes to "L", and the oscillator 3 starts oscillating. At the same time, the counter 2 is released from the reset state and the counting operation of the counter 2 is started. When the measurement of the predetermined oscillation stabilization time is completed, the counter 2 overflows and the mask control signal MSK becomes “
Then, the CPU operation clock fcpu is generated again.

[発明が解決しようとする課題] 上述した従来のマイクロコンピュータのリセット制御回
路は、リセット解除後実際にcpuが動作を開始するま
でに必ず発振安定時間を測定していたので、リセット解
除後、即座に(例えば100μsec以内)にマイクロ
コンピュータが動作する必要がある応用には適用てきな
いという欠点かある。
[Problems to be Solved by the Invention] The conventional microcomputer reset control circuit described above always measures the oscillation stabilization time before the CPU actually starts operating after the reset is released. This method has the disadvantage that it cannot be applied to applications where a microcomputer needs to operate within a short period of time (for example, within 100 μsec).

本発明の目的は、発振器か停止していないときのリセッ
ト入力ではリセット解除後、すみやかにCPU動作状態
に移行できるマイクロコンピュータを提供することであ
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a microcomputer that can quickly shift to a CPU operating state after reset is released when a reset is input when the oscillator is not stopped.

[課題を解決するための手段コ 本発明のマイクロコンピュータは、 CPU動作クロック用の基準クロックを発生する発振器
と、 該発振器の基準クロックをカウントし、該発振器の発振
安定時間を確保する発振安定時間用カウンタと、 CPUから出力されるストップ制御信号により前記発振
器を停止させ、外部割込み要求信号またはCPUのリセ
ット信号により発振器を発振させる発振器制御回路と、 リセット信号または前記ストップ制御信号により前記カ
ウンタをクリアするカウンタ制御回路該マイクロコンピ
ュータの電源電圧の投入を記憶するパワーオンフラグと
、 リセット信号がインアクティブてパワーオンフラグに電
源電圧の投入が記憶されていないか、リセット信号、ス
トップ制御信号ともにインアクティブか、リセット信号
がインアクティブで発振安定時間計測用カウンタからオ
ーバーフロー信号が出力されたときのいずれかの場合に
マスク制御信号をインアクティブにし、これら以外の場
合にはマスク制御信号をアクティブにするマスク制御信
号発生回路と、 マスク制御信号がインアクティブの場合のみ、前記基準
クロックをCPUに出力するゲート回路とを有する。
[Means for Solving the Problems] The microcomputer of the present invention includes an oscillator that generates a reference clock for a CPU operation clock, and an oscillation stabilization time that counts the reference clock of the oscillator and ensures the oscillation stabilization time of the oscillator. an oscillator control circuit that stops the oscillator in response to a stop control signal output from the CPU and oscillates the oscillator in response to an external interrupt request signal or a CPU reset signal; and an oscillator control circuit that causes the oscillator to oscillate in response to an external interrupt request signal or a CPU reset signal; A counter control circuit that stores a power-on flag that stores the application of the power supply voltage to the microcomputer, and a reset signal that is inactive and the power-on flag does not store the application of the power supply voltage, or both the reset signal and the stop control signal are inactive. or when the reset signal is inactive and an overflow signal is output from the oscillation stabilization time measurement counter, the mask control signal is made inactive, and in other cases, the mask control signal is made active. It has a control signal generation circuit, and a gate circuit that outputs the reference clock to the CPU only when the mask control signal is inactive.

[作用] パワーオンフラグは命令実行状態、すなわち発振器の発
振状態において初めにCPUによりクリアされる。この
状態でリセット信号がアクティブになると、CPUは初
期化されると同時に、マスク制御信号かアクティブのた
め、CPU動作クロックはCPUに出力されない。そし
てリセット信号かインアクティブに変化すると、マスク
制御信号がインアクティブになるため、CPU動作クロ
ックがCPUに出力され、リセット解除後のCPU動作
状態にすみやかに移行できる。
[Operation] The power-on flag is first cleared by the CPU in the instruction execution state, that is, in the oscillation state of the oscillator. When the reset signal becomes active in this state, the CPU is initialized and at the same time the mask control signal is active, so the CPU operation clock is not output to the CPU. When the reset signal becomes inactive, the mask control signal becomes inactive, so the CPU operating clock is output to the CPU, and the CPU can quickly shift to the CPU operating state after the reset is released.

[実施例] 次に、本発明の実施例について図面を参照して説明する
[Example] Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のマイクロコンピュータの構
成図である。第2図中と同符号か付されているものは同
じ機能を有する。
FIG. 1 is a block diagram of a microcomputer according to an embodiment of the present invention. Components with the same symbols as in FIG. 2 have the same functions.

パワーオンフラグ14は電源電圧の立ちあがりを検出し
てCPUにより“H″にセットされ、またCPU1から
命令(PONCL信号)によってクリアすることもでき
る。インバータ18はリセット信号R5Tを反転する。
The power-on flag 14 is set to "H" by the CPU upon detecting the rise of the power supply voltage, and can also be cleared by a command (PONCL signal) from the CPU 1. Inverter 18 inverts reset signal R5T.

RSフリップフロップ15はエツジ検出回路6の出力に
よってセットされ、カウンタ2のオーバーフロー信号に
よりリセットされる。NORゲート16はパワーオンフ
ツク14の出力とRSフリップフロップ15のQ出力を
入力とする。ORゲート17はカウンタ2のオーバーフ
ロー信号とNORゲート16の出力を人力とする。AN
Dゲート19はNORゲート17の出力とインバータ1
8の出力を入力として、マスク制御信号MSKをAND
ケート9に出力する。
The RS flip-flop 15 is set by the output of the edge detection circuit 6 and reset by the overflow signal of the counter 2. The NOR gate 16 receives the output of the power-on hook 14 and the Q output of the RS flip-flop 15 as inputs. The OR gate 17 uses the overflow signal of the counter 2 and the output of the NOR gate 16 as input. AN
D gate 19 connects the output of NOR gate 17 and inverter 1.
The output of 8 is input, and the mask control signal MSK is ANDed.
output to gate 9.

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

まず、第1の場合としてパワーオンリセットのときを考
える。電源電圧を投入すると、パワーオンフラグ14が
セットされる。パワーオンフラグ14が“H”のときに
は、NORゲート16の出力は“L”に設定される。ま
た、電源電圧の投入と同時または電源電圧の投入後のリ
セット入力によってリセット信号R3Tがアクティブレ
ベルの“H”に設定されるとCPUIが初期化される。
First, consider a power-on reset as the first case. When the power supply voltage is turned on, the power-on flag 14 is set. When the power-on flag 14 is "H", the output of the NOR gate 16 is set to "L". Further, when the reset signal R3T is set to the active level "H" by a reset input at the same time as the power supply voltage is turned on or after the power supply voltage is turned on, the CPUI is initialized.

さらに、ORゲート7の出力CLRはリセット信号RS
Tによって強制的に“H”であるため、カウンタ2はリ
セットされ発振器3の出力fXのマスク制御信号MSに
は“L”に固定されているのでCPU動作クロりクfc
puも停止状態にある。他方、フリップフロップ5の出
力STPは“L”になり発振器3は発振状態になる。以
上のパワーオンリセット状態からリセット解除、つまり
リセット信号R3Tか立ち下がると、ORゲート7の出
力CLRが“L”になりカウンタ2が発振器3の出力f
8を入力クロックとしてカウント動作を始める。発振安
定時間の計測が終了しオーバーフローが発生しカウンタ
2の出力が“H”に変化すると、ORゲート17の出力
が“H”に変わり発振器3の出力f8のマスク制御が解
除され、CPU動作クロりクLpuが発生され、CPU
Iが動作を開始する。それと同時にRSフリップフロッ
プ15はクリアされる。
Furthermore, the output CLR of the OR gate 7 is the reset signal RS.
Since the counter 2 is forced to "H" by T, the counter 2 is reset and the mask control signal MS of the output fX of the oscillator 3 is fixed to "L", so the CPU operation clock fc
pu is also in a stopped state. On the other hand, the output STP of the flip-flop 5 becomes "L" and the oscillator 3 enters an oscillating state. When the reset is released from the above power-on reset state, that is, when the reset signal R3T falls, the output CLR of the OR gate 7 becomes "L" and the counter 2 outputs the output f of the oscillator 3.
8 as the input clock and starts counting operation. When the measurement of the oscillation stabilization time is completed and an overflow occurs and the output of the counter 2 changes to "H", the output of the OR gate 17 changes to "H", the mask control of the output f8 of the oscillator 3 is released, and the CPU operation clock A leakage Lpu is generated and the CPU
I starts working. At the same time, the RS flip-flop 15 is cleared.

次に、第2の場合として命令実行状態、すなわち発振器
3が発振状態でのリセット入力を考えてみる。CPU1
は命令実行状態において、まず初めにパワーオンフラグ
14をクリアする命令を実行する。このときには、パワ
ーオンフラグ14のクリア信号PONCLがアクティブ
となりパワーオンフラグ14の出力が“L″に設定され
る。したかって、この場合にはNORゲート16の出力
は“H”であるためORゲート17の出力は常に“H”
に設定される。そして、この状態てリセット信号R3T
か再びアクティブとなると、CPU1は初期化されると
同時に、インバータ18の出力が“L” (リセット信
号RSTが“H”である)であるため、発振器3の出力
f8のマスク制御信号MSにが“L”になりCPU動作
クロりクfcpuは停止している。リセット信号R3T
が“H”から“L″へ変化すると、インバータ18の出
力が“L”から“L″へ変化し、マスク制御信号MSK
が“H”に変化して再びCPU動作クロりクfellL
+が発生される。
Next, consider a second case in which a reset is input while the instruction is being executed, that is, the oscillator 3 is in an oscillating state. CPU1
In the instruction execution state, first, the instruction to clear the power-on flag 14 is executed. At this time, the clear signal PONCL of the power-on flag 14 becomes active, and the output of the power-on flag 14 is set to "L". Therefore, in this case, since the output of the NOR gate 16 is "H", the output of the OR gate 17 is always "H".
is set to In this state, the reset signal R3T
When the CPU 1 becomes active again, the CPU 1 is initialized and at the same time, since the output of the inverter 18 is "L" (the reset signal RST is "H"), the mask control signal MS of the output f8 of the oscillator 3 is It becomes "L" and the CPU operation clock fcpu is stopped. Reset signal R3T
changes from "H" to "L", the output of the inverter 18 changes from "L" to "L", and the mask control signal MSK changes from "L" to "L".
changes to “H” and the CPU operation clock falls again.
+ is generated.

第3の場合として、ストップ状態をリセット信号R5T
によって解除する場合を考える。
In the third case, the stop state is reset by the signal R5T.
Consider the case of canceling by

cpuiか命令実行状態において、ストップモード°に
設定するための命令を実行したとする。
Assume that an instruction for setting the stop mode is executed while the CPU is in an instruction execution state.

このときCPUIからストップ制御信号STOPか“L
”から“H”へ変化し、この信号5TOPの立ちあかり
をエツジ検出回路6にて検出し、RSフリップフロップ
5および15をセットする。すると発振器停止信号ST
Pか“H”になり発振器3か停止し、カウンタ2がリセ
ットされる。それと同時にNORゲート16の出力が“
L”に設定され、結局ORケート17の出力が“L”に
なりマスク制御信号MSにも“L”となってCPU動作
クロりクfcpuが停止する。この状態でリセット信号
R3Tを“H”にすると、フリップフロップ5がリセッ
トされ発振器停止信号STPが“L”になり、発振を開
始する。そしてリセット信号R3Tを“H”から“L”
へ変化させてリセットを解除すると、ORゲート7の出
力が“H”から“L”へ変化してカウンタ2が動作する
。発振安定時間の計測を終了し、カウンタ2の出力が“
H”になるとORゲート17の出力が“L″になりマス
ク制御信号MSにも結局“H”になる。すると、CPU
動作クロりクfcpuが動作を開始する。それと同時に
RSフリップフロップ15がクリアされNORゲート1
6の出力は“H”に設定され、ORケート17の出力も
“H”に固定される。
At this time, the stop control signal STOP or “L” is sent from the CPUI.
” to “H”, the rising edge of this signal 5TOP is detected by the edge detection circuit 6, and the RS flip-flops 5 and 15 are set.Then, the oscillator stop signal ST
P becomes "H", the oscillator 3 stops, and the counter 2 is reset. At the same time, the output of the NOR gate 16 is “
Eventually, the output of the OR gate 17 becomes "L" and the mask control signal MS also becomes "L", and the CPU operating clock fcpu stops. In this state, the reset signal R3T is set to "H". When the flip-flop 5 is reset, the oscillator stop signal STP becomes "L" and oscillation starts.Then, the reset signal R3T is changed from "H" to "L".
When the output of the OR gate 7 changes from "H" to "L" and the reset is released, the counter 2 starts operating. The measurement of the oscillation stabilization time is finished, and the output of counter 2 is “
When the output of the OR gate 17 becomes "L", the mask control signal MS also becomes "H".Then, the CPU
The operating clock fcpu starts operating. At the same time, the RS flip-flop 15 is cleared and the NOR gate 1
The output of OR gate 17 is set to "H", and the output of OR gate 17 is also fixed to "H".

[発明の効果コ 以上説明したように本発明は、発振器か停止状態てのリ
セット入力であるか、発振器が発振状態てのリセット入
力であるかを識別し、発振器が停止していないときのリ
セット入力ではリセット解除後、すみやかにCPU動作
状態に移行することにより、マイクロコンピュータの応
用範囲が広くなるという効果がある。
[Effects of the Invention] As explained above, the present invention distinguishes whether the oscillator is a reset input when the oscillator is stopped or the oscillator is in an oscillating state, and the reset input is performed when the oscillator is not stopped. In the input mode, the microcomputer can be used in a wider range of applications by quickly transitioning to the CPU operating state after the reset is released.

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

第1図は本発明の一実施例のマイクロコンピュータのブ
ロック図、第2図は従来例のブロック図である。 1・−CP U、2・・・発振安定時間計測用カウンタ
、3・・・発振器、4・・・外部割込み検出回路、5・
・・RSフリップフロップ、6・・・エツジ検出回路、
7.8・・・ORゲート、9−A N Dゲート、10
゜11・・・発振器接続端子、12−・・外部割込み入
力端子、13・・・リセット入力端子、14・・・パワ
ーオンフラグ、15−RSフリップフロップ、16−・
・NORゲート、17・・・ORゲート、18・−イン
バータ、19−ANDゲート、5TOP−ストップ制御
信号、S T P−・・RSフリップフロップ5の出力
、I N T−・・割込み信号、INTRQ−・割込み
信号、RS T−・・リセット信号、CLR−ORゲー
ト7の出力、MSに・・・マスク制御信号、f、−発振
器3の出力、fc、、−A N Dゲート9の出力。
FIG. 1 is a block diagram of a microcomputer according to an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional example. 1.-CPU, 2.. Counter for measuring oscillation stabilization time, 3.. Oscillator, 4.. External interrupt detection circuit, 5.
...RS flip-flop, 6...edge detection circuit,
7.8...OR gate, 9-A N D gate, 10
゜11... Oscillator connection terminal, 12-... External interrupt input terminal, 13... Reset input terminal, 14... Power-on flag, 15-RS flip-flop, 16-...
・NOR gate, 17...OR gate, 18...inverter, 19-AND gate, 5TOP-stop control signal, STP-...output of RS flip-flop 5, INT-...interrupt signal, INTRQ - Interrupt signal, RST - Reset signal, output of CLR-OR gate 7, MS... mask control signal, f, - Output of oscillator 3, fc, - Output of A N D gate 9.

Claims (1)

【特許請求の範囲】 1、マイクロコンピュータにおいて、 CPU動作クロック用の基準クロックを発生する発振器
と、 該発振器の基準クロックをカウントし、該発振器の発振
安定時間を確保する発振安定時間計測用カウンタと、 CPUから出力されるストップ制御信号により前記発振
器を停止させ、外部割込み要求信号またはCPUのリセ
ット信号により発振器を発振させる発振器制御回路と、 リセット信号または前記ストップ制御信号により前記カ
ウンタをクリアするカウンタ制御回路と、 該マイクロコンピュータの電源電圧の投入を記憶するパ
ワーオンフラグと、 リセット信号がインアクティブでパワーオンフラグに電
源電圧の投入が記憶されていないか、リセット信号、ス
トップ制御信号ともにインアクティブか、リセット信号
がインアクティブで発振安定時間計測用カウンタからオ
ーバーフロー信号が出力されたときのいずれかの場合に
マスク制御信号をインアクティブにし、これら以外の場
合にはマスク制御信号をアクティブにするマスク制御信
号発生回路と、 マスク制御信号がインアクティブの場合のみ、前記基準
クロックをCPUに出力するゲート回路とを有すること
を特徴とするマイクロコンピュータ。
[Scope of Claims] 1. In a microcomputer, an oscillator that generates a reference clock for a CPU operation clock; an oscillation stabilization time counter that counts the reference clock of the oscillator to ensure the oscillation stabilization time of the oscillator; , an oscillator control circuit that stops the oscillator in response to a stop control signal output from the CPU and oscillates the oscillator in response to an external interrupt request signal or a reset signal of the CPU; and a counter control circuit that clears the counter in response to the reset signal or the stop control signal. The circuit, the power-on flag that memorizes the application of the power supply voltage to the microcomputer, and whether the reset signal is inactive and the power-on flag does not store the application of the power supply voltage, or whether the reset signal and stop control signal are both inactive. Mask control that makes the mask control signal inactive in either of the cases when the reset signal is inactive and an overflow signal is output from the oscillation stabilization time measurement counter, and activates the mask control signal in other cases. A microcomputer comprising: a signal generation circuit; and a gate circuit that outputs the reference clock to a CPU only when a mask control signal is inactive.
JP2084035A 1990-03-30 1990-03-30 Microcomputer Pending JPH03282804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2084035A JPH03282804A (en) 1990-03-30 1990-03-30 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2084035A JPH03282804A (en) 1990-03-30 1990-03-30 Microcomputer

Publications (1)

Publication Number Publication Date
JPH03282804A true JPH03282804A (en) 1991-12-13

Family

ID=13819271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2084035A Pending JPH03282804A (en) 1990-03-30 1990-03-30 Microcomputer

Country Status (1)

Country Link
JP (1) JPH03282804A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0764668A (en) * 1993-08-23 1995-03-10 Nippon Motorola Ltd Clock generator
US7152177B2 (en) 2001-02-13 2006-12-19 Fujitsu Limited Microcomputer and computer system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0764668A (en) * 1993-08-23 1995-03-10 Nippon Motorola Ltd Clock generator
US7152177B2 (en) 2001-02-13 2006-12-19 Fujitsu Limited Microcomputer and computer system

Similar Documents

Publication Publication Date Title
JP3460736B2 (en) Clock control circuit
JPH08166834A (en) Clock generating circuit and microcomputer
US6321289B1 (en) Apparatus for automatically notifying operating system level applications of the occurrence of system management events
JPH03282804A (en) Microcomputer
US6463492B1 (en) Technique to automatically notify an operating system level application of a system management event
JPH04158419A (en) Microcomputer
JPH07334392A (en) Resetting device and abnormal operation detector
JP4439711B2 (en) Data processing apparatus and system
JPS6260038A (en) Watchdog circuit
JP2546536B2 (en) Standby control circuit
JPH09222934A (en) Electronic equipment and camera
JPS5916029A (en) Starting circuit of electronic device
JPH0863451A (en) Microcomputer
JP2830216B2 (en) Standby circuit
JP3144811B2 (en) Monitoring timer circuit
JPS60124734A (en) Interruption processing circuit to cpu
JPS59189426A (en) Clock supply controlling system
JPH0713655A (en) Semiconductor integrated circuit
JPH0267002A (en) Oscillation circuit
JP2705311B2 (en) Microcomputer
JPS60118920A (en) Low power consumption power controller of computer system
JPH07104800B2 (en) Program evaluation device
JPS61208146A (en) Detecting circuit for cpu runaway
JPH04160906A (en) Oscillating circuit
JPS63245740A (en) Microprocessor