JPH0720964A - Electric power saving circuit and its control method - Google Patents

Electric power saving circuit and its control method

Info

Publication number
JPH0720964A
JPH0720964A JP5183547A JP18354793A JPH0720964A JP H0720964 A JPH0720964 A JP H0720964A JP 5183547 A JP5183547 A JP 5183547A JP 18354793 A JP18354793 A JP 18354793A JP H0720964 A JPH0720964 A JP H0720964A
Authority
JP
Japan
Prior art keywords
circuit
frequency
clock
save mode
cpu
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
JP5183547A
Other languages
Japanese (ja)
Other versions
JP3461535B2 (en
Inventor
Soji Hashizume
聡司 橋爪
Masamitsu Kakehi
雅光 筧
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.)
Kokusai Electric Corp
Original Assignee
Kokusai Electric 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 Kokusai Electric Corp filed Critical Kokusai Electric Corp
Priority to JP18354793A priority Critical patent/JP3461535B2/en
Publication of JPH0720964A publication Critical patent/JPH0720964A/en
Application granted granted Critical
Publication of JP3461535B2 publication Critical patent/JP3461535B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Transceivers (AREA)
  • Transmitters (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

PURPOSE:To provide an electric power saving circuit and its control method which are improved in the saving efficiency of electric power. CONSTITUTION:In the electric power saving circuit and its control method, when an event control circuit 5 which receives a power saving mode start instruction from a CPU 1 controls the entirety to enter power saving mode, only a timer counter 2' and a low-frequency crystal oscillation circuit 6 which supplies a clock are made to operate and a high-frequency crystal oscillation circuit 3 which supplies a high frequency clock to the CPU 1 in normal mode and a multi-stage frequency dividing circuit 4 which supplies a low-frequency clock to the timer counter 2' by sequential frequency division are stopped.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、無線端末装置に用いら
れる消費電力セービング回路に係り、特に消費電力を大
幅に低減することができる消費電力セービング回路及び
その制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a power consumption saving circuit used in a wireless terminal device, and more particularly to a power consumption saving circuit capable of significantly reducing power consumption and a control method thereof.

【0002】[0002]

【従来の技術】まず、従来の消費電力セービング回路に
ついて図5を使って説明する。図5は、従来の消費電力
セービング回路の構成ブロック図である。従来の消費電
力セービング回路(パワーセービング回路)は、図5に
示すように、パワーセーブモードを有するCPU1と、
パワーセーブモード時間のカウント及びCPU1にパワ
ーセーブモード解除の割込みを行うタイマカウンタ2
と、CPU1に供給する高周波のクロック(CPU用ク
ロック)を発生する高周波水晶発振回路3と、高周波水
晶発振回路3から発生する高周波クロックを順次分周し
て低周波クロックに落とし、タイマカウンタ2に供給す
る多段分周回路4とから構成されている。
2. Description of the Related Art First, a conventional power saving circuit will be described with reference to FIG. FIG. 5 is a configuration block diagram of a conventional power consumption saving circuit. As shown in FIG. 5, a conventional power consumption saving circuit (power saving circuit) includes a CPU 1 having a power save mode,
Timer counter 2 that counts power save mode time and interrupts CPU 1 to cancel power save mode
, A high-frequency crystal oscillation circuit 3 for generating a high-frequency clock (CPU clock) to be supplied to the CPU 1, and a high-frequency clock generated from the high-frequency crystal oscillation circuit 3 are sequentially divided and dropped into a low-frequency clock, which is then stored in the timer counter 2. And a multi-stage frequency dividing circuit 4 for supplying.

【0003】次に、各構成部分について具体的に説明す
る。CPU1は、高周波(例えばMHzオーダー)のク
ロックで動作し、パワーセーブモード(低電力消費状
態)を有するCPUであり、パワーセーブモードに移行
した時にはクロックを供給する必要はなくなり、またタ
イマカウンタ2からの割込みでパワーセーブモードを解
除し、高周波水晶発振回路3からCPU用クロックが与
えられて通常モードに復帰するようになっている。
Next, each component will be specifically described. The CPU 1 is a CPU that operates with a high-frequency (for example, MHz order) clock and has a power save mode (low power consumption state). When the power save mode is entered, it is not necessary to supply the clock, and the timer counter 2 The power save mode is canceled by the interruption of 1) and the CPU clock is applied from the high frequency crystal oscillation circuit 3 to return to the normal mode.

【0004】タイマカウンタ2は、多段分周回路4から
供給される低周波(例えばKHzオーダー)のクロック
で動作し、パワーセーブモードに入ると予めCPU1か
ら設定された解除までの時間をカウントし、CPU1に
パワーセーブモード解除の割込みを行うものである。
The timer counter 2 operates with a low-frequency (for example, KHz order) clock supplied from the multi-stage frequency dividing circuit 4, and when the power save mode is entered, it counts the time from the CPU 1 to the preset cancellation, The CPU 1 interrupts the power save mode release.

【0005】高周波水晶発振回路3は、CPU1に供給
する高周波(例えばMHzオーダー)のクロック(CP
U用クロック)を発生する発振回路である。
The high frequency crystal oscillator circuit 3 supplies a high frequency (eg, MHz order) clock (CP) to the CPU 1.
It is an oscillator circuit that generates a U clock).

【0006】多段分周回路4は、高周波水晶発振回路3
が発振する高周波クロック(MHzオーダー)を順次分
周して低周波クロック(KHzオーダー)を作成し、タ
イマカウンタ2に供給するものである。
The multi-stage frequency dividing circuit 4 is a high frequency crystal oscillating circuit 3
Is sequentially divided to generate a low frequency clock (KHz order), and the low frequency clock (KHz order) is supplied to the timer counter 2.

【0007】ここで、多段分周回路4について、図6の
例で詳しく説明する。図6は、多段分周回路の概略説明
図である。多段分周回路4は、複数の分周回路を直列に
接続し、高い周波数から低い周波数を作成するもので、
例えば、19.2MHzから200Hzのクロックを作
る場合、図6に示すように、1/2分周回路や1/3分
周回路や1/5分周回路を複数組み合わせて、全体で1
/96000になるように分周回路を直列に接続して構
成されている。
Here, the multi-stage frequency dividing circuit 4 will be described in detail with reference to the example of FIG. FIG. 6 is a schematic explanatory diagram of a multi-stage frequency dividing circuit. The multi-stage frequency dividing circuit 4 connects a plurality of frequency dividing circuits in series and creates a low frequency from a high frequency.
For example, when a clock of 19.2 MHz to 200 Hz is generated, as shown in FIG. 6, a plurality of 1/2 divider circuits, 1/3 divider circuits, and 1/5 divider circuits are combined to make a total of 1
The frequency dividing circuits are connected in series so as to be / 96000.

【0008】ここで、多段分周回路4は、多くのフリッ
プフロップ(カウンタ)で構成されており、また、扱う
周波数がMHzオーダーのように高周波であると、多段
分周回路の初段付近ではフリップフロップを高速動作さ
せる必要があり、消費電力も大きなものとなっている。
Here, the multi-stage frequency dividing circuit 4 is composed of many flip-flops (counters), and if the frequency to be handled is a high frequency such as the order of MHz, the flip-flop circuit near the first stage of the multi-stage frequency dividing circuit. It is necessary to operate the flash at high speed, and the power consumption is also large.

【0009】次に、従来のパワーセービング回路の制御
方法について説明する。従来のパワーセービング回路の
制御方法は、図5に示すように、CPU1がパワーセー
ブモードに移行すると、タイマカウンタ2で予め設定さ
れたパワーセーブモードの時間が終了するまでカウント
を行い、設定時間に到達したならタイマカウンタ2から
CPU1にパワーセーブモード解除の割込みを行い、C
PU1は通常モードに戻るようになっている。
Next, a conventional method for controlling the power saving circuit will be described. In the conventional power saving circuit control method, as shown in FIG. 5, when the CPU 1 shifts to the power save mode, the timer counter 2 counts until the preset power save mode time ends, and When it reaches, the timer counter 2 interrupts the CPU 1 to cancel the power save mode, and C
PU1 is designed to return to the normal mode.

【0010】そのため、パワーセーブモード中では高周
波水晶発振回路3からCPU1に供給されていたCPU
用クロックは不要であって、高周波水晶発振回路3を停
止可能となるが、タイマカウンタ2を常時動作させてお
くためには、高周波水晶発振回路3と、高周波水晶発振
回路3から発生する高周波クロックをタイマカウンタ2
用の低周波クロックに分周して供給する多段分周回路4
とを常時動作させていなければならず、高周波水晶発振
回路3と多段分周回路4への電源電圧Vccは、常に供給
されている必要がある。
Therefore, the CPU supplied from the high-frequency crystal oscillator circuit 3 to the CPU 1 in the power save mode.
The clock for use is unnecessary and the high frequency crystal oscillation circuit 3 can be stopped. However, in order to keep the timer counter 2 operating at all times, the high frequency crystal oscillation circuit 3 and the high frequency clock generated from the high frequency crystal oscillation circuit 3 are required. Timer counter 2
Multi-stage frequency divider circuit 4 that supplies frequency-divided low-frequency clocks for
Must be constantly operated, and the power supply voltage Vcc to the high frequency crystal oscillation circuit 3 and the multi-stage frequency dividing circuit 4 must be constantly supplied.

【0011】[0011]

【発明が解決しようとする課題】従って、上記従来のパ
ワーセービング回路及びその制御方法では、パワーセー
ブモード中に、高周波のCPU用クロックは停止可能で
あるにも拘らず、低周波のクロックで十分なタイマクロ
ックを動作させるために、高周波水晶発振回路3及び多
段分周回路4を動作させなければならず、パワーセーブ
の効率が悪いという問題点があった。
Therefore, in the above conventional power saving circuit and its control method, the low frequency clock is sufficient although the high frequency CPU clock can be stopped during the power save mode. In order to operate such a timer clock, the high-frequency crystal oscillator circuit 3 and the multi-stage frequency dividing circuit 4 must be operated, which causes a problem of low power saving efficiency.

【0012】本発明は上記実情に鑑みて為されたもの
で、消費電力のセーブ効率を良くした消費電力セービン
グ回路及びその制御方法を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a power consumption saving circuit and a control method thereof in which the efficiency of saving the power consumption is improved.

【0013】[0013]

【課題を解決するための手段】上記従来例の問題点を解
決するための請求項1記載の発明は、パワーセーブモー
ドを有するCPUと、パワーセーブモード時間のカウン
トを行うタイマカウンタと、前記CPUに高周波クロッ
クを供給する高周波発振回路と、前記高周波発振回路か
ら発生する高周波クロックを順次分周して低周波クロッ
クを発生させる多段分周回路とを有する消費電力セービ
ング回路において、パワーセーブモードに移行した時に
前記タイマカウンタに低周波クロックを供給する低周波
発振回路と、前記タイマカウンタへ入力されるクロック
を選択するクロック選択スイッチと、前記高周波発振回
路の出力を制御する出力制御回路と、前記高周波発振回
路と前記低周波発振回路の起動・停止指示を行い、前記
クロック選択スイッチの切り換え指示を行い、前記出力
制御回路の制御指示を行い、パワーセーブモード移行時
に前記CPUからパワーセーブモード開始命令を受け取
り、前記タイマカウンタの起動指示を行い、パワーセー
ブモード解除時に前記タイマカウンタからタイマカウン
ト完了信号を受け取り、前記CPUにパワーセーブモー
ド解除用の割込みを行うイベント制御回路とを設けたこ
とを特徴としている。
The invention according to claim 1 for solving the above-mentioned problems of the prior art is a CPU having a power save mode, a timer counter for counting the power save mode time, and the CPU. A power consumption saving circuit having a high-frequency oscillating circuit for supplying a high-frequency clock and a multi-stage frequency dividing circuit for sequentially dividing a high-frequency clock generated from the high-frequency oscillating circuit to generate a low-frequency clock A low-frequency oscillation circuit that supplies a low-frequency clock to the timer counter, a clock selection switch that selects a clock input to the timer counter, an output control circuit that controls the output of the high-frequency oscillation circuit, and the high-frequency oscillation circuit. It gives instructions to start / stop the oscillator circuit and the low-frequency oscillator circuit, and Switch instruction, output control circuit control instruction, power save mode start instruction from the CPU at power save mode transition, timer counter start instruction, and power save mode release timer counter The CPU is provided with an event control circuit for receiving a timer count completion signal from the CPU and making an interrupt for canceling the power save mode.

【0014】上記従来例の問題点を解決するための請求
項2記載の発明は、請求項1記載の消費電力セービング
回路の制御方法において、パワーセーブモードに移行す
る時は、前記CPUからパワーセーブモード開始命令を
受け取った前記イベント制御回路が、前記低周波発振回
路を起動し、前記クロック選択スイッチを切り換えて前
記低周波発振回路からのクロックを前記タイマカウンタ
に出力し、前記タイマカウンタを起動し、前記出力制御
回路を制御して前記CPU及び前記多段分周回路へのク
ロックを停止し、前記高周波発振回路を停止することを
特徴としている。
According to a second aspect of the present invention for solving the above-mentioned problems of the conventional example, in the control method of the power consumption saving circuit according to the first aspect, when shifting to the power save mode, the CPU saves power. Upon receiving the mode start command, the event control circuit activates the low frequency oscillation circuit, switches the clock selection switch to output the clock from the low frequency oscillation circuit to the timer counter, and activates the timer counter. The output control circuit is controlled to stop the clocks to the CPU and the multi-stage frequency dividing circuit, and to stop the high frequency oscillation circuit.

【0015】上記従来例の問題点を解決するための請求
項3記載の発明は、請求項1記載の消費電力セービング
回路の制御方法において、パワーセーブモードを解除す
る時は、前記タイマカウンタからタイマカウント完了信
号を受け取った前記イベント制御回路が、前記高周波発
振回路を起動し、発振安定待ち時間経過後に前記出力制
御回路を制御して前記高周波発振回路からのクロックを
前記CPU及び前記多段分周回路に出力し、前記クロッ
ク選択スイッチを切り換えて前記多段分周回路からのク
ロックを前記タイマカウンタに出力し、前記CPUに対
してパワーセーブモード解除用の割込みを行って前記C
PUのパワーセーブモードを解除させ、前記低周波発振
回路を停止させることを特徴としている。
According to a third aspect of the present invention for solving the above-mentioned problems of the conventional example, in the control method of the power consumption saving circuit according to the first aspect, when the power save mode is released, the timer counter is operated by the timer. The event control circuit that receives the count completion signal activates the high frequency oscillation circuit, controls the output control circuit after the oscillation stabilization wait time has elapsed, and outputs the clock from the high frequency oscillation circuit to the CPU and the multi-stage frequency dividing circuit. The clock from the multistage divider circuit is output to the timer counter, and an interrupt for canceling the power save mode is performed to the CPU to output the clock to the CPU.
It is characterized in that the power save mode of the PU is released and the low frequency oscillation circuit is stopped.

【0016】[0016]

【作用】請求項1記載の発明によれば、イベント制御回
路がパワーセーブモード移行時にCPUからパワーセー
ブモード開始命令を受け取ってタイマカウンタの起動を
行い、低周波発振回路を起動させてクロック選択スイッ
チを切り換えて低周波発振回路からのクロックをタイマ
カウンタに出力させ、高周波発振回路を停止させ、ま
た、パワーセーブモード解除時にタイマカウンタからタ
イマカウント完了信号を受け取り、高周波発振回路を起
動させて出力制御回路を制御して高周波発振回路からの
クロックをCPUと多段分周回路に出力し、クロック選
択スイッチを切り換えて多段分周回路からのクロックを
タイマカウンタに出力させ、CPUにパワーセーブモー
ド解除用の割込みを行い、低周波発振回路を停止させる
消費電力セービング回路としているので、パワーセーブ
モードに移行した時には高周波発振回路と多段分周回路
とを停止させることができ、パワーセーブモード中の消
費電力を大幅に低減できる。
According to the first aspect of the present invention, the event control circuit receives the power save mode start command from the CPU at the time of transition to the power save mode, starts the timer counter, and starts the low frequency oscillator circuit to start the clock selection switch. To output the clock from the low-frequency oscillation circuit to the timer counter, stop the high-frequency oscillation circuit, and receive the timer count completion signal from the timer counter when the power save mode is released, and activate the high-frequency oscillation circuit to control the output. The circuit is controlled to output the clock from the high-frequency oscillator circuit to the CPU and the multi-stage frequency divider circuit, and the clock selection switch is switched to output the clock from the multi-stage frequency divider circuit to the timer counter. Power saving that interrupts and stops the low-frequency oscillation circuit Since the road, when a transition to the power save mode can be stopped and a high-frequency oscillation circuit and a multi-stage divider, the power consumption during the power save mode can be significantly reduced.

