JPH04328395A - Check method of e2 rom write-in number exceeding - Google Patents

Check method of e2 rom write-in number exceeding

Info

Publication number
JPH04328395A
JPH04328395A JP3123004A JP12300491A JPH04328395A JP H04328395 A JPH04328395 A JP H04328395A JP 3123004 A JP3123004 A JP 3123004A JP 12300491 A JP12300491 A JP 12300491A JP H04328395 A JPH04328395 A JP H04328395A
Authority
JP
Japan
Prior art keywords
rom
contents
written
specific
exceeded
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
JP3123004A
Other languages
Japanese (ja)
Inventor
Ichiro Ishida
一郎 石田
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP3123004A priority Critical patent/JPH04328395A/en
Publication of JPH04328395A publication Critical patent/JPH04328395A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a method of detecting the contents destruction of E<2>ROM, which is caused by the write-in number exceeding the preset number, without counting the data write-in number. CONSTITUTION:A specific code is written into the specific address of an E<2>ROM as a check code which is continuously checked and when the check code changes to other than the specific code, then, it discriminates that a contents destruction occurs.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、或る装置に対する動作
条件を内容として書き込まれていて、前記装置に対する
動作条件が変更になる毎に、その内容を書き換えられる
電気的に書き込み可能で消去可能なE2 ROMにおい
て、書き換えの回数が規定回数を超えたことにより、該
ROMの内容が破壊されるに至ったとき、そのことを検
出するためのE2 ROMの書き込み回数オーバのチエ
ック方法に関するものである。
[Industrial Application Field] The present invention is an electrically writable and erasable device in which operating conditions for a certain device are written as contents, and the contents can be rewritten each time the operating conditions for the device change. This invention relates to a method for checking whether an E2 ROM has been written over the number of times to detect when the contents of the E2 ROM are destroyed due to the number of rewrites exceeding a specified number of times. .

【0002】0002

【従来の技術】例えばモータを負荷として該負荷へ電源
を供給するインバータ装置において、該インバータ装置
を運転する条件、例えば周波数が50Hzか60Hzか
、とか出力電圧を何ボルトにするか、等をE2 ROM
に書き込んでおいてインバータ装置に組み込んでおけば
、様々な条件の負荷に対して同一のインバータ装置で対
応することができる。そして運転条件が変わった場合、
それに応じてE2 ROMの内容を書き換えることで対
応することができる。
2. Description of the Related Art For example, in an inverter device that uses a motor as a load and supplies power to the load, the conditions for operating the inverter device, such as whether the frequency is 50 Hz or 60 Hz, how many volts the output voltage should be, etc. ROM
By writing this information into the inverter and incorporating it into the inverter, the same inverter can handle loads under various conditions. And if operating conditions change,
This can be handled by rewriting the contents of the E2 ROM accordingly.

【0003】しかし、E2 ROMの信頼性は、その書
き換えの回数に依存し、書き換えの回数が例えば約1万
回を超えると、書き込まれている内容が破壊され、別の
内容に変化してしまうことが知られている。そこで従来
は、E2 ROMの内容を書き換える毎にその回数をカ
ウントし、カウント値を該E2 ROMの特定アドレス
に書き込んでおき、このカウント値を内容の書き換え時
に常にチエックするようにしていた。
[0003] However, the reliability of the E2 ROM depends on the number of times it is rewritten, and if the number of rewrites exceeds, for example, about 10,000 times, the written contents will be destroyed and changed to other contents. It is known. Conventionally, the number of times the contents of the E2 ROM are rewritten is counted, the count value is written to a specific address of the E2 ROM, and this count value is always checked when rewriting the contents.

【0004】0004

【発明が解決しようとする課題】上述の如き従来の方法
では、書き換えの回数が規定回数付近に達してE2 R
OMの内容の信頼性が低下すると、特定アドレスに書き
込まれているカウント値自体の信頼性も低下することが
ある。このため、電源の投入時、それまでのカウント値
が表示されず(表示されれば回数オーバが判明するのに
)、もっと少ない値に変化してしまってそれが表示され
ることがあり、そのため回数オーバに気付かず、インバ
ータ装置が誤運転してしまうという問題があった。
[Problem to be Solved by the Invention] In the conventional method as described above, when the number of rewrites reaches around the specified number of times, E2R
When the reliability of the contents of the OM decreases, the reliability of the count value itself written to a specific address may also decrease. For this reason, when the power is turned on, the count value up to that point is not displayed (although if it were displayed, it would be obvious that the count has exceeded), but the value may change to a smaller value and be displayed. There was a problem in that the inverter device operated erroneously without noticing that the number of times had exceeded.

【0005】本発明の目的は、かかる従来技術の問題点
を克服し、書き込み回数オーバによりE2 ROMの内
容に信頼性が置けなくなったとき、そのことを信頼性高
く検出することのできるE2 ROMの書き込み回数オ
ーバのチエック方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to overcome the problems of the prior art and to provide an E2 ROM that can detect with high reliability when the contents of the E2 ROM become unreliable due to excessive writing. The purpose of the present invention is to provide a method for checking whether the number of writes has exceeded.

【0006】[0006]

【課題を解決するための手段】上記目的達成のため、本
発明では、或る装置に対する動作条件を内容として書き
込まれていて、前記装置に対する動作条件が変更になる
毎に、その内容を書き換えられるE2 ROMにおいて
、該ROMの特定アドレスに特定コードを書き込んでお
き、該ROMの内容の書き換え毎に前記特定アドレスの
内容をチエックし、それが特定コード以外の内容に変化
していたとき、書き込み回数がオーバしたと判定するよ
うにした。
[Means for Solving the Problems] In order to achieve the above object, in the present invention, operating conditions for a certain device are written as contents, and the contents can be rewritten every time the operating conditions for the device change. In the E2 ROM, a specific code is written to a specific address of the ROM, and each time the content of the ROM is rewritten, the content of the specific address is checked, and if the content has changed to something other than the specific code, the number of writes is determined. It is now determined that the value has exceeded the limit.

【0007】[0007]

【作用】このようにすれば、一々E2 ROMの内容の
書き換え毎に、その書き換え回数をカウントしておかな
くても、書き込み回数オーバによりE2 ROMの内容
に信頼性が置けなくなれば、そのことが特定アドレスの
内容変化として検出できるので、従来技術の問題点を解
決できる。
[Operation] By doing this, even if you do not count the number of rewrites each time the contents of the E2 ROM are rewritten, if the contents of the E2 ROM become unreliable due to the number of writes being exceeded, it will be possible to Since it can be detected as a change in the content of a specific address, the problems of the prior art can be solved.

【0008】[0008]

【実施例】図1は本発明の一実施例を示すフローチャー
トである。先ず対象とするE2 ROMの特定アドレス
に、特定コードをチエックコードとして記憶させておく
。特定コードは、それが特定コードであると識別できる
コードであれば、どんな形式のコードでも構わない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a flowchart showing an embodiment of the present invention. First, a specific code is stored as a check code at a specific address in the target E2 ROM. The specific code may be in any format as long as it can be identified as a specific code.

【0009】さて電源投入時に、ステップS1に進み、
E2 ROMの特定アドレスに記憶されているチエック
コードを読み込む。次にステップS2において、読み込
んだ該チエックコードが前記特定コードに一致している
かチエックし、一致していなければエラーとして、運転
停止、エラー表示に進み、一致していれば、ステップS
3に進む。
Now, when the power is turned on, the process proceeds to step S1.
E2 Read the check code stored at a specific address in the ROM. Next, in step S2, it is checked whether the read check code matches the specific code, and if it does not match, it is determined as an error and the operation is stopped and the process proceeds to error display. If they match, step S
Proceed to step 3.

【0010】ステップS3では、E2 ROMの内容(
運転条件)をデータとして読み込む必要のあるたびに、
特定アドレスに記憶されているチエックコードも読み込
み、続いてステップS4に進んでチエックする。チエッ
クの結果、一致していなければエラーとして、運転停止
、エラー表示に進み、一致していれば、ステップS5に
進む。
[0010] In step S3, the contents of the E2 ROM (
Each time it is necessary to read the operating conditions) as data,
The check code stored in the specific address is also read, and then the process proceeds to step S4 to check. As a result of the check, if they do not match, it is determined as an error and the process proceeds to stop operation and display an error; if they match, the process proceeds to step S5.

