JPH0784666A - Control device for intermittent operation of cpu - Google Patents

Control device for intermittent operation of cpu

Info

Publication number
JPH0784666A
JPH0784666A JP5226193A JP22619393A JPH0784666A JP H0784666 A JPH0784666 A JP H0784666A JP 5226193 A JP5226193 A JP 5226193A JP 22619393 A JP22619393 A JP 22619393A JP H0784666 A JPH0784666 A JP H0784666A
Authority
JP
Japan
Prior art keywords
cpu
clock signal
intermittent operation
control device
timing signal
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
JP5226193A
Other languages
Japanese (ja)
Inventor
Masato Hashimoto
正人 橋本
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.)
Marelli Corp
Original Assignee
Kansei 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 Kansei Corp filed Critical Kansei Corp
Priority to JP5226193A priority Critical patent/JPH0784666A/en
Publication of JPH0784666A publication Critical patent/JPH0784666A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To highly accurately control the sleeping time of a CPU capable of executing intermittent operation. CONSTITUTION:In the case of starting the CPU 1 when a counter 4 counts an external clock signal 3 up to x periods in the sleeping state of the CPU 1, the periods of the signal 3 are highly accurately measured by means of a reference clock signal outputted from a reference oscillator 7 in accordance with a timing signal 6. A compensation part 8 compensates the value of (x) based upon the measured value and a required sleeping time. Consequently the sleeping time of the CPU 1 can be accurately held independently of the dispersion of frequency of the signal 3.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はCPUを間欠的に動作
させるように制御するCPUの間欠動作制御装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CPU intermittent operation control device for controlling a CPU to operate intermittently.

【0002】[0002]

【従来の技術】従来より、CPUを間欠的に動作させて
消費電力の低減をはかることが行われている。図3は従
来のCPUの間欠動作制御装置を示すブロック図であ
り、図において、1は間欠動作を行うCPU、2は例え
ば数100kHzの周波数を有する外部クロック信号3
を発振する外部クロック信号発振器、4はCPU1内に
設けられ上記外部クロック信号3をカウントするタイマ
イベント用のカウンタである。
2. Description of the Related Art Conventionally, a CPU is operated intermittently to reduce power consumption. FIG. 3 is a block diagram showing a conventional intermittent operation control device for a CPU. In the figure, 1 is a CPU that performs an intermittent operation, and 2 is an external clock signal 3 having a frequency of, for example, several hundred kHz.
An external clock signal oscillator 4 that oscillates is a counter for a timer event that is provided in the CPU 1 and that counts the external clock signal 3.

【0003】次に動作について図4のフローチャートを
用いて説明する。ステップST1でバッテリ等の電源を
投入した後、ステップST2でカウンタ4に所望のスリ
ープ時間(CPU1の停止時間)Tと対応するxの値を
設定する。次にステップST3でCPU1が動作を停止
した停止状態(SLEEP状態)であるか否かを調べ
る。停止状態でない場合はステップST4でCPU1は
プログラムに基づいた通常の動作を行う。
Next, the operation will be described with reference to the flowchart of FIG. After the power source such as a battery is turned on in step ST1, a value of x corresponding to a desired sleep time (stop time of the CPU 1) T is set in the counter 4 in step ST2. Next, in step ST3, it is checked whether or not the CPU 1 is in a stopped state (SLEEP state) in which the operation is stopped. If it is not in the stopped state, the CPU 1 performs a normal operation based on the program in step ST4.

【0004】CPU1が停止状態であればステップST
5でカウンタ4により外部クロック信号発振器2から得
られる外部クロック信号3のカウントを開始する。そし
てステップST6でカウント値がxとなるまでカウント
を続け、カウント値がxとなればステップST7でCP
U1が起動され動作状態(WAKE UP状態)とな
る。
If the CPU 1 is in a stopped state, step ST
At 5, the counter 4 starts counting the external clock signal 3 obtained from the external clock signal oscillator 2. Then, counting is continued until the count value becomes x in step ST6, and when the count value becomes x, CP is processed in step ST7.
U1 is activated and enters the operating state (WAKE UP state).

