JPH0351902A - Data processor - Google Patents

Data processor

Info

Publication number
JPH0351902A
JPH0351902A JP1186020A JP18602089A JPH0351902A JP H0351902 A JPH0351902 A JP H0351902A JP 1186020 A JP1186020 A JP 1186020A JP 18602089 A JP18602089 A JP 18602089A JP H0351902 A JPH0351902 A JP H0351902A
Authority
JP
Japan
Prior art keywords
cpu
load factor
clock
basic clock
idle
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
JP1186020A
Other languages
Japanese (ja)
Inventor
Katsumi Nishijima
西島 勝美
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP1186020A priority Critical patent/JPH0351902A/en
Publication of JPH0351902A publication Critical patent/JPH0351902A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase the lifetime of a battery without deteriorating the processing ability of a CPU by actuating the CPU with a basic clock of a low frequency when a load factor is small. CONSTITUTION:A CPU 1 performs an idle process and outputs the idle pulses from an I/O port 3 via a bus line 5. A CPU load detecting part 4 counts these idle pulses and compares the count value with the 1st and 2nd comparison values when a clear/latch signal is inputted from the CPU 1. Then a selection signal is outputted to a clock switch 2 for selection of a basic clock CLK1 of a comparatively low frequency when the count value is larger than the 1st comparison value. Meanwhile a selection signal is outputted to the switch 2 for selection of a basic clock CLK2 of a comparatively high frequency when the count value is smaller than the 2nd comparison value which is smaller than the 1st comparison value. Thus it is possible to control each part and to increase the battery lifetime without deteriorating the processing ability of the CPU 1.

Description

