JPH03220652A - Control system for non-volatile memory - Google Patents

Control system for non-volatile memory

Info

Publication number
JPH03220652A
JPH03220652A JP2017397A JP1739790A JPH03220652A JP H03220652 A JPH03220652 A JP H03220652A JP 2017397 A JP2017397 A JP 2017397A JP 1739790 A JP1739790 A JP 1739790A JP H03220652 A JPH03220652 A JP H03220652A
Authority
JP
Japan
Prior art keywords
data
area
check
address
volatile memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017397A
Other languages
Japanese (ja)
Other versions
JP3041007B2 (en
Inventor
Eiji Terawaki
寺脇 英次
Kiyoshi Hattori
清 服部
Shinya Takahashi
真也 高橋
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2017397A priority Critical patent/JP3041007B2/en
Publication of JPH03220652A publication Critical patent/JPH03220652A/en
Application granted granted Critical
Publication of JP3041007B2 publication Critical patent/JP3041007B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To correctly compensate contents in a memory area when a power source is activated although it is once turned off by setting information concerning the memory area to be checked in a non-volatile memory (NVM) to the prescribed set area of the NVM. CONSTITUTION:Out of data stored in an NVM 10, especially important data such as the ID number of a radio telephone system, for example, is stored in a data area 11 and each time an electronic equipment is activated for securing the reliability of the electronic equipment, an operation check is executed to the data area 11. As a work area for this operation check, a set area 12 is provided in the NVM 10 and an initial data save area 21 is provided in a RAM 20. Thus, even when the data in the memory area under the check is made still illegal by the interruption of the power source during the check, the data can be correctly compensated based on the information set in the set area when the power source is next turned on.

Description

【発明の詳細な説明】 [発明の目的コ (産業上の利用分野) 本発明は、不揮発性メモリの管理方式に関する。[Detailed description of the invention] [Purpose of the invention] (Industrial application field) The present invention relates to a nonvolatile memory management method.

(従来の技術) 近年、各種情報をディジタルデータとして処理する電子
機器が普及しつつある。
(Prior Art) In recent years, electronic devices that process various types of information as digital data have become widespread.

これら電子機器のなかには、例えば自動車電話装置に記
憶されているID番号や短縮番号登録された電話番号な
どのように、−度記憶されたならば電子機器に電源が供
給されない状況にあってもデータか消滅せず、しかも記
憶されたデータが書換え可能であることが要求されるも
のがある。
Some of these electronic devices, such as ID numbers stored in car phone devices or phone numbers registered as abbreviated numbers, can be stored for a certain amount of time even when power is not supplied to the electronic device. There are some types of data that do not disappear and require that the stored data be rewritable.

このような要求のある電子機器においては、電池により
バックアップされたRAMやEE−FROM (Ele
ctrically Erasable and Pr
ogramableROM 、電気的消去可能FROM
)等、データを任意に書換えることができかつ電子機器
本体に電源が供給されていなくともデータを保存可能な
いわゆる不揮発性メモリ(Non−volatile 
Memory ;以下、NVMと略す。)にデータを記
憶することが広く行われてきた。
In electronic devices with such requirements, battery-backed RAM and EE-FROM (ELE
Critically Erasable and Pr
ogramable ROM, electrically erasable FROM
), etc., so-called non-volatile memory that can rewrite data at will and store data even when power is not supplied to the electronic device itself.
Memory; hereinafter abbreviated as NVM. ) has been widely used to store data.

ところで、これらNVMに記憶されるデータは比較的重
要なデータであることが多く、データの書換えの際にN
VMが誤動作するようなことがあれば、この電子機器の
ユーザに様々な被害かもたらされる。
By the way, the data stored in these NVMs is often relatively important data, and when rewriting the data, the NVM
If the VM malfunctions, various damages will be caused to the users of this electronic device.

このため、電子機器が起動された時点でこれら重要なデ
ータか記憶されている記憶領域に対して、NVMの動作
が正常であるか否かのチェックを行うことか規定されて
いる電子機器もある。
For this reason, some electronic devices are stipulated to check whether the NVM is operating normally or not on the storage area where these important data are stored when the electronic device is started. .

このような電子機器におけるNVMの動作チェックでは
、既に記憶されているデータを破壊せずに動作チェック
を行わなければならない。
When checking the operation of NVM in such electronic equipment, it is necessary to check the operation without destroying already stored data.

次に、記憶されているデータを破壊せずに動作チェック
を行うNVMの管理方式の一例を、第4図に示すフロー
チャートを用いて説明する。
Next, an example of an NVM management method for checking the operation without destroying stored data will be explained using the flowchart shown in FIG.

まず、NVM上の動作チェックを行おうとするアドレス
(以下、チェックアドレスと呼ぶ。)の初期データをR
AMへ退避させる(ステップ401)次に、この初期デ
ータの各ビットを論理反転させて生成したチェックデー
タをチェックアドレスに書込む。(ステップ402)。
First, R
Saving to AM (Step 401) Next, check data generated by logically inverting each bit of this initial data is written to the check address. (Step 402).

この後、チェックアドレスに書込んだチェックデータを
読出しくステップ403) 、読出したチェックデータ
とRAMに格納されている初期データの各ビットを論理
反転させたものとを比較する(ステップ404)。
Thereafter, the check data written to the check address is read out (step 403), and the read check data is compared with the logically inverted version of each bit of the initial data stored in the RAM (step 404).

そして、これらのデータを比較したところ両者が一致す
るならば、このチェックアドレスは正常に動作するもの
と判断され、RAMに格納されている初期データが再び
チェックアドレスに戻される(ステップ405)。また
、これらのデータが不一致であれば、このチェックアド
レスにおいてNVMの動作に異常があったと判断され、
所定のエラー処理が行われる。
When these data are compared, if they match, it is determined that this check address operates normally, and the initial data stored in the RAM is returned to the check address (step 405). Additionally, if these data do not match, it is determined that there is an abnormality in the NVM operation at this check address.
Predetermined error handling is performed.

この後、次にチェックするアドレスが残っているか否か
が調べられ(ステップ40B) 、次にチェックするア
ドレスか残っている場合には、次にチェックするアドレ
スをチェックアドレスとして(ステップ407) 、さ
らに動作チェックが続けられる(ステップ401)。ま
た、次にチェックを行うアドレスがない場合には、全ア
ドレスにおいて動作が正常であったものとして処理が終
了される。
After this, it is checked whether there is an address left to check next (step 40B), and if there is an address left to check next, the address to be checked next is set as the check address (step 407), and then Operational checking continues (step 401). If there is no address to be checked next, it is assumed that all addresses are operating normally and the process is terminated.

従来は、このようにしてNVMの所定の領域の動作チェ
ックを、その領域に記憶されているデ夕を破壊すること
なく行っていた。
Conventionally, the operation of a predetermined area of the NVM was checked in this way without destroying the data stored in that area.

ところで、上述したNVMの管理方式では、チェックア
ドレスの初期データをRAMに退避させてからチェック
データをチェックアドレスに書込むことで、NvMに記
憶されているデータが破壊されるのを防いでいる。
By the way, in the above-mentioned NVM management method, the data stored in the NVM is prevented from being destroyed by saving the initial data of the check address to the RAM and then writing the check data to the check address.

しかしながら、ステップ402からステップ404の間
で電子機器の電源を断とされた場合、揮発性のRAMに
記憶されているチェックアドレスの初期データは消失し
てしまい、NVMのチェックアドレスにはチェックデー
タが書込まれたままになるという問題があった。
However, if the electronic device is powered off between steps 402 and 404, the initial data of the check address stored in the volatile RAM will be lost, and the check address of the NVM will contain no check data. There was a problem that the data remained written.

(発明が解決しようとする課題) 上述したように、従来の不揮発性メモリの管理方式では
、不揮発性メモリの動作チェック中に電子機器の電源を
断とされた場合、そのタイミングによっては不揮発性メ
モリの記憶内容が破壊されてしまうという問題があった
(Problem to be Solved by the Invention) As described above, in the conventional nonvolatile memory management method, if the power of an electronic device is turned off while checking the operation of the nonvolatile memory, depending on the timing, the nonvolatile memory may There was a problem that the memory contents of the computer would be destroyed.

本発明はこのような点に対処してなされたもので、不揮
発性メモリの動作チェック中に電源を断とされても不揮
発性メモリの記憶内容を補償できる不揮発性メモリの管
理方式を提供するものである。
The present invention has been made in view of the above-mentioned problems, and provides a nonvolatile memory management method that can compensate for the stored contents of the nonvolatile memory even if the power is cut off during an operation check of the nonvolatile memory. It is.

[発明の構成] (課題を解決するための手段) 本発明は、不揮発性メモリを備えた電子装置において、
前記不揮発性メモリの所定の記憶領域の記憶内容をチェ
ックするにあたり、前記不揮発性メモリに少なくとも前
記記憶領域の記憶内容及び該記憶領域の該不揮発性メモ
リ上における位置情報からなる補償情報ならびに該記憶
領域のチェックか行われているか否かを示すフラグを設
定する設定領域を設け、該記憶領域のチェックを行う際
に前記設定領域に前記補償情報を設定するとともに前記
フラグをセット状態とする一方、該記憶領域のチェック
が終了したとき該フラグをリセット状態とし、前記電子
装置に電源が投入された後に該フラグのセット状態が検
出された場合は、前記設定領域に設定された前記補償情
報に基づいて前記記憶領域の記憶内容が補償するもので
ある。
[Structure of the Invention] (Means for Solving the Problems) The present invention provides an electronic device including a nonvolatile memory.
When checking the storage contents of a predetermined storage area of the non-volatile memory, compensation information consisting of at least the storage contents of the storage area and position information of the storage area on the non-volatile memory, and the storage area are stored in the non-volatile memory. A setting area is provided for setting a flag indicating whether or not a check is being performed, and when checking the storage area, the compensation information is set in the setting area and the flag is set; When the check of the storage area is completed, the flag is set to a reset state, and if the set state of the flag is detected after the electronic device is powered on, the flag is reset based on the compensation information set in the setting area. The storage contents of the storage area are for compensation.

(作 用) 本発明では、不揮発性メモリの記憶内容のチェックをす
る際に、チェックをする記憶領域に関する情報か、不揮
発性メモリの所定の設定領域に設定される。
(Function) In the present invention, when checking the storage contents of the nonvolatile memory, information regarding the storage area to be checked is set in a predetermined setting area of the nonvolatile memory.

従って、チェック中に電源を断とされてチェックしてい
た記憶領域内のデータか不正なままとなっても、次に起
動された際に、設定領域に設定された情報に基づいて正
しいデータに補償できる。
Therefore, even if the power is turned off during a check and the data in the storage area being checked remains incorrect, the next time it is started, the data will be correct based on the information set in the setting area. It can be compensated.

(実施例) 以下、本発明の実施例を図面を用いて説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例に係わる不揮発性メモリ(以
下、NVMと略す。)の管理方式におけるメモリ配置を
示す図である。
FIG. 1 is a diagram showing a memory arrangement in a nonvolatile memory (hereinafter abbreviated as NVM) management system according to an embodiment of the present invention.

同図において、10はEE−PROMや電池によりバッ
クアップされたRAMなど 8ビットのブタを任意のア
ドレスにリード・ライト可能なNVM、20は同様に8
ビツトのデータを任意のアドレスにり−1・・ライト可
能な揮発性のRAMである。
In the same figure, 10 is an NVM that can read and write 8-bit data such as EE-PROM or battery-backed RAM to any address, and 20 is also an 8-bit memory.
It is a volatile RAM in which bit data can be written to an arbitrary address.

NVMIOには、常時保持されている必要のあるデータ
が記憶されている。
NVMIO stores data that must be maintained at all times.

NVMIOに記憶されているデータの中で特に重要なデ
ータ、たとえば無線電話装置におけるより番号などはデ
ータ領域11に記憶されており、電子機器の信頼性を確
保するため電子機器の起動毎にデータ領域11に対して
動作チェックが行われる。
Particularly important data among the data stored in NVMIO, such as the dialing number of a wireless telephone device, is stored in the data area 11, and in order to ensure the reliability of the electronic device, the data area is saved every time the electronic device is started. 11 is checked for operation.

この動作チェック時の作業領域として、NVMloに設
定領域12が、またRAM20に初期ブタ退避領域21
が設けられている。
As a work area during this operation check, a setting area 12 is set in NVMlo, and an initial pig save area 21 is set in RAM 20.
is provided.

なお、CAはデータ領域11内のチェックを行うアドレ
ス、DTはアドレスCAに記憶されている初期データ、
SAI〜SA3は設定領域12に設定されている各デー
タのアドレスを示す。
Note that CA is the address to be checked in the data area 11, DT is the initial data stored in address CA,
SAI to SA3 indicate addresses of each data set in the setting area 12.

このように配置されたメモリを用いたNVMの動作チェ
ックを行う手順を第2図に示すフローチャートに従って
説明する。
The procedure for checking the operation of NVM using the memory arranged in this way will be explained according to the flowchart shown in FIG.

まず、チェックアドレスCAに記憶されている初期デー
タDTを初期データ格納アドレスSA2に格納する(ス
テップ201)。
First, the initial data DT stored in the check address CA is stored in the initial data storage address SA2 (step 201).

次いで、チェックアドレスCAのアドレス値をチェック
アドレス値格納アドレスSA3に格納する(ステップ2
02)。
Next, the address value of the check address CA is stored in the check address value storage address SA3 (step 2
02).

また、チェックアドレスCAのデータが反転しているこ
とを示す反転中フラグをデータ反転中フラグ格納アドレ
スSAIにセットする(ステップ203)。これは、デ
ータ反転中フラグ格納アドレスSAIに例えば“OIH
″を格納することで行われる。
Further, an inversion flag indicating that the data at the check address CA is inverted is set in the data inversion flag storage address SAI (step 203). This means that, for example, “OIH
This is done by storing ``.

以上の操作により、初期データとチェックアドレス値と
データ反転中フラグから構成されるチェックアドレス情
報がNVMIOの設定領域12に設定される。
Through the above operations, check address information consisting of initial data, check address value, and data inversion flag is set in the NVMIO setting area 12.

さらに、初期データDTはRAM20の初期ブタ退避領
域2]に退避される(ステップ204)。
Further, the initial data DT is saved in the initial pig save area 2 of the RAM 20 (step 204).

この後、チェックアドレスCAに初期データDTの各ビ
ットを論理反転させたチェックデータを0 書込む(ステップ205)。これは、チェックアドレス
CAの初期データDTが例えば“]、 0101111
B″ならば、各ビットを論理反転させた“01.010
000 B”がチェックアドレスCAに書込まれる。
Thereafter, check data obtained by logically inverting each bit of the initial data DT is written to the check address CA (step 205). This means that the initial data DT of the check address CA is, for example, "], 0101111
B'', each bit is logically inverted and is 01.010.
000 B" is written to check address CA.

そして、チェックアドレスCAに書込まれたチェックデ
ータを読出しくステップ206)、読出したチェックデ
ータと初期データ退避領域2]に退避されている初期デ
ータDTの各ビットを論理反転させたものとを比較する
(ステップ207)。これは、チェックアドレスCAに
書込またチェックデータが初期データDT(“1010
11 ]、 I B”)の各ビットを論理反転させたも
の(“O]010000B“)なので、このアドレスの
動作が正常であれば読出したチェックデータも’010
10000B”である。従って、読出したチェックデー
タと初期データ退避領域21に退避されている初期デー
タDTの各ビットを論理反転させたもの(“010 ]
、 0000 B”)とを比較し、両者が一致する場合
にはチェックアドレスCAの動作] ] は正常であると判断し、初期データ退避領域2]に退避
されている初期データDTをチェックアドレスCAに戻
す(ステップ208)。
Then, the check data written to the check address CA is read (Step 206), and the read check data is compared with the logically inverted version of each bit of the initial data DT saved in the initial data save area 2]. (step 207). This means that the check data written to the check address CA is the initial data DT (“1010
11], IB”) is logically inverted (“O]010000B”), so if the operation at this address is normal, the read check data will also be '010
10000B". Therefore, the read check data and each bit of the initial data DT saved in the initial data save area 21 are logically inverted ("010").
, 0000 B"), and if they match, it is determined that the operation of the check address CA is normal, and the initial data DT saved in the initial data save area 2 is transferred to the check address CA. (step 208).

なお、比較の結果が不一致であった場合は、所定のエラ
ー処理が行われる。
Note that if the comparison result is a mismatch, predetermined error processing is performed.

この後、データ反転中フラグをリセットする。After this, the data inversion flag is reset.

これは、データ反転中フラグ格納アドレスSA]に例え
ば“OOH”を格納することで行われる。
This is done by storing, for example, "OOH" in the data inversion flag storage address SA].

そして、次にチェックを行うアドレスが残っているか否
かが調べられる(ステップ210)。
Then, it is checked whether there are any remaining addresses to be checked next (step 210).

調べた結果、チェックを行うアドレスが残っていれば、
次のチェックアドレスを設定しくステップ21.1)、
そのチェックアドレスの動作チェックが行われる(ステ
ップ201)。なお、チェックを行うアドレスが残って
いない場合は正′浩終了となる。
As a result of the investigation, if there are any addresses left to check,
Set the next check address (step 21.1),
The operation of the check address is checked (step 201). Note that if there are no addresses remaining to be checked, the process ends.

上述した動作チェックのフローにおいて、ステップ20
5からステップ207の間で電子機器の電源を断とされ
た場合、チェックアドレスCAにはチェックデータが書
込まれたままとなってしまう。
In the operation check flow described above, step 20
If the electronic device is powered off between Step 5 and Step 207, the check data will remain written in the check address CA.

2 しかしながら、NVMl、0の設定領域12にはチェッ
クアドレス補償情報が設定されているので、これに基づ
いてチェックアドレスCAのデータを初期データDTに
補償することができる。
2 However, since the check address compensation information is set in the setting area 12 of NVMl,0, it is possible to compensate the data of the check address CA to the initial data DT based on this.

第3図はチェックアドレスCAのデータをチェックアド
レス補償情報に基づいて補償する手順を示すフローチャ
ートである。
FIG. 3 is a flowchart showing a procedure for compensating data of check address CA based on check address compensation information.

まず、N V M ]、 0の設定領域12のデータ反
転中フラグ格納アドレスSAコの内容が読出されてデー
タ反転中フラグがセットされているか否かが調べられる
。(ステップ301)。
First, the contents of the data inversion flag storage address SA in the setting area 12 of N VM ], 0 are read to check whether the data inversion flag is set. (Step 301).

その結果、データ反転中フラグがセットされている(デ
ータ反転中フラグ格納アドレスSAIの内容が“OIH
”)ならば、初期データ格納アドレスSA2に格納され
ている初期データDTを、チェックアドレス値格納アド
レスSA3に格納されているアドレス値が示すチェック
アドレスCAに戻す(ステップ302)。なお、データ
反転中フラグかりセットされている(データ反転中フラ
グ格納アドレスSAIの内容か“OOH”)ならば、3 チェックアドレスCAに記憶されているデータは破壊さ
れていないので、処理を終了する。
As a result, the data inversion flag is set (the content of the data inversion flag storage address SAI is “OIH
”), the initial data DT stored in the initial data storage address SA2 is returned to the check address CA indicated by the address value stored in the check address value storage address SA3 (step 302).Note that the data is being inverted. If the flag is set (the content of the data inversion flag storage address SAI is "OOH"), the data stored in the 3-check address CA has not been destroyed, and the process ends.

次いで、データ反転中フラグをリセットする(ステップ
303)。これは、ステップ209と同様にデータ反転
中フラグ格納アドレスSAIに“00H”を書込むこと
で行われる。
Next, the data inversion flag is reset (step 303). This is done by writing "00H" to the data inversion flag storage address SAI, similarly to step 209.

従って、動作チェック中に電源を断とされてNVMIO
に記憶されているデータが不正となった場合でも、NV
MIOの設定領域12にチェックアドレス情報が格納さ
れているので、これに基づいてチェックアドレスCAの
データを初期f−夕DTに補償することができる。
Therefore, the power was cut off during the operation check and the NVMIO
Even if the data stored in the NV becomes invalid, the NV
Since the check address information is stored in the setting area 12 of the MIO, it is possible to compensate the data of the check address CA to the initial f-date DT based on this information.

なお、上述の実施例ではチェックを行うブロックを 1
アドレスごととして説明したが、本発明はこれに限定さ
れるものではなく、データ領域1]を複数のアドレスか
らなるブロックに分割して動作チェックを行ってもよい
In addition, in the above embodiment, the blocks to be checked are 1
Although the explanation has been made for each address, the present invention is not limited thereto, and the operation check may be performed by dividing the data area 1 into blocks each consisting of a plurality of addresses.

また、本実施例では8ビツトのデータを扱う電子機器の
例で説明したが、16ビツトなど 8ビツト以外のデー
タを扱う電子機器であっても同様に適4 用することかできる。
Furthermore, although this embodiment has been explained using an example of an electronic device that handles 8-bit data, the present invention can be similarly applied to an electronic device that handles data other than 8-bit, such as 16-bit.

また、チェックデータに初期データの各ビットを論理反
転させたものを用いたが、他のビットパターンで構成さ
れるチェックデータを用いてもよい。
Furthermore, although the check data is obtained by logically inverting each bit of the initial data, check data composed of other bit patterns may be used.

さらに、本実施例ではRAM上に退避させた初期データ
をチェックアドレスに戻しているが、RAMを用いずに
NVMの設定領域に設定される初期データをチェックア
ドレスに戻すようにしてもよい。
Further, in this embodiment, the initial data saved on the RAM is returned to the check address, but the initial data set in the NVM setting area may be returned to the check address without using the RAM.

[発明の効果] 以上述べたように本発明では、不揮発性メモリのチェッ
クする記憶領域に関する情報か、不揮発性メモリの所定
の設定領域に設定される。
[Effects of the Invention] As described above, in the present invention, information regarding the storage area to be checked in the nonvolatile memory is set in a predetermined setting area of the nonvolatile memory.

従って、チェック中に電源を断とされて不揮発性メモリ
のチェックしている記憶領域内の記憶内容が不正のまま
となった場合であっても、次に起動された際に設定領域
に設定されている情報に基づいて記憶領域内の内容を正
しく補償することができる。
Therefore, even if the power is turned off during the check and the stored contents in the storage area being checked in the nonvolatile memory remain invalid, they will be set in the setting area the next time the device is started. The content in the storage area can be correctly compensated based on the information that is stored in the storage area.

] 5] 5

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

第1図は本発明の一実施例に係わる不揮発性メモリの管
理方式におけるメモリ配置を示す図、第2図は該実施例
における不揮発性メモリの動作チェックを行う手順を示
すフローチャート、第3図は該実施例における不揮発性
メモリのデータの補償を行う手順を示すフローチャート
、第4図は従来例の不揮発性メモリの動作チェックの手
順を示す図である。 10・・・NVM、コi−・・データ領域、12・・・
設定領域、20・・・RAM、21・・・退避領域、C
A・・チェックアドレス、DT・・・初期データ、SA
I・・ブタ反転中フラグ格納アドレス、SA2・・・初
期データ格納アドレス、SA3・・・チェックアドレス
値格納アドレス。
FIG. 1 is a diagram showing a memory arrangement in a non-volatile memory management system according to an embodiment of the present invention, FIG. 2 is a flowchart showing a procedure for checking the operation of non-volatile memory in the embodiment, and FIG. FIG. 4 is a flowchart showing the procedure for compensating data in the nonvolatile memory in this embodiment, and FIG. 4 is a diagram showing the procedure for checking the operation of the nonvolatile memory in the conventional example. 10...NVM, core i...data area, 12...
Setting area, 20...RAM, 21...Evacuation area, C
A...Check address, DT...Initial data, SA
I: Pig inversion flag storage address, SA2: Initial data storage address, SA3: Check address value storage address.

Claims (5)

【特許請求の範囲】[Claims] (1)不揮発性メモリを備えた電子装置において、前記
不揮発性メモリの所定の記憶領域の記憶内容をチェック
するにあたり、 前記不揮発性メモリに少なくとも前記記憶領域の記憶内
容及び該記憶領域の該不揮発性メモリ上における位置情
報からなる補償情報ならびに該記憶領域のチェックが行
われているか否かを示すフラグを設定する設定領域を設
け、該記憶領域のチェックを行う際に前記設定領域に前
記補償情報を設定するとともに前記フラグをセット状態
とする一方、該記憶領域のチェックが終了したとき該フ
ラグをリセット状態とし、前記電子装置に電源が投入さ
れた後に該フラグのセット状態が検出された場合は、前
記設定領域に設定された前記補償情報に基づいて前記記
憶領域の記憶内容が補償されることを特徴とする不揮発
性メモリの管理方式。
(1) In an electronic device equipped with a non-volatile memory, when checking the storage contents of a predetermined storage area of the non-volatile memory, at least the storage contents of the storage area and the non-volatile storage area of the storage area are stored in the non-volatile memory. A setting area is provided for setting compensation information consisting of position information on the memory and a flag indicating whether or not the storage area is being checked, and when checking the storage area, the compensation information is set in the setting area. When setting the flag, the flag is set to a set state, and when the check of the storage area is completed, the flag is set to a reset state, and if the set state of the flag is detected after the electronic device is powered on, A nonvolatile memory management method, characterized in that storage contents of the storage area are compensated based on the compensation information set in the setting area.
(2)不揮発性メモリは、EE−PROM(Elect
rically Erasable and Prog
ramab1e ROM)であることを特徴とする請求
項1記載の不揮発性メモリの管理方式。
(2) Non-volatile memory is EE-PROM (Elect
Rally Erasable and Prog
2. The non-volatile memory management method according to claim 1, wherein the non-volatile memory is a non-volatile memory (ROM).
(3)電子装置は、無線電話装置であることを特徴とす
る請求項1記載の不揮発性メモリの管理方式。
(3) The nonvolatile memory management method according to claim 1, wherein the electronic device is a wireless telephone device.
(4)動作チェックは所定のチェックデータを不揮発性
メモリに入出力して行うことを特徴とする請求項1記載
の不揮発性メモリの管理方式。
(4) The nonvolatile memory management system according to claim 1, wherein the operation check is performed by inputting/outputting predetermined check data to the nonvolatile memory.
(5)動作チェックの行われる領域は 1アドレスから
構成されることを特徴とする請求項1記載の不揮発性メ
モリの管理方式。
(5) The non-volatile memory management system according to claim 1, wherein the area in which the operation check is performed consists of one address.
JP2017397A 1990-01-25 1990-01-25 Non-volatile memory management method Expired - Fee Related JP3041007B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017397A JP3041007B2 (en) 1990-01-25 1990-01-25 Non-volatile memory management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017397A JP3041007B2 (en) 1990-01-25 1990-01-25 Non-volatile memory management method

Publications (2)

Publication Number Publication Date
JPH03220652A true JPH03220652A (en) 1991-09-27
JP3041007B2 JP3041007B2 (en) 2000-05-15

Family

ID=11942861

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017397A Expired - Fee Related JP3041007B2 (en) 1990-01-25 1990-01-25 Non-volatile memory management method

Country Status (1)

Country Link
JP (1) JP3041007B2 (en)

Also Published As

Publication number Publication date
JP3041007B2 (en) 2000-05-15

Similar Documents

Publication Publication Date Title
US7849382B2 (en) Memory control circuit, nonvolatile storage apparatus, and memory control method
JP2002351685A (en) Data updating method and controller for nonvolatile memory
JP2990181B1 (en) Flash memory, microcomputer having flash memory, and method of storing program in flash memory
US7903474B2 (en) Redundant purge for flash storage device
RU2248627C2 (en) Method and device for changing content of memory devices of control blocks
JP2000222292A (en) Data managing method utilizing flash memory
JPH03220652A (en) Control system for non-volatile memory
JP2002244932A (en) Control device
JPH1097471A (en) Error correction method and error correction method for memory data
US7313648B2 (en) Corruption tolerant method and system for deploying and modifying data in flash memory
JP2000243093A (en) Data storing method for flash memory and data reading out method from flash memory
JP4031693B2 (en) Nonvolatile memory and data storage device having the same
JPH06180674A (en) Data storage device
US20050068842A1 (en) Electronic device, nonvolatile memory and method of overwriting data in nonvolatile memory
JPS63230370A (en) Printer device
JP2005128613A (en) Image forming device
JPH10161942A (en) Information storage method, information storage device, and information processing device
JPS62162140A (en) Computer system
JPH0756640B2 (en) Storage device
JP3789248B2 (en) Program loading method, program loading apparatus and recording medium therefor
JPH03220651A (en) Writing system for non-volatile memory
JPS62251833A (en) computer system
JPS6234262A (en) Non-volatile memory access method
JPS63278162A (en) Error correction device in information processor
US7089447B2 (en) Apparatus and method for compression based error correction procedure in a data processing system

Legal Events

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