【0011】ステップS5では、E2 ROMの内容(
運転条件)の書き換えのため、データを書き込む必要の
あるたびに、特定アドレスに記憶されているチエックコ
ードを、或る第1の特定コードから、別の第2の特定コ
ードへ(或いはその逆に)書き換える。その後、電源オ
フとなる。
[0011] In step S5, the contents of the E2 ROM (
Each time it is necessary to write data to rewrite the operating conditions), the check code stored at a specific address is changed from a certain first specific code to another second specific code (or vice versa). )rewrite. After that, the power is turned off.

【0012】ステップS5で、E2 ROMの内容の書
き換えのため、データを書き込む毎に、特定アドレスに
記憶されているチエックコードを、或る第1の特定コー
ドから、別の第2の特定コードへ(或いはその逆に)順
に書き換えるようにしているが、これは次の事情による
In step S5, in order to rewrite the contents of the E2 ROM, each time data is written, the check code stored at a specific address is changed from a certain first specific code to another second specific code. (or vice versa), but this is due to the following circumstances.

【0013】即ち、E2 ROMの内容の書き換えのた
め、データを書き込む回数が増すにも関わらず、特定ア
ドレスに記憶されているチエックコードをそのままにし
ておくと、特定アドレスの所だけ、書き込む回数が少な
くなり、E2 ROMの内容が破壊するに至っても、特
定アドレスに記憶されているチエックコードは破壊され
ないことがあるので、このような事態を防止するために
、書き込む回数を同じにする必要があるからである。
In other words, even though the number of times data is written increases due to rewriting the contents of the E2 ROM, if the check code stored at a specific address is left unchanged, the number of times data is written only at that specific address will be reduced. Even if the contents of the E2 ROM are destroyed due to low check codes, the check code stored at a specific address may not be destroyed, so in order to prevent such a situation, it is necessary to write the same number of times. It is from.

【0014】E2 ROMによっては、特定の場所の書
き込み回数が限度を超すと、全体的にも記憶内容が破壊
されるものもあり、このような場合には、ステップS5
は必ずしも必要ではない。
[0014] Depending on the E2 ROM, if the number of writes to a specific location exceeds the limit, the entire memory content may be destroyed. In such a case, step S5
is not necessarily necessary.

【0015】本発明は、書き込み回数が限度を超したか
らではなく、ノイズによりE2 ROMの内容が破壊さ
れた場合でも(そのときは特定アドレスに記憶されてい
るチエックコードも破壊されるであろうから)、その検
出に利用することができる。
[0015] The present invention can be used even if the contents of the E2 ROM are destroyed not because the number of writes exceeds the limit, but because of noise (in that case, the check code stored at a specific address will also be destroyed). ) can be used for its detection.

【0016】[0016]

【発明の効果】以上説明したように、本発明によれば、
E2 ROMにおけるデータ書き込み回数を実際にカウ
ントする必要もなく、またE2ROMにおける書き込み
データの誤りチエックをソフトウエア的に実行したりす
る必要もなく、ごく簡単のやり方でE2 ROMの内容
の破壊の有無を識別できるという利点がある。
[Effects of the Invention] As explained above, according to the present invention,
There is no need to actually count the number of times data is written to the E2 ROM, and there is no need to use software to check for errors in the written data in the E2 ROM.It is possible to check whether or not the contents of the E2 ROM have been destroyed using a very simple method. It has the advantage of being easy to identify.

【0017】更にデータ書き込み回数をカウントする従
来のやり方に比較すると、E2 ROMにおける書き込
み回数が実際には規定回数を超えていても、E2 RO
Mの内容が破壊するに至らないというような場合、E2
 ROMの有効寿命を有効に利用できるという利点があ
る。
Furthermore, compared to the conventional method of counting the number of data writes, even if the number of writes in the E2 ROM actually exceeds the specified number, the E2 RO
If the contents of M do not lead to destruction, E2
This has the advantage that the useful life of the ROM can be used effectively.

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

【図1】本発明の一実施例を示すフローチャートである
FIG. 1 is a flowchart showing one embodiment of the present invention.

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

S1〜S5…ステップ S1~S5...step

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  或る装置に対する動作条件を内容とし
て書き込まれていて、前記装置に対する動作条件が変更
になる毎に、その内容を書き換えられる電気的に書き込
み可能で消去可能なE2 ROMにおいて、書き換えの
回数が規定回数を超えたことにより、該ROMの内容が
破壊されるに至ったとき、そのことを検出するE2 R
OMの書き込み回数オーバのチエック方法において、前
記ROMの特定アドレスに特定コードを書き込んでおき
、該ROMの内容の書き換え毎に前記特定アドレスの内
容をチエックし、それが特定コード以外の内容に変化し
ていたとき、書き込み回数がオーバしたと判定すること
を特徴とするE2 ROMの書き込み回数オーバのチエ
ック方法。
1. An electrically writable and erasable E2 ROM in which operating conditions for a certain device are written as contents, and the contents can be rewritten each time the operating conditions for the device change. E2 R detects when the contents of the ROM are destroyed due to the number of times exceeding the specified number of times.
In the method of checking whether the number of writes to OM has been exceeded, a specific code is written to a specific address of the ROM, and each time the content of the ROM is rewritten, the content of the specific address is checked to ensure that the content does not change to a content other than the specific code. A method for checking whether the number of times of writing to an E2 ROM has been exceeded is characterized in that it is determined that the number of times of writing has exceeded when the number of times of writing has exceeded.
JP3123004A 1991-04-26 1991-04-26 Check method of e2 rom write-in number exceeding Pending JPH04328395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3123004A JPH04328395A (en) 1991-04-26 1991-04-26 Check method of e2 rom write-in number exceeding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3123004A JPH04328395A (en) 1991-04-26 1991-04-26 Check method of e2 rom write-in number exceeding

Publications (1)

Publication Number Publication Date
JPH04328395A true JPH04328395A (en) 1992-11-17

Family

ID=14849879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3123004A Pending JPH04328395A (en) 1991-04-26 1991-04-26 Check method of e2 rom write-in number exceeding

Country Status (1)

Country Link
JP (1) JPH04328395A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012523599A (en) * 2009-04-08 2012-10-04 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and system for analyzing information in monitor data from memory devices having finite durability and / or durability

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012523599A (en) * 2009-04-08 2012-10-04 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and system for analyzing information in monitor data from memory devices having finite durability and / or durability

Similar Documents

Publication Publication Date Title
JPS62173696A (en) Information memorizing/reading system
JP2606862B2 (en) Single error detection and correction method
JPH04328395A (en) Check method of e2 rom write-in number exceeding
US4763248A (en) Microcomputer with a detecting function of a memory access error
JP2003196165A (en) Nonvolatile memory and data updating method therefor
US6535442B2 (en) Semiconductor memory capable of debugging an incorrect write to or an incorrect erase from the same
JPS586596A (en) Memory life detecting system
US6798695B2 (en) Arrangement for storing a count
JPH04162300A (en) Semiconductor memory
JPS623520B2 (en)
JP2731047B2 (en) Program operand check method
JP2006155735A (en) Storage device
JP3314719B2 (en) Flash EEPROM and its test method
JP2001273198A (en) Data writing device and data breakage detector
JP2000057000A (en) Micro computer with built-in flash memory
JPH01213899A (en) Data keeping system
JPH06236695A (en) Non-volatile memory device with exchange display function
JPH0546494A (en) Memory check system
JPH0250226A (en) Microcomputer
JP3284738B2 (en) Printing equipment
JPH01118933A (en) Single-chip microcomputer
US6067657A (en) Circuit for the detection of anomalies of access to a cell in a microcontroller
CN113393891A (en) Nonvolatile memory detection method and device and electric vehicle
JPH0765586A (en) Access system for eeprom
JPH05128016A (en) Non-volatile semiconductor storage device