【0005】[0005]

【発明が解決しようとする課題】従来のCPUの間欠動
作制御装置は上記のように構成されているので、外部ク
ロック信号発振器2がコスト低減のためにコンデンサや
抵抗等で構成されている場合は、それらの素子のばらつ
きや温度変化等により発振周波数が大幅に変化し、この
ためCPU1の上記スリープ時間Tが変化してしまうこ
とがあった。スリープ時間Tが変化すると、CPU1で
制御される制御対象の動作に悪影響を及ぼすことがある
等の問題があった。
Since the conventional CPU intermittent operation control device is configured as described above, when the external clock signal oscillator 2 is configured by a capacitor or a resistor for cost reduction, However, the oscillation frequency may change significantly due to variations in these elements, temperature changes, etc., which may change the sleep time T of the CPU 1. When the sleep time T changes, there is a problem that the operation of the control target controlled by the CPU 1 may be adversely affected.

【0006】この発明は上記のような問題を解決するた
めになされたもので、CPUの停止時間を所定の長さに
精度高く保持することのできるCPUの間欠動作制御装
置を提供することを目的としている。
The present invention has been made to solve the above problems, and an object of the present invention is to provide an intermittent operation control device for a CPU, which is capable of accurately maintaining a stop time of the CPU at a predetermined length. I am trying.

【0007】[0007]

【課題を解決するための手段】この発明においては、C
PUにタイミング信号を与えるタイミング信号発生回路
と、タイミング信号に応じて外部クロック信号の周期を
CPUの基準クロック信号を用いて計測し、この計測値
とスリープ時間とからカウンタの設定値を補正する補正
手段とを設けている。
In the present invention, C
A timing signal generation circuit that gives a timing signal to the PU, and a correction that measures the cycle of the external clock signal using the reference clock signal of the CPU according to the timing signal and corrects the set value of the counter from the measured value and the sleep time. And means are provided.

【0008】[0008]

【作用】外部クロック信号の周期は基準クロック信号に
より高精度に計測することができるので、この計測値か
ら所望のスリープ時間を得るためのカウンタの設定値x
を正確な値に補正することができる。
Since the cycle of the external clock signal can be measured with high accuracy using the reference clock signal, the counter set value x for obtaining the desired sleep time from this measured value can be set.
Can be corrected to an accurate value.

【0009】[0009]

【実施例】図1にこの発明の実施例によるCPUの間欠
動作制御装置を示すブロック図であり、図3と対応する
部分には同一符号を付して重複する説明を省略する。図
1において、5はCPU1を動作させると共に、外部ク
ロック信号3の周期を計測するためのタイミング信号6
を発生するタイミング信号発生回路、7はCPU1の演
算処理に必要な基準クロック信号を発振する基準発振器
である。この基準発振器7は水晶発振子を用いた発振周
波数の精度の高いものが用いられ、例えば数MHzの基
準クロック信号を発振する。8はCPU1に設けられ上
記xの値を補正する補正手段としての補正部である。
1 is a block diagram showing an intermittent operation control device for a CPU according to an embodiment of the present invention. Parts corresponding to those in FIG. In FIG. 1, reference numeral 5 is a timing signal 6 for operating the CPU 1 and for measuring the cycle of the external clock signal 3.
Is a timing signal generating circuit, and reference numeral 7 is a reference oscillator for oscillating a reference clock signal necessary for the arithmetic processing of the CPU 1. The reference oscillator 7 uses a crystal oscillator having a high oscillation frequency and oscillates a reference clock signal of, for example, several MHz. Reference numeral 8 denotes a correction unit provided in the CPU 1 as correction means for correcting the value of x.

