JPH11212662A - Clock control method and its controller - Google Patents

Clock control method and its controller

Info

Publication number
JPH11212662A
JPH11212662A JP10015941A JP1594198A JPH11212662A JP H11212662 A JPH11212662 A JP H11212662A JP 10015941 A JP10015941 A JP 10015941A JP 1594198 A JP1594198 A JP 1594198A JP H11212662 A JPH11212662 A JP H11212662A
Authority
JP
Japan
Prior art keywords
task
clock
processing
unit
supply
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
JP10015941A
Other languages
Japanese (ja)
Inventor
Katsuya Yamamoto
勝也 山本
Nobuaki Inoue
暢朗 井上
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP10015941A priority Critical patent/JPH11212662A/en
Publication of JPH11212662A publication Critical patent/JPH11212662A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Programmable Controllers (AREA)
  • Transceivers (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily and also surely perform clock supply stop processing to a controller by setting a task which stops clock supply as a task with the lowest priority and performing stop processing of the clock supply owing to the execution of the task stops clock supply. SOLUTION: A standby task processing part 16 is prepared apart from task processing parts 14a to 14n. Task for standby stops clock supply from a clock generating part 27 to a CPU 10. The task processing for standby which is stored in the part 16 is set so that is may have a lower priority(i.e., task processing that has the lowest priority) than task processings stored in the other parts 14a to 14n. Then, at the time of producing a software, it is not recessary to set so as to designate a corresponding task when stopping clock supply.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、通信機器などの各
種電子機器が備えるマイクロコンピュータなどの制御装
置に供給するクロックの制御に適用して好適なクロック
制御方法及び制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock control method and a control device suitable for controlling a clock supplied to a control device such as a microcomputer provided in various electronic devices such as communication devices.

【0002】[0002]

【従来の技術】従来、通信機器などの電子機器におい
て、その機器が備えるシステムコントローラの消費電力
を削減するために、システムコントローラを作動させる
必要がないとき、そのシステムコントローラへのクロッ
クの供給を停止させて、そのクロック供給停止中のシス
テムコントローラが電力を消費しないようにする場合が
ある。
2. Description of the Related Art Conventionally, in an electronic device such as a communication device, supply of a clock to the system controller is stopped when it is not necessary to operate the system controller in order to reduce power consumption of the system controller provided in the device. In some cases, the system controller during which the clock supply is stopped does not consume power.

【0003】図4は、従来のシステムコントローラを構
成する中央制御装置(以下CPUと称する)内の処理構
成を示すブロック図で、CPU50は、ハードウェア制
御部51を備え、このハードウェア制御部51がバスラ
インなどで制御対象となるハードウェア(図示せず)に
対して制御指令を出力する。ハードウェア制御部51で
制御指令を生成させるための処理を行うために、複数の
割り込み処理部52a,52b,52c‥‥52n(n
は任意の数)が設けてある。各割り込み処理部52a〜
52nで実行される割り込み処理は、割り込み処理スケ
ジューラ53により管理される。
FIG. 4 is a block diagram showing a processing configuration in a central control unit (hereinafter referred to as a CPU) constituting a conventional system controller. The CPU 50 has a hardware control unit 51, and the hardware control unit 51 Outputs a control command to hardware (not shown) to be controlled via a bus line or the like. In order for the hardware control unit 51 to perform a process for generating a control command, a plurality of interrupt processing units 52a, 52b, 52c ‥‥ 52n (n
Is an arbitrary number). Each interrupt processing unit 52a-
The interrupt processing executed at 52n is managed by the interrupt processing scheduler 53.

【0004】また、割り込み処理部52a〜52nの他
に、複数のタスク処理部54a,54b,54c‥‥5
4n(nは任意の数)が設けてあり、各タスク処理部5
4a〜54nの処理によっても、ハードウェア制御部5
1で制御指令を生成させることができる構成としてあ
る。ここでは、各タスク処理部54a〜54nでの処理
は、タスクスケジューラ55により割り込み処理とは個
別に管理される構成としてある。
In addition to the interrupt processing units 52a to 52n, a plurality of task processing units 54a, 54b, 54c # 5
4n (n is an arbitrary number), and each task processing unit 5
4a to 54n, the hardware control unit 5
1 can generate a control command. Here, the processing in each of the task processing units 54a to 54n is configured to be managed separately from the interrupt processing by the task scheduler 55.

【0005】割り込み処理部で実行される処理は、基本
的に最低限の処理だけであり、その割り込み処理が行わ
れた後は、タスクへイベント送信してタスク処理に任せ
られる。例えば、携帯電話装置などの無線電話機用のシ
ステムコントローラとして使用されるCPUの場合に
は、電源オンによる割り込み処理,キーパッドのユーザ
操作による割り込み処理,タイマによる割り込み処理な
どが割り込みで起動される構成としてあり、これらの割
り込み処理が起動された後、必要に応じて適当なタスク
処理部にイベント送信されて、以後はそのタスク処理部
でのタスク処理に任せられる構成としてある。
[0005] The processing executed by the interrupt processing unit is basically the minimum processing, and after the interruption processing is performed, an event is transmitted to the task and is left to the task processing. For example, in the case of a CPU used as a system controller for a wireless telephone such as a mobile phone, an interrupt processing by power-on, an interrupt processing by a user operation of a keypad, an interrupt processing by a timer, and the like are activated by an interrupt. After these interrupt processes are activated, an event is transmitted to an appropriate task processing unit as needed, and the task is then left to task processing in the task processing unit.

【0006】このような構成のCPUは、このCPUが
組み込まれる機器の各種機能を、オペレーティング・シ
ステム(以下OSと称する)配下のタスク(プロセスと
呼ばれる場合もある)として構成し、リアルタイムマル
チタスク処理によって機器の制御を行うようにしたもの
で、リアルタイムOSが採用された制御処理である。こ
のリアルタイムOSが採用された制御処理では、設定さ
れた優先度に応じて、割り込み処理やタスク処理を切換
えることを保証している。
The CPU having such a configuration configures various functions of a device in which the CPU is incorporated as tasks (sometimes called processes) under an operating system (hereinafter, referred to as an OS), and performs real-time multitask processing. This is a control process in which a real-time OS is employed. In the control processing using the real-time OS, it is guaranteed that the interrupt processing and the task processing are switched according to the set priority.

【0007】ここで、このようなリアルタイムOSを採
用したCPUにおいて、消費電力を削減するために、C
PUへのクロックの供給を停止させる処理は、従来図5
のフローチャートに示す処理で実行されていた。即ち、
タスクスケジューラ55はイベント発生があるか否か判
断し(ステップ111)、受信イベントがある場合、そ
の受信イベントに対応したタスク処理が実行される(ス
テップ112又は113)。ここで、次のタスクがある
有りのタスク処理の場合には、ステップ112として処
理されて、そのイベントのタスク処理が終了した後、ス
テップ111に戻って、次のイベントに従った処理がな
される無限ループになっている。受信イベントが次のタ
スクなしの処理である場合(即ち処理後にクロックを停
止させて良い処理である場合)には、ステップ113と
して処理されて、そのイベントのタスク処理が終了した
後、そのタスク処理の最後の処理としてクロック停止処
理が実行される(ステップ114)。
Here, in a CPU employing such a real-time OS, to reduce power consumption, C
The process of stopping the supply of the clock to the PU is the same as that of FIG.
Has been executed in the process shown in the flowchart of FIG. That is,
The task scheduler 55 determines whether or not an event has occurred (step 111). If there is a received event, a task process corresponding to the received event is executed (step 112 or 113). Here, in the case of the task processing with the next task, the processing is performed as step 112, and after the task processing of the event ends, the process returns to step 111 to perform the processing according to the next event. It is an infinite loop. If the received event is a process without the next task (that is, a process in which the clock can be stopped after the process), the process is performed in step 113, and after the task process of the event ends, the task process A clock stop process is executed as the last process (step 114).

【0008】このようにCPUのクロックを停止させる
処理が行われることで、CPUを作動させる必要がない
場合に、そのCPUの動作を停止させて、CPUが消費
する電力を削減することができる。例えば、無線電話機
の場合には、CPUから制御指令を発する必要がないと
きには、例えば通話中であっても、小刻みにクロックの
供給を停止させて、消費電力を削減させることができ、
この無線電話機を駆動する電池の持続時間を長時間化す
ることができる。
By performing the process of stopping the clock of the CPU as described above, when it is not necessary to operate the CPU, the operation of the CPU can be stopped to reduce the power consumed by the CPU. For example, in the case of a wireless telephone, when there is no need to issue a control command from the CPU, even during a call, for example, the supply of the clock can be stopped in small increments, and power consumption can be reduced.
The duration of the battery that drives the wireless telephone can be extended.

【0009】[0009]

【発明が解決しようとする課題】ところで、図5のフロ
ーチャートは、非常に簡略化したフローチャートであ
り、実際にはタスクの受信イベントに応じた処理の数は
非常に多く、またそれぞれの受信イベント処理自体が多
くの条件分岐処理を行わなければならない。そのような
複雑なソフトウェア環境下において、一連のイベント処
理で最後の処理であることを決定するのは常に困難な作
業であり、将来のソフトウェア修正や維持においても不
便を強いることになる。また、ソフトウェアを制作する
段階で、クロックを停止させても良い処理が行われた後
に、図5のフローチャートのステップ114に示すCP
Uクロック供給停止処理を行うことを付加するのを忘れ
てしまうこともあり、常時適切にクロック停止処理が行
われているとは言えなかった。
The flowchart of FIG. 5 is a very simplified flowchart. In practice, the number of processes corresponding to a task reception event is very large. It must itself perform many conditional branching operations. In such a complicated software environment, it is always a difficult task to determine the last processing in a series of event processing, and it will be inconvenient for future software modification and maintenance. Also, at the stage of producing software, after processing that may stop the clock is performed, the CP shown in step 114 of the flowchart of FIG.
In some cases, the user may forget to add the process of stopping the U clock supply, so that the clock stop process has not always been properly performed.

【0010】本発明はかかる点に鑑み、制御装置へのク
ロック供給停止処理が、容易かつ確実に行えるようにす
ることを目的とする。
SUMMARY OF THE INVENTION In view of the foregoing, it is an object of the present invention to make it possible to easily and reliably perform a clock supply stop process to a control device.

【0011】[0011]

【課題を解決するための手段】この課題を解決するため
に本発明のクロック制御方法は、クロックの供給を停止
するタスクを、複数用意されたタスクの中の最も優先順
位が低いタスクとして設定しておき、クロックの供給を
停止するタスクの実行によりクロックの供給の停止処理
を行うようにしたものである。
In order to solve this problem, a clock control method according to the present invention sets a task for stopping clock supply as a task having the lowest priority among a plurality of prepared tasks. In addition, the process of stopping the supply of the clock is performed by executing the task of stopping the supply of the clock.

【0012】本発明のクロック制御方法によると、何ら
かのタスク処理が実行された際には、常に最も優先順位
の低いタスクとして、クロックの供給停止処理を行うタ
スクが設定されることになり、他のタスク処理が所定の
順序で処理されて、他に実行するタスク処理がなくなっ
た段階で、クロックの供給停止処理を行うタスクが実行
される。
According to the clock control method of the present invention, when any task processing is executed, a task for performing clock supply stop processing is always set as the task with the lowest priority, and other tasks are set. When the task processing is performed in a predetermined order and there is no other task processing to be executed, the task for performing the clock supply stop processing is executed.

【0013】また本発明の制御装置は、タスク記憶部に
記憶された複数のタスクの内、クロック生成部からのク
ロックの供給停止処理を行うタスクを、タスク管理部で
の優先順位が最も低いタスクとして用意したものであ
る。
Further, the control device of the present invention assigns the task for stopping the supply of the clock from the clock generation unit to the task having the lowest priority in the task management unit from among the plurality of tasks stored in the task storage unit. It is prepared as.

【0014】本発明の制御装置によると、タスク記憶部
に記憶されたクロック生成部からのクロックの供給停止
処理を行うタスクを使用して、クロックの供給停止処理
を行うことができる。
According to the control device of the present invention, the clock supply stop processing can be performed by using the task for performing the clock supply stop processing from the clock generation unit stored in the task storage unit.

【0015】[0015]

【発明の実施の形態】以下、本発明の一実施の形態を、
図1〜図3を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of the present invention will be described.
This will be described with reference to FIGS.

【0016】本例においては、無線電話機の各部の動作
制御を行うシステムコントローラとしての中央制御装置
(CPU)に適用したものである。図1は、そのCPU
内の処理構成を示すブロック図で、CPU10は、ハー
ドウェア制御部11を備え、このハードウェア制御部1
1がバスラインなどで制御対象となるハードウェアとし
て信号処理ブロック22,23,24(各信号処理ブロ
ックの詳細については後述する)に対して制御指令を出
力する。また、CPUや無線電話機内の各回路を作動さ
せるための所定の周波数のクロックを生成させるクロッ
ク発生部27から、CPU10へのクロックの供給に関
する指令(クロックの供給停止指令及び供給復帰指令)
を出力できる構成としてある。
In this embodiment, the present invention is applied to a central control unit (CPU) as a system controller for controlling the operation of each unit of the wireless telephone. Figure 1 shows the CPU
FIG. 1 is a block diagram showing a processing configuration in the CPU. A CPU 10 includes a hardware control unit 11.
1 outputs a control command to signal processing blocks 22, 23 and 24 (details of each signal processing block will be described later) as hardware to be controlled by a bus line or the like. Also, commands related to clock supply to the CPU 10 from the clock generation unit 27 that generates a clock of a predetermined frequency for operating the CPU and each circuit in the wireless telephone (clock supply stop command and supply return command).
Is output.

【0017】ハードウェア制御部11で制御指令を生成
させるための処理を行うために、複数の割り込み処理部
12a,12b,12c‥‥12n(nは任意の数)が
設けてある。各割り込み処理部12a〜12nで実行さ
れる割り込み処理は、割り込み処理スケジューラ13に
より管理され、各割り込み処理毎に予め設定された優先
順位に基づいて処理される。
A plurality of interrupt processing units 12a, 12b, 12c ‥‥ 12n (n is an arbitrary number) are provided in order for the hardware control unit 11 to perform processing for generating a control command. The interrupt processing executed by each of the interrupt processing units 12a to 12n is managed by the interrupt processing scheduler 13, and is processed based on a priority set in advance for each interrupt processing.

【0018】また、割り込み処理部12a〜12nの他
に、複数のタスク処理部14a,14b,14c‥‥1
4n(nは任意の数)が設けてあり、各タスク処理部1
4a〜14nの処理によっても、ハードウェア制御部1
1で制御指令を生成させることができる構成としてあ
る。ここでは、各タスク処理部14a〜14nでの処理
は、タスクスケジューラ15により割り込み処理とは個
別に管理される構成としてあり、各タスク処理毎に予め
設定された優先順位に基づいて処理される。
In addition to the interrupt processing units 12a to 12n, a plurality of task processing units 14a, 14b, 14c ‥‥ 1
4n (n is an arbitrary number), and each task processing unit 1
4a to 14n, the hardware control unit 1
1 can generate a control command. Here, the processing in each of the task processing units 14a to 14n is configured to be managed separately from the interrupt processing by the task scheduler 15, and is performed based on a priority set in advance for each task processing.

【0019】各タスク処理部14a〜14nには、無線
電話機を制御するのに必要な各種タスク処理を行うため
のデータが記憶させてあり、本例においてはこのタスク
処理部14a〜14nとは別に、スタンバイタスク処理
部16が用意してある。このスタンバイタスク処理16
には、スタンバイ用のタスク処理のデータが記憶させて
あり、タスク処理部14a〜14nと同様に、タスクス
ケジューラ15により管理される。ここでのスタンバイ
用のタスク処理とは、クロック発生部27からCPU1
0へのクロックの供給を停止させる処理である。即ち、
図2にスタンバイ用のタスク処理のフローチャートを示
すと、このスタンバイ用のタスクが起動されると、CP
Uへのクロック停止処理が無限ループで実行される(ス
テップ101)。このスタンバイタスク処理部16に記
憶されているスタンバイ用のタスク処理については、他
のタスク処理部14a〜14nに記憶されているタスク
処理よりも、優先順位が低いタスク処理(即ち優先順位
が最も低いタスク処理)となるように設定してある。
Each of the task processing units 14a to 14n stores data for performing various task processes required to control the wireless telephone. In this embodiment, the data is separate from the task processing units 14a to 14n. , A standby task processing unit 16 is provided. This standby task processing 16
Stores data of task processing for standby, and is managed by the task scheduler 15 as in the case of the task processing units 14a to 14n. Here, the task processing for standby means that the clock generation unit 27
This is a process of stopping the supply of the clock to 0. That is,
FIG. 2 shows a flowchart of the standby task processing. When the standby task is activated, the CP
A clock stop process for U is executed in an infinite loop (step 101). The standby task processing stored in the standby task processing unit 16 has a lower priority (i.e., the lowest priority) than the task processing stored in the other task processing units 14a to 14n. Task processing).

