JPH0619587A - Information processor - Google Patents

Information processor

Info

Publication number
JPH0619587A
JPH0619587A JP4196296A JP19629692A JPH0619587A JP H0619587 A JPH0619587 A JP H0619587A JP 4196296 A JP4196296 A JP 4196296A JP 19629692 A JP19629692 A JP 19629692A JP H0619587 A JPH0619587 A JP H0619587A
Authority
JP
Japan
Prior art keywords
power
sequence
battery
information processing
processing apparatus
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
JP4196296A
Other languages
Japanese (ja)
Inventor
Hirokimi Shimizu
裕公 清水
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP4196296A priority Critical patent/JPH0619587A/en
Publication of JPH0619587A publication Critical patent/JPH0619587A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To provide an information processor which can be used again even when a misoperation such as the detachment of a battery during an operation occurs. CONSTITUTION:A CPU 1 detects whether or not a power source is interrupted only while an open processing is operated to the file of an outside memory 6 without going through a normal power source-off sequence by considering that an access to the outside memory is not performed when the open processing is not operated to the logical file on the outside memory.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電池で駆動される情報
処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing device driven by a battery.

【0002】[0002]

【従来の技術】近年、半導体の集積度が向上し、その価
格が低下してきており、外部記憶装置として半導体メモ
リが使われることが多くなってきている。従来、電池で
駆動される小型情報処理装置においても、外部記憶状態
として半導体メモリが多く使用されている。この種の小
型情報処理装置では、外部記憶装置をアクセス中に電源
の電池が取り外された場合、従前の半導体メモリ以外の
磁気記憶媒体では、正確なアクセスが行えない等、アク
セス中の番地にだけ影響を与えていたが、半導体メモリ
を使用した記憶媒体では、悪影響を与える番地は特定さ
れず、論理的に区別されている他の領域の内容を破壊す
る可能性も生じてきている。
2. Description of the Related Art In recent years, the degree of integration of semiconductors has been improved and the price thereof has been reduced, and semiconductor memories are increasingly used as external storage devices. Conventionally, a semiconductor memory is often used as an external storage state even in a small information processing device driven by a battery. In this type of small-sized information processing device, if the battery of the power supply is removed while accessing the external storage device, the magnetic storage medium other than the conventional semiconductor memory cannot perform accurate access. However, in the storage medium using the semiconductor memory, the address having the adverse effect is not specified, and there is a possibility that the contents of other logically distinct areas may be destroyed.

【0003】この場合は、当然、記憶媒体にはプログラ
ムも格納されており、破壊されたプログラムがロードさ
れ、実行された時は暴走等が発生し、他の論理領域まで
さらに破壊してしまう可能性があった。また、外部記憶
装置上だけではなく本体内のメモリもバックアップして
おき、その中にデータやプログラムを保存して動作する
方式の小型情報処理装置もあり、この様な装置の場合、
メモリ上に記憶してある内容の破壊はより大きな影響を
システムに与える事になる。
In this case, of course, the program is also stored in the storage medium, and when the destroyed program is loaded and executed, a runaway or the like may occur and further destroy other logical areas. There was a nature. There is also a small information processing device that backs up not only the external storage device but also the memory inside the main unit, and saves data and programs in it to operate, and in the case of such a device,
Destruction of the contents stored in the memory will have a greater impact on the system.

【0004】これを防ぐため従来は、電源オン処理の中
で電源オフシーケンス異常を検出するフラグをセットし
ておき、正常な電源オフシーケンスを経由した時にこの
フラグをクリアする処理を行う。そして、電源オン時
に、このフラグをチェックし異常なシーケンスで電源が
オフされたとみなした時は、システムを起動せず、それ
まで保存していたデータに対して最小限の影響を与える
だけでプロテクトする方法(従来例1)をとっていた。
In order to prevent this, conventionally, a flag for detecting a power-off sequence abnormality is set in the power-on process, and a process for clearing this flag is performed when a normal power-off sequence is passed. When the power is turned on, if this flag is checked and it is considered that the power has been turned off in an abnormal sequence, the system is not started and the data stored until then is protected with a minimal effect. The method (conventional example 1) was adopted.

【0005】また、メカ的に電源スイッチと連動して電
池が外せない様な構成をとるものもあった(従来例
2)。
Further, there has been a structure in which the battery cannot be removed mechanically by interlocking with the power switch (conventional example 2).

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来例を用いた装置では、誤って電池が取り外された場
合、すべてのファイルがプロテクトされてしまうので、
その装置は以後使用不能となっていた。
However, in the device using the above-mentioned conventional example, if the battery is accidentally removed, all the files will be protected.
The device has since been disabled.

【0007】また、近年、情報処理装置は、小型化、低
価格化が進み、外交員が業務として外出先で装置を多用
する等、頻繁に使用される様になり、それに伴って誤操
作も増加し、上述したように使用不能となる場合が多く
なり、業務に支障をきたしたり、システム管理者の負担
が大きくなったりする問題があった。また、上記従来例
2の装置では、上述したメカ構造を付加する必要があ
り、このメカ構造が装置の小型化に対する支障となって
いるばかりか、電池交換の操作を煩雑化していた。
Further, in recent years, information processing apparatuses have become smaller and cheaper, and have become frequently used by diplomats who frequently use the apparatus while on the go as a business operation. However, as described above, there are many cases where it becomes unusable, which causes problems such as hindering work and increasing the burden on the system administrator. Further, in the device of the above-mentioned conventional example 2, it is necessary to add the above-mentioned mechanical structure, and this mechanical structure not only hinders the downsizing of the device, but also complicates the battery replacement operation.