【0010】次に動作について図2のフローチャートを
用いて説明する。図2のフローチャートにおけるステッ
プST1〜ST7は図1と同じである。図2において、
ステップST2でカウンタ4にxをセットした後、ステ
ップST8でタイミング信号6がLからHになったかを
調べ、Lの期間中はステップST3〜ST7の動作が行
われる。タイミング信号6がHになればステップST9
に進み、ここでCPU1が動作状態になると共に、外部
クロック信号3の周期を基準発振器7の基準クロックを
用いて高精度に計測する。ステップST10では補正部
8において上記計測値を用いて、カウンタ4でスリープ
時間Tをカウントするためのカウント数を算出し、算出
されたカウント値でxの値を補正する。
Next, the operation will be described with reference to the flowchart of FIG. Steps ST1 to ST7 in the flowchart of FIG. 2 are the same as in FIG. In FIG.
After setting x to the counter 4 in step ST2, it is checked in step ST8 whether the timing signal 6 has changed from L to H, and during the period of L, the operations of steps ST3 to ST7 are performed. If the timing signal 6 becomes H, step ST9
Then, the CPU 1 is activated and the period of the external clock signal 3 is measured with high accuracy using the reference clock of the reference oscillator 7. In step ST10, the correction unit 8 uses the measured value to calculate the count number for counting the sleep time T by the counter 4, and corrects the value of x with the calculated count value.

【0011】以下、ステップST3〜ST7の動作が行
われるが、このときステップST6では上記補正された
xの値を用いる。この補正されたxの値は次にタイミン
グ信号6がLからHになるまで保持される。以上によれ
ば、常に所望のスリープ時間Tを得るためのxの値を得
ることができ、CPU1のスリープ時間Tを高い精度で
得ることができる。
Thereafter, the operations of steps ST3 to ST7 are performed, but at this time, the corrected value of x is used in step ST6. This corrected value of x is held until the timing signal 6 next changes from L to H. According to the above, the value of x for always obtaining the desired sleep time T can be obtained, and the sleep time T of the CPU 1 can be obtained with high accuracy.

【0012】[0012]

【発明の効果】この発明によれば、タイミング信号に応
じて外部クロック信号の周期を基準クロック信号を用い
て高精度に計測し、この計測値と所望のスリープ時間と
からカウンタの設定値を補正するように構成したので、
外部クロック信号のばらつきに拘らず常にCPUのスリ
ープ時間を所定の長さに精度高く保持することができる
効果がある。
According to the present invention, the cycle of the external clock signal is measured with high accuracy using the reference clock signal according to the timing signal, and the set value of the counter is corrected from this measured value and the desired sleep time. I configured it to
There is an effect that the sleep time of the CPU can always be kept at a predetermined length with high accuracy regardless of variations in the external clock signal.

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

【図1】この発明の一実施例によるCPUの間欠動作制
御装置を示すブロック図である。
FIG. 1 is a block diagram showing an intermittent operation control device for a CPU according to an embodiment of the present invention.

【図2】同装置の動作を示すフローチャートである。FIG. 2 is a flowchart showing the operation of the same device.

【図3】従来のCPUの間欠動作制御装置を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a conventional intermittent operation control device for a CPU.

【図4】同装置の動作を示すフローチャートである。FIG. 4 is a flowchart showing an operation of the same device.

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

1 CPU 3 外部クロック信号 4 カウンタ 5 タイミング信号発生回路 6 タイミング信号 8 補正部(補正手段) 1 CPU 3 External Clock Signal 4 Counter 5 Timing Signal Generation Circuit 6 Timing Signal 8 Correction Unit (Correction Means)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 CPUの外部から加えられる外部クロッ
ク信号を上記CPUに設けたカウンタにより設定値まで
カウントすることにより、上記CPUのスリープ時間を
得るようにしたCPUの間欠動作制御装置において、所
定周期を有するタイミング信号を上記CPUに加えるタ
イミング信号発生回路と、上記タイミング信号発生回路
から得られるタイミング信号に応じて上記外部クロック
信号の周期を上記CPUの動作に用いられる基準クロッ
ク信号を用いて計測し、この計測値と上記スリープ時間
とを用いて上記設定値を補正する補正手段とを設けたこ
とを特徴とするCPUの間欠動作制御装置。
1. An intermittent operation control device for a CPU, wherein an external clock signal applied from the outside of the CPU is counted up to a set value by a counter provided in the CPU to obtain a sleep time of the CPU. A timing signal generating circuit that applies a timing signal having the following to the CPU, and the cycle of the external clock signal is measured using a reference clock signal used for the operation of the CPU according to the timing signal obtained from the timing signal generating circuit. An intermittent operation control device for a CPU, comprising: a correction unit that corrects the set value using the measured value and the sleep time.
JP5226193A 1993-09-10 1993-09-10 Control device for intermittent operation of cpu Pending JPH0784666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5226193A JPH0784666A (en) 1993-09-10 1993-09-10 Control device for intermittent operation of cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5226193A JPH0784666A (en) 1993-09-10 1993-09-10 Control device for intermittent operation of cpu

Publications (1)

Publication Number Publication Date
JPH0784666A true JPH0784666A (en) 1995-03-31

Family

ID=16841352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5226193A Pending JPH0784666A (en) 1993-09-10 1993-09-10 Control device for intermittent operation of cpu

Country Status (1)

Country Link
JP (1) JPH0784666A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729722A (en) * 1995-01-27 1998-03-17 Nippondenso Co., Ltd. Semiconductor integrated circuit and communication control apparatus
US6986070B2 (en) 2000-12-28 2006-01-10 Denso Corporation Microcomputer that cooperates with an external apparatus to be driven by a drive signal
JP2010121839A (en) * 2008-11-19 2010-06-03 Sharp Corp Electrical apparatus
JP2011060159A (en) * 2009-09-14 2011-03-24 New Japan Radio Co Ltd Microcomputer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729722A (en) * 1995-01-27 1998-03-17 Nippondenso Co., Ltd. Semiconductor integrated circuit and communication control apparatus
US6986070B2 (en) 2000-12-28 2006-01-10 Denso Corporation Microcomputer that cooperates with an external apparatus to be driven by a drive signal
JP2010121839A (en) * 2008-11-19 2010-06-03 Sharp Corp Electrical apparatus
JP2011060159A (en) * 2009-09-14 2011-03-24 New Japan Radio Co Ltd Microcomputer

Similar Documents

Publication Publication Date Title
EP2369438B1 (en) Calibration method of a real time clock signal
CN107256065B (en) Real-time clock processing system and method
RU2579716C2 (en) Correction of low-accuracy clock generator
US20020172097A1 (en) Methods and apparatus for low power delay control
CN113346881B (en) Digital clock calibration method, wireless remote controller and storage medium
US6084441A (en) Apparatus for and method of processing data
JP2005535014A (en) Power saving system and method for integrated circuits
US10153773B2 (en) Low-power oscillator
TW201519611A (en) Communication device and frequency bias calibrating method
JP5968561B2 (en) Microcomputer and its clock correction method
CN108230660B (en) Control method and control device, storage medium and remote controller
JPS6347002B2 (en)
US6326825B1 (en) Accurate time delay system and method utilizing an inaccurate oscillator
US6442704B1 (en) Ring oscillator clock frequency measuring method, ring oscillator clock frequency measuring circuit, and microcomputer
JPH0784666A (en) Control device for intermittent operation of cpu
JP2011197910A (en) Clock control circuit and microcomputer
JP3829916B2 (en) Microcomputer
JP2002311173A (en) Electronic clock, method and program for correcting time error of the same
JP2003232876A (en) Time correction device
JP5266168B2 (en) Microcomputer
JP2006229607A (en) Semiconductor device and method of correcting oscillation frequency
JP2003270369A (en) Time correction method and time correction device for real time clock
JP2001111389A (en) Microcomputer incorporating cr oscillation clock
JPH10257004A (en) Communication equipment
JPH0366847B2 (en)