【0020】そして、タスクスケジューラ15がタスク
処理部14a〜14nのいずれかに記憶されたデータに
基づいたタスク処理を実行する際には、スタンバイタス
ク処理16に記憶されているスタンバイ用のタスク処理
についても同時に実行するようにしてある。但し、スタ
ンバイタスク処理16に記憶されているスタンバイ用の
タスク処理は、優先順位が最も低いタスク処理として設
定してあるので、各タスク処理部14a〜14nでのタ
スク処理が全て終了した段階で(つまりイベント待ちに
なったときだけ)、スタンバイタスク処理16に記憶さ
れているスタンバイ用のタスク処理がタスクスケジュー
ラ15の管理により実行される。まだ、いずれかのタス
ク処理が実行すべきことがある状態においては、スタン
バイタスク処理は実行されない。
When the task scheduler 15 executes the task processing based on the data stored in any of the task processing sections 14a to 14n, the task processing for standby stored in the standby task processing 16 is performed. Is also executed at the same time. However, since the standby task processing stored in the standby task processing 16 is set as the task processing with the lowest priority, when all the task processing in each of the task processing units 14a to 14n is completed ( That is, only when an event is awaited), the standby task processing stored in the standby task processing 16 is executed by the management of the task scheduler 15. In a state where any task processing still needs to be executed, the standby task processing is not executed.