【発明の詳細な説明】 [産業上の利用分野〕 本発明は、周波数の異なる複数の基本クロックによる動
作が可能な中央処理装置を制御部本体に使用したデータ
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing device using a central processing unit capable of operating with a plurality of basic clocks having different frequencies as a control unit main body.

[従来の技術] この種のデータ処理装置としては、例えば日本語ワード
プロセッサやパーソナルコンビュータ等があるが、近年
これらの装置を電池駆動するために中央処理装置やメモ
リ等には低消費電力素子であるC−MO S●ICが盛
んに使用されている。
[Prior Art] This type of data processing device includes, for example, a Japanese word processor and a personal computer, but in recent years, in order to drive these devices with batteries, low power consumption elements have been used in the central processing unit, memory, etc. C-MOS ICs are being widely used.

モしてC−MOS・ICはその消費電力が素子のスイッ
チング周波数に比例して増加することが知られている。
It is known that the power consumption of C-MOS IC increases in proportion to the switching frequency of the element.

従って中央処理装置を動作させる基本クロックの周波数
が高いと処理能力は高くなるが消費電力が大きくなるた
め電池駆動では電池の寿命が短くなる。
Therefore, if the frequency of the basic clock that operates the central processing unit is high, the processing capacity will be high, but the power consumption will be high, so if the central processing unit is driven by a battery, the life of the battery will be shortened.

このため電池駆動するこの種のデータ処理装置では電池
寿命は短くなるが中央処理装置を比較的高い周波数の基
本クロックで動作させ処理能力を高めるモードと、比較
的低い周波数の基本クロックで動作させ処理能力は低下
するが電池寿命が長くなるモードを使用者サイドで選択
させるものが知^れている。
For this reason, in this type of battery-powered data processing equipment, the battery life is shortened, but there are modes in which the central processing unit operates with a relatively high frequency basic clock to increase processing capacity, and a mode in which the central processing unit operates with a relatively low frequency basic clock to process processing. There is a known device that allows the user to select a mode that reduces performance but extends battery life.

[発明が解決しようとする課題] しかしこのようにモード切替えを使用者サイドで行うも
のでは、中央処理装置の処理状況に関係なくモード設定
がされるため、中央処理装置を処理状況に応じた処理能
力で臨機応変に動作させるこどは困難であり、このため
中央処理装置を処理能力を低下させずに動作し、しかも
電池の長寿命化を図るということができなかった。
[Problem to be Solved by the Invention] However, in such a device where mode switching is performed on the user side, the mode is set regardless of the processing status of the central processing unit, so the central processing unit is not configured to perform processing according to the processing status. It is difficult to operate the central processing unit flexibly according to the capacity, and therefore it has not been possible to operate the central processing unit without reducing the processing capacity and to extend the life of the battery.

そこで本発明は、中央処理装置を処理状況に応じた処理
能力で臨機応変に動作させることができ、従って中央処
理装置を処理能力を低下させずに動作できると共に電池
の長寿命化をも図ることができるデータ処理装置を提供
しようとするものである。
Accordingly, the present invention is capable of operating the central processing unit flexibly with processing capacity according to the processing situation, and therefore, it is possible to operate the central processing unit without reducing the processing capacity, and also to extend the life of the battery. The aim is to provide a data processing device that can perform

[課題を解決するための手段コ 本発明は、周波数の異なる複数の基本クロックによる動
作が可能な中央処理装置を制御部本体に使用したデータ
処理装置において、アイドル期間とそれ以外の期間の長
さにより中央処理装置の負荷率を検出する負荷率検出手
段と、この負荷率検出手段が検出する負荷率に応じて複
数の基本クロックから1つを選択して動作用の基本クロ
ックとするクロック選択手段とを設け、クロック選択手
段は、負荷率が大きいほど高い周波数の基本クロックを
選択し、負荷率が小さいほど低い周波数の基本クロック
を選択することにある。
[Means for Solving the Problems] The present invention provides a data processing device in which a central processing unit capable of operating with a plurality of basic clocks having different frequencies is used in the main body of the control unit. load factor detection means for detecting the load factor of the central processing unit; and clock selection means for selecting one from a plurality of basic clocks as the basic clock for operation according to the load factor detected by the load factor detection means. The clock selection means is configured to select a basic clock having a higher frequency as the load factor becomes larger, and select a basic clock having a lower frequency as the load factor becomes smaller.

[作用] このような構成の本発明においては、アイドル期間及び
それ以外の期間の長さを調べることにより中央処理装置
の負荷率を検出し、その負荷率に応じてどの周波数の基
本クロックを使用するかを選択する。そして負荷率が大
きいときには高い周波数の基本クロックを選択して中央
処理装置の処理能力を高め、また負荷率が小さいときに
は低い周波数の基本クロックを選択して中央処理装置の
処理能力を低め電力消費を少なくする。
[Operation] In the present invention having such a configuration, the load factor of the central processing unit is detected by checking the length of the idle period and other periods, and the frequency of the basic clock to be used is determined according to the load factor. choose whether to When the load factor is high, a high-frequency basic clock is selected to increase the processing capacity of the central processing unit, and when the load factor is small, a low-frequency basic clock is selected to reduce the processing capacity of the central processing unit and reduce power consumption. Reduce.

[実施例] 以下、本発明の一実施例を図面を参照して説明する。[Example] Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図はデータ処理装置の要部構成を示すもので、1は
制aK本体を構成する中央処理装置(以F,CPUと称
する。)、2は比較的低い周波数の基本クロックCLK
,及び比較的高い周波数の基本クロックCLK2を選択
するクロック選択手段としてのクロック切替器、3はI
/Oボート、4は負荷率検出手段としてのCPU負荷検
出部である。
Figure 1 shows the configuration of the main parts of the data processing device, where 1 is a central processing unit (hereinafter referred to as F, CPU) that constitutes the main body of the controller, and 2 is a relatively low frequency basic clock CLK.
, and a clock switcher as a clock selection means for selecting a relatively high frequency basic clock CLK2, 3 is an I
/O boat 4 is a CPU load detection section as a load factor detection means.

前記CPU1及びI/Oボート3はバスライン5に接続
され゛Cいる。
The CPU 1 and I/O boat 3 are connected to a bus line 5.

前記CPUIは前記クロック切替器2によって選択され
たクロックを基本クロックCLKとして入力しその基本
クロックの周波数に応じた処理能力で各部(例えばバス
ライン5に別途接続されているキーボード、表示器、プ
リンタ等)を制御するようになっている。また前記CP
UIはアイドルサイクルが実行されているときには第2
図に示すようにアイドル処理を行なった後パルス出力処
理を行う。このパルス出力処理はバスライン5を介して
I/Oボート3を一定の間隔でアクセスしそのI/Oポ
ート3から゜rイドルパルスを出力させるようにしてい
る。
The CPU inputs the clock selected by the clock switch 2 as the basic clock CLK, and controls each unit (for example, a keyboard, display, printer, etc. separately connected to the bus line 5) with a processing capacity according to the frequency of the basic clock. ). Also, the CP
The UI is in the second state when an idle cycle is being performed.
As shown in the figure, after idle processing is performed, pulse output processing is performed. In this pulse output processing, the I/O port 3 is accessed at regular intervals via the bus line 5, and the I/O port 3 outputs an idle pulse.

なお、アイドル処理では装置の自己診断やキー人力サー
チ等のループ処理が行われている。
Note that in the idle processing, loop processing such as device self-diagnosis and key manual search is performed.

前記CPU負荷検出部4は第3図に示すように、アップ
カウンタ5、第1、第2比較器6,7からなり、前記ア
ブプカウンタうでI/Oボート3からのアイドルパルス
をカウントし、CPU1からクリア/ラヴチ信号が入力
されると、カウンタ5のカウント値を第1、第2比較器
6.7で比較するとともにカウンタ5をクリアするよう
にしている。
As shown in FIG. 3, the CPU load detection section 4 includes an up counter 5, first and second comparators 6, 7, and counts idle pulses from the I/O boat 3 using the up counter. When a clear/love signal is input from the counter 5, the count value of the counter 5 is compared by the first and second comparators 6.7, and the counter 5 is cleared.

そしてカウント値がM1比較器6に設定されている第1
比較値よりも大きいときには基本クロンクCLK.を選
択するためのCLK.選択信号を前記クロック切替器2
に出力し、またカウント値が第2比較器7に設定されて
いる前記第1比較値より小さい第2比較値よりも小さい
ときには基本クロックCLK2を選択するためのCLK
2選択信号を前記クロック切替器2に出力するようにし
ている。
and the first one whose count value is set in the M1 comparator 6.
When larger than the comparison value, the basic clock CLK. CLK. The selection signal is sent to the clock switch 2.
CLK for selecting the basic clock CLK2 when the count value is smaller than a second comparison value which is smaller than the first comparison value set in the second comparator 7.
2 selection signal is output to the clock switch 2.

なお、前記クロック切替器2からの基本クロックCLK
はCPUIの他、装置全体の回路にも供給ざれるように
なっている。
Note that the basic clock CLK from the clock switch 2
is supplied not only to the CPU but also to the circuits of the entire device.

このような構成の本実施例においては、CPU1が実行
する処理サイクルにおいてアイドルサイクル期間の占め
る割合が大きいときには前回のクリア/ラッチ信号がカ
ウンタ5に人力されてから次のクリア/ラッチ信号がカ
ウンタ5に入力されるまでの間にI/Oボート3から発
生するアイドルパルスの数は多くなる。すなわちCPU
Iの負荷率が小さくなる。
In this embodiment having such a configuration, when the idle cycle period occupies a large proportion of the processing cycles executed by the CPU 1, the previous clear/latch signal is manually input to the counter 5, and then the next clear/latch signal is input to the counter 5. The number of idle pulses generated from the I/O boat 3 increases until they are input to the I/O boat 3. That is, the CPU
The load factor of I becomes smaller.

しかしてクリア/ラッチ信号がカウンタ5に入力された
ときのカウンタ5のカウント値は第1比較器6に設定さ
れている第1比較値より大きくなる。こうしてCPU負
荷検出部4からはCLK,選択信号がクロック切替器2
に出力され、これによりクロック切替器2は基本クロヅ
クCLK,を基本クロックCLKとするように切替え動
作を行−)  0 こうしてCPUIは比較的低い周波数の基本クロツクに
よって処理動作を行うことになる。従ってこの期間にお
いては処理能力は低下するが消費電力は少なくなり電池
寿命は長くなる。
Therefore, the count value of the counter 5 when the clear/latch signal is input to the counter 5 becomes larger than the first comparison value set in the first comparator 6. In this way, the CLK and selection signals from the CPU load detection section 4 are sent to the clock switch 2.
As a result, the clock switch 2 performs a switching operation to set the basic clock CLK to the basic clock CLK. In this way, the CPU performs processing operations using the basic clock of relatively low frequency. Therefore, during this period, processing capacity decreases, but power consumption decreases and battery life increases.

