JP3274780B2 - Power supply method - Google Patents

Power supply method

Info

Publication number
JP3274780B2
JP3274780B2 JP28769294A JP28769294A JP3274780B2 JP 3274780 B2 JP3274780 B2 JP 3274780B2 JP 28769294 A JP28769294 A JP 28769294A JP 28769294 A JP28769294 A JP 28769294A JP 3274780 B2 JP3274780 B2 JP 3274780B2
Authority
JP
Japan
Prior art keywords
memory
processing program
power supply
processing
size
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
JP28769294A
Other languages
Japanese (ja)
Other versions
JPH08147073A (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.)
Japan Radio Co Ltd
Original Assignee
Japan Radio 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 Japan Radio Co Ltd filed Critical Japan Radio Co Ltd
Priority to JP28769294A priority Critical patent/JP3274780B2/en
Publication of JPH08147073A publication Critical patent/JPH08147073A/en
Application granted granted Critical
Publication of JP3274780B2 publication Critical patent/JP3274780B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、処理装置に電源を供給
する電源供給方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a power supply method for supplying power to a processing apparatus.

【0002】[0002]

【従来の技術】携帯用の機器を制御する装置や、あるい
は携帯用の演算処理装置においては、図3に示されるよ
うな装置構成が採用される。この図に示される装置は、
CPU(中央処理ユニット)1、ROM(リードオンリ
ーメモリ)2、RAM(ランダムアクセスメモリ)3及
び電池4から構成されている。
2. Description of the Related Art In a device for controlling a portable device or a portable arithmetic processing device, a device configuration as shown in FIG. 3 is employed. The device shown in this figure
It comprises a CPU (central processing unit) 1, a ROM (read only memory) 2, a RAM (random access memory) 3, and a battery 4.

【0003】ROM2は、CPU1において実行すべき
処理プログラムを格納する不揮発性メモリであり、RA
M3は、CPU1が処理プログラムを実行する際に作業
領域として使用される読み出し/書き込み可能なメモリ
である。電池4は、CPU1、ROM2及びRAM3に
対し所定の直流電圧を供給する。
[0003] The ROM 2 is a non-volatile memory for storing processing programs to be executed by the CPU 1.
M3 is a readable / writable memory used as a work area when the CPU 1 executes the processing program. The battery 4 supplies a predetermined DC voltage to the CPU 1, the ROM 2, and the RAM 3.

【0004】[0004]

【発明が解決しようとする課題】このような構成を採用
することにより、携帯用機器に適する処理装置を提供す
ることができる。しかし、この装置においては、ROM
2に電池4から常時電源が供給されている。従って、電
池4の消耗を抑制するのに限界があった。
By adopting such a configuration, it is possible to provide a processing apparatus suitable for portable equipment. However, in this device, ROM
Power is always supplied to the battery 2 from the battery 4. Therefore, there is a limit in suppressing the consumption of the battery 4.

【0005】本発明は、このような問題点を解決するこ
とを課題としてなされたものであり、ROM等の不揮発
性メモリに対する電源供給を制御することにより、この
不揮発性メモリにおける電力消費量、ひいては処理装置
全体の電力消費量を低減することを目的とする。本発明
は、また、この電力消費量の低減により、携帯用機器等
に適する処理装置を実現することを目的とする。本発明
は、さらに、電力消費量の低減にあたって処理プログラ
ムの実行に支障をきたさないようにすることを目的とす
る。
An object of the present invention is to solve such a problem. By controlling the power supply to a non-volatile memory such as a ROM, the power consumption of the non-volatile memory is reduced. An object is to reduce the power consumption of the entire processing device. Another object of the present invention is to realize a processing device suitable for a portable device or the like by reducing the power consumption. Another object of the present invention is to prevent the execution of the processing program from being hindered in reducing the power consumption.

【0006】[0006]

