JPH0798992A - Data processor - Google Patents

Data processor

Info

Publication number
JPH0798992A
JPH0798992A JP24430793A JP24430793A JPH0798992A JP H0798992 A JPH0798992 A JP H0798992A JP 24430793 A JP24430793 A JP 24430793A JP 24430793 A JP24430793 A JP 24430793A JP H0798992 A JPH0798992 A JP H0798992A
Authority
JP
Japan
Prior art keywords
storage area
data
written
writing
eeprom
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
JP24430793A
Other languages
Japanese (ja)
Inventor
Toshiyuki Shibuya
敏幸 渋谷
Koji Takagi
康志 高木
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP24430793A priority Critical patent/JPH0798992A/en
Publication of JPH0798992A publication Critical patent/JPH0798992A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Read Only Memory (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To enhance utilizing efficiency by successively writing in order of the head for plural sectional storage areas and repeatedly writing on the sectional storage area of the head in order again after writing on the sectional storage area of the last. CONSTITUTION:By a microprocessor 1, first, the sectional storage area for writing the present operation data is retrieved among from 24 sectional storage areas in an EEPROM 5, and whether or not the identification data 00 of the read out storage area exists is decided. When the 00 exists, the data are written by the processor 1. When no 00, an address is increased by +1, and the retrieval is repeated until the 00 exists. When the sectional storage area writing the data is the sectional storage area of the last, the identification data 00 are written in the sectional storage area of the head. Thus, related to respective sectional storage areas, the operation data are written by the limit number of times (within the range of 50 thousand to 100 thousand times) of the EEPROM 5 respectively.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データを書き替え可能
であって電源オフ時にも書込まれたデータを記憶保持し
ているEEPROMを備えたデータ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device having an EEPROM capable of rewriting data and storing and holding the written data even when the power is turned off.

【0002】[0002]

【従来の技術】マイクロプロセッサにより種々の負荷を
駆動制御して運転制御する電気機器においては、故障が
発生した場合、その原因追及を容易に行うために、故障
発生時の運転状態を再現することが必要である。このた
め、上記電気機器では、EEPROMを内蔵し、運転状
態を再現する際に必要な運転データをマイクロプロセッ
サにより運転の途中で適宜上記EEPROMに書込んで
記憶するようにしている。これにより、故障が発生して
電源をオフした場合にも、故障発生時の運転データを記
憶保持することができるから、故障発生時の運転状態を
容易に再現することができる。
2. Description of the Related Art In an electric device in which various loads are driven and controlled by a microprocessor for operation control, when a failure occurs, the operating state at the time of failure must be reproduced in order to easily investigate the cause. is necessary. For this reason, in the electric device, an EEPROM is built in, and the operation data necessary for reproducing the operation state is appropriately written in the EEPROM by the microprocessor during operation to be stored. As a result, even when a failure occurs and the power is turned off, the operation data at the time of the failure can be stored and retained, so that the operation state at the time of the failure can be easily reproduced.

【0003】[0003]

【発明が解決しようとする課題】ところで、EEPRO
Mは、一般的にデータの書替回数に限度があり、概ね5
万〜10万回程度でデータを書込みできなくなってしま
うものであった。また、上記従来構成では、EEPRO
Mに運転データを書込む場合、EEPROMの記憶エリ
アのうちの予め決めておいた所定のアドレスの記憶エリ
アに書込むようにしていた。このため、EEPROMへ
のデータの書込み回数が限度回数に達すると、データの
書込みできなくなってしまうという欠点があった。この
ため、上記従来構成では、データの書込み回数をカウン
トし、そのカウント値が限度回数に達したところで、E
EPROMの寿命が尽きたと判断してデータの書込み処
理を実行しないようしていた。また、上記従来構成の場
合、EEPROMの記憶エリアのうちの所定のアドレス
の記憶エリアがデータ書込みできなくなっているだけで
あり、使用していない記憶エリアは、データ書込みがま
だ可能であるので、EEPROMの使用効率も悪かっ
た。
[PROBLEMS TO BE SOLVED BY THE INVENTION] By the way, EEPRO
M generally has a limit to the number of times data can be rewritten, and is generally 5
The data could not be written after 10,000 to 100,000 times. Further, in the above conventional configuration, EEPRO
When the operation data is written in M, the operation data is written in a storage area of a predetermined address in the storage area of the EEPROM. For this reason, there is a drawback that the data cannot be written when the number of times of writing the data to the EEPROM reaches the limit number. Therefore, in the above-described conventional configuration, the number of times data is written is counted, and when the count value reaches the limit number, E
It is determined that the EPROM has reached the end of its life and the data writing process is not executed. Further, in the case of the above-mentioned conventional configuration, only the storage area of a predetermined address in the storage area of the EEPROM cannot write data, and the storage area which is not used can still write data. Was not used efficiently.

【0004】そこで、本発明の目的は、EEPROMの
使用効率を高くし得ると共に、EEPROMへのデータ
の書込み回数を大幅に多くすることができ、EEPRO
Mの寿命を長くし得るデータ処理装置を提供するにあ
る。
Therefore, an object of the present invention is to improve the use efficiency of the EEPROM and to significantly increase the number of times of writing data to the EEPROM.
It is to provide a data processing device capable of extending the life of M.

【0005】[0005]

【課題を解決するための手段】本発明のデータ処理装置
は、データを書き替え可能であって電源オフ時にも書込
まれたデータを記憶保持しているEEPROMを備えて
成るデータ処理装置において、前記EEPROMの記憶
エリアを複数の区分記憶エリアに区分し、前記複数の区
分記憶エリアにデータを書込む場合、前回データを書込
んだ区分記憶エリアの次の区分記憶エリアに今回のデー
タを書込むようにすると共に、前回データを書込んだ区
分記憶エリアが最後尾の区分記憶エリアであるときに
は、先頭の区分記憶エリアに今回のデータを書込むよう
にするところに特徴を有する。
A data processor according to the present invention is a data processor comprising an EEPROM capable of rewriting data and storing and holding the written data even when the power is off. When the storage area of the EEPROM is divided into a plurality of divided storage areas and the data is written in the plurality of divided storage areas, the current data is written in the divided storage area next to the divided storage area in which the previous data was written. In addition to this, when the partitioned storage area in which the data was previously written is the final partitioned storage area, the present data is written in the leading partitioned storage area.

【0006】この場合、具体的には、先頭の区分記憶エ
リアから順次その区分記憶エリアに、データ書込み予定
用の区分記憶エリアであることを示す識別子が書込まれ
ているか否かをサーチして、前記複数の区分記憶エリア
の中から今回データを書込むための区分記憶エリアを検
索する検索手段を備え、この検索手段により検索された
区分記憶エリアにデータを書込むデータ書込み手段を備
え、そして、データが書込まれた区分記憶エリアの次の
区分記憶エリア、又は、データが書込まれた区分記憶エ
リアが最後尾の区分記憶エリアであるときには先頭の区
分記憶エリアに、前記識別子を書込む識別子書込み手段
を備える構成とすることが好ましい。
In this case, specifically, a search is made from the beginning of the partitioned storage area in order to see if an identifier indicating the partitioned storage area for writing data is written in the partitioned storage area. A search means for searching a partitioned storage area for writing data this time from the plurality of partitioned storage areas, and a data writing means for writing data in the partitioned storage area searched by the searching means, Write the identifier to the next partitioned storage area after the data is written, or if the partitioned storage area where the data is written is the final partitioned storage area, write the identifier to the first partitioned storage area. It is preferable that the configuration includes an identifier writing unit.

【0007】また、初期化時において、前記EEPRO
Mの先頭の区分記憶エリア又はすべての区分アリアに前
記識別子を書込むように構成することも考えられる。更
に、前記EEPROMの全区分記憶エリアに対する各書
込み回数をすべてカウントするカウンタを備えるように
構成することも一層好ましいものである。
Further, at the time of initialization, the EEPRO
It is also conceivable to write the identifier in the partition storage area at the head of M or all partition areas. Further, it is more preferable to provide a counter for counting all the number of times of writing in all the divided storage areas of the EEPROM.

【0008】[0008]

【作用】上記手段によれば、EEPROMの記憶エリア
を複数の区分記憶エリアに区分し、これら複数の区分記
憶エリアに対して先頭から逐次順番にデータを書込むと
共に、最後尾の区分記憶エリアにデータを書込んだ後
は、再び先頭の区分記憶エリアから繰り返し順番にデー
タを書込む構成としたので、EEPROMの記憶エリア
をすべて有効に利用することができる。そして、各区分
記憶エリアについて、それぞれ限度回数だけデータを書
込むことが可能であるから、EEPROM全体では、単
純計算で限度回数を区分記憶エリア数倍した回数程度だ
けデータの書込みが可能になり、データの書込み回数を
大幅に多くすることができる。
According to the above means, the storage area of the EEPROM is divided into a plurality of divided storage areas, the data is sequentially written into the plurality of divided storage areas from the beginning, and the divided storage areas at the end are written. After the data is written, the data is written again in the repeated order from the head divided storage area, so that the entire storage area of the EEPROM can be effectively used. Then, since it is possible to write the data for each divided storage area by the limited number of times, it is possible to write the data as many times as the number of times the limited number of times is divided by the number of divided storage areas by simple calculation in the entire EEPROM. The number of times data is written can be significantly increased.

【0009】そして、この場合、複数の区分記憶エリア
に対して先頭から順番にデータを書込むに際しては、具
体的には、次にデータ書込みを行う区分記憶エリアに対
して、そのことを示す識別子を予め書込むように構成し
ているので、この識別子をサートすることにより、今回
データ書込みを行う区分記憶エリアを容易に検索するこ
とができると共に、該検索した区分記憶エリアにデータ
を簡単に書込むことができる。そして、データを書込ん
だ後は、その次の区分記憶エリア(データを書込んだ区
分記憶エリアが最後尾の区分記憶エリアであるときには
先頭の区分記憶エリア)に上記識別子を書込んでおけば
良い。
In this case, when writing data in order from the beginning to a plurality of partitioned storage areas, specifically, an identifier indicating that to the partitioned storage area in which data is to be written next. Since this is configured to be written in advance, by asserting this identifier, the partitioned storage area in which data is to be written this time can be easily searched, and data can be easily written to the searched partitioned storage area. Can be crowded. Then, after writing the data, the identifier is written in the next partitioned storage area (the partitioned storage area at the beginning when the partitioned storage area in which the data is written is the final partitioned storage area). good.

【0010】尚、先頭の区分記憶エリアについては、初
期化時において前記識別子を書込むように構成すると、
制御が簡単になる。この場合、初期化時において、すべ
ての区分アリアに前記識別子を書込むように構成しても
良い。また、前記EEPROMの全区分記憶エリアに対
する各書込み回数をすべてカウントするカウンタを備え
る構成とすれば、EEPROMの寿命が尽きたときに、
データの書込み処理を止めたり或いは報知したりする等
の対策を行うことも可能である。
Incidentally, if the above-mentioned identifier is written at the time of initialization for the first divided storage area,
Easy to control. In this case, the identifier may be written in all the division areas at the time of initialization. Further, when the counter is provided with a counter that counts each number of times of writing to all the divided storage areas of the EEPROM, when the life of the EEPROM is exhausted,
It is also possible to take measures such as stopping or notifying the data writing process.

【0011】[0011]

【実施例】以下、本発明を冷蔵庫の運転制御装置に適用
した一実施例について図面を参照しながら説明する。ま
ず、運転制御装置のブロック図を示す図2において、制
御回路である例えばマイクロプロセッサ1は、ROM2
に予め記憶された制御プログラムに基づいて、冷蔵庫本
体に設けられた各種センサ(図示しない)からの検出信
号をI/O回路3を介して受けて、各種の負荷(例えば
コンプレッサや種々のダンパー等)をI/O回路3を介
して駆動制御することにより、冷蔵庫全体の冷却運転を
制御するものである。そして、上記マイクロプロセッサ
1は、検索手段、データ書込み手段及び識別子書込み手
段としての各機能を有している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to an operation control device for a refrigerator will be described below with reference to the drawings. First, in FIG. 2 showing a block diagram of the operation control device, a control circuit, for example, a microprocessor 1 is a ROM 2
Based on a control program stored in advance in the refrigerator, detection signals from various sensors (not shown) provided in the refrigerator main body are received through the I / O circuit 3, and various loads (for example, a compressor, various dampers, etc.) are received. ) Is controlled through the I / O circuit 3 to control the cooling operation of the entire refrigerator. The microprocessor 1 has functions as a search means, a data writing means, and an identifier writing means.

