JPS60243757A - Memory backup system - Google Patents

Memory backup system

Info

Publication number
JPS60243757A
JPS60243757A JP59099537A JP9953784A JPS60243757A JP S60243757 A JPS60243757 A JP S60243757A JP 59099537 A JP59099537 A JP 59099537A JP 9953784 A JP9953784 A JP 9953784A JP S60243757 A JPS60243757 A JP S60243757A
Authority
JP
Japan
Prior art keywords
memory
backup
power supply
data
main memory
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
JP59099537A
Other languages
Japanese (ja)
Inventor
Shinichiro Kawashima
川島 伸一郎
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP59099537A priority Critical patent/JPS60243757A/en
Publication of JPS60243757A publication Critical patent/JPS60243757A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To backup surely a volatile memory against power failure by rewriting data stored in the volatile memory again in a backup memory before power supply voltage drops less than a prescribed value. CONSTITUTION:At the disconnection of a system power supply Vcc, the contents of data written in the backup memory 5 are rewritten in a main memory 1, the contents of the data rewritten in the main memory 1 are compared with that of the data in the backup memory 5, and if an error is generated in the written contents, a CPU8 retries the rewriting. In the control operation by the CPU8, the data stored in the main memory 1 are rewritten in the backup memory 5 on the basis of the interruption control of the CPU8 before the stored contents in the main memory 1 are volatilized less than the prescribed value due to the power failure of the system power supply Vcc.

Description

【発明の詳細な説明】 技貨分」 本発明は、揮発性メモリの電源バックアップを行なうメ
モリバックアップ方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a memory backup method for backing up the power of volatile memory.

iu 従来、パーソナルコンピュータやワードプロセッサにお
けるプログラム用RAMやデータ蓄積用のバッファメモ
リなど、マイクロコンピュータシステムにおいて一般的
に使用される揮発性のICメモリ(RAM)にあっては
、停電にそなえてニッケルカドミニウム電池またはリチ
ウム電池などの二次電池を用いて電源のバックアップを
なして記憶内容を保護するようにしている。第4図に、
揮発性メモリ1の電源回路を示している。図中2はシス
テム電源回路、3は電源バックアップ用二次電池、4は
充放電回路をそれぞれ示し、システム電源2が投入され
ているときには二次電池3は充放電回路4を充電して電
流容量を蓄えるが、システム電源2が停電するとその充
放電口l!84が放電状態となってメモリ1に電源を供
給し続けるようになっている。
iu Conventionally, volatile IC memory (RAM) commonly used in microcomputer systems, such as program RAM and data storage buffer memory in personal computers and word processors, has been powered by nickel-cadmium batteries in case of power outages. Alternatively, a secondary battery such as a lithium battery is used to back up the power supply and protect the stored contents. In Figure 4,
A power supply circuit for volatile memory 1 is shown. In the figure, 2 indicates a system power supply circuit, 3 indicates a secondary battery for power backup, and 4 indicates a charging/discharging circuit. When the system power supply 2 is turned on, the secondary battery 3 charges the charging/discharging circuit 4 and has a current capacity of However, if the system power supply 2 loses power, the charging/discharging port l! 84 is in a discharge state and continues to supply power to the memory 1.

しかしこのような二次電池3によりメモリ1の電源バッ
クアップを行なう手段をとるのでは、二次電池3の放電
が進むにしたがいその電流容量か下がって電圧が所定以
上に低下してしまうとメモリlの電源バックヤップがな
されずにその記憶内容が消えてしまうことになり、メモ
リ保護の信頼性に欠けるものとなっている。
However, if such a method is used to back up the power supply of the memory 1 using the secondary battery 3, as the discharge of the secondary battery 3 progresses, its current capacity decreases and the voltage drops beyond a predetermined level. The memory contents will be erased without power backup of the memory, resulting in unreliable memory protection.

目的 本発明は以上の点を考慮したもので、何ら二次電池をメ
モリのバックアップ用電源として用いることなく、常に
停電に対する揮発性メモリのバックアップを確実に行な
わせることができるようにしたメモリバックアップ方式
を提供するものである。
Purpose The present invention takes the above points into consideration, and provides a memory backup method that enables constant backup of volatile memory against power outages without using any secondary batteries as a memory backup power source. It provides:

1部文 以下、本発明の一実施例について詳述する。1 part sentence An embodiment of the present invention will be described in detail below.