【課題を解決するための手段】このような目的を達成す
るために、本発明は、不揮発性の第1のメモリと、書込
み可能な第2のメモリと、第1のメモリ上に格納されて
いる処理プログラムを、第2のメモリを作業領域として
使用しながら、実行する処理手段と、を備える処理装置
に電源を供給する電源供給方法において、処理プログラ
ムを第1のメモリから第2のメモリにコピーし実行する
ことが可能か否かを、処理プログラムのサイズ、第2の
メモリのサイズ及び当該処理プログラムを実行するのに
必要な作業領域のサイズに基づき、判定するステップ
と、可能であると判定された場合に、当該処理プログラ
ムを第1のメモリから第2のメモリにコピーした上で、
第1のメモリに対する電源供給を断つステップと、可能
でないと判定された場合に、第1のメモリに対し電源を
供給するステップと、を有することを特徴とする。
In order to achieve such an object, the present invention provides a nonvolatile first memory, a writable second memory, and a memory stored on the first memory. And a processing unit for executing the processing program while using the second memory as a work area, wherein the processing program is transferred from the first memory to the second memory. Determining whether or not copying and execution is possible based on the size of the processing program, the size of the second memory, and the size of the work area required to execute the processing program; If determined, the processing program is copied from the first memory to the second memory,
The method includes a step of cutting off power supply to the first memory, and a step of supplying power to the first memory when it is determined that the power supply is not possible.

【0007】[0007]

【作用】本発明においては、まず、処理プログラムを第
1のメモリから第2のメモリにコピーし実行することが
可能であるか否かが判定される。この判定は、処理プロ
グラムがどの程度のサイズを有しているか、またコピー
先である第2のメモリがどの程度のサイズを有している
か、さらにこの処理プログラムを実行するにあたって第
2のメモリ上で確保すべき作業領域がどの程度のサイズ
であるかに基づき、実行することができる。この判定の
結果可能であるとされた場合、この処理プログラムが第
1のメモリから第2のメモリにコピーされ、その上で第
1のメモリに対する電源供給が断たれる。逆に、可能で
ない場合には第1のメモリに対して電源が供給される。
従って、第1のメモリ上に格納されている処理プログラ
ムのサイズが比較的小さくまたその処理プログラムを実
行するのに必要な作業領域のサイズが比較的小さい場合
には、第1のメモリに対する電源供給が断たれるため、
当該第1のメモリによる電源電力消費、ひいては処理装
置全体の電源電力消費が低減される。その結果、携帯用
機器のように電池を電源として使用している処理装置の
場合に、この電池の消耗を抑制することができる。さら
に、第1のメモリは不揮発性であるから、電源供給を断
ったとしても、その上に格納されている各種の処理プロ
グラムが消去されることはなく、後々の処理装置の動作
に支障が生じることもない。
In the present invention, it is first determined whether or not it is possible to copy a processing program from the first memory to the second memory and execute it. This determination is based on the size of the processing program, the size of the second memory that is the copy destination, and the size of the second memory when executing the processing program. Can be executed on the basis of the size of the work area to be secured. If it is determined that the processing is possible, the processing program is copied from the first memory to the second memory, and then the power supply to the first memory is cut off. Conversely, if it is not possible, power is supplied to the first memory.
Therefore, when the size of the processing program stored in the first memory is relatively small and the size of the work area required to execute the processing program is relatively small, power supply to the first memory is performed. Is refused,
The power consumption of the first memory and the power consumption of the entire processing apparatus are reduced. As a result, in the case of a processing apparatus using a battery as a power supply, such as a portable device, the consumption of the battery can be suppressed. Furthermore, since the first memory is non-volatile, even if power supply is cut off, various processing programs stored thereon are not erased, which hinders the operation of the processing device later. Not even.

【0008】[0008]

【実施例】以下、本発明の好適な実施例について図面に
基づき説明する。なお、図3に示される従来例と同様の
構成には同一の符号を付し説明を省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings. The same components as those in the conventional example shown in FIG.

【0009】図1には、本発明の一実施例に係る処理装
置の構成が示されている。この図に示される装置は、図
3に示される従来例に、さらにスイッチ5を追加した構
成を有している。スイッチ5は、電池4からROM2に
電源を供給する配線上に設けられており、CPU1によ
って制御される。図1に示される構成のうち、(a)は
CPU1がスイッチ5を介してROM2に電池4からの
電源を供給させている状態を表しており、(b)はこの
電源供給を断っている状態を表している。
FIG. 1 shows the configuration of a processing apparatus according to an embodiment of the present invention. The device shown in this figure has a configuration in which a switch 5 is further added to the conventional example shown in FIG. The switch 5 is provided on a wiring for supplying power from the battery 4 to the ROM 2, and is controlled by the CPU 1. 1A shows a state in which the CPU 1 supplies power from the battery 4 to the ROM 2 via the switch 5, and FIG. 1B shows a state in which the power supply is cut off. Is represented.

