JPH10161781A - Data disappearance preventing system for information processor - Google Patents

Data disappearance preventing system for information processor

Info

Publication number
JPH10161781A
JPH10161781A JP8319071A JP31907196A JPH10161781A JP H10161781 A JPH10161781 A JP H10161781A JP 8319071 A JP8319071 A JP 8319071A JP 31907196 A JP31907196 A JP 31907196A JP H10161781 A JPH10161781 A JP H10161781A
Authority
JP
Japan
Prior art keywords
information processing
battery
processing apparatus
storage device
level
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
JP8319071A
Other languages
Japanese (ja)
Inventor
Yukihide Inagaki
幸秀 稲垣
Katsuhiro Hiramatsu
克祥 平松
Hideki Kamimaki
秀樹 神牧
Koichi Kimura
光一 木村
Riri Ueda
理理 上田
Yosuke Konaka
陽介 小中
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP8319071A priority Critical patent/JPH10161781A/en
Publication of JPH10161781A publication Critical patent/JPH10161781A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an information processor in which data under execution do not disappear due to the deterioration of the residual capacity of a battery while driving for a long period by a battery. SOLUTION: At the point of the time of detecting a first level where a capacity sufficient for saving the operating state of the information processor 100 remains in the battery 113, the operating state of the information processor 100 is saved in an auxiliary storing means and at the point of the time of detecting a second level where a capacity smaller than that of the first level and sufficient for saving the operating state of the information processor 100 remains in the battery 113, the operating state of the information processor 100 is saved in a main storage device 102 and the power supply to the processor 100 is stopped while continuing power supply to the device 102.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は情報処理装置に関す
る。
[0001] The present invention relates to an information processing apparatus.

【0002】[0002]

【従来の技術】近年、ノート型パソコンに代表されるバ
ッテリ駆動式情報処理装置が普及している。バッテリ駆
動式情報処理装置は、商用電源等の外部電源が供給でき
ない状況でも使用できるため、携帯性に優れている。
2. Description of the Related Art In recent years, battery-driven information processing apparatuses represented by notebook personal computers have become widespread. The battery-powered information processing device can be used even in a situation where external power such as commercial power cannot be supplied, and is therefore excellent in portability.

【0003】情報処理装置では、電源オフ時に中断した
プログラム実行状態を保存しておき、電源オン時に厳密
に同じプログラム実行状態から実行を再開させる機能が
必要とされつつある。このようなプログラム中断再開機
能により、使用者は電源オン時にプログラムを最初から
起動し直す必要がなくなり、即座に作業を再開すること
ができる。その結果、情報処理装置を用いた作業の効率
が向上する。上記のようなプログラム中断再開機能に関
する従来方式の一つとして、例えば特開昭62−169
218号公報に記載のアプリケーション中断再開装置が
ある。
In information processing apparatuses, there is a need for a function of storing a program execution state interrupted when the power is turned off, and restarting the execution from exactly the same program execution state when the power is turned on. With such a program interruption / resumption function, the user does not need to restart the program from the beginning when the power is turned on, and can immediately resume work. As a result, the efficiency of work using the information processing device is improved. As one of the conventional methods relating to the above-described program interruption / resumption function, for example, Japanese Patent Application Laid-Open No. Sho 62-169
There is an application suspending / resuming device described in Japanese Patent Publication No. 218.

【0004】バッテリ駆動式情報処理装置で、駆動中に
バッテリ残量が低下し、本体の駆動を続ける余力が少な
くなった時点で上記のようなプログラム中断を自動的に
行う場合がある。この機能により、バッテリ残量が低下
した時にユーザが必要なデータを補助記憶装置に保存し
なくても、データを失わずに保持することができる。
[0004] In a battery-driven information processing apparatus, the above-mentioned program interruption may be automatically performed when the remaining battery power decreases during driving and the remaining power to continue driving the main body decreases. According to this function, even when the user does not save necessary data in the auxiliary storage device when the remaining battery power is low, the data can be retained without being lost.

【0005】[0005]

【発明が解決しようとする課題】ところで、上記従来プ
ログラム中断再開機能によりバッテリ残量低下時に自動
的にプログラムを中断する場合、中断した時のプログラ
ム実行状態を保存する方法に次の2種類がある。一つは
データを主に主記憶装置へ保存する方式であり、中央処
理装置の全レジスタ内容および周辺装置のI/Oレジス
タの内容を主記憶装置の特定領域に退避し、主記憶装置
への電源供給を持続するものである。もう一つはレジス
タ内容および元々主記憶装置に記憶されていた内容をす
べてハードディスク装置等の不揮発性記憶装置へ退避す
る方法である。
When the program is automatically interrupted when the remaining battery level is low by the conventional program interruption / resuming function, there are two methods for saving the program execution state at the time of interruption. . One is a method in which data is mainly stored in a main storage device, and the contents of all registers of a central processing unit and the contents of I / O registers of peripheral devices are saved in a specific area of the main storage device, and are stored in the main storage device. The power supply is maintained. The other is a method of saving all register contents and contents originally stored in the main storage device to a nonvolatile storage device such as a hard disk device.

【0006】後者のハードディスク装置へデータをバッ
クアップする方式では、ハードディスク装置の回転を停
止した省電力動作状態からプログラム中断処理に入る場
合に、バッテリ内にハードディスクの回転を再開し、レ
ジスタおよび主記憶装置の全内容をハードディスクに転
送するまでの数十秒間動作を続ける必要がある。したが
って、バッテリ残量が残り少なくなった際、これらの操
作を行うのに充分な残量があるうちにプログラムの中断
を開始しなければならない。バッテリにニッケル・カド
ミウム電池やニッケル・水素電池を使った場合、1セル
当たりの電圧が1.1ボルトより高い電圧で放電を中止
するといわゆる“メモリ効果”を起こし、バッテリ残量
が比較的残っているうちから電圧が低下してしまう。
“メモリ効果”が生じると、正常時に比べバッテリ電圧
が低く出るため、バッテリ残量の低下を早めに誤検出す
る原因となる。従って、ユーザがハードディスク装置へ
のデータバックアップによるプログラム中断再開を繰り
返しているうちに、見かけのバッテリ容量がさらに現象
し、バッテリによる駆動時間が短くなってしまう。
In the latter method of backing up data to the hard disk drive, when the program is interrupted from the power saving operation state in which the rotation of the hard disk drive is stopped, the rotation of the hard disk is restarted in the battery, and the register and the main storage device are restarted. It is necessary to continue operation for several tens of seconds before transferring the entire contents of the file to the hard disk. Therefore, when the remaining battery power becomes low, the interruption of the program must be started while the remaining power is sufficient for performing these operations. When a nickel-cadmium battery or a nickel-metal hydride battery is used as the battery, if the discharge per cell is stopped at a voltage higher than 1.1 volts, a so-called “memory effect” occurs, and a relatively large amount of battery power remains. The voltage drops during the operation.
When the "memory effect" occurs, the battery voltage is lower than in a normal state, which causes an erroneous early detection of a decrease in the remaining battery level. Therefore, while the user repeats the interruption and resumption of the program by backing up the data to the hard disk device, the apparent battery capacity is further reduced, and the driving time by the battery is shortened.

【0007】主記憶装置へデータをバックアップする方
式では、ハードディスク装置へのデータ転送が必要ない
ため、プログラム中断処理にかかる時間も短く、消費す
る電力も少ない。このため、情報処理装置が残り数秒間
動作するだけのバッテリ残量になったとき、プログラム
中断を開始すれば確実にプログラムの中断が完了でき
る。なお、半導体メモリを使った主記憶装置をバックア
ップするための電力は、情報処理装置全体を駆動するた
めの電力に比べ非常に小さいため、このようにバッテリ
残量が少ない状態でも主記憶装置に退避したデータを数
時間保持することは可能である。このように主記憶装置
にデータをバックアップする方式では、前述のハードデ
ィスク装置にデータをバックアップする方式に比べ、バ
ッテリで長い時間駆動することができる。ただし、主記
憶装置に充分な電力を供給できないほどバッテリ残量が
少なくなった場合、中断したプログラム状態が失われる
危険がある。ハードディスク装置にデータをバックアッ
プする方式同様、プログラム中断処理を行うタイミング
をまだ充分情報処理装置本体を駆動できるうちに行うこ
とにより、主記憶装置に退避したデータを長時間保持す
ることはできるが、前述したと同様にバッテリによる情
報処理装置の駆動時間が短くなってしまう。また、バッ
テリ残量の低下が進んだ場合にデータを失う危険性は根
本的に解決できない。
In the method of backing up data to the main storage device, since the data transfer to the hard disk device is not required, the time required for the program interruption processing is short, and the power consumption is small. For this reason, when the remaining battery capacity of the information processing apparatus is sufficient to operate for a few seconds, if the program interruption is started, the interruption of the program can be surely completed. Since the power for backing up the main storage device using the semiconductor memory is much smaller than the power for driving the entire information processing device, the main storage device is evacuated to the main storage device even when the remaining battery power is low. It is possible to hold the data obtained for several hours. As described above, the method of backing up data in the main storage device can be driven by a battery for a longer time than the method of backing up data in the hard disk device described above. However, if the remaining battery power becomes so low that sufficient power cannot be supplied to the main storage device, there is a risk that the interrupted program state will be lost. As with the method of backing up data to the hard disk drive, if the timing of executing the program interruption process is performed while the information processing device itself can be driven sufficiently, the data saved in the main storage device can be retained for a long time. Similarly, the driving time of the information processing apparatus by the battery is shortened. In addition, the danger of losing data when the remaining battery power is low cannot be fundamentally solved.

【0008】本発明の目的は、バッテリにより長時間駆
動しながら、バッテリ残量の低下によって実行中のデー
タが消失しない情報処理装置を提供するにある。
[0008] It is an object of the present invention to provide an information processing apparatus in which data being executed is not lost due to a decrease in the remaining battery power while being driven by a battery for a long time.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に、本発明の情報処理装置の第一の態様は、前記情報処
理装置の動作状態を前記補助記憶手段に退避する処理を
行うに十分な容量が前記バッテリに残存する第一のレベ
ルを検出した時点で前記情報処理装置の動作状態を前記
補助記憶手段に退避し、前記第一のレベルより少なくか
つ前記情報処理装置の動作状態を前記主記憶装置に退避
する処理を行うに十分な容量が前記バッテリに残存する
第二のレベルを検出した時点で前記情報処理装置の動作
状態を前記主記憶装置に退避するとともに前記主記憶装
置への電源供給は続けながら前記情報処理装置本体への
電源供給を停止するすることを特徴とする。
In order to solve the above-mentioned problems, a first aspect of the information processing apparatus of the present invention has a configuration in which the operation state of the information processing apparatus is saved to the auxiliary storage means. When the large capacity detects the first level remaining in the battery, the operation state of the information processing apparatus is saved to the auxiliary storage means, and the operation state of the information processing apparatus is less than the first level and the operation state of the information processing apparatus is reduced. At a point in time when the second level remaining in the battery is detected to have a capacity sufficient to perform the process of saving to the main storage device, the operation state of the information processing device is saved to the main storage device and the information is transferred to the main storage device. The power supply to the information processing apparatus main body is stopped while the power supply is continued.

【0010】本発明の情報処理装置の第二の態様は、前
記第一のレベルを検出した時点で前記情報処理装置の動
作状態を前記補助記憶手段に退避し、次いで前記情報処
理装置への電源供給を停止する第一のバックアップ動作
と、前記第一のレベルでは前記情報処理装置の動作状態
を退避せず、前記前記第二のレベルを検出した時点で前
記情報処理装置の動作状態を前記主記憶装置に退避する
とともに前記主記憶装置への電源供給は続けながら前記
情報処理装置本体への電源供給を停止する第二のバック
アップ動作とのどちらか一方のバックアップ動作を選択
的に行うことを特徴とする
According to a second aspect of the information processing apparatus of the present invention, the operation state of the information processing apparatus is saved in the auxiliary storage means when the first level is detected, and then the power supply to the information processing apparatus is A first backup operation for stopping supply, and the operation state of the information processing apparatus is not saved at the first level, and the operation state of the information processing apparatus is changed to the main state at the time when the second level is detected. Either one of a backup operation and a second backup operation of stopping power supply to the information processing apparatus main body while saving power to the storage device and continuing to supply power to the main storage device is selectively performed. To be

【0011】[0011]

【発明の実施の形態】以下に、本発明の第一実施形態に
ついて、図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.

【0012】図1および図6は第一実施形態であるバッ
テリ駆動式情報処理装置の概略ブロック図、図2は図1
中に示された不揮発性メモリの内部の説明図、図3は図
1に示す情報処理装置におけるプログラム中断処理を説
明するための状態遷移図、図4は図1に示す情報処理装
置におけるプログラム再開処理のフローチャート、図5
は図1に示す情報処理装置の主電源に用いる電池の放電
特性の一例を示すグラフである。
FIGS. 1 and 6 are schematic block diagrams of a battery-driven information processing apparatus according to a first embodiment, and FIG.
FIG. 3 is an explanatory view of the inside of the nonvolatile memory shown in FIG.
FIG. 4 is a state transition diagram for explaining a program interruption process in the information processing apparatus shown in FIG. 1, FIG. 4 is a flowchart of a program resuming process in the information processing apparatus shown in FIG.
3 is a graph showing an example of a discharge characteristic of a battery used as a main power supply of the information processing apparatus shown in FIG.

【0013】図1で、101はプログラム実行を行う中
央処理装置である。102はプログラムおよびデータを
一時的に保存するための主記憶装置である。103は読
み出し専用メモリであり、内部には電源投入直後に中央
処理装置101が実行するプログラムや、ハードウェア
に密着した各種処理ルーチンなど、いわゆるBIOSが
書き込まれている。104は表示制御装置であり、ここ
で生成した表示データを表示装置105で表示する。バ
ッテリ駆動式の情報処理装置100では液晶パネルを用
いた表示装置105が代表的である。107は電源制御
装置であり、情報処理装置100全体に安定した電源電
圧を供給する。電源制御装置107は商用電源112ま
たはバッテリ113から電源の供給を受け、たとえば
3.3ボルトや5.0ボルトといった安定した電圧を出
力する。バッテリ113は二次電池で構成してあり、充
電が可能である。電源制御装置107は充電回路を内蔵
しており、商用電源112を使用しているときにバッテ
リ113を充電する。108はリアルタイムクロック
(RTC)である。リアルタイムクロック108にはバ
ックアップ電池114と、バックアップ電池114によ
り常にデータを保持されている不揮発性メモリ109が
接続されている。情報処理装置100の電源が切れてい
るときでも、リアルタイムクロック108はバックアッ
プ電池114により動作し続け、実時間の日付および時
刻を計測する。不揮発性メモリ109は図2に示すよう
にリアルタイムクロック108の使用領域501とBI
OSの使用領域502から成っている。110は補助記
憶制御装置である。補助記憶装置110はハードディス
ク装置115やフロッピーディスク装置116のような
本質的に不揮発性の記憶装置に接続されている。111
は入力機器制御装置である。117は入力装置であり、
キーボードのほか、マウスやトラックパッド、スティッ
クポインタ等のポインティングデバイスが代表的であ
る。106はバスであり、中央処理装置101,主記憶
装置102,読み出し専用メモリ103,表示制御装置
104,電源制御装置107,リアルタイムクロック1
08,補助記憶制御装置110,入力機器制御装置11
1の間で制御およびデータの転送を行う。電源制御装置
117とリアルタイムクロック108は直接制御信号1
18でも接続されている。
In FIG. 1, reference numeral 101 denotes a central processing unit for executing a program. Reference numeral 102 denotes a main storage device for temporarily storing programs and data. Reference numeral 103 denotes a read-only memory, in which a so-called BIOS such as a program executed by the central processing unit 101 immediately after power-on and various processing routines closely attached to hardware are written. A display control device 104 displays the display data generated here on the display device 105. A display device 105 using a liquid crystal panel is representative of the battery-driven information processing device 100. A power supply control unit 107 supplies a stable power supply voltage to the entire information processing apparatus 100. Power supply control device 107 receives power supply from commercial power supply 112 or battery 113, and outputs a stable voltage of, for example, 3.3 volts or 5.0 volts. The battery 113 is composed of a secondary battery and can be charged. The power supply control device 107 has a built-in charging circuit, and charges the battery 113 when the commercial power supply 112 is used. 108 is a real-time clock (RTC). A backup battery 114 and a non-volatile memory 109 that always holds data by the backup battery 114 are connected to the real-time clock 108. Even when the power of the information processing apparatus 100 is turned off, the real-time clock 108 continues to operate with the backup battery 114 and measures the date and time in real time. As shown in FIG. 2, the non-volatile memory 109 has a use area 501 of the real-time clock 108 and a BI
An OS use area 502 is included. 110 is an auxiliary storage control device. The auxiliary storage device 110 is connected to an essentially nonvolatile storage device such as a hard disk device 115 or a floppy disk device 116. 111
Is an input device control device. 117 is an input device,
In addition to a keyboard, a pointing device such as a mouse, a trackpad, or a stick pointer is typical. Reference numeral 106 denotes a bus, which is a central processing unit 101, a main storage device 102, a read-only memory 103, a display control device 104, a power control device 107, and a real-time clock 1
08, auxiliary storage control device 110, input device control device 11
1 and control and data transfer. The power supply control device 117 and the real-time clock 108
18 is also connected.

【0014】次に、図2を用いて図1中に示す不揮発性
メモリ109の概要を説明する。不揮発性メモリ109
はバックアップ電池114により常にデータが保持でき
るため、リアルタイムクロック108の作業領域501
だけでなく、BIOS設定項目やプログラム中断処理の
状態フラグを一部に保存する領域502としても使用す
る。BIOS使用領域502内にあるSavedDis
kビット503とSavedRAMビットは504はプ
ログラム中断処理の状態を示すフラグビットである。
Next, an outline of the nonvolatile memory 109 shown in FIG. 1 will be described with reference to FIG. Non-volatile memory 109
Since the data can always be held by the backup battery 114, the work area 501 of the real-time clock 108
In addition, it is also used as an area 502 for partially storing the BIOS setting items and the status flag of the program interruption processing. SavedDis in the BIOS usage area 502
The k bit 503 and the SavedRAM bit 504 are flag bits indicating the state of the program interruption processing.

【0015】図3を用いて、図1に示す情報処理装置1
00を駆動しているときの電源部の状態遷移について説
明する。バッテリ113は一般に残容量の低下と共に電
圧が徐々に低下する。ここでは説明の簡略化のため、バ
ッテリ電圧によりバッテリ残量を検出する方式を使った
として、バッテリ残量を大きく(1)バッテリ駆動O
K、(2)バッテリ残量Low、(3)バッテリ残量V
eryLow、(4)バッテリDeadの四つに分類す
る。(1)バッテリ駆動OK状態はバッテリ113のエ
ネルギで情報処理装置100を今後も5分以上駆動を続
けられる状態を示す。(1)の状態からバッテリ113
の残量が低下し、ハードディスク装置115の動作を含
めて情報処理装置100を確実に5分以上駆動できる保
証がない程度なった時に(2)のバッテリ残量Low状
態に遷移する。さらに(2)からバッテリ113の残量
が低下し、特に電力を多く消費する処理を行わなくても
情報処理装置100を5秒程度しか駆動できない状態と
なったとき、(3)のバッテリ残量VeryLow状態
に遷移する。(4)のバッテリDead状態はバッテリ
113の容量をほぼ100%放電し尽し、主記憶装置1
02のデータ保持に必要な電源も供給できなくなった場
合またはこれ以上の放電を続けるとバッテリ113にダ
メージを与え容量特性を劣化させる恐れがある時点で遷
移する。
Referring to FIG. 3, information processing apparatus 1 shown in FIG.
The state transition of the power supply unit when driving 00 is described. In general, the voltage of the battery 113 gradually decreases as the remaining capacity decreases. Here, for simplicity of description, it is assumed that a method of detecting the remaining battery level based on the battery voltage is used.
K, (2) Battery remaining Low, (3) Battery remaining V
eryLow, and (4) battery Dead. (1) The battery drive OK state indicates a state in which the information processing apparatus 100 can continue to be driven for 5 minutes or more with the energy of the battery 113 in the future. From the state of (1), the battery 113
When the remaining capacity of the information processing device 100 including the operation of the hard disk device 115 decreases and there is no guarantee that the information processing device 100 can be reliably driven for 5 minutes or more, the state changes to the (2) battery remaining low state. Furthermore, when the remaining amount of the battery 113 decreases from (2) and the information processing apparatus 100 can be driven for only about 5 seconds without performing a process that consumes a large amount of power, the remaining battery amount of (3) The state transits to the VeryLow state. In the battery dead state (4), the capacity of the battery 113 is almost completely discharged and the main storage device 1
When the power supply required to hold the data No. 02 cannot be supplied, or when the discharge is further continued, the battery 113 is damaged and the transition is made at a time when the capacity characteristic may be deteriorated.

【0016】図3で状態201、202、203、20
4は商用電源112から電源が供給されている状態、状
態205、206、207、208は商用電源112が
接続されていないか接続されていても停電等の理由で電
源供給されていない状態である。状態201〜204の
ときは情報処理装置100の動作に必要な電源は商用電
源112から供給されるため、バッテリ113の容量は
減少しない。さらにバッテリ113が完全に充電されて
いなければ電源制御装置107によって充電が行われる
ため、バッテリ113の残量はむしろ増大する。逆に、
状態205〜208のときはバッテリ113のエネルギ
により情報処理装置100を駆動するため、時間ととも
にバッテリ113の残量は減少する。
In FIG. 3, states 201, 202, 203 and 20
Reference numeral 4 denotes a state in which power is supplied from the commercial power supply 112, and states 205, 206, 207, and 208 denote states in which the commercial power supply 112 is not connected or is not supplied even if it is connected due to a power failure or the like. . In the states 201 to 204, the power required for the operation of the information processing apparatus 100 is supplied from the commercial power supply 112, so that the capacity of the battery 113 does not decrease. Further, if the battery 113 is not completely charged, the battery is charged by the power supply control device 107, so that the remaining amount of the battery 113 is rather increased. vice versa,
In the states 205 to 208, the information processing apparatus 100 is driven by the energy of the battery 113, so that the remaining amount of the battery 113 decreases with time.

【0017】次に図3を用いて図1に示す情報処理装置
100のプログラム中断処理のタイミングについて説明
する。状態205で情報処理装置100を駆動中、バッ
テリ113の残量が低下して状態206に遷移する場
合、電源制御装置107は中央処理装置101に対し
て、その時点でのプログラム実行状態をハードディスク
装置115に退避するよう、割込み要求を出す。ここ
で、プログラム実行状態とは、中央処理装置101の全
レジスタ内容、表示制御装置104の全レジスタ内容お
よび表示データ、主記憶装置102の内容を含む、情報
処理装置100を厳密に同じ状態に復帰するために必要
なデータを差す。プログラム実行状態を退避するよう要
求を受け取った中央処理装置101は、割り込み処理ル
ーチンに従ってプログラム実行状態をハードディスク装
置115の予め定められた領域に退避する。プログラム
実行状態をハードディスク装置115へ正常に退避し終
った後、さらに割込み処理ルーチンに従い、不揮発性メ
モリ109に予め用意しておいたSavedDiskビ
ット領域503を1にセットする。ただし、この時点で
はプログラムを中断せず、割込み処理ルーチンを終了し
た後は今まで行っていたプログラムの実行を続ける。し
たがってハートディスク装置115へプログラム実行状
態を退避した後にユーザが必要なデータをファイルに保
存することも可能である。
Next, the timing of the program interruption processing of the information processing apparatus 100 shown in FIG. 1 will be described with reference to FIG. When the information processing apparatus 100 is being driven in the state 205 and the state of the battery 113 decreases and the state transits to the state 206, the power supply control unit 107 instructs the central processing unit 101 to execute the current program execution state on the hard disk drive. An interrupt request is issued to save to 115. Here, the program execution state is a state in which the information processing apparatus 100 is returned to exactly the same state, including all register contents of the central processing unit 101, all register contents and display data of the display control unit 104, and contents of the main storage device 102. The data needed to do so. The central processing unit 101 that has received the request to save the program execution state saves the program execution state to a predetermined area of the hard disk device 115 according to an interrupt processing routine. After the program execution state has been normally saved to the hard disk device 115, the Saved Disk bit area 503 prepared in the nonvolatile memory 109 is set to 1 according to an interrupt processing routine. However, at this time, the program is not interrupted, and after the interrupt processing routine is completed, the execution of the program which has been performed so far is continued. Therefore, the user can save necessary data in a file after saving the program execution state to the heart disk device 115.

【0018】バッテリ113の残量がさらに低下して状
態207に遷移する場合、電源制御装置107は中央処
理装置101に対して、その時点でのプログラム実行状
態を主記憶装置102に退避するよう、割込み要求を出
す。プログラム実行状態を退避するよう要求を受け取っ
た中央処理装置101は、割り込み処理ルーチンに従っ
てプログラム実行状態のうち、主記憶装置102の内容
以外のものを主記憶装置102の予め定められた領域に
退避する。必要なデータを主記憶装置102へ正常に退
避し終った後、さらに割込み処理ルーチンに従い、不揮
発性メモリ109に予め用意しておいたSavedRA
Mビット504領域を1にセットする。次いで中央処理
装置102は電源制御装置107に対して一連のプログ
ラム実行状態の退避処理が終了したことを報告する。電
源制御装置107は中央処理装置102からの報告を確
認すると、主記憶装置102以外への電源供給を遮断す
る。このようにして、情報処理装置100はいわゆるサ
スペンド状態に入る。
When the state of charge of the battery 113 further decreases and transitions to the state 207, the power supply control unit 107 instructs the central processing unit 101 to save the program execution state at that time to the main storage device 102. Issues an interrupt request. Upon receiving the request to save the program execution state, the central processing unit 101 saves the program execution states other than the contents of the main storage device 102 to a predetermined area of the main storage device 102 according to the interrupt processing routine. . After the necessary data has been normally saved to the main storage device 102, the saved RA previously prepared in the nonvolatile memory 109 is further followed in accordance with an interrupt processing routine.
The M bit 504 area is set to 1. Next, the central processing unit 102 reports to the power supply control unit 107 that a series of processing for saving the program execution state has been completed. When confirming the report from the central processing unit 102, the power supply control unit 107 cuts off the power supply to components other than the main storage device 102. Thus, the information processing apparatus 100 enters a so-called suspend state.

【0019】状態207からさらにバッテリ113の残
量が低下して状態208に遷移する場合、電源制御装置
107は主記憶装置102への電源供給を遮断し、Sa
vedRAMビット504を0にクリアする。このと
き、情報処理装置100のシステムバス106には電源
が供給されていないため、電源制御装置107は制御信
号118を経由し、リアルタイムクロック108を介し
て不揮発性メモリ109へアクセスする。さらに電源制
御装置107自身の動作を停止し、バッテリ113から
の放電電流をほぼ完全に止める。商用電源112からの
電源供給が行われた(状態204へ遷移した)ときに、
再び電源制御装置107が情報処理装置100内の他ブ
ロックへ電源を供給し始める。
When the state of the battery 113 is further reduced from the state 207 and the state transits to the state 208, the power supply control unit 107 cuts off the power supply to the main storage device 102 and Sa
Clear the vedRAM bit 504 to 0. At this time, since power is not supplied to the system bus 106 of the information processing apparatus 100, the power control apparatus 107 accesses the nonvolatile memory 109 via the control signal 118 and the real-time clock 108. Further, the operation of the power supply control device 107 itself is stopped, and the discharge current from the battery 113 is almost completely stopped. When power is supplied from the commercial power supply 112 (transition to the state 204),
The power control device 107 starts supplying power to the other blocks in the information processing device 100 again.

【0020】商用電源112から電源が供給されている
場合、情報処理装置100が駆動状態にあるかオフ状態
にあるかにかかわらず、電源制御装置107はバッテリ
113を充電する。したがって、時間とともにバッテリ
113の残存容量は増大し、状態204から203、2
02、201へと遷移する。状態202から状態201
へ遷移するとき、情報処理装置100がプログラム実行
状態にあれば、電源制御装置107は中央処理装置10
1に対してSavedDiskビットのクリア要求の割
込み要求をだす。中央処理装置101はこの割込み処理
の中で、SavedDiskビット503をクリアす
る。
When power is supplied from the commercial power supply 112, the power supply control unit 107 charges the battery 113 regardless of whether the information processing apparatus 100 is in a driving state or in an off state. Therefore, the remaining capacity of the battery 113 increases with time, and
02, 201. From state 202 to state 201
When the information processing apparatus 100 is in the program execution state when the process proceeds to
For 1, an interrupt request is issued to clear the SavedDisk bit. The central processing unit 101 clears the SavedDisk bit 503 during this interrupt processing.

【0021】状態204、203、202、201およ
びバッテリ113への充電が充分に行われた状態205
では、状態206から状態207への遷移時にサスペン
ドした情報処理装置100本体をユーザの操作により復
帰させることができる。具体的にはユーザが電源制御装
置107に対してプログラム再開処理(レジューム)を
指示すると、電源制御装置107は上記レジューム可能
な電源状態にあるかどうか判定し、レジューム可能であ
れば図4の流れ図に従ってレジューム処理を開始する。
レジューム処理は、まず電源処理装置107が情報処理
装置100全体に電源を供給し始めることにより開始す
る。中央処理装置101はまず始めに読み出し専用メモ
リ103に格納されているプログラムを実行し始める。
このプログラムに従って、まず不揮発性メモリ109の
SavedRAMビット504をチェックする(ステッ
プ302)。このビットが1にセットされていれば、こ
の直前まで主記憶装置102にはバックアップ用に電力
が供給されていたことを意味するため、主記憶装置10
2に退避されていた各種レジスタ値をもとのレジスタに
戻すことでレジューム処理を行う。レジュームに先立っ
てSavedRAMビット504を0にクリアし(ステ
ップ303)、次いで主記憶装置102内のレジスタ値
を表示制御装置104等の対応するレジスタに正確に戻
す。最後に中央処理装置101のレジスタ内容を主記憶
装置102の退避先から戻すと、中央処理装置101は
状態206から207への遷移時に行ったサスペンド処
理の直前の状態に戻り、主記憶装置102に保持されて
いたプログラムおよびデータを参照しながら動作する
(ステップ304)。
States 204, 203, 202 and 201 and state 205 when the battery 113 is sufficiently charged
In this case, the main body of the information processing apparatus 100 suspended at the time of transition from the state 206 to the state 207 can be returned by a user operation. Specifically, when the user instructs the power control device 107 to perform a program resuming process (resume), the power control device 107 determines whether or not the power supply is in the resumable power state. To start the resume process.
The resume process is started when the power supply processing device 107 starts supplying power to the entire information processing device 100. First, the central processing unit 101 starts executing the program stored in the read-only memory 103.
In accordance with this program, first, the SavedRAM bit 504 of the nonvolatile memory 109 is checked (Step 302). If this bit is set to 1, it means that power has been supplied to the main storage device 102 for backup until immediately before this bit.
Resume processing is performed by returning the various register values saved in 2 to the original registers. Prior to resuming, SavedRAM bit 504 is cleared to 0 (step 303), and then the register value in main memory 102 is accurately returned to the corresponding register, such as display controller 104. Finally, when the contents of the register of the central processing unit 101 are returned from the save destination of the main storage device 102, the central processing unit 101 returns to the state immediately before the suspend processing performed at the time of transition from the state 206 to the state 207, and returns to the main storage device 102. It operates while referring to the stored programs and data (step 304).

【0022】図4ではこのレジューム処理が正常に終了
したか否かの判断(ステップ305)が示されている
が、正常にレジューム処理が終了した場合はこの条件判
定を行う余地はなく、中央処理装置101はあたかもプ
ログラム実行の中断が無かったかのように透過的にプロ
グラム実行を再開する。主記憶装置102の内容の一部
が破壊されていた等の理由でレジューム処理が正常に終
了しなかった場合は、条件判定302でSavedRA
Mビット504が0と判定された場合と同じ、ステップ
306の条件判定処理へ進む。条件判定306では不揮
発性メモリ109内のSavedDiskビット503
をチェックする。このビットが1にセットされていれ
ば、ハードディスク装置の中に前述のプログラム実行状
態が保存されていることを意味するため、ハードディス
ク装置115に退避されていた各種レジスタ値および主
記憶装置102内容を復帰させることによりレジューム
処理を行う。ただし、ハードディスク装置115にこれ
らのデータが退避されてから中央処理装置101のプロ
グラム実行が停止/中断するまでの間にユーザが必要な
データをディスク装置のユーザ領域に保存していた可能
性がある。この場合、ハードディスク装置115内のプ
ログラム実行状態はユーザにとって最新データでは無い
ため、必ずしもプログラムの忠実な再開を望まないこと
も考えられる。
FIG. 4 shows a judgment (step 305) as to whether or not the resume processing has been completed normally. However, if the resume processing has been normally completed, there is no room for making this condition judgment, and the central processing is not performed. The apparatus 101 transparently restarts the program execution as if the program execution was not interrupted. If the resume processing is not completed normally due to, for example, a part of the contents of the main storage device 102 being destroyed, the SavedRA
The process proceeds to the condition determination process of step 306, which is the same as when the M bit 504 is determined to be 0. In the condition determination 306, the SavedDisk bit 503 in the nonvolatile memory 109
Check. If this bit is set to 1, it means that the above-described program execution state is stored in the hard disk device, and therefore, the various register values and the contents of the main storage device 102 saved in the hard disk device 115 are stored. Resume processing is performed by returning. However, there is a possibility that the user has stored necessary data in the user area of the disk device between the time when these data are saved in the hard disk device 115 and the time when the program execution of the central processing unit 101 is stopped / interrupted. . In this case, since the program execution state in the hard disk device 115 is not the latest data for the user, it is possible that the user does not always want to faithfully restart the program.

【0023】そこで中央処理装置101は基本ソフトウ
ェア(OS)やアプリケーションソフトウェアをディス
ク装置115、116から新規に読み込み直す(コール
ド・ブート)か、ハードディスク装置115に退避され
たプログラム実行状態を復帰してレジュームするかをユ
ーザに対して問い合わせる(ステップ307)。ユーザ
がレジュームを希望する場合はステップ303、304
と類似の要領でまずSavedDiskビット503を
0にクリアし(ステップ309)、次いでプログラム実
行再開処理を行う(ステップ310)。ステップ307
でユーザがレジュームを希望しなかったり、ステップ3
06でSavedDiskビット503が0にクリアさ
れていることが判明した場合、中央処理装置101は基
本ソフトウェア(OS)の新規読み込みから始まる通常
の起動処理を行う(ステップ312)。
Then, the central processing unit 101 reloads the basic software (OS) or application software from the disk devices 115 and 116 (cold boot) or restores the program execution state saved in the hard disk device 115 to resume. An inquiry is made to the user as to whether or not to do so (step 307). If the user wants to resume, steps 303 and 304
First, the SavedDisk bit 503 is cleared to 0 (step 309), and then the program execution restart processing is performed (step 310). Step 307
The user does not want to resume,
If it is determined in 06 that the SavedDisk bit 503 has been cleared to 0, the central processing unit 101 performs a normal startup process starting from a new reading of the basic software (OS) (step 312).

【0024】図5はノートパソコン用のバッテリとして
従来から多く使われているニッケル・カドミウム電池や
ニッケル水素電池の放電特性を示したものである。図5
で、縦軸はバッテリ113を構成する電池一本毎の電圧
であり、横軸は電池に大きなダメージを与えずにとり出
すことのできる全容量に対し、放電した容量の比をパー
セント表示してある。ニッケル・カドミウム電池やニッ
ケル水素電池は80パーセント以上の容量を放電するま
で電圧の低下が顕著には現れないという特徴がある。こ
のため電圧の監視により残容量を検出することは困難で
あるが、放電容量が100パーセントに近づくにしたが
い電圧低下が顕著になり、残量の正確な検出ができるよ
うになる。例えば電池セル1本当たりの電圧が0.9ボ
ルトを閾値VDとし、この値を下回ったときにバッテリ
113からの放電を完全に止める。情報処理装置100
をサスペンドさせるバッテリVeryLow状態207
の上限閾値VVLは、この状態から閾値VDに達するま
での間404で、情報処理装置100が例えば5秒間駆
動できるように設定する。前述した主記憶装置102へ
プログラム実行状態を退避する処理は標準的な情報処理
装置の場合3秒程度で完了するため、上記のような閾値
設定でも確実にプログラム中断処理を行うことができ
る。また閾値VVLをできるだけ低く設定することによ
り、情報処理装置100を通常に駆動するためのエネル
ギ403を多く確保することができる。
FIG. 5 shows the discharge characteristics of a nickel-cadmium battery or a nickel-metal hydride battery which has been widely used as a battery for a notebook personal computer. FIG.
The vertical axis represents the voltage of each battery constituting the battery 113, and the horizontal axis represents the ratio of the discharged capacity to the total capacity that can be taken out without causing significant damage to the battery. . Nickel-cadmium batteries and nickel-metal hydride batteries are characterized in that the voltage does not decrease significantly until the battery discharges 80% or more of its capacity. For this reason, it is difficult to detect the remaining capacity by monitoring the voltage. However, as the discharge capacity approaches 100%, the voltage drop becomes remarkable, and the remaining capacity can be accurately detected. For example, the voltage per battery cell is set to 0.9 V as the threshold VD, and when the voltage falls below this value, the discharge from the battery 113 is completely stopped. Information processing device 100
VeryLow state 207 for suspending
The upper limit threshold VVL is set so that the information processing apparatus 100 can be driven for, for example, 5 seconds from this state until the threshold VD is reached. Since the process of saving the program execution state to the main storage device 102 is completed in about three seconds in the case of a standard information processing device, the program interruption process can be reliably performed even with the above-described threshold setting. Also, by setting the threshold value VVL as low as possible, it is possible to secure a large amount of energy 403 for driving the information processing apparatus 100 normally.

【0025】各種レジスタ内容および主記憶装置102
の全内容をハードディスク装置115に確実に退避する
処理は、必要な消費電力の面でも不確定な要素が多く、
ある程度バッテリ残量に余裕のある時点で実行しておく
必要がある。したがって、プログラム実行状態をハード
ディスク装置115に退避するバッテリ残量Low状態
の上限閾値VLは、図5の放電曲線が急激に低下しはじ
める、例えば1セル当たり1.1ボルトに設定する。こ
の閾値VL付近でプログラム実行状態を一旦ハードディ
スク装置115に退避した後も、402の間は情報処理
装置100を駆動することは可能であり、ユーザはこの
間に必要なデータをディスク装置115、116に保存
したり、商用電源112を急遽接続するなど、情報処理
装置100を使い続けられる。ここではニッケル・カド
ミウム電池またはニッケル水素電池を例に説明したが、
グラファイト系電極を用いたリチウムイオン二次電池も
同様の放電特性を示す。コークス系電極を用いたリチウ
ムイオン二次電池や鉛畜電池等は図5に対して放電に伴
う電圧の低下が直線的で、残容量の少ない領域での急激
な電圧低下は見られないが、図3の状態206から状態
207への遷移条件に対し状態205から状態206へ
の遷移条件の検出がより困難であることは同様である。
したがって、本実施形態は使用する電池の化学的性質に
依存するものではない。
Various register contents and main memory 102
The process of surely saving the entire contents of the hard disk drive 115 to the hard disk drive 115 has many uncertain factors in terms of required power consumption.
It must be executed at a point when there is some margin in the remaining battery power. Therefore, the upper limit threshold value VL of the battery remaining low state for saving the program execution state to the hard disk device 115 is set to, for example, 1.1 volts per cell, at which the discharge curve in FIG. Even after the program execution state is temporarily saved to the hard disk device 115 near the threshold value VL, the information processing device 100 can be driven during 402 and the user can transfer necessary data to the disk devices 115 and 116 during this time. The information processing apparatus 100 can be continuously used, for example, when the information processing apparatus 100 is saved or when the commercial power supply 112 is suddenly connected. Here, a nickel-cadmium battery or a nickel-metal hydride battery has been described as an example,
A lithium ion secondary battery using a graphite-based electrode also shows similar discharge characteristics. For lithium ion secondary batteries and lead-acid batteries using coke-based electrodes, the voltage drop due to discharge is linear with respect to FIG. 5, and no sharp voltage drop is seen in the region where the remaining capacity is small. Similarly to the transition condition from the state 206 to the state 207 in FIG. 3, it is more difficult to detect the transition condition from the state 205 to the state 206.
Therefore, this embodiment does not depend on the chemistry of the battery used.

