JPH04287143A - Data storage device - Google Patents

Data storage device

Info

Publication number
JPH04287143A
JPH04287143A JP3077029A JP7702991A JPH04287143A JP H04287143 A JPH04287143 A JP H04287143A JP 3077029 A JP3077029 A JP 3077029A JP 7702991 A JP7702991 A JP 7702991A JP H04287143 A JPH04287143 A JP H04287143A
Authority
JP
Japan
Prior art keywords
data
volatile memory
cpu
write
area
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.)
Withdrawn
Application number
JP3077029A
Other languages
Japanese (ja)
Inventor
Mitsuru Seta
満 瀬田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3077029A priority Critical patent/JPH04287143A/en
Publication of JPH04287143A publication Critical patent/JPH04287143A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To enable backup without losing a latest data by generating an alarm signal by backing up the data in another non-volatile memory when write from a CPU reaches the limited number of times. CONSTITUTION:Normally, a data (system parameter) to be stored and the number of times for write are stored in respective areas 4 and 5 of a first non- volatile memory 1 by a CPU 3. When it is detected that the number of times for write read out from the write time number area 5 of the non-volatile memory 1 reaches the limited number of times, the data is written in a second non-volatile memory 2 and it is reported to an outside operator by generating the alarm signal that the exchange of the first non-volatile memory is required. Therefore, the latest data is held in the non-volatile memory 2 in place of the non-volatile memory 1. Further, when the non-volatile memory 1 for data storage is exchanged, the write is returned to be original.

Description

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

【0001】0001

【産業上の利用分野】本発明は、データ記憶装置に関し
、特に不揮発性メモリにデータを記憶する装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to data storage devices, and more particularly to devices for storing data in non-volatile memory.

【0002】多重伝送装置等は装置内の電源立ち上げ時
などの種々のシステムパラメータとしてのデータを記憶
しておく必要があり、これらのデ−タは装置の電源が切
れている状態でも保存する必要がある。
[0002] Multiplex transmission equipment etc. need to store data as various system parameters such as when power is turned on within the equipment, and these data are saved even when the power to the equipment is turned off. There is a need.

【0003】電源断時等においてもデータを保存するた
めの不揮発性メモリとしては一般的にEEPROM(E
lectrically Erasable and 
Programmable Read Only Me
mory)が用いられるが、一般にEEPROMは電気
的書込の回数に比例して劣化が起こる。これは、EEP
ROMを構成する二酸化シリコンの絶縁層の中に欠陥が
存在し、“1”から“0”、“1”から“0”とデ−タ
の書込が行われる回数に比例して二酸化シリコンの絶縁
層に電子の注入が進行し、書込回数が例えば1万回程度
になるとキャリアの移動度が低下して最終的には常時電
流が流れる状態になり、デ−タ的には常に“0”になっ
てしまうからである。
EEPROM (EEPROM) is generally used as a non-volatile memory to save data even when the power is turned off.
Electrically Erasable and
Programmable Read Only Me
Generally, EEPROM deteriorates in proportion to the number of electrical writes. This is EEP
There are defects in the silicon dioxide insulating layer that makes up the ROM, and the silicon dioxide is damaged in proportion to the number of times data is written from "1" to "0" and from "1" to "0". As electron injection progresses into the insulating layer and the number of writes reaches, say, 10,000 times, carrier mobility decreases and eventually a state is reached where current flows constantly, and the data is always "0". ”.

【0004】従って、データを保管するに当たっては、
このようなEEPROMの書込回数を常に監視しながら
行う必要がある。
[0004] Therefore, when storing data,
It is necessary to constantly monitor the number of times the EEPROM is written.

【0005】[0005]

【従来の技術】図3(a) は、EEPROMを用いた
従来のデータ記憶装置を示したもので、1つのEEPR
OM1とCPU3とで構成され、その動作は同図(b)
 に示すように、CPU3はまず、EEPROM1への
書込要求が発生すると(同ステップS1)、EEPRO
M1に設けた書込回数領域から現在の書込回数(最初の
書込の時点では“0”)を読み出し(同S2)、これが
制限回数未満であるか否かを判定する(同S3)。
2. Description of the Related Art FIG. 3(a) shows a conventional data storage device using an EEPROM.
It is composed of OM1 and CPU3, and its operation is shown in the same figure (b).
As shown in FIG.
The current number of writes ("0" at the time of the first write) is read from the write number area provided in M1 (S2), and it is determined whether this is less than the limit number of times (S3).