【0021】このスタンバイタスク処理が実行されるこ
とで、CPU10からクロック発生部27に対して、こ
のCPU10へのクロックの供給を停止させる指令が出
力され、クロックの供給が停止する。このクロックの供
給が停止すると、CPU10は作動しなくなり、CPU
10による電力消費がなくなる。
When the standby task process is executed, a command to stop the supply of the clock to the CPU 10 is output from the CPU 10 to the clock generation unit 27, and the supply of the clock is stopped. When the supply of the clock stops, the CPU 10 stops operating and the CPU 10 stops operating.
10 eliminates power consumption.

【0022】また本例のCPU10は、このようにクロ
ックの供給が停止した状態で、CPUの動作を再開させ
たい要求がある場合に、割り込み処理スケジューラ13
の制御による割り込み処理で、直ちにクロック発生部2
7からのクロックの供給を再開できる構成としてある。
このクロック供給の復帰処理だけについては、CPU1
0にクロックが供給されない状態でも、対応した制御指
令をクロック発生部27に供給できる構成としてある。
或いは、クロック供給復帰処理を行う割り込み処理スケ
ジューラ13などのCPU10内の一部のブロックにつ
いては、上述したクロック供給停止処理によっても、ク
ロックの供給が停止しないようにしても良い。
Further, the CPU 10 of the present embodiment, when there is a request to restart the operation of the CPU in a state where the supply of the clock is stopped in this manner, the interrupt processing scheduler 13
Interrupt processing under the control of
7 can be restarted.
Only the clock supply recovery process is performed by the CPU 1
Even when no clock is supplied to 0, a corresponding control command can be supplied to the clock generator 27.
Alternatively, the supply of the clock may not be stopped for some blocks in the CPU 10 such as the interrupt processing scheduler 13 that performs the clock supply return processing even by the above-described clock supply stop processing.

【0023】このクロック供給再開が行われて割り込み
処理が起動されると、必要によりタスク処理部側にイベ
ント通知されて、ハードウェア制御部11での制御が再
開される構成としてある。
When the clock supply is restarted and the interrupt process is started, an event is notified to the task processing unit if necessary, and the control by the hardware control unit 11 is restarted.

【0024】このように構成されるCPU10による
と、このCPU10を作動させる必要のないときには、
確実にクロック発生部27からCPU10へのクロック
の供給が停止されて、クロック供給が復帰するまでの間
のCPUの電力消費を削減することができ、このCPU
10が組み込まれた機器の消費電力を削減できる。即ち
本例のCPU10は、設定された優先度に応じて割り込
み処理やタスク処理が切換えられるリアルタイムOSが
採用されているが、クロック供給停止処理については、
専用のタスク処理部16を設けて、このタスク処理部1
6に対応した処理データを記憶させると共に、そのクロ
ック供給停止処理のタスクについては他のどのタスク処
理よりも優先順位を低く設定してあることで、いずれか
のタスク処理が実行されて、次に処理するタスクがなく
なった時点で(即ちタスクスケジューラ15でイベント
待ちの状態になった時点で)、クロック供給停止処理の
タスクが実行されて、クロックの供給が停止する。
According to the CPU 10 configured as described above, when it is not necessary to operate the CPU 10,
It is possible to reliably reduce the power consumption of the CPU until the clock supply from the clock generation unit 27 to the CPU 10 is stopped and the clock supply is restored.
It is possible to reduce the power consumption of the device in which 10 is incorporated. That is, the CPU 10 of the present embodiment employs a real-time OS in which interrupt processing and task processing are switched according to the set priority.
A dedicated task processing unit 16 is provided, and the task processing unit 1
6 is stored, and the task of the clock supply stop processing is set lower in priority than any other task processing, so that any task processing is executed, and When there are no more tasks to be processed (that is, when the task scheduler 15 is in an event waiting state), the task of the clock supply stop processing is executed, and the clock supply is stopped.