【0017】請求項2記載の発明によれば、イベント制
御回路がCPUからパワーセーブモード開始命令を受け
取ると、低周波発振回路を起動し、クロック選択スイッ
チを切り換えて低周波発振回路からのクロックをタイマ
カウンタに出力し、そしてタイマカウンタを起動し、出
力制御回路を制御してCPU及び多段分周回路へのクロ
ックを停止し、高周波発振回路を停止する請求項1記載
の消費電力セービング回路の制御方法としているので、
パワーセーブモードに移行した時には高周波発振回路と
多段分周回路とを停止させることができ、パワーセーブ
モード中の消費電力を大幅に低減できる。
According to the second aspect of the present invention, when the event control circuit receives the power save mode start command from the CPU, the low frequency oscillation circuit is activated, and the clock selection switch is switched to change the clock from the low frequency oscillation circuit. 2. The control of the power consumption saving circuit according to claim 1, wherein the power consumption saving circuit is output to a timer counter, starts the timer counter, controls the output control circuit to stop the clock to the CPU and the multi-stage frequency dividing circuit, and stops the high frequency oscillation circuit. Since it is a method,
When shifting to the power save mode, the high frequency oscillator circuit and the multi-stage frequency dividing circuit can be stopped, and the power consumption during the power save mode can be significantly reduced.

【0018】請求項3記載の発明によれば、イベント制
御回路がタイマカウンタからタイマカウント完了信号を
受け取ると、高周波発振回路を起動し、発振安定待ち時
間経過後に出力制御回路を制御して高周波発振回路から
のクロックをCPU及び多段分周回路に出力し、そして
クロック選択スイッチを切り換えて多段分周回路からの
クロックをタイマカウンタに出力し、CPUに対してパ
ワーセーブモード解除用の割込みを行ってCPUのパワ
ーセーブモードを解除させ、低周波発振回路を停止させ
る請求項1記載の消費電力セービング回路の制御方法と
しているので、パワーセーブモード解除時に低周波発振
回路から高周波発振回路への切り換えを容易に行うこと
ができる。
According to the third aspect of the invention, when the event control circuit receives the timer count completion signal from the timer counter, the high frequency oscillation circuit is activated, and after the oscillation stabilization wait time has elapsed, the output control circuit is controlled to control the high frequency oscillation. The clock from the circuit is output to the CPU and the multi-stage frequency dividing circuit, and the clock selection switch is switched to output the clock from the multi-stage frequency dividing circuit to the timer counter, and an interrupt for canceling the power save mode is issued to the CPU. Since the power saving mode of the CPU is released and the low frequency oscillation circuit is stopped, the control method of the power consumption saving circuit according to claim 1 is adopted. Therefore, it is easy to switch from the low frequency oscillation circuit to the high frequency oscillation circuit when the power save mode is released. Can be done.

【0019】[0019]

【実施例】本発明の一実施例について図面を参照しなが
ら説明する。図1は、本発明の一実施例に係る無線装置
に用いられる消費電力セービング回路の構成ブロック図
である。尚、図5と同様の構成をとる部分については同
一の符号を付して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a configuration block diagram of a power consumption saving circuit used in a wireless device according to an embodiment of the present invention. It should be noted that parts having the same configuration as in FIG.

【0020】本実施例の消費電力セービング回路(パワ
ーセービング回路)は、図1に示すように、従来の消費
電力セービング回路と同様の構成として、パワーセーブ
モードを有するCPU1と、パワーセーブモード時間の
カウントを行うタイマカウンタ2′と、CPU1に供給
する高周波のクロック(CPU用クロック)を発生する
高周波水晶発振回路3と、高周波水晶発振回路3から発
生する高周波クロックを順次分周して低周波クロックに
落とす多段分周回路4とから構成され、更に本実施例の
特徴部分として、パワーセービング回路全体をコントロ
ールするイベント制御回路5と、パワーセーブモード中
のタイマカウンタ2′専用の低周波クロックを発生する
低周波水晶発振回路6と、タイマカウンタ2′へのクロ
ックを選択するクロック選択スイッチ(SEL)7と、
高周波水晶発振回路3の出力を制御する出力制御回路8
と、高周波水晶発振回路3の電源スイッチSW(1) 9
と、低周波水晶発振回路6の電源スイッチSW(2) 10
とが設けられている。
As shown in FIG. 1, the power consumption saving circuit (power saving circuit) of the present embodiment has a configuration similar to that of the conventional power consumption saving circuit, and includes a CPU 1 having a power save mode and a power save mode time. A timer counter 2'for counting, a high-frequency crystal oscillation circuit 3 for generating a high-frequency clock (CPU clock) to be supplied to the CPU 1, and a high-frequency clock generated by the high-frequency crystal oscillation circuit 3 are sequentially divided to generate a low-frequency clock. And a multi-stage frequency dividing circuit 4 for reducing the frequency, and as a characteristic part of this embodiment, an event control circuit 5 for controlling the entire power saving circuit and a low frequency clock dedicated to the timer counter 2'in the power save mode are generated. Low frequency crystal oscillator circuit 6 and a clock for selecting the clock to the timer counter 2 '. And-click selection switch (SEL) 7,
Output control circuit 8 for controlling the output of the high-frequency crystal oscillation circuit 3
And the power switch SW (1) 9 of the high-frequency crystal oscillation circuit 3
And the power switch SW (2) 10 of the low frequency crystal oscillation circuit 6
And are provided.

【0021】次に、本実施例の消費電力セービング回路
の各構成部分について具体的に説明する。CPU1は、
従来と同様で高周波(例えばMHzオーダー)のクロッ
クで動作し、パワーセーブモード(低電力消費状態)を
有するCPUであり、パワーセーブモードに移行した時
にはクロックを供給する必要がなく、イベント制御回路
5からのパワーセーブモード解除用NMI割込み(Non
Maskable Interrupt:最優先割込み)aでパワーセーブ
モードを解除して通常モードに復帰するようになってい
る。
Next, each component of the power consumption saving circuit of this embodiment will be specifically described. CPU1
It is a CPU that operates with a high-frequency (for example, MHz order) clock as in the conventional case and has a power save mode (low power consumption state). It is not necessary to supply a clock when shifting to the power save mode, and the event control circuit 5 Power save mode release NMI interrupt from (Non
Maskable Interrupt: The highest priority interrupt) a cancels the power save mode and returns to the normal mode.

【0022】タイマカウンタ2′は、イベント制御回路
5の制御の下で動作し、パワーセーブモードに入るとイ
ベント制御回路5からのタイマカウント起動信号bによ
りパワーセーブモード解除までの時間のカウントを開始
し、CPU1から設定されたパワーセーブモード時間に
到達したなら、イベント制御回路5に対してタイマカウ
ント完了信号cによりカウント完了を通知する。
The timer counter 2'operates under the control of the event control circuit 5, and when the power save mode is entered, the timer count start signal b from the event control circuit 5 starts counting the time until the power save mode is released. When the power save mode time set by the CPU 1 is reached, the event control circuit 5 is notified of the completion of counting by the timer count completion signal c.

【0023】また、タイマカウンタ2′は、通常モード
では高周波水晶発振回路3から発生する高周波クロック
(例えばMHzオーダー)を多段分周回路4で低周波
(例えばKHzオーダー)に落としたクロックで動作
し、パワーセーブモードでは低周波水晶発振回路6から
発生する低周波クロック(例えばKHzオーダー)で動
作するようになっており、この2つのクロックをクロッ
ク選択スイッチ7で切り替えるようになっている。
In the normal mode, the timer counter 2'operates with a clock obtained by dropping the high frequency clock (for example, MHz order) generated from the high frequency crystal oscillation circuit 3 to a low frequency (for example, KHz order) by the multistage frequency dividing circuit 4. In the power save mode, the low-frequency crystal oscillation circuit 6 operates with a low-frequency clock (for example, KHz order), and these two clocks are switched by the clock selection switch 7.

【0024】高周波水晶発振回路3は、従来と同様でC
PU1に供給する高周波(例えばMHzオーダー)のク
ロックを発生する発振回路であり、イベント制御回路5
によって制御される電源スイッチSW(1) 9のON/O
FFで起動/停止が制御され、更にイベント制御回路5
によって制御される出力制御回路8によってその出力が
制御されている。
The high-frequency crystal oscillator circuit 3 has the same C
The event control circuit 5 is an oscillation circuit that generates a high-frequency (eg, MHz order) clock supplied to the PU 1.
ON / O of power switch SW (1) 9 controlled by
Start / stop is controlled by FF, and event control circuit 5
The output is controlled by the output control circuit 8 controlled by.

