JPH10124198A - Electronic equipment - Google Patents

Electronic equipment

Info

Publication number
JPH10124198A
JPH10124198A JP8278479A JP27847996A JPH10124198A JP H10124198 A JPH10124198 A JP H10124198A JP 8278479 A JP8278479 A JP 8278479A JP 27847996 A JP27847996 A JP 27847996A JP H10124198 A JPH10124198 A JP H10124198A
Authority
JP
Japan
Prior art keywords
power
battery
memory
resume
voltage
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
JP8278479A
Other languages
Japanese (ja)
Inventor
Yoshio Sakimoto
芳夫 崎元
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP8278479A priority Critical patent/JPH10124198A/en
Publication of JPH10124198A publication Critical patent/JPH10124198A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To store information necessary for continuous execution at the time of next time power supply turning-on even at the time of rapid voltage lowering by judging whether or not power for resuming processing remains when a battery voltage is reduced to such a extent that it is difficult to keep a suspending state in a memory. SOLUTION: When the battery voltage falls so as to be difficult to keep the suspending state, and it is judged that power to process resuming remains in the battery in the suspending state of a memory 1-6, the power of respective devices is re-supplied and the resuming processing part of a suspending/resuming device 1-4 is started. In the meantime, when the battery voltage is reduced so as to permit the keeping of the suspending state to be difficult and it is judged that power to process resuming does not remains in the battery, the resuming processing is prohibited without supplying power to the respective devices. During this, power is supplied to the memory 1-6 by an auxiliary battery 1-11.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はバッテリ駆動を行う
電子機器、特にノートパソコンなどに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a battery-powered electronic device, particularly a notebook computer.

【0002】[0002]

【従来の技術】ノートパソコンなどにおいては、電源切
断指示を行った際に、再度電源投入指示が行われた際
に、現在実行中のプログラムの処理をそのまま継続して
実行可能とするべく、バッテリを使用してメモリ上の必
要なデータを保持する、いわゆるリジューム機能が備え
られているものが多い。
2. Description of the Related Art In a notebook personal computer or the like, when a power-off instruction is given and a power-on instruction is given again, a battery operation is performed so that the processing of a program currently being executed can be continuously executed. In many cases, a so-called resume function is provided to hold necessary data on a memory using a function.

【0003】メモリ上の必要なデータは上記したように
バッテリを使用して揮発性のメモリに保持し、そのメモ
リ以外への電源供給を遮断することにより、バッテリの
消費を抑えるようになっている。
As described above, necessary data in a memory is held in a volatile memory by using a battery, and power supply to other memories is cut off to reduce battery consumption. .

【0004】しかしながら、バッテリを使用してメモリ
を保持する構成では、メモリ保持中にバッテリの電圧が
低下した場合、メモリに退避されているデータが保証さ
れず、破壊されてしまうという問題がある。
However, in a configuration in which a memory is held by using a battery, if the voltage of the battery drops while the memory is being held, there is a problem that data saved in the memory is not guaranteed and is destroyed.

【0005】これを回避する手段として、電源投入指示
が行われる際に継続実行する為に必要な情報を不揮発性
の二次記憶装置に記憶する方法が考えられる。不揮発性
の二次記憶装置は情報の保持にバッテリを必要としな
い。
As a means for avoiding this, a method of storing information necessary for continuous execution when a power-on instruction is issued in a nonvolatile secondary storage device can be considered. A non-volatile secondary storage device does not require a battery to hold information.

【0006】しかしながら、二次記憶装置に記憶させる
には時間がかかり、電源切断指示を行うと、二次記憶装
置への記憶を行い、記憶が終了すると電源が切れるよう
にした構成では、電源切断指示から電源が切断されるま
でに時間がかかってしまい、不便であった。
However, it takes time to store the data in the secondary storage device. When the power-off instruction is issued, the data is stored in the secondary storage device, and when the storage is completed, the power is turned off. It took time from the instruction to the power off, which was inconvenient.

【0007】これらの問題を解決する手法として、特開
平6-124148号公報には電源切断指示を行った場合には、
上記のメモリに情報を保持する手段を用い、バッテリの
電圧を監視し、所定の電圧以下、つまりバッテリ電圧が
メモリの保持が困難になるほど低下した場合には、自動
的に二次記憶装置に情報を記憶する、つまり上記の二つ
の手法を組み合わせた構成となっている。
As a method for solving these problems, Japanese Patent Application Laid-Open No. 6-124148 discloses a method in which a power-off instruction is issued.
The battery voltage is monitored using the above-mentioned means for storing information in the memory, and when the battery voltage is equal to or lower than a predetermined voltage, that is, when the battery voltage becomes low enough to hold the memory, information is automatically stored in the secondary storage device. Is stored, that is, the above two methods are combined.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、通常使
用中バッテリが本体からはずれるなどの、急激な電圧降
下が発生したような場合において、前記の特開平6-1241
48号公報における技術では、処理の途中でバッテリ電圧
が各装置の駆動に必要なレベルに達せず、処理が途中で
中断されるだけでなく、メモリ内のデータが破壊される
可能性があり、電源切断時の情報を正常に保持すること
ができない場合がありうる。
However, when a sudden voltage drop occurs, such as when the battery is disconnected from the main body during normal use, the above-mentioned Japanese Patent Application Laid-Open No. 6-1241 is disclosed.
In the technology disclosed in Japanese Patent Publication No. 48, there is a possibility that the battery voltage does not reach a level necessary for driving each device in the middle of the process, not only the process is interrupted in the middle, but also the data in the memory is destroyed, Information at the time of power-off may not be able to be held normally.

【0009】本願発明は、上記のように、急激な電圧の
降下時においても、安全に次回の電源投入指示が行われ
る際に継続実行する為に必要な情報を記憶しておくもの
である。
As described above, the present invention stores information necessary for continuing to execute safely when the next power-on instruction is issued even when the voltage suddenly drops.

【0010】[0010]

【課題を解決するための手段】本発明の請求項1によれ
ば、中央演算装置であるCPU、揮発性の記憶装置であ
るメモリ、不揮発性の記憶装置である二次記憶装置、デ
ータの入出力を行う入出力手段、各装置へ電源を供給す
るバッテリを備えた電子機器において、各装置への電源
投入および切断を制御し、前記バッテリの電圧を検出す
ることにより、前記CPUに現在のバッテリ電圧を通知
することができる電源管理手段と、実行中のプログラム
を継続実行させるために必要となるデータを前記メモリ
に退避させ、前記メモリ以外の各装置の電源を切断する
メモリサスペンド手段と、実行中のプログラムを継続実
行させるために必要となるデータを前記二次記憶装置に
退避させ、全ての各装置の電源を切断する二次記憶装置
サスペンド手段と、前記メモリサスペンド手段によるメ
モリのサスペンド状態において、再度電源を投入した
際、前記メモリまたは前記二次記憶装置に退避したデー
タを復元し、プログラムを実行可能な状態にするリジュ
ーム手段とを備え、前記電源管理手段は、バッテリ電圧
がメモリのサスペンド状態を維持することが困難になる
ほど低下したことを検知すると、該バッテリにおいて前
記リジューム手段によるリジューム処理を行う電力が残
存しているかどうかを判断することにより上記課題を解
決する。
According to the first aspect of the present invention, a CPU serving as a central processing unit, a memory serving as a volatile storage device, a secondary storage device serving as a nonvolatile storage device, and a data input / output device. In an electronic device including an input / output unit for outputting and a battery for supplying power to each device, the CPU controls the turning on and off of each device and detects the voltage of the battery, thereby providing the CPU with a current battery. A power management unit capable of notifying a voltage; a memory suspending unit configured to save data necessary for continuing execution of the program being executed to the memory and to cut off a power supply of each device other than the memory; Secondary storage device suspending means for evacuating data necessary for continuing execution of the program in the secondary storage device and cutting off the power of all the devices. A resume means for restoring the data saved in the memory or the secondary storage device when the power is turned on again in a state in which the memory is suspended by the memory suspend means and making the program executable; When the management unit detects that the battery voltage has decreased to such an extent that it is difficult to maintain the suspended state of the memory, the management unit determines whether the power for performing the resume processing by the resume unit remains in the battery. Solve the problem.

【0011】本発明の請求項2によれば、前記電源管理
手段により、前記リジューム手段によるリジューム処理
を行う電力が前記バッテリに残存していると判断された
場合において、各装置への電源を投入してリジューム処
理を実行後、前記二次記憶装置サスペンド手段によるサ
スペンド処理を実行することにより上記課題を解決す
る。
According to the second aspect of the present invention, when the power management means determines that the power for performing the resume processing by the resume means remains in the battery, the power supply to each device is turned on. Then, after executing the resume processing, the above-mentioned problem is solved by executing the suspend processing by the secondary storage device suspending means.

【0012】本発明の請求項3によれば、前記バッテリ
の電圧が低下し、前記メモリ内のデータを保持する電力
を供給できなくなった場合に、該データを一定期間保持
する電力を供給する補助バッテリを備え、前記電源管理
手段により、前記リジューム手段によるリジューム処理
を行う電力が前記バッテリに残存していないと判断され
た場合において、リジューム処理を禁止し、前記補助バ
ッテリによりメモリ内のデータを保持することにより上
記課題を解決する。
According to the third aspect of the present invention, when the voltage of the battery decreases and the power for retaining the data in the memory cannot be supplied, the power for retaining the data for a certain period of time is supplied. A battery, wherein when the power management unit determines that the power for performing the resume process by the resume unit does not remain in the battery, the resume process is prohibited, and the data in the memory is held by the auxiliary battery. By doing so, the above problem is solved.

【0013】[0013]

【発明の実施の形態】以下に、図面を用いて本発明を詳
細に説明する。図1は本発明の一実施形態のブロック図
である。情報処理装置(1−1)は、CPU(1−
2)、オペレーティングシステム(1−3)、サスペン
ド/リジューム装置(1−4)、入出力装置(1−
5)、メモリ(1−6)、不揮発性の二次記憶装置とし
て作用する磁気ディスク(1−7)、電源管理装置(1
−8)を備える。電源手段としては、バッテリ(1−
9)、AC電源(1−10)を備える。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram of one embodiment of the present invention. The information processing device (1-1) includes a CPU (1-
2), operating system (1-3), suspend / resume device (1-4), input / output device (1-
5), a memory (1-6), a magnetic disk (1-7) acting as a nonvolatile secondary storage device, and a power management device (1
-8). As the power supply means, a battery (1-
9) and an AC power supply (1-10).

【0014】CPU(1−2)、オペレーティングシス
テム(1−3)、入出力装置(1−5)、メモリ(1−
6)、磁気ディスク(1−7)については、通常情報処
理装置で用いられているものであるので、ここでは特に
詳述はしない。
CPU (1-2), operating system (1-3), input / output device (1-5), memory (1-
6), the magnetic disk (1-7) is usually used in an information processing apparatus, and thus will not be described in detail here.

【0015】補助バッテリ(1−11)は、サスペンド
状態において、バッテリ(1−9)の電圧が極端に低下
し、メモリ内のデータを保持するだけの電力を供給する
ことができなくなったとき、メモリ内のデータを一定期
間保持するだけの電力を供給することのできる小型で低
容量のバッテリである。
In the suspended state, when the voltage of the battery (1-9) drops extremely and the auxiliary battery (1-11) cannot supply power enough to hold data in the memory, This is a small, low-capacity battery that can supply power enough to hold data in a memory for a certain period.

【0016】サスペンド/リジューム装置(1−4)
は、サスペンド処理が発生した場合、実行中のプログラ
ムを継続実行させるために必要となるデータをメモリ
(1−6)あるいは磁気ディスク(1−7)に退避さ
せ、他の各装置の電源を切断するサスペンド処理部と、
各装置の電源切断状態から再度電源が投入された時に、
前記メモリあるいは、前記磁気ディスクに記憶されてい
たデータをもとに必要な装置を作動させることにより電
源切断直前の状態に復元し、プログラムをサスペンド処
理実行前の状態に復元した上でその処理を継続させるリ
ジューム処理部と、これらの一連の動作を実行するプロ
グラムが格納されたROM部から構成されている。
Suspend / resume device (1-4)
Saves data necessary for continuing execution of a running program to a memory (1-6) or a magnetic disk (1-7) when a suspend process occurs, and cuts off a power supply of other devices. A suspend processing unit to perform
When the power is turned on again from the power off state of each device,
By operating necessary devices based on the data stored in the memory or the magnetic disk, the state is restored to a state immediately before power-off, and the program is restored to a state before execution of the suspend processing, and then the processing is performed. It comprises a resume processing unit to be continued and a ROM unit storing a program for executing a series of these operations.

【0017】電源管理装置(1−8)は、バッテリ(1
−9)と接続されており、バッテリ電圧をCPU(1−
2)に通知するため、バッテリ電圧を示すアナログ信号
をデジタル信号に変換するA/Dコンバータと、プログ
ラムを格納するROMと該プログラムが使用するデータ
を保存するRAMと、外部装置との接続を担う入出力ポ
ートと、プログラムを実行および該入出力ポートからの
信号を処理するCPUとを備えた汎用ワンチップマイク
ロコントローラからなる。
The power management device (1-8) includes a battery (1).
-9), and the battery voltage is supplied to the CPU (1-
To notify 2), the A / D converter converts an analog signal indicating a battery voltage into a digital signal, a ROM for storing a program, a RAM for storing data used by the program, and a connection to an external device. It comprises a general-purpose one-chip microcontroller having an input / output port and a CPU for executing programs and processing signals from the input / output port.

【0018】該ワンチップマイクロコントローラは、サ
スペンド状態においても常に上記バッテリより電力が供
給されているが、該電源管理装置のCPUは、情報処理
装置(1−1)のCPUに比べ、低機能で処理能力はお
とるものの、低消費電力で動作可能となるものである。
Although the one-chip microcontroller is always supplied with power from the battery even in the suspended state, the CPU of the power management device has a lower function than the CPU of the information processing device (1-1). Although it has a high processing capability, it can operate with low power consumption.

【0019】図4、図5、図6、図7のフローチャート
をもとに本発明の処理を説明する。オペレーティングシ
ステム(1−3)よりメモリ(1−6)へのサスペンド
処理が発生すると(4−1)、サスペンド/リジューム
装置(1−4)のサスペンド処理部が起動する(4−
2)。
The processing of the present invention will be described with reference to the flowcharts shown in FIGS. 4, 5, 6, and 7. When the suspend processing from the operating system (1-3) to the memory (1-6) occurs (4-1), the suspend processing unit of the suspend / resume device (1-4) is activated (4-
2).

【0020】起動したサスペンド処理部は、CPU(1
−2)のレジスタの内容や各装置の状態を示すデータな
どの現在実行中のオペレーティングシステムに必要なデ
ータ全てをメモリ(1−6)に退避させる(4−3)。
The activated suspend processing unit is a CPU (1).
All the data necessary for the operating system currently being executed, such as the contents of the register of -2) and the data indicating the state of each device, are saved in the memory (1-6) (4-3).

【0021】該データの退避が完了すると、前記メモリ
(1−6)および電源管理装置(1−8)を除いて各装
置の電源は切断される(4−4)。これでメモリがサス
ペンド状態となる。
When the saving of the data is completed, the power of each device is cut off (4-4) except for the memory (1-6) and the power management device (1-8). This puts the memory in a suspended state.

【0022】サスペンド状態で電力を消費しているの
は、メモリ(1−6)と電源管理装置(1−8)だけで
あるので、バッテリ(1−9)の電圧が低下していく推
移は、図2に示すように一定の割合で低下していくこと
になる。
Since only the memory (1-6) and the power management device (1-8) consume power in the suspended state, the voltage of the battery (1-9) is decreasing. , As shown in FIG.

【0023】図2に示すように、リジューム処理を行う
ことができる最低電圧をC電圧とする。バッテリの種類
によって放電特性は決まっているので、C電圧において
リジューム処理を行う電力が残存していることは容易に
判別できる。
As shown in FIG. 2, the lowest voltage at which the resume processing can be performed is defined as a C voltage. Since the discharge characteristics are determined depending on the type of the battery, it can be easily determined that the power for performing the resume processing at the C voltage remains.

【0024】バッテリ電圧が残り少なくなってきたとき
に警報を発し、バッテリの交換やAC電源の接続を促す
ことを目的とした、前記C電圧より少し高いL電圧を設
定する。L電圧になってからC電圧になるまでをT時間
とすると、図2のような降下ではT時間が数分程度にな
るようにL電圧を設定する。
An alarm is issued when the battery voltage becomes low, and an L voltage slightly higher than the C voltage is set for the purpose of prompting replacement of the battery or connection of an AC power supply. Assuming that the time from when the voltage becomes L to when the voltage becomes C is T time, the L voltage is set so that the T time becomes about several minutes in the case of the drop shown in FIG.

【0025】しかしながら、サスペンド中にバッテリ
(1−9)あるいはAC電源(1−10)が本体から抜
かれたときなどは、図3に示すように急激な電圧降下を
引き起こす。このような場合、T時間が数百マイクロ秒
などとなる。
However, when the battery (1-9) or the AC power supply (1-10) is disconnected from the main unit during the suspension, an abrupt voltage drop occurs as shown in FIG. In such a case, the T time is several hundred microseconds or the like.

【0026】一方、電源管理装置(1−8)は、バッテ
リ電圧を定期的に検出しているが、バッテリ電圧を検出
するためには該電源電圧管理装置内のA/Dコンバータ
を動作させる必要がある。A/Dコンバータが動作する
ためには、僅かながらの電力および数十マイクロ秒の時
間を消費するため、ある程度検出期間を長くしたほうが
電力消費を抑えられるため、数十ミリ秒から数秒間隔で
バッテリを検出する。
On the other hand, the power management device (1-8) periodically detects the battery voltage. To detect the battery voltage, it is necessary to operate the A / D converter in the power management device. There is. In order for the A / D converter to operate, a small amount of power and several tens of microseconds are consumed. Therefore, if the detection period is lengthened to a certain extent, power consumption can be suppressed. Is detected.

【0027】このように、電源管理装置(1−8)のバ
ッテリの電圧の検出間隔によってはL電圧を検知するこ
とができず、いきなりC電圧を検知することになる。つ
まり、このようにL電圧を検知することなしにC電圧を
検知した場合、リジュームするだけの電力が残存してい
ないと判断することができる。
As described above, the L voltage cannot be detected depending on the detection interval of the battery voltage of the power management device (1-8), and the C voltage is immediately detected. That is, when the C voltage is detected without detecting the L voltage in this manner, it can be determined that the power for resuming does not remain.

【0028】図6のフローチャートで処理の流れを説明
する。メモリのサスペンド状態において、電源管理装置
(1−8)はバッテリ電圧を定期的に検出している(6
−1)。バッテリ電圧が残り少なくなってきたことを示
すL電圧以下になったことを検出すると(6−2)、バ
ッテリの交換やAC電源の接続を促すことを目的とする
警報を発する(6−3)。
The flow of the process will be described with reference to the flowchart of FIG. In the suspended state of the memory, the power management device (1-8) periodically detects the battery voltage (6).
-1). When it is detected that the battery voltage has become equal to or lower than the L voltage indicating that the remaining battery power has become low (6-2), an alarm is issued to promote replacement of the battery or connection of the AC power supply (6-3).

【0029】さらにバッテリ電圧がメモリへのサスペン
ド状態を維持することが困難になるほど低下したことを
示すC電圧以下になったことを検出すると(6−4)、
以前にL電圧を検出しているかどうかを調べる(6−
5)。L電圧を検出した後にC電圧を検出しているので
あれば、バッテリ電圧の低下原因が通常の電圧降下と判
断できるので、リジューム処理を行うだけの電力は残存
していると判別できる。しかしながら、L電圧を検出す
ることなしに、C電圧を検出しているのであれば、バッ
テリ電圧の低下原因がバッテリまたはAC電源が抜ける
などによる急激な電圧降下と考えられるので、リジュー
ム処理するだけの電力は残存していないと判別すること
が可能である。
Further, when it is detected that the battery voltage has fallen below the C voltage indicating that it is difficult to maintain the suspended state to the memory (6-4),
It is checked whether the L voltage has been detected before (see 6-
5). If the C voltage is detected after detecting the L voltage, the cause of the decrease in the battery voltage can be determined to be a normal voltage drop, so that it can be determined that the power for performing the resume processing remains. However, if the C voltage is detected without detecting the L voltage, the cause of the decrease in the battery voltage is considered to be a sudden voltage drop due to the disconnection of the battery or the AC power supply. It is possible to determine that no power remains.

【0030】上記のように、2つの電圧値を設定し、検
出することにより、リジューム処理を行うための電力が
残存しているかどうかを判断することが可能となる。
As described above, by setting and detecting two voltage values, it is possible to determine whether or not power for performing the resume process remains.

【0031】次に、リジューム処理を行う電力がバッテ
リに残存していると判断された場合において、リジュー
ム処理を実行し、二次記憶装置へのサスペンド処理を実
行する手順を図7のフローチャートを用いて説明する。
Next, when it is determined that the power for performing the resume processing is remaining in the battery, the procedure for executing the resume processing and executing the suspend processing to the secondary storage device will be described with reference to the flowchart of FIG. Will be explained.

【0032】メモリのサスペンド状態において、バッテ
リ電圧がサスペンド状態を維持することが困難になるほ
ど低下し、リジューム処理をするだけの電力がバッテリ
に残存していると判断された場合は(7−1、7−
2)、各装置の電源が再投入され(7−3)、サスペン
ド/リジューム装置(1−4)のリジューム処理部が起
動される(7−4)。
In the suspended state of the memory, if it is determined that the battery voltage decreases so that it becomes difficult to maintain the suspended state, and it is determined that the battery has enough power to perform the resume processing (7-1, 7-
2), the power of each device is turned on again (7-3), and the resume processing unit of the suspend / resume device (1-4) is started (7-4).

【0033】このとき、該電源管理装置(1−8)はリ
ジューム要因がバッテリの容量不足であることをCPU
(1−2)に通知する(7−5)。リジューム処理部
は、サスペンド処理実行時のオペレーティングシステム
(1−3)の継続実行に必要なデータがどの装置に退避
されているかを調べる(7−6) 該データがメモリ(1−6)に退避されているときは、
メモリ(1−6)上に退避したデータを復元する(7−
7)。該データが磁気ディスク(1−7)に退避されて
いるときは、磁気ディスク(1−7)上に退避したディ
スクを復元する(7−8)。データ復元後、リジューム
処理部はオペレーティングシステム(1−3)にリジュ
ーム処理が終了したことを通知する(7−9)。
At this time, the power management device (1-8) informs the CPU that the cause of the resume is insufficient battery capacity.
Notify (1-2) (7-5). The resume processing unit checks to which device data necessary for continuous execution of the operating system (1-3) at the time of executing the suspend process is saved (7-6). The data is saved to the memory (1-6). When it is
The data saved on the memory (1-6) is restored (7-
7). If the data is saved on the magnetic disk (1-7), the disk saved on the magnetic disk (1-7) is restored (7-8). After data restoration, the resume processing unit notifies the operating system (1-3) that the resume processing has been completed (7-9).

【0034】さらに、リジューム処理部はリジューム要
因が何であるかを判断する(7−10)。リジューム要
因がバッテリ電圧の不足によるものでないなら、処理が
中断されていたオペレーティングシステム(1−3)が
継続実行される(7−12)。リジューム要因がバッテ
リ電圧の不足であると判断された場合は、直ちに磁気デ
ィスク(1−7)へのサスペンド処理を実行する(7−
11)。
Further, the resume processing unit determines what the resume factor is (7-10). If the resume factor is not due to the shortage of the battery voltage, the operating system (1-3) whose processing has been interrupted is continuously executed (7-12). If it is determined that the resume factor is a shortage of the battery voltage, a suspend process for the magnetic disk (1-7) is immediately executed (7-
11).

【0035】図5にサスペンド処理の流れを示す。磁気
ディスク(1−7)へのサスペンド処理が発生すると
(5−1)、サスペンド/リジューム装置(1−4)の
サスペンド処理部が起動する(5−2)。起動したサス
ペンド処理部は、CPU(1−2)のレジスタの内容や
各装置の状態を示すデータなどの現在実行中のオペレー
ティングシステム(1−3)に必要なデータすべてを磁
気ディスク(1−7)に退避させる(5−3)。該デー
タの退避が完了すると、各装置の電源は切断され(5−
4)、サスペンド状態となる。
FIG. 5 shows the flow of the suspend process. When the suspend processing for the magnetic disk (1-7) occurs (5-1), the suspend processing unit of the suspend / resume device (1-4) starts (5-2). The activated suspend processing unit transfers all data necessary for the currently executing operating system (1-3), such as the contents of the registers of the CPU (1-2) and the data indicating the status of each device, to the magnetic disk (1-7). ) (5-3). When the saving of the data is completed, the power of each device is turned off (5-
4) The device enters a suspend state.

【0036】次に、メモリへのサスペンド処理を実行し
た後、バッテリ電圧がサスペンド状態を維持することが
困難になるほど低下し、リジューム処理するだけの電力
がバッテリに残存していない場合の処理を示す。
Next, a description will be given of a process performed when the battery voltage drops so that it becomes difficult to maintain the suspended state after the suspend process to the memory is performed, and the power for the resume process does not remain in the battery. .

【0037】メモリのサスペンド状態において、バッテ
リ電圧がサスペンド状態を維持することが困難になるほ
ど低下し、リジューム処理するだけの電力がバッテリに
残存していないと判別された場合(7−1、7−2)、
各装置に電源投入することなく、リジューム処理を禁止
する。この間は補助バッテリ(1−11)によってメモ
リ(1−6)には電源が供給されることになる。補助バ
ッテリ(1−11)によって電源が供給されている間を
利用して、バッテリ(1−9)の交換または、AC電源
(1−10)の接続チェックを行うことによりサスペン
ド状態を維持することができる。
When it is determined in the suspended state of the memory that the battery voltage has decreased so much that it is difficult to maintain the suspended state, and that the power for the resume processing is not remaining in the battery (7-1, 7-). 2),
Resume processing is prohibited without turning on the power to each device. During this time, power is supplied to the memory (1-6) by the auxiliary battery (1-11). Maintaining the suspended state by replacing the battery (1-9) or checking the connection of the AC power supply (1-10) while using power supplied by the auxiliary battery (1-11). Can be.

【0038】[0038]

【発明の効果】バッテリ電圧がメモリへのサスペンド状
態を維持することが困難になるほど低下したとき、リジ
ューム処理するだけの電力がバッテリに残存しているか
どうかを判別することが可能である。
As described above, when the battery voltage is reduced to such an extent that it is difficult to maintain the suspended state of the memory, it is possible to determine whether or not the power for the resume processing remains in the battery.

【0039】上記した判別によりリジューム処理するだ
けの電力がバッテリに残存していることを判別できた場
合、各装置への電源を投入し、リジューム処理を実行す
ることができる。さらに、バッテリ電圧不足のため電源
投入したことをCPUに通知する機能を電源管理装置が
備えているので、リジューム処理部がリジューム要因と
してバッテリの容量不足によるものであると検出する
と、データを保存するために電源を必要としない二次記
憶装置へのサスペンド処理を実行するので、バッテリ電
圧の低下に関係なくデータを保存することができる。
When it is determined from the above determination that the battery has enough power to perform the resume processing, the power to each device is turned on and the resume processing can be executed. Furthermore, since the power management device has a function of notifying the CPU that the power has been turned on due to insufficient battery voltage, the data is saved when the resume processing unit detects that the resume factor is due to insufficient battery capacity. Therefore, the suspend process for the secondary storage device that does not require a power supply is executed, so that data can be stored regardless of a decrease in battery voltage.

【0040】リジューム処理するだけの電力がバッテリ
に残存していないと判別できた場合、各装置への電源を
投入しないことにより、リジューム処理を禁止すること
ができる。よって、リジューム処理の途中でバッテリ電
圧が各装置の駆動に十分なレベルに達せず、リジューム
処理が途中で中断されるだけでなく、メモリ内のデータ
が破壊され、次回のリジューム処理を正常に実行するこ
とが不可能になることを防止することができる。
If it is determined that the power for the resume processing is not left in the battery, the resume processing can be prohibited by not turning on the power to each device. Therefore, during the resume process, the battery voltage does not reach a level sufficient to drive each device, and not only is the resume process interrupted, but also the data in the memory is destroyed and the next resume process is executed normally. Can be prevented from becoming impossible.

【0041】さらに、補助バッテリによってメモリに電
源が供給されている期間を利用して、バッテリを交換ま
たはAC電源を接続することにより、サスペンド状態を
維持し、バッテリ電圧の不足によるメモリのデータ破壊
を未然に防ぐことができる。
Further, by utilizing the period in which power is supplied to the memory by the auxiliary battery, by replacing the battery or connecting AC power, the suspended state is maintained, and data corruption in the memory due to insufficient battery voltage is prevented. It can be prevented beforehand.

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

【図1】本発明の一実施の形態に係る情報処理装置のブ
ロック図である。
FIG. 1 is a block diagram of an information processing apparatus according to an embodiment of the present invention.

【図2】メモリのサスペンド状態における通常時のバッ
テリの電圧降下を示した図である。
FIG. 2 is a diagram illustrating a voltage drop of a battery in a normal state in a suspended state of a memory;

【図3】メモリのサスペンド状態における異常時のバッ
テリの電圧降下を示した図である。
FIG. 3 is a diagram showing a voltage drop of a battery at the time of abnormality in a suspended state of a memory;

【図4】メモリのサスペンド処理の流れを示すフローチ
ャートである。
FIG. 4 is a flowchart showing a flow of a memory suspend process.

【図5】磁気ディスクへのサスペンド処理の流れを示す
フローチャートである。
FIG. 5 is a flowchart showing the flow of a suspend process for a magnetic disk.

【図6】メモリのサスペンド状態において、リジューム
処理する電力がバッテリに残存しているかどうかを判別
する処理の流れを示すフローチャートである。
FIG. 6 is a flowchart illustrating a flow of a process of determining whether or not power for a resume process remains in a battery in a memory suspended state.

【図7】リジューム処理の流れを示すフローチャートで
ある。
FIG. 7 is a flowchart illustrating a flow of a resume process.

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

1−1 情報処理装置 1−2 CPU 1−3 オペレーティングシステム 1−4 サスペンド/リジューム装置 1−5 入出力装置 1−6 メモリ 1−7 磁気ディスク 1−8 電源管理装置 1−9 バッテリ 1−10 AC電源 1−11 補助バッテリ 1-1 information processing device 1-2 CPU 1-3 operating system 1-4 suspend / resume device 1-5 input / output device 1-6 memory 1-7 magnetic disk 1-8 power management device 1-9 battery 1-10 AC power supply 1-11 Auxiliary battery

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 中央演算装置であるCPU、揮発性の記
憶装置であるメモリ、不揮発性の記憶装置である二次記
憶装置、データの入出力を行う入出力手段、各装置へ電
源を供給するバッテリを備えた電子機器において、 各装置への電源投入および切断を制御し、前記バッテリ
の電圧を検出することにより、前記CPUに現在のバッ
テリ電圧を通知することができる電源管理手段と、 実行中のプログラムを継続実行させるために必要となる
データを前記メモリに退避させ、前記メモリ以外の各装
置の電源を切断するメモリサスペンド手段と、 実行中のプログラムを継続実行させるために必要となる
データを前記二次記憶装置に退避させ、全ての各装置の
電源を切断する二次記憶装置サスペンド手段と、 前記メモリサスペンド手段によるメモリのサスペンド状
態において、再度電源を投入した際、前記メモリまたは
前記二次記憶装置に退避したデータを復元し、プログラ
ムを実行可能な状態にするリジューム手段とを備え、 前記電源管理手段は、バッテリ電圧がメモリのサスペン
ド状態を維持することが困難になるほど低下したことを
検知すると、該バッテリにおいて前記リジューム手段に
よるリジューム処理を行う電力が残存しているかどうか
を判断することを特徴とする電子機器。
1. A CPU serving as a central processing unit, a memory serving as a volatile storage device, a secondary storage device serving as a nonvolatile storage device, an input / output unit for inputting / outputting data, and supplying power to each device. In an electronic device equipped with a battery, a power management unit that controls turning on and off of each device and detects a voltage of the battery so as to notify the CPU of a current battery voltage. Memory suspending means for saving data necessary for continuing execution of the program in the memory, and turning off the power of each device other than the memory; and data necessary for continuing execution of the program being executed. A secondary storage device suspending unit that saves the data in the secondary storage device and turns off the power of all devices; In a suspend state, when the power is turned on again, the memory or the secondary storage device restores the data saved in the secondary storage device, and resumes the program in an executable state. An electronic apparatus characterized by detecting whether or not power for performing the resume processing by the resume means remains in the battery when detecting that the memory has been reduced to such an extent that it is difficult to maintain the suspended state of the memory.
【請求項2】 前記電源管理手段により、前記リジュー
ム手段によるリジューム処理を行う電力が前記バッテリ
に残存していると判断された場合において、各装置への
電源を投入してリジューム処理を実行後、前記二次記憶
装置サスペンド手段によるサスペンド処理を実行するこ
とを特徴とする前記請求項1記載の電子機器。
2. When the power management means determines that the power for performing the resume processing by the resume means remains in the battery, the power supply is turned on to execute the resume processing. 2. The electronic apparatus according to claim 1, wherein a suspend process is performed by said secondary storage device suspending means.
【請求項3】 前記バッテリの電圧が低下し、前記メモ
リ内のデータを保持する電力を供給できなくなった場合
に、該データを一定期間保持する電力を供給する補助バ
ッテリを備え、 前記電源管理手段により、前記リジューム手段によるリ
ジューム処理を行う電力が前記バッテリに残存していな
いと判断された場合において、 リジューム処理を禁止し、前記補助バッテリによりメモ
リ内のデータを保持することを特徴とする前記請求項1
記載の電子機器。
3. An auxiliary battery for supplying power for retaining data for a certain period when the voltage of the battery drops and power for retaining data in the memory cannot be supplied. When it is determined that the power for performing the resume processing by the resume means is not remaining in the battery, the resume processing is prohibited and the data in the memory is held by the auxiliary battery. Item 1
Electronic device as described.
JP8278479A 1996-10-22 1996-10-22 Electronic equipment Pending JPH10124198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8278479A JPH10124198A (en) 1996-10-22 1996-10-22 Electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8278479A JPH10124198A (en) 1996-10-22 1996-10-22 Electronic equipment

Publications (1)

Publication Number Publication Date
JPH10124198A true JPH10124198A (en) 1998-05-15

Family

ID=17597913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8278479A Pending JPH10124198A (en) 1996-10-22 1996-10-22 Electronic equipment

Country Status (1)

Country Link
JP (1) JPH10124198A (en)

Similar Documents

Publication Publication Date Title
JP2769082B2 (en) Power distribution management system for portable computers
US5809223A (en) Network hibernation system and a control method thereof
US20090119527A1 (en) Portable computer and method of controlling power saving mode of portable computer
JP3686232B2 (en) Peripheral device control method for computer system
JPH06332579A (en) Power supply system and device provided with said power supply system
JP2002163045A (en) Computer system, and method of controlling stand-by mode thereof
KR100281535B1 (en) Computer system and its control method
JP2007172314A (en) Battery-driven information processor, and network controller power supply control method in the processor
JP2006506617A (en) Low voltage detection system
JPH113151A (en) Hibernation control method for information processor and battery driven electronic equipment
JP3594505B2 (en) In-vehicle computer with car battery protection function
JPH0876872A (en) Computer device
KR100433532B1 (en) Apparatus and method for managing power
JP5598945B2 (en) Information processing system and control method thereof
JPH10124198A (en) Electronic equipment
JP2002041189A (en) Unintegruptible power supply device
JP2008079438A (en) Programmable controller and its data backup method
WO1999067703A1 (en) Automatic resumption of computer operation following power failure
JPH06175754A (en) Automatic storing mechanism for main contents of storage
JPH0628267A (en) Information processor
JP2004145584A (en) Disk array device
JPH08305469A (en) Information processor and suspend method for the same
JPH06259172A (en) Battery operation type information processor
JPH10161781A (en) Data disappearance preventing system for information processor
JPH04248608A (en) Programmable controller