本発明によるメモリバックアップ方式にあっては、不揮
発性の電気的消去可能なブロク・ラマブルメモリE” 
FROMをバックアップ用メモリとして用いて、システ
ム電源の停電検出時にその電源電圧が記憶内容が揮発し
てしまう基定値以下になる前に保護対象となる揮発性メ
モリ内の記憶データをバックアップ用メモリに再書込み
させてその記憶データを保護する手段をどろようにする
ものである。
In the memory backup method according to the present invention, a non-volatile electrically erasable block/rammable memory E"
By using FROM as a backup memory, when a power outage is detected in the system power supply, the data stored in the volatile memory to be protected can be restored to the backup memory before the power supply voltage drops below the reference value at which the stored contents will be volatile. This method provides a reliable means for writing and protecting the stored data.

第1図は、本発明によるメモリバックアップ方式を具体
的に実施するための構成例を示すもので、保護対象とな
る揮発性の主メモリlと、E’ PROMからなるバッ
クアップ用メモリ5と、システム電源回路6の交流電源
eにおける交流電圧波形の振幅減少からシステム電源V
 r、 c、の停電状態を検出する停電検出回路7と、
その停電検出時における出力信号Sに応じて主メモリ1
内の記憶データをバックアップ用メモリ5に再書込みさ
せるCPU8とからなっている。なお主メモリ1として
は、ICメモリ以外に揮発性をもったものであれば何で
も対象となる。またシステム電源回路〔5は、交流電源
eの交直変換をなしたうえてその直流電圧の定電圧化を
図ってシステム電源Vccを供給するようになっている
FIG. 1 shows a configuration example for concretely implementing the memory backup method according to the present invention, in which a volatile main memory l to be protected, a backup memory 5 consisting of E'PROM, and a system System power supply V from the amplitude decrease of the AC voltage waveform in AC power supply e of power supply circuit 6
a power outage detection circuit 7 that detects a power outage state of r, c,
Main memory 1 according to the output signal S when the power failure is detected.
and a CPU 8 that rewrites the stored data in the backup memory 5. Note that the main memory 1 can be anything other than IC memory as long as it has volatility. Further, the system power supply circuit [5] performs AC/DC conversion on the AC power supply e, and then stabilizes the DC voltage to supply the system power supply Vcc.

しかしてこのように構成されたものにあっては、まずシ
ステム電源Vccのオン時、CPU8がリセット後にシ
ステムにおける所定の動作を開始するに先だってその制
御下において先のシステム電源vccのしゃ断時にバッ
クアップ用メモリ5に再書込みさせたデータ内容を主メ
モリ1に書き移し、その主メモリ1に書き移されたデー
タ内容とバックアップ用メモリ5内のデータ内容とを比
較してそのデータ内容の書移しが誤りなくされたか否か
のチェックを行なう。そのデータ内容の書移しにエラー
を生じた場合には、CP tJ 8は再トライを行なわ
せる。データ内容の書移しが誤りなく行なわれたのち、
CPU7は次の再書込みにそなえてバックアップ用メモ
リ5にデータ消去信号Eを与えてその記憶内容をクリア
させる。しかるのち、CPU8は予めプログラム設定さ
れたシステム動作の制御を開始し、その処理に適宜性な
いながらシステム電源V’ccの監視状態に入る。その
制御動作中、停電検出回路7によりシステム電源Vcc
の停電状態が検出されると、その停電検出信号SがCP
U8に割り込まれ、そのシステム電源Vccが主メモリ
1における記憶内容が揮発される規定値以下になる前に
CP U 8の割込制御によって主メモリ1内の記憶デ
ータをバックアップ用メモリ5に再書込みさせる。なお
、主メモリ1内の記憶データのバックアップ用メモリ5
への再書込みはシステム電源Vccのオフ時にも全く同
様に行なわれることになる。またバックアップ用メモリ
5への再書込みは主メモリ1内の記憶データの全てにつ
いて行なうが(その1部合は主メモリlとバックアップ
用メモリ5との各メモリ容量を等しくしている)、その
際バックアップ用メモリ5のメモリ容量髪主メモリ1の
それよりも小さくして、主メモリ1内における1部の必
要最小限の記憶データのみをバックアップ用メモリ5に
再書込みさせてそれを保護させるようにすることも可能
となる。
However, in a device configured in this way, first, when the system power supply Vcc is turned on, and before the CPU 8 starts a predetermined operation in the system after being reset, the backup The data content rewritten to the memory 5 is transferred to the main memory 1, and the data content transferred to the main memory 1 is compared with the data content in the backup memory 5 to determine whether the data content was written incorrectly. Check whether it has been lost or not. If an error occurs in transferring the data contents, CP tJ 8 causes a retry. After the data content has been transferred without errors,
In preparation for the next rewrite, the CPU 7 applies a data erase signal E to the backup memory 5 to clear its stored contents. Thereafter, the CPU 8 starts controlling the system operation set in advance by the program, and enters a monitoring state of the system power supply V'cc, although the process is not appropriate. During the control operation, the power failure detection circuit 7 detects the system power supply Vcc.
When a power outage condition is detected, the power outage detection signal S becomes CP
The data stored in the main memory 1 is rewritten to the backup memory 5 by the interrupt control of the CPU 8 before the system power supply Vcc drops below the specified value at which the stored contents in the main memory 1 are volatilized. let In addition, a memory 5 for backing up data stored in the main memory 1
Rewriting to is performed in exactly the same way when the system power supply Vcc is turned off. In addition, rewriting to the backup memory 5 is performed for all of the stored data in the main memory 1 (in part, the memory capacities of the main memory 1 and the backup memory 5 are made equal); The memory capacity of the backup memory 5 is made smaller than that of the main memory 1, and only a part of the minimum necessary storage data in the main memory 1 is rewritten to the backup memory 5 to protect it. It is also possible to do so.

