JP2614357B2 - Bulk erase type E (2) PROM pre-programming method - Google Patents

Bulk erase type E (2) PROM pre-programming method

Info

Publication number
JP2614357B2
JP2614357B2 JP28135790A JP28135790A JP2614357B2 JP 2614357 B2 JP2614357 B2 JP 2614357B2 JP 28135790 A JP28135790 A JP 28135790A JP 28135790 A JP28135790 A JP 28135790A JP 2614357 B2 JP2614357 B2 JP 2614357B2
Authority
JP
Japan
Prior art keywords
prom
patrol
file
processing
flash
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.)
Expired - Lifetime
Application number
JP28135790A
Other languages
Japanese (ja)
Other versions
JPH04157699A (en
Inventor
範幸 松井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP28135790A priority Critical patent/JP2614357B2/en
Publication of JPH04157699A publication Critical patent/JPH04157699A/en
Application granted granted Critical
Publication of JP2614357B2 publication Critical patent/JP2614357B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第4図、第5図) 発明が解決しようとする課題 課題を解決するための手段(第1図) 作用 実施例(第2図、第3図) 発明の効果 〔概要〕 一括消去型E2PROMの書込み方法に関し、フラッシュE2
PROMの消去前に行う予備書込みを、分散させて処理する
ことにより、待ち時間を短縮することを目的とし、 電気的にデータの書込みと一括消去が可能な一括消去
型E2PROM(フラッシュE2PROM)の一括消去前に行う予備
書込み方法において、一括消去型E2PROMに対し、メモリ
アクセスのない時間帯に一定時間をおいて、パトロール
を行い、このパトロールにより、消去すべきメモリ領域
を、消去以前に見つけ、消去すべきメモリ領域が見つか
った場合には、該メモリ領域の未書込み部分に予備書込
みを行うことにより、消去すべき前記メモリ領域の全ビ
ットを書込み状態にするように構成する。
[Contents] Outline Industrial application field Conventional technology (FIGS. 4 and 5) Problems to be Solved by the Invention Means for Solving the Problems (FIG. 1) Action Embodiment (FIGS. 2 and 3) Effects of the Invention [Overview] Regarding the write method of the batch erase type E 2 PROM, the flash E 2
The preliminary writing performed before erasing PROM, by treating by dispersing, aims to reduce the waiting time, data electrically writing and capable of batch erasing collective erasure type E 2 PROM (flash E 2 In the pre-programming method performed before the batch erasing of the PROM), the batch erasing type E 2 PROM is patroled at a certain time during a time period when there is no memory access, and the memory area to be erased is determined by this patrol. When the memory area to be erased is found before the erasure and the memory area to be erased is found, all bits of the memory area to be erased are written by performing preliminary writing on an unwritten portion of the memory area. .

〔産業上の利用分野〕[Industrial applications]

本発明は一括消去型E2PROMの書込み方法に関し、更に
詳しくいえば、一括消去型E2PROM、即ち、電気的に書込
み、電気的に一括して消去する書換え可能なPROM(以
下、これを「フラッシュE2PROM」と称する)に用いら
れ、特に、一括消去の前に行う予備書込み処理を改善し
た一括消去型E2PROMの書込み方法に関する。
The present invention relates to a method of writing collective erasure type E 2 PROM, and more particularly, collective erasure type E 2 PROM, i.e., electrically writing, electrically rewritable PROM to erase collectively (hereinafter, this In particular, the present invention relates to a writing method of a batch erase type E 2 PROM which is used for a flash E 2 PROM) and in which a preliminary writing process performed before a batch erase is improved.

〔従来の技術〕[Conventional technology]

第4図及び第5図は、従来例を示した図であり、第4
図はファイル管理の説明図、第5図は書込み処理フロー
チャートである。
4 and 5 are views showing a conventional example, and FIG.
FIG. 5 is an explanatory diagram of file management, and FIG. 5 is a flowchart of a writing process.

図中、1はメモリカード(ICカード)、2はフラッシュ
E2PROM素子、3はファイル管理領域を示す。
In the figure, 1 is a memory card (IC card), 2 is a flash
The E 2 PROM element 3 indicates a file management area.

近年、E2PROMの一種として、フラッシュE2PROMの開発
が活発に行われている。このようなフラッシュE2PROM
は、今後、E2PROM、EPROM、SRAM等の置き換え素子とし
て有望視されている。
In recent years, as a kind of E 2 PROM, the development of flash E 2 PROM is being actively carried out. Such a flash E 2 PROM
Is promising as a replacement element for E 2 PROM, EPROM, SRAM, etc. in the future.

しかし、フラッシュE2PROMは、そのセルの構造上、オ
ーバイレース(過消去)という状態を生じる。オーバイ
レースとは、書込済のセルと、未書込のセルとを一度に
消去した場合、未書込のセルが消去しすぎの状態となっ
てしまい、次の書込み時に、データの書込みができなく
なることをいう。
However, in the flash E 2 PROM, a state of over-erasing (over-erasing) occurs due to the structure of the cell. Over lace means that if a written cell and an unwritten cell are erased at once, the unwritten cell will be in an over-erased state. It means that you can no longer do it.

このようなオーバイレースを防止するため、通常のフ
ァイル消去時には、実際に消去せず、ヘッダ、あるいは
ディスクリプタと呼ばれるファイル管理情報に、消去済
をあらわすフラグを立てるだけにしている。
In order to prevent such overrun, the file is not actually erased at the time of normal file erasure, but only a flag indicating that the file has been erased is set in the header or file management information called a descriptor.

そして、ファイル格納エリアが無くなった時点でファイ
ル整理を行うが、フラッシュE2PROMでは、書込んだ情報
の消去に先立ち、予備書込みをすることを義務づけられ
ている。
Then, when the file storage area is exhausted, the files are organized. In the flash E 2 PROM, preliminary writing is required before erasing the written information.

従って、上記のファイル整理を行う段階で、先ず、消
去すべきメモリセルを全ビット書込み状態としなければ
ならない。
Therefore, at the stage of performing the above-mentioned file organization, first, the memory cells to be erased must be in a state where all bits are written.

以下、従来の書込み処理を第4図及び第5図に基づい
て詳細に説明する。なお、第5図の各処理番号は、カッ
コ内に示す。
Hereinafter, a conventional write process will be described in detail with reference to FIGS. 4 and 5. FIG. The respective processing numbers in FIG. 5 are shown in parentheses.

例えば、フラッシュE2PROMを用いたメモリカードにお
けるファイル管理は、第4図のようにしていた。
For example, file management in a memory card using a flash E 2 PROM is as shown in FIG.

この例では、メモリカード1を8個のフラッシュE2PROM
(メモリ素子)2を用いて構成している。そして、これ
ら8個のフラッシュE2PROM2の内に一部に、ファイル管
理を行うためのメモリ領域として、ファイル管理領域3
を設けておく。
In this example, memory card 1 has eight flash E 2 PROMs.
(Memory element) 2. A file management area 3 is provided in a part of the eight flash E 2 PROMs 2 as a memory area for performing file management.
Is provided.

このファイル管理領域3は、ヘッダ、あるいはディス
クプリンタと呼ばれているファイル管理情報(フラグ
等)の格納領域として使用されるものである。
The file management area 3 is used as a storage area for a header or file management information (such as a flag) called a disk printer.

メモリカード1へ書込んだデータは、通常の場合ファ
イル単位(ファイル#1〜ファイル#4)で管理してお
り、これら各ファイルの管理情報(ファイルの位置、デ
ータの書込み状態、フラグ等)は、ファイル管理領域3
にまとめて格納している。また、メモリカード1の消去
は、フラッシュE2PROM単位(チップ単位)で行うことが
可能であり、消去後は、ファイルの整理を行う。
The data written to the memory card 1 is usually managed in file units (file # 1 to file # 4), and the management information (file position, data write state, flag, etc.) of each file is , File management area 3
Are stored together. Further, erasing of the memory card 1 can be performed in units of flash E 2 PROM (in units of chips), and after erasing, files are organized.

この消去処理の前に行う予備書込み処理は、次のよう
にして行う。
The preliminary writing process performed before this erasing process is performed as follows.

先ず、メモリカードシステムにおいて、外部から処理
の指示があった場合(S1)、その処理がデータの「読出
し」であれば(S2)、データの読出し処理を実行し(S
3)、「書込み処理」であれば(S2)、データの書込み
処理を行う(S4)。しかし、処理の内容が「削除」であ
れば(S2)、実際に削除処理を行わずに、ファイル管理
領域3内のヘッダ、あるいはディスクリプタの削除フラ
グをオン「例えば1」にする(S5)。
First, in the memory card system, when there is a processing instruction from outside (S1), if the processing is "reading" of data (S2), data reading processing is executed (S2).
3) If it is "write processing" (S2), data write processing is performed (S4). However, if the content of the processing is “deletion” (S2), the deletion flag of the header or the descriptor in the file management area 3 is turned on (for example, 1) without actually performing the deletion processing (S5).

その後、ファイル整理の指示があるまで上記の処理を
繰り返して行い、ファイル整理の指示があると(S6)、
ファイル管理領域3内の削除フラグを見て、オンとなっ
ているフラグがあった場合、そのファイルに対して予備
書込みを行う(S7)。この予備書込みは、該当するファ
イル内の全ビットについて、何も書込まれていないビッ
トを全て書込み状態にするものである。
After that, the above processing is repeated until there is a file organizing instruction. When there is a file organizing instruction (S6),
Looking at the deletion flag in the file management area 3, if any flag is ON, preliminary writing is performed for the file (S7). This preliminary writing is to put all the bits in the corresponding file in which nothing has been written into a writing state.

この予備書込みが、消去すべき全エリアについて終了
すると、データの消去処理(メモリチップ単位で消去可
能)を行い(S8)、その後、再書込み等のファイル整理
を行う(S9)。
When the preliminary writing is completed for all areas to be erased, data erasing processing (erasing is possible in units of memory chips) is performed (S8), and thereafter, file organization such as rewriting is performed (S9).

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上記のような従来のものにおいては次のような欠点が
あった。
The prior art as described above has the following disadvantages.

(1)オーバイレース防止のための予備書込み処理は、
消去すべきメモリ領域の全ビットを対象として、未書込
みのビットに対して書込みを行うものであり、従来、こ
の書込み処理は一括して行っている。
(1) Preliminary write processing to prevent over-by-race
Writing is performed on unwritten bits for all the bits of the memory area to be erased. Conventionally, this writing process is performed collectively.

このため、予備書込みの処理時間が長くなる(通常は1
メガビット当たり2秒程度)。
For this reason, the processing time of the preliminary writing becomes longer (usually 1
About 2 seconds per megabit).

(2)予備書込みによる待ち時間が長くなり、マンマシ
ーンインターフェイスが悪い。
(2) The waiting time due to the preliminary writing becomes long, and the man-machine interface is bad.

本発明は、このような従来の欠点を解消し、フラッシ
ュE2PROMの消去前に行う予備書込みを、分散して処理す
ることにより、待ち時間を短縮することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to solve such a conventional drawback and to reduce the waiting time by distributing and processing the preliminary writing performed before erasing the flash E 2 PROM.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は本発明の原理図であり、図中、10はCPU、11
はパトロールタイマ、12は一括消去型E2PROM(フラッシ
ュE2PROM)、13はパトロール処理部、14は予備書込み処
理部を示す。
FIG. 1 is a diagram showing the principle of the present invention.
Denotes a patrol timer, 12 denotes a batch erase type E 2 PROM (flash E 2 PROM), 13 denotes a patrol processing unit, and 14 denotes a preliminary writing processing unit.

本発明は上記の目的を達成するため、電気的にデータ
の書き込みと一括消去が可能な一括消去型E2PROM12の一
括消去前に行う予備書き込み方法において、前記E2PROM
12の一部にファイル管理領域を有し、前記E2PROM12に対
して指示された処理内容が削除(実質的に「消去」と同
じ意味)の場合、実際に削除を行わずに、前記ファイル
管理領域に削除すべき状態を表す削除情報を格納し、こ
の処理をファイル整理の指示があるまで繰り返して行う
と共に、前記E2PROM12に対し、メモリアクセスのない時
間帯にパトロールタイマ11で設定した時間間隔でパトロ
ール処理手段(パトロール処理部13)がパトロールを行
い、このパトロールにより、前記ファイル管理領域に削
除情報があるか否かを調べることで、一括消去前に削除
すべきメモリ領域を見つけ、削除すべきメモリ領域が見
つかった場合は、予備書き込み処理を行って、そのメモ
リ領域に対し全ビットを書き込み状態にするように構成
した。
In order to achieve the above object, the present invention relates to a preliminary write method performed before a batch erase type E 2 PROM 12 capable of electrically writing and batch erasing data, wherein the E 2 PROM
12 has a file management area, and when the processing content instructed to the E 2 PROM 12 is a deletion (substantially the same as “deletion”), the file is not actually deleted and the file is not deleted. Deletion information indicating the state to be deleted is stored in the management area, and this process is repeated until there is an instruction to organize the files, and the E 2 PROM 12 is set by the patrol timer 11 during a time period when there is no memory access. Patrol processing means (patrol processing unit 13) performs patrol at time intervals, and by checking whether or not there is deletion information in the file management area, a memory area to be deleted before batch deletion is found by this patrol. When a memory area to be deleted is found, a preliminary writing process is performed, and all bits are written to the memory area.

前記のように、E2PROM12内にはファイル管理領域が設
けてあり、このファイル管理領域をCPU10が管理してい
る。そして、削除命令、或いは消去命令が発せられた場
合、CPU10は対応したファイル管理領域に「削除すべき
状態」或いは「消去可能」な状態を示す削除情報、例え
ば、フラグを立てておき、実際に消去する必要性が出た
時になって初めて実消去を行う。
As described above, the file management area is provided in the E 2 PROM 12, and the CPU 10 manages this file management area. Then, when a delete command or a delete command is issued, the CPU 10 sets deletion information indicating a “state to be deleted” or “erasable” in a corresponding file management area, for example, sets a flag, and actually sets The actual erasure is performed only when it becomes necessary to erase the data.

この場合、パトロールタイマ11を持ち、定められた時
間がおとずれた時に、CPU10の命令とは別に独自に、パ
トロール処理部13が前記フラグをチェックし、実消去を
CPU10の指示を待たずに、事前に行うものであり、これ
を「パトロール処理」、或いは単に「パトロール」と呼
ぶ。
In this case, the patrol processing unit 13 has the patrol timer 11 and independently checks the flag when the predetermined time has fallen apart from the instruction of the CPU 10 and performs the actual deletion.
This is performed in advance without waiting for an instruction from the CPU 10, and this is called “patrol processing” or simply “patrol”.

また、前記一括消去型E2PROM12では、或るアドレス内
データは、“0"と“1"が混在している。例えば、“0"を
消去状態、“1"を書き込み状態と定義する(逆の定義の
場合もある)。そこで、“0"と“1"が混在した状態のデ
ータを消去しようとした場合、データ“0"のところは消
去された状態であるにも係わらず、更に消去するという
動作になり、これをオーバーイレース(過剰消去)状態
といい、メモリセルの信頼性に影響を与えるため、禁止
されている。このため、前記のような予備書き込み処理
を行うものである。
Further, in the batch erasure type E 2 PROM 12, “0” and “1” are mixed in a certain address data. For example, “0” is defined as an erased state, and “1” is defined as a written state (there may be the opposite definition). Therefore, if an attempt is made to erase data in a state where “0” and “1” are mixed, an operation is performed in which the data “0” is further erased in spite of the erased state. It is called an over-erased (excessively erased) state and is prohibited because it affects the reliability of the memory cell. For this reason, the preliminary write processing as described above is performed.

〔作用〕[Action]

本発明は上記のように構成したので、次のような作用
がある。
Since the present invention is configured as described above, the following operation is provided.

パトロールタイマ11からは、一定時間おきにCPU10に
対して割込み要求(IRQ)を出す。この割込み要求が受
付けられると(メモリアクセス等のない時間帯)、パト
ロール処理部13が起動され、一括消去型E2PROM12をパト
ロールする。
The patrol timer 11 issues an interrupt request (IRQ) to the CPU 10 at regular intervals. When this interrupt request is accepted (a time period when there is no memory access or the like), the patrol processing unit 13 is started and patrols the batch erasure type E 2 PROM 12.

このパトロールで、消去以前に消去すべきメモリ領域
が見つかると、直ちに予備書込み処理部14を起動して予
備書込み処理を行う。
When a memory area to be erased before erasing is found by this patrol, the preliminary write processing unit 14 is immediately activated to perform preliminary write processing.

この予備書込み処理は、消去すべきメモリ領域内の未
書込みビットに対して行われ、この処理が終了すると、
消去すべきメモリ領域内の全ビットが書込み状態とな
る。
This preliminary write processing is performed on unwritten bits in the memory area to be erased, and when this processing is completed,
All bits in the memory area to be erased are in the written state.

このように、一定時間をおいて行うパトロールによ
り、予備書込み処理を分散させて行えば、従来のよう
に、消去直前に一括して予備書込みをしなくて済む。
As described above, if the preliminary writing process is performed in a distributed manner by the patrol performed after a predetermined time, it is not necessary to collectively perform the preliminary writing immediately before erasing as in the related art.

従って、従来のような予備書込み時の待ち時間が短縮で
きる。
Therefore, the waiting time at the time of the preliminary writing as in the related art can be reduced.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第2図及び第3図は本発明の1実施例を示した図であ
り、第2図は、フラッシュE2PROMカードシステムの概略
構成図、第3図Aは、実施例の処理フローチャート
(1)、第3図Bは、実施例の処理フローチャート
(2)である。
2 and 3 are views showing one embodiment of the present invention. FIG. 2 is a schematic configuration diagram of a flash E 2 PROM card system, and FIG. 3A is a processing flowchart (1) of the embodiment. FIG. 3B is a processing flowchart (2) of the embodiment.

図中、第1図と同符号は同一のものを示す。また、15は
プログラム格納部、16はフラッシュE2PROMカードを示
す。
In the figure, the same reference numerals as those in FIG. 1 denote the same parts. Reference numeral 15 denotes a program storage unit, and 16 denotes a flash E 2 PROM card.

本実施例は、フラッシュE2PROMカードシステムに適用
した例である。フラッシュE2PROMカードシステムには、
フラッシュE2PROMカード16、CPU10、パトロールタイマ1
1、パトロール処理部13、予備書込み処理部14、プログ
ラム格納部15等を設ける。
The present embodiment is an example applied to a flash E 2 PROM card system. The flash E 2 PROM card system,
Flash E 2 PROM card 16, CPU 10, Patrol timer 1
1, a patrol processing unit 13, a preliminary writing processing unit 14, a program storage unit 15, and the like are provided.

パトロールタイマ11は、一定時間毎に、CPU10に対し
て割込み要求(IRQ)を出すタイマである。
The patrol timer 11 is a timer that issues an interrupt request (IRQ) to the CPU 10 at regular intervals.

パトロール処理部13は、前記の割込み要求がCPU10で
受け付けられた(許可された)時起動され、フラッシュ
E2PROM16内をパトロールすることにより、消去すべきフ
ァイルを見つけるものである。即ち、パトロールによ
り、ファイル管理領域3(第4図参照)内のフラグを調
べて、消去すべきファイルを見つける。
The patrol processing unit 13 is activated when the interrupt request is received (permitted) by the CPU 10, and the patrol processing unit 13
A file to be erased is found by patrol in the E 2 PROM 16. That is, a flag in the file management area 3 (see FIG. 4) is checked by patrol to find a file to be deleted.

予備書込み処理部14は、パトロール処理部13によるパ
トロールで、消去すべきファイルが見つかった場合に起
動され、消去すべきファイルに予備書込み(未書込みビ
ットを書込み状態にする)処理を行うものである。
The preliminary write processing unit 14 is started when a file to be erased is found by patrol by the patrol processing unit 13, and performs preliminary write (puts an unwritten bit into a write state) in a file to be erased. .

フラッシュE2PROM16は、例えば第4図に示したような構
成となっていて、その一部にファイル管理領域を設けて
ある。
The flash E 2 PROM 16 has a configuration as shown in FIG. 4, for example, and a file management area is provided in a part thereof.

プログラム格納部15は、カードシステム内で使用する
各種プログラムを格納しておくものである。
The program storage section 15 stores various programs used in the card system.

次に、上記構成のフラッシュE2PROMカードシステムに
おけるフラッシュE2PROMの予備書込み方法を、第3図に
基づいて説明する。なお、図の各処理番号は、カッコ内
に示す。
Next, a preliminary writing method of the flash E 2 PROM in the flash E 2 PROM card system having the above configuration will be described with reference to FIG. Each processing number in the figure is shown in parentheses.

フラッシュE2PROMカードシステムにおけるファイル処理
は、第3図Aのように行っている。先ず、CPU10では、
外部から処理の指示があった場合(S11)、処理の内容
を判断し(S22)、データの「読出し」であれば、フラ
ッシュE2PROMカード16からデータを読出し(S23)、デ
ータの「書込み」であれば、フラッシュE2PROM16へデー
タを書込む(S14)。また、「削除」の指示であった場
合には、フラッシュE2PROM16内のファイル管理領域にあ
るヘッダ、あるいはディスクリプタの該当するファイル
に対する削除フラグをオン(削除すべき状態にする)に
する(S15)。このような処理を繰り返して行い、ファ
イル整理を行う場合には(S16)、一括消去を行い(S1
7)、その後、再書込み等のファイル整理を行う(S1
8)。
File processing in the flash E 2 PROM card system is performed as shown in FIG. 3A. First, in CPU10,
If a processing instruction from the outside (S11), determines the content of processing (S22), if the "read" the data, reads data from the flash E 2 PROM card 16 (S23), "write data ", Data is written to the flash E 2 PROM 16 (S14). If the instruction is "delete", the header in the file management area in the flash E 2 PROM 16 or the delete flag for the corresponding file in the descriptor is turned on (set to a state to be deleted) (S15). ). When such a process is repeatedly performed to perform file organization (S16), batch erasing is performed (S1).
7) After that, perform file organization such as rewriting (S1
8).

このファイル整理としては、消去しない領域のデータ
を一ケ所に集めるために再書込みをしたり、消去済の空
き領域をまとめたりする処理を行うものである。
In order to organize the files, rewriting is performed to collect the data of the area not to be erased at one place, and processing of combining the erased empty areas is performed.

ところで、上記のファイル処理とは別に、本発明で
は、第3図Bに示したようなパトロール処理を常に行っ
ており、上記の消去処理は、このパトロールにより予備
書込み処理を行ったファイルに対して行われる。
By the way, apart from the above-mentioned file processing, in the present invention, the patrol processing as shown in FIG. 3B is always performed, and the above-mentioned erasing processing is performed on the file which has been subjected to the preliminary writing processing by this patrol. Done.

パトロール処理は、パトロールタイマ11から一定時間お
きに出される割込み要求がCPU10で受け付けられた場合
(許可された場合)、パトロール処理部13を起動して行
う。
The patrol processing is performed by activating the patrol processing unit 13 when an interrupt request issued from the patrol timer 11 at regular intervals is accepted by the CPU 10 (when permitted).

パトロール処理部13が起動されると(S21)、フラッ
シュE2PROMカード16に対するパトロールを行い、該カー
ド内の一部に設けられているファイル管理領域内のヘッ
ダ、あるいはディスクリプタの削除フラグを調べること
により、削除すべきファイルを見つける。
When the patrol processing unit 13 is started (S21), a patrol is performed on the flash E 2 PROM card 16 to check a header or descriptor deletion flag in a file management area provided in a part of the card. Find files to delete.

この時、消去すべきファイルがなければ何もしない
が、消去すべきファイルが見つかった場合には、予備書
込みを行う。この予備書込み処理は、従来と同様に、未
書込みの全ビットを書込み状態にするものである(S2
2)。
At this time, if there is no file to be erased, nothing is done, but if a file to be erased is found, preliminary writing is performed. This preliminary write processing is to put all unwritten bits into a write state as in the conventional case (S2
2).

この処理を、パトロール処理終了まで行って(パトロー
ル処理終了は、予め決めておく)終了する(S23)。な
お、パトロールによる予備書込み等の処理情報は、ファ
イル管理情報として格納しておけば、その後の消去処理
等に用いることができる。
This process is performed until the patrol process is completed (patrol process completion is determined in advance), and the process ends (S23). If processing information such as preliminary writing by patrol is stored as file management information, it can be used for subsequent erasing processing and the like.

以上実施例について説明したが、本発明は次のように
しても実施可能である。
Although the embodiments have been described above, the present invention can be implemented as follows.

(1)フラッシュE2PROMカード(ICカード)だけに限ら
ず、各種のフラッシュE2PROM装置に使用可能である。
(1) The present invention can be used not only for flash E 2 PROM cards (IC cards) but also for various flash E 2 PROM devices.

(2)パトロールの時間間隔等は、フラッシュE2PROMの
使用状態等により、任意に設定してよい。
(2) The patrol time interval and the like may be arbitrarily set according to the usage state of the flash E 2 PROM.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば次のような効果
がある。
As described above, the present invention has the following effects.

(1)予備書込み処理を、空き時間等を利用したパトロ
ールにより、分散させて行うため、待ち時間が短縮でき
る。
(1) The waiting time can be shortened because the preliminary writing process is performed in a distributed manner by patrol using idle time or the like.

(2)待ち時間の短縮により、マンマシンインターフェ
イスの向上ができる。
(2) The man-machine interface can be improved by shortening the waiting time.

(3)フラッシュE2PROM装置のスループットの向上が可
能となる。
(3) Throughput of the flash E 2 PROM device can be improved.

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

第1図は本発明の原理図、 第2図及び第3図は本発明の1実施例を示した図であ
り、 第2図はフラッシュE2PROMカードシステムの概略構成
図、 第3図Aは、処理フローチャート(1)、 また、第4図及び第5図は従来例を示した図であり、 第4図はファイル管理の説明図、 第5図は書込み処理フローチャートである。 10……CPU 11……パトロールタイマ 12……一括消去型E2PROM(フラッシュE2PROM) 13……パトロール処理部 14……予備書込み処理部
FIG. 1 is a diagram showing the principle of the present invention, FIGS. 2 and 3 are diagrams showing one embodiment of the present invention, FIG. 2 is a schematic configuration diagram of a flash E 2 PROM card system, and FIG. FIGS. 4 and 5 are diagrams showing a conventional example. FIG. 4 is an explanatory diagram of file management, and FIG. 5 is a flowchart of a writing process. 10 CPU 11 Patrol timer 12 Batch erase type E 2 PROM (flash E 2 PROM) 13 Patrol processing unit 14 Preliminary writing processing unit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】電気的にデータの書き込みと一括消去が可
能な一括消去型E2PROMの一括消去前に行う予備書き込み
方法において、 前記E2PROMの一部にファイル管理領域を有し、前記E2PR
OMに対して指示された処理内容が削除(消去)の場合、
実際に削除を行わずに、前記ファイル管理領域に削除す
べき状態を表す削除情報を格納し、この処理をファイル
整理の指示があるまで繰り返して行うと共に、 前記E2PROMに対し、メモリアクセスのない時間帯にパト
ロールタイマで設定した時間間隔でパトロール処理手段
がパトロールを行い、このパトロールにより、前記ファ
イル管理領域に削除情報があるか否かを調べることで、
一括消去前に削除すべきメモリ領域を見つけ、削除すべ
きメモリ領域が見つかった場合は、予備書き込み処理を
行って、そのメモリ領域に対し全ビットを書き込み状態
にすることを特徴とした一括消去型E2PROMの予備書き込
み方法。
1. A preliminary writing method performed before batch erasing of a batch erasing type E 2 PROM capable of electrically writing and batch erasing data, comprising a file management area in a part of said E 2 PROM, E 2 PR
When the processing content instructed to OM is deletion (erase),
Without actually deleting the file, the deletion information indicating the state to be deleted is stored in the file management area, and this process is repeated until a file rearrangement instruction is given, and the E 2 PROM is accessed for memory access. Patrol processing means performs patrol at a time interval set by a patrol timer in a non-time zone, and by this patrol, by checking whether there is deletion information in the file management area,
A batch erasing type in which a memory area to be deleted is found before the batch erasing, and if a memory area to be removed is found, a preliminary writing process is performed, and all bits are written to the memory area. E 2 PROM preliminary writing method.
JP28135790A 1990-10-19 1990-10-19 Bulk erase type E (2) PROM pre-programming method Expired - Lifetime JP2614357B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28135790A JP2614357B2 (en) 1990-10-19 1990-10-19 Bulk erase type E (2) PROM pre-programming method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28135790A JP2614357B2 (en) 1990-10-19 1990-10-19 Bulk erase type E (2) PROM pre-programming method

Publications (2)

Publication Number Publication Date
JPH04157699A JPH04157699A (en) 1992-05-29
JP2614357B2 true JP2614357B2 (en) 1997-05-28

Family

ID=17637987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28135790A Expired - Lifetime JP2614357B2 (en) 1990-10-19 1990-10-19 Bulk erase type E (2) PROM pre-programming method

Country Status (1)

Country Link
JP (1) JP2614357B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9927993B2 (en) 2016-03-14 2018-03-27 Toshiba Memory Corporation Semiconductor memory device

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2630066B2 (en) * 1990-11-30 1997-07-16 三菱電機株式会社 Erase method for nonvolatile semiconductor memory device
GB2251324B (en) * 1990-12-31 1995-05-10 Intel Corp File structure for a non-volatile semiconductor memory
JPH0997314A (en) * 1995-09-28 1997-04-08 Canon Inc Ic card device
JPH0997205A (en) * 1995-09-28 1997-04-08 Canon Inc Method, device for managing flash rom and computer control equipment
JPH0997206A (en) * 1995-09-28 1997-04-08 Canon Inc Method, device for managing flash rom and computer control equipment
JP4017178B2 (en) * 2003-02-28 2007-12-05 スパンション エルエルシー Flash memory and memory control method
JP4802284B2 (en) 2010-01-29 2011-10-26 株式会社東芝 Semiconductor memory device and control method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9927993B2 (en) 2016-03-14 2018-03-27 Toshiba Memory Corporation Semiconductor memory device

Also Published As

Publication number Publication date
JPH04157699A (en) 1992-05-29

Similar Documents

Publication Publication Date Title
EP0686976B1 (en) Data management system for programming-limited type semiconductor memory and IC memory card having the data management system
JP3485938B2 (en) Nonvolatile semiconductor memory device
US6161163A (en) Method of writing, erasing, and controlling memory for memory device
US5682497A (en) Managing file structures for a flash memory file system in a computer
JP3078946B2 (en) Managing method of batch erase nonvolatile memory and semiconductor disk device
EP0931289B1 (en) Nonvolatile writeable memory with program suspend command
US5987563A (en) Flash memory accessed using only the logical address
JP3574078B2 (en) Storage device and storage device control method
JPH06250798A (en) Batch erasure type nonvolatile memory and semiconductor disk device using it
JP3122201B2 (en) Memory card device
JP2614357B2 (en) Bulk erase type E (2) PROM pre-programming method
JPH08235028A (en) Data management method for flash memory and data processor using the data management method
JP2575358B2 (en) IC card
JP3503448B2 (en) Flash type memory and its management device
JPH07153284A (en) Non-volatile semiconductor memory and its control method
EP4345824A1 (en) Flash memory, flash memory erase/write counting method, electronic device, and computer storage medium
JP3471842B2 (en) Data management device, data storage device, and data management method
CN100392765C (en) Secure writing of data
JPH06139143A (en) Memory card device
JPH0546489A (en) Memory card apparatus using eeproms for storing data and an interface buffer for buffering data transfer between the eeproms and anexternal device.
JPH04328394A (en) Memory for file storage
JPH089795Y2 (en) IC card
JPH07111092A (en) Control method for non-volatile semiconductor storage device
JPS62245347A (en) Data base cashing system
JPS62289999A (en) Data writing method