【0010】図2には、この実施例におけるCPU1に
よるスイッチ5の制御手順が示されている。
FIG. 2 shows a control procedure of the switch 5 by the CPU 1 in this embodiment.

【0011】CPU1は、この図に示される制御手順の
実行を開始し(a)、ROM2上に格納されている処理
プログラムを実行する際(b)、まずこの処理プログラ
ムをRAM3上にコピーして実行することが可能か否か
を判定する(c)。すなわち、実行すべき処理プログラ
ムをROM2からRAM3にコピーすることが可能であ
るか否かを、この処理プログラムのサイズ、RAM3の
サイズ及びRAM3上で確保すべき作業領域のサイズに
基づき判定する。この結果、処理プログラムのサイズが
比較的大きくRAM3のサイズを越えている場合や、あ
るいはRAM3のサイズよりも小さなサイズを有してい
るもののコピーしたとするとRAM3上に作業領域を確
保することができない場合には、CPU1はスイッチ5
をオン状態に維持しROM2に対する電源供給を維持し
た上で、ROM2上で処理プログラムを実行する。
The CPU 1 starts executing the control procedure shown in FIG. 1 (a), and executes the processing program stored in the ROM 2 (b). It is determined whether or not execution is possible (c). That is, it is determined whether the processing program to be executed can be copied from the ROM 2 to the RAM 3 based on the size of the processing program, the size of the RAM 3 and the size of the work area to be secured on the RAM 3. As a result, if the size of the processing program is relatively large and exceeds the size of the RAM 3, or if the copy is performed although the size is smaller than the size of the RAM 3, a work area cannot be secured on the RAM 3. In this case, the CPU 1
Is maintained in the ON state and the power supply to the ROM 2 is maintained, and then the processing program is executed on the ROM 2.

【0012】逆に、処理プログラムのサイズが比較的小
さくRAM3にコピーした時このRAM3上に作業領域
を確保することができると判定された場合には、CPU
1は、実行すべき処理プログラムをROM2からRAM
3にコピーする(d)。その際、実行すべき処理プログ
ラムが既にRAM3上にコピーされている場合にはこの
コピー処理は省略する。CPU1は、ステップdを実行
した上で、RAM3上での当該処理プログラムの実行を
開始すると共に(e)、スイッチ5をオフさせ電池4か
らROM2に対する電源供給を断つ(f)。このような
電源制御を行うことにより、比較的小さなサイズを有す
る処理プログラム、例えば使用者からのキー入力の有無
を監視するプログラム等を、より小電力で実行すること
が可能になる。
Conversely, when the size of the processing program is relatively small and copied to the RAM 3 and it is determined that a work area can be secured on the RAM 3, the CPU
1 is a processing program to be executed is transferred from the ROM 2 to the RAM.
3 (d). At this time, if the processing program to be executed has already been copied on the RAM 3, this copy processing is omitted. After executing step d, the CPU 1 starts executing the processing program on the RAM 3 (e), turns off the switch 5, and cuts off the power supply from the battery 4 to the ROM 2 (f). By performing such power supply control, a processing program having a relatively small size, for example, a program for monitoring the presence or absence of a key input from a user, and the like can be executed with lower power.

【0013】CPU1は、また、ROM2に対する電源
供給を断った後この処理プログラムの実行を開始する
際、この処理プログラムをRAM3上にコピーして実行
することが可能か否かを、ステップcと同様の手法によ
り判定する(g)。その結果、RAM上で実行可能であ
る場合には、スイッチ5を一旦オン状態にしてステップ
d〜fを実行する。逆に、実行可能でない場合には、ス
イッチ5をオンさせROM2に対する電源供給を再開し
た上で(h)、ROM2上で処理プログラムを実行する
(i)。ステップi実行後はステップcに戻る。
When starting the execution of the processing program after the power supply to the ROM 2 is cut off, the CPU 1 determines whether or not the processing program can be copied to the RAM 3 and executed as in step c. (G). As a result, if the execution is possible on the RAM, the switch 5 is once turned on and the steps d to f are executed. Conversely, if the execution is not possible, the switch 5 is turned on to restart the power supply to the ROM 2 (h), and then the processing program is executed on the ROM 2 (i). After executing step i, the process returns to step c.