またCPUIが実行する処理サイクルにおいてアイドル
サイクル期間の占める割合が小さいときには前回のクリ
ア/ラッチ信号がカウンタ5に入力されてから次のクリ
ア/ラッチ信号がカウンタ5に入力されるまでの間にI
/Oボート3から発生するアイドルパルスの数は少なく
なる。すなわちCPUIの負荷率が太き《なる。
Furthermore, if the idle cycle period occupies a small proportion of the processing cycles executed by the CPU, the I
The number of idle pulses generated from /O boat 3 is reduced. In other words, the CPUI load factor becomes thick.

しかしてクリア/ラッチ信号がカウンタ5に入力された
ときのカウンタ5のカウント値は第2比較器7に設定さ
れている第2比較値より小さくなる。こうしてCPU負
荷検出部4からはCLK,選択信号がクロック切替器2
に出力され、これによりクロック切替器2は基本クロッ
クCLK2を基本クロックCLKとするように切替え動
作を行う。
Therefore, the count value of the counter 5 when the clear/latch signal is input to the counter 5 becomes smaller than the second comparison value set in the second comparator 7. In this way, the CLK and selection signals from the CPU load detection section 4 are sent to the clock switch 2.
As a result, the clock switch 2 performs a switching operation to set the basic clock CLK2 as the basic clock CLK.

こうしてCPU1は比較的高い周波数の基本クロックに
よって処理動作を行うことになる。従ってこの期間にお
いては処理能力は高くなる。
In this way, the CPU 1 performs processing operations using a relatively high frequency basic clock. Therefore, the processing capacity is high during this period.

このようにしてCPUIの負荷率が高くなると基本クロ
ックの周波数を高くして処理能力を高め、また負荷率が
低くなると基本クロックの周波数を低くして電池寿命の
長寿命化を図ることができるので、CPU1の処理能力
を低下させることなく各部の制御ができ、しかも電池の
長寿命化を図ることができることになる。
In this way, when the CPU load factor increases, the basic clock frequency can be increased to increase processing capacity, and when the load factor is low, the basic clock frequency can be lowered to extend battery life. , each part can be controlled without reducing the processing capacity of the CPU 1, and the life of the battery can be extended.

なお、前記実施例ではCPU負荷検出部4をデジタル処
理する回路で構成したが必ずしもこれに限定されるもの
ではなく、第4図に示すようにアナログ処理する回路で
構成してもよい。
In the embodiment described above, the CPU load detection section 4 is constructed of a circuit that performs digital processing, but is not necessarily limited to this, and may be constructed of a circuit that performs analog processing as shown in FIG.

