JP3746898B2 - Interval timer circuit - Google Patents

Interval timer circuit Download PDF

Info

Publication number
JP3746898B2
JP3746898B2 JP15007398A JP15007398A JP3746898B2 JP 3746898 B2 JP3746898 B2 JP 3746898B2 JP 15007398 A JP15007398 A JP 15007398A JP 15007398 A JP15007398 A JP 15007398A JP 3746898 B2 JP3746898 B2 JP 3746898B2
Authority
JP
Japan
Prior art keywords
interval
clock
task
dividing
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP15007398A
Other languages
Japanese (ja)
Other versions
JPH11345129A (en
Inventor
和秀 山川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP15007398A priority Critical patent/JP3746898B2/en
Publication of JPH11345129A publication Critical patent/JPH11345129A/en
Application granted granted Critical
Publication of JP3746898B2 publication Critical patent/JP3746898B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明はインターバルタイマ回路に関し、特に中央処理装置にて複数のプロセスを走行させるマルチタスクシステムのインターバルタイマ回路に関する。
【0002】
【従来の技術】
コンピュータシステムにおいて、中央処理装置(コンピュータ;CPU)に複数のプログラムを走行させる(マルチタスク処理を行う)場合、マルチタスクを行うCPU及び周辺回路においては、順次実行タスクを切替えている。しかし、負荷が重く処理時間のかかるタスクの場合、1回のタスク処理の割り当て時間では処理しきれずに、CPUの処理が他のタスクに移ってしまう。そして次にCPUの処理が回ってくるまで待機し、処理が回ってきてからタスクの処理が再開されるため、負荷の重いタスクは処理完了までに時間がかかる問題がある。すなわち、CPUのタスク切換え時間を決めているインターバルタイマを固定的に持ってタスクを切換えているからである。
【0003】
また、タスクの優先度によってタスクの切替えを制御する方法を用いた場合、CPUの負荷が高くなってしまう問題がある。すなわち、インターバルタイムがCPUの負荷状態とは無関係に設定されているので、固定のインターバルタイムの時間が経過するとタスクの切替えが発生する。この切替え処理のためにCPUを使用するので、負荷の重いタスクからの切替え時、あるいは負荷の重いタスクヘの切替え時にCPUの負荷が大となってしまう。
【0004】
特開平1−282643号公報には、インターバルタイムの値をCPUの負荷状態に連動させて、動的に変更する方法が提案されている。
【0005】
【発明が解決しようとする課題】
特開平1−282643号公報記載の提案の場合、回路構成が複雑になり、回路規模が大きくなる問題がある。すなわち、CPUの負荷状態を常に監視する回路や、インターバルタイムの値を負荷に合わせて可変させるための回路が必要となる。
【0006】
本発明の目的は、最少の回路追加によるCPUの負荷の平準化を図ったインターバルタイマ回路を提供することである。
【0007】
【課題を解決するための手段】
本発明によれば、複数の実行タスクを順次インターバル信号により切替えて実行するマルチタスクコンピュータシステムのインターバルタイマ回路であって、システムクロックを分周してインターバルタイムカウントクロックを発生するインターバルタイムカウントクロック発生手段と、前記インターバルタイムカウントクロックを分周して前記インターバル信号を発生するインターバル信号発生手段と、タスクの処理時にその負荷の軽重に応じて前記インターバルタイムカウントクロック発生手段の分周値を制御する分周値制御手段とを含むことを特徴とするインターバルタイマ回路が得られる。
【0008】
そして、前記インターバルタイムカウントクロック発生手段は、前記システムクロックをn分周するn分周手段と、前記n分周手段の出力を2分周する2分周手段と、通常時は前記n分周手段の出力を、より負荷の重いタスクの処理時は前記2分周手段の出力を夫々選択する選択手段とを有することを特徴とし、また、前記分周値制御手段は前記負荷の軽重に応じて前記選択手段を選択制御することを特徴とする。
【0009】
本発明の作用は次の通りである。例えば、外部イベントからの割込み要求を負荷の重いタスクとして特定しておき、負荷の重いタスクから割込み要求があった場合は、インターバルタイマのカウントクロックの周期を自動的に拡大し、インターバルタイマのカウント設定値を変更することなく、タスク処理を切換えるインターバルタイムの時間間隔をのばして、タスクヘの割当時間をのばす。
【0010】
負荷の重い処理として特定されている外部イベントからの割込み信号を基に、直接インターバルタイマのカウントクロックの周期を長くして、カウンタ設定値を変えることなくインターバルタイムの時間間隔を拡大している。このため、割込み信号を受けてカウント設定値を変更するといった付随的な処理にて、CPUの負荷を重くすることがない。
【0011】
さらに、負荷の重いタスクの割り当て時間中はインターバルタイマに供給されるカウントクロックの周波数が低くなるので、そのカウントクロックを使用しているインターバルタイマの消費電力が低減される。
【0012】
【発明の実施の形態】
以下に、本発明の実施例について図面を参照して説明する。図1は本発明によるインターバルタイマ回路の実施例の構成を示すブロック図である。図1において、本発明によるインターバルタイマ回路は、システムクロックaを発生するシステムクロック発生部1、コンピュータシステム全体を制御するCPU2、CPU2の周辺回路3、システムクロックaを分周してインターバルタイマカウントクロックdを発生する分周比切替え機能付き分周回路4を有する。
【0013】
また、インターバルタイマカウントクロックdを計数しインターバル信号cを発生するインターバルタイマ5、外部イベント7からの負荷の重いタスクを特定する外部イベント割込信号bを基に割込み信号を発生する外部イベント割込み信号発生部6を有して構成される。
【0014】
本発明の実施例の動作を説明する。図1において、システムクロック発生部1は回路全体の基本クロックaを各部に供給している。CPU(中央処理装置)2は本実施例のシステムを制御する。周辺回路3はメモリーや、バス制御部、DMAコントローラ、I/Oポート等のシステム資源や周辺回路である。
【0015】
分周比切替え機能付き分周回路4はシステムクロック発生部1から供給されるシステムクロックaを分周してインターバルタイマ5に供給するカウントクロックdを生成する。さらに、この実施例のシステムにとって処理負荷の重いタスクを特定し、カウント値一定のままでその特定されたタスクの処理に見合う分のインターバルタイムを確保するためのクロックの周期を定めているので、分周比切替え機能付き分周回路4は分周比の切換にてクロック周期をのばし、負荷の重いタスク向けのインターバルタイムを確保するカウントクロックdも生成できる。
【0016】
また、外部イベント割込み信号発生部6からの外部イベント割込信号bを受けて、自動的に分周比を切替えてカウントクロックの周期を変更する(カウントクロックdを切替える)機能を有する。
【0017】
インターバルタイマ5は分周比切替え機能付き分周回路4からのカウントクロックdにより、各タスクの処理を切換える時間間隔であるインターバルタイムを計測し、CPU2ヘインターバル信号cを出力する。外部イベント割込み信号発生部6は外部イベント7からの割込み要求により外部イベントのスタートとエンドとをCPU2と分周比切替え機能付き分周回路4に知らせる。外部イベント7は本実施例のシステムの外部より処理の負荷が重いタスクの発生を外部イベント割込み信号発生部6を介して本実施例のシステムに伝える。
【0018】
図3のタイムチャートにおいて、CPU2に複数のタスクの処理を実行させる際、インターバルタイマ5にて割り当て時間毎に出力されるインターバル信号により実行タスクを切換えて周辺回路3のシステム資源の割り当て、配分を制御して処理を実行させる。
【0019】
負荷の重いタスクである外部イベント7によるタスク処理が発生した場合、外部イベント割込み信号発生部6は外部イベントの発生と終了をCPU2と分周比切替え機能付き分周回路4に通知する。分周比切替え機能付き分周回路4は外部イベント割込み信号発生部6より重いタスクの発生を知らされると、通常の分周比より大きい分周比にてシステムクロックaを分周してカウントクロックdの周期を大きくする。
【0020】
その結果、インターバルタイマ5に設定されているインターバルタイム計測のためのカウント設定値は固定のままでインターバルタイムが拡張される(図3参照)。負荷の重いタスク、すなわち外部イベント7の対応タスクは拡張されたインターバルタイム内にて処理が行われる。
【0021】
外部イベント7が終了すると、外部イベント割込み信号発生部6によりタスク終了がCPU2と分周比切替え機能付き分周回路4に通知され、分周比切替え機能付き分周回路4はカウントクロックdの周期を元にもどし、インターバルタイムは通常の長さとなる(図3参照)。
【0022】
図4は図1に示す分周比切替え機能付き分周回路4とインターバルタイマ5の部分の詳細ブロック図である。図4において、システムクロックaは本実施例の基本クロックであり、システムクロック発生部1から供給される。n分周回路9は、FF(フリップフロップ)回路等で構成されるクロックの分周回路であり、システムクロックaをn分周してn分周クロックを生成する。2分周回路10は、n分周回路9と同様にFF回路等にて構成されるクロックの分周回路であり、n分周クロックをさらに2分周して2n分周クロックを生成する。セレクタ11はn分周回路9からのn分周クロックと、2分周回路10からの2n分周クロックとのどちらか一方を、外部イベント割込信号bによって切替えて2分周回路12へ出力する。
【0023】
外部イベント割込信号bはセレクタ11の入力クロックを選択するための信号である。2分周回路12は2分周回路10と同様に入力されたクロックを2分周して出力するので、出力は4n分周クロックあるいは2n分周クロックとなる。
【0024】
インターバルタイマ5は2分周回路12から入力されるクロックdをカウントクロックとして、予め設定されているカウント値によりインターバルタイムを計測してインターバルタイム毎にインターバル信号cを出力する。
【0025】
図1,4及び図3のタイムチャートを参照して詳細に説明する。図4の外部イベント割込信号b、すなわちセレクタ11のS(セレクト)入力は通常のタスク時はインアクティブであり、その際セレクタ11は入力Bのクロック、すなわちn分周回路9の出力であるシステムクロックaがn分周されたクロック(n分周クロック)を選択し、2分周回路12に出力する。その結果、インターバルタイマ5には、システムクロックaが2n分周されたクロック(2n分周クロック)がカウントクロックdとして供給される。図3のタイムチャートにおいては、T0〜T1,T1〜T2の区間に相当する。
【0026】
そして、処理の負荷が重いタスクとしての外部イベント7が発生すると、外部イベント割込信号bがアクティブ状態になり、セレクタ11は入力Aのクロック入力、すなわち2分周回路10の出力であるシステムクロックaが2n分周されたクロック(2n分周クロック)を選択して2分周回路12に出力する。
【0027】
2分周回路12では、さらに2分周を行ってインターバルタイマ5にシステムクロックaが4n分周されたクロック(4n分周クロック)をカウントクロックdとして供給し、インターバルタイマ5は設定されているカウント値をカウントする毎にインターバル信号cを出力する。
【0028】
図3のタイムチャートではT2〜T3の区間に相当する。図3のT2〜T3の区間ではカウントクロックの周期が2倍になるので、インターバルタイマ5では、カウント設定値は予め設定されたままだが、計測されるインターバルタイム、すなわちインターバル信号cの間隔が2倍になる。その間に外部イベント7の処理をCPU2が行う。
【0029】
外部イベント7の処理の割り当て時間として見合う時間、すなわち図3のT2〜T3の区間分の時間(本実施例においては通常の2倍のインターバルタイム)は予め定めておき、カウント設定値固定のままで、通常の2倍のインターバルタイムを計測できるように、通常のカウントクロックの2倍のクロック周期をもつカウントクロックdを、外部イベント割込信号bがアクティブの間、インターバルタイマ5に供給する。
【0030】
外部イベント7が終了、すなわち負荷の重いタスクの処理が終わると、外部イベント割込信号bはインアクティブとなり、インターバルタイマ5に供給されるカウントクロックdは2n分周クロックとなってインターバル信号cの間隔も通常に戻る(図3のT3〜T4の区間)。
【0031】
図2において、本発明の他の実施例について説明する。図2に示す実施例は基本的には図1に示す実施例と同じであるが、分周比切替え機能付き分周回路4からの出力クロックが、インターバルタイマ5と周辺回路8とに入力されている。周辺回路8はインターバルタイマ5のカウントクロックd(通常時と外部イベント7発生時との両方のクロック)でも動作に支障のない部分の回路である。
【0032】
そのため、外部イベント7、すなわち、負荷の重いタスクが処理されている間は、インターバルタイマ5と同様に、通常時より低い周波数のクロックにて動作するので、通常状態よりも消費電力が低くなる利点がある。
【0033】
【発明の効果】
以上説明したように本発明は、マルチタスク処理において負荷の重いタスクの処理時に、自動的にタスク処理の割り当て時間が拡張されることを、CPUに負荷をかけず、かつCPUの負荷を監視して動的にタスク処理の割り当て時間を拡張、縮小させるといった複雑な回路なしに実現できる効果がある。
【0034】
すなわち、予め負荷の重いタスクを特定し、それに見合う処理時間(インターバルタイム)を定めておき、負荷の重いタスク発生時に、簡単なセレクタ回路にてインターバルカウンタ用カウントクロック生成の分周回路の分周比を切替えることにより、カウントクロックの周期を切替えるだけで簡単にインターバルタイムを切替えることができるからである。
【0035】
また、負荷の重いタスクの処理時に消費電力を低減できる効果がある。すなわち、負荷の重いタスク実行中はインターバルタイマのカウントクロックの周波数が低くなるからである。
【0036】
さらに、インターバルタイマと同様に、負荷の重いタスク実行時にクロック周波数を低くできる回路への供給クロックも連動して周波数を低くすれば、いっそう消費電力をおさえることができる。
【図面の簡単な説明】
【図1】本発明の実施例のブロック図である。
【図2】本発明の他の実施例のブロック図である。
【図3】本発明の実施例のタイムチャートである。
【図4】分周比切替え機能付き分周回路の詳細ブロック図である。
【符号の説明】
1 システムクロック発生部
2 CPU
3 周辺回路
4 分周比切替え機能付き分周回路
5 インターバルタイマ
6 外部イベント割込み信号発生部
7 外部イベント
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an interval timer circuit, and more particularly to an interval timer circuit of a multitask system in which a plurality of processes are run in a central processing unit.
[0002]
[Prior art]
In a computer system, when a central processing unit (computer; CPU) runs a plurality of programs (performs multitask processing), execution tasks are sequentially switched in a CPU and peripheral circuits that perform multitasking. However, in the case of a task with a heavy load and a long processing time, the processing of the CPU is shifted to another task because the task cannot be processed within the allocation time of one task processing. Then, the CPU waits until the next processing of the CPU, and the task processing is resumed after the processing has started. Therefore, a task with a heavy load has a problem that it takes time to complete the processing. That is, the task is switched with a fixed interval timer that determines the task switching time of the CPU.
[0003]
Further, when a method of controlling task switching according to task priority is used, there is a problem that the load on the CPU increases. That is, since the interval time is set regardless of the load state of the CPU, task switching occurs when a fixed interval time elapses. Since the CPU is used for this switching process, the load on the CPU increases when switching from a task with a heavy load or when switching to a task with a heavy load.
[0004]
Japanese Patent Laid-Open No. 1-282643 proposes a method of dynamically changing the value of the interval time in conjunction with the load state of the CPU.
[0005]
[Problems to be solved by the invention]
In the case of the proposal described in Japanese Patent Application Laid-Open No. 1-282643, there is a problem that the circuit configuration becomes complicated and the circuit scale becomes large. That is, a circuit for constantly monitoring the load state of the CPU and a circuit for changing the value of the interval time according to the load are required.
[0006]
An object of the present invention is to provide an interval timer circuit that achieves leveling of the CPU load by adding a minimum number of circuits.
[0007]
[Means for Solving the Problems]
According to the present invention, there is provided an interval timer circuit for a multitask computer system for executing a plurality of execution tasks by sequentially switching with an interval signal, and generating an interval time count clock by dividing a system clock. Means for dividing the interval time count clock to generate the interval signal, and controlling the frequency division value of the interval time count clock generating means according to the weight of the load during processing of the task An interval timer circuit including a frequency division value control means is obtained.
[0008]
The interval time count clock generating means includes an n dividing means for dividing the system clock by n, a two dividing means for dividing the output of the n dividing means by 2, and the n dividing in normal times. And means for selecting the output of the divide-by-two means at the time of processing of a task with a heavy load, and the divided value control means corresponds to the load of the load. The selection means is selectively controlled.
[0009]
The operation of the present invention is as follows. For example, if an interrupt request from an external event is identified as a heavy-load task and an interrupt request is issued from a heavy-load task, the interval timer count clock cycle is automatically expanded to count the interval timer. Without changing the setting value, the time interval of the interval time for switching the task processing is extended, and the allocated time for the task is extended.
[0010]
Based on an interrupt signal from an external event specified as a heavy load process, the interval clock time interval is expanded without changing the counter set value by directly extending the interval clock count clock cycle. For this reason, the load on the CPU is not increased in the incidental processing of changing the count setting value in response to the interrupt signal.
[0011]
Furthermore, since the frequency of the count clock supplied to the interval timer is low during the assignment time of a heavy load task, the power consumption of the interval timer using the count clock is reduced.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an embodiment of an interval timer circuit according to the present invention. In FIG. 1, an interval timer circuit according to the present invention includes a system clock generator 1 for generating a system clock a, a CPU 2 for controlling the entire computer system, a peripheral circuit 3 for the CPU 2, and an interval timer count clock by dividing the system clock a. It has a frequency dividing circuit 4 with a frequency dividing ratio switching function for generating d.
[0013]
Also, an interval timer 5 that counts the interval timer count clock d and generates an interval signal c, and an external event interrupt signal that generates an interrupt signal based on an external event interrupt signal b that identifies a heavily loaded task from the external event 7 The generator 6 is configured.
[0014]
The operation of the embodiment of the present invention will be described. In FIG. 1, a system clock generating unit 1 supplies a basic clock a of the entire circuit to each unit. A CPU (central processing unit) 2 controls the system of this embodiment. The peripheral circuit 3 is a system resource such as a memory, a bus control unit, a DMA controller, an I / O port, or a peripheral circuit.
[0015]
The frequency dividing circuit 4 with a frequency division ratio switching function divides the system clock a supplied from the system clock generator 1 and generates a count clock d supplied to the interval timer 5. Furthermore, the task of heavy processing load is specified for the system of this embodiment, and the clock cycle for securing the interval time corresponding to the processing of the specified task while the count value remains constant is determined. The frequency dividing circuit 4 with the frequency division ratio switching function can increase the clock cycle by switching the frequency division ratio, and can also generate a count clock d that secures an interval time for a heavy load task.
[0016]
In addition, it has a function of receiving the external event interrupt signal b from the external event interrupt signal generator 6 and automatically switching the frequency division ratio to change the count clock cycle (switch the count clock d).
[0017]
The interval timer 5 measures an interval time which is a time interval for switching the processing of each task by the count clock d from the frequency dividing circuit 4 with a frequency dividing ratio switching function, and outputs an interval signal c to the CPU 2. The external event interrupt signal generator 6 informs the CPU 2 and the frequency divider 4 with a frequency division ratio switching function of the start and end of the external event in response to an interrupt request from the external event 7. The external event 7 informs the system of this embodiment via the external event interrupt signal generator 6 of the occurrence of a task with a processing load that is heavier than the outside of the system of this embodiment.
[0018]
In the time chart of FIG. 3, when the CPU 2 executes processing of a plurality of tasks, the execution task is switched by the interval signal output at every allocation time by the interval timer 5 to allocate and distribute the system resources of the peripheral circuit 3. Control to execute the process.
[0019]
When task processing by an external event 7 that is a heavy load occurs, the external event interrupt signal generation unit 6 notifies the CPU 2 and the frequency dividing circuit 4 with a frequency division ratio switching function of the occurrence and termination of the external event. When frequency division circuit 4 with a frequency division ratio switching function is notified of the occurrence of a heavier task than external event interrupt signal generator 6, it divides system clock a by a division ratio larger than the normal division ratio and counts it. Increase the period of the clock d.
[0020]
As a result, the interval time is extended while the count set value for interval time measurement set in the interval timer 5 is fixed (see FIG. 3). A task with a heavy load, that is, a task corresponding to the external event 7 is processed within the extended interval time.
[0021]
When the external event 7 ends, the external event interrupt signal generation unit 6 notifies the CPU 2 and the frequency dividing circuit 4 with the division ratio switching function to notify the end of the task. The interval time becomes the normal length (see FIG. 3).
[0022]
FIG. 4 is a detailed block diagram of the frequency dividing circuit 4 with frequency division ratio switching function and the interval timer 5 shown in FIG. In FIG. 4, a system clock a is a basic clock of the present embodiment and is supplied from the system clock generator 1. The n frequency dividing circuit 9 is a clock frequency dividing circuit composed of an FF (flip flop) circuit or the like, and generates a frequency n divided clock by dividing the system clock a by n. Similarly to the n divider circuit 9, the divide-by-2 circuit 10 is a clock divider circuit composed of an FF circuit or the like, and further divides the n-divided clock by two to generate a 2n-divided clock. The selector 11 switches either the n-divided clock from the n-divider circuit 9 or the 2n-divided clock from the divide-by-2 circuit 10 by the external event interrupt signal b and outputs it to the divide-by-2 circuit 12. To do.
[0023]
The external event interrupt signal b is a signal for selecting the input clock of the selector 11. Since the divide-by-2 circuit 12 divides the input clock by 2 and outputs the same as in the divide-by-2 circuit 10, the output is a 4n divided clock or a 2n divided clock.
[0024]
The interval timer 5 uses the clock d input from the divide-by-2 circuit 12 as a count clock, measures an interval time based on a preset count value, and outputs an interval signal c for each interval time.
[0025]
This will be described in detail with reference to the time charts of FIGS. The external event interrupt signal b shown in FIG. 4, that is, the S (select) input of the selector 11 is inactive during a normal task, and the selector 11 is the clock of the input B, that is, the output of the n divider 9. A clock obtained by dividing the system clock a by n (n-divided clock) is selected and output to the divide-by-2 circuit 12. As a result, a clock obtained by dividing the system clock a by 2n (2n divided clock) is supplied to the interval timer 5 as the count clock d. In the time chart of FIG. 3, it corresponds to the section of T0 to T1 and T1 to T2.
[0026]
When an external event 7 as a task with a heavy processing load occurs, the external event interrupt signal b becomes active, and the selector 11 receives the clock input of the input A, that is, the system clock that is the output of the divide-by-2 circuit 10. A clock obtained by dividing a by 2n (2n divided clock) is selected and output to the divide-by-2 circuit 12.
[0027]
The divide-by-2 circuit 12 further divides the frequency by 2, and supplies the interval timer 5 with a clock obtained by dividing the system clock a by 4n (4n divided clock) as the count clock d, and the interval timer 5 is set. The interval signal c is output every time the count value is counted.
[0028]
In the time chart of FIG. 3, it corresponds to a section from T2 to T3. In the interval from T2 to T3 in FIG. 3, the cycle of the count clock is doubled. Therefore, in the interval timer 5, the count setting value is set in advance, but the measured interval time, that is, the interval of the interval signal c is 2 Double. In the meantime, the CPU 2 processes the external event 7.
[0029]
A time commensurate with the allocation time of the processing of the external event 7, that is, a time corresponding to the section from T2 to T3 in FIG. Thus, the count clock d having a clock period twice that of the normal count clock is supplied to the interval timer 5 while the external event interrupt signal b is active so that the normal interval time can be measured.
[0030]
When the external event 7 ends, that is, when the processing of a heavy load is completed, the external event interrupt signal b becomes inactive, and the count clock d supplied to the interval timer 5 becomes a 2n divided clock and becomes the interval signal c. The interval also returns to normal (section T3 to T4 in FIG. 3).
[0031]
In FIG. 2, another embodiment of the present invention will be described. The embodiment shown in FIG. 2 is basically the same as the embodiment shown in FIG. 1, except that the output clock from the frequency dividing circuit 4 with the frequency division ratio switching function is input to the interval timer 5 and the peripheral circuit 8. ing. The peripheral circuit 8 is a circuit that does not hinder the operation even with the count clock d of the interval timer 5 (both the clock at the normal time and when the external event 7 occurs).
[0032]
For this reason, while an external event 7, that is, a task with a heavy load, is being processed, it operates with a clock having a frequency lower than that in the normal state, similarly to the interval timer 5, so that the power consumption is lower than in the normal state. There is.
[0033]
【The invention's effect】
As described above, according to the present invention, when a task with heavy load is processed in multitask processing, the task processing allocation time is automatically extended. Thus, there is an effect that can be realized without complicated circuits such as dynamically extending and reducing task processing allocation time.
[0034]
In other words, a task with a heavy load is specified in advance, and a processing time (interval time) corresponding to the task is determined in advance. When a task with a heavy load occurs, the frequency dividing circuit of the interval counter count clock generation by a simple selector circuit This is because, by switching the ratio, the interval time can be easily switched simply by switching the cycle of the count clock.
[0035]
In addition, there is an effect that power consumption can be reduced when processing a heavy load task. That is, the frequency of the count clock of the interval timer is lowered during the execution of a heavy task.
[0036]
Further, similarly to the interval timer, the power consumption can be further reduced by lowering the frequency of the clock supplied to the circuit that can lower the clock frequency when executing a task with a heavy load.
[Brief description of the drawings]
FIG. 1 is a block diagram of an embodiment of the present invention.
FIG. 2 is a block diagram of another embodiment of the present invention.
FIG. 3 is a time chart of an embodiment of the present invention.
FIG. 4 is a detailed block diagram of a frequency dividing circuit with a frequency dividing ratio switching function.
[Explanation of symbols]
1 System clock generator 2 CPU
3 Peripheral circuit 4 Divider with frequency division ratio switching function 5 Interval timer 6 External event interrupt signal generator 7 External event

Claims (4)

複数の実行タスクを順次インターバル信号により切替えて実行するマルチタスクコンピュータシステムのインターバルタイマ回路であって、システムクロックを分周してインターバルタイムカウントクロックを発生するインターバルタイムカウントクロック発生手段と、前記インターバルタイムカウントクロックを分周して前記インターバル信号を発生するインターバル信号発生手段と、タスクの処理時にその負荷の軽重に応じて前記インターバルタイムカウントクロック発生手段の分周値を制御する分周値制御手段とを含むことを特徴とするインターバルタイマ回路。An interval timer circuit of a multitasking computer system for sequentially switching and executing a plurality of execution tasks by means of an interval signal, the interval time count clock generating means for dividing the system clock to generate an interval time count clock, and the interval time Interval signal generating means for dividing the count clock to generate the interval signal; and a divided value control means for controlling the divided value of the interval time count clock generating means according to the lightness of the load at the time of task processing; An interval timer circuit comprising: 前記インターバルタイムカウントクロック発生手段は、前記システムクロックをn分周するn分周手段と、前記n分周手段の出力を2分周する2分周手段と、通常時は前記n分周手段の出力を、より負荷の重いタスクの処理時は前記2分周手段の出力を夫々選択する選択手段とを有することを特徴とする請求項1記載のインターバルタイマ回路。The interval time count clock generating means includes n dividing means for dividing the system clock by n, 2 dividing means for dividing the output of the n dividing means by 2, and normally, the n dividing means. 2. The interval timer circuit according to claim 1, further comprising selection means for selecting the output of said divide-by-two means when processing a task with a heavy load. 前記分周値制御手段は前記負荷の軽重に応じて前記選択手段を選択制御することを特徴とする請求項2記載のインターバルタイマ回路。3. The interval timer circuit according to claim 2, wherein the divided value control means selectively controls the selection means according to the weight of the load. さらに、前記負荷の重いタスクの処理時に前記2分周手段の出力をクロックとして周辺回路に供給する手段を含むことを特徴とする請求項1,2あるいは3記載のインターバルタイマ回路。4. The interval timer circuit according to claim 1, further comprising means for supplying the output of said divide-by-two means to a peripheral circuit as a clock when processing a heavy load task.
JP15007398A 1998-05-29 1998-05-29 Interval timer circuit Expired - Fee Related JP3746898B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15007398A JP3746898B2 (en) 1998-05-29 1998-05-29 Interval timer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15007398A JP3746898B2 (en) 1998-05-29 1998-05-29 Interval timer circuit

Publications (2)

Publication Number Publication Date
JPH11345129A JPH11345129A (en) 1999-12-14
JP3746898B2 true JP3746898B2 (en) 2006-02-15

Family

ID=15488940

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15007398A Expired - Fee Related JP3746898B2 (en) 1998-05-29 1998-05-29 Interval timer circuit

Country Status (1)

Country Link
JP (1) JP3746898B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100428673B1 (en) * 2001-12-22 2004-04-28 엘지전자 주식회사 Interrupt division for clock device
JP4683218B2 (en) * 2004-01-27 2011-05-18 日本電気株式会社 Fast restart method, information processing apparatus, and program
JP2008146189A (en) * 2006-12-07 2008-06-26 Renesas Technology Corp Power source system
JP4940033B2 (en) 2007-06-29 2012-05-30 パナソニック株式会社 Computer system, computer system control method, and mobile phone

Also Published As

Publication number Publication date
JPH11345129A (en) 1999-12-14

Similar Documents

Publication Publication Date Title
JP3776449B2 (en) Multitasking low power controller
EP1474744B1 (en) Method of setting priority levels in a multiprogramming computer system with priority scheduling, multiprogramming computer system and program therefor
EP0451661B1 (en) Low power consumption microprocessor
US9146761B2 (en) Virtualization system and resource allocation method thereof
JP5324934B2 (en) Information processing apparatus and information processing method
JP3891936B2 (en) Parallel process execution method and multiprocessor computer
JP2004532444A (en) Control of priority and instruction speed on multithreaded processors
AU2002230272A1 (en) Method of setting priority levels in a multiprogramming computer system with priority scheduling, multiprogramming computer system and program therefor
KR20020087388A (en) Arithmetic Processing System and Arithmetic Processing Control Method, Task Management System and Task Management Method, and Storage Medium
JP2002099433A (en) System of computing processing, control method system for task control, method therefor and record medium
JPS5833586B2 (en) information processing system
JP3746898B2 (en) Interval timer circuit
US7096471B2 (en) Apparatus for resource management in a real-time embedded system
JP2003271401A (en) Microprocessor having load monitoring function
WO2012001776A1 (en) Multicore system, method of scheduling and scheduling program
JP2000322277A (en) Task management device
JPH01282643A (en) Dynamic changing system for interval time
JP2003241978A (en) Load dispersion method and load dispersion system for device driver
JPH11296251A (en) Information processor
JPS62293331A (en) Data processor
JP2002287987A (en) Program for executing concurrent processing of task, concurrent processing incorporation control device, concurrent processing method, and recording medium recording program
JPS6010343A (en) Time slice value control system
JPH04340135A (en) Cpu time distribution control system between plural processing types
JPH08314740A (en) Process dispatch method
JPS61115139A (en) Control system of program running time

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050331

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050615

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050712

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050909

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051101

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051125

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20081202

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20081202

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20091202

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091202

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101202

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111202

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111202

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121202

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121202

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131202

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees