JP3379765B2 - Control device and method for nonvolatile memory - Google Patents

Control device and method for nonvolatile memory

Info

Publication number
JP3379765B2
JP3379765B2 JP23139891A JP23139891A JP3379765B2 JP 3379765 B2 JP3379765 B2 JP 3379765B2 JP 23139891 A JP23139891 A JP 23139891A JP 23139891 A JP23139891 A JP 23139891A JP 3379765 B2 JP3379765 B2 JP 3379765B2
Authority
JP
Japan
Prior art keywords
writing
erasing
ability value
write
address
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
JP23139891A
Other languages
Japanese (ja)
Other versions
JPH0574179A (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.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Digital Electronics 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 Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to JP23139891A priority Critical patent/JP3379765B2/en
Publication of JPH0574179A publication Critical patent/JPH0574179A/en
Application granted granted Critical
Publication of JP3379765B2 publication Critical patent/JP3379765B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)
  • Semiconductor Memories (AREA)

Description

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

【0001】本発明は、フラッシュEEPROMの如
く、同一のメモリ領域に対して複数回の消去、書込み動
作を繰り返すことによって消去、書込みが完遂させる不
揮発性メモリの制御装置及び方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device and method for a non-volatile memory, such as a flash EEPROM, in which erasing and writing are completed by repeating erasing and writing operations a plurality of times in the same memory area.

【0002】[0002]

【従来の技術】フラッシュEEPROM(例えば三菱電
機株式会社製M5M28F101P)は、電気的に書込み及び一括
消去可能な不揮発性メモリであって、一般のEEPRO
Mに比べてビットコストが低く、プログラム動作が高速
である等、優れた利点を有しているため、電子計算機や
各種電子機器への応用が検討されている。
2. Description of the Related Art A flash EEPROM (for example, M5M28F101P manufactured by Mitsubishi Electric Corporation) is a non-volatile memory that can be electrically written and collectively erased.
Compared with M, it has excellent advantages such as lower bit cost and faster program operation. Therefore, its application to electronic computers and various electronic devices is being studied.

【0003】ところで、フラッシュEEPROMにおい
ては、データの書込みを行なう場合、その素子の特性
上、同一のメモリ領域に対して複数回の書込み処理を施
すことによって、正確なデータ書込みが実現される。
By the way, in the case of writing data in the flash EEPROM, due to the characteristics of the element, accurate data writing is realized by performing the writing process a plurality of times on the same memory area.

【0004】図14乃至図16は、フラッシュEEPR
OMに目的のデータを書き込む従来の手続きを示してお
り、図14で先ず全メモリ領域にデータ“1”を書き込
んだ後、図15で消去を行ない、最後に図16で目的の
データの書込みを行なっている。この様に、消去に先立
って全メモリ領域にデータ“1”を書き込むのは、フラ
ッシュEEPROMにおいては、チップの特性上、既に
消去されている“0”の領域に余分な消去パルスを印加
すると、チップの劣化を招く問題(過消去)が生じるから
である。
14 to 16 show a flash EEPR.
FIG. 14 shows a conventional procedure for writing target data in the OM. First, in FIG. 14, data “1” is written in the entire memory area, then erase is performed in FIG. 15, and finally the target data is written in FIG. I am doing it. In this way, the data "1" is written in all the memory areas before the erasing because in the flash EEPROM, if an extra erasing pulse is applied to the already erased "0" area due to the characteristics of the chip, This is because a problem (over-erasure) that causes deterioration of the chip occurs.

【0005】図14の如く、ライトコマンドによりフラ
ッシュEEPROMの最初の1アドレス(1バイト)分の
全ビットに“1”の書込みを行ない(ステップS1)、素
子の特性上必要とされる書込み実行時間WRc(10μs)の
経過後(ステップS2)、ベリファイコマンドによってそ
の1アドレス分が正しく書き込まれたか否かを確認する
(ステップS3)。そして、素子の特性上必要とされる確
認実行時間WVc(6μs)の経過後(ステップS4)、ミス
が発生したか否かを判断し(ステップS5)、ミスが発生
しているときはステップS1へ戻って、書込み動作を繰
り返す。ミスが発生していなければ、最後のアドレスか
否かの判断を経て(ステップS6)、次のアドレスへ進み
(ステップS7)、最後のアドレスに達するまで上記一連
の手続きを繰り返す。
As shown in FIG. 14, "1" is written to all bits of the first 1 address (1 byte) of the flash EEPROM by a write command (step S1), and the write execution time required by the characteristics of the device is obtained. After WRc (10 μs) has passed (step S2), it is confirmed by the verify command whether or not the one address has been correctly written.
(Step S3). Then, after the confirmation execution time WVc (6 μs) required for the characteristics of the element has elapsed (step S4), it is determined whether or not a mistake has occurred (step S5). If a mistake has occurred, step S1 Return to and repeat the write operation. If no mistake has occurred, it is judged whether or not it is the last address (step S6), and the process proceeds to the next address.
(Step S7), the above series of procedures are repeated until the final address is reached.

【0006】次に図15の如く、フラッシュEEPRO
Mに対して消去指令(イレーズコマンド)を発し(ステッ
プS8)、素子の特性上必要とされる消去実行時間ERc
(9.5ms)の経過後(ステップS9)、最初の1アドレス分
が消去されたか否かを確認する(ステップS10)。そし
て、確認実行時間WVc(6μs)の経過後(ステップS1
1)、ミスが発生したか否かを判断し(ステップS12)、ミ
スが発生しているときはステップS8へ戻って、消去動
作を繰り返す。ミスが発生していなければ、最後のアド
レスか否かの判断を経て(ステップS13)、次のアドレス
へ進み(ステップS14)、最後のアドレスに達するまで上
記一連の手続きを繰り返す。
Next, as shown in FIG. 15, flash EEPRO
An erase command (erase command) is issued to M (step S8), and the erase execution time ERc required due to the characteristics of the device.
After the elapse of (9.5 ms) (step S9), it is confirmed whether or not the first one address has been erased (step S10). After the confirmation execution time WVc (6 μs) has elapsed (step S1
1) It is determined whether or not a mistake has occurred (step S12). If a mistake has occurred, the procedure returns to step S8 and the erase operation is repeated. If no error has occurred, it is judged whether or not it is the last address (step S13), the process proceeds to the next address (step S14), and the above series of procedures is repeated until the last address is reached.

【0007】その後、図16の如く、フラッシュEEP
ROMの最初の1アドレス(1バイト)分に、ライトコマ
ンドにより目的のデータを書き込み(ステップS15)、書
込み実行時間WRc(10μs)の経過後(ステップS16)、ベ
リファイコマンドによってその1アドレス分が正しく書
き込まれたか否かを確認する(ステップS17)。そして、
確認実行時間WVc(6μs)の経過後(ステップS18)、ミ
スが発生したか否かを判断し(ステップS19)、ミスが発
生しているときはステップS15へ戻って、書込み動作を
繰り返す。ミスが発生していなければ、最後のアドレス
か否かの判断を経て(ステップS20)、次のアドレスへ進
み(ステップS21)、最後のアドレスに達するまで上記一
連の手続きを繰り返すのである。
Then, as shown in FIG. 16, a flash EEP is performed.
The target data is written to the first 1 address (1 byte) of the ROM by the write command (step S15), and after the write execution time WRc (10 μs) has passed (step S16), the 1 address is correctly verified by the verify command. It is confirmed whether the data has been written (step S17). And
After the confirmation execution time WVc (6 μs) has elapsed (step S18), it is determined whether or not a mistake has occurred (step S19). If a mistake has occurred, the process returns to step S15 to repeat the write operation. If no error has occurred, it is judged whether or not it is the last address (step S20), the process proceeds to the next address (step S21), and the above series of procedures is repeated until the last address is reached.

【0008】[0008]

【発明が解決しようとする課題】しかし、従来の消去/
書込み方式では、図14の書込み、図15の消去及び図
16の書込みの夫々において、消去或いは書込み動作の
度に確認を行ない、確認実行時間の経過を待って次の消
去或いは書込み動作を行なわねばならないから、最終的
に目的のデータがフラッシュEEPROMに正確に書き
込まれるまでに、長い時間を要する問題があった。
However, the conventional erasure /
In the writing method, in each of the writing in FIG. 14, the erasing in FIG. 15 and the writing in FIG. 16, a confirmation is made every time an erasing or writing operation is performed, and the next erasing or writing operation must be performed after the confirmation execution time has elapsed. Therefore, there is a problem that it takes a long time before the target data is accurately written in the flash EEPROM.

【0009】例えば、 書込み時のソフトウエアオーバヘッド時間WRo=10
μs 書込み動作の実行時間WRc=10μs 書込みを完遂するのに必要な繰返し回数(実力値)Nw=
10 書込み後の確認時のソフトウエアオーバヘッド時間WV
o=10μs 書込み後の確認動作の実行時間WVc=6μs 消去時のソフトウエアオーバヘッド時間ERo=10μs 消去動作の実行時間ERc=9500μs 消去を完遂するのに必要な繰返し回数(実力値)Ne=1
0 消去後の確認時のソフトウエアオーバヘッド時間EVo
=10μs 消去後の確認動作の実行時間EVc=6μs チップサイズCS=128×1024バイト とすると、図14の書込みに要する時間T1、図15の
消去に要する時間T2、及び図16の書込みに要する時
間T3は数1、数2、及び数3によって夫々表わされ
る。尚、図16のステップS19におけるミスの回数が書
込み実力値Nwに相当し、図15のステップS12におけ
るミスの回数が消去実力値Neに相当する。
For example, a software overhead time WRo = 10 at the time of writing
μs Write operation execution time WRc = 10 μs Number of repetitions required to complete writing (actual value) Nw =
10 Software overhead time WV at confirmation after writing
o = 10 μs Confirmation operation execution time after programming WVc = 6 μs Software overhead time E Ro = 10 μs erase operation execution time ERc = 9500 μs Number of repeats required to complete erase Ne = 1
0 Software overhead time EVo at confirmation after erasure
= 10 μs Execution time of confirmation operation after erasing EVc = 6 μs If chip size CS = 128 × 1024 bytes, time T1 required for writing in FIG. 14, time T2 required for erasing in FIG. 15, and time required for writing in FIG. T3 is represented by Equations 1, 2, and 3, respectively. The number of mistakes in step S19 of FIG. 16 corresponds to the writing ability value Nw, and the number of mistakes in step S12 of FIG. 15 corresponds to the erasing ability value Ne.

【0010】[0010]

【数1】 T1=(WRo+WRc+WVo+WVc)×CS×Nw =47.2sec[Equation 1] T1 = (WRo + WRc + WVo + WVc) × CS × Nw = 47.2 sec

【数2】 T2={ERo+ERc+(EVo+EVc)×1/2×C
S}×Ne=10.6sec
[Equation 2] T2 = {ERo + ERc + (EVo + EVc) × 1/2 × C
S} × Ne = 10.6 sec

【数3】 T3=(WRo+WRc+WVo+WVc)×CS×Nw =47.2sec[Equation 3] T3 = (WRo + WRc + WVo + WVc) × CS × Nw = 47.2 sec

【0011】従って、最終的に目的のデータをフラッシ
ュEEPROMに書き込むのに必要な時間は合計105
秒と長くなる。本発明の目的は、従来よりも確認動作の
繰り返しに伴う実効時間及びオーバーヘッド時間を短縮
して、不揮発性メモリの迅速な消去及び書込みを実現す
ることである。
Therefore, the total time required to write the target data to the flash EEPROM is 105 in total.
Seconds and longer. The object of the present invention is to perform confirmation operation more than before.
It is to realize effective erasing and writing of a nonvolatile memory by reducing the effective time and overhead time associated with repetition .

【0012】[0012]

【課題を解決するための手段】本発明に係る不揮発性メ
モリの制御装置は、同一のメモリ領域に対して複数回の
消去又は書込み動作を繰り返すことによって、消去又は
書込みが完遂される不揮発性メモリの制御装置におい
て、上記不揮発性メモリについて、全メモリ領域の消去
を完遂するまでの一括消去動作の繰り返し回数である消
去実力値と、1つのアドレスのメモリ領域への書込みを
完遂するまでの書込み動作の繰り返し回数である書込み
実力値とを予め決定する手段と、上記不揮発性メモリに
上記消去実力値及び書込実力値を記憶する手段と、上記
不揮発性メモリから上記消去実力値及び書込実力値を読
み出手段と、上記不揮発性メモリの全メモリ領域の消
去においては、確認動作を伴うことなく少なくとも上記
消去実力値の回数だけ繰り返して一括消去動作を行う手
段と、上記不揮発性メモリへの目的のデータの書込みに
おいては、確認動作を伴うことなく少なくとも上記書込
み実力値の回数だけ繰り返して書込み動作を行う手段と
を有することを特徴とする。さらに、本発明に係る不揮
発性メモリの制御装置は、上記装置において、書込実力
値を、1つのアドレスのメモリ領域への書込みを完遂す
るまでの書込み動作の繰り返し回数の全アドレス中の最
大値とするものである。さらに、本発明に係る不揮発性
メモリの制御装置は、上記装置において、全メモリ領域
に書込み動作を行った後に該全メモリ領域の一括消去動
作を行い、最初のアドレスから順に消去ミスが発生した
か否かを判断し、消去ミスが発生した場合には再度一括
消去動作に戻ることを最後のアドレスに消去ミスが発生
していないと判断するまで行うことによって消去実力値
を決定し、最初のアドレスから順に、書込みミスが発生
していないと判断されるまで各アドレス分のメモリ領域
に書込み動作を繰り返すことによって書込み実力値を決
定するものである。
A non-volatile memory control device according to the present invention is a non-volatile memory in which erasing or writing is completed by repeating erasing or writing operations a plurality of times in the same memory area. In the control device, the erasing ability value, which is the number of repetitions of the batch erasing operation until the erasing of all memory areas is completed, and the write operation until the writing of one address into the memory area is completed, in the nonvolatile memory. And a means for storing the erase ability value and the write ability value in the non-volatile memory, and the erase ability value and the write ability value from the non-volatile memory. and reading <br/> be means leaving viewed in the erasure of the entire memory area of the nonvolatile memory, at least the erasing ability values times without confirmation operation And a means for repeatedly performing the batch erasing operation, and a means for repeatedly writing the target data to the nonvolatile memory at least the number of times of the write capability value without performing a confirming operation. Is characterized by. Further, the nonvolatile memory control device according to the present invention is configured such that, in the above device, the write capability value is the maximum value of the number of repetitions of the write operation until the writing to the memory area of one address is completed among all the addresses. It is what Furthermore, the nonvolatile memory control device according to the present invention, in the above-mentioned device, performs a batch erase operation on all memory areas after performing a write operation on all memory areas, and whether an erase error occurs in order from the first address. If the erase error occurs, the erase ability value is determined by returning to the batch erase operation again until it is determined that the erase error has not occurred at the last address. The writing ability value is determined by sequentially repeating the writing operation in the memory area for each address until it is determined that the writing error has not occurred.

【0013】又、本発明に係る不揮発性メモリの制御方
法は、同一のメモリ領域に対して複数回の消去又は書込
み動作を繰り返すことによって、消去又は書込みが完遂
される不揮発性メモリの制御方法において、上記不揮発
性メモリについて、全メモリ領域の消去を完遂するまで
の一括消去動作の繰り返し回数である消去実力値と、1
つのアドレスのメモリ領域への書込みを完遂するまでの
書込み動作の繰り返し回数である書込み実力値とを予め
決定する手続きと、上記不揮発性メモリに上記消去実力
値及び書込実力値を記憶する手続きと、上記不揮発性メ
モリから上記消去実力値及び書込実力値を読み出手続
きとを含み、上記不揮発性メモリの全メモリ領域の消去
においては、確認動作を伴うことなく少なくとも上記消
去実力値の回数だけ繰り返して一括消去動作を行う手続
きを、上記不揮発性メモリへの目的のデータの書込みに
おいては、確認動作を伴うことなく少なくとも上記書込
み実力値の回数だけ繰り返して書込み動作を行う手続き
を行うことを特徴とする。さらに、本発明に係る不揮発
性メモリの制御方法は、上記方法において、書込実力値
を、1つのアドレスのメモリ領域への書込みを完遂する
までの書込み動作の繰り返し回数の全アドレス中の最大
値とするものである。
The non-volatile memory control method according to the present invention is a non-volatile memory control method in which erasing or writing is completed by repeating erasing or writing operations a plurality of times in the same memory area. , An erasing ability value which is the number of repetitions of the batch erasing operation until the erasing of all the memory areas of the nonvolatile memory is completed, and 1
And a procedure for predetermining a write ability value, which is the number of times the write operation is repeated until writing of one address to the memory area is completed, and a procedure for storing the erase ability value and the write ability value in the nonvolatile memory. includes procedures <br/> way back to be read out of the erasing ability value and writing ability value from the nonvolatile memory in the erasing of the entire memory area of the nonvolatile memory, at least the without confirmation operation The procedure of performing the batch erasing operation by repeating the erasing ability value number of times is repeated at least the number of times of the writing ability value without writing the confirmation operation in writing the target data to the nonvolatile memory. It is characterized by performing procedures. Furthermore, in the method for controlling a nonvolatile memory according to the present invention, in the above method, the write capability value is the maximum value of the number of times of repeating the write operation until the writing to the memory area of one address is completed among all the addresses. It is what

【0014】[0014]

【作用】上記制御装置及び方法では、不揮発性メモリの
消去実力値を記録して全メモリ領域を消去するので、全
メモリ領域についての一括消去動作を確認動作を伴うこ
となく少なくとも消去実力値の回数だけ繰り返し、その
後に消去の確認を行うことができる。消去実力値は全メ
モリ領域の消去を完遂するまでの一括消去動作の繰り返
し回数であるから、この手続きによって極めて高い確率
で全メモリ領域の消去が達成される。従って、従来方式
と比較して確認動作を省略することができる。さらに、
不揮発性メモリの書込み実力値を記録して各アドレスに
書込むので、確認動作を伴うことなく書込み動作を少な
くとも書込み実力値の回数繰り返し、その後書込みの確
認を行うことができる。書込み実力値は、1つアドレス
のメモリ領域の書込みを完遂するまでの書込み動作の繰
り返し回数であるから、この手続きによって高い確率で
各アドレスへの書込みが達成される。従って、従来方式
と比較して確認動作を省略することができる。なお、消
去ミス又は書込みミスが発生した場合には、消去又は書
込みを完遂するために必要な手続きを行う必要がある
が、このような手続きがなされる可能性は極めて低い。
上記制御装置及び方法では、決定された消去実力値及び
書込実力値を、不揮発性メモリに記憶する。従って、こ
れら実力値を決定した後であって、一括消去動作、さら
には目的とするデータの書込み動作の前に電源が落とさ
れても、これら実力値は不揮発性メモリに記憶されたま
まであるから、再度電源が投入されれば、一括消去動
作、さらにはデータの書込み動作が実行可能である。ま
た、消去実力値及び書込実力値を不揮発性メモリから読
み出ので、不揮発性メモリの一括消去動作の前にこの
処理を行えば、一括消去動作を行ってもこれら実力値を
消滅させずに保存でき、また、これら実力値に基づいた
一括消去動作とデータの書込み動作を行うことができ
る。さらに、書込み実力値を、1つアドレスのメモリ領
域への書込みを完遂するまでの書込み動作の繰り返し回
数の全アドレス中の最大値とすると、極めて高い確率で
この処理によって全アドレスの書込みが達成される。
In the above control device and method, since the erasing ability value of the non-volatile memory is recorded and the entire memory area is erased, the batch erasing operation for all the memory area is performed at least the number of times of the erasing ability value without the confirmation operation. Only after that, confirmation of erasure can be performed. Since the erasing ability value is the number of times the batch erasing operation is repeated until the erasing of all memory areas is completed, this procedure achieves erasing of all memory areas with an extremely high probability. Therefore, the checking operation can be omitted as compared with the conventional method. further,
Since the writing ability value of the nonvolatile memory is recorded and written to each address, the writing operation can be repeated at least the number of writing ability values without the confirmation operation, and then the writing confirmation can be performed. Since the write ability value is the number of times the write operation is repeated until the writing of the memory area of one address is completed, the writing to each address is achieved with a high probability by this procedure. Therefore, the checking operation can be omitted as compared with the conventional method. It should be noted that when an erasing error or writing error occurs, it is necessary to perform the necessary procedure to complete the erasing or writing, but such a procedure is extremely unlikely.
In the above control device and method, the determined erasing ability value and writing ability value are stored in the non-volatile memory. Therefore, even if the power is turned off after the determination of these ability values and before the batch erasing operation and further the target data writing operation, these ability values are still stored in the nonvolatile memory. When the power is turned on again, the batch erase operation and the data write operation can be executed. Also, since to read <br/> out viewed from the non-volatile memory erasing ability value and writing ability value, by performing this treatment prior to batch erase operation of the non-volatile memory, which also performs batch erase operation ability The values can be saved without disappearing, and the batch erasing operation and the data writing operation based on these ability values can be performed. Furthermore, if the writing ability value is set to the maximum value of the number of repetitions of the writing operation until the writing of one address to the memory area is completed among all the addresses, the writing of all the addresses is achieved with an extremely high probability. It

【0015】[0015]

【発明の効果】本発明に係る不揮発性メモリの制御装置
及び方法では、全メモリ領域の消去では消去の確認動作
を、各アドレスへの書込みでは書込みの確認動作を従来
方式よりも少なくすることができる。つまり、確認動作
に要する実行時間及びオーバヘッド時間を短縮すること
により、従来方式よりも迅速に消去及び書込みを行うこ
とができる。さらに、個々のメモリチップ毎にその消去
実力値及び書込み実力値が与えられるので、メモリチッ
プ毎の特性に対応することができる。
In the non-volatile memory control apparatus and method according to the present invention, the erase confirmation operation can be made smaller when the entire memory area is erased, and the write confirmation operation can be made smaller when writing to each address than in the conventional method. it can. That is, by shortening the execution time and overhead time required for the confirmation operation, erasing and writing can be performed faster than in the conventional method. Furthermore, since the erasing ability value and the writing ability value are given to each memory chip, it is possible to correspond to the characteristics of each memory chip.

【0016】以下、本発明に係る不揮発性メモリの制御
装置及び方法をフラッシュEEPROMに実施した一例
について詳述する。
Hereinafter, control of the non-volatile memory according to the present invention
An example of implementing the apparatus and method in a flash EEPROM will be described in detail.

【0017】フラッシュEEPROM(5)は、図11に
示す如くマイクロコンピュータの構成要素として、RO
M(2)、RAM(3)、I/O(4)と共にCPU(1)に接
続されており、CPU(1)によって消去、書込み動作が
制御されている。
The flash EEPROM (5) is, as shown in FIG.
The M (2), the RAM (3) and the I / O (4) are connected to the CPU (1), and the erasing / writing operation is controlled by the CPU (1).

【0018】図13はCPU(1)とフラッシュEEPR
OM(5)の接続状態を更に具体的に示したものであっ
て、フラッシュEEPROM(5)は128Kバイトの容
量を有し、D0〜D7のデータ線とA0〜A16のアド
レス線を介してCPU(1)と接続されている。又、CP
U(1)のアドレス線A17〜A19はデコーダ(6)を介
して前記各種メモリ及びフラッシュEEPROM(5)へ
接続され、書込み或いは読出しの対象とすべき1のメモ
リを選択する。
FIG. 13 shows a CPU (1) and a flash EEPR.
More specifically, the connection state of the OM (5) is shown. The flash EEPROM (5) has a capacity of 128 Kbytes, and the CPU through the data lines D0 to D7 and the address lines A0 to A16. It is connected to (1). Also, CP
The address lines A17 to A19 of U (1) are connected to the various memories and the flash EEPROM (5) through the decoder (6) and select one memory to be written or read.

【0019】図1乃至図4は、本発明における消去実力
値及び書込み実力値を決定する一連の手続き(以下、
「第1ステップ」という。)を示しており、この中で図
1は、全メモリ領域の各ビットに“1”を書き込む手続
きを示し、図2は、全メモリ領域を一括消去して消去実
力値Neを決定する手続きを示し、図3及び図4は、全
メモリ領域の各ビットに“1”を書き込んで書き込み実
力値を決定する手続きを示している。
1 to 4 show the erasing ability in the present invention.
A series of procedures to determine the value and writing ability value (hereinafter,
This is called the "first step". ) , In which FIG. 1 shows a procedure of writing “1” to each bit of the entire memory area, and FIG. 2 shows a procedure of collectively erasing the entire memory area to determine the erase performance value Ne. 3 and 4 show a procedure for writing "1" in each bit of the entire memory area to determine the write capability value.

【0020】又、図乃至図5は本発明における目的のデ
ータを書き込む一連の手続き(以下、「第2ステップ」
という。)を示しており、この中で、図5及び図6は、
従来の図14に対応して、全メモリ領域の各ビット
“1”を書き込む手続きを示し、図7及び図8は、従来
の図15に対応して、全メモリ領域を一括消去する手続
きを示し、図9及び図10は、従来の図16に対応し
て、目的とするデータの書込みを行う手続きを示してい
る。
Further, FIGS. 5 to 5 show the target data of the present invention.
A series of procedures for writing data (hereinafter referred to as "second step")
Say. ), In which FIG. 5 and FIG.
14 shows a procedure for writing each bit "1" of the entire memory area, corresponding to FIG. 14 of the related art, and FIGS. 7 and 8 show a procedure for collectively erasing the entire memory area, corresponding to FIG. 9 and 10 show a procedure for writing desired data, corresponding to FIG. 16 of the related art.

【0021】尚、フラッシュEEPROMには書込み回
数に制限があるため、その書込みに際しては、例えば前
記RAMをバッファメモリとして用い、編集途中のデー
タは先ずバッファメモリに書き込んで、最終的にデータ
が揃った段階で該データを読み出して、フラッシュEE
PROMに書き込むこととする。
Since the flash EEPROM has a limited number of times of writing, when writing the data, for example, the RAM is used as a buffer memory, and the data in the middle of editing is first written in the buffer memory to finally complete the data. Read the data at the step of flash EE
It is supposed to be written in PROM.

【0022】又、本実施例では図12に示す如く、フラ
ッシュEEPROM(5)の最終アドレスの1ワード分を
書込み実力値Nwの格納領域として用い、最終アドレス
の直前アドレスの1ワード分を消去実力値Neの格納領
域として用いる。そして、第2ステップの実行に際して
は、先ずフラッシュEEPROM(5)から書込み実力値
Nw及び消去実力値Neを読み出して、例えば前記RAM
の所定領域に書き込むものとする。従って、第1ステッ
プの実行後、第2ステップの実行前に電源を落として
も、消去実力値Ne及び書込み実力値NwはフラッシュE
EPROM(5)に記憶されたままであるから、再度電源
を投入して第2ステップを実行することが可能である。
Further, in this embodiment, as shown in FIG. 12, one word of the final address of the flash EEPROM (5) is used as a storage area for the write ability value Nw, and one word of the address immediately before the last address is erased. It is used as a storage area for the value Ne. When executing the second step, first, the writing ability value Nw and the erasing ability value Ne are read from the flash EEPROM (5) and, for example, the RAM is used.
Shall be written in a predetermined area. Therefore, even if the power is turned off after the execution of the first step and before the execution of the second step, the erasing ability value Ne and the writing ability value Nw are the same as those of the flash E.
Since it remains stored in the EPROM (5), it is possible to turn on the power again to execute the second step.

【0023】第1ステップ(図1乃至図4) 図1に示す如く、ライトコマンドによりフラッシュEE
PROMの最初の1アドレス分の各ビットに“1”の書
込みを行ない(ステップS1)、一定の書込み実行時間W
Rc(10μs)の経過後(ステップS2)、ベリファイコマン
ドによってその1アドレス分が正しく書き込まれたか否
かを確認する(ステップS3)。そして、一定の確認実行
時間WVc(6μs)の経過後(ステップS4)、ミスが発生
したか否かを判断し(ステップS5)、ミスが発生してい
るときはステップS1へ戻って、書込み動作を繰り返
す。ミスが発生していなければ、最後のアドレスか否か
の判断を経て(ステップS6)、次のアドレスへ進み(ス
テップS7)、最後のアドレスに達するまで上記一連の
手続きを繰り返す。
First Step (FIGS . 1 to 4) As shown in FIG. 1, a flash EE is issued by a write command.
"1" is written in each bit of the first 1 address of the PROM (step S1), and a constant write execution time W
After Rc (10 μs) has elapsed (step S2), it is confirmed by the verify command whether or not the one address has been correctly written (step S3). Then, after a certain confirmation execution time WVc (6 μs) has elapsed (step S4), it is determined whether or not a mistake has occurred (step S5). If a mistake has occurred, the process returns to step S1 to perform the write operation. repeat. If no error has occurred, it is judged whether or not it is the last address (step S6), the process proceeds to the next address (step S7), and the above series of procedures is repeated until the last address is reached.

【0024】次に図2の如く、消去実力値をカウントす
るための変数Neを初期化した後(ステップS8)、フラ
ッシュEEPROMに対して消去指令(イレーズコマン
ド)を発し(ステップS9)、一定の消去実行時間ERc
(9.5ms)の経過後(ステップS10)、ベリファイコマン
ドによって最初の1アドレス分が消去されたか否かを確
認する(ステップS11)。そして、確認実行時間WVc(6
μs)の経過後(ステップS12)、ミスが発生したか否かを
判断し(ステップS13)、ミスが発生しているときは変数
Neをカウントアップした後(ステップS14)、ステップ
S9へ戻って、消去動作を繰り返す。ミスが発生してい
なければ、最後のアドレスか否かの判断を経て(ステッ
プS15)、次のアドレスへ進み(ステップS16)、最後の
アドレスに達するまで上記一連の手続きを繰り返す。こ
の結果、変数Neの最終値が消去実力値となる。
Next, as shown in FIG. 2, after the variable Ne for counting the erasing ability value is initialized (step S8), an erasing command (erase command) is issued to the flash EEPROM (step S9), and a constant value is given. Erase execution time ERc
After the elapse of (9.5 ms) (step S10), it is confirmed whether or not the first one address has been erased by the verify command (step S11). The confirmation execution time WVc (6
μs) (step S12), it is determined whether or not a mistake has occurred (step S13), and if a mistake has occurred, the variable Ne is counted up (step S14) and then the process returns to step S9. , Erase operation is repeated. If no error has occurred, it is judged whether or not it is the last address (step S15), the process proceeds to the next address (step S16), and the above series of procedures is repeated until the last address is reached. As a result, the final value of the variable Ne becomes the erasing ability value.

【0025】その後、図3の如く、前記バッファメモリ
内に設けた実力値仮登録用の変数FDATA(1バイト)
の全ビットに“1”をたてる(ステップS17)。次に書込
み実力値Nw及び書込み実力値カウント用の変数Nwtを
初期化した後(ステップS18、ステップS19)、フラッシ
ュEEPROMの最初の1アドレス分(1バイト)にライ
トコマンドにより変数FDATAのデータを書き込み
(ステップS20)、書込み実行時間WRc(10μs)の経過後
(ステップS21)、ベリファイコマンドによってその1ア
ドレス分が正しく書き込まれたか否かを確認する(ステ
ップS22)。そして、確認実行時間WVc(6μs)の経過
後(ステップS23)、ミスが発生したか否かを判断し(ス
テップS24)、ミスが発生しているときは変数Nwtをカ
ウントアップした後(ステップS25)、ステップS20へ戻
って、書込み動作を繰り返す。
Thereafter, as shown in FIG. 3, a variable FDATA (1 byte) for temporarily registering the actual value provided in the buffer memory.
"1" is set to all bits of (step S17). Next, after initializing the writing ability value Nw and the writing ability value counting variable Nwt (steps S18 and S19), write the data of the variable FDATA to the first one address (1 byte) of the flash EEPROM by a write command.
(Step S20), after the write execution time WRc (10 μs) has elapsed
(Step S21), it is confirmed by the verify command whether or not the one address has been correctly written (Step S22). Then, after the confirmation execution time WVc (6 μs) has elapsed (step S23), it is determined whether or not a mistake has occurred (step S24), and if a mistake has occurred, the variable Nwt is counted up (step S25). ), And returns to step S20 to repeat the write operation.

【0026】上記判断にてミスが発生していなければ、
図4に示す如く、NwtとNwの大小比較を行ない(ステ
ップS26)、Nwt>Nwであれば、NwにNwtを設定する
(ステップS27)。尚、ステップS26及びステップS27
は、各アドレス毎に異なる実力値の最大値をそのメモリ
チップの書込み実力値Nwに設定するための手続きであ
る。
If there is no mistake in the above judgment,
As shown in FIG. 4, the magnitudes of Nwt and Nw are compared (step S26). If Nwt> Nw, Nwt is set to Nwt (step S27). Incidentally, step S26 and step S27
Is a procedure for setting the maximum value of the ability value different for each address to the writing ability value Nw of the memory chip.

【0027】次に、最後のアドレスか否かを判断し(ス
テップS28)、NOであれば、次のアドレスへ進み(ステ
ップS29)、直前にデータ書込きを行なったアドレスが
最後のアドレスより2バイト前であるか否かの判断(ス
テップS30)、1バイト前であるか否かの判断(ステップ
S31)を経て、図3のステップS19へ戻り、変数FDA
TAのデータを次々とアドレスを進めながら書き込んで
いく。
Next, it is judged whether or not it is the last address (step S28). If NO, the process proceeds to the next address (step S29), and the address where the data writing was performed immediately before is the last address. After judging whether it is two bytes before (step S30) and judging whether it is one byte before (step S31), the process returns to step S19 in FIG.
The TA data is written while advancing addresses one after another.

【0028】そして、図4のステップS30にてYESと
判断されたときは、図2の手続きによって得た消去実力
値Neを変数FDATAに登録した後(ステップS33)、
図3のステップS19へ戻って、該変数FDATAの内容
をフラッシュEEPROMの当該番地、即ち最終アドレ
スよりも1バイト前のアドレスに書き込む。又、図4の
ステップS31にてYESと判断されたときは、図3のス
テップS19から図4のステップS27までの手続きによっ
て得た書込み実力値Nwを変数FDATAに登録した後
(ステップS32)、図3のステップS19へ戻って、該変数
FDATAの内容をフラッシュEEPROMの当該番
地、即ち最終アドレスに書き込むのである。
When YES is determined in step S30 of FIG. 4, after the erasing ability value Ne obtained by the procedure of FIG. 2 is registered in the variable FDATA (step S33),
Returning to step S19 of FIG. 3, the content of the variable FDATA is written to the corresponding address of the flash EEPROM, that is, the address one byte before the final address. If YES is determined in step S31 of FIG. 4, after the writing ability value Nw obtained by the procedure from step S19 of FIG. 3 to step S27 of FIG. 4 is registered in the variable FDATA.
(Step S32) Then, returning to step S19 in FIG. 3, the content of the variable FDATA is written to the corresponding address of the flash EEPROM, that is, the final address.

【0029】この結果、フラッシュEEPROMには、
図12の如く消去実力値Neと書込み実力値Nwが登録さ
れることになる。
As a result, in the flash EEPROM,
As shown in FIG. 12, the erasing ability value Ne and the writing ability value Nw are registered.

【0030】第2ステップ(図5乃至図10) 図5の如く、ライトコマンドによりフラッシュEEPR
OMの最初の1アドレス分の各ビットに“1”の書込み
を行ない(ステップS1)、書込み実行時間WRc(10μs)
の経過後(ステップS2)、最後のアドレスか否かの判断
を経て(ステップS3)、次のアドレスへ進み(ステップ
S4)、最後のアドレスに達するまで上記一連の手続き
を繰り返す。そして、ステップS3にて最後のアドレス
であることが判断されたとき、全メモリ領域に対するデ
ータの書込みが書込み実力値Nwの回数だけ繰り返され
たか否かが判断され(ステップS5)、NOの場合はステ
ップS1へ戻って、データの書込みを繰り返す。
Second step (FIGS. 5 to 10) As shown in FIG. 5, a flash EEPR is issued by a write command.
Write "1" to each bit of the first 1 address of OM (step S1), and write execution time WRc (10 μs)
After elapse of (step S2), it is judged whether or not it is the last address (step S3), the process proceeds to the next address (step S4), and the above series of procedures are repeated until the last address is reached. Then, when it is determined in step S3 that the address is the last address, it is determined whether or not the data writing to all the memory areas has been repeated the number of times of the write capability value Nw (step S5). Returning to step S1, the writing of data is repeated.

【0031】データの書込みを書込み実力値Nwの回数
だけ繰り返した後、図6に示す如くベリファイコマンド
によって書き込んだデータの1アドレス分の確認を行う
(ステップS6)。そして、確認実行時間WVc(6μ
s)の経過後(ステップS7)、ミスが発生したか否か
を判断し(ステップS8)、NOの場合は最後のアドレ
スか否かの判断(ステップS9)を経て、次のアドレス
へ進み(ステップ10)、データの確認を進める。
After the data writing is repeated the number of times of the writing ability value Nw, one address of the written data is confirmed by the verify command as shown in FIG. 6 (step S6). Then, the confirmation execution time WVc (6 μ
After elapse of (s) (step S7), it is judged whether or not a mistake has occurred (step S8), and if NO, it is judged whether or not the address is the last address (step S9), and the process proceeds to the next address (step S9). Step 10), proceed with confirmation of the data.

【0032】上記ステップS8にてミスの発生が判断さ
れたときは、その1アドレス分に再度“1”の書き込み
を行ない(ステップS11)、書込み実行時間WRc(10μm)
の経過後(ステップS12)、最後のアドレスか否かの判断
(ステップS13)を経て、次のアドレスへ進み(ステップ
S14)、最後のアドレスに達するまで“1”の書き込み
を行なう。尚、上記ステップS8にてミスが発見される
確率は極めて低く、ステップS11乃至ステップS14の手
続きが実際に実行される回数は極めて少ない。
When it is determined in step S8 that a mistake has occurred, "1" is written again for that one address (step S11), and the write execution time WRc (10 μm).
After elapse of (step S12), it is judged whether it is the last address or not.
After (step S13), the process proceeds to the next address (step S14), and "1" is written until the last address is reached. The probability that a mistake is found in step S8 is extremely low, and the number of times that the procedures of steps S11 to S14 are actually executed is extremely small.

【0033】上記ステップS9にて最後のアドレスまで
“1”が書き込まれたことが判断されると、図7の如く
フラッシュEEPROMに対して消去指令を発し(ステ
ップS15)、消去実行時間ERc(9.5ms)の経過後(ステ
ップS16)、消去実力値Neだけ消去動作が繰り返された
か否かが判断され(ステップS17)、NOの場合はステッ
プS15へ戻って消去動作を繰り返す。
When it is determined in step S9 that "1" has been written up to the last address, an erase command is issued to the flash EEPROM as shown in FIG. 7 (step S15), and the erase execution time ERc (9 After the lapse of 0.5 ms (step S16), it is judged whether or not the erasing operation has been repeated by the erasing ability value Ne (step S17). If NO, the process returns to step S15 and the erasing operation is repeated.

【0034】消去動作を消去実力値Neの回数だけ繰り
返した後、図8の如くベリファイコマンドによって最初
の1アドレス分が消去されたか否かを確認する(ステッ
プS18)。そして、確認実行時間EVc(6μs)の経過後
(ステップS19)、ミスが発生したか否かを判断し(ステ
ップS20)、NOの場合は最後のアドレスか否かの判断
(ステップS21)を経て、次のアドレスへ進み(ステップ
S22)、消去動作の確認を進める。
After the erase operation is repeated by the number of erase ability values Ne, it is confirmed whether or not the first one address has been erased by the verify command as shown in FIG. 8 (step S18). After the confirmation execution time EVc (6 μs) has elapsed
(Step S19), it is judged whether or not a mistake has occurred (Step S20), and if NO, it is judged whether or not it is the last address.
After (step S21), the process proceeds to the next address (step S22) to confirm the erase operation.

【0035】上記ステップS20にてミスの発生が判断さ
れたときは、その1アドレス分に“0”の書き込みを行
ない(ステップS23)、書込み実行時間WRc(10μm)の経
過後(ステップS24)、最後のアドレスか否かの判断(ス
テップS25)を経て、次のアドレスへ進み(ステップS2
6)、最後のアドレスに達するまで“0”の書き込みを行
なう。尚、上記ステップS20にてミスが発見される確率
は極めて低く、ステップS23乃至ステップS26の手続き
が実際に実行される回数は極めて少ない。
When it is determined in step S20 that an error has occurred, "0" is written to that one address (step S23), and after the write execution time WRc (10 μm) has elapsed (step S24), After determining whether it is the last address (step S25), the process proceeds to the next address (step S2).
6), write "0" until the last address is reached. The probability that a mistake is found in step S20 is extremely low, and the number of times the procedures of steps S23 to S26 are actually executed is extremely small.

【0036】上記ステップS21にて最後のアドレスまで
消去の完遂が確認されると、図9の如く、ライトコマン
ドによりフラッシュEEPROMの最初の1アドレス分
(1バイト)に目的のデータの書込みを行ない(ステップ
S27)、書込み実行時間WRc(10μs)の経過後(ステップ
S28)、最後のアドレスか否かの判断を経て(ステップS
29)、次のアドレスへ進み(ステップS30)、最後のアド
レスに達するまで上記一連の手続きを繰り返す。そし
て、ステップS29にて最後のアドレスであることが判断
されたとき、全メモリ領域に対するデータの書込みが、
書込み実力値Nwの回数だけ繰り返されたか否かが判断
され(ステップS31)、NOの場合はステップS27へ戻っ
て、データの書込みを繰り返す。
When it is confirmed in step S21 that erasing has been completed up to the last address, as shown in FIG. 9, the first one address of the flash EEPROM is issued by a write command.
The target data is written in (1 byte) (step S27), and after the write execution time WRc (10 μs) has elapsed (step S28), it is judged whether it is the last address (step S27).
29), proceed to the next address (step S30), and repeat the above series of procedures until the final address is reached. When it is determined in step S29 that the address is the last address, the writing of data to the entire memory area is
It is determined whether or not the writing ability value Nw has been repeated (step S31). If NO, the process returns to step S27 and the writing of data is repeated.

【0037】データの書込みを書込み実力値Nwの回数
だけ繰り返した後、図10に示す如くベリファイコマン
ドによって書き込んだデータの1アドレス分の確認を行
なう(ステップS32)。そして、確認実行時間WVc(6μ
s)の経過後(ステップS33)、ミスが発生したか否かを判
断し(ステップS34)、NOの場合は最後のアドレスか否
かの判断(ステップS35)を経て、次のアドレスへ進み
(ステップS36)、データの読出し確認を進める。
After the data writing is repeated the number of times of the writing ability value Nw, one address of the written data is confirmed by the verify command as shown in FIG. 10 (step S32). Then, the confirmation execution time WVc (6 μ
After the elapse of (s) (step S33), it is judged whether or not a mistake has occurred (step S34), and if NO, it is judged whether or not it is the last address (step S35), and the process proceeds to the next address.
(Step S36), the data read confirmation is advanced.

【0038】上記ステップS34にてミスの発生が判断
されたときは、その1アドレス分に再度、目的とするデ
ータの書き込みを行ない(ステップS37)、書込み実行時
間WRc(10μm)の経過後(ステップS38)、最後のアドレ
スか否かの判断(ステップS39)を経て、次のアドレスへ
進み(ステップS40)、最後のアドレスに達するまでデー
タの書き込みを行なう。尚、上記ステップS34にてミス
が発見される確率は極めて低く、ステップS37乃至ステ
ップS40の手続きが実際に実行される回数は極めて少な
い。
When it is determined in step S34 that a mistake has occurred, the target data is written again for that one address (step S37), and after the write execution time WRc (10 μm) has elapsed (step S37). In step S38, it is judged whether or not it is the last address (step S39), the process proceeds to the next address (step S40), and data is written until the last address is reached. The probability that a mistake is found in step S34 is extremely low, and the number of times the procedure of steps S37 to S40 is actually executed is extremely small.

【0039】上記一連の消去、書込み動作においては、
殆どの場合、図5のステップS1乃至図6のステップS
10の実行により、メモリ領域の全アドレスに対してデー
タ“1”が正しく書込まれ、その後、図6のステップS
11乃至ステップS14を経ることなく、図7のステップS
15乃至図8のステップS22が実行されて、メモリ消去が
完遂される。又、その後、図8のステップS23乃至ステ
ップS26を経ることなく、図9のステップS27乃至図1
0のステップS36が実行されて、データの書込みが完遂
される。
In the above series of erasing and writing operations,
In most cases, step S1 of FIG. 5 to step S of FIG.
By executing step 10, data "1" is correctly written to all addresses in the memory area, and then step S in FIG.
11 through step S14, without passing through step S of FIG.
15 to step S22 of FIG. 8 are executed to complete the memory erase. Further, thereafter, without going through steps S23 to S26 of FIG. 8, steps S27 to FIG.
The step S36 of 0 is executed to complete the writing of data.

【0040】この場合、前述の従来例と同様に、WRo
=10μs、WRc=10μs、Nw=10、WVo=10
μs、WVc=6μs、ERo=10μs、ERc=9500
μs、Ne=10、EVo=10μs、EVc=6μs、CS
=128×1024バイトとすると、図5及び図6に示
す書込みに要する時間T1、図7及び図8に示す消去に
要する時間T2、図9及び図10に示す書込みに要する
時間T3は、下記の数4、数5、数6によって夫々算出
される。
In this case, as in the above-mentioned conventional example, WRo
= 10 μs, WRc = 10 μs, Nw = 10, WVo = 10
μs, WVc = 6 μs, ERo = 10 μs, ERc = 9500
μs, Ne = 10, EVo = 10 μs, EVc = 6 μs, CS
= 128 × 1024 bytes, the time T1 required for writing shown in FIGS. 5 and 6, the time T2 required for erasing shown in FIGS. 7 and 8 and the time T3 required for writing shown in FIGS. 9 and 10 are as follows. It is calculated by the equations 4, 5, and 6, respectively.

【0041】[0041]

【数4】 T1=(WRo+WRc)×CS×Nw+(WVo+WVc)×CS=28.2sec## EQU00004 ## T1 = (WRo + WRc) * CS * Nw + (WVo + WVc) * CS = 28.2 sec

【数5】 T2=(ERo+ERc)×Ne+(EVo+EVc)×CS=2.19sec[Equation 5] T2 = (ERo + ERc) × Ne + (EVo + EVc) × CS = 2.19 sec

【数6】 T3=(WRo+WRc)×CS×Nw+(WVo+WVc)×CS=28.2sec## EQU6 ## T3 = (WRo + WRc) × CS × Nw + (WVo + WVc) × CS = 28.2 sec

【0042】従って、最終的に目的のデータをフラッシ
ュEEPROMに書き込むのに必要な時間は合計5.
59秒と、従来方式の場合の略2分の1に短縮されるこ
ととなる。
[0042] Therefore, ultimately the time required to write the desired data to the flash EEPROM total 5 8.
The time is 59 seconds, which is about half that of the conventional method.

【0043】上記不揮発性メモリの制御装置及び方法
よれば、消去及び書込みを従来よりも正確且つ迅速に行
い、目的のデータの書込みを正確且つ迅速に行うことが
できる。さらに、メモリチップ毎にその書込み実力値N
w及び消去実力値Neが実測され、記憶されるので、メモ
リチップ毎の特性のバラツキを吸収出来る。
According to the above non-volatile memory control device and method , erasing and writing can be performed more accurately and quickly than in the past.
The target data can be written accurately and quickly.
it can. Furthermore, the writing ability value N for each memory chip
Since w and the erasing ability value Ne are actually measured and stored, it is possible to absorb variations in characteristics between the memory chips.

【0044】上記実施例の説明は、本発明を説明するた
めのものであって、特許請求の範囲に記載の発明を限定
し、或は範囲を減縮する様に解すべきではない。又、本
発明の各部構成は上記実施例に限らず、特許請求の範囲
に記載の技術的範囲内で種々の変形が可能であることは
勿論である。
The above description of the embodiments is for explaining the present invention, and should not be construed as limiting the invention described in the claims or reducing the scope. The configuration of each part of the present invention is not limited to the above-mentioned embodiment, and it goes without saying that various modifications can be made within the technical scope described in the claims.

【0045】例えば上記実施例では、書込み実力値Nw
及び消去実力値Neとして書込み及び消去動作の完遂ま
での繰返し回数を採用しているが、これに限らず該繰返
し回数に一定比率(例えば0.8〜1.2)を乗じた回数
や、適当な関数によって算出される回数等、実力値を反
映した種々の値を採用することが可能である。又、書込
み実力値Nwは、メモリチップの全領域を対象として1
つの値を設定しているが、メモリ領域を複数に分割し
て、各メモリ領域毎に書込み実力値Nwを設定すること
も可能である。
For example, in the above embodiment, the writing ability value Nw
The number of repetitions until the completion of the writing and erasing operations is adopted as the erasing ability value Ne. It is possible to adopt various values that reflect the actual value, such as the number of times calculated by such a function. Further, the writing ability value Nw is 1 for the entire area of the memory chip.
Although one value is set, it is also possible to divide the memory area into a plurality and set the writing ability value Nw for each memory area.

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

【図1】本発明に係る不揮発性メモリの制御方法におけ
る第1ステップの第1部分を示すフローチャートであ
る。
FIG. 1 is a flowchart showing a first part of a first step in a method for controlling a nonvolatile memory according to the present invention.

【図2】同上の第2部分を示すフローチャートである。FIG. 2 is a flowchart showing a second part of the above.

【図3】同上の第3部分を示すフローチャートである。FIG. 3 is a flowchart showing a third part of the above.

【図4】同上の第4部分を示すフローチャートである。FIG. 4 is a flowchart showing a fourth portion of the above.

【図5】本発明に係る不揮発性メモリの制御方法におけ
る第2ステップの第1部分を示すフローチャートであ
る。
FIG. 5 is a flowchart showing a first part of a second step in the method for controlling the nonvolatile memory according to the present invention.

【図6】同上の第2部分を示すフローチャートである。FIG. 6 is a flowchart showing a second part of the above.

【図7】同上の第3部分を示すフローチャートである。FIG. 7 is a flowchart showing a third part of the above.

【図8】同上の第4部分を示すフローチャートである。FIG. 8 is a flowchart showing a fourth portion of the above.

【図9】同上の第5部分を示すフローチャートである。FIG. 9 is a flowchart showing a fifth part of the above.

【図10】同上の第6部分を示すフローチャートであ
る。
FIG. 10 is a flowchart showing a sixth portion of the above.

【図11】フラッシュEEPROMを装備したマイクロ
コンピュータの構成を示すブロック図である。
FIG. 11 is a block diagram showing a configuration of a microcomputer equipped with a flash EEPROM.

【図12】フラッシュEEPROM内の消去実力値及び
書込み実力値の格納アドレスを示す図である。
FIG. 12 is a diagram showing storage addresses of an erasing ability value and a writing ability value in a flash EEPROM.

【図13】CPUとフラッシュEEPROMの接続状態
を示すブロック図である。
FIG. 13 is a block diagram showing a connection state between a CPU and a flash EEPROM.

【図14】従来のフラッシュEEPROMの読出し/書
込み手続きの第1部分を示すフローチャートである。
FIG. 14 is a flowchart showing a first part of a read / write procedure of a conventional flash EEPROM.

【図15】同上の第2部分を示すフローチャートであ
る。
FIG. 15 is a flowchart showing a second part of the above.

【図16】同上の第3部分を示すフローチャートであ
る。
FIG. 16 is a flowchart showing a third part of the above.

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

(5) フラッシュEEPROM Ne 消去実力値 Nw 書込み実力値 (5) Flash EEPROM Ne erasing ability value Nw writing ability value

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−263998(JP,A) 特開 昭62−298096(JP,A) 特開 平2−289997(JP,A) 特開 平2−218098(JP,A)   ─────────────────────────────────────────────────── ─── Continued front page       (56) References JP-A-1-263998 (JP, A)                 JP 62-298096 (JP, A)                 JP-A-2-289997 (JP, A)                 JP-A-2-218098 (JP, A)

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 同一のメモリ領域に対して複数回の消去
又は書込み動作を繰り返すことによって、消去又は書込
みが完遂される不揮発性メモリの制御装置において、 上記不揮発性メモリについて、全メモリ領域の消去を完
遂するまでの一括消去動作の繰り返し回数である消去実
力値と、1つのアドレスのメモリ領域への書込みを完遂
するまでの書込み動作の繰り返し回数である書込み実力
値とを予め決定する手段と、 上記不揮発性メモリに上記消去実力値及び書込実力値を
記憶する手段と、 上記不揮発性メモリから上記消去実力値及び書込実力値
を読み出手段と、 上記不揮発性メモリの全メモリ領域の消去においては、
確認動作を伴うことなく少なくとも上記消去実力値の回
数だけ繰り返して一括消去動作を行う手段と、 上記不揮発性メモリへの目的のデータの書込みにおいて
は、確認動作を伴うことなく少なくとも上記書込み実力
値の回数だけ繰り返して書込み動作を行う手段とを有す
ることを特徴とする不揮発性メモリの制御装置。
1. A non-volatile memory control device in which erasing or writing is completed by repeating erasing or writing operation a plurality of times in the same memory area. In the non-volatile memory, erasing of all memory areas is performed. Means for predetermining an erase ability value, which is the number of repetitions of the batch erase operation until the completion of the write operation, and a write ability value, which is the number of repetitions of the write operation until the writing of one address to the memory area are completed, means for storing the erase actual value and writing ability value on the nonvolatile memory, from the non-volatile memory means to read out the erasing ability value and writing ability value, the entire memory area of the nonvolatile memory In erasing,
A means for performing a batch erase operation by repeating the erase ability value at least the number of times of the erase ability value without performing a confirming operation, and in writing target data to the nonvolatile memory, at least the write ability value of the nonvolatile memory does not require a confirming operation. A non-volatile memory control device comprising: means for repeatedly performing a write operation.
【請求項2】 書込み実力値は、1つのアドレスのメモ
リ領域への書込みを完遂するまでの書込み動作の繰り返
し回数の全アドレス中の最大値である請求項1記載の不
揮発性メモリの制御装置。
2. The non-volatile memory control device according to claim 1, wherein the write capability value is the maximum value of the number of repetitions of the write operation until the writing of one address to the memory area is completed in all the addresses.
【請求項3】 同一のメモリ領域に対して複数回の消去
又は書込み動作を繰り返すことによって、消去又は書込
みが完遂される不揮発性メモリの制御方法において、 上記不揮発性メモリについて、全メモリ領域の消去を完
遂するまでの一括消去動作の繰り返し回数である消去実
力値と、1つのアドレスのメモリ領域への書込みを完遂
するまでの書込み動作の繰り返し回数である書込み実力
値とを予め決定する手続きと、 上記不揮発性メモリに上記消去実力値及び書込実力値を
記憶する手続きと、 上記不揮発性メモリから上記消去実力値及び書込実力値
を読み出手続きとを含み、 上記不揮発性メモリの全メモリ領域の消去においては、
確認動作を伴うことなく少なくとも上記消去実力値の回
数だけ繰り返して一括消去動作を行う手続きを、 上記不揮発性メモリへの目的のデータの書込みにおいて
は、確認動作を伴うことなく少なくとも上記書込み実力
値の回数だけ繰り返して書込み動作を行う手続きを行う
ことを特徴とする不揮発性メモリの制御方法。
3. A method for controlling a non-volatile memory in which the erasing or writing is completed by repeating the erasing or writing operation a plurality of times in the same memory area, wherein the erasing of all the memory areas in the non-volatile memory A procedure for predetermining an erase ability value that is the number of repetitions of the batch erase operation until completion of the write operation, and a write ability value that is the number of repetitions of the write operation until completion of writing one address into the memory area, the includes a procedure for storing in the nonvolatile memory the erasing ability value and writing ability value, and a procedure to read out the erasing ability value and writing ability value from the nonvolatile memory, the entire memory of the nonvolatile memory When deleting an area,
In order to write the target data to the non-volatile memory, the procedure of performing the batch erase operation at least the number of times of the erase ability value without the confirmation operation is performed. A method for controlling a non-volatile memory, characterized in that a procedure for performing a write operation is repeated a number of times.
【請求項4】 書込み実力値は、1つのアドレスのメモ
リ領域への書込みを完遂するまでの書込み動作の繰り返
し回数の全アドレス中の最大値である請求項3記載の不
揮発性メモリの制御方法。
4. The method for controlling a non-volatile memory according to claim 3, wherein the write ability value is a maximum value of the number of repetitions of the write operation until the writing of one address to the memory area is completed, among all the addresses.
【請求項5】 全メモリ領域に書込み動作を行った後に
該全メモリ領域の一括消去動作を行い、最初のアドレス
から順に消去ミスが発生したか否かを判断し、 消去ミスが発生した場合には再度一括消去動作に戻るこ
とを最後のアドレスに消去ミスが発生していないと判断
するまで行うことによって消去実力値を決定し、最初の
アドレスから順に、書込みミスが発生していないと判断
されるまで各アドレス分のメモリ領域に書込み動作を繰
り返すことによって書込み実力値を決定する請求項1又
は請求項2記載の不揮発性メモリの制御装置。
5. A write operation is performed on all memory areas, and then a batch erase operation is performed on all the memory areas to determine whether or not an erase error has occurred in order from the first address. When an erase error occurs, Determines the erase capability value by returning to the batch erase operation again until it is determined that no erase error has occurred at the last address, and it is determined that no write error has occurred in order from the first address. The non-volatile memory control device according to claim 1 or 2, wherein the write capability value is determined by repeating the write operation in the memory area for each address until it reaches the limit.
JP23139891A 1991-09-11 1991-09-11 Control device and method for nonvolatile memory Expired - Lifetime JP3379765B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23139891A JP3379765B2 (en) 1991-09-11 1991-09-11 Control device and method for nonvolatile memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23139891A JP3379765B2 (en) 1991-09-11 1991-09-11 Control device and method for nonvolatile memory

Publications (2)

Publication Number Publication Date
JPH0574179A JPH0574179A (en) 1993-03-26
JP3379765B2 true JP3379765B2 (en) 2003-02-24

Family

ID=16922983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23139891A Expired - Lifetime JP3379765B2 (en) 1991-09-11 1991-09-11 Control device and method for nonvolatile memory

Country Status (1)

Country Link
JP (1) JP3379765B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09330598A (en) * 1996-06-10 1997-12-22 Mitsubishi Electric Corp Memory and method for determination of characteristic deterioration state thereof
KR20010004990A (en) 1999-06-30 2001-01-15 김영환 Flash EEPROM cell and method of manufacturing the same
JP2012027964A (en) * 2010-07-20 2012-02-09 Panasonic Corp Memory device and cpu control method

Also Published As

Publication number Publication date
JPH0574179A (en) 1993-03-26

Similar Documents

Publication Publication Date Title
US9741437B2 (en) Semiconductor memory device and operating method thereof
US6349056B1 (en) Method and structure for efficient data verification operation for non-volatile memories
US7463520B2 (en) Memory device with variable trim settings
JP4061272B2 (en) Memory system and memory card
US7466597B2 (en) NAND flash memory device and copyback program method for same
US6377491B2 (en) Non-volatile memory for storing erase operation information
JP2003036681A (en) Non-volatile memory device
CN106782655B (en) Semiconductor memory device and method of operating the same
CN106205700B (en) Semiconductor memory device and method of operating the same
US20050254306A1 (en) Flash memory device and method for driving the same
KR101617810B1 (en) Nonvolatile memory device, method of programming the same and memory system including the same
KR101605827B1 (en) Nonvolatile memory device, method of programming the same and memory system including the same
US5621738A (en) Method for programming flash EEPROM devices
US20170271012A1 (en) Semiconductor memory device and operating method thereof
US10672481B2 (en) Semiconductor memory device and operating method thereof
JP3379765B2 (en) Control device and method for nonvolatile memory
JP3796851B2 (en) Nonvolatile semiconductor memory device
WO2014122601A1 (en) Improved non-volatile memory device
US6076138A (en) Method of pre-programming a flash memory cell
US6856553B2 (en) Flash memory with shortened erasing operation time
JP3636228B2 (en) Nonvolatile semiconductor memory device
US20060120153A1 (en) System and method for over erase reduction of nitride read only memory
US5818763A (en) Erasing method for a non-volatile memory
US11443814B1 (en) Memory structure with marker bit and operation method thereof
KR100223280B1 (en) Erasing method and verifying circuit of flash memory cell

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010821

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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: 20081213

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081213

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091213

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101213

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20101213

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111213

Year of fee payment: 9

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111213

Year of fee payment: 9