JPH0731440Y2 - EEPROM control device - Google Patents

EEPROM control device

Info

Publication number
JPH0731440Y2
JPH0731440Y2 JP1987144981U JP14498187U JPH0731440Y2 JP H0731440 Y2 JPH0731440 Y2 JP H0731440Y2 JP 1987144981 U JP1987144981 U JP 1987144981U JP 14498187 U JP14498187 U JP 14498187U JP H0731440 Y2 JPH0731440 Y2 JP H0731440Y2
Authority
JP
Japan
Prior art keywords
eeprom
data
byte
value
sum
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
JP1987144981U
Other languages
Japanese (ja)
Other versions
JPS6452199U (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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP1987144981U priority Critical patent/JPH0731440Y2/en
Publication of JPS6452199U publication Critical patent/JPS6452199U/ja
Application granted granted Critical
Publication of JPH0731440Y2 publication Critical patent/JPH0731440Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Description

【考案の詳細な説明】 『産業上の利用分野』 本考案は、EEPROM(Electric Erasable Programable RO
M)を内蔵し、このEEPROMに書き込まれた設定データに
従って動作する計器内に設けられるEEPROM制御装置に関
し、特にサムチェック方式における書き込み動作を改善
するものである。
[Detailed description of the device] "Industrial application field" The present invention is based on an EEPROM (Electric Erasable Programmable RO).
The present invention relates to an EEPROM control device provided in an instrument that operates in accordance with the setting data written in this EEPROM, with a built-in M), particularly to improve the writing operation in the sum check method.

『従来の技術』 EEPROMを内蔵した計器において、このEEPROMは、第3図
に示すように、例えばデータ領域Dとして約300バイ
ト、データ照合用のサム領域Sとして1バイトが設定さ
れる。
"Prior Art" In an instrument having a built-in EEPROM, as shown in FIG. 3, this EEPROM has a data area D of about 300 bytes and a data collating thumb area S of 1 byte.

データ領域Dには動作モード等のデータが設定され、サ
ム領域Sにはデータ領域D内のデータの合計値が1バイ
ト・データとして格納される。
Data such as the operation mode is set in the data area D, and the total value of the data in the data area D is stored in the thumb area S as 1-byte data.

このようなEEPROMを内蔵した計器は、動作中、データ合
計値とサム値を照合し、EEPROMの正常/異常をチェック
する(サムチェック方式)。
During operation, the instrument with built-in EEPROM checks the sum of data and sum value to check whether the EEPROM is normal or abnormal (sum check method).

外部データ設定装置等によりこのようなEEPROM内のデー
タが書き替えられると、サム領域Sには全データの新た
な合計値(サム値)が書き込まれる。そして、データ領
域のデータ値合計とサム値が常に等しくなるように制御
している。
When the data in the EEPROM is rewritten by an external data setting device or the like, a new total value (sum value) of all data is written in the sum area S. Then, the sum of the data values in the data area and the sum value are controlled to be always equal.

『考案が解決しようとする問題点』 ところで、EEPROMの書き込み回数には制限があり、1つ
のアドレスについて通常10000回が保証されている。
"Problems to be solved by the device" By the way, there is a limit to the number of times the EEPROM can be written, and one address is usually guaranteed at 10,000 times.

一方、上記のような特定アドレスの1バイト・サム領域
Sにはデータのエンター回数だけ書き込みが行なわれ、
動作モード変更、データ書き替え等が頻繁に行なわれる
計器であると、サム領域は直ぐに書き込み制限回数に達
し、その内容に信頼がおけないという問題が発生してい
た。
On the other hand, the 1-byte thumb area S of the specific address as described above is written for the number of times of data entry,
In the case of an instrument in which the operation mode is changed and the data is rewritten frequently, the thumb area immediately reaches the write limit number of times, and there is a problem that the content cannot be trusted.

本考案は、この問題を解決するものであり、書き込み制
限回数を実質的に引き伸ばすようにしてEEPROMの信頼性
を向上することを目的とする。
The present invention solves this problem, and an object thereof is to improve the reliability of the EEPROM by substantially extending the write limit number of times.

『問題を解決するための手段』 以上の問題を解決した本考案は、サム領域を増大し、サ
ム値書き替えを循環的に行なうものであり、その構成は
次の通りである。
[Means for Solving the Problem] The present invention, which solves the above problems, increases the thumb area and cyclically rewrites the sum value, and has the following configuration.

即ち、EEPROMを内蔵し、このEEPROMに書き込まれた設定
データに従って動作する計器に設けられるEEPROM制御装
置において、前記EEPROMを、データ領域と、前記EEPROM
の正常/異常をチェックするためのデータ合計値をサム
値として格納する少なくとも3バイト以上のサム領域と
に分割し、前記EEPROM内のデータが書き替えられたと
き、前記サム領域内に、“00H”以外のデータが2個連
続する場合は、“00H”以外の数値を有する最初のバイ
トに“00H”を書き込んで消去してその次の次のバイト
に新たに算出されたサム値とその前のバイト値の差分値
を書き込み、“00H”以外のデータが1個存在する場合
は、その次のバイトに新たに算出されたサム値とその前
のバイト値の差分値を書き込む書き込み処理部を設けた
ことを特徴とするEEPROM制御装置である。
That is, in the EEPROM control device provided in the instrument which incorporates the EEPROM and operates according to the setting data written in the EEPROM, the EEPROM is provided with the data area and the EEPROM.
The total data value for checking normality / abnormality is divided into a sum area of at least 3 bytes to store as a sum value, and when the data in the EEPROM is rewritten, "00" is stored in the sum area. H "if the data other than consecutive 2 pieces," 00 H "non-numeric first byte with a" 00 H "to write is to erase newly calculated checksum value to the next following byte Write the difference value between the previous byte value and the byte value before that, and if there is one data other than "00 H ", write the difference value between the newly calculated sum value and the previous byte value in the next byte. The EEPROM control device is provided with a write processing unit.

『作用』 本考案のEEPROM制御装置は、サム領域が3バイト以上設
定され、データ領域にデータが書き替えられサム値を変
更する際、書き込み処理部はサム領域内の1バイトを消
去し、他の1バイトに新たなサム値に関連した値を書き
込む。この動作を循環し、特定バイトにサム値の書き込
みはしない。
[Operation] In the EEPROM control device of the present invention, when the sum area is set to 3 bytes or more and the data is rewritten in the data area and the sum value is changed, the write processing unit erases 1 byte in the sum area, and the like. Write the value associated with the new sum value into 1 byte of This operation is cycled and the sum value is not written in the specific byte.

『実施例』 第1図は本考案を実施したEEPROM制御装置の例を表わ
す。
[Embodiment] FIG. 1 shows an example of an EEPROM control device embodying the present invention.

この図において、1は書き込みアクセスされるEEPROM、
2はEEPROM1に対してアドレス等を出力し書き込みを行
なう中央処理装置CPU、3は外部データ設定装置であ
り、これらの要素はデータ・バスDBに接続されている。
In this figure, 1 is an EEPROM for write access,
Reference numeral 2 is a central processing unit CPU that outputs an address or the like to the EEPROM 1 for writing, and 3 is an external data setting device, and these elements are connected to a data bus DB.

尚、この例においては、本考案の書き込み処理部はCPU2
内にて実行されるファームウェアの機能により実現して
いる。
In this example, the write processing unit of the present invention is the CPU2
It is realized by the function of the firmware executed inside.

EEPROM1にはデータ領域11と3バイト以上のサム領域12
を設定し、CPU2はEEPROM1から動作モード等の設定デー
タを読み出して動作している。
EEPROM1 has a data area 11 and a thumb area 12 of 3 bytes or more.
The CPU2 is operating by reading the setting data such as the operation mode from the EEPROM1.

そして、外部データ設定装置2等によってEEPROM1のデ
ータ部11が書き替えられた場合、CPU2はデータ領域11の
データの合計値をサム値として直ちに算出する。
When the data part 11 of the EEPROM 1 is rewritten by the external data setting device 2 or the like, the CPU 2 immediately calculates the sum value of the data in the data area 11 as a sum value.

この例では、サム領域12を第2図に示すように、3バイ
ト以上の領域として8バイト設定する。
In this example, the thumb area 12 is set to 8 bytes as an area of 3 bytes or more as shown in FIG.

第2図(a)のように、8バイト・サム領域12中に“00
H”以外のデータが1バイトまたは連続2バイト(第3
バイト“XXH",第4バイト“YYH”)存在する場合は通常
の状態とみなす。この時、サム値SOは8バイト・サム領
域12の合計値“XXH+YYH”である。
As shown in Fig. 2 (a), "00" is placed in the 8-byte thumb area 12.
Data other than " H " is 1 byte or 2 consecutive bytes (3rd
Byte "XX H ", 4th byte "YY H ") If present, it is regarded as a normal state. At this time, the sum value S O is the total value “XX H + YY H ” of the 8-byte sum area 12.

上記以外の場合は、第1バイトにサム値を書き込み、他
のバイトには例えば“00H”を書き込んで消去する。
Otherwise, write checksum value in the first byte, the other byte erasing writes for example "00 H".

また、サム値が“00H”の時は、この8バイトの値が全
て“00H”になるのを避けるため、第1,第2バイトに“8
0H",“80H”を書き込む。オーバーフロー出力を無視す
ればサム値=80H+80H=00Hである。
Also, when the sum value is "00 H ", in order to avoid that all the values of these 8 bytes become "00 H ", "8" is set in the first and second bytes.
Write "0 H ", "80 H ". If the overflow output is ignored, the sum value = 80 H + 80 H = 00 H.

さて、第2図(a)の状態にあって、データ書き替えが
あり、今回サム値S1が算出されたとする。
Now, assume that there is data rewriting in the state of FIG. 2A and the sum value S 1 is calculated this time.

CPU2は、3バイト目の値“XXH”を“00H”と消去し、4
バイト目の“YYH”はそのままとし、5バイト目の“0
0H”をS1−YYH=ZZHに書き替える(第2図(b)参
照)。
CPU2 erases the value "XX H " of the 3rd byte as "00 H " and
The byte "YY H " remains unchanged and the fifth byte "0"
The 0 H "rewrites the S 1 -YY H = ZZ H (see FIG. 2 (b)).

次にデータが書き替えられてサム値S2が算出された場合
は、第2図(c)に示すように、4バイト目の“YYH
が“00H”と消去され、5バイト目にS2−ZZH=AAHが書
き込まれる。
Next, when the data is rewritten and the sum value S 2 is calculated, as shown in FIG. 2 (c), “YY H ” at the 4th byte
There "00 H" and is erased, S 2 -ZZ H = AA H is written in the fifth byte.

以下、順次同様の動作が繰り返される。Hereinafter, the same operation is sequentially repeated.

このように、“00H”以外のデータが2個連続する場合
は、“00H”以外の数値を有する最初のバイトに“00H
を書き込んで消去し、この次の次のバイトに、新たに算
出されたサム値とその前のバイト値の差分値を書き込
む。
In this way, when two data other than "00 H " are consecutive, "00 H " is added to the first byte having a value other than "00 H ".
Is written and erased, and the difference value between the newly calculated sum value and the previous byte value is written in the byte next to this.

また、この8バイト・サム領域12中に“00H”以外のデ
ータが1個存在する場合は、その次のバイトにサム値を
書き込み、上記のような連続2バイトに値が格納される
状態とする。
When there is one data other than "00 H " in the 8-byte sum area 12, the sum value is written in the next byte and the value is stored in the consecutive 2 bytes as described above. And

この例ではサム領域12として8バイト用意したため、各
バイトについて、8回のデータ書き込みに対して2回書
き込むだけでよく、従来のものと比較して4倍の書き込
み回数が許され、EEPROMの寿命を伸ばすことができる。
In this example, 8 bytes are prepared as the thumb area 12, so it is only necessary to write twice for each byte, and four times the number of times of writing is allowed compared with the conventional one, and the life of the EEPROM is long. Can be extended.

以上のように本考案の装置によれば、サム領域を3バイ
ト以上設定し、サム値書き込みの場合は、あるバイト消
去、他のバイト書き込みを循環して行なうため、特定1
バイトのサム値書き込みがなくなる。
As described above, according to the device of the present invention, when the sum area is set to 3 bytes or more, and when the sum value is written, a certain byte is erased and another byte is written cyclically.
The byte sum value write is gone.

上記の例では、消去データとして“00H”を用いたが、
この値は何でも良い。即ち、消去したサム値の番地と、
新たにサム値の書き込まれた番地が判別できれば良い。
In the above example, "00 H " was used as the erase data,
This value can be anything. That is, the address of the deleted sum value,
It is only necessary to be able to determine the address in which the new sum value has been written.

『考案の効果』 本考案のEEPROM制御装置は、サム領域を3バイト以上設
定し、データ領域にデータが書き替えられサム値を変更
する際、書き込み処理部はサム領域内の1バイトを消去
し、他の1バイトに新たなサム値に関連した値を書き込
む動作を循環するので、特定バイトのサム値書き込みが
なく、EEPROMの書き込み制限回数を実質的に引き伸ばす
ことができ、その信頼性を向上することができる。
[Effect of Device] The EEPROM control device of the present invention sets the sum area to 3 bytes or more, and when the data is rewritten in the data area and the sum value is changed, the write processing unit erases 1 byte in the sum area. Since the operation of writing the value related to the new sum value to the other 1 byte is circulated, there is no need to write the sum value of a specific byte, and the EEPROM write limit count can be substantially extended, improving its reliability. can do.

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

第1図は本考案を実施したEEPROM制御装置の構成図、第
2図(a),(b),(c)は本考案装置におけるEEPR
OM1のサム領域12を表わす図、第3図は従来装置のEEPRO
Mの構成を表わす図である。 1……EEPROM、11……データ領域、12……サム領域、2
……中央処理装置CPU、3……外部データ設定装置、DB
……データ・バス。
FIG. 1 is a block diagram of an EEPROM control device embodying the present invention, and FIGS. 2 (a), (b), and (c) are EEPROMs in the device of the present invention.
Figure 3 shows the thumb area 12 of OM1, and Figure 3 shows the conventional device EEPRO.
It is a figure showing the structure of M. 1 ... EEPROM, 11 ... Data area, 12 ... Sum area, 2
...... Central processing unit CPU, 3 …… External data setting device, DB
...... Data bus.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】EEPROMを内蔵し、このEEPROMに書き込まれ
た設定データに従って動作する計器に設けられるEEPROM
制御装置において、前記EEPROMを、データ領域と、前記
EEPROMの正常/異常をチェックするためのデータ合計値
をサム値として格納する少なくとも3バイト以上のサム
領域とに分割し、前記EEPROM内のデータが書き替えられ
たとき、前記サム領域内に、“00H”以外のデータが2
個連続する場合は、“00H”以外の数値を有する最初の
バイトに“00H”を書き込んで消去してその次の次のバ
イトに新たに算出されたサム値とその前のバイト値の差
分値を書き込み、“00H”以外のデータが1個存在する
場合は、その次のバイトに新たに算出されたサム値とそ
の前のバイト値の差分値を書き込む書き込み処理部を設
けたことを特徴とするEEPROM制御装置。
1. An EEPROM provided in an instrument which incorporates an EEPROM and operates according to the setting data written in the EEPROM.
In the control device, the EEPROM, the data area, the
The total data value for checking the normality / abnormality of the EEPROM is divided into a sum area of at least 3 bytes or more for storing as a sum value, and when the data in the EEPROM is rewritten, " Data other than "00 H " is 2
Number if consecutive, "00 H" non-numeric first byte with a "00 H" to write in and erasure of the next newly calculated checksum value to the next byte and its preceding byte values Write a difference value, and if there is one data other than "00 H ", provide a write processing unit that writes the difference value between the newly calculated sum value and the previous byte value in the next byte. EEPROM control device characterized by.
JP1987144981U 1987-09-22 1987-09-22 EEPROM control device Expired - Lifetime JPH0731440Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1987144981U JPH0731440Y2 (en) 1987-09-22 1987-09-22 EEPROM control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1987144981U JPH0731440Y2 (en) 1987-09-22 1987-09-22 EEPROM control device

Publications (2)

Publication Number Publication Date
JPS6452199U JPS6452199U (en) 1989-03-30
JPH0731440Y2 true JPH0731440Y2 (en) 1995-07-19

Family

ID=31413169

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1987144981U Expired - Lifetime JPH0731440Y2 (en) 1987-09-22 1987-09-22 EEPROM control device

Country Status (1)

Country Link
JP (1) JPH0731440Y2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS618798A (en) * 1984-06-21 1986-01-16 Nec Corp Nonvolatile storage device

Also Published As

Publication number Publication date
JPS6452199U (en) 1989-03-30

Similar Documents

Publication Publication Date Title
KR100531192B1 (en) Non-volatile memory control method
US6154808A (en) Method and apparatus for controlling data erase operations of a non-volatile memory device
US7007140B2 (en) Storage device, storage device controlling method, and program
JPH0411957B2 (en)
JPH04114289A (en) Data reloading circuit for microcomputer integrated circuit device
JPH0731440Y2 (en) EEPROM control device
JPH02214156A (en) Nonvolatile semiconductor device
US6898680B2 (en) Minimization of overhead of non-volatile memory operation
JPH10247165A (en) Method and device for data writing in write-compensation-frequency limited memory
JPS62131354A (en) Method for controlling information write on ic card
JPH11110983A (en) Flash memory erase count management method and data processing device using the same
JP3125526B2 (en) Storage device
JP2581057B2 (en) Evaluation microcomputer
JP4542556B2 (en) Semiconductor memory system
JPS61273795A (en) Modification system for eeprom data
JPH0334196A (en) Non-voltatile memory circuit
JP2793623B2 (en) emulator
JPS62289999A (en) Data writing method
JPH01213899A (en) Data keeping system
JPH01118933A (en) Single-chip microcomputer
EP0497443A2 (en) Static ram based microcontroller
JP2732052B2 (en) Control circuit
JPS6252796A (en) Memory access controller
JPH05216774A (en) Memory protecting system
JPS63187499A (en) Management system for number of times of memory rewrite