【0008】本発明は上記従来の問題点に鑑み、動作中
に電池が取り外される等の誤操作があった場合でも、再
び使用が可能であり、しかも小型化が可能で電池交換す
る操作も容易な情報処理装置を提供することを目的とす
る。
In view of the above-mentioned conventional problems, the present invention can be used again even if there is an erroneous operation such as the removal of the battery during operation, and further, the size can be reduced and the battery can be easily replaced. An object is to provide an information processing device.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、第1の発明は、電源オン処理により電池で発生する
電源で駆動され、メモリのファイルに対して情報の読み
/書きを行う情報処理装置において、前記ファイルに対
するオープンされている区間のみ、正常な電源オフシー
ケンスを経由しないで前記電源が遮断したかを検出する
検出手段と、正常な電源オフシーケンスを経由しないで
電源の遮断が行われたことを前記検出手段が検出した場
合に前記電源オン処理をプロテクトするプロテクト手段
とを備えたものである。
In order to achieve the above object, a first invention is an information driven by a power source generated by a battery by a power-on process and reading / writing information from / to a file in a memory. In the processing device, only in an open section for the file, a detection unit that detects whether the power supply is cut off without going through a normal power-off sequence, and a power-off is performed without going through a normal power-off sequence. And a protection means for protecting the power-on process when the detection means detects the breakage.

【0010】第2の発明は、電源オン処理により電池で
発生する電源で駆動されてメモリに対して情報の読み/
書きを行い、正常な電源オフシーケンスを経由して前記
電源の遮断を行う電源オフ処理により該駆動がオフされ
る情報処理装置において、前記電源オン処理時に所定値
をインクリメントし、前記電源オフ処理時にディクリメ
ントする計数手段と、前記計数手段の計数結果を保存す
る保存手段とを備えたものである。
A second aspect of the present invention is to read / read information from / to a memory driven by a power source generated by a battery by power-on processing.
In an information processing device in which the drive is turned off by a power-off process of performing writing and shutting off the power supply through a normal power-off sequence, a predetermined value is incremented at the power-on process and at the power-off process. The counting means for decrementing and the storing means for storing the counting result of the counting means are provided.

【0011】第3の発明は、電源オン処理により電池で
発生する電源で駆動され、キー入力を行ってメモリに対
して情報の読み/書きを行う情報処理装置において、前
記キー入力の待機中を除き、正常な電源オフシーケンス
を経由しないで前記電源が遮断したかを検出する検出手
段と、正常な電源オフシーケンスを経由しないで電源の
遮断が行われたことを前記検出手段が検出した場合に前
記電源オン処理をプロテクトするプロテクト手段とを備
えたものである。
A third aspect of the present invention is an information processing apparatus which is driven by a power source generated by a battery by a power-on process and performs key input to read / write information from / in a memory, while waiting for the key input. Except when the detection means detects whether the power supply is cut off without going through a normal power-off sequence and when the detection means detects that the power supply is cut off without going through a normal power-off sequence. And a protection means for protecting the power-on process.

【0012】[0012]

【作用】上記構成により第1の発明によれば、外部メモ
リ上の論理的なファイルがオープンされていなければ、
外部メモリはアクセスされない点を考慮して、検出手段
は、正常な電源オフシーケンスを経由しないで前記電源
が遮断したかの検出を、外部メモリのファイルに対する
オープンされている間に限定して行う。従って、この間
以外に操作者が誤って動作中に電池を引き抜いても、次
回の電源オン処理でプロテクトされず、システムが起動
される。これにより、システムが起動できなくなる区間
が短くなる。
With the above arrangement, according to the first aspect of the invention, if the logical file on the external memory is not opened,
In consideration of the fact that the external memory is not accessed, the detection means detects whether or not the power supply is cut off without going through a normal power-off sequence, only while the external memory file is open. Therefore, even if the operator accidentally pulls out the battery during the operation other than this period, the system is started without being protected in the next power-on process. This shortens the period in which the system cannot be started.

【0013】第2の発明によれば、計数手段は、所定値
を電源オン処理時にインクリメントし、電源オフ処理時
にディクリメントするので、この間に正常な電源オフシ
ーケンスである電源オフ処理を経由しないで電源の遮断
が行われると、ディクリメントされないため、その回数
が保存手段に記憶される。
According to the second aspect of the invention, the counting means increments the predetermined value during the power-on process and decrements it during the power-off process, so that the normal power-off sequence of the power-off process is not performed during this period. When the power is turned off, the number of times is stored in the storage means because the number is not decremented.

【0014】第3の発明によれば、操作者からのキー入
力を待機している間は、メモリアクセスが発生しない点
を考慮し、この間は電池が引き抜かれ電源が遮断されて
も、検出手段はそれを検出しないので、次回の電源オン
処理でプロテクトされない。これにより、システムが起
動できなくなる区間が短くなる。
According to the third invention, considering that the memory access does not occur while waiting for the key input from the operator, even if the battery is pulled out and the power is cut off during this time, the detecting means is provided. Does not detect it, so it will not be protected in the next power-on process. This shortens the period in which the system cannot be started.

【0015】[0015]

【実施例】図1は、本発明の第1の実施例に係る電池で
駆動される小型情報処理装置の概略構成図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a schematic configuration diagram of a battery-powered compact information processing apparatus according to a first embodiment of the present invention.