第2図に、システム電源V c cがオンされてから停
電により主メモリ1内の記憶データがバンクアップ用メ
モリ5に再書込みされてそのデータ内容が不揮発的に保
持されるまでの動作フローを示している。
Figure 2 shows the operational flow from when the system power supply Vcc is turned on until the stored data in the main memory 1 is rewritten to the bank-up memory 5 due to a power outage and the data contents are held non-volatilely. It shows.

また第3図に、停電検出回路7における停電状態検出の
動作タイミングを示している。図中、1点は交流電源e
の停電状態検出時点てあり、またT期間は主メモリ1内
における記憶データのバックアップ用メモリ5への再書
込み期間を示している。
Further, FIG. 3 shows the operation timing for detecting a power outage state in the power outage detection circuit 7. In the diagram, one point is AC power supply e
The period T indicates a period during which stored data in the main memory 1 is rewritten to the backup memory 5.

なお、ここでは停電検出回路7により交流電源eにおけ
る交流電圧信号の振幅を監視し、その振幅が一定以下に
減少した時点tをもって交流電源eの停電状態を検出し
、その時点tからシステム電源回路6におけるシステム
電源vCCが立下って主メモリ1における記憶内容が揮
発されるしきい値となる基定値Vに達するまでのT期間
中に主メモリ1内における記憶データのバックアップ用
メモリ5への再書込みを行なわせるようにしているが、
その再書込み期間Tに充分な余裕をもたせるべくシステ
ム電源回路6にタイマ機能をもたせ、停電検出時におけ
るシステム電源Vccを一定期間保持させる手段をとる
ようにすることも可能である。またシステム電源回路6
内にタイマ機能をもたせる代わりに、その出力側にシス
テム電源Vccを一定時間遅延させる専用のタイマ回路
を別途設けるようにしてもよいことはいうまでもない。
Note that here, the power failure detection circuit 7 monitors the amplitude of the AC voltage signal in the AC power supply e, detects the power failure state of the AC power supply e at the time t when the amplitude decreases below a certain level, and from that time t the system power supply circuit 6, the data stored in the main memory 1 is reloaded to the backup memory 5 during the period T until the system power supply vCC falls and the storage contents in the main memory 1 reach the reference value V, which is the threshold value for volatilization. I am trying to make it write, but
In order to provide a sufficient margin for the rewrite period T, it is also possible to provide the system power supply circuit 6 with a timer function, and to take means to hold the system power supply Vcc for a certain period of time when a power failure is detected. Also, the system power supply circuit 6
It goes without saying that instead of having a timer function inside, a dedicated timer circuit for delaying the system power supply Vcc for a certain period of time may be separately provided on the output side.

このように停電状態が検出されてからシステム電源Vc
cが基定値■に達するまでの時間が充分ある場合には、
主メモリ1内における記憶データのバックアップ用メモ
リ5への再書込みが終了したのちCP U 8により主
メモリ1内のデータ内容とバックアップ用メモリ5内の
データ内容とを比較して再書込みが誤まりなくされたか
否かのチェックを行なわせ、データ内容が不一致のとき
には再書込みにエラーを生じたとしてLEDを点灯させ
るなどしてその旨の警報を発生させる手段を容易にとる
ことができるようになる。
After a power outage condition is detected in this way, the system power supply Vc
If there is enough time for c to reach the reference value ■,
After the rewriting of the stored data in the main memory 1 to the backup memory 5 is completed, the CPU 8 compares the data content in the main memory 1 with the data content in the backup memory 5 to determine if the rewriting is incorrect. It will be possible to check whether the data has been lost or not, and if the data contents do not match, it will be possible to easily take measures to generate an alarm to that effect, such as by lighting an LED, indicating that an error has occurred in rewriting. .

効果 以上、本発明によるメモリバックアップ方式にあっては
、従来のように過放電によるバックアップ不能が問題と
なる二次電池をメモリのバックアップ用電源として何ら
用いることな(、不揮発性のバックアップメモリを設け
、電源の停電状態の検出時に、メモリ電源電圧が基定値
以下になる前に保護対象となる揮発性メモリ内の記憶デ
ータを不揮発性のバックアップ用メモリに再書込みさせ
るようにしたもので、常に停電に対する揮発性メモリの
バックアップを確実に行なわせることができるという優
れた利点を有してし)る。
As described above, the memory backup method according to the present invention does not require the use of a secondary battery as a memory backup power source, which has the problem of backup failure due to over-discharge as in the past (it also eliminates the need to provide a non-volatile backup memory). , when a power outage is detected, the data stored in the volatile memory to be protected is rewritten to the nonvolatile backup memory before the memory power supply voltage drops below the standard value. It has the excellent advantage that volatile memory can be reliably backed up.

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

第1図は本発明によるメモリノくツクアップ方式を実施
するための具体的な構成例を示すブロック図、第2図は
同構成例における動作のフローチャー1−1第3図は同
しくその停電検出回路し;お番する停電状態検出の動作
タイミングを示すタイムチャー1−1第4図は従来のメ
モリ、<ツクアップのための揮発性メモリの電源回路を
示すプロ・ツク図である。 1・・・揮発性メモリ 2,6・・・システム電源回路
3・・・二次電池 4・・充放電回路 5・・・ノ≦ツ
クフ′ツブ用メモリ 7・・停電検出回路 8・・・C
PU出願人代理人 鳥井 清 第1図 第3図 第2図 第4図
FIG. 1 is a block diagram showing a specific configuration example for implementing the memory read-up method according to the present invention, FIG. 2 is a flowchart 1-1 of the operation in the same configuration example, and FIG. Time chart 1-1 showing the operation timing for detecting a power outage state when the circuit is activated. Figure 4 is a process diagram showing a power supply circuit of a conventional memory, a volatile memory for backup. 1...Volatile memory 2, 6...System power supply circuit 3...Secondary battery 4...Charging/discharging circuit 5...Memory for ≦Tsukuf'tub 7...Power outage detection circuit 8... C
PU applicant Kiyoshi Torii Figure 1 Figure 3 Figure 2 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 電源の停電状態を検出する手段と、停電検出時に保護対
象となる揮発性メモリ内の記憶データを不揮発性のバッ
クアップ用メモリに再書込みさせる手段とをとるように
したメモリバックアップ方式。
A memory backup method that includes means for detecting a power outage state and means for rewriting data stored in a volatile memory to be protected in a nonvolatile backup memory when a power outage is detected.
JP59099537A 1984-05-17 1984-05-17 Memory backup system Pending JPS60243757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59099537A JPS60243757A (en) 1984-05-17 1984-05-17 Memory backup system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59099537A JPS60243757A (en) 1984-05-17 1984-05-17 Memory backup system

Publications (1)

Publication Number Publication Date
JPS60243757A true JPS60243757A (en) 1985-12-03

Family

ID=14249947

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59099537A Pending JPS60243757A (en) 1984-05-17 1984-05-17 Memory backup system

Country Status (1)

Country Link
JP (1) JPS60243757A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1044567A (en) * 1996-08-05 1998-02-17 Seiko Epson Corp Printer equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1044567A (en) * 1996-08-05 1998-02-17 Seiko Epson Corp Printer equipment

Similar Documents

Publication Publication Date Title
US4777626A (en) Memory device having backup power supply
JP3224153B2 (en) Improved data protection system and data protection method
JP4111890B2 (en) Uninterruptible power system
JP2003173220A (en) Electrical apparatus, computer device, intelligent battery and control method for battery
US20090040842A1 (en) Enhanced write abort mechanism for non-volatile memory
JPS60243757A (en) Memory backup system
US6760672B2 (en) Automatic detection of battery-backed data integrity in volatile memory
JPH0822422A (en) Memory device
JP3133492B2 (en) Information processing device
JPH0228856A (en) Computer system
JP2740685B2 (en) Storage device backup circuit
JPH0736574A (en) Initializing device and method for electronic equipment
JPH0436426B2 (en)
KR20040097501A (en) Method for data backup in portable electronic device
JP3053270B2 (en) Power supply backup method and device
JPH0724917Y2 (en) Backup power supply circuit
KR0125579Y1 (en) Memory battery backup circuits
JPS6128124B2 (en)
JPH05342115A (en) Memory data protecting device against power source interruption
JPS61141059A (en) Terminal equipment
JPH01195559A (en) Back-up memory for electronic equipment
JPS57195395A (en) Memory backup method for power failure
JP2554117B2 (en) Vehicle data processor
JPH02114827A (en) Backup power source equipment
JPS61226858A (en) Battery back up type data processor