JPH0744453A - Data storage device - Google Patents

Data storage device

Info

Publication number
JPH0744453A
JPH0744453A JP19251193A JP19251193A JPH0744453A JP H0744453 A JPH0744453 A JP H0744453A JP 19251193 A JP19251193 A JP 19251193A JP 19251193 A JP19251193 A JP 19251193A JP H0744453 A JPH0744453 A JP H0744453A
Authority
JP
Japan
Prior art keywords
data
area
address
written
pointer
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
JP19251193A
Other languages
Japanese (ja)
Inventor
Hiroshi Kamata
博史 鎌田
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP19251193A priority Critical patent/JPH0744453A/en
Priority to US08/283,998 priority patent/US5523915A/en
Publication of JPH0744453A publication Critical patent/JPH0744453A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Abstract

PURPOSE:To provide a data storage device in which a write defect hardly takes place when data are written in a nonvolatile memory having a limit for a data write number of times. CONSTITUTION:A system area 10 of an EEPROM is made up of plural system data storage areas 10A1, 10A2...10Ai storing address information of a data area 11. When data writing to the data area results in causing a change in an address of head data in the stored data, final data address and a head address of an idle area or the like and in rewriting system data, the data are written in an area next to system data storage area 10Ai to which system data are written precedingly. Hereinafter, every time revision of system data takes place, the system data are written in an area different from the area in which data are written precedingly.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データの書き込み回数
に制限がある不揮発性メモリを用いたデータ記憶装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data storage device using a non-volatile memory having a limited number of times of writing data.

【0002】[0002]

【従来の技術および発明が解決しようとする課題】RA
M等の揮発性メモリにデータを記憶させる装置では、装
置の電源をオフされたときにもRAMのデータを保持し
ておくために電池等より常にRAMをバックアップする
ようにしている。他方、不揮発性のメモリ、例えば電気
的書き込み・消去可能なEEPROMにデータを記憶さ
せ、電池等によるメモリのバックアップを不要としたデ
ータ記憶装置もある。
Prior Art and Problems to be Solved by the Invention RA
In a device that stores data in a volatile memory such as M, the RAM is always backed up by a battery or the like in order to retain the data in the RAM even when the power of the device is turned off. On the other hand, there is also a data storage device in which data is stored in a non-volatile memory, for example, an electrically writable / erasable EEPROM, and backup of the memory by a battery or the like is unnecessary.

【0003】EEPROMは、現状ではデータの書き込
み回数に制限があり、一定回数以上書き込みを行うと、
データが正しく書き込めなくなるという問題点がある。
本発明の目的は、データの書き込み回数に制限がある不
揮発性メモリにデータを書き込むときに書き込み不良が
発生しにくいデータ記憶装置を提供することである。
At present, the EEPROM has a limited number of times of writing data, and if writing is performed a certain number of times or more,
There is a problem that data cannot be written correctly.
An object of the present invention is to provide a data storage device in which a write failure is less likely to occur when writing data in a non-volatile memory having a limited number of data write times.

【0004】[0004]

【課題を解決するための手段】本発明のデータ記憶装置
は、データを記憶する複数のデータ記憶領域を有するデ
ータ記憶手段と、データ記憶領域のアドレスを示すシス
テムデータを記憶する複数のシステムデータ記憶手段
と、システムデータを書き替える場合、前回データを書
き込んだシステムデータ記憶手段と異なるシステムデー
タ記憶手段に新たなシステムデータを書き込む書き込み
制御手段とを備える。
A data storage device according to the present invention comprises a data storage means having a plurality of data storage areas for storing data, and a plurality of system data storages for storing system data indicating addresses of the data storage areas. And a write control means for writing new system data to a system data storage means different from the system data storage means to which the previous data was written when rewriting the system data.

【0005】[0005]

【作用】本発明では、データ記憶領域に格納されている
データのアドレスに変更が生じシステムデータを書き替
える場合、前回システムデータを書き込んだシステムデ
ータ記憶手段と異なるシステムデータ記憶手段に新たな
システムデータを書き込むようにしている。これによ
り、同じ領域に繰り返しデータが書き込まれシステムデ
ータ記憶手段が書き込み不良となるのを防止できる。
According to the present invention, when the address of the data stored in the data storage area is changed and the system data is rewritten, new system data is stored in the system data storage means different from the system data storage means in which the system data was written last time. I am trying to write. As a result, it is possible to prevent data from being repeatedly written in the same area and causing a write failure in the system data storage means.

【0006】[0006]

【実施例】以下、本発明の実施例を図面を参照しながら
説明する。図1は、本発明の一実施例のデータ記憶装置
の回路ブロック図であり、このデータ記憶装置は、約3
00個の氏名及び住所データをアルファベット順に記憶
できるようになっている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a circuit block diagram of a data storage device according to one embodiment of the present invention.
00 pieces of name and address data can be stored in alphabetical order.

【0007】同図において、制御部1は、ROM2に格
納されている制御プログラムに従って、キー入力部3か
ら入力される名前、住所からなるデータをRAM4へ一
時格納すると共に、データの書き込みが指示されたと
き、RAM4に記憶してあるデータを不揮発性メモリで
あるEEPROM5へ保存する。このEEPROM5に
格納されたデータは、データ読み出し時にキー入力部3
の図示しないカーソルキーの操作に応じて、例えばアル
ファベットの正順またはその逆の順序で読み出され液晶
表示部6に表示される。
In FIG. 1, the control unit 1 temporarily stores in the RAM 4 the data consisting of the name and address input from the key input unit 3 according to the control program stored in the ROM 2, and is instructed to write the data. At this time, the data stored in the RAM 4 is stored in the EEPROM 5, which is a non-volatile memory. The data stored in the EEPROM 5 is stored in the key input unit 3 when reading the data.
In accordance with the operation of the cursor key (not shown), the data is read out in the normal order of the alphabet or in the reverse order and displayed on the liquid crystal display unit 6.

【0008】電源回路部7は、例えば太陽電池8の出力
電圧を安定化して回路各部に供給する回路である。ま
た、電源回路部7は、EEPROM5へデータの書き込
みを行うときに、外部入力端子9から供給される比較的
高い外部電圧を安定化してEEPROM5に出力する。
The power supply circuit section 7 is, for example, a circuit which stabilizes the output voltage of the solar cell 8 and supplies it to each section of the circuit. Further, the power supply circuit section 7 stabilizes a relatively high external voltage supplied from the external input terminal 9 and outputs it to the EEPROM 5 when writing data to the EEPROM 5.

【0009】ここで、EEPROM5の記憶領域の構成
を図2を参照して説明する。この実施例では、EEPR
OM5のアドレス1〜100を後述するシステム領域1
0に、アドレス101〜400をデータ領域11に、ア
ドレス401〜512を予備のデータ領域12にそれぞ
れ割り当てている。
The structure of the storage area of the EEPROM 5 will be described with reference to FIG. In this example, the EEPR
System area 1 which will be described later with addresses 1 to 100 of OM5
0, addresses 101 to 400 are allocated to the data area 11, and addresses 401 to 512 are allocated to the spare data area 12.

【0010】データ領域11は複数(上述した如く30
0の)のデータ記憶領域11A1 、11A2 ・・11A
i からなる。この実施例では、1組の氏名及び住所デー
タのデータ量が多く、1つのデータ記憶領域11Ai
入りきれないときには、そのデータを複数のデータ記憶
領域11Ai に分割して記憶するようにしている。
There are a plurality of data areas 11 (30 as described above).
0) data storage areas 11A 1 , 11A 2, ... 11A
consists of i . In this embodiment, the more data quantity of the set of name and address data, as when not be fed into a separate data storage area 11A i stores by dividing the data into a plurality of data storage area 11A i There is.

【0011】各データ記憶領域11Ai は、同一のデー
タを複数の領域に分割して記憶したときに、同じデータ
が記憶されている次のアドレスを指す残りポインタを記
憶する領域11aと、アルファベット順で1つ前のデー
タの格納アドレスを指す前ポインタを記憶する領域11
bと、氏名及び住所データを記憶する領域11cと、ア
ルファベット順で1つ後のデータの格納アドレスを指す
後ポインタを記憶する領域11dとで構成されている。
なお、予備のデータ領域12も複数のデータ記憶領域1
2A1 、12A2 ・・12Ai からなり、データ領域1
1と同様な構成を有している。
Each data storage area 11A i is arranged in alphabetical order with an area 11a for storing a remaining pointer that points to the next address where the same data is stored when the same data is divided into a plurality of areas and stored. 11 for storing the previous pointer that points to the storage address of the immediately preceding data
b, an area 11c for storing name and address data, and an area 11d for storing a rear pointer that points to a storage address of the next data in alphabetical order.
Note that the spare data area 12 is also a plurality of data storage areas 1
Data area 1 consisting of 2A 1 , 12A 2 ... 12A i
It has the same configuration as that of No. 1.

【0012】また、システム領域10は、データ領域1
1のアドレス情報を記憶する複数のシステムデータ記憶
領域10A1 、10A2 ・・・10Ai からなる。各シ
ステムデータ記憶領域10Ai は、データ領域11に所
定の順序で記憶されているデータの中の先頭のデータの
格納アドレスを指すトップポインタを記憶する領域10
aと、所定の順序で記憶されているデータの中の最後の
データの格納アドレスを指すボトムポインタを記憶する
領域10bと、現在表示しているアドレスを指す現在ポ
インタを記憶する領域10cと、データ領域11の空き
領域の先頭アドレスを指すデータ空きポインタを記憶す
る領域10dと、予備のデータ領域の空き領域の先頭ア
ドレスを指す予備領域の空きポインタを記憶する領域1
0eとで構成されている。
The system area 10 is the data area 1
It is composed of a plurality of system data storage areas 10A 1 , 10A 2 ... 10A i for storing one address information. Each system data storage area 10A i is an area 10 for storing a top pointer that points to the storage address of the first data in the data stored in the data area 11 in a predetermined order.
a, an area 10b that stores a bottom pointer that points to the storage address of the last data among the data that are stored in a predetermined order, an area 10c that stores the current pointer that points to the currently displayed address, and data Area 10d for storing a data free pointer that points to the start address of the free area in area 11 and area 1 that stores a free pointer for the spare area that points to the start address of the free area in the spare data area
0e and.

【0013】この実施例では、システム領域10にシス
テムデータを書き込む場合、同じ領域に繰り返しデータ
が書き込まれないようにシステムデータ記憶領域10A
i に順にデータを書き込むようにしている。
In this embodiment, when the system data is written in the system area 10, the system data storage area 10A is set so that the data is not repeatedly written in the same area.
Data is written to i sequentially.

【0014】今、図2に示すようにデータ領域11にア
ルファベット順に「AIDA・・」、「KAMATA・
・」、「YAGI・・」の3個のデータが記憶されてい
て、「AIDA・・」のデータはデータ量が多いのでア
ドレス「101」と「102」に分割されて記憶されて
いるものとする。
Now, as shown in FIG. 2, "AIDA ...", "KAMATA.
. "And" YAGI ... "are stored, and since the data of" AIDA ... "has a large amount of data, it is stored as divided into addresses" 101 "and" 102 ". To do.

【0015】アドレス「101」にアルファベット順の
先頭のデータ「AIDA・・」が記憶されており、その
残りポインタ11aには、分割された残りのデータの格
納アドレス「102」が記憶され、前ポインタ11bに
は、アルファベット順の1つ前のデータ、この場合、ア
ルファベット順の最後のデータである「YAGI・・」
の格納アドレス「104」が記憶されている。また、後
ポインタ11dには、アルファベット順の次のデータで
ある「KAMATA・・」の格納アドレス「103」が
記憶されている。
The first data "AIDA ..." In alphabetical order is stored in the address "101", and the storage address "102" of the remaining divided data is stored in the remaining pointer 11a, and the previous pointer. 11b is the previous data in alphabetical order, in this case, the last data in alphabetical order, "YAGI ...".
The storage address “104” is stored. The rear pointer 11d stores the storage address "103" of "KAMATA ...", which is the next data in alphabetical order.

【0016】次のアドレス「102」にアルファベット
順の2番目のデータ「KAMATA・・」が記憶されて
いる。このデータは複数のデータ記憶領域11Ai に分
割されていないので、残りポインタ11aにはアドレス
は記憶されていない。前ポインタ11aには、1つ前の
データである「AIDA・・」の格納アドレス「10
1」が記憶され、後ポインタ11cには、1つ後のデー
タである「YAGI・・」の格納アドレス「104」が
記憶されている。
The second data "KAMATA ..." In alphabetical order is stored at the next address "102". Since this data is not divided into a plurality of data storage areas 11A i , no address is stored in the remaining pointer 11a. The previous pointer 11a contains the storage address "10" of the preceding data "AIDA ...".
1 ”is stored, and the rear pointer 11c stores the storage address“ 104 ”of the next data“ YAGI ... ”.

【0017】一方、システム領域10のトップポインタ
10aには、アルファベット順に記憶されているデータ
の中の先頭のデータである「AIDA・・」の格納アド
レス「101」が記憶され、ボトムポインタ10bに
は、アルファベット順に記憶されているデータの中の最
後のデータである「YAGI・・」の格納アドレス「1
04」が記憶されている。また、データ空きポインタ1
0dには、データ領域11の空き領域の先頭アドレス
「105」が記憶されている。予備領域の空きポインタ
10eには、予備のデータ領域12の先頭アドレスの
「401」が記憶されている。
On the other hand, the top pointer 10a of the system area 10 stores the storage address "101" of the first data "AIDA ..." Of the data stored in alphabetical order, and the bottom pointer 10b. , The storage address “1” of the last data among the data stored in alphabetical order “1”
04 ”is stored. In addition, data empty pointer 1
The start address “105” of the free area of the data area 11 is stored in 0d. The free area pointer 10e in the spare area stores "401" which is the start address of the spare data area 12.

【0018】次に、以上のような構成の実施例のデータ
記憶装置のデータ書き込み時の動作を図3のフローチャ
ートを参照して説明する。図3のステップS1におい
て、キー入力部3から入力されたデータをRAM4に格
納する。そして、ステップS2で図示しない書き込みキ
ーが操作されたのを検出したなら、ステップS3で外部
入力端子9に外部電圧が供給されているか否かを判別す
る。外部から書き込み用の電圧が供給されているときに
は、ステップS4に進みデータ空きポインタ10cの指
すアドレスが「401」以上か否かを判別する。データ
空きポインタ10cの指すアドレスが「401」以上の
ときは、データ領域11の使用可能な全ての領域にデー
タが書き込まれている場合であるので、ステップS5に
進みEEPROM5に新たなデータを記憶する領域が無
いことを液晶表示部6に表示する。また、ステップS3
の判別でデータの書き込み時に外部電圧が供給されてい
ないときには、ステップS6に進みエラー表示を行う。
Next, the operation at the time of writing data in the data storage device of the embodiment having the above configuration will be described with reference to the flowchart of FIG. In step S1 of FIG. 3, the data input from the key input unit 3 is stored in the RAM 4. If it is detected in step S2 that the write key (not shown) is operated, it is determined in step S3 whether or not an external voltage is supplied to the external input terminal 9. When the voltage for writing is supplied from the outside, the process proceeds to step S4 and it is determined whether or not the address pointed to by the data free pointer 10c is "401" or more. When the address pointed to by the data free pointer 10c is "401" or more, it means that the data is written in all the usable areas of the data area 11, so that the process proceeds to step S5 and new data is stored in the EEPROM 5. The liquid crystal display unit 6 displays that there is no area. Also, step S3
If the external voltage is not supplied at the time of writing the data in the determination of No., the process proceeds to step S6 and an error display is performed.

【0019】一方、ステップS4の判別でデータ空きポ
インタ10dの指すアドレスが「400」以下のとき、
すなわちデータ領域11に空き領域が存在するときに
は、ステップS7に進み今回書き込もおとするデータに
対してアルファベット順で順番が1つ前のデータと1つ
後のデータをサーチする。このステップS7の処理で
は、例えば書き込むべき氏名データの先頭の文字とデー
タ領域11に既に記憶されている氏名データの先頭の文
字とを順に比較して、アルファベット順の1つ前のデー
タと1つ後のデータを検索する。
On the other hand, when the address pointed to by the data free pointer 10d is "400" or less in the determination of step S4,
That is, when there is a vacant area in the data area 11, the process proceeds to step S7, and the data to be written this time is searched alphabetically in order of the previous data and the next data. In the processing of this step S7, for example, the first character of the name data to be written and the first character of the name data already stored in the data area 11 are compared in order, and one character before the alphabetical data and one data Search later data.

【0020】そして、次のステップS8でデータ空きポ
インタ10dで指定されるアドレスの領域11cにデー
タを書き込み、さらにそのアドレスの前ポインタ11a
に1つ前のデータの格納アドレスを、後ポインタ11c
に1つ後のデータの格納アドレスをそれぞれ書き込む。
その後、ステップS9で書き込み前のデータとEERO
M5に実際に書き込まれたデータとが一致するか否かを
判別する。このとき、データが一致しない場合には、再
度データの書き込み及び読み出しを行い、書き込み前と
書き込み後のデータの比較を行う。
Then, in the next step S8, the data is written in the area 11c of the address designated by the data free pointer 10d, and the previous pointer 11a of the address is written.
The storage address of the previous data to the rear pointer 11c
The storage address of the next data is written in each.
Then, in step S9, the data before writing and the EERO
It is determined whether or not the data actually written in M5 matches. At this time, if the data do not match, the data is written and read again, and the data before the writing and the data after the writing are compared.

【0021】ステップS9の判別でデータの書き込みが
正常に行われた場合には、ステップS10に進み次にシ
ステム領域10のデータの書き替えを行う。ここで、ス
テップS10のシステム領域10の書き替え処理を図4
〜図7を参照して説明する。
If the data is normally written in the determination in step S9, the process proceeds to step S10, and the data in the system area 10 is rewritten. Here, the rewriting process of the system area 10 in step S10 will be described with reference to FIG.
~ It demonstrates with reference to FIG.

【0022】先ず、EEPROM5に図2に示すような
データが記憶されているときに、図4に示すデータ「N
AKANO・・」をEEPROM5に書き込む場合につ
いて説明する。
First, when the data shown in FIG. 2 is stored in the EEPROM 5, the data "N" shown in FIG.
The case of writing "AKANO ..." In the EEPROM 5 will be described.

【0023】この場合、データ空きポインタ10dはア
ドレス「105」を指しているので、データ「NAKA
NO・・」はそのアドレス「105」に書き込まれる。
アドレス「105」にデータが書き込まれると、データ
領域11の空き領域の先頭アドレスが「105」から
「106」に変化するのでシステムデータの書き替えが
行われる。システムデータを書き替える場合、前回、図
2に示すようにシステム領域10のアドレス「1」にシ
ステムデータが書き込まれているので、今回は、次のア
ドレス「2」に新たなシステムデータが書き込まれる。
In this case, since the data free pointer 10d points to the address "105", the data "NAKA"
"NO ..." is written to the address "105".
When the data is written to the address “105”, the start address of the empty area of the data area 11 changes from “105” to “106”, so that the system data is rewritten. When rewriting the system data, since the system data was written in the address "1" of the system area 10 last time as shown in FIG. 2, new system data is written in the next address "2" this time. .

【0024】これにより図5に示すようにシステム領域
10のアドレス「2」のデータ空きポインタ10dに空
きアドレスの「106」が書き込まれる。なお、この場
合、現在ポインタ10cの値が図2の状態と異なってい
る他は他のポインタの内容は変化していないので前回の
値がそのまま書き込まれる。
As a result, as shown in FIG. 5, the empty address "106" is written in the data empty pointer 10d at the address "2" in the system area 10. In this case, since the contents of the other pointers have not changed except that the value of the current pointer 10c is different from the state of FIG. 2, the previous value is written as it is.

【0025】次に、EEPROM5に記憶されているデ
ータを書き替える場合のシステム領域の書き替え動作に
ついて図6及び図7を参照して説明する。図6に示すよ
うにEEPROM5のデータ領域11に「AIDA・
・」、「KAMATA・・」、「YAGI・・」、「N
AKANO・・」の4人の氏名及び住所データが記憶さ
れているものとする。そして、システム領域10のトッ
プポインタ10aにアルファベット順の先頭のデータの
格納アドレス「101」が、ボトムポインタ10bにア
ルファベット順の最後のデータの格納アドレス「10
4」が、現在ポインタ10cにアドレス「105」が、
データ空きポインタ10dにデータ領域11の空き領域
の先頭アドレス「106」が、予備領域の空きポインタ
10eに予備のデータ領域12の空き領域の先頭アドレ
ス「401」がそれぞれ記憶されている。
Next, the rewriting operation of the system area when rewriting the data stored in the EEPROM 5 will be described with reference to FIGS. 6 and 7. As shown in FIG. 6, the data area 11 of the EEPROM 5 has "AIDA.
"", "KAMATA ...", "YAGI ...", "N
It is assumed that the name and address data of four persons of "AKANO ..." are stored. Then, the top pointer 10a of the system area 10 has the storage address "101" of the first data in alphabetical order, and the bottom pointer 10b has the storage address "10" of the last data in alphabetical order.
4 ”indicates that the address“ 105 ”is currently assigned to the pointer 10c.
The free space pointer 10d stores the start address "106" of the free space of the data area 11, and the free space pointer 10e of the spare area stores the start address "401" of the free area of the spare data area 12.

【0026】今、アドレス「103」に記憶されている
データ「KAMATA・・」を表示させた状態でデータ
「OGAWA・・」が入力され、そのデータの書き込み
が指示されたとする。このとき、データ空きポインタ1
0dにより空き領域のアドレスとして「106」が指定
されているので、そのアドレス「106」にデータ「O
GAWA・・」を書き込む。同時にデータ領域11に記
憶されているデータ(「KAMATA・・」を除く)の
中でアルファベット順で「OGAWA・・」の1つ前の
データと1つ後のデータをサーチして、前後のデータの
格納アドレスを前ポインタ11bと後ポインタ11dに
設定する。さらに、1つ前のデータの後ポインタ11d
と1つ後のデータの前ポインタ11bに「OGAWA・
・」の格納アドレス「106」を設定する。その後、ア
ドレス「103」のデータ「KAMATA・・」を削除
する。
Now, it is assumed that the data "OGAWA ..." Is input while the data "KAMATA ..." Stored at the address "103" is displayed, and the writing of the data is instructed. At this time, data empty pointer 1
Since "106" is designated as the address of the empty area by 0d, the data "O" is assigned to the address "106".
Write "GAWA ..." At the same time, in the data (excluding "KAMATA ...") stored in the data area 11, the data before and after "OGAWA ... The storage addresses of are set in the front pointer 11b and the rear pointer 11d. Further, the back pointer 11d of the immediately preceding data
"OGAWA ...
Set the storage address “106” of “·”. Then, the data "KAMATA ..." At the address "103" is deleted.

【0027】データの書き替えによりデータの空き領域
の先頭アドレスが変化したので、システムデータの書き
替えを行う。このシステムデータの書き替えでは、前回
システム領域10のアドレス「2」にシステムデータを
書き込んだので、今回はその次のアドレス「3」にシス
テムデータを書き込む。
Since the start address of the empty area of the data is changed by rewriting the data, the system data is rewritten. In this rewriting of system data, since the system data was written to the address "2" of the system area 10 last time, the system data is written to the next address "3" this time.

【0028】この結果、図7に示すようにシステム領域
10のアドレス「3」にそれぞれのポインタが書き込ま
れる。この場合、アドレス「103」が空きとなったの
でデータ空きポインタ10dに「103」が設定され、
さらに現在ポインタ10cに書き替えたデータ「OGA
WA・・」の格納アドレス「106」が設定される。
As a result, as shown in FIG. 7, the respective pointers are written in the address "3" of the system area 10. In this case, since the address "103" becomes empty, "103" is set in the data empty pointer 10d,
Furthermore, the data "OGA" rewritten to the current pointer 10c
The storage address "106" of "WA ..." Is set.

【0029】図3に戻り、ステップS9の判別で2回と
も正常にデータを書き込めなかった場合には、そのデー
タ記憶領域11Ai を不良と判断し、ステップS11に
進み予備領域の空きポインタ10eの指すアドレスをデ
ータの書き込みアドレスとする。そして、ステップS8
に戻り、入力された氏名及び住所データとサーチした前
後のデータのアドレスを、予備領域の空きポインタ10
eの指すアドレスに書き込む。さらに、1つ前のデータ
の後ポインタ11dに今回データを書き込んだ予備のデ
ータ領域12のアドレスを設定し、同様に1つ後のデー
タの前ポインタ11bにデータを書き込んだ予備のデー
タ領域12のアドレスを設定する。その後、上述したス
テップS9以降の処理を実行する。
Returning to FIG. 3, if the data cannot be normally written twice in the determination in step S9, the data storage area 11A i is determined to be defective, and the process proceeds to step S11, where the empty pointer 10e in the spare area is The address pointed to is the data write address. Then, step S8
Then, the name and address data input and the addresses of the data before and after the search are returned to the empty pointer 10 in the spare area.
Write to the address pointed to by e. Further, the address of the spare data area 12 in which the data was written this time is set in the back pointer 11d of the data immediately before, and similarly, the address of the spare data area 12 in which the data is written in the front pointer 11b of the data immediately after is set. Set the address. After that, the above-described processing of step S9 and thereafter is executed.

【0030】上述した実施例では、システムデータを書
き替える場合に、複数のシステムデータ記憶領域10A
i に順にデータを書き込んでいくことにより、同じ記憶
領域10Ai に繰り返しデータが書き込まれ、データが
正常に書き込めなくなるのを防止できる。
In the above embodiment, when rewriting the system data, a plurality of system data storage areas 10A are used.
By sequentially writing the data to i , it is possible to prevent the data from being repeatedly written in the same storage area 10A i and preventing the data from being normally written.

【0031】なお、システムデータ及び氏名、住所デー
タを記憶するシステム領域10及びデータ領域11の構
成は、実施例に述べたものに限らず他の構成でもよい。
また、上記実施例では、データをアルファベット順にE
EPROM5に記憶しているが、順序つけずにデータを
記憶する場合にも本発明は適用できる。さらに、メモリ
はEEPROMに限定されず他のメモリを用いてもよ
く、また、本発明のデータ記憶装置は、小型電子式計算
機、電子手帳、ワープロ、パーソナルコンピュータ等に
適用できる。
The configurations of the system area 10 and the data area 11 for storing the system data, the name, and the address data are not limited to those described in the embodiment and may be other configurations.
Further, in the above embodiment, the data are sorted in alphabetical order by E.
Although the data is stored in the EPROM 5, the present invention can be applied to the case where data is stored without ordering. Further, the memory is not limited to the EEPROM, and other memory may be used, and the data storage device of the present invention can be applied to a small electronic calculator, an electronic notebook, a word processor, a personal computer and the like.

【0032】[0032]

【発明の効果】本発明では、システムデータを書き替え
る場合、前回システムデータを書き込んだシステムデー
タ記憶領域と異なる領域に新たなデータを書き込むよう
にしたので、特定のシステムデータ記憶領域にデータが
繰り返し書き込まれ、その領域が書き込み不良となるの
を防止できる。
According to the present invention, when rewriting system data, new data is written in an area different from the system data storage area in which the system data was written last time. Therefore, the data is repeatedly written in a specific system data storage area. It is possible to prevent the writing failure in the written area.

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

【図1】本発明の実施例のデータ記憶装置の回路ブロッ
ク図である。
FIG. 1 is a circuit block diagram of a data storage device according to an embodiment of the present invention.

【図2】EEPROMの記憶領域の構成を示す図であ
る。
FIG. 2 is a diagram showing a configuration of a storage area of an EEPROM.

【図3】書き込み処理のフローチャートである。FIG. 3 is a flowchart of a writing process.

【図4】追加するデータの一例を示す図である。FIG. 4 is a diagram showing an example of data to be added.

【図5】EEPROMに記憶されているデータの一例を
示す図である。
FIG. 5 is a diagram showing an example of data stored in an EEPROM.

【図6】書き替え前のEEPROMの内容を示す図であ
る。
FIG. 6 is a diagram showing the contents of an EEPROM before rewriting.

【図7】書き替え後のEEPROMの内容を示す図であ
る。
FIG. 7 is a diagram showing the contents of an EEPROM after rewriting.

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

10 システム領域 11 データ領域 12 予備のデータ領域 10 system area 11 data area 12 spare data area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データを記憶する複数のデータ記憶領域
を有するデータ記憶手段と、 前記データ記憶領域のアドレスを示すシステムデータを
記憶する複数のシステムデータ記憶手段と、 前記システムデータを書き替える場合に、前回システム
データを書き込んだシステムデータ記憶手段と異なるシ
ステムデータ記憶手段に新たなシステムデータを書き込
む書き込み制御手段とを備えることを特徴とするデータ
記憶装置。
1. A data storage means having a plurality of data storage areas for storing data, a plurality of system data storage means for storing system data indicating an address of the data storage area, and a case of rewriting the system data. A data storage device comprising: a system data storage unit that previously wrote the system data; and a write control unit that writes new system data to a different system data storage unit.
JP19251193A 1993-08-03 1993-08-03 Data storage device Pending JPH0744453A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP19251193A JPH0744453A (en) 1993-08-03 1993-08-03 Data storage device
US08/283,998 US5523915A (en) 1993-08-03 1994-08-01 Data storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19251193A JPH0744453A (en) 1993-08-03 1993-08-03 Data storage device

Publications (1)

Publication Number Publication Date
JPH0744453A true JPH0744453A (en) 1995-02-14

Family

ID=16292509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19251193A Pending JPH0744453A (en) 1993-08-03 1993-08-03 Data storage device

Country Status (1)

Country Link
JP (1) JPH0744453A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065646A (en) * 2006-09-08 2008-03-21 Toshiba Corp Flash memory control system and control method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065646A (en) * 2006-09-08 2008-03-21 Toshiba Corp Flash memory control system and control method thereof

Similar Documents

Publication Publication Date Title
JPH03250499A (en) Data storage circuit
EP0369829B1 (en) Information searching apparatus
CN102543179A (en) Concurrent read and write memory operations in a serial interface memory
US5523915A (en) Data storage system
US6157363A (en) Methods and apparatus for displaying data
JPH10105519A (en) Electronic equipment
JPH0744453A (en) Data storage device
JP2661131B2 (en) Information storage and reading method and apparatus
JPH0749815A (en) Data storage device
US5563626A (en) Smooth text display system
JPH0744451A (en) Data storage device
KR950012065B1 (en) Rebooting system and method therefor
JPH0764851A (en) Data storage device
JPH11259359A (en) One-time rom access method
EP0369819B1 (en) Desk top calculator
JPH0373958B2 (en)
JPH0715623B2 (en) Display device
JP2733596B2 (en) Data erasing method in data storage device
JPH06187205A (en) Method for accessing eeprom and surveying equipment
JPH11250059A (en) Specification item checking method and device therefor
JPH0287269A (en) Data controller
JPH02226351A (en) Data writing and reading device
JPH01175048A (en) Computer
JP2788765B2 (en) Semiconductor storage device
JP2758745B2 (en) Memory circuit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010911