JPH09288646A - Data recorder for flash memory of portable information processing system - Google Patents
Data recorder for flash memory of portable information processing systemInfo
- Publication number
- JPH09288646A JPH09288646A JP10142296A JP10142296A JPH09288646A JP H09288646 A JPH09288646 A JP H09288646A JP 10142296 A JP10142296 A JP 10142296A JP 10142296 A JP10142296 A JP 10142296A JP H09288646 A JPH09288646 A JP H09288646A
- Authority
- JP
- Japan
- Prior art keywords
- data
- flash memory
- battery
- recording
- recorded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 13
- 230000014759 maintenance of location Effects 0.000 claims description 7
- 238000000034 method Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 6
- 239000000725 suspension Substances 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 238000013500 data storage Methods 0.000 description 3
- 101100524639 Toxoplasma gondii ROM3 gene Proteins 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Landscapes
- Read Only Memory (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Calculators And Similar Devices (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は携帯型情報処理シス
テムのフラッシュ・メモリのデータ記録装置に関し、特
に、電池を電源とし、電源切断時に予備電池のバックア
ップにより切断直前の動作状態を一時記憶しておき電源
再投入時に該動作状態を再現するサスペンド及びレジュ
ーム機能を有し、動作中に得られた記録が必要なデータ
を記録保持のための電源が不要なフラッシュ・メモリへ
記録する携帯型情報処理システムに用いられ、前記フラ
ッシュ・メモリへのデータの記録を制御するデータ記録
装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data recording device for a flash memory of a portable information processing system, and more particularly, it uses a battery as a power source and temporarily stores the operating state immediately before disconnection by backing up a spare battery when the power is disconnected. Portable information processing that has a suspend and resume function that reproduces the operating state when the power is turned on again, and records the data that needs to be recorded during operation in a flash memory that does not require a power source to retain the record The present invention relates to a data recording device used in a system and controlling recording of data in the flash memory.
【0002】[0002]
【従来の技術】この種の携帯型情報処理システムにおけ
る従来のフラッシュ・メモリ(電気的に書き換え可能な
一括消去型リード・オンリー・メモリ、以下、フラッシ
ュROMと称す)のデータ記録装置を図7に示す。フラ
ッシュROMの消去や書き換えに必要な電源電圧値は他
の通常の回路のそれよりも高い。図7において、フラッ
シュROMのデータ記録装置7は、電池電圧チェック手
段71及びフラッシュROMへの記録手段72を有する
データ記録制御部70のみから構成されている。図示し
ていない携帯型情報処理システムの主制御部からの指示
によりデータ2をフラッシュROM3へ記録する場合、
まず、電池電圧チェック手段71においてフラッシュR
OM3へ供給される電池4からの電源電圧値がデータを
書き込むことができる値か否かチェックする。チェック
の結果、データ書き込みが可能と判断した場合、フラッ
シュROMへの記録手段72によりデータ2をフラッシ
ュROM3に記録する。チェックの結果、データ書き込
みが不可能と判断した場合は、フラッシュROM3への
記録は行わない。フラッシュROM3への記録が行われ
なかったとき、利用者が意識してフラッシュROM3に
データを記録する場合には、記録できなかった旨を利用
者に通知し、電池4の交換後、再度データを記録するよ
う促すことができる。しかし、システムが内部処理の記
録データをフラッシュROM3に記録したり、システム
が自動訂正可能なメモリ誤りの発生状況を自動記録した
りする場合には、利用者はフラッシュROM3にデータ
を書き込むことを意識しておらず、フラッシュROM3
内の情報が古いままとなってしまっていた。2. Description of the Related Art FIG. 7 shows a conventional flash memory (electrically rewritable batch erasable read only memory, hereinafter referred to as flash ROM) data recording device in this type of portable information processing system. Show. The power supply voltage value required to erase or rewrite the flash ROM is higher than that of other ordinary circuits. In FIG. 7, the flash ROM data recording device 7 is composed only of a data recording control unit 70 having a battery voltage check means 71 and a flash ROM recording means 72. When the data 2 is recorded in the flash ROM 3 according to an instruction from the main control unit of the portable information processing system (not shown),
First, the flash voltage R in the battery voltage check means 71
It is checked whether the power supply voltage value from the battery 4 supplied to the OM 3 is a value at which data can be written. As a result of the check, when it is determined that the data writing is possible, the data 2 is recorded in the flash ROM 3 by the recording means 72 for the flash ROM. If it is determined that the data cannot be written as a result of the check, the data is not recorded in the flash ROM 3. If the user intentionally records data in the flash ROM 3 when the data is not recorded in the flash ROM 3, the user is informed that the data could not be recorded, and after the battery 4 is replaced, the data is recorded again. You can encourage them to record. However, when the system records the recording data of the internal processing in the flash ROM 3 or the system automatically records the occurrence status of the memory error that can be automatically corrected, the user should be aware of writing the data in the flash ROM 3. Not done, flash ROM3
The information inside was out of date.
【0003】[0003]
【発明が解決しようとする課題】以上説明したように、
従来のフラッシュ・メモリ(ROM)のデータ記録装置
では、電池電圧の低下によりフラッシュ・メモリへの記
録が行われなかった場合に、後で記録し直す処理が行わ
れず、フラッシュ・メモリの内容は古いままになってし
まう場合があり、フラッシュ・メモリ内のデータの信頼
性が低かった。As described above,
In a conventional flash memory (ROM) data recording device, if data is not recorded in the flash memory due to a decrease in battery voltage, the process of re-recording is not performed later, and the content of the flash memory is old. In some cases, the reliability of the data in the flash memory was low.
【0004】したがって本発明の目的は、電池電圧の低
下によりフラッシュ・メモリへのデータ記録が行えなか
った場合、電池電圧が復帰した時に、前回フラッシュ・
メモリに記録できなかった内容を記録し直すことによ
り、フラッシュ・メモリ内のデータの信頼性を高めるこ
とが可能なフラッシュ・メモリのデータ記録装置を提供
することにある。Therefore, an object of the present invention is to provide a flash memory when the battery voltage is restored when data cannot be recorded in the flash memory due to a decrease in the battery voltage.
Another object of the present invention is to provide a data recording device for a flash memory that can improve the reliability of the data in the flash memory by re-recording the contents that could not be recorded in the memory.
【0005】[0005]
【課題を解決するための手段】本発明の携帯型情報処理
システムのフラッシュ・メモリのデータ記録装置は、電
池を電源とし、電源切断時に予備電池のバックアップに
より切断直前の動作状態を一時記憶しておき電源再投入
時に該動作状態を再現するサスペンド及びレジューム機
能を有し、動作中に得られた記録が必要なデータを記録
保持のための電源が不要なフラッシュ・メモリへ記録す
る携帯型情報処理システムに用いられ、前記フラッシュ
・メモリへのデータの記録を制御するデータ記録装置に
おいて、前記電池の電圧低下により前記フラッシュ・メ
モリへのデータの記録が行えない場合に、前記予備電池
により記録保持が支援されたメモリに該データを記録し
ておき、前記電池の電圧が正常値に復帰した状態でレジ
ューム処理が行われる場合に、該データを前記フラッシ
ュ・メモリへ記録し直す構成を有する。A data recording device for a flash memory of a portable information processing system according to the present invention uses a battery as a power source and temporarily stores an operating state immediately before disconnection by backing up a spare battery when the power is turned off. Portable information processing that has a suspend and resume function that reproduces the operating state when the power is turned on again, and records the data that needs to be recorded during operation in a flash memory that does not require a power source to retain the record In a data recording device used in a system for controlling the recording of data in the flash memory, if the data cannot be recorded in the flash memory due to the voltage drop of the battery, the recording can be retained by the spare battery. The data is recorded in a supported memory, and resume processing is performed when the battery voltage returns to a normal value. When that has a structure to re-record the data to the flash memory.
【0006】また上記構成において;フラッシュ・メモ
リへの電源となる電池の電圧値が前記フラッシュ・メモ
リにデータを書き込むことができる値か判定する電池電
圧チェック手段と;前記フラッシュ・メモリへのデータ
記録の成否を記録する予備電池により記録保持が支援さ
れたメモリ上の未記録フラグと;前記フラッシュ・メモ
リに記録できなかったデータをいったん記録する前記予
備電池により記録保持が支援されたメモリ上の作業領域
と;通常時にデータ記録指示を受けると、前記電池電圧
チェック手段の判定結果を参照して前記フラッシュ・メ
モリへのデータ書き込みの可否を判定し、データ書き込
み可能ならば該当するデータを前記フラッシュ・メモリ
に記録し、データ書き込み不可能ならば前記フラッシュ
・メモリへのデータ記録ができなかった旨を前記未記録
フラグに設定するとともに、該当するデータを一時的に
前記作業領域に記録する手段と;レジューム時に起動さ
れ、前記未記録フラグの設定内容を参照して前記フラッ
シュ・メモリに記録できなかったデータの有無を判定す
るとともに前記電池電圧チェック手段の判定結果を参照
して前記フラッシュ・メモリへのデータ書き込みの可否
を判定し、未記録のデータがあり、かつ、電源電圧が正
常値であれば、前記作業領域に一時記録された前回書き
込むことができなかったデータを前記フラッシュ・メモ
リに記録し、前記未記録フラグの設定内容をクリアする
手段とを含むことができる。In the above structure; battery voltage check means for determining whether the voltage value of the battery serving as a power source for the flash memory is a value at which data can be written in the flash memory; and data recording in the flash memory. An unrecorded flag on the memory whose record retention is supported by a spare battery for recording the success or failure of the operation; and a work on the memory whose record retention is supported by the spare battery for temporarily recording the data that could not be recorded in the flash memory. Area: When receiving a data recording instruction during normal operation, it is determined whether or not data writing to the flash memory is possible by referring to the determination result of the battery voltage check means. If the data cannot be written in the memory, the data in the flash memory is recorded. Means for setting the fact that recording was not possible in the unrecorded flag and temporarily recording the corresponding data in the work area; the flash being activated at the time of resume and referring to the setting content of the unrecorded flag Determining whether or not there is data that could not be recorded in the memory and determining whether or not data can be written to the flash memory by referring to the determination result of the battery voltage checking means, and there is unrecorded data If the voltage is a normal value, it can include means for recording the previously unwritable data temporarily recorded in the work area in the flash memory and clearing the setting content of the unrecorded flag. .
【0007】[0007]
【発明の実施の形態】次に、本発明について図面を参照
して説明する。Next, the present invention will be described with reference to the drawings.
【0008】図1は、本発明の一実施の形態を示すブロ
ック構成図であり、電池を電源とし、電源切断時に予備
電池のバックアップにより切断直前の動作状態を一時記
憶しておき電源再投入時に該動作状態を再現するサスペ
ンド及びレジューム機能を有し、動作中に得られた記録
が必要なデータを記録保持のための電源が不要なフラッ
シュ・メモリ(フラッシュROM)へ記録する携帯型情
報処理システムのうち本発明に関わる部分のみを示す。
図1において、本発明のフラッシュROMのデータ記録
装置1は、通常運用時にフラッシュROM3へのデータ
記録を制御するデータ記録制御部11と、レジューム時
に起動されフラッシュROM3へのデータ記録を制御す
るレジューム時のデータ記録制御部12と、揮発性メモ
リ(RAM)13に設けられたフラッシュROM3への
データ記録の成否を記録する未記録フラグ14及びフラ
ッシュROM3に記録できなかったデータをいったん記
録する作業領域15とで構成されており、フラッシュR
OM3と同様に電池4を電源とする。この電池4からの
電源供給が正常に行えない場合にバックアップ電池5か
らRAM13に対して電源供給し、記録内容を保持させ
る。FIG. 1 is a block diagram showing an embodiment of the present invention, in which a battery is used as a power source, and an operating state immediately before disconnection is temporarily stored by backup of a spare battery at the time of power off and the power is turned on again. A portable information processing system having a suspend and resume function for reproducing the operation state and recording the data required for recording obtained during the operation in a flash memory (flash ROM) which does not require a power supply for holding the record. Only the part related to the present invention is shown.
Referring to FIG. 1, a flash ROM data recording apparatus 1 according to the present invention includes a data recording control unit 11 that controls data recording to the flash ROM 3 during normal operation, and a resume recording control unit that is activated at the time of resume and controls data recording to the flash ROM 3. Data recording control unit 12 and an unrecorded flag 14 for recording the success or failure of data recording in the flash ROM 3 provided in the volatile memory (RAM) 13 and a work area 15 for temporarily recording data that could not be recorded in the flash ROM 3. It consists of and Flash R
Like the OM 3, the battery 4 is used as a power source. When the power supply from the battery 4 cannot be performed normally, the backup battery 5 supplies power to the RAM 13 to retain the recorded contents.
【0009】データ記録制御部11は、電池4がフラッ
シュROM3にデータを書き込むことができる電圧状態
かチェックする電池電圧チェック手段111と、フラッ
シュROM3へデータ2を記録するフラッシュROMへ
の記録手段112と、電池4の電圧が低下していた場合
にフラッシュROM3へのデータ記録ができなかった旨
を未記録フラグ14に設定する未記録フラグ設定手段1
13と、フラッシュROM3に記録できなかったデータ
2の一部あるいは全部を一時的に作業領域15に記録す
る作業領域への記録手段114とを有している。The data recording control unit 11 includes a battery voltage checking means 111 for checking whether the battery 4 is in a voltage state in which data can be written in the flash ROM 3, and a flash ROM recording means 112 for recording the data 2 in the flash ROM 3. The unrecorded flag setting means 1 for setting the unrecorded flag 14 to the effect that data could not be recorded in the flash ROM 3 when the voltage of the battery 4 has dropped.
13 and a recording means 114 for recording a work area in which a part or all of the data 2 that could not be recorded in the flash ROM 3 is temporarily recorded in the work area 15.
【0010】レジューム時のデータ記録制御部12は、
未記録フラグ14を参照し前回フラッシュROM3に記
録できなかったデータがあるかをチェックする未記録フ
ラグチェック手段121と、電池4がフラッシュROM
3にデータを書き込むことができる電圧状態かチェック
する電池電圧チェック手段122と、未記録データがあ
り電池電圧が正常値であれば前回書き込むことができな
かったデータをフラッシュROM3に記録する作業領域
からフラッシュROMへのコピー手段123と、未記録
フラグ14をクリアする未記録フラグクリア手段124
とを有している。なお、電池電圧チェック手段111,
121をデータ記録制御部11とレジューム時のデータ
記録制御部12とにそれぞれ設けてあるが、どちらか一
方のみとし共用するようにしてもよい。この電池電圧チ
ェック手段111,121には、フラッシュROM3に
データを書き込むことができる電源電圧の下限値をあら
かじめ設定しておく。例えば、データ記録が可能なフラ
ッシュROM3の電源電圧が7V以上の場合は、その値
を電池電圧チェック手段111,121に設定してお
き、電池4から供給される実際の電源電圧と比較させ
る。なお、フラッシュROM3以外の回路は電源電圧が
フラッシュROM3の動作保証下限値よりある程度(例
えば6Vまで)低下しても動作が保証されるものとす
る。また、電池4は、満充電時の電圧がフラッシュRO
M3の動作保証下限値より高く(例えば8V)なるよう
に構成しておく。The data recording control unit 12 at the time of resume is
An unrecorded flag check means 121 for checking whether there is data that could not be recorded in the flash ROM 3 last time by referring to the unrecorded flag 14, and the battery 4 is a flash ROM
3 is a battery voltage check means 122 for checking whether or not a voltage state in which data can be written in, and a work area for recording in the flash ROM 3 data that could not be written last time if there is unrecorded data and the battery voltage is a normal value Flash ROM copy means 123 and unrecorded flag clear means 124 for clearing the unrecorded flag 14.
And The battery voltage checking means 111,
Although 121 is provided in the data recording control unit 11 and the data recording control unit 12 at the time of resume, respectively, only one of them may be shared. The battery voltage checking means 111 and 121 are preset with a lower limit value of the power supply voltage at which data can be written in the flash ROM 3. For example, when the power supply voltage of the flash ROM 3 capable of recording data is 7 V or more, the value is set in the battery voltage check means 111 and 121 and compared with the actual power supply voltage supplied from the battery 4. The circuits other than the flash ROM 3 are guaranteed to operate even if the power supply voltage drops to some extent (for example, up to 6 V) from the operation guarantee lower limit value of the flash ROM 3. In addition, the battery 4 has a flash RO voltage when fully charged.
It is configured to be higher than the operation guarantee lower limit value of M3 (for example, 8 V).
【0011】次に、通常時の処理手順の流れを示す図2
及びレジューム時の処理手順の流れを示す図3を併せ参
照して動作を説明する。Next, FIG. 2 showing a flow of a processing procedure in a normal state.
Also, the operation will be described with reference to FIG. 3 showing the flow of the processing procedure at the time of resume.
【0012】通常時にデータ2をフラッシュROM3に
記録したい場合、図示していない携帯型情報処理システ
ムの主制御部からデータ記録制御部11に制御が渡され
る。まず、電池4の電圧の状態をチェックし(図2のス
テップS21)、フラッシュROM3にデータを記録可
能なレベルの電圧値かどうかの判定を行う(ステップS
22)。データを記録可能なレベルであれば、フラッシ
ュROM3へデータ2を記録する(ステップS23)。
データを記録不可能なレベルであれば、未記録フラグ1
4にデータを記録できなかった旨の値“1”を設定する
(ステップS24)。そして、記録できなかったデータ
2をいったん作業領域15へ記録しておく(ステップS
25)。一旦、電池4の電圧が記録可能な状態としてフ
ラッシュROM3へデータ2を記録中に電池4の電圧が
低下し記録が不可能な状態になれば、上記処理と同様
に、残りのデータを作業領域15に記録し、未記録フラ
グ14に“1”を設定する。作業領域15は、未記録デ
ータを格納するためにじゅうぶんな大きさを確保してお
く必要がある。また、未記録フラグ14の初期値は
“0”を設定しておく。When it is desired to record the data 2 in the flash ROM 3 at normal times, control is transferred from the main control unit (not shown) of the portable information processing system to the data recording control unit 11. First, the state of the voltage of the battery 4 is checked (step S21 of FIG. 2), and it is determined whether the voltage value is a level at which data can be recorded in the flash ROM 3 (step S21).
22). If the data can be recorded, the data 2 is recorded in the flash ROM 3 (step S23).
If the data cannot be recorded, the unrecorded flag 1
The value "1" indicating that the data could not be recorded is set in the step 4 (step S24). Then, the data 2 that could not be recorded is once recorded in the work area 15 (step S
25). Once the voltage of the battery 4 is in a recordable state and the voltage of the battery 4 is lowered during recording of the data 2 in the flash ROM 3 and recording becomes impossible, the remaining data is stored in the work area as in the above process. The data is recorded in 15, and the unrecorded flag 14 is set to “1”. The work area 15 needs to have a sufficient size for storing unrecorded data. The initial value of the unrecorded flag 14 is set to "0".
【0013】レジューム時には、必ず、レジューム時の
データ記録制御部12に図示していない主制御部からの
制御が渡される。レジューム時のデータ記録制御部12
に制御が渡される前の処理では、未記録フラグ14と作
業領域15との初期化を行ってはならない。At the time of resume, the control from a main controller (not shown) is always passed to the data recording controller 12 at the time of resume. Data recording control unit 12 during resume
In the process before the control is transferred to, the unrecorded flag 14 and the work area 15 should not be initialized.
【0014】レジューム時のデータ記録制御部12で
は、まず、未記録フラグ14をチェックし、前回フラッ
シュROM3に記録できなかったデータがあるかどうか
を判断する(図3のステップS31)。未記録フラグ1
4の値が“0”であれば、フラッシュROM3に記録で
きなかったデータはないとみなし、なにもせず処理を終
了する。未記録フラグの値が“1”であれば、フラッシ
ュROM3に記録できなかったデータがあると判断し、
電池4の電圧の状態をチェックし(ステップS32)、
フラッシュROM3にデータを記録可能なレベルの電圧
値かどうかの判定を行う(ステップS33)。判定の結
果、データを記録可能なレベルの電圧値であれば、デー
タを作業領域15からフラッシュROM3へコピーする
(ステップS34)。すべての未記録データのフラッシ
ュROM3へのコピーが終了すれば、未記録フラグ14
を“0”にクリアする(ステップS35)。In the resume data recording control unit 12, first, the unrecorded flag 14 is checked to determine whether or not there is any data that could not be recorded in the flash ROM 3 last time (step S31 in FIG. 3). Unrecorded flag 1
If the value of 4 is "0", it is considered that there is no data that could not be recorded in the flash ROM 3, and the processing ends without doing anything. If the value of the unrecorded flag is “1”, it is determined that there is data that could not be recorded in the flash ROM 3,
Check the state of the voltage of the battery 4 (step S32),
It is determined whether the voltage value is a level at which data can be recorded in the flash ROM 3 (step S33). If the result of determination is that the voltage value is a level at which data can be recorded, the data is copied from the work area 15 to the flash ROM 3 (step S34). When the copying of all the unrecorded data to the flash ROM 3 is completed, the unrecorded flag 14
Is cleared to "0" (step S35).
【0015】なお、レジューム時のデータ記録制御部1
2の電池4の電圧チェックにおいて電池電圧値がデータ
を記録不可能なレベルであれば、フラッシュROM3へ
のデータ記録は今回はあきらめ、次回のレジューム時に
電池交換等によって電圧値が復帰していればフラッシュ
ROM3へデータを記録する。また、作業領域15から
フラッシュROM3へのデータコピーの途中で電池4の
電圧が低下し、一部の未記録データがコピーできなかっ
た場合は、未記録フラグ14の値は“1”のままにして
おき、次回のレジューム時に電池電圧値が復帰していれ
ばフラッシュROM3へデータを記録する。The data recording control unit 1 at the time of resume
In the voltage check of the battery 4 of No. 2, if the battery voltage value is at a level at which data cannot be recorded, the data recording to the flash ROM 3 is given up this time, and if the voltage value is restored by the battery replacement at the next resume, Data is recorded in the flash ROM 3. Further, when the voltage of the battery 4 drops during the data copy from the work area 15 to the flash ROM 3 and some unrecorded data cannot be copied, the value of the unrecorded flag 14 is left at “1”. If the battery voltage value is restored at the next resume, the data is recorded in the flash ROM 3.
【0016】図4,5,及び6に未記録データを一時的
に記録しておく作業領域15の構造例を示す。作業領域
15のデータ書き込み,読み出しは、先入れ先出しの方
式をとり、ヘッダとして未記録データの先頭ポインタ
と、次に未記録データを書き込むポインタとを格納する
エリアを有する。以降はデータ長と未記録データの内容
とを1ブロックとして格納する。このとき、未記録デー
タの内容を格納するエリアの大きさは、固定としても可
変としても構わない。4, 5, and 6 show examples of the structure of the work area 15 for temporarily recording unrecorded data. Data writing / reading of the work area 15 is performed on a first-in first-out basis, and has an area for storing a head pointer of unrecorded data as a header and a pointer for writing unrecorded data next. After that, the data length and the content of unrecorded data are stored as one block. At this time, the size of the area for storing the contents of the unrecorded data may be fixed or variable.
【0017】図4は、未記録データAと、未記録データ
Bと、未記録データCとを順に格納した場合の作業領域
15の状態を示している。未記録データAだけを格納し
た状態では、未記録データ先頭ポインタには、データ長
Aのポインタが格納されており、次に書き込むポインタ
には未記録データAの次のポインタが格納されている。
未記録データB、未記録データCが書き込まれる度に、
次に書き込むポインタを後ろにずらしていき、未記録デ
ータCが書き込まれた後は、次に書き込むポインタは未
記録データCの次を指している。FIG. 4 shows the state of the work area 15 when the unrecorded data A, the unrecorded data B, and the unrecorded data C are stored in order. When only the unrecorded data A is stored, the pointer of the data length A is stored in the unrecorded data head pointer, and the pointer next to the unrecorded data A is stored in the pointer to be written next.
Each time the unrecorded data B and the unrecorded data C are written,
After writing the unrecorded data C, the pointer to be written next is moved backward, and the pointer to be written next points to the next of the unrecorded data C.
【0018】図5は、図4に示す状態の後、レジューム
時に未記録データAだけフラッシュROM3へのコピー
に成功し、その後未記録データDを作業領域に格納した
状態である。図4の状態でサスペンド(記録保持)し、
次回レジュームした時点で電池電圧が復帰しており、未
記録データAをフラッシュROM3にコピーできた場
合、未記録データ先頭ポインタをデータ長Bにずらす。
この時点で電池電圧が低下し、フラッシュROM3への
書き込みが行えなくなった場合は、フラッシュROM3
へのデータのコピーを中断する。この場合、すべての未
記録データがコピーされたわけではないので、未記録フ
ラグ14は“1”のままとしておく。新たに、未記録デ
ータDが作業領域15に格納された場合には、次に書き
込むポインタを未記録データDの次にずらす。次回レジ
ューム時に電池電圧が復帰していれば、未記録データ先
頭ポインタが示す未記録データBからコピーを開始す
る。FIG. 5 shows a state in which after the state shown in FIG. 4, only the unrecorded data A has been successfully copied to the flash ROM 3 at the time of resume, and then the unrecorded data D is stored in the work area. Suspend (record hold) in the state of Fig. 4,
When the battery voltage is restored at the next resume and the unrecorded data A can be copied to the flash ROM 3, the unrecorded data start pointer is shifted to the data length B.
If the battery voltage drops at this point and writing to the flash ROM 3 becomes impossible, the flash ROM 3
Suspend copying of data to. In this case, not all unrecorded data has been copied, so the unrecorded flag 14 remains "1". When the unrecorded data D is newly stored in the work area 15, the pointer to be written next is shifted to the position next to the unrecorded data D. If the battery voltage is restored at the next resume, copying is started from the unrecorded data B indicated by the unrecorded data start pointer.
【0019】上記の実施形態例では、作業領域15の構
造を図4に示すように、データ長と未記録データの内容
とを1ブロックとしたが、複数種類のデータをフラッシ
ュROM3に書き込むシステムでは、図6に示すように
データ種別を加えることで対応可能である。例えば、デ
ータ種別が“1”であれば、記録できなかったデータの
内容は消耗部品の利用状況を示し、利用時間や利用回数
等のデータを格納する。データ種別が“2”であれば、
記録できなかったデータの内容はメモリ誤りの発生状況
を示し、メモリ誤りの発生時間や発生アドレス等のデー
タを格納する。レジューム時のデータ記録制御部12で
は、データ長とデータ種別を参照し、データ種別に従っ
て、適切なフラッシュROM3のエリアへデータをコピ
ーすればよい。In the embodiment described above, the work area 15 has a structure in which the data length and the contents of unrecorded data are one block as shown in FIG. 4, but in a system for writing a plurality of types of data in the flash ROM 3. This can be dealt with by adding a data type as shown in FIG. For example, if the data type is "1", the contents of the data that could not be recorded indicate the usage status of the consumable parts, and data such as usage time and usage count are stored. If the data type is “2”,
The content of the data that could not be recorded indicates the occurrence status of the memory error, and the data such as the memory error occurrence time and the occurrence address is stored. The data recording control unit 12 at the time of resume may refer to the data length and the data type and copy the data to an appropriate area of the flash ROM 3 according to the data type.
【0020】[0020]
【発明の効果】以上説明したように本発明によれば、電
池の電圧低下によりフラッシュ・メモリへのデータの記
録が行えない場合に、予備電池により記録保持が支援さ
れたメモリに該データを記録しておき、電池の電圧が正
常値に復帰した状態でレジューム処理が行われる場合
に、該データをフラッシュ・メモリへ記録し直すので、
データを自動的に漏れることなく正しくフラッシュ・メ
モリへ記録でき、フラッシュ・メモリ内のデータの信頼
性が高まる。このことにより、たとえば、メモリ誤りの
発生状況等をフラッシュ・メモリに自動記録するシステ
ムの場合、従来よりも信頼性の高い情報が得られ、障害
解析時の正確なデータとして役立つ。As described above, according to the present invention, when the data cannot be recorded in the flash memory due to the voltage drop of the battery, the data is recorded in the memory whose record retention is supported by the spare battery. Since the data is re-recorded in the flash memory when the resume process is performed with the battery voltage returned to the normal value,
Data can be automatically and correctly recorded in the flash memory without leakage, and the reliability of the data in the flash memory is improved. As a result, for example, in the case of a system for automatically recording the occurrence status of a memory error in the flash memory, more reliable information than before can be obtained, which is useful as accurate data during failure analysis.
【図1】本発明の一実施の形態を示すブロック構成図で
ある。FIG. 1 is a block diagram showing an embodiment of the present invention.
【図2】図1に示すデータ記録制御部の動作を示すフロ
ーチャートである。FIG. 2 is a flowchart showing an operation of a data recording control unit shown in FIG.
【図3】図1に示すレジューム時のデータ記録制御部の
動作を示すフローチャートである。FIG. 3 is a flowchart showing an operation of a data recording control unit at the time of resume shown in FIG.
【図4】作業領域のデータ格納構造例を示す図である。FIG. 4 is a diagram showing an example of a data storage structure of a work area.
【図5】作業領域のデータ格納構造の他の例を示す図で
ある。FIG. 5 is a diagram showing another example of a data storage structure of a work area.
【図6】作業領域のデータ格納構造のさらに他の例を示
す図である。FIG. 6 is a diagram showing still another example of the data storage structure of the work area.
【図7】従来技術を示すブロック構成図である。FIG. 7 is a block diagram showing a conventional technique.
1 フラッシュROMのデータ記録装置 3 フラッシュROM 4 電池 5 バックアップ電池 11 データ記録制御部 12 レジューム時のデータ記録制御部 14 未記録フラグ 15 作業領域 111,122 電池電圧チェック手段 112 フラッシュROMへの記録手段 113 未記録フラグ設定手段 114 作業領域への記録手段 121 未記録フラグチェック手段 123 作業領域からフラッシュROMへのコピー手
段 124 未記録フラグクリア手段1 Flash ROM Data Recording Device 3 Flash ROM 4 Battery 5 Backup Battery 11 Data Recording Control Unit 12 Data Recording Control Unit at Resume 14 Unrecorded Flag 15 Working Area 111, 122 Battery Voltage Checking Means 112 Flash ROM Recording Means 113 Unrecorded flag setting means 114 Recording means to work area 121 Unrecorded flag check means 123 Copy means from work area to flash ROM 124 Unrecorded flag clear means
Claims (2)
のバックアップにより切断直前の動作状態を一時記憶し
ておき電源再投入時に該動作状態を再現するサスペンド
及びレジューム機能を有し、動作中に得られた記録が必
要なデータを記録保持のための電源が不要なフラッシュ
・メモリへ記録する携帯型情報処理システムに用いら
れ、前記フラッシュ・メモリへのデータの記録を制御す
るデータ記録装置において、 前記電池の電圧低下により前記フラッシュ・メモリへの
データの記録が行えない場合に、前記予備電池により記
録保持が支援されたメモリに該データを記録しておき、
前記電池の電圧が正常値に復帰した状態でレジューム処
理が行われる場合に、該データを前記フラッシュ・メモ
リへ記録し直すことを特徴とする携帯型情報処理システ
ムのフラッシュ・メモリのデータ記録装置。1. A battery is used as a power source, and when the power is turned off, a backup battery backup is used to temporarily store the operating state immediately before the disconnection, and when the power is turned on again, the suspending and resuming functions are provided to reproduce the operating state. A data recording device used in a portable information processing system for recording the obtained data required to be recorded in a flash memory that does not require a power supply for record retention, and in a data recording device for controlling the recording of data in the flash memory, When data cannot be recorded in the flash memory due to the voltage drop of the battery, the data is recorded in a memory whose record retention is supported by the spare battery,
A data recording device for a flash memory of a portable information processing system, wherein the data is re-recorded in the flash memory when a resume process is performed in a state where the voltage of the battery returns to a normal value.
の電圧値が前記フラッシュ・メモリにデータを書き込む
ことができる値か判定する電池電圧チェック手段と、 前記フラッシュ・メモリへのデータ記録の成否を記録す
る予備電池により記録保持が支援されたメモリ上の未記
録フラグと、 前記フラッシュ・メモリに記録できなかったデータをい
ったん記録する前記予備電池により記録保持が支援され
たメモリ上の作業領域と、 通常時にデータ記録指示を受けると、前記電池電圧チェ
ック手段の判定結果を参照して前記フラッシュ・メモリ
へのデータ書き込みの可否を判定し、データ書き込み可
能ならば該当するデータを前記フラッシュ・メモリに記
録し、データ書き込み不可能ならば前記フラッシュ・メ
モリへのデータ記録ができなかった旨を前記未記録フラ
グに設定するとともに、該当するデータを一時的に前記
作業領域に記録する手段と、 レジューム時に起動され、前記未記録フラグの設定内容
を参照して前記フラッシュ・メモリに記録できなかった
データの有無を判定するとともに前記電池電圧チェック
手段の判定結果を参照して前記フラッシュ・メモリへの
データ書き込みの可否を判定し、未記録のデータがあ
り、かつ、電源電圧が正常値であれば、前記作業領域に
一時記録された前回書き込むことができなかったデータ
を前記フラッシュ・メモリに記録し、前記未記録フラグ
の設定内容をクリアする手段とを有することを特徴とす
る請求項1記載の携帯型情報処理システムのフラッシュ
・メモリのデータ記録装置。2. A battery voltage check means for determining whether or not a voltage value of a battery serving as a power source for the flash memory is a value at which data can be written in the flash memory, and a success or failure of data recording in the flash memory. An unrecorded flag on a memory whose record retention is supported by a reserve battery for recording, and a work area on the memory where record retention is supported by the reserve battery for once recording data that could not be recorded in the flash memory, When a data recording instruction is received during normal operation, it is determined whether or not data writing to the flash memory is possible by referring to the determination result of the battery voltage check means, and if data writing is possible, the corresponding data is recorded in the flash memory. However, if the data cannot be written, the data could not be recorded in the flash memory. A message to that effect is set in the unrecorded flag, and means for temporarily recording the corresponding data in the work area, and a means for starting the operation upon resume and recording the data in the flash memory by referring to the set content of the unrecorded flag. The presence / absence of missing data is determined, and the determination result of the battery voltage check means is referred to determine whether data writing to the flash memory is possible.There is unrecorded data, and the power supply voltage is normal. If there is, it has means for recording the data which could not be written last time, which was temporarily recorded in the working area, in the flash memory, and for clearing the setting contents of the unrecorded flag. A data recording device for a flash memory of the portable information processing system described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10142296A JP2859205B2 (en) | 1996-04-23 | 1996-04-23 | Data recording device and data recording method for flash memory of portable information processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10142296A JP2859205B2 (en) | 1996-04-23 | 1996-04-23 | Data recording device and data recording method for flash memory of portable information processing system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH09288646A true JPH09288646A (en) | 1997-11-04 |
JP2859205B2 JP2859205B2 (en) | 1999-02-17 |
Family
ID=14300281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10142296A Expired - Fee Related JP2859205B2 (en) | 1996-04-23 | 1996-04-23 | Data recording device and data recording method for flash memory of portable information processing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2859205B2 (en) |
Cited By (2)
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 |
JP7170117B1 (en) * | 2021-12-01 | 2022-11-11 | ウィンボンド エレクトロニクス コーポレーション | semiconductor storage device |
-
1996
- 1996-04-23 JP JP10142296A patent/JP2859205B2/en not_active Expired - Fee Related
Cited By (3)
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 |
JP7170117B1 (en) * | 2021-12-01 | 2022-11-11 | ウィンボンド エレクトロニクス コーポレーション | semiconductor storage device |
Also Published As
Publication number | Publication date |
---|---|
JP2859205B2 (en) | 1999-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6553532B1 (en) | Method and apparatus for recording and reproducing information on and from disk | |
US7133599B2 (en) | Realtime data recording method | |
JP2004030879A5 (en) | ||
US8068397B2 (en) | Recording apparatus and recording method for recording position information of user data | |
US6882493B2 (en) | Data recording apparatus and data erasing apparatus capable of performing restoration when power supply malfunction occurs during recording or erasing | |
US5233591A (en) | Auto changer apparatus with a defect control memory | |
JPH1166751A (en) | Information recording and reproducing device | |
US6956798B2 (en) | Information recording apparatus and method for recording information on recording medium | |
JP2859205B2 (en) | Data recording device and data recording method for flash memory of portable information processing system | |
US7062682B2 (en) | Data recorder and data recording method avoiding data loss due to data transfer error | |
RU2384897C2 (en) | Method and device for recording data onto recording medium | |
US20030007783A1 (en) | Recording/reproducingdisk control device and disc apparatus comprising the same | |
US6108289A (en) | Optical disc recording apparatus for overwriting information on a previously recorded packet of an optical disc | |
JP3751116B2 (en) | Disc type recording / reproducing apparatus using a replaceable disc, and recording / reproducing method | |
JP3921751B2 (en) | Recording apparatus, recording method, and recording / reproducing apparatus | |
JPH09312084A (en) | Information recording device | |
JPH06332795A (en) | Electrically erasable nonvolatile memory controlling method and system therefor | |
JP3458392B2 (en) | Still camera | |
JP2000307987A (en) | Video / audio recording / playback device | |
JP2005175567A (en) | Optical disc video camera | |
JPH0512092A (en) | Device and system for reproducing information record and information recording media | |
JPH1186512A (en) | Data rewriting method for optical disk | |
JPH10124404A (en) | Recording and playback device | |
JP4053244B2 (en) | Information recording / reproducing system and information recording / reproducing method | |
JPH03192565A (en) | Auto-changer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19981110 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071204 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081204 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091204 Year of fee payment: 11 |
|
LAPS | Cancellation because of no payment of annual fees |