JPH09297714A - Data backup method and device - Google Patents

Data backup method and device

Info

Publication number
JPH09297714A
JPH09297714A JP8111401A JP11140196A JPH09297714A JP H09297714 A JPH09297714 A JP H09297714A JP 8111401 A JP8111401 A JP 8111401A JP 11140196 A JP11140196 A JP 11140196A JP H09297714 A JPH09297714 A JP H09297714A
Authority
JP
Japan
Prior art keywords
data
eeprom
power
power supply
backup
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
JP8111401A
Other languages
Japanese (ja)
Inventor
Kazuo Sato
一男 佐藤
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP8111401A priority Critical patent/JPH09297714A/en
Publication of JPH09297714A publication Critical patent/JPH09297714A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

(57)【要約】 【課題】 データのバックアップを、バックアップ電源
のメインテナンスをなくして安価に行なう。 【解決手段】 電源1が遮断されると、それが電源遮断
検出回路2で検出されCPU4に伝えられるとともに、
電源遮断ディレイ3により、EEPROM5へのデータ
書き込み終了までの数msの間CPU4とEEPROM
5への電源がバックアップされる。CPU4は電源の遮
断が伝えられると、アドレスとデータとサムを1つのデ
ータパッケージとして、EEPROM5の位置をずらし
ながらEEPROM5にバックアップデータを書き込
む。電源1の投入時、CPU4はEEPROM5の全デ
ータを入力し、サムが所定のルールと一致しているデー
タパッケージのデータのうち、アドレスから判断して最
近のデータをバックアップデータとして選択する。
(57) [Abstract] [PROBLEMS] To back up data at low cost without maintenance of a backup power supply. SOLUTION: When the power supply 1 is cut off, it is detected by a power supply cutoff detection circuit 2 and transmitted to a CPU 4, and
The power cut-off delay 3 causes the CPU 4 and the EEPROM to wait for several ms until the data writing to the EEPROM 5 is completed.
Power to 5 is backed up. When the CPU 4 is informed that the power supply is cut off, the backup data is written in the EEPROM 5 while shifting the position of the EEPROM 5 by using the address, the data and the sum as one data package. When the power supply 1 is turned on, the CPU 4 inputs all the data of the EEPROM 5, and selects the latest data as the backup data, judging from the address among the data of the data package whose sum matches the predetermined rule.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、電源遮断時にデー
タをバックアップするデータバックアップ方法および装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data backup method and device for backing up data when power is cut off.

【0002】[0002]

【従来の技術】図3は従来のデータバックアップ装置の
構成図である。電源1の遮断が電源遮断検出回路2で検
出されると、電源選択回路7により電源1からバッテリ
等のバックアップ電源6に切換えられ、CPU8とRA
M9にバックアップ電源6から電源が供給される。電源
の遮断検出はCPU8にも伝えられ、CPU8よりRA
M9にデータがバックアップされる。
2. Description of the Related Art FIG. 3 is a block diagram of a conventional data backup device. When the cutoff of the power supply 1 is detected by the power cutoff detection circuit 2, the power supply selection circuit 7 switches the power supply 1 to the backup power supply 6 such as a battery, and the CPU 8 and RA
Power is supplied to the M9 from the backup power supply 6. The power-off detection is also transmitted to the CPU 8, and the CPU 8 sends RA
The data is backed up in M9.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のデータ
バックアップ装置は、バッテリ等によるバックアップ電
源を用いているため、メンテナンスが必要で、コストも
かかるという問題があった。本発明の目的は、バックア
ップ電源のメンテナンスが不用で、安価なデータバック
アップ方法および装置を提供することにある。
The above-mentioned conventional data backup device uses a backup power source such as a battery, and therefore has a problem that maintenance is required and cost is increased. An object of the present invention is to provide an inexpensive data backup method and device that does not require maintenance of a backup power supply.

【0004】[0004]

【課題を解決するための手段】本発明のデータバックア
ップ方法は、電源の遮断毎に、データ、該データの識別
情報およびチェックコードからなるデータパッケージを
書き込み位置をずらしながらEEPROMに書き込み、
電源投入時に、前記EEPROMの全データを読み出
し、前記チェックコードが所定のルールに一致するデー
タパッケージのデータのうち、前記識別情報より判断さ
れる最近のデータをバックアップデータとして選択す
る。また、本発明のデータバックアップ装置は、EEP
ROMと、電源が遮断されたことを検出する電源遮断検
出手段と、制御手段と、前記電源が遮断された後、前記
EEPROMへのデータ書き込み終了までの間、前記E
EPROMと前記制御手段に電源を供給する電源遮断デ
ィレイとを有し、前記制御手段は、前記電源遮断検出手
段によって電源遮断の通知を受ける毎に、データ、該デ
ータの識別情報およびチェックコードからなるデータパ
ッケージを書き込み位置をずらしながら前記EEPRO
Mに書き込み、前記電源の投入時に、前記EEPROM
の全データを読み出し、前記チェックコードが所定のル
ールに一致するデータパッケージのデータのうち、前記
識別情報より判断される最近データをバックアップデー
タとして選択する。
A data backup method of the present invention writes a data package consisting of data, identification information of the data and a check code to an EEPROM while shifting a writing position each time the power is cut off.
When the power is turned on, all the data in the EEPROM is read out, and the latest data judged from the identification information is selected as the backup data from the data in the data package in which the check code matches a predetermined rule. Further, the data backup device of the present invention is an EEP
The ROM, the power cutoff detecting means for detecting that the power is cut off, the control means, and the E until the data writing to the EEPROM is completed after the power is cut off.
An EPROM and a power shutoff delay for supplying power to the control means are provided, and the control means includes data, identification information of the data, and a check code each time the power shutoff detection means notifies the power shutoff. The EEPRO while shifting the writing position of the data package
Writing to M, when the power is turned on, the EEPROM
Of the data package of which the check code matches a predetermined rule, the most recent data judged from the identification information is selected as backup data.

【0005】EEPROM(書き込み時のみ電源が必
要)を使用することにより、バックアップ電源のメンテ
ナンスが不用で、コストも安くなり、またEEPROM
の書き込み位置をずらしながらデータのバックアップを
行うことにより、EEPROMを半永久的に使用でき
る。
By using the EEPROM (the power supply is required only for writing), maintenance of the backup power supply is unnecessary, the cost is reduced, and the EEPROM is also used.
By backing up the data while shifting the writing position of, the EEPROM can be used semipermanently.

【0006】[0006]

【発明の実施の形態】次に、本発明の実施形態について
図面を参照して説明する。図1は本発明の一実施形態の
データバックアップ装置の構成図、図2はEEPROM
の書き込みデータのフォーマットを示す図である。本実
施形態のデータバックアップ装置は、図1に示すよう
に、電源1と電源遮断検出回路2とキャパシタ等の電源
遮断ディレイ3とCPU4とEEPROM5で構成され
ている。次に、本実施形態の動作を説明する。電源1が
遮断されると、それが電源遮断検出回路2で検出されC
PU4に伝えられるとともに、電源遮断ディレイ3によ
り、EEPROM5へのデータ書き込み終了までの数m
sの間CPU4とEEPROM5への電源がバックアッ
プされる。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a data backup device according to an embodiment of the present invention, and FIG. 2 is an EEPROM.
It is a figure which shows the format of the write data of. As shown in FIG. 1, the data backup device according to the present embodiment includes a power supply 1, a power cutoff detection circuit 2, a power cutoff delay 3 such as a capacitor, a CPU 4, and an EEPROM 5. Next, the operation of this embodiment will be described. When the power supply 1 is cut off, it is detected by the power supply cutoff detection circuit 2 and C
It is transmitted to the PU 4 and the power shutoff delay 3 causes the data writing to the EEPROM 5 to be completed by several meters.
During s, the power supply to the CPU 4 and the EEPROM 5 is backed up.

【0007】CPU4は電源の遮断が伝えられると、図
2に示すように、識別情報であるアドレス10とデータ
11とチェックコードであるサム12を1つのデータパ
ッケージとして、EEPROM5の位置をずらしながら
EEPROM5にバックアップデータを書き込む。ここ
で,アドレス10は、1つのデータパッケージを他のデ
ータパッケージと区別するためのもので、例えば0、
1、2、…と昇順に番号が与えられ、最大値まで達する
と、次からまた0、1、2、…と番号が与えられる。サ
ム12はデータパッケージのチェックコードで、一例と
してデータ11,アドレス10,サム12の全バイトを
加算したとき0となるような値が与えられる。これによ
りデータ11の正常/異常を検出できる。電源1の投入
時、CPU4はEEPROM5の全データを入力し、サ
ム12が所定のルールと一致しているデータパッケージ
のデータ11のうち、アドレス10から判断して最近の
データをバックアップデータとして選択する。例えばア
ドレスが0、1、2、... 、31と連続しているとす
ると、アドレス”31”を持つデータが最近のデータと
なる。また、アドレスが254、255、0、...、2
9と連続しているとすると、アドレス”29”を持つデ
ータが最近のデータとなる。
When the CPU 4 is notified that the power supply has been cut off, as shown in FIG. 2, the EEPROM 5 is arranged while shifting the position of the EEPROM 5 by using the address 10 as the identification information, the data 11 and the sum 12 as the check code as one data package. Write backup data to. Here, the address 10 is for distinguishing one data package from other data packages, for example, 0,
The numbers are given in ascending order of 1, 2, ..., When the maximum value is reached, the numbers are given again from 0, 1, 2 ,. The sum 12 is a check code of the data package, and as an example, a value that gives 0 when the data 11, address 10, and all bytes of the sum 12 are added is given. Thereby, the normality / abnormality of the data 11 can be detected. When the power supply 1 is turned on, the CPU 4 inputs all the data of the EEPROM 5, and judges from the address 10 among the data 11 of the data package in which the thumb 12 matches the predetermined rule, and selects the latest data as the backup data. . For example, if the addresses are consecutive 0, 1, 2, ..., 31, the data having the address “31” becomes the latest data. Also, the addresses are 254, 255, 0, ..., 2
If it is consecutive with 9, the data having the address "29" becomes the latest data.

【0008】EEPROM5が例えば256バイトで、
10万回書き込み可能なものでは、アドレス10とデー
タ11とサム12の1パッケージデータが8バイトとす
ると、(256/8)×10万回=320万回書き込み
できて、ほぼ半永久的にEEPROM5を使用できる。
The EEPROM 5 has, for example, 256 bytes,
In the case of 100,000 times writable, if each package data of address 10, data 11 and sum 12 is 8 bytes, (256/8) × 100,000 times = 3.2 million times can be written, and the EEPROM 5 is almost semipermanently written. Can be used.

【0009】[0009]

【発明の効果】以上説明したように、本発明は、EEP
ROMを使用することにより、バックアップ電源のメイ
ンテナンスが不用で、コストも安くなり、またEEPR
OMの書き込み位置をずらしながらデータのバックアッ
プを行うことにより、EEPROMを半永久的に使用で
きるという効果がある。
As described above, the present invention is based on the EEP
By using the ROM, maintenance of the backup power supply is unnecessary, the cost is low, and the EEPR
By backing up the data while shifting the writing position of the OM, the EEPROM can be used semipermanently.

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

【図1】本発明の一実施形態のデータバックアップ装置
の構成図である。
FIG. 1 is a configuration diagram of a data backup device according to an embodiment of the present invention.

【図2】EEPROM5の書き込みフォーマットを示す
図である。
FIG. 2 is a diagram showing a writing format of an EEPROM 5.

【図3】データバックアップ装置の従来例の構成図であ
る。
FIG. 3 is a configuration diagram of a conventional example of a data backup device.

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

1 電源 2 電源遮断検出回路 3 電源遮断ディレイ 4 CPU 5 EEPROM 6 バックアップ電源 7 電源選択回路 8 CPU 9 RAM 10 アドレス 11 データ 12 サム 1 power supply 2 power cutoff detection circuit 3 power cutoff delay 4 CPU 5 EEPROM 6 backup power supply 7 power supply selection circuit 8 CPU 9 RAM 10 address 11 data 12 sum

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 電源の遮断毎に、データ、該データの識
別情報およびチェックコードからなるデータパッケージ
を書き込み位置をずらしながらEEPROMに書き込
み、 電源投入時に、前記EEPROMの全データを読み出
し、前記チェックコードが所定のルールに一致するデー
タパッケージのデータのうち、前記識別情報より判断さ
れる最近のデータをバックアップデータとして選択する
データバックアップ方法。
1. Each time the power is turned off, a data package consisting of data, identification information of the data, and a check code is written to the EEPROM while the writing position is shifted, and when the power is turned on, all the data in the EEPROM is read and the check code is written. Among the data of the data package which matches the predetermined rule, the latest data judged from the identification information is selected as the backup data.
【請求項2】 EEPROMと、 電源が遮断されたことを検出する電源遮断検出手段と、 制御手段と、 前記電源が遮断された後、前記EEPROMへのデータ
書き込み終了までの間、前記EEPROMと前記制御手
段に電源を供給する電源遮断ディレイとを有し、 前記制御手段は、前記電源遮断検出手段によって電源遮
断の通知を受ける毎に、データ、該データの識別情報お
よびチェックコードからなるデータパッケージを書き込
み位置をずらしながら前記EEPROMに書き込み、前
記電源の投入時に、前記EEPROMの全データを読み
出し、前記チェックコードが所定のルールに一致するデ
ータパッケージのデータのうち、前記識別情報より判断
される最近のデータをバックアップデータとして選択す
るデータバックアップ装置。
2. An EEPROM, a power interruption detection means for detecting that the power is cut off, a control means, and the EEPROM and the EEPROM until the end of data writing to the EEPROM after the power is cut off. A power cutoff delay for supplying power to the control means, and the control means generates a data package including data, identification information of the data, and a check code each time the power cutoff detection means notifies the power cutoff. The data is written in the EEPROM while shifting the writing position, all the data in the EEPROM is read out when the power is turned on, and the latest data judged from the identification information among the data in the data package in which the check code matches a predetermined rule. A data backup device that selects data as backup data.
JP8111401A 1996-05-02 1996-05-02 Data backup method and device Pending JPH09297714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8111401A JPH09297714A (en) 1996-05-02 1996-05-02 Data backup method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8111401A JPH09297714A (en) 1996-05-02 1996-05-02 Data backup method and device

Publications (1)

Publication Number Publication Date
JPH09297714A true JPH09297714A (en) 1997-11-18

Family

ID=14560224

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8111401A Pending JPH09297714A (en) 1996-05-02 1996-05-02 Data backup method and device

Country Status (1)

Country Link
JP (1) JPH09297714A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007199977A (en) * 2006-01-26 2007-08-09 Yokogawa Denshikiki Co Ltd Data storage device and data storage method
JP2014075078A (en) * 2012-10-05 2014-04-24 Denso Corp Electronic control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007199977A (en) * 2006-01-26 2007-08-09 Yokogawa Denshikiki Co Ltd Data storage device and data storage method
JP2014075078A (en) * 2012-10-05 2014-04-24 Denso Corp Electronic control device

Similar Documents

Publication Publication Date Title
EP1843358B1 (en) Control method of a non-volatile memory apparatus
EP0486304B1 (en) Initialising computer systems
KR100378224B1 (en) Ic card
KR950003999A (en) Information processing systems
JP2002062956A (en) Service interruption processing method and service interruption processing device
JPH09297714A (en) Data backup method and device
NL8401557A (en) CALCULATOR SYSTEM WITH REMOVED WORK STATIONS AND SPARE BATTERY POWER.
JPS5856165A (en) Record update system
JP2000146765A (en) Vehicle electronic control unit
JPH0126086B2 (en)
US7366970B2 (en) Method and test device for detecting addressing errors in control units
JPS63268085A (en) Portable memory medium reading and writing device
KR950012065B1 (en) Restart System and Method Using Nonvolatile Memory
JPH05265881A (en) Write protecting circuit of and write protecting method for non-volatile memory
JP2755065B2 (en) Information processing device
KR100264550B1 (en) Abnormal state detection system and method thereof for power input terminal and voltage regulator of memory
JPH1011365A (en) Non-volatile storage device protection circuit
KR100284044B1 (en) Abnormal operation recovery method of functional devices with relation
JPH09103035A (en) Power interruption detection method and device
JP2757841B2 (en) Radio selective call receiver
JPH04293139A (en) Data holding method
JPH0361568A (en) Count value storage method
JPH04152488A (en) IC card
JPH0736631A (en) Storage device
JPH0341538A (en) Main storage device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060306

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060306

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060510