JPH02273397A - Parameter storing method for eeprom - Google Patents

Parameter storing method for eeprom

Info

Publication number
JPH02273397A
JPH02273397A JP1094729A JP9472989A JPH02273397A JP H02273397 A JPH02273397 A JP H02273397A JP 1094729 A JP1094729 A JP 1094729A JP 9472989 A JP9472989 A JP 9472989A JP H02273397 A JPH02273397 A JP H02273397A
Authority
JP
Japan
Prior art keywords
eeprom
area
data
frequency
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1094729A
Other languages
Japanese (ja)
Inventor
Yoshiaki Harada
原田 芳明
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.)
Ando Electric Co Ltd
Original Assignee
Ando Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ando Electric Co Ltd filed Critical Ando Electric Co Ltd
Priority to JP1094729A priority Critical patent/JPH02273397A/en
Publication of JPH02273397A publication Critical patent/JPH02273397A/en
Pending legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

PURPOSE:To attain the application of an EEPROM by the frequency higher than its assured frequency by shifting the back-up data to an unused area when the writing frequency of the back-up data reaches the assured frequency of a P-ROM which can be electrically erased. CONSTITUTION:A P-ROM (EEPROM) 3 which can be electrically erased and has the capacity larger than the twice of the capacity of the back-up data is provided as a back-up memory. The back-up data is written into the EEPROM 3 and the counted writing frequency is compared with an assured frequency. Then the back-up data are all shifted to an unused area and copied there when the coincidence is obtained between both frequencies. In this case, the count value is cleared and the area number is rewritten. As a result, the EEPROM 3 can be used by the frequency higher than its assured frequency.

Description

【発明の詳細な説明】 (a)発明の技術分野 この発明は、書込み保証回数に制限のあるEEPROM
(電気的消去形PROM)をバックアップ用メモリとし
て用いる場合、書込み回数と書込みエリアをバックアッ
プデータと同様にEEPROPvN内に書込むことによ
り、E E P ROMを有効に利用し、確実なデータ
が得られるようにするものである。
Detailed Description of the Invention (a) Technical Field of the Invention This invention relates to an EEPROM with a limited guaranteed number of write operations.
When using (electrically erasable PROM) as a backup memory, by writing the number of writes and write area in the EEPROPvN in the same way as backup data, the EEPROM can be used effectively and reliable data can be obtained. It is intended to do so.

(I))従来技術と問題点 例えは、ROMライタのバックアップ用メモリとして、
書込み保証回数に制限のあるEEPROMを使用する場
合、書込み回数をカウントし、保証回数と比較して、E
 E P ROMの書込み保障回数内で交換して、確実
なデータを得るようにしている。
(I)) Conventional technology and problems As an example, as a backup memory for a ROM writer,
When using an EEPROM that has a limited number of guaranteed writes, count the number of writes and compare it with the guaranteed number of writes.
The E P ROM is replaced within the guaranteed number of write operations to obtain reliable data.

バックアップデータの書込み回数が非常に多い場合、例
えは、P R−OMソケッ1〜の使用回数をバックアッ
プしているROMライタでは、書込みやファンクション
の処理中を除き、キー人力待ちのときは、電源投入時か
ら常時ROMソケットの使用回数をカウントしており、
ROMソケットにROMを入れてソケットのレバーを上
下しただけでカウントがアップされ、バックアップデー
タを書き換えるようになっている。
If the number of backup data writes is very large, for example, a ROM writer that backs up the number of uses of PR-OM sockets 1 to The number of times the ROM socket is used is constantly counted from the time it is turned on.
Simply inserting the ROM into the ROM socket and moving the lever on the socket up and down will increment the count and rewrite the backup data.

このように、常時パックアップデータを書き換えるため
、保証回数に達するのが早く、EEPROMの交換周期
か短くなるという問題がある。
Since the backup data is constantly rewritten in this way, there is a problem that the guaranteed number of times is reached quickly and the EEPROM replacement period becomes short.

(C)発明の目的 E E P ROMの書込み保証回数は、テハイスl\
の書込み回数ではなく、各アドレスの1バイトへの回数
である。
(C) Purpose of the invention The guaranteed number of writes to EEPROM is
It is not the number of writes to one byte of each address.

そこで、この発明では、任意のアドレスが保証回数に近
づき、バックアップデータかメモリ容量の半分以下のと
きは、バックアップデータずべてを未使用エリアにシフ
1−シ、カラン1〜をクリアすることによって、確実な
データを確保するとともに、EEPROMをバックアッ
プデータ用メモリとして保証回数以上使用できるように
するEEPROMのパラメータ格納方法の提供を目的と
する。
Therefore, in this invention, when an arbitrary address is close to the guaranteed number of times and the backup data is less than half of the memory capacity, all the backup data is shifted to an unused area by clearing 1-shi and Karan 1~. An object of the present invention is to provide a method for storing parameters in an EEPROM that ensures reliable data and allows the EEPROM to be used as a backup data memory for more than a guaranteed number of times.

((+1発明の実施例 次に、この発明の主要部分のブロック図を第1図に示す
(+1 Embodiment of the invention Next, a block diagram of the main parts of the invention is shown in FIG. 1.

第1図の1はシステムを動かすCPU、2はシステムブ
ロクラムか人っているメモリ、3はバックアップ用メモ
リとして曲用するEEPROM、4は表示器、5はハス
である。
In FIG. 1, 1 is a CPU that runs the system, 2 is a system block diagram or memory, 3 is an EEPROM used as a backup memory, 4 is a display, and 5 is a lotus.

この発明を必要とする装置は、例えは本体とユニッ1〜
て構成されており、本体は調整などで内部を容易に変更
できるか、ユニットは密閉されていて、ユニツ)・内部
にバックアップ機能を必要とするものなどである。
A device requiring this invention includes, for example, a main body and units 1 to 1.
Either the main body can be easily changed internally through adjustments, etc., or the unit is sealed and requires an internal backup function.

E E l) ROM 3をバックアップメモリとして
使用するのは、寿命の短いバックアップ用電池などが不
要になるからである。
E E l) The ROM 3 is used as a backup memory because it eliminates the need for a backup battery with a short lifespan.

バ・ツクアップ用メモリを用いる場合、バックアップデ
ータの容量の治具上の容量のE E P ROM3を用
いる。これは、容量が2倍なら保証回数×2倍だけ使用
できるので、その間は交換しなくてもすむからである。
When a backup memory is used, an EEPROM 3 with a capacity on the jig corresponding to the capacity of the backup data is used. This is because if the capacity is doubled, it can be used twice as many times as the guaranteed number of times, so there is no need to replace it during that time.

次に、E E P ROM B内のパラメータ格納例を
第2図に示す。
Next, an example of parameter storage in the EEPROM B is shown in FIG.

第2図では、カウントとバックアップデータと、エリア
番号を含めたパラメータを決めている。
In FIG. 2, parameters including the count, backup data, and area number are determined.

カウントは常時書換えエリアか固定している場合は1つ
でよいが、固定していない場合は各バックアップデータ
ごとにもつ。
One count is sufficient if the area is always rewritten or fixed, but if it is not fixed, each backup data has one count.

カラン1〜は、常時書換えエリアが固定している場合、
例えばROMライタのソケットのカラン1〜なとのよう
に、機械の仕様によってバックアップデータの常時書換
えのエリアが最初かられかっている場合は、そのエリア
に書込んだ回数、常時書換えエリアが使い方によって固
定していない場合、すなわち、バックアップデータの中
て使い方によ一〕で書き換えられるデータの位置か決ま
っていない場合は、各データことにカウントエリアを持
つ。
For Karan 1~, if the constant rewriting area is fixed,
For example, if the area for constant rewriting of backup data is cleared from the beginning due to the specifications of the machine, such as clicks 1 to 1 of the socket of a ROM writer, the number of times written to that area and the constant rewriting area will be fixed depending on how it is used. If this is not done, that is, if the location of the data to be rewritten in the backup data is not determined (depending on how it is used), each data has a count area.

エリア番号は、バックアップデータを書込むなめに使用
しているエリアの番号である。
The area number is the number of the area used to write backup data.

バックアップデータをE E P ROM 3に書き込
む場合、カウントに書込み回数をセーブしていき、保証
回数と比■咬する。保証回数に達した場合、エリア番号
か最終でないことを確認し、バックアップデータをずへ
てシフI〜し、書き写す。
When writing backup data to the EEPROM 3, the number of writes is saved in the count and compared with the guaranteed number of times. When the guaranteed number of times is reached, confirm that the area number is not the final one, shift the backup data, and copy it.

また、このとき、新しいエリアのカラン1−をりリアし
、エリア番号を書換える。
Also, at this time, the new area 1- is rearranged and the area number is rewritten.

次に、この発明による実施例のフローチャー1〜を第3
図に示す。
Next, the flowcharts 1 to 3 of the embodiment according to the present invention will be explained as follows.
As shown in the figure.

第3図のステップ11では、バックアップメモリ内に既
に書き込まれているエリア番号を読みたし、書込みデー
タをEEPROM3の指定エリアに書込む。
In step 11 in FIG. 3, the area number already written in the backup memory is read, and the write data is written in the specified area of the EEPROM 3.

ステップ12では、書込み回数のカラン1〜を十1にす
る。
In step 12, the number of times of writing from 1 to 1 is set to 11.

ステップ13では、カウントと書込み保証回数をc、 
p u tにより比較し、保証回数以下ならば処理を終
了する。
In step 13, the count and guaranteed number of writes are set to c,
A comparison is made using put, and if the number is less than or equal to the guaranteed number, the process is terminated.

ステップ14では、保証回数に達していた場合は、現在
1史用しているエリア番号を読み出し、メモリl内に書
き込まれているエリア番号の最大値と比較し、最終エリ
アの場合はエラー出力として表示器4にメツセージを表
示し、処理を終了する。
In step 14, if the guaranteed number of times has been reached, the area number currently used for one history is read out and compared with the maximum area number written in memory l, and if it is the last area, it is output as an error. A message is displayed on the display 4, and the process ends.

ステ・ツブ15では、最終エリアに達していない場合、
パラメータに沿って次のエリアにバックアップデータを
すべてシフトする。
In Ste Tsubu 15, if you have not reached the final area,
Shift all backup data to the next area according to the parameters.

ステップ16て”は、カウントをクリアする。Step 16 clears the count.

ステップ17では、エリア番号をアップし、メモリ2に
現使用エリアを書き込む。
In step 17, the area number is increased and the currently used area is written in the memory 2.

ステップ18では、処理を終了する。In step 18, the process ends.

(e1発明の効果 この発明によれは、IE E I) ROMをバックア
ップデータとして使用し、使用エリアかE E P 1
1. OMのメモリの半分以下の場合に、バックアップ
データの書換えかE E P ROMの書込み保障回数
に達しても、E E P ROMの未使用エリアにその
データをシフ1〜し、カウンタとエリア番列を持ってい
るので、E EP ROMをI?を障回数以上使用する
ことができる。
(Effect of e1 invention) According to this invention, ROM is used as backup data and the usage area is E E P 1
1. If the OM memory is less than half full, even if the backup data is rewritten or the guaranteed number of EEPROM writes is reached, the data is shifted to an unused area of the EEPROM, and the counter and area number are Since I have an EEP ROM, I? It can be used more than the number of failures.

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

第1図はこの発明の主要部分のブロック図〜第2図はE
 E P ROM B内のパラメータ格納例、第3図は
この発明による実施例のフローチャートである。 ■・・・・・・CPU、2・・・・・メモリ53・・・
・・・EEPROM、4・・・・・・表示器、5・・・
・・・バス。 J ■ 呻
Figure 1 is a block diagram of the main parts of this invention - Figure 2 is an E
FIG. 3 is a flow chart of an embodiment of the present invention. ■...CPU, 2...Memory 53...
...EEPROM, 4...Display, 5...
···bus. J ■ Moan

Claims (1)

【特許請求の範囲】 1、システムを動かすCPU(1)と、システムプログ
ラムが入っているシステムメモリ(2)と、バックアッ
プメモリとしてEEPROM(3)を使用する装置にお
いて、 EEPROM(3)にバックアップデータと、バックア
ップデータの書込み回数と、バックアップされているエ
リア番号をもつことにより、 EEPROM(3)の保証回数と書込み回数を比較し、
保証回数以後、書込みエリアをシフトすることを特徴と
するEEPROMのパラメータ格納方法。
[Claims] 1. In a device that uses a CPU (1) that operates the system, a system memory (2) containing a system program, and an EEPROM (3) as a backup memory, backup data is stored in the EEPROM (3). By having the number of writes of backup data and the area number being backed up, we can compare the guaranteed number of times and number of writes of EEPROM (3),
A method for storing parameters in an EEPROM, characterized in that the write area is shifted after a guaranteed number of times.
JP1094729A 1989-04-14 1989-04-14 Parameter storing method for eeprom Pending JPH02273397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1094729A JPH02273397A (en) 1989-04-14 1989-04-14 Parameter storing method for eeprom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1094729A JPH02273397A (en) 1989-04-14 1989-04-14 Parameter storing method for eeprom

Publications (1)

Publication Number Publication Date
JPH02273397A true JPH02273397A (en) 1990-11-07

Family

ID=14118203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1094729A Pending JPH02273397A (en) 1989-04-14 1989-04-14 Parameter storing method for eeprom

Country Status (1)

Country Link
JP (1) JPH02273397A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0493999U (en) * 1990-12-27 1992-08-14

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62245600A (en) * 1986-04-17 1987-10-26 Fanuc Ltd Data memory system using non-volatile memory

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62245600A (en) * 1986-04-17 1987-10-26 Fanuc Ltd Data memory system using non-volatile memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0493999U (en) * 1990-12-27 1992-08-14

Similar Documents

Publication Publication Date Title
CN1493026B (en) Memory device and record regenerator using it
US8566561B2 (en) Method to separate and persist static and dynamic portions of a control application
US6883060B1 (en) Microcomputer provided with flash memory and method of storing program into flash memory
GB2374441A (en) Flash memory backup method and system suitable for a portable telephone
JP3003619B2 (en) Apparatus internal setting information backup apparatus and method, and storage medium storing apparatus internal setting information backup control program
KR20000048112A (en) Flash memory unit and control method of flash memory
JP4329937B2 (en) Method and apparatus for detecting errors when writing to persistent memory
CN111124294B (en) Sector mapping information management method and device, storage medium and equipment
JPS61227300A (en) Writing method to electrically changeable rom
JPH02273397A (en) Parameter storing method for eeprom
JPH05225076A (en) Method and device for managing common information
JPH10124403A (en) Writing method for block deletion type flash memory
JPS6234260A (en) Access system for nonvolatile memory
JP4143952B2 (en) Memory backup method and apparatus
US7849279B2 (en) Method for the secure updating data areas in non volatile memory, device to perform such a method
CN105706067A (en) Microcomputer with built-in flash memory, method for writing data to built-in flash memory of microcomputer, and program for writing data to flash memory
JP2000035916A (en) Memory operation management method
JPH10177527A (en) Method for writing and reading-out data in and from flash memory, and storage device using the memory
JP4049286B2 (en) Method and apparatus for protecting vehicle-mounted electronic device stored data file
JP3583639B2 (en) Method of updating data in memory device
JPH11120085A (en) Control system
JP2001318829A (en) Device and method for controlling rewriting of flash memory
JP3335210B2 (en) Counter
KR960003401B1 (en) Life-extension method of programmable non-volatile memory
JPH0820933B2 (en) Data writing method and device