すなわち第4図に示す回路は、+ V cc電源端子と
接地間にアナログスイッチ11を介して充電抵抗12と
充放電コンデンサ13の直列回路を接続し、かつ前記コ
ンデンサ13に放電抵抗14を並列に接続している。ま
た+VCC電源端子と接地間に抵抗15,16.17の
直列分圧回路を接続している。
That is, in the circuit shown in FIG. 4, a series circuit of a charging resistor 12 and a charging/discharging capacitor 13 is connected between the +V cc power supply terminal and the ground via an analog switch 11, and a discharging resistor 14 is connected in parallel to the capacitor 13. Connected. Further, a series voltage dividing circuit including resistors 15, 16, and 17 is connected between the +VCC power supply terminal and the ground.

そして前記抵抗15.16の接続点電圧と前記コンデン
サ13の充電電圧を第1比較器18で比較し、また前記
抵抗16.17の接続点電圧と前記コンデンサ13の充
電電圧を第2比較器1つで比較するようにしている。
The connection point voltage of the resistor 15.16 and the charging voltage of the capacitor 13 are compared by a first comparator 18, and the connection point voltage of the resistor 16.17 and the charging voltage of the capacitor 13 are compared by a second comparator 18. I'm trying to compare.

前記アナログスイッチ11はI/Oボート3からのアイ
ドルパルスが入力されるとオン動作するようになってい
る。前記第1比較器18はコンデンサ13の充電電圧が
抵抗15.16の接続点電圧よりも大きくなるとCLK
,選択信号を出力し、また前記第2比較器19はコンデ
ンサ13の充電電圧が抵抗16.17の接続点電圧より
も小さくなるとCLK2選択信号を出力するようになっ
ている。
The analog switch 11 is turned on when an idle pulse from the I/O boat 3 is input. The first comparator 18 outputs CLK when the charging voltage of the capacitor 13 becomes higher than the voltage at the connection point of the resistor 15.16.
, and a selection signal, and the second comparator 19 outputs a CLK2 selection signal when the charging voltage of the capacitor 13 becomes smaller than the voltage at the connection point of the resistor 16.17.

この回路においては、アイドルパルスが人力される毎に
アナログスイッチ11がオン動作してコンデンサ13は
抵抗12を介して充電される。またコンデンサ13は抵
抗14を介して常に一定の割合で放電される。
In this circuit, the analog switch 11 is turned on every time an idle pulse is manually applied, and the capacitor 13 is charged via the resistor 12. Further, the capacitor 13 is always discharged at a constant rate via the resistor 14.

従ってCPUIの負荷率が小さくアイドルバルスが一定
期間内に多数発生する場合にはコンデンサ13の充電電
圧は高くなり、その結果第1比較器18からCLK.選
択信号が出力される。これによりCPU]は低い周波数
の基本クロックCLK,で動作されるようになる。
Therefore, when the CPUI load factor is small and many idle pulses occur within a certain period of time, the charging voltage of the capacitor 13 becomes high, and as a result, the first comparator 18 outputs CLK. A selection signal is output. As a result, the CPU is operated with a low frequency basic clock CLK.

またCPUIの負荷率が大きくアイドルパルスが一定期
間内に僅かしか発生しない場合にはコンデンサ13の充
電電圧は低《なり、その結果第2比較器19からCLK
2選択信号が出力される。
In addition, when the CPU load factor is large and idle pulses occur only a few times within a certain period of time, the charging voltage of the capacitor 13 becomes low, and as a result, the second comparator 19 outputs CLK.
2 selection signal is output.

これによりCPUIは高い周波数の基本クロックCLK
2で動作されるようになる。
This allows the CPU to use the high frequency basic clock CLK.
2 will be activated.

こうしてアナログ構成のCPU負荷検出部を使用しても
前記実施例と同様の効果が得られるものである。
In this way, even if a CPU load detection section having an analog configuration is used, the same effects as in the embodiment described above can be obtained.

なお、前記各実施例においては選択する基本クロックの
数を2個としたがこれは周波数の異なる3個以上の基本
クロックから1個を選択するものであってもよく、その
場合には比較器も3個以上必要となり、かつブライオリ
ティ・エンコーダを使用することによって最適の基本ク
ロックを選択することが可能となる。
In each of the above embodiments, the number of basic clocks to be selected is two, but one may be selected from three or more basic clocks with different frequencies. In that case, the comparator Also, three or more basic clocks are required, and by using a priority encoder, it is possible to select the optimal basic clock.

また前記各実施例においてはCPU負荷検出部において
ハードウエア構成にてCPUの負荷率を検出するものに
ついて述べたが必ずしもこれに限定されるされるもので
はな<、CPUの負荷率をソフトウエアで検出するよう
にしてもよい。
Furthermore, in each of the above embodiments, the CPU load detection section detects the CPU load factor using the hardware configuration, but the invention is not limited to this. It may also be detected.

以下、CPUの負荷率をソフトウェアで検出する場合の
実施例を図面を参照して述べる。
Hereinafter, an embodiment in which the CPU load factor is detected by software will be described with reference to the drawings.