【0014】従って、本実施例によれば、電池4を電力
源として使用する携帯用機器内部の処理装置について、
省電力化を実現することができ、ひいては電池4の寿命
を長くすることができる。また、スイッチ5によって電
源供給が断たれるのは不揮発性のROM2であるから、
電源供給を断ったとしても後々の処理プログラムは実行
に支障は生じない。
Therefore, according to the present embodiment, the processing device inside the portable device using the battery 4 as a power source,
Power saving can be realized, and the life of the battery 4 can be prolonged. Since the power supply is cut off by the switch 5 in the nonvolatile ROM 2,
Even if the power supply is turned off, the subsequent processing program will not interfere with execution.

【0015】なお、本発明は、携帯用機器に限定される
ものではない。すなわち、携帯可能でない大規模な処理
装置であっても、電池4から電源供給を受ける処理装置
であれば適用することができる。
The present invention is not limited to portable equipment. That is, even a large-scale processing device that is not portable can be applied as long as the processing device receives power supply from the battery 4.

【0016】[0016]

【発明の効果】以上説明したように、本発明によれば、
処理プログラムのサイズが比較的小さい場合等にこの処
理プログラムを不揮発性の第1のメモリから第2のメモ
リにコピーして実行すると共に第1のメモリに対する電
源供給を断つようにしたため、第1のメモリによる電源
電力消費、ひいては処理装置の電源電力消費を低減する
ことができる。従って、処理装置に電池から電源を供給
する場合、この電池の消耗を抑制することができるか
ら、特に携帯用機器のようにできる限り電池の充電、交
換等を回避したい用途において好適な処理装置が得られ
る。加えて、電源供給が断たれるのは不揮発性の第1の
メモリであるから、電源供給を断ったとしてもこの第1
のメモリ上に格納されている情報が破壊されることはな
く、従って後々の処理プログラムは実行に支障も生じな
い。
As described above, according to the present invention,
When the size of the processing program is relatively small or the like, the processing program is copied from the nonvolatile first memory to the second memory and executed, and the power supply to the first memory is cut off. The power consumption of the memory and the power consumption of the processing device can be reduced. Therefore, when power is supplied to the processing apparatus from a battery, the consumption of the battery can be suppressed. Therefore, a processing apparatus that is suitable for an application that wants to avoid charging and replacing the battery as much as possible, such as a portable device, can be provided. can get. In addition, since the power supply is interrupted to the nonvolatile first memory, even if the power supply is interrupted,
The information stored in the memory is not destroyed, so that the subsequent processing program does not hinder execution.

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

【図1】本発明の一実施例に係る装置の構成を示すブロ
ック図であり、(a)はROMに対する電源供給が行わ
れている状態を、(b)は断たれている状態を、それぞ
れ示す図である。
FIG. 1 is a block diagram showing a configuration of an apparatus according to an embodiment of the present invention. FIG. 1A shows a state in which power is supplied to a ROM, and FIG. FIG.

【図2】この実施例におけるCPUの動作の流れを示す
フローチャートである。
FIG. 2 is a flowchart illustrating a flow of an operation of a CPU according to the embodiment.

【図3】一従来例に係る装置の構成を示すブロック図で
ある。
FIG. 3 is a block diagram showing a configuration of an apparatus according to a conventional example.

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

