JPH0266797A - Nonvolatile memory write processing method - Google Patents
Nonvolatile memory write processing methodInfo
- Publication number
- JPH0266797A JPH0266797A JP63217852A JP21785288A JPH0266797A JP H0266797 A JPH0266797 A JP H0266797A JP 63217852 A JP63217852 A JP 63217852A JP 21785288 A JP21785288 A JP 21785288A JP H0266797 A JPH0266797 A JP H0266797A
- Authority
- JP
- Japan
- Prior art keywords
- data
- bank
- written
- write
- writing
- 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
Links
- 230000015654 memory Effects 0.000 title claims abstract description 32
- 238000003672 processing method Methods 0.000 title claims description 7
- 238000000034 method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 4
- 230000000717 retained effect Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
Landscapes
- Read Only Memory (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
この発明は、書換え可能な不揮発性メモリへのデータ書
込処理方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a method for writing data into a rewritable non-volatile memory.
〈従来の技術〉
EEFROMやNOVRAM (SRAM十EEFRO
Mの二重構造をしたもの)等の書換え可能な不揮発性メ
モリは、該メモリが備られた装置の電源がオフされても
、書込まれたデータを失わずに記憶しているという性質
を有している。よって、従来より、不揮発性メモリは、
種々の装置に備えられて、保存しておきたい特定データ
の記憶に利用されている。<Conventional technology> EEFROM and NOVRAM (SRAM and EEFRO)
Rewritable non-volatile memory, such as those with a dual structure of have. Therefore, conventionally, non-volatile memory is
It is installed in various devices and used to store specific data that should be saved.
たとえば、ファクシミリ装置においては、通信結果デー
タの記憶にEEROMが利用されている(特開昭63−
88961号公報参照)。For example, in facsimile machines, EEROM is used to store communication result data (Japanese Unexamined Patent Application Publication No. 1983-1999-1).
(See Publication No. 88961).
また、プリンタにおける選択可能な設定内容、たとえば
フォントの種類、文字ピッチ、ページの行数等は、装置
電源をオフしても保持しておく必要があるから、これら
設定内容は不揮発性メモリに記憶されている場合が多い
。In addition, selectable printer settings such as font type, character pitch, number of lines on a page, etc. need to be retained even when the device is powered off, so these settings are stored in non-volatile memory. It is often done.
また、いわゆる電子手帳や卓上電子計算機における保存
データ記憶用としても、不揮発性メモリが活用されてい
る。Non-volatile memories are also used to store data in so-called electronic notebooks and desktop electronic computers.
〈発明が解決しようとする課題〉
このような不揮発性メモリは、永久に何回でもデータの
書換えが可能というわけではなく、一般に、書換え可能
な回数には制限がある。たとえば、EEPROMの場合
であれば、各ビットごとに通常1万回程度と言われてい
る。<Problems to be Solved by the Invention> Data cannot be permanently rewritten in such nonvolatile memory any number of times, and there is generally a limit to the number of times that data can be rewritten. For example, in the case of EEPROM, it is said that each bit is normally processed about 10,000 times.
それゆえ、不揮発性メモリのデータが頻繁に書換えられ
ていると、気付かぬ間に書換え可能な制限回数をオーバ
ーしてメモリが使用不可能になり、装置の誤動作を招く
等の不都合が生じることも考えられる。Therefore, if the data in non-volatile memory is frequently rewritten, the limit number of times it can be rewritten may be exceeded without you noticing, and the memory may become unusable, causing problems such as equipment malfunction. Conceivable.
そこでこの発明は、効率良く不揮発性メモリを使用する
ための書込処理方法を提供すると共に、気付かぬ間に不
揮発性メモリが使用不可能にならないようにするメモリ
の書込処理方法を提供することを目的とする。Therefore, it is an object of the present invention to provide a write processing method for efficiently using non-volatile memory, and also to provide a memory write processing method that prevents non-volatile memory from becoming unusable unnoticed. With the goal.
く課題を解決するための手段〉
この発明は、不揮発性メモリヘデータを書込むための書
込処理方法であって、
不揮発性メモリの書込み領域に第1ないし第nの複数の
バンクを形成し、
複数のバンクのうち、まず第1バンクを使用してデータ
の書込みを行い、書込みを行うごとに書込んだアドレス
内のデータを読出して書込みデータと比較し、両者が同
じでなくなったとき、そのバンクの寿命が尽きたと判断
して、第1バンクに書込まれているすべてのデータを第
2バンクへ移し、
次からのデータ書込みは第2バンクを使用して、前述の
場合と同様に、書込みを行う度ごとに書込みデータを確
認しながら行ない、
以後同様の処理を繰返すことによって第nバンクまでデ
ータ書込みを行なうようにしたことを特徴とする不揮発
性メモリの書込処理方法である。Means for Solving the Problems> The present invention is a write processing method for writing data to a nonvolatile memory, which comprises forming a plurality of first to nth banks in a write area of the nonvolatile memory. , Out of the multiple banks, first use the first bank to write data, and each time you write, read the data in the written address and compare it with the written data, and when the two are no longer the same, It is determined that the life of that bank has expired, all data written in the first bank is moved to the second bank, and the next data write is performed using the second bank in the same way as in the previous case. This is a write processing method for a non-volatile memory, characterized in that data is written while checking the written data each time a write is performed, and data is written up to the n-th bank by repeating the same process thereafter.
く作用〉
不揮発性メモリの記憶容量と使用目的とに応じて、書込
み領域に複数のバンクを形成する。そしてまず成るバン
クを用いてデータの書込みを行ない、データの書込みを
行なうごとに書込んだデータを読出して書込みデータと
比較し、両者が同じであればそのバンクを引き続いて使
用し、同じでなければそのバンクの寿命が尽きたと判断
して、データを書込むバンクを次のバンクに切換える。Function> A plurality of banks are formed in the write area depending on the storage capacity and purpose of use of the nonvolatile memory. Then, data is written using the first bank, and each time data is written, the written data is read and compared with the written data. If the two are the same, that bank is used continuously, and if they are the same, then the data is written. If the current bank is judged to have reached the end of its lifespan, the bank in which data is to be written is switched to the next bank.
これにより、書込み領域を効率的に使用することができ
る。Thereby, the writing area can be used efficiently.
〈実施例〉
以下には、図面を参照してこの発明の一実施例について
説明をする。<Embodiment> An embodiment of the present invention will be described below with reference to the drawings.
第3図は、この発明の一実施例が備えられたプリンクの
制御回路の構成を示すブロック図である。FIG. 3 is a block diagram showing the configuration of a link control circuit provided with an embodiment of the present invention.
このプリンタの制御回路は、制御処理の中枢としてのC
PUIを備え、CPUIにはバス2を介して受信バッフ
ァ3、プログラムメモリ4、フォントメモリ5、ページ
バッファ6、ビットマツプメモリ7、ワークメモリ8、
不揮発性メモリ9、操作部のスイッチ10、操作部の表
示装置11、出力バッファ12等が接続されている。The control circuit of this printer uses C as the center of control processing.
A reception buffer 3, a program memory 4, a font memory 5, a page buffer 6, a bitmap memory 7, a work memory 8,
A non-volatile memory 9, a switch 10 of the operation section, a display device 11 of the operation section, an output buffer 12, etc. are connected.
ワークステーション等のホスト装置からホストインター
フェイス13および受信バッファ3を介してデータが与
えられると、CPUIはそのデータを所定の処理に付す
。この処理を行うために、ROMで構成されたプログラ
ムメモリ4には予め定めるプログラムが記憶されている
。また、ROMで構成されたフォントメモリ5には種々
の書体で印字できるように複数のフォントが記憶されて
いる。RAMで構成されたページバッファ6はプリント
アウトするページごとのデータを記憶するためのもので
ある。またRAMで構成されたビットマツプ7やワーク
メモリ8が設けられており、処理時に活用される。When data is provided from a host device such as a workstation via the host interface 13 and reception buffer 3, the CPUI subjects the data to predetermined processing. In order to carry out this process, a predetermined program is stored in the program memory 4 configured with a ROM. In addition, a plurality of fonts are stored in a font memory 5 composed of a ROM so that printing can be performed in various fonts. A page buffer 6 composed of a RAM is used to store data for each page to be printed out. A bitmap 7 and work memory 8 made up of RAM are also provided and are utilized during processing.
不揮発性メモリ9はこの実施例ではEEPROMで構成
されていて、このEEPROM9にはフォントの種類、
文字ピッチ、1ページの行数その他の印字フォーマット
のように、装置電源をオフしても保持しておきたいデー
タが記憶されている。In this embodiment, the non-volatile memory 9 is composed of an EEPROM, and the EEPROM 9 stores information such as the type of font,
Data that should be retained even when the device power is turned off, such as character pitch, number of lines on one page, and other print formats, is stored.
操作部のスイッチ10はプリンタに対して電源オン/オ
フ信号や動作開始指令や紙送り信号やその他の信号を与
えるためのものである。操作部の表示装置11はオペレ
ータに知らせるべき所定の内容を表示するためのもので
ある。A switch 10 of the operation section is used to give a power on/off signal, an operation start command, a paper feed signal, and other signals to the printer. The display device 11 of the operation section is for displaying predetermined contents to be notified to the operator.
出力信号は出力バッファ12を介して出力回路14へ与
えられ、図示しないプリンタのエンジンが駆動される。The output signal is applied to an output circuit 14 via an output buffer 12, and an engine of a printer (not shown) is driven.
第2図は、上述のEEPROM9の構成を示す図解図で
ある。このEEPROM9は、8ビツトX8K (=8
にバイト)の記憶容量を有している。FIG. 2 is an illustrative diagram showing the configuration of the EEPROM 9 described above. This EEPROM9 has 8 bits x 8K (=8
It has a storage capacity of 2 bytes).
ところで、上述のプリンタにおける印字フォーマットそ
の他の電源オフ時にも保持しておくべき設定データを記
憶するためには、通常、メモリの記憶容量は2にバイト
もあれば十分である。そこで、この実施例では、EEP
ROM9を2にバイトずつ4つのバンクすなわち第1バ
ンク、第2バンク、第3バンクおよび第4バンクに分け
、第1バンクから第4バンクの順にバンク単位で使用す
るようにした。Incidentally, in order to store the print format and other setting data that should be retained even when the power is turned off in the printer described above, a memory storage capacity of 2 bytes is usually sufficient. Therefore, in this embodiment, EEP
The ROM 9 is divided into four banks of two bytes each, ie, a first bank, a second bank, a third bank, and a fourth bank, and the banks are used in the order from the first bank to the fourth bank.
第1図は、第2図のメモリへのデータ書込処理手順を示
すフローチャートである。次に、第1図および第2図を
参照して、この実施例のデータ書込処理方法を説明する
。FIG. 1 is a flowchart showing a procedure for writing data into the memory of FIG. Next, the data write processing method of this embodiment will be explained with reference to FIGS. 1 and 2.
EEPROM9の先頭番地Asを0番地に初期設定する
(ステップSl)。The starting address As of the EEPROM 9 is initialized to address 0 (step Sl).
EEPROM9の任意のA番地にデータDの書込み要求
があると(ステップS2)、それを第1バンクのA s
十A番地(但し、第1バンクでは、上述のようにAs
=Oである。)に書込む(ステップS3)。When there is a request to write data D to any address A of the EEPROM 9 (step S2), it is written to A s of the first bank.
Address 10A (However, in the first bank, As
=O. ) (step S3).
そして書込んだデータDを読出しくステップS4)、こ
の読出したデータD′と書込んだデータDとを比較する
(ステップS5)。データDの書込みが正しく行われて
いる場合には、D==D′のはずである。Then, the written data D is read out (step S4), and the read data D' is compared with the written data D (step S5). If data D is written correctly, D==D'.
ステップS5において書込みデータDと読出しデータD
′とが一致している場合には、制御はステップS2に戻
り、次のデータの書込み要求を待つO
ステップS5において、書込みデータDと続出しデータ
D′とが異なる場合には、第1バンクのAs+A番地へ
のデータ書込みが正しく行われていないわけであるから
、その番地のデータ書換え回数が書換え可能な回数、つ
まり]万回程度を越えたと推定できる。よって、その場
合、第1バンクの全領域、すなわちAs番地からAs+
7FF番地までに記憶されている記憶内容を、第2バン
クを構成するAs+800番地からAs+FFF番地へ
移す(ステップS6)。そして、先頭番地Asを800
番地として(ステップS7)、制御はステップS2へ戻
る。In step S5, write data D and read data D
', the control returns to step S2 and waits for the next data write request.In step S5, if the write data D and the subsequent data D' are different, the control returns to step S2 and waits for the next data write request. Since the data was not written correctly to the address As+A, it can be estimated that the number of times the data at that address has been rewritten has exceeded the possible number of rewrites, that is, approximately 10,000 times. Therefore, in that case, the entire area of the first bank, that is, from address As to As+
The contents stored up to address 7FF are moved from address As+800 to address As+FFF, which constitutes the second bank (step S6). Then, set the first address As to 800.
As the address (step S7), control returns to step S2.
以後同様に、第2バンクへデータDを書込むごとに、そ
の書込んだデータを読出し、書込みデータDと読出しデ
ータD′とを比較し、両者が一致しなくなった場合は、
次の第3バンクを用いたデータ書込みに切換え、さらに
第4バンクへと切換えていく。Similarly, every time data D is written to the second bank, the written data is read and the written data D and read data D' are compared. If the two do not match,
Switching to data writing using the next third bank, and then switching to the fourth bank.
これによって、成るバンク内でデータ書換えの寿命が尽
きた箇所が部分的に発生した場合には、そのバンクの使
用をやめ、新たなバンクを用いてデータの書込みを行う
ことになるから、各バンクを寿命が尽きるまで十分に使
うことができる。As a result, if there is a part of a bank that has reached the end of its data rewriting lifespan, that bank will be discontinued and data will be written using a new bank. can be used until the end of its life.
この実施例では、EEPROM9を4つのバンクに分け
たが、全体をいくつのバンクに分割するかは、不揮発性
メモリ全体の記憶容量と使用目的とによって適当な数を
選べばよい。In this embodiment, the EEPROM 9 is divided into four banks, but an appropriate number may be selected depending on the storage capacity of the entire nonvolatile memory and the purpose of use.
なお、このようなEEPROM9の使用方法において、
第4バンクへのデータ書込み時に、書込みデータDと読
出しデータD′との不一致を判別した場合には、EEP
ROM9の寿命が尽きたことを操作部の表示装置(第3
図参照)に表示させるようにするのが好ましい。そうす
れば、それに基づいて装置の保守やEEPROM9の取
換えができる。In addition, in this way of using EEPROM9,
When writing data to the fourth bank, if it is determined that there is a mismatch between the write data D and the read data D', the EEP
The display on the operation panel (the third
It is preferable to display the information as shown in the figure (see figure). Then, maintenance of the device or replacement of the EEPROM 9 can be performed based on the information.
〈発明の効果〉
この発明は、以上のように構成されているので、]0
書換え回数に制限がある不揮発性メモリを効率的に長期
間使用することができる。<Effects of the Invention> Since the present invention is configured as described above, it is possible to efficiently use a nonvolatile memory whose number of rewrites is limited for a long period of time.
特に、この方法によれば、バンク内のデータ書換え頻度
が領域別にランダムである場合に有効であり、バンク内
で最初に寿命が尽きた領域があれば確実に検知すること
ができる。そして、それに基づいて装置の保守やEEP
ROM9の取扱えができる。This method is particularly effective when the data rewriting frequency within the bank is random for each area, and it is possible to reliably detect if there is an area within the bank that has reached the end of its life first. Based on this, equipment maintenance and EEP
Able to handle ROM9.
第1図は、この発明の一実施例に係るEEPROM9へ
のデータ書込処理手順を示すフローチャトである。
第2図は、この発明の一実施例に係るEEPROM9の
構成を示す図解図である。
第3図は、この発明の一実施例が採用されたプリンタの
制御回路のブロック図である。
図において、9・・・EEPROM (不揮発性メモリ
)、を示す。FIG. 1 is a flowchart showing a procedure for writing data to an EEPROM 9 according to an embodiment of the present invention. FIG. 2 is an illustrative diagram showing the configuration of the EEPROM 9 according to an embodiment of the present invention. FIG. 3 is a block diagram of a control circuit of a printer employing an embodiment of the present invention. In the figure, 9...EEPROM (non-volatile memory) is shown.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63217852A JPH0266797A (en) | 1988-08-31 | 1988-08-31 | Nonvolatile memory write processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63217852A JPH0266797A (en) | 1988-08-31 | 1988-08-31 | Nonvolatile memory write processing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0266797A true JPH0266797A (en) | 1990-03-06 |
Family
ID=16710775
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63217852A Pending JPH0266797A (en) | 1988-08-31 | 1988-08-31 | Nonvolatile memory write processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0266797A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04222997A (en) * | 1990-12-25 | 1992-08-12 | Fuji Photo Film Co Ltd | Data recording method on memory card and memory card system |
| JPH04271098A (en) * | 1991-02-25 | 1992-09-28 | Fuji Photo Film Co Ltd | Data recording method for memory card and memory card system |
| US6646931B2 (en) | 2001-06-27 | 2003-11-11 | Mitsubishi Denki Kabushiki Kaisha | Life warning generation system and method of semiconductor storage device equipped with flash memory |
| WO2006129345A1 (en) * | 2005-05-30 | 2006-12-07 | Spansion Llc | Semiconductor device and program data redundant method |
| CN115588454A (en) * | 2022-11-24 | 2023-01-10 | 北京紫光青藤微系统有限公司 | Data writing method and device of memory, electronic equipment and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS56137594A (en) * | 1980-03-29 | 1981-10-27 | Ricoh Co Ltd | Control system for nonvolatile memory |
| JPS634498A (en) * | 1986-06-25 | 1988-01-09 | Hitachi Ltd | Memory device |
-
1988
- 1988-08-31 JP JP63217852A patent/JPH0266797A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS56137594A (en) * | 1980-03-29 | 1981-10-27 | Ricoh Co Ltd | Control system for nonvolatile memory |
| JPS634498A (en) * | 1986-06-25 | 1988-01-09 | Hitachi Ltd | Memory device |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04222997A (en) * | 1990-12-25 | 1992-08-12 | Fuji Photo Film Co Ltd | Data recording method on memory card and memory card system |
| JPH04271098A (en) * | 1991-02-25 | 1992-09-28 | Fuji Photo Film Co Ltd | Data recording method for memory card and memory card system |
| US6646931B2 (en) | 2001-06-27 | 2003-11-11 | Mitsubishi Denki Kabushiki Kaisha | Life warning generation system and method of semiconductor storage device equipped with flash memory |
| WO2006129345A1 (en) * | 2005-05-30 | 2006-12-07 | Spansion Llc | Semiconductor device and program data redundant method |
| US7739559B2 (en) | 2005-05-30 | 2010-06-15 | Spansion Llc | Semiconductor device and program data redundancy method therefor |
| JP5014125B2 (en) * | 2005-05-30 | 2012-08-29 | スパンション エルエルシー | Semiconductor device and program data redundancy method |
| CN115588454A (en) * | 2022-11-24 | 2023-01-10 | 北京紫光青藤微系统有限公司 | Data writing method and device of memory, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2299353B1 (en) | Output device, method of controlling it, and medium storing a program | |
| US5742742A (en) | Printing system for determining if there is enough memory to store revised program and controlling the system using control program with the revised program | |
| JPH0266797A (en) | Nonvolatile memory write processing method | |
| US5459833A (en) | Display control system | |
| JP3029136B2 (en) | Output method and device | |
| US6259534B1 (en) | Printing apparatus having a memory management system | |
| JPH05274219A (en) | Storage device | |
| JPH0765591A (en) | Information processing device | |
| JPH03135643A (en) | Lifetime detecting method for rewritable nonvolatile memory | |
| JP3001213B2 (en) | Printer control device | |
| JPH0266796A (en) | Write processing method for nonvolatile memory | |
| JP3125526B2 (en) | Storage device | |
| JPH03142795A (en) | Write processing method for reloadable non-volatile memory | |
| EP0283223B1 (en) | Memory unit | |
| JP2812285B2 (en) | Network interface card for printer | |
| JP2745349B2 (en) | Printing device | |
| JPH0469261A (en) | printer | |
| JP3226226B2 (en) | Character processing method and apparatus | |
| JPS63230370A (en) | Printer device | |
| KR19980060841U (en) | Memory management device | |
| JPH0948155A (en) | Printer | |
| EP0384357A2 (en) | Method of changing object program | |
| JPH02125771A (en) | Recording apparatus | |
| JP2000108437A (en) | Printer | |
| JPH0462075A (en) | Font data recording system of printer |