【0026】図1では説明の簡略化のために、それぞれ
の機能ブロックを分離して示した。パーソナルコンピュ
ータのような情報処理装置では、図1に示すブロック図
に比べ、図6のように幾つかのブロックが集積回路に纏
め上げられた構造をしている場合が多い。システムコン
トローラ601はバス106の制御機能、主記憶装置1
02の制御機能を持ち、これらと中央処理装置101と
を相互接続する。システムI/O部602は、図1の補
助記憶制御装置110、入力機器制御装置111、リア
ルタイムクロック108、不揮発性メモリ109に相当
する部分を一つに集積した集積回路である。プログラム
中断処理の状態フラグSavedDiskビット503
およびSavedRAMビット504は図1のように独
立した不揮発性メモリ109内にある必要はなく、情報
処理装置100の駆動用バッテリ113とは別のバック
アップ電池114によりバックアップ可能な、例えば6
02のような回路中でメモリまたはレジスタの形態で存
在すればよい。
FIG. 1 shows each functional block separately for simplification of the description. An information processing device such as a personal computer often has a structure in which some blocks are integrated into an integrated circuit as shown in FIG. 6 as compared with the block diagram shown in FIG. The system controller 601 controls the bus 106 and controls the main storage device 1
02, and interconnect these with the central processing unit 101. The system I / O unit 602 is an integrated circuit in which parts corresponding to the auxiliary storage control device 110, the input device control device 111, the real-time clock 108, and the nonvolatile memory 109 in FIG. Status flag SavedDisk bit 503 for program interruption processing
The SavedRAM bit 504 does not need to be in the independent nonvolatile memory 109 as shown in FIG. 1 and can be backed up by a backup battery 114 different from the drive battery 113 of the information processing apparatus 100.
02 may exist in the form of a memory or a register in a circuit such as 02.

【0027】本実施形態のプログラム中断再開方式で
は、バッテリ113の残量がほとんど情報処理装置10
0を駆動できない程度に低下するまでバッテリ駆動を続
けることができる。さらにバッテリ113の残量が減少
しても、主記憶装置102に退避されたプログラム実行
状態の少し以前のプログラム実行状態がハードディスク
装置115に退避されているため、確実にプログラム実
行再開ができる。
In the program interruption / resumption method of the present embodiment, the remaining capacity of the battery 113 is almost zero.
The battery drive can be continued until the value of 0 is reduced to such a level that 0 cannot be driven. Further, even if the remaining capacity of the battery 113 decreases, the program execution state immediately before the program execution state saved in the main storage device 102 is saved in the hard disk device 115, so that the program execution can be reliably restarted.

【0028】次に、本発明の第二実施形態について、図
面を参照して説明する。
Next, a second embodiment of the present invention will be described with reference to the drawings.

【0029】図7は第二実施形態であるバッテリ駆動式
情報処理装置のプログラム中断処理状態フラグの概略
図、図8および図9は第二実施形態であるバッテリ駆動
式情報処理装置のプログラム中断処理を説明するための
状態遷移図である。本第二実施形態で、バッテリ駆動式
情報処理装置本体の概略ブロックは第一実施形態と同一
である。
FIG. 7 is a schematic diagram of a program interruption processing state flag of the battery-driven information processing apparatus according to the second embodiment, and FIGS. 8 and 9 are program interruption processing of the battery-driven information processing apparatus according to the second embodiment. FIG. 9 is a state transition diagram for explaining the following. In the second embodiment, the schematic blocks of the battery-driven information processing apparatus main body are the same as those in the first embodiment.

【0030】図7では、プログラム実行状態データを主
記憶装置102に退避するか、ハードディスク装置11
5に退避するかを選択的に示すSavetoDiskE
Nビット505が存在することが第一実施形態のプログ
ラム中断処理状態フラグの構造と異なっている。読み出
し専用メモリ103または補助記憶装置115、116
のいずれかに格納されている専用プログラムが中央処理
装置101で実行されたときにユーザに対してプログラ
ム実行状態データを主記憶装置102に退避するか、ハ
ードディスク装置115に退避するかを問い合わせ、結
果をSavetoDiskENビット505に書き込
む。電源制御装置107は、SavetoDiskEN
ビット505が1にセットされている場合は図8に従っ
て電源状態の状態遷移を行い、0にクリアされている場
合は図9に従って状態遷移を行う。
In FIG. 7, the program execution state data is saved in the main storage device 102 or the hard disk drive 11
SaveoDiskE selectively indicating whether to save to 5
The existence of the N bit 505 is different from the structure of the program interruption processing state flag of the first embodiment. Read-only memory 103 or auxiliary storage devices 115 and 116
When the dedicated program stored in any of the above is executed by the central processing unit 101, the user is inquired whether to save the program execution state data to the main storage device 102 or the hard disk device 115. To the SaveoDiskEN bit 505. The power supply control device 107 uses the
When the bit 505 is set to 1, the state transition of the power supply state is performed according to FIG. 8, and when it is cleared to 0, the state transition is performed according to FIG.

【0031】図8を用いてSavetoDiskENビ
ット505が1の場合の動作を説明する。状態205で
情報処理装置100を駆動中、バッテリ113の残量が
低下して状態206に遷移する場合、第一実施形態と同
様に電源制御装置107からの割込み要求により中央処
理装置101はこの時点でのプログラム実行状態をハー
ドディスク装置115の予め定められた領域に退避す
る。プログラム実行状態をハードディスク装置115へ
正常に退避し終った後、さらに割込み処理ルーチンに従
い、SavedDiskビット領域503を1にセット
する。次いで中央処理装置102は電源制御装置107
に対して一連のプログラム実行状態の退避処理が終了し
たことを報告する。電源制御装置107は中央処理装置
102からの報告を確認すると、情報処理装置100へ
の電源供給すべてを遮断する。状態202から状態20
1へ遷移するとき、情報処理装置100がプログラム実
行状態にあれば、電源制御装置107は中央処理装置1
01に対してSavedDiskビットのクリア要求の
割込み要求をだす。中央処理装置101はこの割込み処
理の中で、SavedDiskビット503をクリアす
る。
Referring to FIG. 8, the operation when the SaveDisk bit 505 is 1 will be described. When the information processing apparatus 100 is driven in the state 205 and the state of the battery 113 decreases and the state transits to the state 206, the central processing unit 101 receives the interrupt request from the power supply control unit 107 at this time similarly to the first embodiment. Is saved in a predetermined area of the hard disk drive 115. After the program execution state has been normally saved to the hard disk device 115, the Saved Disk bit area 503 is set to 1 according to an interrupt processing routine. Next, the central processing unit 102 operates as a power supply control unit 107.
To report that a series of evacuation processing of the program execution state has been completed. When confirming the report from the central processing unit 102, the power supply control unit 107 shuts off all power supply to the information processing device 100. From state 202 to state 20
1, if the information processing device 100 is in the program execution state, the power control device 107
For 01, an interrupt request is issued for clearing the SavedDisk bit. The central processing unit 101 clears the SavedDisk bit 503 during this interrupt processing.

【0032】図9を用いてSavetoDiskENビ
ット505が0の場合の動作を説明する。状態205で
情報処理装置100を駆動中、バッテリ113の残量が
低下して状態207に遷移する場合、電源制御装置10
7は中央処理装置101に対して、その時点でのプログ
ラム実行状態を主記憶装置102に退避するよう、割込
み要求を出す。プログラム実行状態を退避するよう要求
を受け取った中央処理装置101は、割り込み処理ルー
チンに従ってプログラム実行状態のうち、主記憶装置1
02の内容以外のものを主記憶装置102の予め定めら
れた領域に退避する。必要なデータを主記憶装置102
へ正常に退避し終った後、さらに割込み処理ルーチンに
従い、不揮発性メモリ109に予め用意しておいたSa
vedRAMビット504領域を1にセットする。次い
で中央処理装置102は電源制御装置107に対して一
連のプログラム実行状態の退避処理が終了したことを報
告する。電源制御装置107は中央処理装置102から
の報告を確認すると、主記憶装置102以外への電源供
給を遮断する。このようにして、情報処理装置100は
サスペンド状態に入る。
The operation in the case where the SaveoDiskEN bit 505 is 0 will be described with reference to FIG. When the information processing apparatus 100 is driven in the state 205 and the state of the battery 113 decreases and the state transits to the state 207, the power supply control apparatus 10
7 issues an interrupt request to the central processing unit 101 to save the current program execution state to the main storage device 102. The central processing unit 101, which has received the request to save the program execution state, executes one of the main storage 1
The contents other than the contents of 02 are saved in a predetermined area of the main storage device 102. Necessary data is stored in the main storage device 102
After the evacuation has been completed normally, further according to the interrupt processing routine, the Sa prepared in the nonvolatile memory 109 in advance is used.
The vedRAM bit 504 area is set to 1. Next, the central processing unit 102 reports to the power supply control unit 107 that a series of processing for saving the program execution state has been completed. When confirming the report from the central processing unit 102, the power supply control unit 107 cuts off the power supply to components other than the main storage device 102. Thus, the information processing device 100 enters the suspend state.

【0033】状態207からさらにバッテリ113の残
量が低下して状態208に遷移する場合、電源制御装置
107は主記憶装置102への電源供給を遮断し、Sa
vedRAMビット504を0にクリアする。このと
き、情報処理装置100のシステムバス106には電源
が供給されていないため、電源制御装置107は制御信
号118を経由し、リアルタイムクロック108を介し
て不揮発性メモリ109へアクセスする。さらに電源制
御装置107自身の動作を停止し、バッテリ113から
の放電電流をほぼ完全に止める。商用電源112からの
電源供給が行われた(状態204へ遷移した)ときに、
再び電源制御装置107が情報処理装置100内の他ブ
ロックへ電源を供給し始める。
When the state of the battery 113 is further reduced from the state 207 and the state transits to the state 208, the power supply control device 107 cuts off the power supply to the main storage device 102 and Sa
Clear the vedRAM bit 504 to 0. At this time, since power is not supplied to the system bus 106 of the information processing apparatus 100, the power control apparatus 107 accesses the nonvolatile memory 109 via the control signal 118 and the real-time clock 108. Further, the operation of the power supply control device 107 itself is stopped, and the discharge current from the battery 113 is almost completely stopped. When power is supplied from the commercial power supply 112 (transition to the state 204),
The power control device 107 starts supplying power to the other blocks in the information processing device 100 again.

【0034】状態201〜204、205においてユー
ザが情報処理装置100の電源を入れた場合の起動/プ
ログラム実行再開手順は第一実施形態の場合と同じであ
る。
In the states 201 to 204 and 205, the startup / program execution restart procedure when the user turns on the information processing apparatus 100 is the same as in the first embodiment.

【0035】本実施形態のプログラム実行中断再開方式
では、ユーザがプログラム実行状態を主記憶装置102
に退避したい場合はバッテリ113の残量がほとんど情
報処理装置100を駆動できない程度に低下するまでバ
ッテリ駆動を続けることができる。ただしバッテリ11
3の残量ががさらに減少し、状態208になる前に商用
電源112からの供給を行わなければプログラム実行を
中断した直前のデータが失われる恐れがある。また、ユ
ーザがプログラム実行状態をハードディスク装置115
に退避したい場合はまだバッテリ113にあと5分程度
は情報処理装置100を駆動できる残量があるうちに情
報処理装置100本体の電源遮断処理を行い、バッテリ
113による駆動時間を短くせざるを得ない。その反
面、さらにバッテリ113の残量が減少してもプログラ
ム実行状態を失うことなく、確実なプログラム実行再開
ができる。
In the program execution suspension / resumption method according to this embodiment, the user executes the program execution
If it is desired to save the battery, the battery drive can be continued until the remaining amount of the battery 113 decreases to such a level that the information processing apparatus 100 cannot be driven. However, battery 11
If the power supply from the commercial power supply 112 is not performed before the state 208 changes to the state 208, the data immediately before the interruption of the program execution may be lost. Further, the user can change the program execution state to the hard disk drive 115.
If the user wants to save the data, the power of the information processing apparatus 100 must be cut off while the battery 113 still has a remaining capacity of about 5 minutes to drive the information processing apparatus 100, and the driving time of the battery 113 must be shortened. Absent. On the other hand, even if the remaining amount of the battery 113 decreases, the program execution state can be surely restarted without losing the program execution state.

【0036】[0036]

【発明の効果】本発明によれば、バッテリ駆動式の情報
処理装置において、異なる二つの閾値を設けてバッテリ
残量を監視し、第一のレベルに達したときにプログラム
実行状態をハードディスクに退避し、第二のレベルに達
したときにその時点でのプログラム実行状態を主記憶装
置に退避してサスペンドすることにより、処理中のデー
タを消失することなく、バッテリのエネルギをほとんど
すべて使い切ることができる。
According to the present invention, in a battery-driven information processing apparatus, two different threshold values are provided to monitor the remaining battery level, and when the first level is reached, the program execution state is saved to the hard disk. When the program reaches the second level, the program execution state at that time is saved in the main storage device and suspended, so that almost all of the battery energy can be used up without losing the data being processed. it can.

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

【図1】第一実施形態であるバッテリ駆動式情報処理装
置のブロック図。
FIG. 1 is a block diagram of a battery-driven information processing apparatus according to a first embodiment.

【図2】図1中に示された不揮発性メモリの内部の説明
図。
FIG. 2 is an explanatory diagram showing the inside of the nonvolatile memory shown in FIG. 1;

【図3】図1に示す情報処理装置におけるプログラム中
断処理の説明図。
FIG. 3 is an explanatory diagram of a program interruption process in the information processing apparatus shown in FIG. 1;

【図4】図4は図1に示す情報処理装置におけるプログ
ラム再開処理のフローチャート。
FIG. 4 is a flowchart of a program restart process in the information processing apparatus shown in FIG. 1;

【図5】図1に示す情報処理装置の主電源に用いる電池
の放電特性の一例を示すグラフ。
5 is a graph showing an example of a discharge characteristic of a battery used as a main power supply of the information processing device shown in FIG.

【図6】第一実施形態であるバッテリ駆動式情報処理装
置の他のブロック図。
FIG. 6 is another block diagram of the battery-driven information processing apparatus according to the first embodiment.

【図7】第二実施形態であるバッテリ駆動式情報処理装
置のプログラム中断処理状態フラグの説明図。
FIG. 7 is an explanatory diagram of a program interruption processing state flag of the battery-driven information processing apparatus according to the second embodiment.

【図8】第二実施形態であるバッテリ駆動式情報処理装
置のプログラム中断処理を説明するための状態遷移図。
FIG. 8 is a state transition diagram for explaining a program interruption process of the battery-driven information processing apparatus according to the second embodiment.

【図9】第二実施形態であるバッテリ駆動式情報処理装
置のプログラム中断処理を説明するための状態遷移図。
FIG. 9 is a state transition diagram for explaining a program interruption process of the battery-driven information processing apparatus according to the second embodiment.

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