1 CPU 2 ROM 3 RAM 4 電池 5 スイッチ 1 CPU 2 ROM 3 RAM 4 Battery 5 Switch

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 1/26 G06F 1/32 G06F 9/445 G06F 12/06 515 G06F 12/06 520 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 1/26 G06F 1/32 G06F 9/445 G06F 12/06 515 G06F 12/06 520

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 不揮発性の第1のメモリと、書込み可能
な第2のメモリと、第1のメモリ上に格納されている処
理プログラムを、第2のメモリを作業領域として使用し
ながら、実行する処理手段と、を備える処理装置に電源
を供給する電源供給方法において、 処理プログラムを第1のメモリから第2のメモリにコピ
ーし実行することが可能か否かを、処理プログラムのサ
イズ、第2のメモリのサイズ及び当該処理プログラムを
実行するのに必要な作業領域のサイズに基づき、判定す
るステップと、 可能であると判定された場合に、当該処理プログラムを
第1のメモリから第2のメモリにコピーした上で、第1
のメモリに対する電源供給を断つステップと、 可能でないと判定された場合に、第1のメモリに対し電
源を供給するステップと、 を有することを特徴とする電源供給方法。
1. A non-volatile first memory, a writable second memory, and a processing program stored in the first memory are executed while using the second memory as a work area. A power supply method for supplying power to a processing device comprising: a processing unit configured to determine whether it is possible to copy and execute a processing program from a first memory to a second memory; 2 based on the size of the memory 2 and the size of the work area required to execute the processing program. If it is determined that the processing is possible, the processing program is transferred from the first memory to the second memory. After copying to memory,
A power supply method for supplying power to the first memory when it is determined that the power supply to the first memory is not possible.
JP28769294A 1994-11-22 1994-11-22 Power supply method Expired - Fee Related JP3274780B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28769294A JP3274780B2 (en) 1994-11-22 1994-11-22 Power supply method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28769294A JP3274780B2 (en) 1994-11-22 1994-11-22 Power supply method

Publications (2)

Publication Number Publication Date
JPH08147073A JPH08147073A (en) 1996-06-07
JP3274780B2 true JP3274780B2 (en) 2002-04-15

Family

ID=17720500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28769294A Expired - Fee Related JP3274780B2 (en) 1994-11-22 1994-11-22 Power supply method

Country Status (1)

Country Link
JP (1) JP3274780B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8265105B2 (en) 1994-04-01 2012-09-11 Imra America, Inc. Scanning temporal ultrafast delay and methods and apparatuses therefor

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003233990A (en) 2002-02-08 2003-08-22 Sony Corp Structure of compound storage circuit and semiconductor device having the structure of compound storage circuit
JP5202472B2 (en) * 2009-03-30 2013-06-05 富士通株式会社 Instruction placement program, instruction placement apparatus, and instruction placement method
JP2010256979A (en) * 2009-04-21 2010-11-11 Denso Corp Power supply control device
CN107209224B (en) * 2015-10-29 2020-03-10 华为技术有限公司 Method, terminal and detection device for detecting buckling reliability of BTB (Business to Board)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8265105B2 (en) 1994-04-01 2012-09-11 Imra America, Inc. Scanning temporal ultrafast delay and methods and apparatuses therefor
US8630321B2 (en) 1994-04-01 2014-01-14 Imra America, Inc. Scanning temporal ultrafast delay and methods and apparatuses therefor

Also Published As

Publication number Publication date
JPH08147073A (en) 1996-06-07

Similar Documents

Publication Publication Date Title
JP4175838B2 (en) Information processing apparatus with standby mode, standby mode start method and standby mode cancel method
KR960035229A (en) Computer system and its control method
JPH04172535A (en) Popup control system for personal computer
JP3274780B2 (en) Power supply method
JPH0651858A (en) Program interrupting/restarting system
JPH0934578A (en) Information processor
JP4182928B2 (en) Information processing apparatus, memory management program, and memory management method
JP2517563B2 (en) Data processing device
JPH0535889B2 (en)
JPH1083232A (en) Automatic power-off method and information processor using the same
JP2004090243A (en) Image forming system and its power saving method
JP2923111B2 (en) Data processing method and apparatus
JP2008027354A (en) Information processing apparatus and information processing apparatus boot method
JP3389138B2 (en) Suspend / resume management method and suspend / resume management device
JP2001014114A (en) Battery driven type information processor
JPS63127315A (en) Data terminal equipment
JPH10149232A (en) System processing request system for power-off time
JPH0475145A (en) Hardware checking system for computer
JPH04308910A (en) Power source turning off device for information processor
JP2653045B2 (en) Document creation device
JPH06161590A (en) Resuming control system
JPH05151107A (en) Electronic equipment
JPH11231960A (en) Information processor
JPH02139614A (en) Ac driven personal computer
JPH0511874A (en) Information processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees