JPH02120954A - Method for checking ram data in computer system - Google Patents

Method for checking ram data in computer system

Info

Publication number
JPH02120954A
JPH02120954A JP63274160A JP27416088A JPH02120954A JP H02120954 A JPH02120954 A JP H02120954A JP 63274160 A JP63274160 A JP 63274160A JP 27416088 A JP27416088 A JP 27416088A JP H02120954 A JPH02120954 A JP H02120954A
Authority
JP
Japan
Prior art keywords
data
ram
check data
power supply
storage 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.)
Pending
Application number
JP63274160A
Other languages
Japanese (ja)
Inventor
Toyohiko Egami
江上 豊彦
Yasuhide Ikeuchi
康秀 池内
Takahiro Matsuo
松尾 隆寛
Tadashi Matsubara
松原 正
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.)
Noritz Corp
Original Assignee
Noritz 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 Noritz Corp filed Critical Noritz Corp
Priority to JP63274160A priority Critical patent/JPH02120954A/en
Publication of JPH02120954A publication Critical patent/JPH02120954A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To decide whether RAM data are surely stored or not by storing prescribed check data in a RAM, and when power supply is started, comparing the stored data with prescribed check data. CONSTITUTION:A microcomputer 1 is provided with a non-volatile memory storing prescribed check data, and during the supply of power supply Vcc, enters check data in a RAM 2 simultaneously with the entry of external information data. When the power supply Vcc is restored after interrupting the power supply Vcc and system operation is started, data in a check data storing area of the RAM 2 are read out and whether the data coincide with the check data or not is decided. Consequently, whether the data of the RAM 2 disappear or not can be decided during the period of power failure almost without increasing cost only by adding a program to the microcomputer 1.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、コンピュータシステムのRAMデータチェッ
ク方法に関し、特には、供給電源が遮断された後に復帰
された時にRAMデータが保存されているか否かを判定
できるようにしたコンピュータシステムのRAMデータ
チェック方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a method for checking RAM data in a computer system, and in particular, to check whether RAM data is saved when the power supply is restored after being cut off. The present invention relates to a method for checking RAM data in a computer system that can determine the following.

(従来の技術) 従来、コンピュータシステムとして、例えばマイクロコ
ンピュータ(以下、マイコンという)等のコンピュータ
を介して外部のブータラRAMに書き込んで保持させた
り、記憶させたデータを読み出してシステムの制御を行
ったりする場合に、停電時等にマイフンやRAMへの供
給電源が遮断された時に大宮全コンデンサや電池等によ
って構成されるバックアップ回路が作動してRAM電源
をバックアップし、前記データを保存するように構成し
たものがある。
(Prior Art) Conventionally, as a computer system, for example, data is written to and stored in an external boot controller RAM via a computer such as a microcomputer (hereinafter referred to as a microcomputer), and the stored data is read out to control the system. When the power supply to the microphone and RAM is cut off due to a power outage, etc., a backup circuit consisting of Omiya full capacitors, batteries, etc. is activated to back up the RAM power supply and save the data. There is something I did.

(発明が解決しようとする課題) この場合、バックアップ回路の電圧が降下してデータ保
持電圧以下になるとRAMに記憶されたデータは消失す
ることになる。しかし、供給電源が復帰した時にRAM
内にデータが保存されているか否かを判定することはで
きなかつた。
(Problems to be Solved by the Invention) In this case, when the voltage of the backup circuit drops to a level below the data holding voltage, the data stored in the RAM will be lost. However, when the power supply is restored, the RAM
It was not possible to determine whether or not data was stored within the device.

本発明は、上記の事情を考慮してなされたものであって
、供給電源が遮断された後に復帰された時にRAMデー
タが保存されているが否がを判定できるようにしたコン
ピュータシステムのRAMデータチェック方法を提供す
ることを目的とするものである。
The present invention has been made in consideration of the above circumstances, and is capable of determining whether RAM data is saved or not when the power supply is restored after being cut off. The purpose is to provide a checking method.

(課題を解決するための手段) 本発明に係るコンピュータシステムのRAMデータチェ
ック方法は、上記の目的を達成するために、RAMに所
定のチェックデータを記入するチェックデータ格納エリ
アと、外部の任意データを記入する情報データ格納エリ
アとを設け、供給電源の供給中にチェックデータ格納エ
リアに所定のチェックデータを記入し、供給電源が一旦
停止してから復帰した時に、前記チェックデータ格納エ
リアのデータを読み出し、このデータがチェックデータ
と一致するが否かを判定するように構成される。
(Means for Solving the Problems) In order to achieve the above object, the RAM data check method for a computer system according to the present invention includes a check data storage area in which predetermined check data is written in the RAM, and an external arbitrary data storage area. An information data storage area is provided in which predetermined check data is written in the check data storage area while the power supply is being supplied, and when the power supply is temporarily stopped and then restored, the data in the check data storage area is written. and is configured to read and determine whether this data matches the check data.

(作用) 本発明のコンピュータシステムのRAMデータチェック
方法によれば、供給電源の停止中にバックアップ電源の
電圧がデータ保持電圧以下に降下した場合にはRAM内
のチェックデータ格納エリア及び情報データ格納エリア
のデータが消失されるので、供給電源の復帰時にチェッ
クデータ格納エリアのデータを所定のチェックデータと
比較すると不一致の回答が得られ、供給電源の停止中に
バックアップ電源の電圧がデータ保持電圧よりも高圧に
保持されている場合には、RAM内のチェックデータ格
納エリア及び情報データ格納エリアのデータがそのまま
保存されるので、供給電源の復帰時にチェックデータ格
納エリアのデータを所定のチェックデータと比較すると
一致の回答が得られる。従って、このチェックデータ格
納エリアのデータとチェックデータとの比較の結果によ
って供給電源が遮断された後に復帰された時にRAMデ
ータが保存されているか否かを判定できる。
(Function) According to the method for checking RAM data in a computer system of the present invention, when the voltage of the backup power source drops below the data retention voltage while the power supply is stopped, the check data storage area and the information data storage area in the RAM data will be lost, so if you compare the data in the check data storage area with the predetermined check data when the power supply is restored, an inconsistent answer will be obtained, and if the voltage of the backup power supply is lower than the data retention voltage while the power supply is stopped When the voltage is maintained at high voltage, the data in the check data storage area and information data storage area in the RAM is saved as is, so when the power supply is restored, the data in the check data storage area is compared with the predetermined check data. You will get a matching answer. Therefore, it is possible to determine whether or not RAM data is saved when the power supply is restored after being cut off, based on the result of comparison between the data in the check data storage area and the check data.

(実施例) 以下、本発明を面倒に基づき具体的に説明する。(Example) Hereinafter, the present invention will be explained in detail based on the convenience.

第1図は本発明の一実施例に係るマイコンシステムのR
AMデータチェック方法の動作の流れを示す70−図で
あり、第2図はそのマイコンシステムの回路図である。
FIG. 1 shows R of a microcomputer system according to an embodiment of the present invention.
FIG. 70 shows the flow of operation of the AM data checking method, and FIG. 2 is a circuit diagram of the microcomputer system.

図中、(l〕はマイコン、(2)はRA M 、 (3
)は外部情報データ、(4)は信号線群、(5)は逆流
阻止用ダイオード、(6)はバックアップコンデンサ、
vccは供給電源である。
In the figure, (l) is the microcomputer, (2) is the RAM, (3
) is external information data, (4) is a signal line group, (5) is a backflow blocking diode, (6) is a backup capacitor,
vcc is the power supply.

前記RA M (2)には、外部から取り込まれる任意
の情報データを記入する情報データ格納エリアと所定の
チェックデータを記入するチェックデータ格納エリアと
が設けられる。また、前記マイコン(1)は、所定のチ
ェックデータ(B)を格納シた不揮発性メモリを備え、
供給電源Vcaが供給されている間、周期的に外部デー
タ(31を取り込んで信号線群(4)を介してRA M
 (2)の情報データ格納エリアに記入すると同時に、
所定のチェックデータを信号線群(4)を介してRA 
M (2)のチェックデータ格納エリアに記入するよう
に構成される。更に、前記マイコン(1)は供給電1j
JVccが投入されてシステムの動作が開始されると、
第1図に示すように、RAM(2)のチェックデータ格
納エリアのデータ(勾を読み出しく81)、このデータ
(勾がチェックデータ(均と一致するか否かを判定しく
S2)、不一致の場合にはRA M (2)のチェック
データ格納エリアにチェックデータ(ηを記入する一方
Cs5)、情報データ格納エリアを初期化した後に(S
4)、また、一致する場合にはRA M (2)のデー
タが保存されていたものと見做してそのRA M (2
)のデータを変えずにその他の必要箇所を初期化して(
S5)次の処理に移行するように構成されている。
The RAM (2) is provided with an information data storage area in which arbitrary information data imported from the outside is written and a check data storage area in which predetermined check data is written. Further, the microcomputer (1) includes a nonvolatile memory storing predetermined check data (B),
While the power supply Vca is being supplied, external data (31) is periodically fetched and transferred to RAM via the signal line group (4).
At the same time as filling in the information data storage area in (2),
RA predetermined check data via signal line group (4)
It is configured to write in the check data storage area of M (2). Furthermore, the microcomputer (1) supplies power 1j
When JVcc is turned on and system operation starts,
As shown in FIG. 1, the data in the check data storage area of RAM (2) (read slope 81), this data (slope check data (determine whether it agrees with the average) S2), In this case, write the check data (η while Cs5) in the check data storage area of RAM (2), and after initializing the information data storage area (S
4), and if they match, it is assumed that the data in RAM (2) has been saved and that RAM (2) is saved.
) without changing the data and initializing other necessary parts (
S5) It is configured to move on to the next process.

上記の構成において、供給電源Vccが供給されている
間に、例えば、外部情報データの記入と同時にチェック
データがRA M (2)に記入される。そして、供給
電源Vacが遮断されるとバックアップコンデンサ(6
)によりRA M (2)のデータが所定時間にわたっ
て保存される。例えば、供給電源Vacの遮断から所定
時間を経過した場合等、バックアップコンデンサ(0)
の電圧がデータ保持電圧よりも低下した場合には、RA
M(2)のデータは消失する。そして、後に供給電源V
ccが復帰してシステムの動作が開始されると、RAM
(2)のチェックデータ格納エリアのデータ(Nを読み
出しくSl)、このデータ(A)がチェックデータ(B
)と一致するか否かを判定しくS2) 、不一致の場合
にはRA、 M (2)のチェックデータ格納エリアに
チェックデータ(B)を記入する一方(S3)、情報デ
ータ格納エリアを初期化した後に(S4)、また、一致
する場合にはRA M(2)のデータが保存されていた
ものと見做してそのRAM(2)のデータを変えずにそ
の他の必要箇所を初期化して(S5)次の処理に移行す
ることになる。
In the above configuration, while the supply power Vcc is being supplied, for example, check data is written in RAM (2) at the same time as external information data is written. When the power supply Vac is cut off, the backup capacitor (6
) stores the data in RAM (2) for a predetermined period of time. For example, when a predetermined period of time has passed since the power supply Vac was cut off, the backup capacitor (0)
If the voltage of RA falls below the data retention voltage, RA
The data of M(2) is lost. Then, later, the supply power V
When cc returns and system operation starts, the RAM
(2) The data in the check data storage area (Sl to read N), this data (A) is the check data (B
), and if they do not match, write the check data (B) in the check data storage area of RA, M (2) (S3), and initialize the information data storage area. After that (S4), if they match, it is assumed that the data in RAM (2) has been saved, and other necessary parts are initialized without changing the data in RAM (2). (S5) The process will move on to the next process.

従って、マイコン(1)のプログラムを追加するだけで
殆どコストアップさせることなく停電中にRA、 M 
(2)のデータが消失したか否かを判定することにより
、例えば、浴槽への設定水位給湯装置において給湯中の
停電復帰時に浴槽内の水位データが保持されているか否
かを判定することができ、その判定に従って最適の処理
を実行させることができる。
Therefore, by simply adding a program to the microcomputer (1), RA and M can be used during power outages without increasing costs.
By determining whether or not the data in (2) has disappeared, it is possible to determine, for example, whether or not the water level data in the bathtub is retained when a power outage returns during hot water supply in a water heater that sets the water level for the bathtub. The optimal process can be executed according to the determination.

一ト記の実施例では、バックアップ回路カバツクアップ
コンデンサ(6)で構成されているが、例えば電池を使
用する低電圧回路でバックアップ回路を構成した場合に
も本発明を適用することは可能である。また、チェック
データ格納エリアのビット数は特に限定されるものでは
なく、ピット数が多くなれば多くなるほど判定精度を高
めることができる。
In the first embodiment, the backup circuit is configured with a backup capacitor (6), but the present invention can also be applied to a case where the backup circuit is configured with a low voltage circuit using a battery, for example. be. Further, the number of bits in the check data storage area is not particularly limited, and the greater the number of pits, the higher the determination accuracy.

(発明の効果) 以上説明したように、本発明に係るコンピュータシステ
ムのRAMデータチェック方法によれば、所定のチェッ
クデータをRAMに記憶させ、供給電源の供給が開始さ
れる時にRAMのチェックデータ格納エリアのデータと
所定のチェックデータとを比較してRAMデータが保持
されているか否かを判定するので、コンピュータのプロ
グラムを追加するだけで殆どコストアップを伴うことな
く、確実にRAMデータが保存されていたか否かを判定
することができる。
(Effects of the Invention) As explained above, according to the RAM data check method for a computer system according to the present invention, predetermined check data is stored in the RAM, and when the supply of power is started, the check data is stored in the RAM. Since the data in the area is compared with predetermined check data to determine whether or not RAM data is retained, RAM data can be reliably stored with almost no cost increase by simply adding a computer program. It is possible to determine whether the

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

第1図は本発明の一実施例を示すフロー図、第2図は同
側の回路図である。 (1)・・・マイコン (2)・ ・ ・ RAM
FIG. 1 is a flow diagram showing one embodiment of the present invention, and FIG. 2 is a circuit diagram of the same side. (1)...Microcomputer (2)...RAM

Claims (1)

【特許請求の範囲】[Claims] RAMに所定のチェックデータを記入するチェックデー
タ格納エリアと、外部の任意データを記入する情報デー
タ格納エリアとを設け、供給電源の供給中にチェックデ
ータ格納エリアに所定のチェックデータを記入し、供給
電源の停電復帰時に前記チェックデータ格納エリアのデ
ータを読み出し、このデータがチェックデータと一致す
るか否かを判定することを特徴とするコンピュータシス
テムのRAMデータチェック方法。
A check data storage area for writing predetermined check data in the RAM and an information data storage area for writing external arbitrary data are provided, and predetermined check data is written in the check data storage area while the power supply is being supplied. A method for checking RAM data in a computer system, comprising reading data in the check data storage area upon recovery from a power failure, and determining whether or not this data matches check data.
JP63274160A 1988-10-28 1988-10-28 Method for checking ram data in computer system Pending JPH02120954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63274160A JPH02120954A (en) 1988-10-28 1988-10-28 Method for checking ram data in computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63274160A JPH02120954A (en) 1988-10-28 1988-10-28 Method for checking ram data in computer system

Publications (1)

Publication Number Publication Date
JPH02120954A true JPH02120954A (en) 1990-05-08

Family

ID=17537871

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63274160A Pending JPH02120954A (en) 1988-10-28 1988-10-28 Method for checking ram data in computer system

Country Status (1)

Country Link
JP (1) JPH02120954A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53119637A (en) * 1977-03-28 1978-10-19 Nissin Electric Co Ltd Data checking system
JPS54107226A (en) * 1978-02-09 1979-08-22 Omron Tateisi Electronics Co Memory contents destruction test system in power failure
JPS6072044A (en) * 1983-09-29 1985-04-24 Toshiba Corp Inspecting system of backup memory
JPS6180444A (en) * 1984-09-28 1986-04-24 Matsushita Electric Ind Co Ltd Diagnosing device for holding function of memory contents
JPS6289153A (en) * 1985-10-15 1987-04-23 Hochiki Corp Storage device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53119637A (en) * 1977-03-28 1978-10-19 Nissin Electric Co Ltd Data checking system
JPS54107226A (en) * 1978-02-09 1979-08-22 Omron Tateisi Electronics Co Memory contents destruction test system in power failure
JPS6072044A (en) * 1983-09-29 1985-04-24 Toshiba Corp Inspecting system of backup memory
JPS6180444A (en) * 1984-09-28 1986-04-24 Matsushita Electric Ind Co Ltd Diagnosing device for holding function of memory contents
JPS6289153A (en) * 1985-10-15 1987-04-23 Hochiki Corp Storage device

Similar Documents

Publication Publication Date Title
US4811294A (en) Data integrity verifying circuit for electrically erasable and programmable read only memory (EEPROM)
US5799200A (en) Power failure responsive apparatus and method having a shadow dram, a flash ROM, an auxiliary battery, and a controller
US6336174B1 (en) Hardware assisted memory backup system and method
US8510584B1 (en) Ultra low power sleep mode
US4777626A (en) Memory device having backup power supply
JP3292864B2 (en) Data processing device
US6484270B1 (en) Electric device with flash memory built-in
JPH07114497A (en) Semiconductor integrated circuit device
KR20080099692A (en) Nonvolatile memory device, memory system thereof, and reading method thereof
US20100226170A1 (en) Non-volatile Memory Array Having Circuitry To Complete Programming Operation In The Event Of Power Interrupt
JPH08249244A (en) Data holding circuit
JP3376306B2 (en) Data processing apparatus and data processing method
US5925139A (en) Microcomputer capable of preventing writing errors in a non-volatile memory
US7375998B2 (en) Ferroelectric random access memory circuits for guarding against operation with out-of-range voltages and methods of operating same
JPS623516B2 (en)
JPH02120954A (en) Method for checking ram data in computer system
JPH10134558A (en) Power source feed circuit of semiconductor memory application device
JPH0822422A (en) Memory device
US20030144804A1 (en) Automatic detection of battery-backed data integrity in volatile memory
JP2740685B2 (en) Storage device backup circuit
JPH0778231A (en) Memory card
JP2513421B2 (en) Storage device
JPS5958699A (en) Data storage system of nonvolatile ram
JPH07122087A (en) Eeprom error check system
JPH10240633A (en) Memory system and memory card