【0012】また、マイクロプロセッサ1は、RAM4
にデータを書込み可能になっていると共に、RAM4に
書込まれているデータを読出し可能になっている。更
に、マイクロプロセッサ1は、EEPROM(Elec
trically Erasable Program
mable ROM)5にデータを書込み可能になって
いると共に、EEPROM5に書込まれているデータを
読出し可能になっている。上記EEPROM5は、デー
タを電気的に書き替え可能な記憶装置であると共に、電
源オフ時にも書込まれたデータを記憶保持する機能を有
している。
Further, the microprocessor 1 has a RAM 4
In addition to being able to write data into the RAM, the data written in the RAM 4 can be read out. Further, the microprocessor 1 has an EEPROM (Elec
trially Erasable Program
It is possible to write data in the (table ROM) 5 and read data written in the EEPROM 5. The EEPROM 5 is a storage device capable of electrically rewriting data and has a function of storing and holding the written data even when the power is turned off.

【0013】そして、上記マイクロプロセッサ1により
各種の負荷を駆動制御して冷却運転が制御される冷蔵庫
においては、故障が発生した場合、その原因追及を容易
に行うために、故障発生時の運転状態を再現することが
必要である。このため、マイクロプロセッサ1は、運転
状態を再現する際に必要な種々の運転データを、冷却運
転している最中に適当なタイミングでEEPROM5に
書込んで記憶させるように構成されている。本実施例の
場合、上記運転データは例えば1バイトの情報量のデー
タである。また、EEPROM5の記憶エリアにおいて
上記運転データを書込むための記憶エリアは、図3に示
すように、例えば先頭から24バイトの記憶エリアAで
ある。この記憶エリアAは、各1バイトの長さを有する
24個の区分記憶エリアに区分されており、これら各区
分記憶エリアに上記運転データを書込んで記憶させる構
成となっている。そして、本実施例では、製品出荷前の
初期化時において、EEPROM5の上記記憶エリアA
のすべての区分記憶エリアに、識別子として例えば「0
0」(これは、8ビットがすべて「0」である1バイト
のデータである)を書込むように構成されている(図1
参照)。上記識別子「00」が書込まれている区分記憶
エリアは、データ書込み予定用の区分エリアであること
を表している。尚、上記初期化時においては、先頭の区
分記憶エリアだけに「00」を書込むように構成しても
良い。
In the refrigerator in which the cooling operation is controlled by driving and controlling various loads by the microprocessor 1, when a failure occurs, the operating state at the time of the failure is set in order to easily find the cause. It is necessary to reproduce. Therefore, the microprocessor 1 is configured to write various operation data necessary for reproducing the operation state into the EEPROM 5 at an appropriate timing during the cooling operation so as to be stored therein. In the case of the present embodiment, the above-mentioned operation data is, for example, data of 1 byte of information amount. The storage area for writing the operation data in the storage area of the EEPROM 5 is, for example, a storage area A of 24 bytes from the beginning as shown in FIG. The storage area A is divided into 24 section storage areas each having a length of 1 byte, and the operation data is written and stored in each of the section storage areas. In the present embodiment, the storage area A of the EEPROM 5 is initialized at the time of initialization before product shipment.
For example, “0
0 "(this is a 1-byte data in which all 8 bits are" 0 ") is written (FIG. 1).
reference). The partitioned storage area in which the identifier "00" is written represents that it is a partitioned area for data writing. Incidentally, at the time of the initialization, "00" may be written only in the leading storage area.

【0014】以下、マイクロプロセッサ1によりEEP
ROM5に運転データを書込んで記憶させる処理につい
て、図1並びに図4ないし図6も参照して具体的に説明
する。まず、図1のフローチャートは、制御プログラム
のうちのEEPROM5に運転データを書込む処理の部
分制御内容を示している。今、運転データをEEPRO
M5に書込むタイミングに達したとすると、マイクロプ
ロセッサ1は最初に、EEPROM5の24個の区分記
憶エリアの中から今回データを書込むための区分記憶エ
リアを検索する。具体的には、図1のステップS1にお
いて、EEPROM5の記憶エリアAの先頭アドレス
(先頭の区分記憶エリアのアドレス)をセットし、この
アドレスに記憶されているデータを読出し、この読出し
たデータが識別子「00」であるか否かを判断する(ス
テップS2)。
Thereafter, the microprocessor 1 executes the EEP.
The process of writing and storing the operation data in the ROM 5 will be specifically described with reference to FIGS. 1 and 4 to 6. First, the flowchart of FIG. 1 shows the partial control contents of the process of writing the operation data in the EEPROM 5 of the control program. Now, the operation data is EEPRO
If the timing for writing to M5 is reached, the microprocessor 1 first searches the 24 partitioned storage areas of the EEPROM 5 for a partitioned storage area for writing data this time. Specifically, in step S1 of FIG. 1, the head address of the storage area A of the EEPROM 5 (the address of the head storage area) is set, the data stored at this address is read, and the read data is the identifier. It is determined whether it is "00" (step S2).

【0015】今の場合、図3に示すように、先頭の区分
記憶エリアには「00」が記憶されているから、ステッ
プS2にて「YES」へ進む。尚、ここで、図5に示す
ように、先頭の区分記憶エリアに「00」が記憶されて
いないときには、ステップS2にて「NO」へ進み、ア
ドレスを+1だけインクリメントし(ステップS3)、
次の区分記憶エリアに記憶されているデータを読出す。
以下、「00」が記憶されている区分記憶エリアを読出
すまで、アドレスを+1ずつインクリメントして区分記
憶エリアを検索する処理を繰り返すようになっている。
図5の記憶エリアAの場合、先頭から5番目の区分記憶
エリアを読出すと、ステップS2にて「YES」へ進
む。
In this case, as shown in FIG. 3, since "00" is stored in the first divided storage area, the process proceeds to "YES" in step S2. Here, as shown in FIG. 5, when "00" is not stored in the first divided storage area, the process proceeds to "NO" in step S2 and the address is incremented by +1 (step S3),
The data stored in the next divided storage area is read.
Hereinafter, the process of incrementing the address by +1 and searching the partitioned storage area is repeated until the partitioned storage area in which "00" is stored is read.
In the case of the storage area A in FIG. 5, when the fifth storage area from the beginning is read, the process proceeds to “YES” in step S2.

【0016】続いて、ステップS4に移行すると、マイ
クロプロセッサ1は上記検索した区分記憶エリアに運転
データを書込む(ステップS4)。具体的には、図3に
示す記憶エリアAの場合には、先頭の区分記憶エリアに
運転データとして例えば「23」を書込み、図4に示す
ようになる。また、図5に示す記憶エリアAの場合に
は、先頭から5番目の区分記憶エリアに運転データとし
て例えば「55」を書込む。
Then, when the process proceeds to step S4, the microprocessor 1 writes the operation data in the searched divided storage area (step S4). Specifically, in the case of the storage area A shown in FIG. 3, for example, “23” is written as operation data in the head division storage area, and the result becomes as shown in FIG. Further, in the case of the storage area A shown in FIG. 5, for example, “55” is written as operation data in the fifth divisional storage area from the beginning.

【0017】この後、マイクロプロセッサ1は、運転デ
ータを書込んだ区分記憶エリアの次の区分記憶エリア、
又は、運転データを書込んだ区分記憶エリアが最後尾の
区分記憶エリアであるときには先頭の区分記憶エリア
に、識別子「00」を書込む処理を行う。具体的には、
アドレスを+1だけインクリメントした後(ステップS
5)、このインクリメントしたアドレスが記憶エリアA
の最終アドレスであるか否かを判断する(ステップS
6)。この判断が、運転データを書込んだ区分記憶エリ
アが最後尾の区分記憶エリアであるか否かの判断であ
る。
After this, the microprocessor 1 determines that the partition storage area next to the partition storage area in which the operation data has been written,
Alternatively, when the partitioned storage area in which the operation data is written is the final partitioned storage area, the processing of writing the identifier "00" in the leading partitioned storage area is performed. In particular,
After incrementing the address by +1 (step S
5), this incremented address is the storage area A
It is determined whether or not it is the final address (step S
6). This judgment is a judgment as to whether or not the section storage area in which the operation data is written is the last section storage area.

【0018】ここで、インクリメントしたアドレスが記
憶エリアAの最終アドレスでなければ、ステップS6に
て「NO」へ進み、そのアドレスの区分記憶エリアに識
別子としてデータ「00」を書込む(ステップS7)。
具体的には、図3に示す記憶エリアAにおいて先頭の区
分記憶エリアに運転データ「23」を書込むことによ
り、図4に示すようになった場合には、2番目の区分記
憶エリアにデータ「00」を書込む。また、図5に示す
記憶エリアAにおいて先頭から5番目の区分記憶エリア
に運転データ「55」を書込んだ場合には、6番目の区
分記憶エリアにデータ「00」を書込み、この結果、図
6に示すようになる。これにより、EEPROM5に運
転データを書込む処理が完了し、この後は、通常の冷却
運転の制御へ戻るように構成されている。
Here, if the incremented address is not the final address of the storage area A, the process proceeds to "NO" in step S6 and the data "00" is written as an identifier in the divided storage area of the address (step S7). .
Specifically, in the storage area A shown in FIG. 3, when the operation data “23” is written in the first division storage area, the data is stored in the second division storage area in the case shown in FIG. Write "00". Further, in the storage area A shown in FIG. 5, when the operation data “55” is written in the fifth division storage area from the beginning, the data “00” is written in the sixth division storage area. As shown in 6. As a result, the process of writing the operation data in the EEPROM 5 is completed, and after that, the control returns to the normal cooling operation control.

【0019】一方、上記ステップS6において、インク
リメントしたアドレスが記憶エリアAの最終アドレスで
あるときには、ステップS6にて「YES」へ進み、記
憶エリアAの先頭アドレス(先頭の区分記憶エリアのア
ドレス)をセットする(ステップS8)。そして、ステ
ップS7へ移行し、そのアドレス即ち先頭の区分記憶エ
リアに識別子としてデータ「00」を書込むように制御
される。
On the other hand, when the incremented address is the final address of the storage area A in step S6, the process proceeds to "YES" in step S6, and the start address of the storage area A (the address of the top divided storage area) is set. Set (step S8). Then, the process proceeds to step S7, and it is controlled so that the data "00" is written as an identifier in the address, that is, the first divided storage area.

【0020】そして、運転データをEEPROM5に書
込むタイミングに達する毎に、上述したデータ書込み処
理が繰り返し行われるようになっている。これにより、
24個の区分記憶エリアにデータを書込む場合、前回デ
ータを書込んだ区分記憶エリアの次の区分記憶エリアに
今回のデータを書込むと共に、前回データを書込んだ区
分記憶エリアが最後尾の区分記憶エリアであるときに
は、先頭の区分記憶エリアに今回のデータを書込むとい
うデータ処理の制御がなされるものである。
The above-described data writing process is repeated every time when the timing for writing the operation data into the EEPROM 5 is reached. This allows
When data is written in 24 partitioned storage areas, the current data is written in the partitioned storage area next to the partitioned storage area in which the previous data was written, and the partitioned storage area in which the previous data is written is at the end. In the case of the divided storage area, the data processing is controlled such that the current data is written in the first divided storage area.

【0021】この結果、故障が発生して電源をオフした
場合にも、故障発生時の運転データをEEPROM5に
より記憶保持することができると共に、このEEPRO
M5の記憶エリアAを読出すことにより、故障発生時の
運転状態を容易に再現することが可能になる。
As a result, even if the power is turned off due to a failure, the operation data at the time of the failure can be stored and held in the EEPROM 5, and the EEPROM can be used.
By reading the storage area A of M5, it becomes possible to easily reproduce the operating state at the time of failure occurrence.

【0022】尚、図1のフローチャートには図示してい
ないが、EEPROM5の区分記憶エリアに運転データ
を書込む処理を行う毎に、データ書込み回数をカウント
するカウンタを+1ずつカウントアップするように構成
されている。この結果、上記カウンタにより、EEPR
OM5の全区分記憶エリアに対する各書込み回数をすべ
てカウントする構成となっている。この場合、上記カウ
ンタは、例えばRAM4内に設けられている。そして、
上記カウンタのカウント値が、書込み回数の限界回数
(具体的には、EEPROM5の書込み限界回数を24
倍して2で割った回数)に達したら、EEPROM5に
運転データを書込み処理を止めると共に、その旨を例え
ば制御基板に設けられた警報用LEDを点灯して報知す
るようになっている。
Although not shown in the flow chart of FIG. 1, each time the operation data is written in the divided storage area of the EEPROM 5, the counter for counting the number of data writes is incremented by +1. Has been done. As a result, the counter causes the EEPR
It is configured to count all the number of times of writing to all the divided storage areas of the OM5. In this case, the counter is provided in the RAM 4, for example. And
The count value of the counter is the limit number of write times (specifically, the write limit number of the EEPROM 5 is 24
When the number of times of multiplication is divided by 2, the operation data is written in the EEPROM 5 and the process is stopped, and the fact is notified by lighting an alarm LED provided on the control board, for example.

【0023】このような構成の本実施例によれば、EE
PROM5の記憶エリアAを24個の区分記憶エリアに
区分し、これら24個の区分記憶エリアに対して先頭か
ら逐次順番に運転データを書込むと共に、最後尾の区分
記憶エリアに運転データを書込んだ後は、再び先頭の区
分記憶エリアから繰り返し順番にデータを書込む構成と
したので、EEPROM5の記憶エリアAをすべて有効
に利用することができる。そして、上記実施例では、各
区分記憶エリアについて、それぞれEEPROM5の限
度回数(5万〜10万回程度)だけ運転データを書込む
ことが可能であるから、EEPROM全体では、単純計
算で上記限度回数を区分記憶エリアの数倍した回数程度
(この場合、運転データを書込むと共に識別子のデータ
「00」を同時に書込んでいるので、24倍して2で割
る必要があり、結果的には、限度回数を12倍した回
数)だけ運転データの書込みが可能になる。従って、従
来構成に比べて、運転データの書込み回数を大幅に多く
することができる。
According to this embodiment having such a configuration, the EE
The storage area A of the PROM 5 is divided into 24 divided storage areas, and the operation data is written to these 24 divided storage areas sequentially from the beginning and the operation data is written to the rearmost divided storage area. After that, the storage area A of the EEPROM 5 can be effectively used because the data is written again in the repeated order from the head storage area. Further, in the above-described embodiment, since it is possible to write the operation data in each of the divided storage areas for the limited number of times (about 50,000 to 100,000 times) of the EEPROM 5, for the entire EEPROM, the above-mentioned limited number of times is calculated by simple calculation. About several times as much as the divided storage area (in this case, since the operation data is written and the identifier data “00” is also written at the same time, it is necessary to multiply by 24 and divide by 2, and as a result, The operation data can be written only for the number of times the limit number is multiplied by 12. Therefore, the number of times of writing operation data can be significantly increased as compared with the conventional configuration.

【0024】そして、上記実施例の場合、24個の区分
記憶エリアに対して先頭から順番にデータを書込むに際
して、次にデータ書込みを行う区分記憶エリアに対し
て、そのことを示す識別子「00」を予め書込むように
構成しているので、この識別子「00」をサーチするこ
とにより、今回データ書込みを行う区分記憶エリアを容
易に検索することができ、従って、検索した区分記憶エ
リアに運転データを容易に書込むことができる。そし
て、運転データを書込んだ後は、その次の区分記憶エリ
ア(データを書込んだ区分記憶エリアが最後尾の区分記
憶エリアであるときには先頭の区分記憶エリア)に上記
識別子「00」を書込んでおくようにしているので、識
別子「00」を書込む処理も簡単である。
In the case of the above embodiment, when writing data in order from the beginning to 24 partitioned storage areas, an identifier "00" indicating that is written to the partitioned storage area in which data is written next. Is written in advance, it is possible to easily search the partitioned storage area in which data is to be written this time by searching this identifier "00". Data can be written easily. After writing the operation data, write the above-mentioned identifier "00" in the next section storage area (the first section storage area when the section storage area in which the data is written is the last section storage area). Since it is written in, the process of writing the identifier "00" is also easy.

【0025】また、上記実施例では、EEPROM5の
全区分記憶エリアに対する各書込み回数をすべてカウン
トするカウンタを設ける構成としたので、EEPROM
5の寿命が尽きたときに、運転データの書込み処理を止
めたり、或いは、EEPROM5の寿命が尽きたことを
報知したりする等の対策を必要に応じて行うことも可能
である。
Further, in the above-mentioned embodiment, since the counter for counting all the number of times of writing to all the divided storage areas of the EEPROM 5 is provided, the EEPROM is
It is also possible to take measures such as stopping the operation data writing process or notifying the end of the life of the EEPROM 5 when the life of the battery 5 is exhausted, if necessary.

【0026】尚、上記実施例では、EEPROM5にお
ける運転データ書込み用の記憶エリアを24バイトの記
憶エリアAとしたが、この記憶エリアAの記憶容量の具
体的値は必要に応じて適宜設定すれば良い。また、EE
PROM5に書込む運転データの長さを1バイトに設定
したが、これも必要に応じて2バイト以上に設定しても
良い。
In the above embodiment, the storage area for writing the operation data in the EEPROM 5 is the storage area A of 24 bytes, but the specific value of the storage capacity of the storage area A can be appropriately set if necessary. good. Also, EE
Although the length of the operation data to be written in the PROM 5 is set to 1 byte, it may be set to 2 bytes or more if necessary.

【0027】[0027]

【発明の効果】本発明は、以上の説明から明らかなよう
に、EEPROMの記憶エリアを複数の区分記憶エリア
に区分し、これら複数の区分記憶エリアにデータを書込
む場合、前回データを書込んだ区分記憶エリアの次の区
分記憶エリアに今回のデータを書込むようにすると共
に、前回データを書込んだ区分記憶エリアが最後尾の区
分記憶エリアであるときには、先頭の区分記憶エリアに
今回のデータを書込む構成としたので、EEPROMの
使用効率を高くし得ると共に、EEPROMへのデータ
の書込み回数を大幅に多くすることができ、EEPRO
Mの寿命を長くし得るという優れた効果を奏する。そし
て、先頭の区分記憶エリア、又は、すべての区分アリア
について、初期化時において識別子を書込むように構成
すると、制御が簡単になる。また、EEPROMの全区
分記憶エリアに対する各書込み回数をすべてカウントす
るカウンタを備える構成とすると、EEPROMの寿命
が尽きたときに、データの書込み処理を止めたり、或い
は、寿命が尽きたことを報知したりする等の対策を行う
ことも可能である。
As is apparent from the above description, the present invention divides the storage area of the EEPROM into a plurality of divided storage areas, and when writing data to these plurality of divided storage areas, the previous data is written. The data of this time is written to the next partitioned storage area of the second partitioned storage area, and if the partitioned storage area in which the previous data was written is the last partitioned storage area, the current partitioned data is written to the first partitioned storage area. Since the configuration is such that data is written, the efficiency of use of the EEPROM can be improved, and the number of times of writing data to the EEPROM can be significantly increased.
It has an excellent effect that the life of M can be extended. Then, if the identifier is written at the time of initialization for the head storage area or all the partition areas, the control becomes simple. Further, if a configuration is provided with a counter that counts each number of times of writing in all the divided storage areas of the EEPROM, when the life of the EEPROM is exhausted, the data writing process is stopped, or a notification that the life is exhausted is issued. It is also possible to take measures such as taking measures.

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

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

【図2】ブロック図FIG. 2 is a block diagram.

【図3】初期化時のEEPROMの記憶エリアを示す図FIG. 3 is a diagram showing a storage area of an EEPROM at initialization.

【図4】異なる状態のEEPROMの記憶エリアを示す
FIG. 4 is a diagram showing storage areas of an EEPROM in different states.

【図5】異なる状態のEEPROMの記憶エリアを示す
FIG. 5 is a diagram showing storage areas of the EEPROM in different states.

【図6】異なる状態のEEPROMの記憶エリアを示す
FIG. 6 is a diagram showing storage areas of an EEPROM in different states.

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

1はマイクロプロセッサ(検索手段、データ書込み手
段、識別子書込み手段)、2はROM、3はI/O回
路、4はRAM、5はEEPROMを示す。
Reference numeral 1 is a microprocessor (search means, data writing means, identifier writing means), 2 is a ROM, 3 is an I / O circuit, 4 is a RAM, and 5 is an EEPROM.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データを書き替え可能であって電源オフ
時にも書込まれたデータを記憶保持しているEEPRO
Mを備えて成るデータ処理装置において、 前記EEPROMの記憶エリアを複数の区分記憶エリア
に区分し、 これら複数の区分記憶エリアにデータを書込む場合、前
回データを書込んだ区分記憶エリアの次の区分記憶エリ
アに今回のデータを書込むようにすると共に、前回デー
タを書込んだ区分記憶エリアが最後尾の区分記憶エリア
であるときには、先頭の区分記憶エリアに今回のデータ
を書込むようにすることを特徴とするデータ処理装置。
1. An EEPRO capable of rewriting data and storing and holding the written data even when the power is turned off.
In a data processing device comprising M, when the storage area of the EEPROM is divided into a plurality of divided storage areas and data is written in these divided storage areas, the data is written next to the divided storage area in which the data was written last time. Write the current data to the partitioned storage area, and if the partitioned storage area where the previous data was written is the final partitioned storage area, write the current data to the leading partitioned storage area A data processing device characterized by the above.
【請求項2】 データを書き替え可能であって電源オフ
時にも書込まれたデータを記憶保持しているEEPRO
Mを備えて成るデータ処理装置において、 前記EEPROMの記憶エリアを複数の区分記憶エリア
に区分し、 先頭の区分記憶エリアから順次その区分記憶エリアに、
データ書込み予定用の区分記憶エリアであることを示す
識別子が書込まれているか否かをサーチして、前記複数
の区分記憶エリアの中から今回データを書込むための区
分記憶エリアを検索する検索手段と、 検索された区分記憶エリアにデータを書込むデータ書込
み手段と、 データが書込まれた区分記憶エリアの次の区分記憶エリ
ア、又は、データが書込まれた区分記憶エリアが最後尾
の区分記憶エリアであるときには先頭の区分記憶エリア
に、前記識別子を書込む識別子書込み手段とを備えたこ
とを特徴とするデータ処理装置。
2. An EEPRO capable of rewriting data and storing and holding the written data even when the power is turned off.
In a data processing device comprising M, the storage area of the EEPROM is divided into a plurality of divided storage areas, and the divided storage area at the beginning is sequentially divided into the divided storage areas,
A search for searching a section storage area for writing data this time by searching whether or not an identifier indicating that it is a section storage area for data writing is written. Means, a data writing means for writing data to the searched partitioned storage area, a partitioned storage area next to the partitioned storage area in which the data is written, or a partitioned storage area in which the data is written is at the end. A data processing device, characterized in that when it is a partitioned storage area, it is provided with an identifier writing means for writing the identifier in the leading partitioned storage area.
【請求項3】 初期化時において、前記EEPROMの
先頭の区分記憶エリア又はすべての区分アリアに前記識
別子を書込むことを特徴とする請求項2記載のデータ処
理装置。
3. The data processing device according to claim 2, wherein the identifier is written in a head storage area or all the partition areas of the EEPROM at the time of initialization.
【請求項4】 前記EEPROMの全区分記憶エリアに
対する各書込み回数をすべてカウントするカウンタを備
えたことを特徴とする請求項2記載のデータ処理装置。
4. The data processing apparatus according to claim 2, further comprising a counter that counts all the number of times of writing in all the divided storage areas of the EEPROM.
JP24430793A 1993-09-30 1993-09-30 Data processor Pending JPH0798992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24430793A JPH0798992A (en) 1993-09-30 1993-09-30 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24430793A JPH0798992A (en) 1993-09-30 1993-09-30 Data processor

Publications (1)

Publication Number Publication Date
JPH0798992A true JPH0798992A (en) 1995-04-11

Family

ID=17116795

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24430793A Pending JPH0798992A (en) 1993-09-30 1993-09-30 Data processor

Country Status (1)

Country Link
JP (1) JPH0798992A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10320296A (en) * 1997-05-16 1998-12-04 Nec Corp Storage device
JP2006313411A (en) * 2005-05-06 2006-11-16 Yokogawa Electric Corp Control method and control device for flash memory
JP4678966B2 (en) * 2001-03-06 2011-04-27 三菱電機株式会社 Data processing method at power failure and power recovery
US8065473B2 (en) 2004-06-21 2011-11-22 Kabushiki Kaisha Toshiba Method for controlling memory card and method for controlling nonvolatile semiconductor memory

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10320296A (en) * 1997-05-16 1998-12-04 Nec Corp Storage device
JP4678966B2 (en) * 2001-03-06 2011-04-27 三菱電機株式会社 Data processing method at power failure and power recovery
US8065473B2 (en) 2004-06-21 2011-11-22 Kabushiki Kaisha Toshiba Method for controlling memory card and method for controlling nonvolatile semiconductor memory
US8180956B2 (en) 2004-06-21 2012-05-15 Kabushiki Kaisha Toshiba Method for controlling memory card and method for controlling nonvolatile semiconductor memory
JP2006313411A (en) * 2005-05-06 2006-11-16 Yokogawa Electric Corp Control method and control device for flash memory

Similar Documents

Publication Publication Date Title
US6526474B1 (en) Content addressable memory (CAM) with accesses to multiple CAM arrays used to generate result for various matching sizes
JPH03250499A (en) Data storage circuit
JPH0798992A (en) Data processor
KR910015999A (en) Semiconductor memory device
JPS6373333A (en) Instruction prefetching apparatus for digital computer system
US20030236955A1 (en) Fast aging scheme for search engine databases using a linear feedback shift register
JPH05274219A (en) Storage device
JPS62137799A (en) Method and system for memory allowed address contents
JP2723038B2 (en) Method of storing data in storage device
JPH04357519A (en) Memory device
SU624296A1 (en) Associative storage
KR100355169B1 (en) Content addressable memory and method of searching content addressable memory for data
JPH0744451A (en) Data storage device
SU1485255A1 (en) Buffer memory addressing unit
JP2953552B2 (en) Non-volatile memory write control method
JPH05342063A (en) Tracer circuit
JP3370222B2 (en) Sequencer
JPH0383147A (en) Semiconductor recorder
SU536524A1 (en) Memory device
JPH01213899A (en) Data keeping system
SU1035641A2 (en) Domain-type memory having random access capability
SU1520547A1 (en) Device for searching for information in memory
SU813507A2 (en) Self-checking associative storage
JPH06139793A (en) Digital recorder
JPH05290568A (en) Memory ic