【0016】図中、1はこの情報処理装置の制御を司る
CPUであり、このCPU1には、装置のシステムプロ
グラムが格納されるシステムROM2と、アプリケーシ
ョンプログラム等がロードされ実行されるメインメモリ
3と、メインメモリ3の内容をバックアップする副電池
4と、表示装置であるLCD5と、外部記憶装置として
の外部メモリ6と、外部メモリ6の内容をバックアップ
する副電池7と、入力装置であるキーボード8と、装置
の電源を制御する電源制御回路9と、装置の電源である
主電池10と、電源のオン/オフを指示する電源スイッ
チ11とが接続されている。
In the figure, reference numeral 1 denotes a CPU which controls the information processing apparatus. The CPU 1 includes a system ROM 2 in which a system program of the apparatus is stored, and a main memory 3 in which application programs and the like are loaded and executed. , A sub battery 4 for backing up the contents of the main memory 3, an LCD 5 as a display device, an external memory 6 as an external storage device, a sub battery 7 for backing up the contents of the external memory 6, and a keyboard 8 as an input device. A power supply control circuit 9 that controls the power supply of the device, a main battery 10 that is the power supply of the device, and a power switch 11 that instructs on / off of the power supply are connected.

【0017】本実施例の小型情報処理装置の主電池10
は、充電式電池であり、電池がなくなって来た時、容易
に交換できる構造になっている。
Main battery 10 of the compact information processing apparatus of this embodiment
Is a rechargeable battery and has a structure that can be easily replaced when the battery is exhausted.

【0018】また、電源スイッチ11は、実際に電源を
切断したり、接続したりするのではなく、電源コントロ
ール回路9に電源のオンを指示したり、CPU1に対し
て割込みを発生して電源オフが指示されたことを通知す
るスイッチである。
The power switch 11 does not actually turn off or connect the power, but instructs the power control circuit 9 to turn on the power or interrupts the CPU 1 to turn off the power. Is a switch for notifying that an instruction has been given.

【0019】次に、図2〜図5のフローチャートを用い
て、上記構成の小型情報処理装置の電源オフシーケンス
の異常検出処理を説明する。図2は、本実施例の電源オ
ン処理のフローチャートである。図2のステップS51
では、電源オン直後に電池10の出力電圧が不安定であ
るので安定するのを待つ。安定後、電池10の出力電圧
が以後動作を継続するのに必要なだけ出力されているか
否かをチェックする(ステップS52)。必要な電圧が
出力されていなければ、ステップS57へ進み、電源コ
ントロール回路9に電源オフを指示してシステムの電源
を切る。
Next, the abnormality detection processing of the power-off sequence of the small-sized information processing apparatus having the above configuration will be described with reference to the flow charts of FIGS. FIG. 2 is a flowchart of the power-on process of this embodiment. Step S51 of FIG.
Then, immediately after the power is turned on, the output voltage of the battery 10 is unstable, so that it waits for the output voltage to stabilize. After stabilization, it is checked whether or not the output voltage of the battery 10 is output as much as necessary to continue the operation thereafter (step S52). If the required voltage is not output, the process proceeds to step S57, the power supply control circuit 9 is instructed to turn off the power, and the system is powered off.

【0020】前記ステップS52のチェックで出力電圧
が充分であると判断された場合は処理を続行し、ステッ
プS53で各デバイスの初期化処理を行う。続くステッ
プS54では前回の電源オフが正しいシーケンスを通っ
て行われたか否かをチェックし、正しく行われていなけ
ればステップS55へ行き、エラーメッセージを表示す
る。そしてステップS57でシステムの電源をオフして
以後その装置が使えない様にプロテクトする。前記ステ
ップS54で正しく行われていたと判断された場合は、
ステップS56でシステム領域を初期化してアプリケー
ションプログラムを起動する。ここで、前記ステップS
54における電源オフシーケンスが正しく行われたか否
かのチェックは、オフシーケンス異常フラグを設け、本
来の電源オフ処理の最後でそのフラグをクリアする事で
行う。
If the output voltage is judged to be sufficient in the check in step S52, the process is continued, and in step S53, each device is initialized. In a succeeding step S54, it is checked whether or not the previous power-off is performed through a correct sequence, and if it is not correctly performed, the process proceeds to step S55 and an error message is displayed. Then, in step S57, the power of the system is turned off to protect the device so that it cannot be used thereafter. If it is determined in step S54 that the process was performed correctly,
In step S56, the system area is initialized and the application program is activated. Here, the step S
Whether or not the power-off sequence in 54 is correctly performed is provided by providing an off-sequence abnormality flag and clearing the flag at the end of the original power-off process.

【0021】図3は、本実施例の情報処理装置の電源オ
フ処理のフローチャートである。まず、ステップS61
でシステム領域のクローズ処理を行い、続くステップS
62で各デバイスのターミネート処理を行う。さらに、
ステップS63で電源オフシーケンス異常フラグをクリ
アし、最後に電源コントロール回路9に電源オフを指示
する。これにより、このフローを通って正しく電源がオ
フされた場合は、電源オフシーケンス異常フラグがクリ
アされており、次の電源オン処理はプロテクトされずに
アプリケーションプログラムが起動される。
FIG. 3 is a flowchart of the power-off process of the information processing apparatus of this embodiment. First, step S61
To close the system area, and then continue with step S
At 62, termination processing of each device is performed. further,
In step S63, the power off sequence abnormality flag is cleared, and finally the power control circuit 9 is instructed to turn off the power. As a result, when the power is properly turned off through this flow, the power off sequence abnormality flag is cleared, and the application program is started without being protected in the next power on processing.