【0025】従って、従来はクロックの供給を停止させ
ても良い状況をいちいち想定して、その想定したそれぞ
れの処理が行われるタスク処理が行われた後に、クロッ
ク供給停止処理のタスク処理が行われるようにソフトウ
ェアで設定する必要があったものが、本例の場合には、
そのような設定をすることなく、クロックの供給を停止
させて良い状況になると自動的にクロック供給停止処理
が行われて、CPUの動作が停止する。このため、ソフ
トウェアを製作する段階で、クロック供給停止処理を行
うための指令を、いちいち各タスク処理用のデータに加
える必要がなく、ソフトウェア製作時の負担が少なくな
ると共に、本例の場合にはクロックの供給を停止させて
良い状況になると、必ずクロック供給停止処理が行われ
て、確実に消費電力削減処理が行われて、従来のように
ソフトウェア製作時のミスなどでクロック供給停止処理
が行われない場合が発生することがなく、確実にクロッ
ク供給停止処理が行われる。
Therefore, in the related art, assuming a situation where the supply of the clock may be stopped, the task processing of the clock supply stop processing is performed after the task processing for performing the respective assumed processing is performed. What had to be set by software like this, in this case,
When the clock supply is stopped without such setting, a clock supply stop process is automatically performed, and the operation of the CPU is stopped. For this reason, it is not necessary to add a command for performing the clock supply stop processing to the data for each task processing at the stage of producing the software, which reduces the load at the time of producing the software, and in the case of this example, When it is sufficient to stop the clock supply, the clock supply stop processing is always performed, and the power consumption reduction processing is surely performed, and the clock supply stop processing is performed due to a mistake in software production as in the past. A clock supply stop process is reliably performed without any occurrence of a failure.

【0026】また、本例のCPU10は、構成的にはス
タンバイタスク処理部16が従来のCPUより増えてい
るが、このスタンバイタスク処理部16に記憶されて処
理されるスタンバイタスクとしては、図2のフローチャ
ートに示したように、単にクロック供給停止処理を実行
させるだけであり、非常に簡単なタスクであり、スタン
バイタスク処理部16はわずかな容量のメモリで実現で
きると共に、他のスタンバイ処理部14a〜14nがク
ロック供給停止用の処理データを全く必要としないた
め、簡単な構成で実現できる。
Although the configuration of the CPU 10 of this embodiment has a standby task processing unit 16 that is larger than that of the conventional CPU, the standby task stored and processed in the standby task processing unit 16 is as shown in FIG. As shown in the flowchart, the clock supply stop process is simply executed, which is a very simple task. The standby task processing unit 16 can be realized by a small memory, and the other standby processing units 14a To 14n do not require any processing data for stopping clock supply, and can be realized with a simple configuration.

【0027】また本例のCPU10は、クロック生成部
27からのクロックの供給の復帰処理を、タスク記憶部
に記憶された各タスクよりも優先順位の高い割り込み処
理で実行させることで、クロックの供給を復帰させてC
PU10の制御動作を再開させる処理が、割り込み処理
で迅速に行える。
Further, the CPU 10 of the present embodiment executes the return process of the supply of the clock from the clock generation unit 27 by an interrupt process having a higher priority than each task stored in the task storage unit, thereby supplying the clock. And restore C
The process of restarting the control operation of the PU 10 can be quickly performed by the interrupt process.

【0028】次に、本例のCPU10が組み込まれた無
線電話機の構成を、図3を参照して説明すると、CPU
(中央制御装置)10がシステムコントローラとして組
み込まれた無線電話機20は、送受信用のアンテナ21
を備え、このアンテナ21に接続された無線送受信部2
2で、CPU10で設定されたチャンネルの受信処理及
び送信処理が行われ、その無線送受信部22で受信した
信号の復号処理が符号化/復号化処理部23で行われ、
復号された音声データが音声データ処理部24に供給さ
れて音声処理が行われ、スピーカ25から音声が出力さ
れる。また、マイクロホン26が出力する音声信号が、
音声データ処理部24で音声処理されて所定の音声デー
タとされ、この音声データの符号化処理が符号化/復号
化処理部23で行われ、符号化された送信データが無線
送受信部22で所定のチャンネルの送信信号とされて、
アンテナ21から無線送信される。
Next, the configuration of a wireless telephone incorporating the CPU 10 of this embodiment will be described with reference to FIG.
(Central controller) 10 incorporates a wireless telephone 20 as a system controller, and a transmitting / receiving antenna 21
And the wireless transmitting and receiving unit 2 connected to the antenna 21
In 2, the receiving process and the transmitting process of the channel set by the CPU 10 are performed, and the decoding process of the signal received by the wireless transmitting / receiving unit 22 is performed by the encoding / decoding processing unit 23.
The decoded audio data is supplied to the audio data processing unit 24, where audio processing is performed, and audio is output from the speaker 25. Also, the audio signal output from the microphone 26 is
The audio data is processed by the audio data processing unit 24 into predetermined audio data. The audio data is encoded by the encoding / decoding processing unit 23. The transmission signal of the channel of
Radio transmission is performed from the antenna 21.

【0029】無線送受信部22で送信や受信を行うチャ
ンネルやタイミングは、CPU10により設定され、符
号化/復号化処理部23での符号化処理や復号化処理に
ついてもCPU10の制御に基づいて行われ、音声デー
タ処理部24での音声処理についてもCPU10の制御
に基づいて行われる。但し、これらの処理部22,3
3,34は、信号処理を行っている間に絶えずCPU1
0からの制御指令が必要なものではない。従って、CP
U10からの制御指令に基づいて、各処理部22,2
3,24での処理状態が設定された後は、新たな制御指
令がなくても、その処理状態を継続して行う構成として
あり、例えばこの無線電話機20による通話を行う際に
は、通話が開始される際などの所定時にCPU10から
各処理部22,23,24に対応した制御指令を伝送す
れば、通話中などの動作中であってもCPU10は連続
的に作動してなくても問題がない構成としてある。
Channels and timings at which transmission and reception are performed by the radio transmission / reception unit 22 are set by the CPU 10, and encoding and decoding processes by the encoding / decoding processing unit 23 are also performed based on the control of the CPU 10. The audio processing in the audio data processing unit 24 is also performed based on the control of the CPU 10. However, these processing units 22, 3
The CPUs 3 and 34 are constantly operating the CPU 1 while performing signal processing.
No control command from 0 is required. Therefore, CP
Based on the control command from U10, each processing unit 22, 2
After the processing state is set in 3, 24, the processing state is continuously performed without a new control command. For example, when a call is made by the wireless telephone 20, the call is If a control command corresponding to each of the processing units 22, 23, and 24 is transmitted from the CPU 10 at a predetermined time such as when it is started, there is a problem even if the CPU 10 is not operated continuously even during operation such as during a call. There is no configuration.

【0030】このように構成される無線電話機20のシ
ステムコントローラとして、本例のCPU10を使用す
ることで、CPU10が制御処理を必要としないときに
は、逐次小刻みにCPU10へのクロックの供給が停止
して、CPU10が消費する電力を削減でき、無線電話
機20の消費電力の削減につながり、例えば無線電話機
20が内蔵された電池(2次電池など)により駆動され
る場合には、その電池の持続時間を長時間化することが
できる。
By using the CPU 10 of the present embodiment as the system controller of the radio telephone 20 thus configured, when the CPU 10 does not need the control processing, the supply of the clock to the CPU 10 is stopped in small increments. The power consumption of the CPU 10 can be reduced, which leads to a reduction in power consumption of the wireless telephone 20. For example, when the wireless telephone 20 is driven by a built-in battery (such as a secondary battery), the duration of the battery is reduced. It can be long.

【0031】なお、上述した実施の形態では、中央制御
装置(CPU)を無線電話機の制御に適用したが、他の
各種電子機器の制御を行う制御装置に本発明を適用する
ことができることは勿論である。また、上述した実施の
形態では、制御装置そのものへのクロックの供給停止処
理だけを行うようにしたが、機器内のその他の回路ブロ
ックへのクロックの供給停止処理を、上述した実施の形
態で示した処理で実行するようにしても良い。
In the above-described embodiment, the central control unit (CPU) is applied to the control of the radio telephone. However, it is needless to say that the present invention can be applied to a control unit for controlling other various electronic devices. It is. In the above-described embodiment, only the process of stopping the supply of the clock to the control device itself is performed. However, the process of stopping the supply of the clock to other circuit blocks in the device is described in the above-described embodiment. Alternatively, the processing may be performed by the following processing.

【0032】[0032]

【発明の効果】請求項1に記載したクロック制御方法に
よると、何らかのタスク処理が実行された際には、常に
最も優先順位の低いタスクとして、クロックの供給停止
処理を行うタスクが設定されることになり、他のタスク
処理が所定の順序で処理されて、他に実行するタスク処
理がなくなった段階で、クロックの供給停止処理を行う
タスクが実行されて、確実にクロックの供給を停止処理
させることができる。従って、ソフトウェアを制作する
際には、クロックの供給停止を行いたい場合に、いちい
ち該当するタスクを指定するように設定する必要がな
く、クロックの供給を停止させて消費電力を低減させる
処理が、容易かつ確実に行える。
According to the clock control method of the first aspect, when any task processing is executed, the task for performing the clock supply stop processing is always set as the task with the lowest priority. When the other task processes are processed in a predetermined order and there are no other task processes to be executed, the task for performing the clock supply stop process is executed, and the clock supply process is reliably stopped. be able to. Therefore, when producing software, when it is desired to stop the clock supply, it is not necessary to set each task to be specified.Therefore, the process of stopping the clock supply and reducing the power consumption is performed. Easy and reliable.

【0033】請求項2に記載したクロック制御方法によ
ると、請求項1に記載した発明において、クロックの供
給の停止処理後のクロック供給復帰処理を、割り込み処
理により実行することで、制御処理が必要な場合には、
直ちにクロック供給を復帰させて、該当する処理が可能
な状態にすることができる。
According to the clock control method described in claim 2, in the invention described in claim 1, the clock supply return processing after the clock supply stop processing is executed by interrupt processing, thereby requiring control processing. If
Clock supply can be immediately resumed, and the corresponding processing can be performed.

【0034】請求項3に記載した制御装置によると、タ
スク処理管理部がタスク処理の管理を行う際に、タスク
記憶部に記憶されたクロック供給停止処理を行うタスク
を処理させるように設定することで、タスク記憶部に記
憶された他のタスクがタスク処理管理部の管理で実行さ
れた後、他に実行するタスク処理がなくなった段階で、
クロックの供給停止処理を行うタスクが実行されて、確
実にクロックの供給を停止処理させることができる。従
って、タスク記憶部にクロック供給停止用タスクを優先
順位が最も低いタスクとして記憶させておくだけで、確
実にクロックの供給が停止されて消費電力が削減される
制御装置が得られる。
According to the control device of the third aspect, when the task processing management section manages the task processing, it is set so that the task for performing the clock supply stop processing stored in the task storage section is processed. Then, after the other task stored in the task storage unit is executed under the management of the task processing management unit, when there is no other task process to be executed,
The task of performing the clock supply stop processing is executed, and the clock supply stop processing can be reliably performed. Therefore, by simply storing the clock supply stop task in the task storage unit as the task with the lowest priority, a control device in which the supply of the clock is reliably stopped and power consumption is reduced can be obtained.

【0035】請求項4に記載した制御装置によると、請
求項3に記載した発明において、クロック生成部からの
クロックの供給の復帰処理を、タスク記憶部に記憶され
た各タスクよりも優先順位の高い割り込み処理で実行さ
せる割り込み処理管理部を備えたことで、クロックの供
給を復帰させて制御装置の制御動作を再開させる処理
が、割り込み処理で迅速に行える。
According to the control device described in claim 4, in the invention described in claim 3, the process of restoring the supply of the clock from the clock generation unit has a higher priority than each task stored in the task storage unit. The provision of the interrupt processing management unit for executing the interrupt processing with high interrupt processing allows the processing of restoring the supply of the clock and restarting the control operation of the control device to be performed quickly by the interrupt processing.

【0036】請求項5に記載した制御装置によると、請
求項3に記載した発明において、ハードウェア制御部に
より制御されるハードウェアとして、所定の局と無線通
信を行うための通信手段を備えて、この通信手段に制御
指令を送る必要がないとき、クロックの供給停止処理を
行うタスクをタスク処理管理部が実行させるようにした
ことで、無線通信制御のための制御装置を、最低限の消
費電力で作動させる場合の、その消費電力削減のための
構成を簡単にすることができる。
According to the control device described in claim 5, in the invention described in claim 3, the hardware controlled by the hardware control unit includes communication means for performing wireless communication with a predetermined station. When it is not necessary to send a control command to this communication means, the task processing management unit executes the task of stopping the supply of the clock, thereby minimizing the control device for wireless communication control. When operated by electric power, a configuration for reducing power consumption can be simplified.

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

【図1】本発明の一実施の形態による制御構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a control configuration according to an embodiment of the present invention.

【図2】本発明の一実施の形態によるスタンバイタスク
の処理を示すフローチャートである。
FIG. 2 is a flowchart showing processing of a standby task according to one embodiment of the present invention.

【図3】本発明の一実施の形態による制御構成を無線電
話機に適用した例を示すブロック図である。
FIG. 3 is a block diagram illustrating an example in which a control configuration according to an embodiment of the present invention is applied to a wireless telephone.

【図4】従来の中央制御装置の制御構成を示すブロック
図である。
FIG. 4 is a block diagram showing a control configuration of a conventional central control device.

【図5】従来のイベント処理例を示すフローチャートで
ある。
FIG. 5 is a flowchart illustrating a conventional example of event processing.

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

