JPH08147073A - Power supply method - Google Patents

Power supply method

Info

Publication number
JPH08147073A
JPH08147073A JP6287692A JP28769294A JPH08147073A JP H08147073 A JPH08147073 A JP H08147073A JP 6287692 A JP6287692 A JP 6287692A JP 28769294 A JP28769294 A JP 28769294A JP H08147073 A JPH08147073 A JP H08147073A
Authority
JP
Japan
Prior art keywords
memory
processing program
rom
power supply
battery
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.)
Granted
Application number
JP6287692A
Other languages
Japanese (ja)
Other versions
JP3274780B2 (en
Inventor
Shigeo Kawashima
茂男 河島
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

Landscapes

  • Memory System (AREA)
  • Stored Programmes (AREA)
  • Power Sources (AREA)

Abstract

PURPOSE: To reduce the consumption of battery power by a ROM. CONSTITUTION: The power supply from a battery 4 to the ROM 2 is cut off by turning OFF a switch 5 when a processing program stored on the ROM 2 can be executed on a RAM 3. The power consumption of the battery 4 by the ROM 2 can be suppressed, so the frequency of the charging, replacement, etc., of the battery 4 is reduced. The memory to which the power supply is cut off is the ROM 2, so the processing program on the ROM 2 is never destroyed even if the power supply is cut off.

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 device.

【0002】[0002]

【従来の技術】携帯用の機器を制御する装置や、あるい
は携帯用の演算処理装置においては、図3に示されるよ
うな装置構成が採用される。この図に示される装置は、
CPU(中央処理ユニット)1、ROM(リードオンリ
ーメモリ)2、RAM(ランダムアクセスメモリ)3及
び電池4から構成されている。
2. Description of the Related Art A device configuration as shown in FIG. 3 is adopted in a device for controlling a portable device or a portable arithmetic processing device. The device shown in this figure
It is composed of 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に
対し所定の直流電圧を供給する。
The ROM 2 is a non-volatile memory that stores a processing program to be executed by the CPU 1, and is a RA.
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, ROM 2 and 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, the ROM
Power is constantly supplied to the battery 2 from the battery 4. Therefore, there is a limit in suppressing the consumption of the battery 4.

【0005】本発明は、このような問題点を解決するこ
とを課題としてなされたものであり、ROM等の不揮発
性メモリに対する電源供給を制御することにより、この
不揮発性メモリにおける電力消費量、ひいては処理装置
全体の電力消費量を低減することを目的とする。本発明
は、また、この電力消費量の低減により、携帯用機器等
に適する処理装置を実現することを目的とする。本発明
は、さらに、電力消費量の低減にあたって処理プログラ
ムの実行に支障をきたさないようにすることを目的とす
る。
The present invention has been made to solve the above problems, and controls the power supply to a non-volatile memory such as a ROM to control the power consumption of the non-volatile memory. 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 portable equipment and the like by reducing the power consumption. A further object of the present invention is to prevent 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 non-volatile first memory, a writable second memory and a first memory. In a power supply method for supplying power to a processing device including a processing unit that executes a processing program that uses the second memory as a work area, the processing program is transferred from the first memory to the second memory. And a step of determining whether or not copying and execution are possible based on the size of the processing program, the size of the second memory, and the size of the work area necessary to execute the processing program. If determined, copy the processing program from the first memory to the second memory,
The method is characterized by including 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 it is not possible.

【0007】[0007]

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

【0008】[0008]

【実施例】以下、本発明の好適な実施例について図面に
基づき説明する。なお、図3に示される従来例と同様の
構成には同一の符号を付し説明を省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment 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 the wiring that supplies power from the battery 4 to the ROM 2, and is controlled by the CPU 1. In the configuration shown in FIG. 1, (a) shows a state in which the CPU 1 supplies power from the battery 4 to the ROM 2 via the switch 5, and (b) shows a state in which this 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 execution of the control procedure shown in this figure (a), and when executing the processing program stored in the ROM 2 (b), it first copies this processing program onto the RAM 3. It is determined whether it can be executed (c). That is, whether or not the processing program to be executed can be copied from the ROM 2 to the RAM 3 is determined 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 size of the processing program is smaller than the size of the RAM 3 but copied, a work area cannot be secured on the RAM 3. In this case, CPU1 is switch 5
Is kept on 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)。このような
電源制御を行うことにより、比較的小さなサイズを有す
る処理プログラム、例えば使用者からのキー入力の有無
を監視するプログラム等を、より小電力で実行すること
が可能になる。
On the contrary, when it is determined that the size of the processing program is relatively small and a work area can be secured in the RAM 3 when the processing program is copied to the RAM 3, the CPU
1 is a processing program to be executed from ROM 2 to RAM
Copy to 3 (d). At this time, if the processing program to be executed is already 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, it becomes possible to execute a processing program having a relatively small size, such as a program for monitoring the presence / absence of a key input from the user, with lower power.