【0022】図4は、外部メモリ6上の論理的なファイ
ルをオープンする処理を示すフローチャートである。ま
ず、ステップS71で指定されたファイルをサーチし、
そのファイルが見つからなければ(ステップS72)、
エラーコードをセットしてリターンする。見つかったな
ら、ステップS73でオフシーケンス異常フラグをセッ
トし、次いでステップS74でシステム領域内のオープ
ン表にオープン中のファイルを登録する。そして、以
後、アクセス処理を可能にするためのオープン処理を行
う(ステップS75)。
FIG. 4 is a flow chart showing a process of opening a logical file on the external memory 6. First, search the file specified in step S71,
If the file is not found (step S72),
Set an error code and return. If found, the off-sequence abnormality flag is set in step S73, and then the opened file is registered in the open table in the system area in step S74. Then, thereafter, the open process for enabling the access process is performed (step S75).

【0023】図5は、図4のフローでオープンされたフ
ァイルをクローズする処理を示すフローチャートであ
る。
FIG. 5 is a flow chart showing the processing for closing the file opened in the flow of FIG.

【0024】まず、指定されたファイルがオープン表に
登録されているか否かをサーチする(ステップS81,
S82)。オープン表に登録されていない場合は、エラ
ーコードをセットしてリターンする。登録されている場
合は、ステップS83でオープン表から指定されたファ
イルを削除し、以後、そのファイルに対してアクセスで
きない様にするクローズ処理を行う(ステップS8
4)。そして、ステップS85でオフシーケンス異常フ
ラグをクリアする。
First, it is searched whether the specified file is registered in the open table (step S81,
S82). If it is not registered in the open table, set an error code and return. If the file is registered, the specified file is deleted from the open table in step S83, and a closing process is performed to make the file inaccessible thereafter (step S8).
4). Then, in step S85, the off-sequence abnormality flag is cleared.

【0025】以上のように、外部メモリ6上のファイル
をオープンして外部メモリ6に対してアクセス可能な状
態の間のみ、電源オフシーケンス異常フラグがセットさ
れ、この間に図3の正常な電源オフ処理を通らずに、い
きなり電池10を引きぬく等してシステムの電源が断た
れた時に、電源オフシーケンス異常フラグがクリアされ
ずに残り、図2の電源オン処理フローでプロテクトにか
かりアプリケーションが起動されないシーケンスに入
る。
As described above, the power-off sequence abnormality flag is set only while the file on the external memory 6 is open and the external memory 6 can be accessed. When the power of the system is cut off by suddenly pulling out the battery 10 without passing through the processing, the power-off sequence error flag remains without being cleared, and the application is activated by the protection in the power-on processing flow of FIG. Enter a sequence that is not done.

【0026】なお、上記実施例は全てソフトウェアで実
現しているが、副電池4でバックアップされる1ビット
のカウンタを設け、外部メモリ6に対するオープン処理
では、外部メモリI/Fをイネーブルするハードウェア
をアクセスするので、そのアクセスで上記カウンタを1
にし、また、外部メモリ6に対するクローズ処理では外
部メモリI/Fをディスエーブルするハードウェアをア
クセスするので、そのアクセス、および電源コントロー
ル回路9への電源オフ指示で上記カウンタを0にするハ
ードウェアでも、上記実施例と全く同じ効果を得ること
ができる。
Although all of the above embodiments are implemented by software, a 1-bit counter that is backed up by the sub-battery 4 is provided, and hardware for enabling the external memory I / F is provided in the open processing for the external memory 6. Is accessed, so the above counter is incremented by 1
In addition, since the hardware for disabling the external memory I / F is accessed in the closing process for the external memory 6, the hardware for setting the counter to 0 by the access and the power off instruction to the power control circuit 9 It is possible to obtain exactly the same effect as in the above embodiment.

【0027】図6は、本発明の第2の実施例に係る小型
情報処理装置の異常検出を実現するための電源オン時の
処理を示すフローチャートである。なお、本実施例にお
いても、上記図1に示す構成が適用される。本来プロテ
クトが必要なのはメモリアクセス中の電源切断に対して
だけであり、この区間に電池をぬく等の行為は非常に確
率が低い事がわかっている。ほとんどはアプリケーショ
ンプログラムがキー入力を待っている時、操作者が次に
どの様な操作を行うべきかがわからずに電池をぬくケー
スが多く、この時はメモリアクセスには行っていない。
従って、動作中の全区間にわたって電池をぬかれても異
常とみなす必要はない。そこで、本実施例では、動作中
の異常な電源断を検出するのを止め、その代りシステム
に異常をきたした時にその原因追及の手助けをするため
に動作中の異常な電源断が何回行われているかだけを記
憶するようにしたものである。
FIG. 6 is a flowchart showing a process at power-on for realizing abnormality detection of the small information processing apparatus according to the second embodiment of the present invention. The configuration shown in FIG. 1 is also applied to this embodiment. Originally, protection is required only for power-off during memory access, and it has been found that the probability of removing the battery during this section is extremely low. In most cases, when the application program waits for a key input, the operator often removes the battery without knowing what operation should be performed next. At this time, the memory access is not performed.
Therefore, it is not necessary to regard the battery as abnormal even if the battery is removed over the entire operating period. Therefore, in the present embodiment, the abnormal power interruption during operation is stopped to detect the abnormal power interruption during operation, and instead to detect the cause when the abnormality occurs in the system. It is designed so that it only remembers whether or not it is.