【0006】この判定の結果、制限回数未満であると判
定されたときには、EEPROM1のデータ領域へデー
タを書き込むと共に上記に読み出した書込回数を“1”
だけインクリメントした書込回数を書込回数領域に書き
込む(同S4)。
As a result of this determination, if it is determined that the number of times is less than the limit, data is written to the data area of EEPROM1 and the number of times of writing read out above is set to "1".
The write count incremented by 1 is written in the write count area (S4).

【0007】一方、ステップS3での判定の結果、制限
回数を越えていると判定されたときには、CPU3に接
続されている外部装置へ『書込制限回数オーバーアラー
ム』を通報する(同S50)。これにより、この通報を
聞いたオペレータはEEPROM1が寿命になったと判
断してEEPROM1を交換するなどの処置を行うこと
となる。
On the other hand, as a result of the determination in step S3, if it is determined that the limit number of times has been exceeded, a ``write limit number of times exceeded alarm'' is reported to an external device connected to the CPU 3 (step S50). As a result, the operator who hears this notification determines that the EEPROM 1 has reached the end of its service life and takes measures such as replacing the EEPROM 1.

【0008】[0008]

【発明が解決しようとする課題】このように従来のデー
タ記憶装置においては、不揮発性メモリとしてのEEP
ROMがその制限回数に達して寿命になったと判定され
たときには、新しいEEPROMと交換されるため、こ
の交換時においては新しいEEPROMにはデータが何
も書かれておらず最新のデータが失われてしまい、不揮
発性メモリというEEPROM本来の使用目的を達成で
きなくなるという問題点があった。
Problems to be Solved by the Invention As described above, in conventional data storage devices, EEP as a non-volatile memory
When the ROM reaches its limit and is judged to have reached the end of its lifespan, it is replaced with a new EEPROM, so at the time of replacement, no data is written to the new EEPROM and the latest data is lost. Therefore, there was a problem in that the original purpose of EEPROM, which is a non-volatile memory, could not be achieved.

【0009】従って、本発明は、不揮発性メモリの書込
回数が制限回数に達した場合でも最新のデータを保持で
きるデータ記憶装置を実現することを目的とする。
Accordingly, an object of the present invention is to realize a data storage device that can retain the latest data even when the number of writes to a nonvolatile memory reaches the limit number of times.

【0010】0010

【課題を解決するための手段】図1は、上記の目的を達
成するための本発明に係るデータ記憶装置の原理説明図
で、同図(a) は回路構成を、(b) は処理シーケ
ンスを示しており、1は通常時にシステムパラメータと
してのデータを記憶しておくための第1の不揮発性メモ
リでありデータ領域4とデータ書込回数領域5とを有し
ている。 また、2は第1の不揮発性メモリ1に対するバックアッ
プ用の第2の不揮発性メモリであり、データ領域6と必
要に応じて用いられるアラーム用領域7とを有している
。3はこれらの不揮発性メモリ1及び2にデータ書込等
の制御を行うと共に必要に応じてアラーム信号を発生す
るためのCPUである。
[Means for Solving the Problems] Fig. 1 is a diagram explaining the principle of a data storage device according to the present invention for achieving the above object, in which (a) shows the circuit configuration, and (b) shows the processing sequence. 1, a first non-volatile memory 1 is used to store data as system parameters during normal operation, and has a data area 4 and a data writing frequency area 5. Further, 2 is a second non-volatile memory for backup to the first non-volatile memory 1, and has a data area 6 and an alarm area 7 used as necessary. Reference numeral 3 denotes a CPU for controlling data writing to these nonvolatile memories 1 and 2, and for generating an alarm signal as necessary.

【0011】[0011]

【作用】本発明の動作を図1(b) により説明すると
、通常は、従来の場合と同様に記憶すべきデータ(シス
テムパラメータ)及び書込回数を第1の不揮発性メモリ
1におけるそれぞれの領域4及び5に書き込む(同図ス
テップS1〜S4)。
[Operation] The operation of the present invention will be explained with reference to FIG. 4 and 5 (steps S1 to S4 in the figure).

【0012】そして、不揮発性メモリ1の書込回数領域
5から読み出した書込回数が制限回数に達したことを検
出した場合(同S3)には、第2の不揮発性メモリ2に
データ(システムパラメータ)を書き込む(同S5)と
共にアラーム信号を発生して外部のオペレータに第1の
不揮発性メモリ1の交換が必要であることを通報する。
[0012] When it is detected that the number of writes read from the write number area 5 of the non-volatile memory 1 has reached the limit number (S3), data (system data) is stored in the second non-volatile memory 2. At the same time, an alarm signal is generated to notify an external operator that the first nonvolatile memory 1 needs to be replaced.

【0013】これにより、最新のデータは不揮発性メモ
リ1に代わって不揮発性メモリ2に保持されることとな
る。
[0013] As a result, the latest data is held in the nonvolatile memory 2 instead of the nonvolatile memory 1.

【0014】また、本発明では、第2の不揮発性メモリ
2にデータを書き込むと同時に、『制限回数オーバーア
ラーム』を不揮発性メモリ2のアラーム用領域7に記憶
することができる。これにより、CPU3は電源立ち上
げ時等において不揮発性メモリ2におけるアラーム用領
域7の『制限回数オーバーアラーム』を参照していずれ
の不揮発性メモリから、データ(システムパラメータ)
を読みだすべきか、そして書込ができるかを判定するこ
とができる。尚、この『制限回数オーバーアラーム』は
第1の不揮発性メモリ1が交換されたことをCPU3が
知った時点でリセットされるものである。
Furthermore, in the present invention, at the same time as writing data to the second non-volatile memory 2, a "limit number of times exceeded alarm" can be stored in the alarm area 7 of the non-volatile memory 2. As a result, the CPU 3 refers to the "limit number of times exceeded alarm" in the alarm area 7 of the non-volatile memory 2 when turning on the power, etc., and retrieves data (system parameters) from any non-volatile memory.
It is possible to determine whether the data should be read or whether it can be written. Note that this "limit number of times exceeded alarm" is reset when the CPU 3 learns that the first nonvolatile memory 1 has been replaced.

【0015】[0015]

【実施例】図2は、図1(a) に示した本発明に係る
データ記憶装置の処理動作の一実施例を示したフローチ
ャートであり、以下、図2(a) を参照して説明する
。尚、本発明では第1及び第2の不揮発性メモリとして
共にEEPROM1,2を用いている。
[Embodiment] FIG. 2 is a flowchart showing an embodiment of the processing operation of the data storage device according to the present invention shown in FIG. 1(a), and will be explained below with reference to FIG. 2(a). . In the present invention, EEPROMs 1 and 2 are used as both the first and second nonvolatile memories.

【0016】まず、装置の初期立ち上げ時には、EEP
ROM1又は2のどちらに本来のデータ(システムパラ
メータ)が記憶されているかわからないため、まずEE
PROM2内のアラーム用領域7を読み出す(同図ステ
ップT1)。
First, at the initial startup of the device, the EEP
Since it is not known whether the original data (system parameters) is stored in ROM1 or ROM2, first
The alarm area 7 in the PROM 2 is read (step T1 in the figure).

【0017】このとき、『制限回数オーバーアラーム』
が立っていない場合には、EEPROM1は寿命期間内
に在るのでEEPROM1のデータ領域4からデータを
読み出してCPU3に接続された各種の装置(図示せず
)内にそのパラメータを設定する(同T2)。
[0017] At this time, "limit number of times exceeded alarm"
If it is not set, the EEPROM 1 is within its lifespan, so the data is read from the data area 4 of the EEPROM 1 and its parameters are set in various devices (not shown) connected to the CPU 3. ).

【0018】ステップT1において、『制限回数オーバ
ーアラーム』が立っていた場合には、EEPROM1は
寿命により書込できないと判断して今度はEEPROM
2のデータ領域6からデータを読み出し、そのパラメー
タを同様に各装置内に設定する(同T3)。
In step T1, if the "limit number of times exceeded alarm" is set, it is determined that EEPROM 1 cannot be written to due to its lifespan, and the EEPROM is
The data is read from the data area 6 of No. 2, and its parameters are similarly set in each device (T3 of the same).

【0019】但し、このときには、EEPROM1が交
換されている可能性があるので、EEPROM1内の書
込回数領域5を読み出し(同T4)、それが制限回数に
一致しているか否かを判定し(同T5)、その結果、一
致していたときには、EEPROM1がまだ新しいもの
と交換されていないと判断して、特に処理は行わずに通
常の運用ステップS1に進むが、書込回数が制限回数と
一致していなかったときには、EEPROM1が新しい
ものに交換されたと判断して、先にEEPROM2から
読み出したデータと『書込回数=1』という内容をEE
PROM1のデータ領域4と書込回数領域5とにそれぞ
れ書き込むと共に、EEPROM2のアラーム用領域7
内の『制限回数オーバーアラーム』をリセットして(同
T6)、通常の運用ステップS1へ進む。。
However, at this time, there is a possibility that the EEPROM 1 has been replaced, so the write count area 5 in the EEPROM 1 is read (T4) and it is determined whether or not it matches the limit number of times ( T5), if the result is a match, it is determined that the EEPROM 1 has not been replaced with a new one, and the process proceeds to normal operation step S1 without performing any special processing, but the number of writes exceeds the limit. If they do not match, it is determined that EEPROM 1 has been replaced with a new one, and the data previously read from EEPROM 2 and the content ``number of writes = 1'' are stored in the EE.
Write to the data area 4 and write count area 5 of PROM1, and write to the alarm area 7 of EEPROM2.
The "limit number of times exceeded alarm" is reset (T6), and the process proceeds to normal operation step S1. .

【0020】ステップS1に進んで運用動作に移ると、
EEPROM1又は2への書込要求が発生した場合、ま
ずEEPROM1内の書込回数領域5を読み出し(同S
1)、それが制限回数未満であれば(同S3)、データ
(システムパラメータ)と『書込回数+1』をそれぞれ
EEPROM1のデータ領域4と書込回数領域5とに書
込む(同S4)。
[0020] Proceeding to step S1 and proceeding to operational operation,
When a write request to EEPROM1 or 2 occurs, first read the write count area 5 in EEPROM1 (the S
1) If the number of times is less than the limit (S3), data (system parameters) and "number of writes +1" are written in the data area 4 and number of writes area 5 of the EEPROM 1, respectively (S4).

【0021】一方、ステップS3において制限回数と一
致していれば、EEPROM1の代わりにEEPROM
2にデータ(システムパラメータ)をデータ領域6に書
き込んでアラーム信号を外部装置に通報すると共に、『
制限回数オーバーアラーム』のフラグをアラーム用領域
7に立てる(同S5)。
On the other hand, if the number of times matches the limit in step S3, EEPROM1 is used instead of EEPROM1.
2 writes data (system parameters) to data area 6 and reports an alarm signal to an external device.
A flag for "limit number of times exceeded alarm" is set in the alarm area 7 (S5).

【0022】そして、オペレータは、このアラーム信号
を聞いて電源を断にした後、EEPROM1を交換して
装置を立上げる。この後は、上記のステップT1に進む
ことになる。
After hearing this alarm signal, the operator turns off the power, replaces the EEPROM 1, and starts up the apparatus. After this, the process will proceed to step T1 described above.

【0023】[0023]

【発明の効果】以上説明したように、本発明に係るデー
タ記憶装置によれば、2つの不揮発性メモリを設け、一
方をデータ記憶用として、CPUからの書込が制限回数
に達した時、他方の不揮発性メモリにデータをバックア
ップさせてアラーム信号を発生するように構成し、更に
は該データ記憶用の不揮発性メモリが交換されれば元に
戻すようにも構成したので、最新のデータを喪失するこ
となくバックアップでき、更にデータ記憶用の不揮発性
メモリを適宜交換すれば常に最新のデータがいずれかの
不揮発性メモリに保持できる形となる。
As explained above, according to the data storage device of the present invention, two nonvolatile memories are provided, one of which is used for data storage, and when the number of writes from the CPU reaches the limit number of times, The configuration is configured to back up data to the other non-volatile memory and generate an alarm signal, and is also configured to restore the original data if the non-volatile memory used for data storage is replaced, so the latest data can be restored. It can be backed up without loss, and if the nonvolatile memory for data storage is replaced as appropriate, the latest data can always be held in either nonvolatile memory.

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

【図1】本発明に係るデータ記憶装置の原理説明図であ
る。
FIG. 1 is a diagram explaining the principle of a data storage device according to the present invention.

【図2】本発明に係るデータ記憶装置の処理動作の一実
施例を示したフローチャート図である。
FIG. 2 is a flowchart showing one embodiment of the processing operation of the data storage device according to the present invention.

【図3】従来例の原理説明図である。FIG. 3 is a diagram explaining the principle of a conventional example.

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

1  データ記憶用の第1の不揮発性メモリ(EEPR
OM) 2  バックアップ用の第2の不揮発性メモリ(EEP
ROM) 3  CPU 図中、同一符号は同一又は相当部分を示す。
1 First non-volatile memory for data storage (EEPR
OM) 2 Second non-volatile memory for backup (EEP
ROM) 3 CPU In the diagram, the same reference numerals indicate the same or corresponding parts.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  2つの不揮発性メモリ(1,2) と
CPU(3) とで構成され、第1の不揮発性メモリ(
1) には該CPU(3) によって書き込まれるデー
タ用領域(4) とデータ書込回数用領域(5) を設
けると共に、第2の不揮発性メモリ(2) には該CP
U(3) によって書き込まれるデータ用領域(6) 
を設けておき、該CPU(3) が、該第1の不揮発性
メモリ(1) への書込時にその書込回数を読み出し該
書込回数が制限回数に達したときに該第2の不揮発性メ
モリ(2)へデータを書き込むと共にアラーム信号を発
生することを特徴としたデータ記憶装置。
Claim 1: Consisting of two non-volatile memories (1, 2) and a CPU (3), the first non-volatile memory (
1) is provided with an area (4) for data written by the CPU (3) and an area (5) for the number of data writes, and the second non-volatile memory (2) is provided with an area for data written by the CPU (3).
Data area (6) written by U(3)
The CPU (3) reads the number of writes when writing to the first non-volatile memory (1), and when the number of writes reaches the limit number, reads the number of writes to the second non-volatile memory (1). A data storage device characterized in that it writes data to a digital memory (2) and also generates an alarm signal.
【請求項2】  該第2の不揮発性メモリ(2) には
該CPU(3) によって書き込まれ該第1の不揮発性
メモリ(1) が交換されたときにリセットされる書込
制限回数オーバアラーム用の領域(7) を更に設けて
おき、該CPU(3) が、該アラーム信号を発生する
ときに該アラーム用領域(7) に書込制限回数オーバ
ーアラームを書き込んでおくことを特徴とした請求項1
に記載のデータ記憶装置。
2. A write limit number over alarm written in the second non-volatile memory (2) by the CPU (3) and reset when the first non-volatile memory (1) is replaced. The CPU (3) writes a write limit number over alarm in the alarm area (7) when the CPU (3) generates the alarm signal. Claim 1
A data storage device as described in .
JP3077029A 1991-03-15 1991-03-15 Data storage device Withdrawn JPH04287143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3077029A JPH04287143A (en) 1991-03-15 1991-03-15 Data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3077029A JPH04287143A (en) 1991-03-15 1991-03-15 Data storage device

Publications (1)

Publication Number Publication Date
JPH04287143A true JPH04287143A (en) 1992-10-12

Family

ID=13622324

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3077029A Withdrawn JPH04287143A (en) 1991-03-15 1991-03-15 Data storage device

Country Status (1)

Country Link
JP (1) JPH04287143A (en)

Cited By (3)

* 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
WO2001040951A1 (en) * 1999-12-01 2001-06-07 Fujitsu Limited Recording medium control method, data managing device and recording medium
JP2011248510A (en) * 2010-05-25 2011-12-08 Hitachi Automotive Systems Ltd Electronic control device

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
WO2001040951A1 (en) * 1999-12-01 2001-06-07 Fujitsu Limited Recording medium control method, data managing device and recording medium
US6722572B2 (en) 1999-12-01 2004-04-20 Fujitsu Limited Recording medium control method, data management apparatus, and recording medium
JP2011248510A (en) * 2010-05-25 2011-12-08 Hitachi Automotive Systems Ltd Electronic control device

Similar Documents

Publication Publication Date Title
JPH06290092A (en) File storing device to storage device
CN107817950B (en) Data processing method and device
JPH04287143A (en) Data storage device
JPH11110308A (en) Data backup system in case of power supply cutoff
JP2007087118A (en) Controller and portable terminal
JPS6226119B2 (en)
JP2007156744A (en) Distributed monitoring control system
JP2001350596A (en) Storage device
JPH05265881A (en) Write protecting circuit of and write protecting method for non-volatile memory
JPH01112600A (en) Service life decision device for storage element
JP2004078847A (en) Equipment with memory-switching means
JP2005135260A (en) Method and system for setting product function
JP2001350672A (en) Memory control device and its data processing method
KR20040044023A (en) Apparatus and method for managing data recorded on memory
JPH10228787A (en) Input/output module
JP2006202053A (en) Electronic equipment
JP2007148905A (en) Controller and mobile terminal
CN116072202A (en) Storage device management method, system and storage medium
JP2005332228A (en) Program switching controller
JPH02224044A (en) Program storage device
JP2004287636A (en) Data backup method of nonvolatile memory
JPS6097452A (en) Memory control system
JPH0645987A (en) Portable information equipment
JPH03216048A (en) Redundancy system automatic starting system
JP2012185606A (en) Portable terminal

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514