10…中央制御装置、11…ハードウェア制御部、12
a〜12n…割り込み処理部、13…割り込み処理スケ
ジューラ、14a〜14n…タスク処理部(通常処理タ
スク)、15…タスクスケジューラ、16…スタンバイ
タスク処理部、27…クロック発生部
10: Central control unit, 11: Hardware control unit, 12
a to 12n: Interrupt processing unit, 13: Interrupt processing scheduler, 14a to 14n: Task processing unit (normal processing task), 15: Task scheduler, 16: Standby task processing unit, 27: Clock generation unit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 実行されるそれぞれの処理に対応した複
数のタスクを用意し、 必要とする上記タスクを、そのタスクに設定された優先
順位に従って実行して、接続されたハードウェアの制御
を行うと共に、 クロックの供給を停止するタスクを、上記複数のタスク
の中の最も優先順位が低いタスクとして用意し、 該クロックの供給を停止するタスクの実行によりクロッ
クの供給の停止処理を行うクロック制御方法。
1. A plurality of tasks corresponding to respective processes to be executed are prepared, and the required tasks are executed in accordance with the priority set for the tasks to control connected hardware. A clock control method for preparing a task for stopping clock supply as a task having the lowest priority among the plurality of tasks, and performing a process for stopping clock supply by executing the task for stopping clock supply. .
【請求項2】 請求項1記載のクロック制御方法におい
て、 上記クロックの供給の停止処理後のクロック供給復帰処
理を、割り込み処理により実行するクロック制御方法。
2. The clock control method according to claim 1, wherein a clock supply return process after the clock supply stop process is executed by an interrupt process.
【請求項3】 所定の周波数のクロックを供給するクロ
ック生成部と、 上記クロック生成部が生成させたクロックの供給により
作動して、接続されたハードウェアに制御指令を送るハ
ードウェア制御部と、 該ハードウェア制御部で実行されるそれぞれの処理に対
応した複数のタスクが用意されたタスク記憶部と、 該タスク記憶部に記憶された各タスクを、上記ハードウ
ェア制御部で実行させるタスク処理管理部とを備え、 上記タスク記憶部に記憶された上記複数のタスクの内、
上記クロック生成部からのクロックの供給停止処理を行
うタスクを、上記タスク管理部での優先順位が最も低い
タスクとして用意した制御装置。
A clock generation unit for supplying a clock having a predetermined frequency; a hardware control unit that operates by supplying the clock generated by the clock generation unit and sends a control command to connected hardware; A task storage unit in which a plurality of tasks corresponding to respective processes to be executed by the hardware control unit are prepared; and a task process management for causing the hardware control unit to execute each task stored in the task storage unit And a task, among the plurality of tasks stored in the task storage unit,
A control device in which a task for performing a process of stopping supply of a clock from the clock generation unit is prepared as a task having the lowest priority in the task management unit.
【請求項4】 請求項3記載の制御装置において、 上記クロック生成部からのクロックの供給の復帰処理
を、上記タスク記憶部に記憶された各タスクよりも優先
順位の高い割り込み処理で実行させる割り込み処理管理
部を備えた制御装置。
4. The control device according to claim 3, wherein the process of restoring the supply of the clock from the clock generation unit is performed by an interrupt process having a higher priority than each task stored in the task storage unit. A control device equipped with a processing management unit.
【請求項5】 請求項3記載の制御装置において、 上記ハードウェア制御部により制御されるハードウェア
として、所定の局と無線通信を行うための通信手段を備
え、 上記通信手段に制御指令を送る必要がないとき、上記ク
ロックの供給停止処理を行うタスクを上記タスク処理管
理部が実行させる制御装置。
5. The control device according to claim 3, further comprising a communication unit for performing wireless communication with a predetermined station as hardware controlled by the hardware control unit, and transmitting a control command to the communication unit. A control device that causes the task processing management unit to execute a task of performing the clock supply stop processing when unnecessary.
JP10015941A 1998-01-28 1998-01-28 Clock control method and its controller Pending JPH11212662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10015941A JPH11212662A (en) 1998-01-28 1998-01-28 Clock control method and its controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10015941A JPH11212662A (en) 1998-01-28 1998-01-28 Clock control method and its controller

Publications (1)

Publication Number Publication Date
JPH11212662A true JPH11212662A (en) 1999-08-06

Family

ID=11902796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10015941A Pending JPH11212662A (en) 1998-01-28 1998-01-28 Clock control method and its controller

Country Status (1)

Country Link
JP (1) JPH11212662A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099273A (en) * 2001-09-25 2003-04-04 Denso Corp Communication terminal and computer program
JP2005285093A (en) * 2004-03-02 2005-10-13 Mitsubishi Electric Corp Processor power control apparatus and processor power control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099273A (en) * 2001-09-25 2003-04-04 Denso Corp Communication terminal and computer program
JP2005285093A (en) * 2004-03-02 2005-10-13 Mitsubishi Electric Corp Processor power control apparatus and processor power control method
JP4490298B2 (en) * 2004-03-02 2010-06-23 三菱電機株式会社 Processor power control apparatus and processor power control method

Similar Documents

Publication Publication Date Title
US7574615B2 (en) Method of managing power consumption of a network interface
US7000140B2 (en) Data processor and data processing system
US8661272B2 (en) Automated power management of a peripheral device
KR100688102B1 (en) Integrated circuit device
CN101539797B (en) Method, system and device for controlling dynamic clock and power supply
US9021287B2 (en) Circuit arrangement and method for low power mode management with delayable request
JP6458279B2 (en) Power supply control method and wireless terminal
CN110381489B (en) Bluetooth connection method, display terminal and television
KR19990023280A (en) Mobile cordless phone
JP3338818B2 (en) Power management system for wireless LAN terminals
CN102200801A (en) Integrated machine
JP5146046B2 (en) Information processing apparatus and information processing apparatus control method
JP2008515355A (en) Apparatus and related method for controlling a digital signal processor for radio isolation
CN104067597A (en) Network application proxy systems and methods
JPH11212662A (en) Clock control method and its controller
JP2006236241A (en) Peripheral device
KR19980058021A (en) Executing Schedule Message of Computer Using Wireless Calling System
US20150293782A1 (en) Storage medium storing computer program, information processing system, and information processing method
JP2011254159A (en) Mobile communication terminal device and timer control method thereof
JP2003044182A (en) Information processor
WO2024109290A1 (en) Application startup method and apparatus, device, and storage medium
JP2000092254A (en) Control method for facsimile equipment
CN112910968B (en) Centralized control receiving system and receiving method thereof
CN110704271B (en) External equipment module power consumption control method and device of mobile handheld terminal
US20200285300A1 (en) Activation control device, image forming apparatus, and method for controlling activation

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070424

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070821