【0028】ステップS91では、電源オン直後、電池
の出力電圧が不安定であり、この安定を待つ処理を行
い、安定後、電池の出力電圧を調べ(ステップS9
2)、以後、処理を続行するのに充分な出力が出ていな
ければステップS93へ行き、電源コントロール回路9
へシステムの電源切断を指示して終る。出力が充分であ
ればステップS94で各デバイスの初期化処理を行い、
ステップS95でシステム領域の初期化を行い、ステッ
プS96で電源オフシーケンス異常カウンタを+1す
る。このカウンタはシステム管理者だけが参照、変更で
きる様にプロテクトされる。システム管理者は装置を操
作者に手渡す時このカウンタを0にしてから手渡す。
In step S91, the output voltage of the battery is unstable immediately after the power is turned on, a process of waiting for this stabilization is performed, and after stabilization, the output voltage of the battery is checked (step S9).
2) After that, if the output is not sufficient to continue the processing, the process proceeds to step S93, and the power supply control circuit 9
Instructs to power off the system and ends. If the output is sufficient, initialization processing of each device is performed in step S94,
The system area is initialized in step S95, and the power-off sequence abnormality counter is incremented by 1 in step S96. This counter is protected so that only the system administrator can view and change it. When handing the device to the operator, the system administrator sets this counter to 0 before handing it.

【0029】図7は本実施例による異常検出を実現する
ための電源オフ処理を示すフローチャートである。この
電源オフ時の処理は、アプリケーションプログラムから
電源オフを指示されたり、電源スイッチ11オフの割込
みが発生したりした時に起動される。ステップS101
ではシステム領域のクローズ処理を行い、続くステップ
S102では各デバイスのターミネート処理を行う。そ
して、電源オフシーケンス異常カウンタを−1にし(ス
テップS103)、電源コントロール回路9にシステム
の電源切断を指示する(ステップS104)。
FIG. 7 is a flow chart showing the power-off processing for realizing the abnormality detection according to this embodiment. This power-off process is activated when the application program instructs the power-off or when the power switch 11 off interrupt occurs. Step S101
In step S102, the system area is closed, and in step S102, each device is terminated. Then, the power-off sequence abnormality counter is set to -1 (step S103), and the power control circuit 9 is instructed to turn off the system power (step S104).

【0030】本実施例では、電源オン時に図6のステッ
プS96で電源オフシーケンス異常カウンタを+1して
おき、電源オフ時の図7のステップS103で電源オフ
シーケンス異常カウンタを−1しているので、正しいシ
ーケンスで電源のオン/オフがくり返されるのであれ
ば、電源オフシーケンス異常カウンタは0のままであ
る。しかし、操作者が動作中に電池を引きぬくなどの異
常なシーケンスで、図7の正常な電源オフシーケンスを
通らずに電源がオフされた時は、上記カウンタを−1す
る処理が実行されないで再び電源がオンされ、図6の電
源オン処理が起動され、上記カウンタが+1され、この
カウンタの内容が次々に+1される事になる。
In this embodiment, the power-off sequence abnormality counter is incremented by 1 in step S96 of FIG. 6 when the power is turned on, and the power-off sequence abnormality counter is decremented by -1 in step S103 of FIG. 7 when the power is turned off. If the power is turned on / off repeatedly in the correct sequence, the power-off sequence abnormality counter remains 0. However, when the power is turned off without passing through the normal power-off sequence of FIG. 7 in an abnormal sequence such as the operator pulling out the battery during operation, the process of decrementing the counter by 1 is not executed. The power is turned on again, the power-on process of FIG. 6 is started, the counter is incremented by 1, and the contents of this counter are incremented by 1.

【0031】本実施例は、全てソフトウェアで行ってい
るが、電源コントロール回路9中に8ビット程度のハー
ド的なカウンタを設け、電源スイッチ11から電源オン
が指示された場合はそのカウンタを+1し、システムプ
ログラムから電源オフが指示された場合はそのカウンタ
の内容を−1する。そのカウンタは、副電池4でバック
アップされ、システム管理者の操作で任意の時点でクリ
ア、参照が可能に構成されたハードウェアでも全く同じ
効果が得られる。
In this embodiment, all operations are performed by software. However, a hardware counter of about 8 bits is provided in the power control circuit 9, and when the power switch 11 instructs the power on, the counter is incremented by one. , When the power off is instructed from the system program, the content of the counter is decremented by one. The counter is backed up by the sub-battery 4, and the same effect can be obtained with hardware configured to be cleared and referenced at any time by the operation of the system administrator.

【0032】図8は本発明の第3の実施例に係る小型情
報処理装置の電源オン時の処理を示す要部のフローチャ
ートである。この処理はシステムプログラムに従って実
行され、本実施例では上記図1の構成が適用される。
FIG. 8 is a flow chart of the main part showing the processing when the power of the small-sized information processing apparatus according to the third embodiment of the present invention is turned on. This processing is executed according to the system program, and the configuration of FIG. 1 is applied in this embodiment.