【0025】通常、高周波水晶発振回路3は、発生させ
る周波数がMHzオーダーという高い周波数であるため
に、電源投入直後は発振周波数が安定せず、不安定な出
力をCPU1及び多段分周回路4に与えないために、出
力制御回路8で制御するようになっている。
Since the high-frequency crystal oscillation circuit 3 normally generates a high frequency of the order of MHz, the oscillation frequency is not stable immediately after the power is turned on, and an unstable output is sent to the CPU 1 and the multi-stage frequency dividing circuit 4. In order not to give it, the output control circuit 8 controls it.

【0026】多段分周回路4は、従来と同様で高周波水
晶発振回路3が発振する高周波クロック(MHzオーダ
ー)を順次分周して低周波クロック(KHzオーダー)
を作成し、通常モードの時にタイマカウンタ2′にクロ
ックを供給するものであり、図6に示したような複数の
分周回路を組み合わせて、希望する周波数になるように
直列に接続したものである。
The multi-stage frequency dividing circuit 4 is a conventional low frequency clock (KHz order) by sequentially dividing the high frequency clock (MHz order) oscillated by the high frequency crystal oscillator circuit 3 as in the conventional case.
In order to supply a clock to the timer counter 2'in the normal mode. A plurality of divider circuits as shown in FIG. 6 are combined and connected in series so as to obtain a desired frequency. is there.

【0027】イベント制御回路5は、本実施例のパワー
セービング回路全体をコントロールするもので、論理回
路で構成され、各構成要素を順次制御するものである。
具体的には、CPU1からのパワーセーブモード開始命
令を受けて、タイマカウント起動信号bによるタイマカ
ウンタ2′の起動や、クロック選択信号dによるクロッ
ク選択スイッチ7の制御や、出力制御回路制御信号eに
よる出力制御回路8の制御や、高周波水晶発振回路電源
制御信号gによる高周波水晶発振回路3の電源スイッチ
SW(1) 9及び低周波水晶発振回路電源制御信号fによ
る低周波水晶発振回路6の電源スイッチSW(2) 10の
制御を行い、また、タイマカウンタ2′からのタイマカ
ウント完了信号cを受けてCPU1に対してパワーセー
ブモード解除用NMI割込み(最優先割込み)aを行う
ものである。
The event control circuit 5 controls the entire power saving circuit of this embodiment, is composed of a logic circuit, and sequentially controls each constituent element.
Specifically, in response to the power save mode start command from the CPU 1, the timer counter 2'is activated by the timer count activation signal b, the clock selection switch 7 is controlled by the clock selection signal d, and the output control circuit control signal e. Control of the output control circuit 8 and the power switch SW (1) 9 of the high frequency crystal oscillation circuit 3 by the high frequency crystal oscillation circuit power control signal g and the power of the low frequency crystal oscillation circuit 6 by the low frequency crystal oscillation circuit power control signal f The switch SW (2) 10 is controlled, and the power saving mode canceling NMI interrupt (highest priority interrupt) a is issued to the CPU 1 upon receiving the timer count completion signal c from the timer counter 2 '.

【0028】低周波水晶発振回路6は、パワーセーブモ
ードの時にタイマカウンタ2′に供給する低周波(例え
ばKHzオーダー)のクロックを発生する発振回路であ
り、イベント制御回路5によって制御される電源スイッ
チSW(2) 10のON/OFFで起動/停止が制御され
るものである。
The low-frequency crystal oscillator circuit 6 is an oscillator circuit for generating a low-frequency (for example, KHz order) clock supplied to the timer counter 2'in the power save mode, and a power switch controlled by the event control circuit 5. The start / stop is controlled by turning on / off the SW (2) 10.

【0029】クロック選択スイッチ(SEL)7は、イ
ベント制御回路5の制御の下で、タイマカウンタ2′の
クロックを切り換えるスイッチで、通常モードの時は高
周波水晶発振回路3から発生する高周波クロックを多段
分周回路4で低周波に落としたクロックを選択し、パワ
ーセーブモードの時は低周波水晶発振回路6から発生す
るクロックを選択するようになっている。
The clock selection switch (SEL) 7 is a switch for switching the clock of the timer counter 2'under the control of the event control circuit 5. In the normal mode, the high frequency clock generated from the high frequency crystal oscillation circuit 3 is multistage. A clock dropped to a low frequency by the frequency dividing circuit 4 is selected, and in the power save mode, a clock generated from the low frequency crystal oscillation circuit 6 is selected.

【0030】出力制御回路8は、イベント制御回路5の
制御の下で、高周波水晶発振回路3の出力を制御するA
ND回路である。高周波水晶発振回路3の出力と、イベ
ント制御回路5からの出力制御回路制御信号eとがAN
D回路に入力されて論理積がとられ、その出力がCPU
1及び多段分周回路4に入力されるものである。
The output control circuit 8 controls the output of the high-frequency crystal oscillation circuit 3 under the control of the event control circuit 5.
It is an ND circuit. The output of the high-frequency crystal oscillator circuit 3 and the output control circuit control signal e from the event control circuit 5 are AN
It is input to the D circuit, the logical product is taken, and the output is the CPU
It is input to the 1 and multi-stage frequency dividing circuit 4.

【0031】高周波水晶発振回路3の電源スイッチSW
(1) 9は、イベント制御回路5の制御の下で、高周波水
晶発振回路3の電源のON/OFFを行うスイッチであ
る。具体的には、通常モードで、イベント制御回路5か
らの高周波水晶発振回路電源制御信号gで電源スイッチ
SW(1) 9がONになり、高周波水晶発振回路3に電源
電圧Vccを供給するようになっている。
Power switch SW of high-frequency crystal oscillator circuit 3
(1) 9 is a switch for turning on / off the power of the high-frequency crystal oscillation circuit 3 under the control of the event control circuit 5. Specifically, in the normal mode, the power switch SW (1) 9 is turned on by the high frequency crystal oscillation circuit power supply control signal g from the event control circuit 5 so that the high frequency crystal oscillation circuit 3 is supplied with the power supply voltage Vcc. Has become.

【0032】電源スイッチSW(1) 9の詳細な構成は、
npn形のトランジスタで構成され、コレクタ(C) には
電源電圧Vccが印加され、ベース(B) にはイベント制御
回路5からの高周波水晶発振回路電源制御信号gが入力
され、エミッタ(E) 出力が高周波水晶発振回路3の電源
となるものである。イベント制御回路5からの高周波水
晶発振回路電源制御信号gがONになってベース(B) に
正電圧が加えられたときだけ、コレクタ(C) からエミッ
タ(E) に電流が流れ、高周波水晶発振回路3の電源がO
Nになるものである。
The detailed structure of the power switch SW (1) 9 is as follows.
It is composed of npn type transistor, the power supply voltage Vcc is applied to the collector (C), the high frequency crystal oscillator power supply control signal g from the event control circuit 5 is input to the base (B), and the emitter (E) output. Serves as a power source for the high-frequency crystal oscillator circuit 3. High frequency crystal oscillation circuit from the event control circuit 5 Only when the power supply control signal g is turned on and a positive voltage is applied to the base (B), current flows from the collector (C) to the emitter (E), and the high frequency crystal oscillation is generated. Circuit 3 power is O
It becomes N.

【0033】低周波水晶発振回路6の電源スイッチSW
(2) 10は、イベント制御回路5の制御の下で、低周波
水晶発振回路6の電源のON/OFFを行うスイッチで
ある。具体的には、パワーセーブモードで、イベント制
御回路5からの低周波水晶発振回路電源制御信号fで電
源スイッチSW(2) 10がONになり、低周波水晶発振
回路6に電源電圧Vccを供給するようになっている。
Power switch SW of the low frequency crystal oscillation circuit 6
(2) 10 is a switch for turning on / off the power supply of the low-frequency crystal oscillation circuit 6 under the control of the event control circuit 5. Specifically, in the power save mode, the power switch SW (2) 10 is turned on by the low frequency crystal oscillation circuit power supply control signal f from the event control circuit 5, and the power supply voltage Vcc is supplied to the low frequency crystal oscillation circuit 6. It is supposed to do.

【0034】電源スイッチSW(2) 10も電源スイッチ
SW(1) 9と同様に、npn形のトランジスタで構成さ
れ、コレクタ(C) には電源電圧Vccが印加され、ベース
(B)にはイベント制御回路5からの低周波水晶発振回路
電源制御信号fが入力され、エミッタ(E) 出力が低周波
水晶発振回路6の電源となるものである。イベント制御
回路5からの低周波水晶発振回路電源制御信号fがON
になってベース(B) に正電圧が加えられたときだけ、コ
レクタ(C) からエミッタ(E) に電流が流れ、低周波水晶
発振回路6の電源がONになるものである。
Like the power switch SW (1) 9, the power switch SW (2) 10 is also composed of an npn-type transistor, and the collector (C) is supplied with the power supply voltage Vcc,
The low frequency crystal oscillation circuit power supply control signal f from the event control circuit 5 is input to (B), and the emitter (E) output serves as the power supply of the low frequency crystal oscillation circuit 6. The low frequency crystal oscillator circuit power supply control signal f from the event control circuit 5 is turned on.
Only when a positive voltage is applied to the base (B), a current flows from the collector (C) to the emitter (E), and the low frequency crystal oscillation circuit 6 is powered on.

【0035】次に、本実施例の消費電力セービング回路
の制御方法について説明する。本実施例の消費電力セー
ビング回路の制御方法は、CPU1がパワーセーブモー
ドに移行する場合、まず、CPU1からデータバス11
を介してタイマカウンタ2′に対してパワーセーブモー
ド時間が設定され、イベント制御回路5に対してパワー
セーブモード開始命令が出力され、CPU1はパワーセ
ーブモードに移行するコマンドを実行してパワーセーブ
モードに遷移する。そして、タイマカウンタ2′に設定
されたパワーセーブ時間が経過して、イベント制御回路
5からCPU1に対してパワーセーブモード解除用割込
みaが為されるまでの間は、全てイベント制御回路5が
消費電力セービング回路全体をコントロールすることに
なる。
Next, a method of controlling the power consumption saving circuit of this embodiment will be described. In the control method of the power consumption saving circuit of the present embodiment, when the CPU 1 shifts to the power save mode, first, the CPU 1 transfers the data bus 11 to the data bus 11.
The power save mode time is set to the timer counter 2'through the power save mode start command to the event control circuit 5, and the CPU 1 executes a command to shift to the power save mode by executing the power save mode. Transition to. The event control circuit 5 consumes all power until the event control circuit 5 issues a power save mode canceling interrupt a to the CPU 1 after the power save time set in the timer counter 2'has elapsed. It controls the entire power saving circuit.

【0036】CPU1からのパワーセーブモード開始命
令を受け取ったイベント制御回路5は、まず、低周波水
晶発振回路電源制御信号fをONにして低周波水晶発振
回路6の電源スイッチSW(2) 10をONとし、低周波
水晶発振回路6を起動させ、その後、クロック選択スイ
ッチ(SEL)7のクロック選択信号dによって、タイ
マカウンタ2′のクロックを低周波水晶発振回路6から
出力されるクロックに切り換える。
Upon receiving the power save mode start command from the CPU 1, the event control circuit 5 first turns on the low frequency crystal oscillation circuit power supply control signal f to turn on the power switch SW (2) 10 of the low frequency crystal oscillation circuit 6. The low frequency crystal oscillation circuit 6 is turned on to start up, and then the clock selection signal d of the clock selection switch (SEL) 7 switches the clock of the timer counter 2 ′ to the clock output from the low frequency crystal oscillation circuit 6.

【0037】次に、タイマカウント起動信号bでタイマ
カウンタ2′を起動し、カウントを開始させる。そし
て、高周波水晶発振回路3の出力制御回路8の出力制御
回路制御信号eをOFFにして、CPU1及び多段分周
回路4へのクロックを停止する。次に、高周波水晶発振
回路電源制御信号gをOFFにして高周波水晶発振回路
3の電源スイッチSW(1) 9をOFFとし、高周波水晶
発振回路3を停止する。
Next, the timer counter 2'is activated by the timer count activation signal b to start counting. Then, the output control circuit control signal e of the output control circuit 8 of the high-frequency crystal oscillation circuit 3 is turned off, and the clocks to the CPU 1 and the multi-stage frequency dividing circuit 4 are stopped. Next, the high frequency crystal oscillation circuit power supply control signal g is turned off to turn off the power switch SW (1) 9 of the high frequency crystal oscillation circuit 3 to stop the high frequency crystal oscillation circuit 3.

【0038】以上の動作により、CPU1はパワーセー
ブモードとなり、高周波水晶発振回路3及び多段分周回
路4が停止状態となって、システム全体が完全にパワー
セービング状態となり、タイマカウンタ2′とイベント
制御回路5及びクロックを供給する低周波水晶発振回路
6だけが動作していることになる。
By the above operation, the CPU 1 enters the power save mode, the high frequency crystal oscillator circuit 3 and the multi-stage frequency dividing circuit 4 are stopped, the entire system is completely in the power saving state, and the timer counter 2'and the event control are performed. Only the circuit 5 and the low-frequency crystal oscillator circuit 6 that supplies the clock are operating.

【0039】パワーセーブモードの間、タイマカウンタ
2′は低周波水晶発振回路6からのクロックでタイマの
カウントを続け、タイマがCPU1から設定されたパワ
ーセーブ時間に到達したならば、タイマカウンタ2′は
イベント制御回路5に対してタイマカウント完了信号c
を与える。
During the power save mode, the timer counter 2'continues counting with the clock from the low frequency crystal oscillator circuit 6, and if the timer reaches the power save time set by the CPU 1, the timer counter 2 ' Is a timer count completion signal c to the event control circuit 5.
give.

【0040】タイマカウンタ2′から、タイマカウント
完了信号cを受け取ったイベント制御回路5は、まず、
高周波水晶発振回路電源制御信号gをONにして高周波
水晶発振回路3の電源スイッチSW(1) 9をONとし、
高周波水晶発振回路3を起動する。しかし、高周波水晶
発振回路3は電源投入直後は発振周波数が安定しないた
め、発振安定待ち時間が経過した後に、出力制御回路8
への出力制御回路制御信号eをONにして、高周波水晶
発振回路3からCPU1及び多段分周回路4へのクロッ
クの供給を開始する。尚、発振安定待ち時間は、予めイ
ベント制御回路5に設定されているものである。
Upon receiving the timer count completion signal c from the timer counter 2 ', the event control circuit 5 first
The high frequency crystal oscillation circuit power control signal g is turned on, and the power switch SW (1) 9 of the high frequency crystal oscillation circuit 3 is turned on.
The high frequency crystal oscillator circuit 3 is started. However, since the oscillation frequency of the high-frequency crystal oscillator circuit 3 is not stable immediately after the power is turned on, the output control circuit 8 does not operate after the oscillation stabilization wait time elapses.
The output control circuit control signal e is turned on to start the clock supply from the high-frequency crystal oscillation circuit 3 to the CPU 1 and the multi-stage frequency dividing circuit 4. The oscillation stabilization wait time is preset in the event control circuit 5.

【0041】その後、クロック選択スイッチ(SEL)
7のクロック選択信号dによって、タイマカウンタ2′
のクロックを低周波水晶発振回路6からのクロックから
多段分周回路4からのクロックに切り換える。
After that, a clock selection switch (SEL)
According to the clock selection signal d of 7, the timer counter 2 '
Is switched from the clock from the low frequency crystal oscillation circuit 6 to the clock from the multi-stage frequency dividing circuit 4.

【0042】そして、CPU1に対してパワーセーブモ
ード解除用のNMI割込みaを行い、CPU1のパワー
セーブモードを解除させる。CPU1は、既に高周波水
晶発振回路3から出力制御回路8を通して安定したクロ
ックを受けているので、イベント制御回路5からのNM
I割込みaによって、パワーセーブモードを解除し、通
常の動作モードに移行する。
Then, the NMI interrupt a for canceling the power save mode is issued to the CPU 1 to cancel the power save mode of the CPU 1. Since the CPU 1 has already received a stable clock from the high frequency crystal oscillation circuit 3 through the output control circuit 8, the NM from the event control circuit 5 is already received.
The power save mode is canceled by the I interrupt a, and the normal operation mode is entered.

【0043】この後、イベント制御回路5は、低周波水
晶発振回路電源制御信号fをOFFにして低周波水晶発
振回路6の電源スイッチSW(2) 10をOFFとし、低
周波水晶発振回路6を停止させる。
After that, the event control circuit 5 turns off the low frequency crystal oscillation circuit power supply control signal f and turns off the power switch SW (2) 10 of the low frequency crystal oscillation circuit 6 to turn on the low frequency crystal oscillation circuit 6. Stop.

【0044】以上の動作により、CPU1は通常の動作
モードとなり、高周波水晶発振回路3及び多段分周回路
4が動作状態となって、システム全体が完全に通常の動
作状態となり、低周波水晶発振回路6は停止することに
なる。
By the above operation, the CPU 1 enters the normal operation mode, the high frequency crystal oscillation circuit 3 and the multi-stage frequency dividing circuit 4 are in the operation state, the entire system is in the normal operation state, and the low frequency crystal oscillation circuit is in operation. 6 will stop.

【0045】次に、本実施例のパワーセービング回路の
制御方法におけるCPU1及びイベント制御回路5及び
タイマカウンタ2′のパワーセービング処理動作につい
て、図1及び図2〜図4を用いて更に詳しく説明する。
図2は、本実施例のパワーセービング回路のCPU1の
処理動作を示すフローチャート図であり、図3は、イベ
ント制御回路5の処理動作を示すフローチャート図であ
り、図4は、タイマカウンタ2′の処理動作を示すフロ
ーチャート図である。尚、図2〜図4に示す処理の流れ
は関連しており、ポイント(A)〜(F)で連続するも
のである。
Next, the power saving processing operation of the CPU 1, the event control circuit 5, and the timer counter 2'in the method of controlling the power saving circuit of this embodiment will be described in more detail with reference to FIGS. 1 and 2 to 4. .
2 is a flowchart showing the processing operation of the CPU 1 of the power saving circuit of this embodiment, FIG. 3 is a flowchart showing the processing operation of the event control circuit 5, and FIG. 4 is a timer counter 2 '. It is a flowchart figure which shows a processing operation. The processing flows shown in FIGS. 2 to 4 are related and are continuous at points (A) to (F).

【0046】本実施例のパワーセービング回路のCPU
1のパワーセービング処理は、図2に示すように、まず
タイマカウンタ2′に対してパワーセーブモード時間を
設定し(100)、イベント制御回路5に対してパワー
セーブモード開始命令を出力し(110)、CPU1自
身がパワーセーブモードに移行するコマンドを実行して
(120)、パワーセーブモードに遷移する。ここで、
パワーセーブモード時間の設定とは、具体的にはタイマ
カウンタ2′におけるカウンタ値設定指示、カウンタ起
動指示及びカウンタ停止指示のことを示している。
CPU of the power saving circuit of this embodiment
In the power saving processing of No. 1, as shown in FIG. 2, first, the power save mode time is set to the timer counter 2 '(100), and the power save mode start instruction is output to the event control circuit 5 (110). ), The CPU 1 itself executes a command for shifting to the power save mode (120), and shifts to the power save mode. here,
The setting of the power save mode time specifically indicates a counter value setting instruction, a counter starting instruction, and a counter stopping instruction in the timer counter 2 '.

【0047】そして、イベント制御回路5からのパワー
セーブモード解除NMI割込みa(図3の処理270)
を受けて、パワーセーブモードを解除し(130)、通
常の動作モードに移行して処理を終了する。
Then, the power save mode release NMI interrupt a from the event control circuit 5 (process 270 in FIG. 3)
In response to this, the power save mode is canceled (130), the operation mode shifts to the normal operation mode, and the process is terminated.

【0048】本実施例のパワーセービング回路のイベン
ト制御回路5のパワーセービング処理は、図3に示すよ
うに、CPU1からのパワーセーブモード開始命令(図
2の処理110)を受けてスタートし、低周波水晶発振
回路電源制御信号fをONにして(200)、その結
果、低周波水晶発振回路6の電源スイッチSW(2) 10
がONになって低周波水晶発振回路6を起動させ、その
後、クロック選択スイッチ(SEL)7のクロック選択
信号dによってタイマカウンタ2′のクロックを低周波
水晶発振回路6からのクロックに切り換え(201)、
次に、タイマカウント起動信号bでタイマカウンタ2′
を起動し(210)、カウントを開始させる。
As shown in FIG. 3, the power saving process of the event control circuit 5 of the power saving circuit of the present embodiment starts upon receiving a power save mode start command (process 110 of FIG. 2) from the CPU 1, and goes low. Frequency crystal oscillator circuit power supply control signal f is turned on (200), and as a result, the power switch SW (2) 10 of the low frequency crystal oscillator circuit 6 is turned on.
Is turned on to activate the low frequency crystal oscillation circuit 6, and then the clock of the timer counter 2'is switched to the clock from the low frequency crystal oscillation circuit 6 by the clock selection signal d of the clock selection switch (SEL) 7 (201 ),
Next, the timer counter 2'is generated by the timer count start signal b.
Is started (210) to start counting.

【0049】そして、高周波水晶発振回路3の出力制御
回路8の出力制御回路制御信号eをOFFにし(22
0)、CPU1及び多段分周回路4へのクロックを停止
して、見かけ上多段分周回路4の動作を停止する。次
に、高周波水晶発振回路電源制御信号gをOFFにして
(230)、その結果、高周波水晶発振回路3の電源ス
イッチSW(1) 9がOFFになり高周波水晶発振回路3
は停止する。
Then, the output control circuit control signal e of the output control circuit 8 of the high frequency crystal oscillation circuit 3 is turned off (22
0), the clocks to the CPU 1 and the multi-stage frequency dividing circuit 4 are stopped to apparently stop the operation of the multi-stage frequency dividing circuit 4. Next, the high frequency crystal oscillation circuit power supply control signal g is turned off (230), and as a result, the power supply switch SW (1) 9 of the high frequency crystal oscillation circuit 3 is turned off and the high frequency crystal oscillation circuit 3 is turned on.
Will stop.

【0050】そして、パワーセーブ時間経過の後に、タ
イマカウンタ2′からタイマカウント完了信号c(図3
の処理330)を受け取ると、まず、高周波水晶発振回
路電源制御信号gをONにして(240)、その結果、
高周波水晶発振回路3の電源スイッチSW(1) 9がON
となり、高周波水晶発振回路3が起動して、発振安定待
ち時間が経過した後に、出力制御回路8への出力制御回
路制御信号eをONにして(250)、高周波水晶発振
回路3からCPU1及び多段分周回路4へのクロックの
供給を再開する。
After the power save time has elapsed, the timer counter 2'provides a timer count completion signal c (see FIG. 3).
Process 330), the high frequency crystal oscillation circuit power supply control signal g is turned ON (240), and as a result,
Power switch SW (1) 9 of high-frequency crystal oscillator circuit 3 is turned on
Then, after the high-frequency crystal oscillation circuit 3 is activated and the oscillation stabilization wait time has elapsed, the output control circuit control signal e to the output control circuit 8 is turned on (250), and the high-frequency crystal oscillation circuit 3 is switched to the CPU 1 and the multi-stage. The supply of the clock to the frequency dividing circuit 4 is restarted.

【0051】その後、クロック選択スイッチ(SEL)
7のクロック選択信号dによって、タイマカウンタ2′
のクロックを低周波水晶発振回路6より出力されるクロ
ックから多段分周回路4より出力されるクロックに切り
換え(260)、CPU1に対してパワーセーブモード
解除用のNMI割込みaを行い(270)、CPU1の
パワーセーブモードを解除させ、低周波水晶発振回路電
源制御信号fをOFFにして(280)、処理を終了す
る。その結果、低周波水晶発振回路6の電源スイッチS
W(2) 10がOFFとなり低周波水晶発振回路6が停止
する。
After that, a clock selection switch (SEL)
According to the clock selection signal d of 7, the timer counter 2 '
Is switched from the clock output from the low-frequency crystal oscillator circuit 6 to the clock output from the multi-stage frequency dividing circuit 4 (260), and the NMI interrupt a for canceling the power save mode is issued to the CPU 1 (270). The power save mode of the CPU 1 is released, the low frequency crystal oscillation circuit power supply control signal f is turned off (280), and the processing is ended. As a result, the power switch S of the low-frequency crystal oscillation circuit 6
W (2) 10 is turned off and the low frequency crystal oscillation circuit 6 is stopped.

【0052】本実施例のパワーセービング回路のタイマ
カウンタ2′のパワーセービング処理は、図4に示すよ
うに、まず、初期設定として予めパワーセーブ時間の設
定が為され、次に、イベント制御回路5からのタイマカ
ウント起動信号b(図3の処理210)により処理がス
タートし、最初にカウンタをクリアし(300)、次に
カウンタに1加えて(310)、カウンタ値がCPU1
によって設定されたパワーセーブ時間より小さいかどう
か判断し(320)、もし小さければ処理310に戻
り、小さくなければ(パワーセーブ時間を終了したなら
ば)タイマカウント完了信号cをイベント制御回路5に
出力し(330)、処理を終了する。
In the power saving process of the timer counter 2'of the power saving circuit of this embodiment, as shown in FIG. 4, first, the power saving time is set in advance as an initial setting, and then the event control circuit 5 is set. The process is started by the timer count activation signal b (process 210 in FIG. 3) from the first counter, the counter is first cleared (300), then 1 is added to the counter (310), and the counter value is the CPU1.
It is judged whether or not it is smaller than the power save time set by (320), and if it is smaller, the process returns to step 310, and if it is not smaller (when the power save time is completed), the timer count completion signal c is output to the event control circuit 5. Then (330), the process ends.

【0053】本実施例の消費電力セービング回路及びそ
の制御方法によれば、パワーセーブモードに移行した時
は、タイマカウンタ2′専用の低周波水晶発信回路6か
らクロックを供給するようにしているので、CPU1用
のクロックを出力する高周波水晶発振回路3と、通常モ
ード時にタイマカウンタ2′用の低周波を高周波水晶発
振回路3から得るための多段分周回路4とを停止するこ
とができ、消費電力を大幅に削減することができる効果
がある。また、パワーセーブモード解除時にクロックの
供給先を低周波発振回路から高周波発回路へ容易に切り
換えることができ、パワーセーブモード解除をスムーズ
に行うことができる効果がある。
According to the power consumption saving circuit and its control method of the present embodiment, when the power save mode is entered, the clock is supplied from the low frequency crystal oscillator circuit 6 dedicated to the timer counter 2 '. It is possible to stop the high-frequency crystal oscillator circuit 3 that outputs the clock for the CPU 1 and the multi-stage frequency dividing circuit 4 for obtaining the low frequency for the timer counter 2 ′ from the high-frequency crystal oscillator circuit 3 in the normal mode. This has the effect of significantly reducing power consumption. Further, when the power save mode is released, the supply destination of the clock can be easily switched from the low frequency oscillation circuit to the high frequency generation circuit, and the power save mode can be released smoothly.

【0054】[0054]

【発明の効果】請求項1記載の発明によれば、イベント
制御回路がパワーセーブモード移行時にCPUからパワ
ーセーブモード開始命令を受け取ってタイマカウンタの
起動を行い、低周波発振回路を起動させてクロック選択
スイッチを切り換えて低周波発振回路からのクロックを
タイマカウンタに出力させ、高周波発振回路を停止さ
せ、また、パワーセーブモード解除時にタイマカウンタ
からタイマカウント完了信号を受け取り、高周波発振回
路を起動させて出力制御回路を制御して高周波発振回路
からのクロックをCPUと多段分周回路に出力し、クロ
ック選択スイッチを切り換えて多段分周回路からのクロ
ックをタイマカウンタに出力させ、CPUにパワーセー
ブモード解除用の割込みを行い、低周波発振回路を停止
させる消費電力セービング回路としているので、パワー
セーブモードに移行した時には高周波発振回路と多段分
周回路とを停止させることができ、パワーセーブモード
中の消費電力を大幅に低減できる効果がある。
According to the first aspect of the present invention, the event control circuit receives the power save mode start command from the CPU at the time of transition to the power save mode, starts the timer counter, and starts the low frequency oscillation circuit to start the clock. Switch the selection switch to output the clock from the low-frequency oscillator circuit to the timer counter, stop the high-frequency oscillator circuit, and receive the timer count completion signal from the timer counter when the power save mode is released, and activate the high-frequency oscillator circuit. The output control circuit is controlled to output the clock from the high frequency oscillation circuit to the CPU and the multi-stage frequency divider circuit, and the clock selection switch is switched to output the clock from the multi-stage frequency divider circuit to the timer counter, and the CPU releases the power save mode. Power consumption to stop the low-frequency oscillation circuit Since the ring circuit, when a transition to the power save mode can be stopped and a high-frequency oscillation circuit and a multi-stage divider, the effect of the power consumption during the power save mode can be significantly reduced.

【0055】請求項2記載の発明によれば、イベント制
御回路がCPUからパワーセーブモード開始命令を受け
取ると、低周波発振回路を起動し、クロック選択スイッ
チを切り換えて低周波発振回路からのクロックをタイマ
カウンタに出力し、そしてタイマカウンタを起動し、出
力制御回路を制御してCPU及び多段分周回路へのクロ
ックを停止し、高周波発振回路を停止する請求項1記載
の消費電力セービング回路の制御方法としているので、
パワーセーブモードに移行した時には高周波発振回路と
多段分周回路とを停止させることができ、パワーセーブ
モード中の消費電力を大幅に低減できる効果がある。
According to the second aspect of the present invention, when the event control circuit receives the power save mode start command from the CPU, it activates the low frequency oscillation circuit and switches the clock selection switch to switch the clock from the low frequency oscillation circuit. 2. The control of the power consumption saving circuit according to claim 1, wherein the power consumption saving circuit is output to a timer counter, starts the timer counter, controls the output control circuit to stop the clock to the CPU and the multi-stage frequency dividing circuit, and stops the high frequency oscillation circuit. Since it is a method,
When shifting to the power save mode, the high-frequency oscillator circuit and the multi-stage frequency dividing circuit can be stopped, and the power consumption during the power save mode can be significantly reduced.

【0056】請求項3記載の発明によれば、イベント制
御回路がタイマカウンタからタイマカウント完了信号を
受け取ると、高周波発振回路を起動し、発振安定待ち時
間経過後に出力制御回路を制御して高周波発振回路から
のクロックをCPU及び多段分周回路に出力し、そして
クロック選択スイッチを切り換えて多段分周回路からの
クロックをタイマカウンタに出力し、CPUに対してパ
ワーセーブモード解除用の割込みを行ってCPUのパワ
ーセーブモードを解除させ、低周波発振回路を停止させ
る請求項1記載の消費電力セービング回路の制御方法と
しているので、パワーセーブモード解除時に低周波発振
回路から高周波発振回路への切り換えを容易に行うこと
ができる効果がある。
According to the third aspect of the invention, when the event control circuit receives the timer count completion signal from the timer counter, the high frequency oscillation circuit is activated, and after the oscillation stabilization wait time has elapsed, the output control circuit is controlled to perform the high frequency oscillation. The clock from the circuit is output to the CPU and the multi-stage frequency dividing circuit, and the clock selection switch is switched to output the clock from the multi-stage frequency dividing circuit to the timer counter, and an interrupt for canceling the power save mode is issued to the CPU. Since the power saving mode of the CPU is released and the low frequency oscillation circuit is stopped, the control method of the power consumption saving circuit according to claim 1 is adopted. Therefore, it is easy to switch from the low frequency oscillation circuit to the high frequency oscillation circuit when the power save mode is released. There is an effect that can be done.

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

【図1】本発明の一実施例に係る消費電力セービング回
路の構成ブロック図である。
FIG. 1 is a configuration block diagram of a power consumption saving circuit according to an embodiment of the present invention.

【図2】本実施例のパワーセービング回路のCPU1の
処理動作を示すフローチャート図である。
FIG. 2 is a flowchart showing a processing operation of the CPU 1 of the power saving circuit of this embodiment.

【図3】本実施例のパワーセービング回路のイベント制
御回路5の処理動作を示すフローチャート図である。
FIG. 3 is a flowchart showing a processing operation of an event control circuit 5 of the power saving circuit of this embodiment.

【図4】本実施例のパワーセービング回路のタイマカウ
ンタ2′の処理動作を示すフローチャート図である。
FIG. 4 is a flowchart showing a processing operation of a timer counter 2 ′ of the power saving circuit of this embodiment.

【図5】従来の消費電力セービング回路の構成ブロック
図である。
FIG. 5 is a configuration block diagram of a conventional power consumption saving circuit.

【図6】多段分周回路の概略説明図である。FIG. 6 is a schematic explanatory diagram of a multi-stage frequency dividing circuit.

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

1…CPU、 2,2′…タイマカウンタ、 3…高周
波水晶発振回路、 4…多段分周回路、 5…イベント
制御回路、 6…低周波水晶発振回路、 7…クロック
選択スイッチ、 8…出力制御回路、 9,10…電源
スイッチ、 11…データバス、 a…パワーセーブモ
ード解除用割込み、 b…タイマカウント起動信号、
c…タイマカウント完了信号、 d…クロック選択信
号、 e…出力制御回路制御信号、 f…低周波水晶発
振回路電源制御信号、 g…高周波水晶発振回路電源制
御信号
1 ... CPU, 2, 2 '... Timer counter, 3 ... High frequency crystal oscillation circuit, 4 ... Multi-stage frequency dividing circuit, 5 ... Event control circuit, 6 ... Low frequency crystal oscillation circuit, 7 ... Clock selection switch, 8 ... Output control Circuits, 9, 10 ... Power switch, 11 ... Data bus, a ... Power save mode release interrupt, b ... Timer count start signal,
c ... Timer count completion signal, d ... Clock selection signal, e ... Output control circuit control signal, f ... Low frequency crystal oscillation circuit power supply control signal, g ... High frequency crystal oscillation circuit power supply control signal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 パワーセーブモードを有するCPUと、
パワーセーブモード時間のカウントを行うタイマカウン
タと、前記CPUに高周波クロックを供給する高周波発
振回路と、前記高周波発振回路から発生する高周波クロ
ックを順次分周して低周波クロックを発生させる多段分
周回路とを有する消費電力セービング回路において、パ
ワーセーブモードに移行した時に前記タイマカウンタに
低周波クロックを供給する低周波発振回路と、前記タイ
マカウンタへ入力されるクロックを選択するクロック選
択スイッチと、前記高周波発振回路の出力を制御する出
力制御回路と、前記高周波発振回路と前記低周波発振回
路の起動・停止指示を行い、前記クロック選択スイッチ
の切り換え指示を行い、前記出力制御回路の制御指示を
行い、パワーセーブモード移行時に前記CPUからパワ
ーセーブモード開始命令を受け取り、前記タイマカウン
タの起動指示を行い、パワーセーブモード解除時に前記
タイマカウンタからタイマカウント完了信号を受け取
り、前記CPUにパワーセーブモード解除用の割込みを
行うイベント制御回路とを設けたことを特徴とする消費
電力セービング回路。
1. A CPU having a power save mode,
A timer counter that counts the power save mode time, a high-frequency oscillator circuit that supplies a high-frequency clock to the CPU, and a multi-stage divider circuit that sequentially divides a high-frequency clock generated from the high-frequency oscillator circuit to generate a low-frequency clock. And a high-frequency oscillation circuit that supplies a low-frequency clock to the timer counter when the power save mode is entered, a clock selection switch that selects a clock input to the timer counter, and the high-frequency oscillator. An output control circuit that controls the output of the oscillation circuit, gives instructions to start and stop the high-frequency oscillation circuit and the low-frequency oscillation circuit, gives instructions to switch the clock selection switch, and gives control instructions to the output control circuit, When entering the power save mode, the power save mode is opened from the CPU. An event control circuit that receives an instruction, issues an instruction to start the timer counter, receives a timer count completion signal from the timer counter when the power save mode is released, and provides the CPU with an interrupt for canceling the power save mode is provided. Characteristic power consumption saving circuit.
【請求項2】 パワーセーブモードに移行する時は、前
記CPUからパワーセーブモード開始命令を受け取った
前記イベント制御回路が、前記低周波発振回路を起動
し、前記クロック選択スイッチを切り換えて前記低周波
発振回路からのクロックを前記タイマカウンタに出力
し、前記タイマカウンタを起動し、前記出力制御回路を
制御して前記CPU及び前記多段分周回路へのクロック
を停止し、前記高周波発振回路を停止することを特徴と
する請求項1記載の消費電力セービング回路の制御方
法。
2. When transitioning to a power save mode, the event control circuit which has received a power save mode start command from the CPU activates the low frequency oscillation circuit and switches the clock selection switch to switch the low frequency. A clock from an oscillation circuit is output to the timer counter, the timer counter is activated, the output control circuit is controlled to stop the clocks to the CPU and the multi-stage frequency dividing circuit, and the high frequency oscillation circuit is stopped. The method of controlling the power consumption saving circuit according to claim 1, wherein
【請求項3】 パワーセーブモードを解除する時は、前
記タイマカウンタからタイマカウント完了信号を受け取
った前記イベント制御回路が、前記高周波発振回路を起
動し、発振安定待ち時間経過後に前記出力制御回路を制
御して前記高周波発振回路からのクロックを前記CPU
及び前記多段分周回路に出力し、前記クロック選択スイ
ッチを切り換えて前記多段分周回路からのクロックを前
記タイマカウンタに出力し、前記CPUに対してパワー
セーブモード解除用の割込みを行って前記CPUのパワ
ーセーブモードを解除させ、前記低周波発振回路を停止
させることを特徴とする請求項1記載の消費電力セービ
ング回路の制御方法。
3. When the power save mode is released, the event control circuit which receives a timer count completion signal from the timer counter activates the high frequency oscillation circuit, and the output control circuit is activated after the oscillation stabilization wait time has elapsed. The CPU controls the clock from the high-frequency oscillator circuit.
And outputting to the multi-stage frequency dividing circuit, switching the clock selection switch to output the clock from the multi-stage frequency dividing circuit to the timer counter, interrupting the power save mode to the CPU, and executing the interrupt to the CPU. 2. The method for controlling a power consumption saving circuit according to claim 1, wherein the power save mode is canceled and the low frequency oscillation circuit is stopped.
JP18354793A 1993-06-30 1993-06-30 Wireless terminal device and control method therefor Expired - Fee Related JP3461535B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18354793A JP3461535B2 (en) 1993-06-30 1993-06-30 Wireless terminal device and control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18354793A JP3461535B2 (en) 1993-06-30 1993-06-30 Wireless terminal device and control method therefor

Publications (2)

Publication Number Publication Date
JPH0720964A true JPH0720964A (en) 1995-01-24
JP3461535B2 JP3461535B2 (en) 2003-10-27

Family

ID=16137722

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18354793A Expired - Fee Related JP3461535B2 (en) 1993-06-30 1993-06-30 Wireless terminal device and control method therefor

Country Status (1)

Country Link
JP (1) JP3461535B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08204595A (en) * 1995-01-26 1996-08-09 Nippon Denki Ido Tsushin Kk Radio communication equipment
US6507731B1 (en) 1998-11-26 2003-01-14 Nec Corporation Wireless communication apparatus with transmission power controller and method thereof
KR100594256B1 (en) * 2003-02-20 2006-06-30 삼성전자주식회사 Simultaneous multi-threading processor circuits and computer program products configured to operate at different performance levels based on a number of operating threads and methods of operating
US7263120B2 (en) 2002-08-27 2007-08-28 Oki Electric Industry Co., Ltd. Semiconductor device to reduce power individually to each circuit
KR100814213B1 (en) * 2006-05-25 2008-03-17 후지쯔 가부시끼가이샤 Digital broadcast reception apparatus and reception method
KR101288923B1 (en) * 2007-09-19 2013-07-24 엠텍비젼 주식회사 Circuit and Method for providing clock

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08204595A (en) * 1995-01-26 1996-08-09 Nippon Denki Ido Tsushin Kk Radio communication equipment
US6507731B1 (en) 1998-11-26 2003-01-14 Nec Corporation Wireless communication apparatus with transmission power controller and method thereof
US7263120B2 (en) 2002-08-27 2007-08-28 Oki Electric Industry Co., Ltd. Semiconductor device to reduce power individually to each circuit
KR100594256B1 (en) * 2003-02-20 2006-06-30 삼성전자주식회사 Simultaneous multi-threading processor circuits and computer program products configured to operate at different performance levels based on a number of operating threads and methods of operating
KR100814213B1 (en) * 2006-05-25 2008-03-17 후지쯔 가부시끼가이샤 Digital broadcast reception apparatus and reception method
KR101288923B1 (en) * 2007-09-19 2013-07-24 엠텍비젼 주식회사 Circuit and Method for providing clock

Also Published As

Publication number Publication date
JP3461535B2 (en) 2003-10-27

Similar Documents

Publication Publication Date Title
JP4038134B2 (en) Power supply control apparatus and information processing apparatus
EP0560320B1 (en) Clock generator
JP2676966B2 (en) Single chip microcomputer
US7194644B2 (en) System and method for operating a microprocessor in a low power mode by providing a wakeup clock to the microprocessor
US6163851A (en) Data processor
JP4686065B2 (en) Clock control apparatus and clock control method
US6255882B1 (en) Method and system of switching clock signal
JPH0226131A (en) Small-sized digital radio receiver
JP2003108258A (en) Interruptible information processor
JP3461535B2 (en) Wireless terminal device and control method therefor
US7293185B2 (en) Clock control circuit and clock control method that switchingly supplies a high-speed clock and a low-speed clock
JP3460736B2 (en) Clock control circuit
JP2575702B2 (en) Synthesizer tuner
JP2002091608A (en) Device for supplying clock and method for the same
JPH0830351A (en) Microprocessor
JPH0594226A (en) Clock switching system
JPS6270923A (en) Integrated circuit containing oscillating circuit
JPH0682310B2 (en) Operation frequency switching control circuit for arithmetic unit
JP2531673B2 (en) Oscillator
JPH05303444A (en) Clock signal feeder
JPH11143574A (en) Clock generation circuit and clock generation method
JPH05258087A (en) Microcomputer
JPH04362719A (en) Stable oscillation waiting circuit for semiconductor device
JPH0863253A (en) Microprocessor
JPH0519889A (en) Stand-by device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090815

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100815

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110815

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120815

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees