JPH0619800A - Method for data writing e2rom - Google Patents
Method for data writing e2romInfo
- Publication number
- JPH0619800A JPH0619800A JP17275092A JP17275092A JPH0619800A JP H0619800 A JPH0619800 A JP H0619800A JP 17275092 A JP17275092 A JP 17275092A JP 17275092 A JP17275092 A JP 17275092A JP H0619800 A JPH0619800 A JP H0619800A
- Authority
- JP
- Japan
- Prior art keywords
- writing
- rom
- maximum
- backup data
- blocks
- 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.)
- Granted
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、CPUを含むシステム
が設けられた装置で、且つ電源オフ時等に生じるバック
アップデータを書き込むためにE2 ROMを使用した装
置において、該E2 ROMへのバックアップデータへの
バックアップデータへの書き込み方法の改良に関する。BACKGROUND OF THE INVENTION This invention is a device system is provided that includes a CPU, and the device using the E 2 ROM to write backup data occurring power-off or the like, to the E 2 ROM The present invention relates to improvement of a writing method to backup data.
【0002】[0002]
【従来の技術】従来のこの種の装置では、バックアップ
データが発生した時に、単にそのバックアップデータを
E2 ROMに対してそのまま書き込んでいるだけであ
る。2. Description of the Related Art In a conventional device of this type, when backup data is generated, the backup data is simply written to an E 2 ROM as it is.
【0003】[0003]
【発明が解決しようとする課題】しかし、バッテリバッ
クアップされた通常のRAMと異なり、E2 ROMには
ハードウェア上の特性から、保証できる最大書き込み回
数が予め決められている。したがって、その決められた
最大書き込み回数以上の書き込みが行われると書き込ま
れたデータの保証ができない問題があった。However, unlike the normal RAM that is backed up by a battery, the maximum write count that can be guaranteed in the E 2 ROM is determined in advance because of the hardware characteristics. Therefore, there is a problem that the written data cannot be guaranteed when writing is performed more than the determined maximum number of writings.
【0004】本発明の目的は、E2 ROMを工夫するこ
とによって、装置に保証される最大バックアップデータ
の書き込み回数を簡単に増やすことのできるE2 ROM
へのデータ書き込み方法を提供することにある。An object of the present invention, E by devising a 2 ROM, device guaranteed E 2 can easily increase by the number of times of writing up the backup data is ROM
It is to provide a method of writing data to.
【0005】[0005]
【課題を解決するための手段】本発明は、CPUを含む
制御システムが設けられた装置のバックアップデータが
書き込まれるE2 ROMを、該E2 ROMに予め決めら
れている最大書き込み回数で前記装置に予め保証される
最大バックアップデータ書き込み回数を除した値以上の
ブロック数に区分けし、一つのブロックに対しての書き
込み回数が前記最大書き込み回数を上回った時に他のブ
ロックに対しての書き込みを行うことを特徴とする。According to the present invention, there is provided an E 2 ROM in which backup data of a device provided with a control system including a CPU is written, in the E 2 ROM at a predetermined maximum number of writes. The number of blocks is equal to or greater than the maximum backup data write count guaranteed in advance, and when the number of writes to one block exceeds the maximum number of writes, writing to other blocks is performed. It is characterized by
【0006】また、バックアップデータの書き込み毎
に、アクセスするブロックを順次切り換えていくことを
特徴とする。Further, it is characterized in that the block to be accessed is sequentially switched every time the backup data is written.
【0007】[0007]
【作用】本発明では、E2 ROMに予め決められている
最大書き込み回数で、装置に予め保証される最大バック
アップデータ書き込み回数を除した値以上のブロック数
に該E2 ROMを区分けする。例えば、E2 ROMに予
め決められている最大書き込み回数が10万回とし、装
置に予め保証される最大バックアップデータ書き込み回
数が100万回とすると、100万回を10万回で除し
た値10のブロック数又はそれ以上のブロック数にE2
ROMを区分けする。そして、1つのブロックに対して
の書き込み回数が最大書き込み回数(10万回)を上回
ると、次以降の書き込みを他のブロックに移す。この場
合、既に最大書き込み回数を超えたブロックに対しては
2度と書き込みが行われなくなる。さらに、E2 ROM
をブロック化すると、1つのE2 ROM全体に対して予
め決められている最大書き込み回数が、各ブロックに対
して保証できるようになるので、前記予め決められてい
る最大書き込み回数にブロックの数を乗じた回数がその
装置の最大バックアップデータ書き込み回数として保証
できるようになる。According to the present invention, the E 2 ROM is divided into a number of blocks which is equal to or more than a value obtained by dividing the maximum number of times of writing backup data which is guaranteed in advance by the device by the maximum number of times of writing which is predetermined in the E 2 ROM. For example, assuming that the maximum number of times of writing in the E 2 ROM is 100,000 times and the maximum number of times of writing backup data that is guaranteed in the apparatus is 1 million times, the value obtained by dividing 1 million times by 100,000 times is 10 E 2 to the number of blocks or more
Divide the ROM. When the number of times of writing to one block exceeds the maximum number of times of writing (100,000 times), the subsequent writing is moved to another block. In this case, the block that has already exceeded the maximum write count is never written again. In addition, E 2 ROM
When the block is divided into blocks, the predetermined maximum number of writes for one entire E 2 ROM can be guaranteed for each block. Therefore, the number of blocks is set to the predetermined maximum number of writes. The number of times of multiplication can be guaranteed as the maximum number of times of writing backup data of the device.
【0008】[0008]
【実施例】図1は、CPUを含む典型的な制御部のブロ
ック図を示す。CPU1には、センサ2から入力データ
が入り、ROM3に格納されているプログラムに従っ
て、入力データの処理を行って、駆動部4に駆動データ
を出力する。データの一時記憶や処理にはRAM5が使
用される。また、電源がオフされた時等には、RAM5
上に記憶されているデータを退避する必要があるが、そ
の退避データをバックアップデータとしてE2 ROM6
に転送する。E2 ROM6は、電源がオフされて完全停
電するまでのわずかの時間に、RAM5上に記憶されて
いるデータをCPU1から受けて記憶する。E2 ROM
6はバッテリバックアップする必要がないために、再度
電源がオンされた時には、イニシャルルーチンによって
CPU1からデータが読み込まれ、RAM5に再び記憶
される。このような制御システムが、例えば複写機に適
用された場合には、バックアップデータとしては累積コ
ピー枚数,帯電電圧,現像バイアス電圧,除電電圧等の
各種プロセスデータが考えられる。DETAILED DESCRIPTION FIG. 1 shows a block diagram of a typical controller including a CPU. The CPU 1 receives input data from the sensor 2, processes the input data according to a program stored in the ROM 3, and outputs the drive data to the drive unit 4. The RAM 5 is used for temporary storage and processing of data. When the power is turned off, the RAM5
It is necessary to save the data stored above, but the saved data is used as backup data in the E 2 ROM6.
Transfer to. The E 2 ROM 6 receives the data stored in the RAM 5 from the CPU 1 and stores the data in a short time until the power is turned off and a complete power failure occurs. E 2 ROM
Since the battery 6 does not need battery backup, when the power is turned on again, data is read from the CPU 1 by the initial routine and stored again in the RAM 5. When such a control system is applied to, for example, a copying machine, various process data such as cumulative number of copies, charging voltage, developing bias voltage, discharging voltage can be considered as backup data.
【0009】本発明では、上記E2 ROMを複数のブロ
ックに分割する。分割するブロックの数は、装置に予め
保証される最大バックアップデータ書き込み回数を、E
2 ROM6に予め決められている最大書き込み回数で除
した値以上の大きさである。In the present invention, the E 2 ROM is divided into a plurality of blocks. The number of blocks to be divided is the maximum backup data write count guaranteed in advance by the device,
2 The size is equal to or greater than the value divided by the maximum number of times of writing in the ROM 6 in advance.
【0010】例えば、装置に予め保証される最大バック
アップデータ書き込み回数が40万回であり、E2 RO
M6に予め決められている最大書き込み回数が10万回
であるとすると、分割するブロックの数は4以上であ
る。図2は、8KBのE2 ROMを4ブロックに分割し
た場合を示す。各ブロックA〜Dはそれぞれ2KBの容
量を持ち、また、各ブロックにはライトカウンタWCが
割当てられている。このライトカウンタWCは、各ブロ
ックに対して書き込みが行われた回数を計数するもので
ある。For example, the maximum backup data write count guaranteed in advance to the device is 400,000, and E 2 RO
If the maximum number of times of writing in M6 is 100,000, the number of blocks to be divided is four or more. FIG. 2 shows a case where an 8 KB E 2 ROM is divided into 4 blocks. Each block A to D has a capacity of 2 KB, and a write counter WC is assigned to each block. The write counter WC counts the number of times writing is performed on each block.
【0011】図3は、図2に示すE2 ROMに対してバ
ックアップデータを書き込む時のフローチャートを示
す。この動作は、通常、装置の電源がオフされた時や、
瞬時停電時に実行される。FIG. 3 is a flow chart when writing backup data to the E 2 ROM shown in FIG. This operation is usually done when the device is powered off,
It is executed during an instantaneous power failure.
【0012】最初にブロックナンバーをカウントするカ
ウンタxに1をセットし、そのxで指定されるブロック
のライトカウンタWCを読み込む。その値をYとする。
Yの値が10万回を超えているかどうかの判定を行い、
超えていなければ、現在のブロックに対してバックアッ
プデータの書き込みを行い、さらに同ブロックのライト
カウンタWCをカウントアップして終了する。一方、ラ
イトカウンタWCのカウント値Yが10万回を超えてい
れば、xを1つ増やして、すなわちアクセスするブロッ
クの番号を1つ増やし、上記と同じ動作を行う。ブロッ
ク4を超えて書き込もうとする場合にはエラー処理を行
う。First, 1 is set to the counter x for counting the block number, and the write counter WC of the block designated by the x is read. Let that value be Y.
Judge whether the value of Y exceeds 100,000 times,
If it does not exceed, the backup data is written to the current block, and the write counter WC of the same block is counted up to finish. On the other hand, if the count value Y of the write counter WC exceeds 100,000 times, x is incremented by 1, that is, the number of the block to be accessed is incremented by 1, and the same operation as above is performed. When attempting to write over block 4, error processing is performed.
【0013】このような動作により、最大40万回の書
き込みが可能となる。By such an operation, writing can be performed up to 400,000 times.
【0014】図4は、本発明の他の実施例を示す。FIG. 4 shows another embodiment of the present invention.
【0015】この実施例では、バックアップデータの書
き込み毎に、アクセスブロックを順次切り換えていく。
すなわち、まず、各ブロック1〜4のライトカウンタW
CのデータY(Y1〜Y4)を読み込む。そして、各値
Y1〜Y4の比較を行い、値が小さいカウント値を持つ
ブロックに対してバックアップデータの書き込みを行
う。そして、そのブロックのライトカウンタのカウント
値を1つ増やして終了する。全てのブロックのライトカ
ウンタの値が同じである時にはブロック1に対してアク
セスして同様の動作を行う。以上の動作によって、デー
タの書き込みを行う毎に、E2 ROMのブロックが順次
切り換えられていくことになる。なお、この場合でも、
最大40万回の書き込みができる。In this embodiment, the access block is sequentially switched every time the backup data is written.
That is, first, the write counter W of each block 1 to 4 is
The data Y of C (Y1 to Y4) is read. Then, the respective values Y1 to Y4 are compared, and the backup data is written to the block having the smaller count value. Then, the write counter of the block is incremented by 1 and the process is terminated. When the write counter values of all blocks are the same, block 1 is accessed and the same operation is performed. With the above operation, the blocks of the E 2 ROM are sequentially switched every time data is written. Even in this case,
You can write up to 400,000 times.
【0016】[0016]
【発明の効果】本発明では、E2 ROMに対する書き込
み可能回数を、予めそのE2 ROMに決められている最
大書き込み回数を大幅に超える回数に簡単にできるため
に、装置の最大バックアップデータ書き込み回数をかな
り増やすことができる。このため、装置の耐用期間がE
2 ROMによって制限されるということがなくなる。In the present invention, the writable number of times the E 2 ROM, in order to be easy on the number of times previously the E greatly exceeds the maximum number of writes that are determined to 2 ROM, the maximum backup data write count of the device Can be significantly increased. Therefore, the service life of the device is E
2 No longer limited by ROM.
【図1】本発明に係るデータ書き込み方法が実施される
CPU制御システムのブロック図を示す。FIG. 1 shows a block diagram of a CPU control system in which a data writing method according to the present invention is implemented.
【図2】E2 ROMを4ブロックに分割した時の様子を
示す図である。FIG. 2 is a diagram showing a state when an E 2 ROM is divided into 4 blocks.
【図3】バックアップデータをE2 ROMに書き込む時
のフローチャートを示す図である。FIG. 3 is a diagram showing a flowchart when writing backup data to an E 2 ROM.
【図4】バックアップデータをE2 ROMに書く時の他
の動作例を示すフローチャートである。FIG. 4 is a flowchart showing another operation example when writing backup data to an E 2 ROM.
Claims (2)
置のバックアップデータが書き込まれるE2 ROMを、
該E2 ROMに予め決められている最大書き込み回数で
前記装置に予め保証される最大バックアップデータ書き
込み回数を除した値以上のブロック数に区分けし、一つ
のブロックに対しての書き込み回数が前記最大書き込み
回数を上回った時に他のブロックに対しての書き込みを
行うことを特徴とする、E2 ROMへのデータ書き込み
方法。1. An E 2 ROM in which backup data of a device provided with a control system including a CPU is written,
The E 2 ROM is divided into a number of blocks equal to or larger than a value obtained by dividing the maximum number of times of writing backup data guaranteed in advance by the maximum number of times of writing to the E 2 ROM, and the number of times of writing to one block is the maximum. A method of writing data to an E 2 ROM, characterized in that writing is performed to another block when the number of times of writing is exceeded.
置のバックアップデータが書き込まれるE2 ROMを、
該E2 ROMに予め決められている最大書き込み回数で
前記装置に予め保証される最大バックアップデータ書き
込み回数を除した値以上のブロック数に区分けし、バッ
クアップデータの書き込み毎に、アクセスするブロック
を順次切り換えていくことを特徴とする、E2 ROMへ
のデータ書き込み方法。 2. An E 2 ROM in which backup data of a device provided with a control system including a CPU is written,
The E 2 ROM is divided into a number of blocks equal to or more than a value obtained by dividing the maximum backup data write count guaranteed in advance by the device by a predetermined maximum write count, and the blocks to be accessed are sequentially accessed for each backup data write. A method of writing data to an E 2 ROM, which is characterized by switching.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17275092A JP3012737B2 (en) | 1992-06-30 | 1992-06-30 | Method of writing data to E2ROM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17275092A JP3012737B2 (en) | 1992-06-30 | 1992-06-30 | Method of writing data to E2ROM |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0619800A true JPH0619800A (en) | 1994-01-28 |
JP3012737B2 JP3012737B2 (en) | 2000-02-28 |
Family
ID=15947635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP17275092A Expired - Lifetime JP3012737B2 (en) | 1992-06-30 | 1992-06-30 | Method of writing data to E2ROM |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3012737B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001210083A (en) * | 2000-01-24 | 2001-08-03 | Denso Corp | Electronic control device |
JPWO2008050701A1 (en) * | 2006-10-27 | 2010-02-25 | パナソニック株式会社 | Memory access method |
WO2018186453A1 (en) * | 2017-04-07 | 2018-10-11 | パナソニックIpマネジメント株式会社 | Nonvolatile memory with increased number of usable times |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101886260B1 (en) * | 2016-12-08 | 2018-09-06 | 홍익대학교 산학협력단 | Diaphragm wall with double reinforcement cage and its construction method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60232000A (en) * | 1984-05-01 | 1985-11-18 | Meidensha Electric Mfg Co Ltd | Data processing system of non-volatile memory |
JPH03250498A (en) * | 1990-02-27 | 1991-11-08 | Seiko Epson Corp | Non-volatile memory device |
JPH03272605A (en) * | 1990-03-20 | 1991-12-04 | Kubota Corp | Datum storing device |
JPH0421999A (en) * | 1990-05-15 | 1992-01-24 | Mitsubishi Electric Corp | Divided memory write system |
-
1992
- 1992-06-30 JP JP17275092A patent/JP3012737B2/en not_active Expired - Lifetime
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60232000A (en) * | 1984-05-01 | 1985-11-18 | Meidensha Electric Mfg Co Ltd | Data processing system of non-volatile memory |
JPH03250498A (en) * | 1990-02-27 | 1991-11-08 | Seiko Epson Corp | Non-volatile memory device |
JPH03272605A (en) * | 1990-03-20 | 1991-12-04 | Kubota Corp | Datum storing device |
JPH0421999A (en) * | 1990-05-15 | 1992-01-24 | Mitsubishi Electric Corp | Divided memory write system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001210083A (en) * | 2000-01-24 | 2001-08-03 | Denso Corp | Electronic control device |
JPWO2008050701A1 (en) * | 2006-10-27 | 2010-02-25 | パナソニック株式会社 | Memory access method |
WO2018186453A1 (en) * | 2017-04-07 | 2018-10-11 | パナソニックIpマネジメント株式会社 | Nonvolatile memory with increased number of usable times |
CN110392885A (en) * | 2017-04-07 | 2019-10-29 | 松下知识产权经营株式会社 | Increase the nonvolatile memory of access times |
CN110392885B (en) * | 2017-04-07 | 2023-08-04 | 松下知识产权经营株式会社 | Non-volatile memory with increased number of uses |
Also Published As
Publication number | Publication date |
---|---|
JP3012737B2 (en) | 2000-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4159517A (en) | Journal back-up storage control for a data processing system | |
US6301635B2 (en) | Memory device | |
JP2001501000A (en) | Semiconductor memory device having error detection and correction | |
JPH0619800A (en) | Method for data writing e2rom | |
JPH0198017A (en) | Printer controller | |
JPH0247735A (en) | Computer device | |
JP3705656B2 (en) | Data processing device | |
JPS63239521A (en) | Data processing system for magnetic tape device | |
JPH04333102A (en) | Nc program control system | |
JPH0916037A (en) | Image forming device | |
JPH04195372A (en) | Logic simulator | |
JPH02205927A (en) | Information processor | |
JPS61131136A (en) | History accumulating system | |
JP2978626B2 (en) | DMA controller | |
JPS63168746A (en) | Journal swap supervisory system | |
JPH0329015A (en) | Instantaneous service interruption processor for equipment using computer | |
JPH03246603A (en) | Rapid counter | |
JPH04172665A (en) | Medium quality control system | |
JPH05336680A (en) | Charger | |
JPH06202966A (en) | Backup device | |
EP0381140A2 (en) | Data processing apparatus | |
JPH0520136A (en) | Dump processing system | |
JPH05143469A (en) | Memory backup device | |
JPH0383139A (en) | Fuzzy arithmetic processing device | |
JPH10307761A (en) | System for saving and restoring resume data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071210 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081210 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091210 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091210 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101210 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101210 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111210 Year of fee payment: 12 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111210 Year of fee payment: 12 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121210 Year of fee payment: 13 |
|
EXPY | Cancellation because of completion of term | ||
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121210 Year of fee payment: 13 |