【0033】ステップS111では、電源がオンされた
なら処理が始まり、電池10の出力が安定する時間まで
ウェイトする。続くステップS112で電池10の出力
電圧を調べ、以後、動作するのに充分な電圧がなけれ
ば、ステップS119へ行き、電源コントロール回路9
へ電源のオフを指示する。出力電圧が充分であれば、ス
テップS114へ行き、LCD5やキーボード8等のデ
バイス制御回路を初期化する。
In step S111, the process starts when the power is turned on, and the process waits until the output of the battery 10 stabilizes. In the subsequent step S112, the output voltage of the battery 10 is checked, and if there is not enough voltage for operation, the process proceeds to step S119, and the power supply control circuit 9
To turn off the power. If the output voltage is sufficient, the process goes to step S114 to initialize the device control circuits such as the LCD 5 and the keyboard 8.

【0034】ステップS115では、前回の電源オフが
正しいシーケンスを通ってオフされたか否かをオフシー
ケンス異常フラグを調べて判断する。オフシーケンスが
正しければ、ステップS116へ行き、システム領域を
初期化し、オフシーケンス異常のフラグをセットして
(ステップS117)アプリケーションプログラムを起
動する。オフシーケンスが正しくなければ、ステップS
118へ行きエラーメッセージを表示して、ステップS
119で電源コントロール回路9へ電源オフを指示す
る。
In step S115, it is determined whether or not the previous power-off was turned off through the correct sequence by checking the off-sequence abnormality flag. If the off sequence is correct, the process proceeds to step S116, the system area is initialized, the off sequence abnormality flag is set (step S117), and the application program is started. If the off sequence is not correct, step S
Go to 118 and display the error message, then go to step S
At 119, the power control circuit 9 is instructed to turn off the power.

【0035】図9は、本実施例の電源オフ処理を示す要
部フローチャートである。この処理はシステムプログラ
ムにより実行され、アプリケーションプログラムから電
源オフが指示されたり、電源オフスイッチが押された割
込みが発生したりした時に起動される正常なオフシーケ
ンスである。
FIG. 9 is a main part flowchart showing the power-off processing of this embodiment. This processing is executed by the system program, and is a normal off sequence that is activated when the application program instructs the power to be turned off or when the power off switch is pressed to generate an interrupt.

【0036】ステップS121で各テーブルの解放等の
システム領域のクローズ処理を行い、ステップS122
で各デバイスのターミネート処理を行う。続くステップ
S123でオフシーケンス異常フラグをクリアして電源
コントロール回路9へ電源オフの指示を出す(ステップ
S124)。
In step S121, the system area is closed, such as releasing each table, and step S122.
Terminates each device. In a succeeding step S123, the off-sequence abnormality flag is cleared and a power-off instruction is issued to the power supply control circuit 9 (step S124).

【0037】このように本実施例では、上記電源オフ処
理によって電源がオフされた場合は、電源オン時にステ
ップS117でセットしたオフシーケンス異常フラグ
が、ステップS123でクリアされるので、次の電源オ
ン処理ではステップS115で正しいオフシーケンスが
通ったと判定され、正常にアプリケーションが起動され
る。
As described above, in this embodiment, when the power is turned off by the power-off processing, the off-sequence abnormality flag set in step S117 when the power is turned on is cleared in step S123. In the process, it is determined in step S115 that the correct off sequence has passed, and the application is normally started.

【0038】一方、アプリケーション動作中に電池10
を引きぬくと、図9のフローを通らずに強制的に電源が
切れてしまうので、ステップS123のオフシーケンス
異常フラグのクリア処理が実行されず、オフシーケンス
異常フラグが残ってしまう。この状態で電源をオンする
と、図8の電源オン処理におけるステップS115で正
しいオフシーケンスを通らなかったと判断され、アプリ
ケーションが起動されずにエラーメッセージが表示され
る(ステップS118)。そして、ステップS119で
直ちに電源がオフされてシステムはプロテクト状態とな
り、アプリケーションが起動できなくなる。
On the other hand, during operation of the application, the battery 10
9 is pulled out, the power is forcibly turned off without passing through the flow of FIG. 9, so that the off sequence abnormality flag clearing process in step S123 is not executed and the off sequence abnormality flag remains. When the power is turned on in this state, it is determined in step S115 in the power-on process of FIG. 8 that the correct off sequence has not been passed, and the application is not started and an error message is displayed (step S118). Then, in step S119, the power is immediately turned off, the system is protected, and the application cannot be started.

【0039】図10は本実施例におけるキー入力処理を
示すフローチャートである。
FIG. 10 is a flow chart showing the key input processing in this embodiment.

【0040】基本的に操作者からのキー入力が行われて
いる時は、CPU1からみると操作を待つ時間が多く、
この間はメモリアクセスには行かないはずである。従っ
て、この間に電池を引きぬかれてもメモリ3には影響を
与えないので、この間もオフシーケンス異常フラグをク
リアしておいても問題は生じないはずである。
Basically, when a key input is made by the operator, the CPU 1 sees a lot of time waiting for the operation,
During this time, memory access should not be performed. Therefore, even if the battery is pulled out during this period, the memory 3 is not affected, and even if the off sequence abnormality flag is cleared during this period, no problem should occur.

【0041】そこで、アプリケーションからキー入力が
指示されると、ステップS131でオフシーケンス異常
フラグをクリアする。ステップS132でキー入力割込
みを待つスタンバイ状態に入る。何らかの割込み発生で
スタンバイ状態が解除されるので、ステップS133で
キー入力による割込み発生であるか否かを判断し、キー
入力でなければ再びステップS132へ行き、スタンバ
イ状態へ入る。キー入力があった場合はステップS13
4でオフシーケンス異常フラグをセットしステップS1
35で入力されたキーコードを取り出してアプリケーシ
ョンプログラムに渡す。
Therefore, when the key input is instructed by the application, the off sequence abnormality flag is cleared in step S131. In step S132, a standby state waiting for a key input interrupt is entered. Since the standby state is released by the occurrence of some kind of interrupt, it is determined in step S133 whether or not the interrupt is generated by the key input. If it is not the key input, the process goes to step S132 again to enter the standby state. If there is a key input, step S13
The off sequence abnormality flag is set in step 4, and step S1
The key code input at 35 is taken out and passed to the application program.

【0042】このキー入力処理によりシステムが動作中
でもキー入力待ち中はオフシーケンス異常フラグがクリ
アされているので、この時、電池を引きぬかれても次の
電源オン処理における図8のステップS115のオフシ
ーケンスの確認の際に、正しいオフシーケンスと判定さ
れてアプリケーションが正常に起動される。
Since the off-sequence abnormality flag is cleared while the system is operating by this key input process and while waiting for key input, even if the battery is pulled out at this time, the step S115 in FIG. 8 in the next power-on process will be performed. When confirming the off sequence, it is determined that the off sequence is correct and the application is normally started.

【0043】なお、上記実施例は全てソフトウェアで実
現しているが、副電池10でバックアップされる1ビッ
トのカウンタを設け、キー入力スタンバイ状態に入る
時、および電源コントロール回路8への電源オフ指示で
該カウンタが0になり、キー入力スタンバイ状態が解け
た時、およびソフトウェアからの指示で1になるように
し、その内容を図8の電源オン処理の中で参照するよう
に構成しても上記実施例と全く同じ効果が得られる。
Although all of the above embodiments are realized by software, a 1-bit counter backed up by the sub-battery 10 is provided, and when the key input standby state is entered and the power supply control circuit 8 is instructed to turn off the power supply. Even if the counter is set to 0, the key input standby state is released, and the instruction from software is set to 1, and the contents are referred to in the power-on process of FIG. The same effect as the embodiment can be obtained.

【0044】[0044]

【発明の効果】以上説明した様に第1の発明によれば、
動作中にいきなり電池をぬいてしまう等の誤操作をして
も、プロテクトされるのは外部メモリ上の論理的なファ
イルがオープンされている区間だけに限定され、次の電
源オン処理でアプリケーションプログラムが起動される
確率が高くなる。これにより、装置の再使用が可能とな
る。また、電源スイッチと連動するメカ構造も不要にな
り、電池を交換する操作も容易になり、低コスト化を図
ることができる。
As described above, according to the first invention,
Even if you make a mistake such as removing the battery suddenly during operation, protection is limited only to the section where the logical file on the external memory is open, and the application program will be protected by the next power-on process. The probability of being activated increases. This allows the device to be reused. Further, a mechanical structure interlocking with the power switch is not required, the operation of replacing the battery is facilitated, and the cost can be reduced.

【0045】第2の発明によれば、異常操作による電源
オフ検出とシステムプロテクトの機能を持たせずに操作
者の利便性を求めた情報処理装置であっても、システム
に異常が発生した場合に保存手段の内容を調べる事で、
異常操作による電源オフの有無が判断でき、システム異
常の原因追及の大きな助けとなる。
According to the second aspect of the present invention, even when an information processing apparatus is required for the convenience of the operator without having the function of power-off detection by abnormal operation and the function of system protection, when an abnormality occurs in the system. By checking the contents of the storage means,
Whether or not the power is turned off due to an abnormal operation can be determined, which is a great help in pursuing the cause of the system abnormality.

【0046】第3の発明によれば、システムが動作中の
全区間ではなくメモリアクセスの発生しないキー入力待
ち中の区間は正常な電源オフシーケンスを経由しないで
電源が遮断したかを検出しないので、誤操作による電池
の取り出しでシステムの再起動が不可能になる区間が少
なくなり、誤操作による使用不能状態を少なくする事が
可能となる。また使用不能状態を回復するシステム管理
者の負担も少なくなる。
According to the third aspect of the present invention, it is not detected whether the power supply is cut off without going through a normal power-off sequence in the key input waiting section in which the memory access does not occur but in all the sections in which the system is operating. The section in which the system cannot be restarted due to the removal of the battery due to an erroneous operation is reduced, and the unusable state due to an erroneous operation can be reduced. Further, the burden on the system administrator for recovering the unusable state is reduced.

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

【図1】本発明の第1の実施例に係る情報処理装置の概
略構成図である。
FIG. 1 is a schematic configuration diagram of an information processing apparatus according to a first embodiment of the present invention.

【図2】第1の実施例の電源オン処理のフローチャート
である。
FIG. 2 is a flowchart of a power-on process according to the first embodiment.

【図3】第1の実施例の情報処理装置の電源オフ処理の
フローチャートである。
FIG. 3 is a flowchart of power-off processing of the information processing apparatus according to the first embodiment.

【図4】第1の実施例における外部メモリ上のファイル
をオープンする処理を示すフローチャートである。
FIG. 4 is a flowchart showing a process of opening a file on an external memory according to the first embodiment.

【図5】第1の実施例における外部メモリ上のファイル
をクローズする処理を示すフローチャートである。
FIG. 5 is a flowchart showing a process of closing a file on an external memory in the first embodiment.

【図6】本発明の第2の実施例における電源オン処理を
示すフローチャートである。
FIG. 6 is a flowchart showing a power-on process in the second embodiment of the present invention.