【0013】CPU1は、また、ROM2に対する電源
供給を断った後この処理プログラムの実行を開始する
際、この処理プログラムをRAM3上にコピーして実行
することが可能か否かを、ステップcと同様の手法によ
り判定する(g)。その結果、RAM上で実行可能であ
る場合には、スイッチ5を一旦オン状態にしてステップ
d〜fを実行する。逆に、実行可能でない場合には、ス
イッチ5をオンさせROM2に対する電源供給を再開し
た上で(h)、ROM2上で処理プログラムを実行する
(i)。ステップi実行後はステップcに戻る。
Similarly to step c, the CPU 1 determines whether or not the processing program can be copied onto the RAM 3 and executed when starting the execution of the processing program after cutting off the power supply to the ROM 2. It is judged by the method (g). As a result, if it can be executed on the RAM, the switch 5 is once turned on and steps d to f are executed. On the other hand, if it is not executable, 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, regarding 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 extended. In addition, it is the non-volatile ROM 2 whose power supply is cut off by the switch 5,
Even if the power supply is cut off, the subsequent processing program does not hinder the 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 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, the processing program is copied from the non-volatile first memory to the second memory and executed, and the power supply to the first memory is cut off. It is possible to reduce the power consumption of the power supply by the memory, and thus the power consumption of the processing device. Therefore, when power is supplied to the processing device from the battery, the consumption of the battery can be suppressed. Therefore, a processing device suitable for applications where it is desired to avoid battery charging, replacement, etc. can get. In addition, since the power supply is cut off in the first non-volatile memory, even if the power supply is cut off
The information stored in the memory is not destroyed, so that the subsequent processing programs do not hinder the execution.

【図面の簡単な説明】[Brief description of 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, in which (a) shows a state in which power is supplied to a ROM and (b) shows a state in which it is cut off. FIG.

【図2】この実施例におけるCPUの動作の流れを示す
フローチャートである。
FIG. 2 is a flowchart showing a flow of operations of a CPU in this 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

Claims (1)

【特許請求の範囲】[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. In the power supply method for supplying power to the processing device, the processing program is configured to determine whether or not the processing program can be copied from the first memory to the second memory and executed. 2 based on the size of the memory and the size of the work area required to execute the processing program, and if it is determined that the processing program from the first memory to the second After copying to memory, first
And a step of supplying power to the first memory when it is determined that it 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 true JPH08147073A (en) 1996-06-07
JP3274780B2 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7385845B2 (en) 2002-02-08 2008-06-10 Sony Corporation Composite storage circuit and semiconductor device having the same
JP2010256979A (en) * 2009-04-21 2010-11-11 Denso Corp Power supply control device
JP2010257437A (en) * 2009-03-30 2010-11-11 Fujitsu Ltd Command arrangement program, command arrangement device, and command arrangement method
CN107209224A (en) * 2015-10-29 2017-09-26 华为技术有限公司 A kind of detection BTB fastens method, terminal and the detection means of reliability

Families Citing this family (1)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7385845B2 (en) 2002-02-08 2008-06-10 Sony Corporation Composite storage circuit and semiconductor device having the same
JP2010257437A (en) * 2009-03-30 2010-11-11 Fujitsu Ltd Command arrangement program, command arrangement device, and command arrangement method
JP2010256979A (en) * 2009-04-21 2010-11-11 Denso Corp Power supply control device
CN107209224A (en) * 2015-10-29 2017-09-26 华为技术有限公司 A kind of detection BTB fastens method, terminal and the detection means of reliability
CN107209224B (en) * 2015-10-29 2020-03-10 华为技术有限公司 Method, terminal and detection device for detecting buckling reliability of BTB (Business to Board)

Also Published As

Publication number Publication date
JP3274780B2 (en) 2002-04-15

Similar Documents

Publication Publication Date Title
KR960035229A (en) Computer system and its control method
JPH08147073A (en) Power supply method
JPH0651858A (en) Program interrupting/restarting system
JP2898616B2 (en) Computer with suspend / resume function
JPH0934578A (en) Information processor
JPH0535889B2 (en)
JP2004090243A (en) Image forming system and its power saving method
KR100225985B1 (en) Apparatus and method of saving power of computer
JPS63127315A (en) Data terminal equipment
KR20010085133A (en) Method Of Menory Power Control
JP2008027354A (en) Information processing apparatus and information processing apparatus boot method
JPH0588789A (en) Personal computer
JPH064185A (en) Computer system with automatic power source disconnecting function
JPS6172321A (en) Rise system of computer system
JPH0816275A (en) Power saving type computer
JPH05265602A (en) Power management control device
KR970002366B1 (en) Apparatus for controlling power-out automatically of p.c.
KR950012190A (en) Computer Power Control Method
JPH10149232A (en) System processing request system for power-off time
JPH0764873A (en) Electronic equipment
JPH10198554A (en) Controller
JPH05224770A (en) Method and device for processing data
JPH07319570A (en) Resume control system
JPH0561559A (en) Electronic equipment with operating mode switchable switch
JPH01217510A (en) System for applying and interrupting power source for computer peripheral equipment

Legal Events

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