第5図に示すように周波数の異なるn個の基本クロック
CLKl,CLK2 .・・・CLK.をクロック切替
器20に供給し、その切替器20で1つの基本クロック
を選択し、それを基本クロックCLKとしてCPU21
及びシステム全体に供給するようにしている。
As shown in FIG. 5, n basic clocks CLKl, CLK2 . ...CLK. is supplied to the clock switch 20, the switch 20 selects one basic clock, and the CPU 21 selects one basic clock as the basic clock CLK.
and supplies it to the entire system.

前記CPU21はバスライン22を介してラッチ回路2
3を制御しそのラッチ回路23から前記クロック切替器
20にクロック選択信号を出力させるようにしている。
The CPU 21 connects to the latch circuit 2 via the bus line 22.
3 so that the latch circuit 23 outputs a clock selection signal to the clock switch 20.

なお、前記クロック切替器20は切替時にクロックパル
スの抜けやパルス幅の減少が生じない構成になっている
Note that the clock switch 20 is configured so that no clock pulses are dropped or the pulse width is reduced during switching.

前記バスライン22にはまたメモリ24及びI/Oポー
ト25等が接続されている。
A memory 24, an I/O port 25, etc. are also connected to the bus line 22.

ソフトウエア構成について述べると第6図に示すように
なる。すなわちCPU21が実行するアプリケーション
は多くのタスクからなり、CPU21が一時的に実行で
きるタスクは1個のみであり、実行中状態にある。また
実行可能状態にあるタスクは直ちに実施することが可能
であり、その中で一番優先順位の低いのがアイドルタス
クである。従ってCPU21が何も実行するタスクが無
いときアイドルタスクが実行されることになる。
The software configuration is shown in FIG. 6. That is, the application executed by the CPU 21 consists of many tasks, and the CPU 21 can temporarily execute only one task, which is in the executing state. Further, tasks in an executable state can be executed immediately, and among them, an idle task has the lowest priority. Therefore, when the CPU 21 has no task to execute, the idle task is executed.

その他待ち状態、停止状態、中断状態がある。Other states include waiting state, stopped state, and suspended state.

そしてこれら各状態の制御はディス・バッチ〒が行って
いる。そしてこのディス・バッチャがアイドルタスクを
起動している時間を計数する。これによりアイドルタス
クの動作していない時間、すなわちCPU21の負荷率
を検出するようにしている。
Each of these states is controlled by Dis Batch. Then, the time during which this dispatcher is activating an idle task is counted. This allows the time when the idle task is not operating, that is, the load factor of the CPU 21 to be detected.

この実施例においてはディス・バッチャの計数するアイ
ドルタスクの動作している時間から逆にアイドルタスク
の動作していない時間、ナなイつちCPU21の負荷率
を検出し、その負荷率に基づいてCPU21がラッチ回
路23を制御し、ラッチ回路23から所望のクロック選
択信号がクロック切替器20に供給される。これにより
クロック切替器20は基本クロックCLK.〜CLK.
からCPUの負荷率に応じた周波数の基本クロックを選
択しCPU21及びシステム全体に供給することになる
In this embodiment, the load factor of the CPU 21 is detected, and the load factor of the CPU 21 is detected in contrast to the time the idle task is not operating, which is counted by the dispatcher. The CPU 21 controls the latch circuit 23, and a desired clock selection signal is supplied from the latch circuit 23 to the clock switch 20. As a result, the clock switch 20 selects the basic clock CLK. ~CLK.
A basic clock having a frequency corresponding to the load factor of the CPU is selected and supplied to the CPU 21 and the entire system.

例えば第7図の(a)に示す場合はCPU21がアイド
ル状態を示し、この場合にはCPUの負荷率は小となり
、従ってかなり低い周波数の基本クロツクが選択される
For example, in the case shown in FIG. 7(a), the CPU 21 is in an idle state, and in this case the load factor of the CPU is small, so that a basic clock having a fairly low frequency is selected.

また第7図の(b)に示す場合は例えばキー人力処理な
ど割り込みによりタスクAが起動する場合を示し、この
場合にはCPUの負荷率はアイドル状態よりは大きいが
それ程大きな状態ではなく、従って比較的低い周波数の
基本クロックが選択される。
In addition, the case shown in FIG. 7(b) shows a case where task A is started by an interrupt such as key manual processing, and in this case, the CPU load factor is higher than the idle state but not that large. A base clock with a relatively low frequency is selected.

さらに第7図の(C)に示す場合は例えばワードプロセ
ッサにおいて変換キー人力によりカナ変換を行う処理な
ど割り込みによりタスクAが起動され、さらにそのタス
クAによってタスクBが起動される場合を示し、この場
合にはCPUの負荷率は高くなる。従って比較的高い周
波数の基本クロックが選択される。
Furthermore, the case shown in FIG. 7(C) shows a case in which task A is started by an interrupt such as processing for manually converting kana conversion keys in a word processor, and task B is further started by task A. The CPU load factor becomes high. Therefore, a relatively high frequency basic clock is selected.

なお、図中示されるCPUの負荷率測定の単位時間は例
えば0.1秒程度にすればオペレータがキー操作する時
間に比べて充分に短いので操作上問題とならない時間で
あり、しかもCPUの処理から見れば例えばCPUの処
理速度が100万命令/秒であれば10万命令の実行が
可能な時間となる。
Note that if the unit time for measuring the CPU load factor shown in the figure is set to about 0.1 seconds, for example, it is sufficiently short compared to the time it takes for an operator to operate a key, so it will not cause any operational problems, and moreover, the CPU processing For example, if the processing speed of the CPU is 1 million instructions/second, then 100,000 instructions can be executed in the time required.

このように本実施例においてもCPU21の負荷率に応
じて基本クロックの周波数を変更でき前記実施例と同様
の効果が得られるものである。
In this way, also in this embodiment, the frequency of the basic clock can be changed according to the load factor of the CPU 21, and the same effects as in the previous embodiment can be obtained.

なお、前記実施例ではディス・バッチャによってアイド
ルタスクを起動している時間を計数するようにしたが、
必ずしもこれに限定されるものではなく、アイドルタス
クにカウンタを組み込み、インターバルタスクによって
一定時間毎にカウンタのカウント値をチェックするよう
にしてもよい。
In addition, in the above embodiment, the time during which the idle task is activated by the dispatcher is counted; however,
The present invention is not necessarily limited to this, but a counter may be incorporated into the idle task, and the count value of the counter may be checked at regular intervals by an interval task.

すなわち第8図に示すようにアイドルタスクを実行した
後アイドル動作カウンタを+1インクリメントする。
That is, as shown in FIG. 8, after executing the idle task, the idle operation counter is incremented by +1.

そして第9図に示すようにインターバルタスクによって
一定時間毎にアイドル動作カウンタのカウント値をチェ
ックし、その値によってCPU21の負荷率を検出し基
本クロックCLKI〜CLK,から対応する基本クロッ
クを選択するようラッチ回路23を制御する。そしてア
イドル動作カウンタをクリアする。
Then, as shown in FIG. 9, the interval task checks the count value of the idle operation counter at regular intervals, detects the load factor of the CPU 21 based on the value, and selects the corresponding basic clock from among the basic clocks CLKI to CLK. Controls the latch circuit 23. Then, the idle operation counter is cleared.

従ってこの場合のCPUの負荷率測定の単位時間は第1
0図に示すように前のインターバルタスクが終了してか
ら次のインターバルタスクが終了するまでεなる。
Therefore, in this case, the unit time for measuring the CPU load factor is the first
As shown in FIG. 0, ε is reached from the end of the previous interval task until the end of the next interval task.

このようにアイドルタスクにカウンタを組み込んでもC
PUの負荷率を検出できるので前記実施例と同様の効果
が得られるものである。
Even if you incorporate a counter into an idle task like this, C
Since the load factor of the PU can be detected, the same effects as in the embodiment described above can be obtained.