【図7】第2の実施例における電源オフ処理を示すフロ
ーチャートである。
FIG. 7 is a flowchart showing a power-off process in the second embodiment.

【図8】本発明の第3の実施例における電源オン処理を
示すフローチャートである。
FIG. 8 is a flowchart showing a power-on process in the third embodiment of the present invention.

【図9】第3の実施例における電源オフ処理を示すフロ
ーチャートである。
FIG. 9 is a flowchart showing a power-off process in the third embodiment.

【図10】第3の実施例におけるキー入力処理を示すフ
ローチャートである。
FIG. 10 is a flowchart showing a key input process in the third embodiment.

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

1 CPU 3 メインメモリ 6 外部メモリ 8 キー 1 CPU 3 Main memory 6 External memory 8 Key

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 電源オン処理により電池で発生する電源
で駆動され、外部メモリのファイルに対して情報の読み
/書きを行う情報処理装置において、 前記ファイルに対するオープンされている区間、正常な
電源オフシーケンスを経由しないで前記電源が遮断した
かを検出する検出手段と、 正常な電源オフシーケンスを経由しないで電源の遮断が
行われたことを前記検出手段が検出した場合に前記電源
オン処理をプロテクトするプロテクト手段とを備えたこ
とを特徴とする情報処理装置。
1. An information processing apparatus for reading / writing information from / to a file in an external memory, which is driven by a power source generated by a battery in a power-on process, and is normally powered off during an open section of the file. Detecting means for detecting whether or not the power supply is cut off without going through a sequence, and protection of the power-on processing when the detecting means detects that the power supply is cut off without going through a normal power-off sequence An information processing apparatus, comprising:
【請求項2】 電源オン処理により電池で発生する電源
で駆動されてメモリに対して情報の読み/書きを行い、
正常な電源オフシーケンスを経由して前記電源の遮断を
行う電源オフ処理により該駆動がオフされる情報処理装
置において、 前記電源オン処理時に所定値をインクリメントし、前記
電源オフ処理時にディクリメントする計数手段と、 前記計数手段の計数結果を保存する保存手段とを備えた
ことを特徴とする情報処理装置。
2. Reading / writing information from / to a memory driven by a power source generated by a battery by power-on processing,
In an information processing device in which the drive is turned off by a power-off process that shuts off the power via a normal power-off sequence, a count that increments a predetermined value during the power-on process and decrements during the power-off process. An information processing apparatus comprising: a means and a storage means for storing the counting result of the counting means.
【請求項3】 電源オン処理により電池で発生する電源
で駆動され、キー入力を行ってメモリに対して情報の読
み/書きを行う情報処理装置において、 前記キー入力の待機中を除き、正常な電源オフシーケン
スを経由しないで前記電源が遮断したかを検出する検出
手段と、 正常な電源オフシーケンスを経由しないで電源の遮断が
行われたことを前記検出手段が検出した場合に前記電源
オン処理をプロテクトするプロテクト手段とを備えたこ
とを特徴とする情報処理装置。
3. An information processing apparatus, which is driven by a power source generated by a battery by a power-on process and performs a key input to read / write information from / to a memory, is normally operated except when the key input is on standby. Detection means for detecting whether or not the power supply is cut off without going through a power-off sequence, and power-on processing when the detection means detects that power supply is cut off without going through a normal power-off sequence An information processing apparatus comprising: a protection unit that protects the information processing device.
JP4196296A 1992-06-30 1992-06-30 Information processor Pending JPH0619587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4196296A JPH0619587A (en) 1992-06-30 1992-06-30 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4196296A JPH0619587A (en) 1992-06-30 1992-06-30 Information processor

Publications (1)

Publication Number Publication Date
JPH0619587A true JPH0619587A (en) 1994-01-28

Family

ID=16355449

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4196296A Pending JPH0619587A (en) 1992-06-30 1992-06-30 Information processor

Country Status (1)

Country Link
JP (1) JPH0619587A (en)

Similar Documents

Publication Publication Date Title
JP3437065B2 (en) Virus removal method, information processing device, and computer-readable recording medium on which virus removal program is recorded
US7480819B1 (en) Method for boot recovery
US7506209B2 (en) Computer shutoff condition monitoring method, information processing apparatus, program and computer readable information recording medium
JPH0630541B2 (en) Operation stop and reset circuit device
KR100251381B1 (en) Apparatas and method for initializing of volatile memory
US5557739A (en) Computer system with component removal and replacement control scheme
JPH0619587A (en) Information processor
EP0523652A2 (en) Electronic apparatus with resume function
KR100300584B1 (en) Method for recovering environment of computer system
JP3133492B2 (en) Information processing device
JP2000235483A (en) Information processor
JPH0527875A (en) Electronic equipment
JPH0820920B2 (en) Information processing device
JPH07141120A (en) Processing method for fault in information storage medium
JP2994642B2 (en) Data processing device
JPH0546495A (en) Data processor
JPH0687213B2 (en) Data processing device
JPH0683498A (en) File protection system
JP2506199B2 (en) Electronics
JPH05324366A (en) Automatic stop restoring system
JP2001310537A (en) Device for printing
JPH06337728A (en) Electronic computer with suspending/resuming function
JPH03233618A (en) System for preventing illegal processing at the time of disconnecting power supply
JPH06259324A (en) Cache disconnection controller
JPH10191547A (en) Digital type protection relay device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050915

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050927

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070619

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070702

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100720

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20100720

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20100720

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110720

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120720

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20120720

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20130720