100…情報処理装置本体、 102…主記憶装置、 107…電源制御装置、 109…不揮発性メモリ、 113…バッテリ、 115…ハードディスク装置。 100: Information processing device main body, 102: Main storage device, 107: Power control device, 109: Non-volatile memory, 113: Battery, 115: Hard disk device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 木村 光一 神奈川県川崎市麻生区王禅寺1099番地株式 会社日立製作所システム開発研究所内 (72)発明者 上田 理理 愛知県尾張旭市晴丘町池上1番地株式会社 日立製作所オフィスシステム事業部内 (72)発明者 小中 陽介 千葉県習志野市東習志野7丁目1番1号日 立京葉エンジニアリング株式会社内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Koichi Kimura 1099 Ozenji Temple, Aso-ku, Kawasaki City, Kanagawa Prefecture Inside System Development Laboratory, Hitachi, Ltd. (72) Inventor Yosuke Konaka 7-1-1 Higashi Narashino, Narashino City, Chiba Prefecture Inside Tachibana Keiyo Engineering Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】本体を駆動するためのバッテリを内蔵した
情報処理装置と、前記バッテリのエネルギを前記情報処
理装置と前記情報処理装置に内蔵された主記憶装置とに
個別に電源供給可能な電源制御部と、前記主記憶装置よ
りも大きな容量の前記バッテリに依存せずに記憶を保持
できる補助記憶手段を備え、前記電源制御部は、前記バ
ッテリの残容量を監視し、前記情報処理装置の動作状態
を前記補助記憶手段に退避する処理を行うに十分な容量
が前記バッテリに残存する第一のレベルと、前記第一の
レベルより少なく前記情報処理装置の動作状態を前記主
記憶装置に退避する処理を行うに十分な容量が前記バッ
テリに残存する第二のレベルとを検出する機能と、前記
情報処理装置のプログラム中断再開イベント発行手段と
を有し、前記第一のレベルを検出した時点で前記情報処
理装置の動作状態を前記補助記憶手段に退避し、前記第
二のレベルを検出した時点で前記情報処理装置の動作状
態を前記主記憶装置に退避するとともに前記主記憶装置
への電源供給は続けながら前記情報処理装置本体への電
源供給を停止することを特徴とする情報処理装置。
An information processing device having a battery for driving a main body, and a power supply capable of individually supplying power of the battery to the information processing device and a main storage device built in the information processing device. A control unit, and auxiliary storage means capable of holding storage without depending on the battery having a larger capacity than the main storage device, wherein the power control unit monitors a remaining capacity of the battery, A first level in which sufficient capacity remains in the battery for performing a process of saving an operation state to the auxiliary storage means, and an operation state of the information processing apparatus is saved to the main storage device less than the first level. A function of detecting a second level remaining in the battery with a capacity sufficient to perform the process of performing the first process, and a program interruption / resuming event issuing unit of the information processing apparatus; When the level is detected, the operation state of the information processing apparatus is saved to the auxiliary storage unit. When the second level is detected, the operation state of the information processing apparatus is saved to the main storage device. An information processing apparatus, wherein the power supply to the information processing apparatus main body is stopped while the power supply to the storage device is continued.
【請求項2】本体を駆動するためのバッテリを内蔵した
情報処理装置と、前記バッテリのエネルギを前記情報処
理装置本体と前記情報処理装置に内蔵された主記憶装置
とに個別に電源供給可能な電源制御部と、少なくとも前
記主記憶装置よりも大きな容量を有した前記バッテリに
依存せずに記憶を保持できる補助記憶手段と、前記バッ
テリに依存せずに記憶を保持できる1ビット以上のユー
ザが変更可能な小容量記憶手段を備え、前記電源制御部
は、前記バッテリの残容量を監視し、前記情報処理装置
の動作状態を前記補助記憶手段に退避する処理を行うに
十分な容量が前記バッテリに残存する第一のレベルと、
前記第一のレベルより少なくかつ前記情報処理装置の動
作状態を前記主記憶装置に退避する処理を行うに十分な
容量が前記バッテリに残存する第二のレベルとを検出す
る機能と、前記情報処理装置のプログラム中断再開イベ
ント発行手段とを有し、前記小容量記憶手段の値によ
り、前記第一のレベルを検出した時点で前記情報処理装
置の動作状態を前記補助記憶手段に退避し、次いで前記
情報処理装置への電源供給を停止する第一のバックアッ
プ動作と、前記第一のレベルでは前記情報処理装置の動
作状態を退避せず、前記前記第二のレベルを検出した時
点で前記情報処理装置の動作状態を前記主記憶装置に退
避するとともに前記主記憶装置への電源供給は続けなが
ら前記情報処理装置本体への電源供給を停止する第二の
バックアップ動作とのどちらか一方のバックアップ動作
を選択的に行うことを特徴とする情報処理装置。
2. An information processing apparatus having a built-in battery for driving a main body, and power of the battery can be individually supplied to the information processing apparatus main body and a main storage device built in the information processing apparatus. A power supply control unit, an auxiliary storage unit that can hold the storage independently of the battery having at least a capacity larger than the main storage device, and a user of 1 bit or more that can hold the storage independently of the battery. The power control unit monitors the remaining capacity of the battery, and has a sufficient capacity to perform a process of saving the operation state of the information processing apparatus to the auxiliary storage means. The first level remaining in
A function of detecting a second level lower than the first level and having a capacity remaining in the battery sufficient to perform a process of saving the operation state of the information processing device to the main storage device; Means for issuing a program interruption / resuming event of the apparatus, wherein the operation state of the information processing apparatus is saved to the auxiliary storage means at the time when the first level is detected, based on the value of the small capacity storage means, A first backup operation for stopping power supply to the information processing apparatus, and the information processing apparatus does not save the operation state of the information processing apparatus at the first level and detects the second level at the time of detecting the second level. A second backup operation of stopping the power supply to the information processing device main body while saving the operation state of the main storage device and continuing the power supply to the main storage device. The information processing apparatus according to claim selectively be performed either backup operation.
JP8319071A 1996-11-29 1996-11-29 Data disappearance preventing system for information processor Pending JPH10161781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8319071A JPH10161781A (en) 1996-11-29 1996-11-29 Data disappearance preventing system for information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8319071A JPH10161781A (en) 1996-11-29 1996-11-29 Data disappearance preventing system for information processor

Publications (1)

Publication Number Publication Date
JPH10161781A true JPH10161781A (en) 1998-06-19

Family

ID=18106182

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8319071A Pending JPH10161781A (en) 1996-11-29 1996-11-29 Data disappearance preventing system for information processor

Country Status (1)

Country Link
JP (1) JPH10161781A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002297459A (en) * 2001-03-29 2002-10-11 Denso Corp Control apparatus for vehicle with backup function
JP2008097713A (en) * 2006-10-12 2008-04-24 Oki Electric Ind Co Ltd Data reproducing device, data reproducing method and semiconductor device
US8255705B2 (en) * 2006-04-27 2012-08-28 Spectra Logic Corp. Encryption moniker in medium auxiliary memory
JP2013007974A (en) * 2011-06-27 2013-01-10 Toshiba Corp Electronic apparatus, control method of electronic apparatus, and control program of electronic apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002297459A (en) * 2001-03-29 2002-10-11 Denso Corp Control apparatus for vehicle with backup function
JP4655398B2 (en) * 2001-03-29 2011-03-23 株式会社デンソー Vehicle control device with backup function
US8255705B2 (en) * 2006-04-27 2012-08-28 Spectra Logic Corp. Encryption moniker in medium auxiliary memory
JP2008097713A (en) * 2006-10-12 2008-04-24 Oki Electric Ind Co Ltd Data reproducing device, data reproducing method and semiconductor device
JP4570603B2 (en) * 2006-10-12 2010-10-27 Okiセミコンダクタ株式会社 DATA REPRODUCING DEVICE, DATA REPRODUCING METHOD, AND SEMICONDUCTOR DEVICE
JP2013007974A (en) * 2011-06-27 2013-01-10 Toshiba Corp Electronic apparatus, control method of electronic apparatus, and control program of electronic apparatus

Similar Documents

Publication Publication Date Title
US6601181B1 (en) Uninterruptible power supply apparatus and method
EP0819999B1 (en) Dynamic hibernation time in a computer system
JP3213208B2 (en) Information processing apparatus and control method thereof
US6336161B1 (en) Computer configuration system and method with state and restoration from non-volatile semiconductor memory
US6546472B2 (en) Fast suspend to disk
EP0419909B1 (en) Computer system with control unit for controlling power supply to storage unit
JP3974510B2 (en) Computer apparatus, power management method, and program
EP1306758A2 (en) Computer system having resume function
JP3686232B2 (en) Peripheral device control method for computer system
JP2002163045A (en) Computer system, and method of controlling stand-by mode thereof
JPH11161385A (en) Computer system and its system state control method
JP2004152304A (en) System and method for holding state data of personal computer in standby state at ac power supply failure
JPH1097353A (en) Computer system and resume processing method applied to the same system
KR20090044872A (en) Portable computer and method for controlling power saving mode thereof
US20030070065A1 (en) Suspending to nonvolatile storage
EP2843502B1 (en) Information processing device, information processing method, and program
JPH113151A (en) Hibernation control method for information processor and battery driven electronic equipment
US6408397B1 (en) Using RTC wake-up to enable recovery from power failures
CN101149637A (en) Computer system electricity-saving state power management method
JPH10161781A (en) Data disappearance preventing system for information processor
US20040123057A1 (en) Method for backing up data
JPH10268981A (en) Device and method for cutting power supply to computer system
JP2002041189A (en) Unintegruptible power supply device
JPH0651858A (en) Program interrupting/restarting system
JP3133492B2 (en) Information processing device