[発明の効果コ 以上詳述したように本発明によれば、中央処理装置の負
荷率を検出して中央処理装置を動作させる基本クロック
の周波数を負荷率に応じて変更させるようにしているの
で、中央処理装置を処理状況に応じた処理能力で臨機応
変に動作させることができ、従って中央処理装置を処理
能力を低下させずに動作でき、しかも負荷率が小さいと
きには中央処理装置を低い周波数の基本クロックで動作
して消費電力を抑え電池の長寿命化を図ることができる
データ処理装置を提供できるものである。
[Effects of the Invention] As detailed above, according to the present invention, the load factor of the central processing unit is detected and the frequency of the basic clock for operating the central processing unit is changed in accordance with the load factor. , the central processing unit can be operated flexibly with the processing capacity according to the processing situation, and therefore the central processing unit can be operated without reducing the processing capacity, and when the load factor is small, the central processing unit can be operated at a low frequency. It is possible to provide a data processing device that operates with a basic clock, reduces power consumption, and extends battery life.

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

第1図乃至第3図は本発明の一実施例を示すもので、第
1図は要部ブロック図、第2図はアイドルサイクルの処
理を示す流れ図、第3図は第1図におけるCPU負荷検
出部の具体回路図、第4図はCPU負荷検出部の他の実
施例を示す回路図、第5図乃至第7図は本発明の他の実
施例を示すもので、第5図は要部ブロック図、第6図は
ソフトウエア構成を模式的に示す図、第7図はタスクの
実行内容とそのときの負荷率との関係を説明するための
グラフ、第8図乃至第10図はソフトウエアによる負荷
率検出の他の実施例を示すもので、第8図はアイドルタ
スク処理を示す流れ図、第9図はインターバルタスク処
理を示す流れ図、第10図はインターバルタスクで設定
されるCPUの負荷率測定の単位時間を示すグラフであ
る。 1,21・・・中央処理装置(CPU)、2.20・・
・クロック切替器(クロック選択手段)3・・・I/O
ボート、 4・・・CPU負荷検出部、 23・・・ラッチ回路。
Figures 1 to 3 show an embodiment of the present invention. Figure 1 is a block diagram of the main part, Figure 2 is a flowchart showing idle cycle processing, and Figure 3 is a CPU load in Figure 1. A specific circuit diagram of the detection section, FIG. 4 is a circuit diagram showing another embodiment of the CPU load detection section, and FIGS. 5 to 7 show other embodiments of the present invention, and FIG. 5 shows the main points. FIG. 6 is a diagram schematically showing the software configuration, FIG. 7 is a graph for explaining the relationship between task execution contents and the load factor at that time, and FIGS. 8 to 10 are This shows another example of load factor detection using software. Fig. 8 is a flowchart showing idle task processing, Fig. 9 is a flowchart showing interval task processing, and Fig. 10 is a flowchart showing CPU load rate detection set by interval task. It is a graph which shows the unit time of load factor measurement. 1,21... central processing unit (CPU), 2.20...
・Clock switch (clock selection means) 3...I/O
board, 4... CPU load detection section, 23... latch circuit.

Claims (1)

【特許請求の範囲】[Claims] 周波数の異なる複数の基本クロックによる動作が可能な
中央処理装置を制御部本体に使用したデータ処理装置に
おいて、アイドル期間とそれ以外の期間の長さにより中
央処理装置の負荷率を検出する負荷率検出手段と、この
負荷率検出手段が検出する負荷率に応じて複数の基本ク
ロックから1つを選択して動作用の基本クロックとする
クロック選択手段とを設け、前記クロック選択手段は、
負荷率が大きいほど高い周波数の基本クロックを選択し
、負荷率が小さいほど低い周波数の基本クロックを選択
することを特徴とするデータ処理装置。
Load factor detection that detects the load factor of the central processing unit based on the length of the idle period and other periods in a data processing device that uses a central processing unit that can operate with multiple basic clocks with different frequencies as the main body of the control unit. and clock selection means for selecting one from a plurality of basic clocks as a basic clock for operation according to the load factor detected by the load factor detection means, and the clock selection means:
A data processing device characterized in that the larger the load factor is, the higher the frequency basic clock is selected, and the smaller the load factor is, the lower the frequency basic clock is selected.
JP1186020A 1989-07-20 1989-07-20 Data processor Pending JPH0351902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1186020A JPH0351902A (en) 1989-07-20 1989-07-20 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1186020A JPH0351902A (en) 1989-07-20 1989-07-20 Data processor

Publications (1)

Publication Number Publication Date
JPH0351902A true JPH0351902A (en) 1991-03-06

Family

ID=16180989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1186020A Pending JPH0351902A (en) 1989-07-20 1989-07-20 Data processor

Country Status (1)

Country Link
JP (1) JPH0351902A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790877A (en) * 1995-07-06 1998-08-04 Hitachi, Ltd. Method for controlling a processor for power-saving in a computer for executing a program, compiler medium and processor system
US6519706B1 (en) 1998-10-12 2003-02-11 Nec Corporation DSP control apparatus and method for reducing power consumption
JP2003108258A (en) * 2001-09-27 2003-04-11 Oki Electric Ind Co Ltd Interruptible information processor
US6751741B1 (en) 1999-02-09 2004-06-15 International Business Machines Corporation Computer power management apparatus and method for optimizing CPU throttling
US6826702B1 (en) 1999-09-28 2004-11-30 Nec Corporation Method and apparatus for reducing power consumption of a CPU in a radio set by adaptively adjusting CPU clock frequency according to CPU load
JP2009032521A (en) * 2007-07-26 2009-02-12 Panasonic Electric Works Co Ltd Discharge lamp lighting unit and illumination system
JP2009110509A (en) * 2007-09-28 2009-05-21 Intel Corp System and method for selecting optimal processor performance level by using processor hardware feedback mechanism
JP2010125543A (en) * 2008-11-26 2010-06-10 Komatsu Ntc Ltd Bobbin for wire saw and wire saw
JP2013513899A (en) * 2009-12-16 2013-04-22 クアルコム,インコーポレイテッド System and method for controlling central processing unit power with reduced frequency variation
US8650426B2 (en) 2009-12-16 2014-02-11 Qualcomm Incorporated System and method for controlling central processing unit power in a virtualized system
US8689037B2 (en) 2009-12-16 2014-04-01 Qualcomm Incorporated System and method for asynchronously and independently controlling core clocks in a multicore central processing unit
US8775830B2 (en) 2009-12-16 2014-07-08 Qualcomm Incorporated System and method for dynamically controlling a plurality of cores in a multicore central processing unit based on temperature
US8909962B2 (en) 2009-12-16 2014-12-09 Qualcomm Incorporated System and method for controlling central processing unit power with guaranteed transient deadlines
JP2015122111A (en) * 2010-01-11 2015-07-02 クアルコム,インコーポレイテッド System and method of monitoring central processing unit in real time
US9104411B2 (en) 2009-12-16 2015-08-11 Qualcomm Incorporated System and method for controlling central processing unit power with guaranteed transient deadlines
US9176572B2 (en) 2009-12-16 2015-11-03 Qualcomm Incorporated System and method for controlling central processing unit power with guaranteed transient deadlines
US9563250B2 (en) 2009-12-16 2017-02-07 Qualcomm Incorporated System and method for controlling central processing unit power based on inferred workload parallelism

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62293331A (en) * 1986-06-12 1987-12-19 Mitsubishi Electric Corp Data processor
JPH01171040A (en) * 1987-12-25 1989-07-06 Fuji Facom Corp Load factor measuring system for computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62293331A (en) * 1986-06-12 1987-12-19 Mitsubishi Electric Corp Data processor
JPH01171040A (en) * 1987-12-25 1989-07-06 Fuji Facom Corp Load factor measuring system for computer

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790877A (en) * 1995-07-06 1998-08-04 Hitachi, Ltd. Method for controlling a processor for power-saving in a computer for executing a program, compiler medium and processor system
US6519706B1 (en) 1998-10-12 2003-02-11 Nec Corporation DSP control apparatus and method for reducing power consumption
US6751741B1 (en) 1999-02-09 2004-06-15 International Business Machines Corporation Computer power management apparatus and method for optimizing CPU throttling
US6826702B1 (en) 1999-09-28 2004-11-30 Nec Corporation Method and apparatus for reducing power consumption of a CPU in a radio set by adaptively adjusting CPU clock frequency according to CPU load
JP2003108258A (en) * 2001-09-27 2003-04-11 Oki Electric Ind Co Ltd Interruptible information processor
JP2009032521A (en) * 2007-07-26 2009-02-12 Panasonic Electric Works Co Ltd Discharge lamp lighting unit and illumination system
JP2009110509A (en) * 2007-09-28 2009-05-21 Intel Corp System and method for selecting optimal processor performance level by using processor hardware feedback mechanism
JP2010125543A (en) * 2008-11-26 2010-06-10 Komatsu Ntc Ltd Bobbin for wire saw and wire saw
JP2013513899A (en) * 2009-12-16 2013-04-22 クアルコム,インコーポレイテッド System and method for controlling central processing unit power with reduced frequency variation
US8650426B2 (en) 2009-12-16 2014-02-11 Qualcomm Incorporated System and method for controlling central processing unit power in a virtualized system
US8689037B2 (en) 2009-12-16 2014-04-01 Qualcomm Incorporated System and method for asynchronously and independently controlling core clocks in a multicore central processing unit
US8775830B2 (en) 2009-12-16 2014-07-08 Qualcomm Incorporated System and method for dynamically controlling a plurality of cores in a multicore central processing unit based on temperature
US8909962B2 (en) 2009-12-16 2014-12-09 Qualcomm Incorporated System and method for controlling central processing unit power with guaranteed transient deadlines
US9081558B2 (en) 2009-12-16 2015-07-14 Qualcomm Incorporated System and method for dynamically controlling a plurality of cores in a multicore central processing unit based on tempature
US9104411B2 (en) 2009-12-16 2015-08-11 Qualcomm Incorporated System and method for controlling central processing unit power with guaranteed transient deadlines
US9128705B2 (en) 2009-12-16 2015-09-08 Qualcomm Incorporated System and method for controlling central processing unit power with reduced frequency oscillations
US9176572B2 (en) 2009-12-16 2015-11-03 Qualcomm Incorporated System and method for controlling central processing unit power with guaranteed transient deadlines
US9563250B2 (en) 2009-12-16 2017-02-07 Qualcomm Incorporated System and method for controlling central processing unit power based on inferred workload parallelism
JP2015122111A (en) * 2010-01-11 2015-07-02 クアルコム,インコーポレイテッド System and method of monitoring central processing unit in real time

Similar Documents

Publication Publication Date Title
JPH0351902A (en) Data processor
US7876144B2 (en) Start-up circuit and start-up method
US5708819A (en) Process and apparatus for generating power management events in a computer system
US5677849A (en) Selective low power clocking apparatus and method
JP5021954B2 (en) Low voltage malfunction prevention circuit and method, and power supply circuit and electronic device using the same
US6784810B2 (en) A/D converter with comparators and low-power detection mode for resistive matrix keyboards
KR101136036B1 (en) Processor system and method for reducing power consumption in idle mode
EP0474963A2 (en) Computer system having sleep mode function
JPH08314587A (en) Power saving power source circuit
CN100511098C (en) Adaptive voltage scaling clock generator for use in a large scale digital processing component and method of operating the same
KR100231810B1 (en) Cluck signal actuating circuit and method
JPH09305272A (en) Information processor
US20190049494A1 (en) Microcontroller including power supply monitoring
EP0604044A1 (en) Power supply loss sensor
JPH08508598A (en) Power control staggering
JPH05289784A (en) Battery-driven computer and battery power monitor method for battery-driven computer
JP2004260648A (en) Power-on reset circuit
US7219246B2 (en) Digital system having selectable clock speed based upon available supply voltage and PLL configuration register settings
US20040158747A1 (en) Processor having high-speed control circuit and low-speed and low-power control circuit and method of using the same
EP1290540B1 (en) Analogue to digital signal conversion
JPH11183532A (en) Device and method for monitoring source voltage and recording medium where source voltage monitoring process program is recorded
JP2837609B2 (en) Power control method
JPH06230861A (en) Power supply control device
KR20050044674A (en) Polarity independent power supply control methods and systems using the same
JP3258846B2 (en) Key input method and key input device