JP2731251B2 - Computer system - Google Patents

Computer system

Info

Publication number
JP2731251B2
JP2731251B2 JP1183607A JP18360789A JP2731251B2 JP 2731251 B2 JP2731251 B2 JP 2731251B2 JP 1183607 A JP1183607 A JP 1183607A JP 18360789 A JP18360789 A JP 18360789A JP 2731251 B2 JP2731251 B2 JP 2731251B2
Authority
JP
Japan
Prior art keywords
battery backup
information
battery
memory
memory device
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.)
Expired - Fee Related
Application number
JP1183607A
Other languages
Japanese (ja)
Other versions
JPH0348915A (en
Inventor
正 村山
隆 佐伯
守文 奥川
公俊 中村
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
Nippon Telegraph and Telephone Corp
Original Assignee
Toshiba Corp
Nippon Telegraph and Telephone 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, Nippon Telegraph and Telephone Corp filed Critical Toshiba Corp
Priority to JP1183607A priority Critical patent/JP2731251B2/en
Publication of JPH0348915A publication Critical patent/JPH0348915A/en
Application granted granted Critical
Publication of JP2731251B2 publication Critical patent/JP2731251B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明はマイクロコンピュータシステムに係わり、特
にバッテリバックアップ付のメモリに保持させたデータ
が正常であるか否かを判定することができるようにした
コンピュータシステムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a microcomputer system, and in particular, to determine whether data held in a memory with a battery backup is normal. To a computer system that is capable of doing so.

(従来の技術) 近年、半導体技術の著しい発展に伴い、制御の中枢に
マイクロコンピュータを使用したシステムが広く利用さ
れている。そして、マイクロコンピュータを使用したシ
ステムにおいては、ソフトウエアによる制御を行うこと
によって、正確で複雑な制御が可能になった。ところ
で、マイクロコンピュータを使用したシステムではその
実行プログラムをメモリに持たせ、これを実行する。そ
して、実行プログラムやデータを格納するメモリとして
は一般的にROMか、RAMを用いる。このうち、ROMを使用
する場合はROMが不揮発性であることから、記憶情報を
失うことがないが、プログラム変更が簡単にはゆかず、
また、RAMに比べて実行速度も遅いと云う問題がある。
一方、RAMを使用する場合は実行速度が速く、しかも、
ランダムアクセスであるから、記憶内容の書き替えが簡
単で、プログラムやデータ変更も簡単に行える半面、揮
発性であることから、電源が切れると記憶情報を失って
しまうと云う欠点がある。そこで、低消費電力のC−MO
S SRAM(スタチックRAM)等を使用し、バックアップ電
源である電池を設けて、システム電源が切れた時には、
このバックアップ電源よりSRAMに電力を供給して記憶情
報を保持するようにしたメモリバックアップシステムも
広く利用されている。
(Related Art) In recent years, with the remarkable development of semiconductor technology, a system using a microcomputer as a control center has been widely used. In a system using a microcomputer, accurate and complicated control has become possible by performing control by software. By the way, in a system using a microcomputer, the execution program is stored in a memory and executed. In general, a ROM or a RAM is used as a memory for storing an execution program and data. Of these, when using a ROM, the ROM is non-volatile, so there is no loss of stored information, but it is not easy to change the program,
There is also a problem that the execution speed is slower than that of RAM.
On the other hand, when using RAM, the execution speed is fast, and
Because of random access, rewriting of stored contents is easy and programs and data can be easily changed. However, since it is volatile, stored information is lost when the power is turned off. Therefore, low power consumption C-MO
Using S SRAM (static RAM) etc., providing a battery as a backup power supply, and when the system power is turned off,
A memory backup system in which power is supplied from a backup power supply to an SRAM to retain stored information is also widely used.

このようなメモリバックアップ方式のRAMではバック
アップ電源により、メモリ内の記憶情報を保持できる
が、バックアップ電源として電池を使用する関係上、電
池の消耗の問題がある。すなわち、電池電圧が低下する
とついには記憶情報を保持出来なくなり、メモリ内の記
憶情報は消滅してしまう。そして、これを知らずにマイ
クロコンピュータシステムを起動させると、暴走を起こ
したりすることになり、機器の制御に使用しているもの
であればその制御対象を損傷させたり、周囲に危害を及
ぼしたりすることにもなる。
In such a RAM of the memory backup method, information stored in the memory can be held by a backup power supply, but there is a problem of battery consumption because a battery is used as the backup power supply. That is, when the battery voltage decreases, the stored information cannot be retained at last, and the stored information in the memory is lost. If you start the microcomputer system without knowing this, it will cause runaway, and if it is used for controlling equipment, it will damage the control target or harm the surroundings It will also be.

そこで、システムを起動した際に、システム電源復帰
時でのメモリ内の保存すべき記憶情報が正常に保持され
ているか、その保存状態チェックする必要があり、従
来、このチェック方式として、電池よりRAMへの電池電
源供給路を形成するメカニカルなスイッチを設け、これ
をバッテリバックアップ設定用スイッチとして、このス
イッチが投入されていれば、バッテリバックアップが成
される構成とし、システムの起動時には当該スイッチが
オンとなっているか、オフとなっているかをプロセッサ
(CPU)が読み込んでチェックすることで、メモリ内の
システムデータが保存されていたか否かを判断してい
た。この場合、単にスイッチの状態を調べるだけである
ことから、スイッチが投入されていればバックアップさ
れているものと判断してしまうことになり、電池電圧低
下等による保存データの消滅は全くこれをチェックする
ことができない。
Therefore, when the system is started, it is necessary to check whether or not the storage information to be stored in the memory when the system power is restored is normally held, or to check the storage state. A mechanical switch that forms a battery power supply path to the battery is provided, and this is used as a battery backup setting switch. If this switch is turned on, a battery backup is made. When the system starts up, the switch is turned on. The processor (CPU) reads and checks whether the system data is turned off or off to determine whether the system data in the memory has been saved. In this case, since the switch status is simply checked, if the switch is turned on, it is determined that the data is backed up. Can not do it.

(発明が解決しようとする課題) マイクロコンピュータやその応用機器等のコンピュー
タシステムにおいて、データやプログラムをRAMによる
メモリに記憶して利用する構成としているものでは、電
源をオフした時や停電時においてもシステムのデータ等
の保存が必要な場合、メモリバックアップ用の電池を設
けて保存すべきデータが格納されているメモリをバッテ
リバックアップしている。そして、電池からメモリへの
電源供給はメカニカルなスイッチを設けてこれを投入す
ると電池電源をメモリに供給できようにしてあり、シス
テムの再起動時にCPUによりこのスイッチをチェックす
ることにより、メモリがバックアップされいるか否かの
検出を行うようにしていた。
(Problems to be Solved by the Invention) In a computer system such as a microcomputer or an application device thereof, in which data and programs are stored in a memory such as a RAM and used, even when a power supply is turned off or a power failure occurs. When storage of system data or the like is necessary, a battery for memory backup is provided to back up the memory in which data to be stored is stored. The power supply from the battery to the memory is provided with a mechanical switch that can be turned on to supply battery power to the memory.When the system is restarted, the CPU checks this switch to back up the memory. It was to detect whether or not it was done.

一方、メモリ回路を構成しているRAMはある規定電圧
の範囲で電源端子に電圧が供給されている限りは、記憶
情報を保持するが、電圧が低下すると記憶情報保持が出
来なくなる。
On the other hand, the RAM constituting the memory circuit retains the stored information as long as the voltage is supplied to the power supply terminal within a certain specified voltage range. However, when the voltage decreases, the stored information cannot be retained.

しかしながら、上述のようにバッテリバックアップ用
電池の電圧チェックは行えないので、バッテリバックア
ップ用電池の電圧低下によるバックアップメモリのデー
タの消失は検出できず、従って、電池電圧低下によって
メモリ内の保持データが変化してしまったにもかかわら
ず、再起動時にバックアップされていると判断してシス
テムを起動してしまう心配があった。また、停電中等に
おいて、上記スイッチをいじってしまった場合もデータ
を失うことになる。そして、メモリ内の記憶情報が消滅
したり変わってしまった状態でコンピュータシステムを
起動させると、暴走を起したりし、機器の制御を行って
いる場合等では、その制御対象を損傷させたり、周囲に
危害を及ぼしたりすることになって安全性や信頼性に欠
けるという欠点があった。
However, since the voltage of the battery for the battery backup cannot be checked as described above, the loss of the data in the backup memory due to the decrease in the voltage of the battery for the battery backup cannot be detected. Despite having done so, there was a concern that the system would start when it was determined that it was backed up when it was restarted. Also, if the switch is tampered with during a power failure or the like, data will be lost. And, when the computer system is started in a state where the storage information in the memory has disappeared or changed, a runaway may be caused, and when controlling a device, the control target may be damaged, There is a drawback in that it causes harm to the surroundings and lacks safety and reliability.

そこで、この発明の目的とするところは、バッテリバ
ックアップ用電池の電圧低下等によるバックアップメモ
リのデータの消失をチェックできるようにしたバッテリ
バックアップメモリ装置付のコンピュータシステムを提
供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a computer system with a battery backup memory device capable of checking the loss of data in a backup memory due to a voltage drop of a battery for a battery backup or the like.

[発明の構成] (課題を解決するための手段) 上記目的を達成するために、本発明は次のように構成
する。すなわち、バッテリバックアップメモリ装置を有
し、保存すべき重要情報をこのバッテリバックアップメ
モリ装置に保持させると共に、このバッテリバックアッ
プメモリ装置に保持させた重要情報をシステム電源の復
帰後に読出して使用するようにしたコンピュータシステ
ムにおいて、 上記バッテリバックアップメモリ装置に対するバック
アップ用電源の供給をオン・オフするバッテリバックア
ップ設定スイッチと、上記システム電源の供給期間中
に、バッテリバックアップメモリ装置の所定のアドレス
に、不揮発性メモリに予め記憶してある第1の特定照合
情報と同一の第2の特定照合情報を格納する手段と、上
記システム電源が断状態から復帰した場合に、上記バッ
テリバックアップ設定スイッチがオン状態になっている
かオフ状態になっているかを判定する第1の判定手段
と、上記バッテリバックアップメモリ装置より上記第2
の特定照合情報を読出してこれを上記第1の特定照合情
報と照合し、両特定照合情報が一致するか否かを判定す
る第2の判定手段とを備え、さらにバッテリバックアッ
プ状態のチェック手段を備えることにより、上記第1の
判定手段により上記バッテリバックアップ設定スイッチ
がオン状態になっていると判定され、かつ上記第2の判
定手段により第2の特定照合情報が第1の特定照合情報
と一致すると判定された場合に、上記バッテリバックア
ップメモリ装置の格納情報は正常に保持されていると判
断してシステムの再起動を行ない、一方上記第1および
第2の判定手段によりその他の判定結果が得られた場合
には、上記バッテリバックアップメモリ装置の格納情報
は失われていると判断して警告の発生およびエラー処理
を行なうように構成したものである。
[Configuration of the Invention] (Means for Solving the Problems) In order to achieve the above object, the present invention is configured as follows. That is, a battery backup memory device is provided, important information to be stored is held in the battery backup memory device, and the important information held in the battery backup memory device is read and used after the system power is restored. In the computer system, a battery backup setting switch for turning on / off the supply of backup power to the battery backup memory device, and a predetermined address of the battery backup memory device and a non-volatile memory stored in a non-volatile memory during the supply period of the system power. Means for storing second specific collation information identical to the stored first specific collation information; and, when the system power supply returns from a cut-off state, whether the battery backup setting switch is on or off. In a state First determining means for determining whether the battery backup memory device
And second comparing means for reading out the specific collation information and comparing it with the first specific collation information to determine whether or not the two specific collation information coincide with each other. With this configuration, the first determination unit determines that the battery backup setting switch is in the ON state, and the second determination unit matches the second specific verification information with the first specific verification information. When it is determined that the information stored in the battery backup memory device is normally held, the system is restarted, while the other determination results are obtained by the first and second determination means. In this case, it is determined that the information stored in the battery backup memory device has been lost, and a warning is issued and error processing is performed. One in which the.

(作 用) このような構成において、前記バッテリバックアップ
メモリ装置には所定のアドレスに照合用の特定情報を格
納してあり、コンピュータシステムのプロセッサには電
源復帰時にこのバッテリバックアップメモリ装置より前
記照合用の特定情報を読出して照合し、該特定情報が正
常でありかつバッテリバックアップ設定スイッチがオン
状態になっている場合に、前記バッテリバックアップメ
モリ装置の格納情報が正常に保持されていると判断する
機能を備えている。そして、電源復帰時にプロセッサは
バッテリバックアップメモリ装置より前記照合用の特定
情報を読出して照合し、該特定情報が正常であり、かつ
バッテリバックアップ設定スイッチがオン状態になって
いれば前記バッテリバックアップメモリ装置の格納情報
が正常に保持されていると判断してシステムの制御に移
る。照合の結果、前記特定情報が正常でなかったり、ま
たはバッテリバックアップ設定スイッチがオン状態にな
っていなければ、、前記バッテリバックアップメモリ装
置の保持情報は失われていると判断し、所定のエラー処
理等を行い、あるいは警告を出すなどしてシステムの制
御に入ることを阻止する。
(Operation) In such a configuration, the battery backup memory device stores specific information for collation at a predetermined address, and the processor of the computer system sends the collation specific information from the battery backup memory device when the power is restored. A function of reading out and collating the specific information, and determining that the storage information of the battery backup memory device is normally held when the specific information is normal and the battery backup setting switch is turned on. It has. When the power is restored, the processor reads the verification specific information from the battery backup memory device and verifies the specific information. If the specific information is normal and the battery backup setting switch is turned on, the processor determines that the specific information is normal. It is determined that the stored information is normally held, and the processing shifts to system control. As a result of the comparison, if the specific information is not normal or the battery backup setting switch is not turned on, it is determined that the information held in the battery backup memory device is lost, and a predetermined error process or the like is performed. Or enter a system control by issuing a warning.

このようにすることにより、システムの重要データを
保持するバックアップ付のメモリが電池電圧低下等によ
りデータ保存電圧以下となり、保存すべきデータが失わ
れているにも拘らず、正常と誤判断してシステムを再起
動するのを防止でき、信頼性の高いコンピュータシステ
ムを提供できる。
By doing so, the backup memory holding the important data of the system becomes equal to or lower than the data storage voltage due to a drop in battery voltage, etc., and although the data to be stored is lost, it is erroneously determined to be normal. The system can be prevented from restarting, and a highly reliable computer system can be provided.

(実施例) 第1図に本発明によるバッテリバックアップメモリを
使用したマイクロコンピュータシステムの構成図を示
す。図において、1はマイクロプロセッサ(CPU)であ
り、2はROM(リードオンリーメモリ)である。また、
3および4はRAMにより構成された第1および第2のメ
モリ回路であり、このうち、第2のメモリ回路4がスタ
チックRAMによるバッテリ・バックアップ・メモリとな
っている。5はバッテリバックアップ設定用スイッチで
あり、6はバックアップ用電池、7ぱI/O回路、8は電
源回路、9aおよび9bは逆流防止用のダイオードである。
前記電源回路8はシステムで使用する駆動電源を供給す
るものであり、通常、商用交流電源を変圧して直流化
し、必要な直流電圧を生成するもので、システムを構成
する素子に対し、この生成直流電圧を供給する。前記RO
M2には前記CPU1に実行させるべきプログラムが格納され
ており、また、前記第1のメモリ回路3は前記プログラ
ム実行に必要なデータ格納領域やワーキングエリア等と
して使用されるものである。また、前記第2のメモリ回
路4は保存する必要のあるシステムデータを格納するメ
モリであり、バックアップ電池6により、バックアップ
されている。逆流防止用のダイオード9aおよび9bは第2
のメモリ回路4の電源端子にそれぞれアノード側を接続
して設けてあり、このうち、ダイオード9aは電源回路8
からの供給出力を第2のメモリ回路4に与え、ダイオー
ド9bはバックアップ用電池6からの供給出力を第2のメ
モリ回路4に与える構成となっている。また、バッテリ
バックアップ設定用スイッチ5はバックアップ用電池6
の出力の第2のメモリ回路4へ供給のオン・オフを行う
ためのものであり、これをオンすると電池電源を供給し
てバックアップ状態となり、オフするとバックアップを
解除する状態となる。前記I/O回路7はバッテリバック
アップ設定スイッチ5の設定状態をCPU1に読み込ませる
ための入出力ポートであり、CPU1はこのI/O回路7を介
してバッテリバックアップ設定スイッチ5の設定状態情
報を読み込み、第2のメモリ回路4がバッテリバックア
ップされているか否かの情報を得るようにしてある。
(Embodiment) FIG. 1 shows a configuration diagram of a microcomputer system using a battery backup memory according to the present invention. In the figure, 1 is a microprocessor (CPU) and 2 is a ROM (Read Only Memory). Also,
Reference numerals 3 and 4 denote first and second memory circuits constituted by a RAM, of which the second memory circuit 4 is a battery backup memory using a static RAM. 5 is a battery backup setting switch, 6 is a backup battery, 7 I / O circuit, 8 is a power supply circuit, and 9a and 9b are backflow prevention diodes.
The power supply circuit 8 supplies a drive power supply used in the system. Usually, the power supply circuit 8 transforms a commercial AC power supply into a DC to generate a necessary DC voltage. Supply DC voltage. The RO
A program to be executed by the CPU 1 is stored in M2, and the first memory circuit 3 is used as a data storage area, a working area, and the like necessary for executing the program. The second memory circuit 4 is a memory for storing system data that needs to be stored, and is backed up by a backup battery 6. Diodes 9a and 9b for backflow prevention are second
The anode side is connected to the power supply terminal of the memory circuit 4 of each of the above.
Is supplied to the second memory circuit 4, and the diode 9 b is configured to supply the supply output from the backup battery 6 to the second memory circuit 4. The battery backup setting switch 5 is connected to the backup battery 6.
Is turned on / off to supply the output of the second memory circuit 4 to the second memory circuit 4. When this output is turned on, the battery power is supplied to the backup state, and when the output is turned off, the backup is released. The I / O circuit 7 is an input / output port for reading the setting state of the battery backup setting switch 5 into the CPU 1. The CPU 1 reads the setting state information of the battery backup setting switch 5 through the I / O circuit 7. , And obtains information on whether or not the second memory circuit 4 is backed up by a battery.

本システムはシステムの重要なデータは常に第2のメ
モリ回路4に退避させてあり、CPU1は必要時にいつでも
参照することができるようになっている。また、電源復
帰時には初期化し、その後、第2のメモリ回路4に退避
させてあるシステムの重要なデータを読出して初期設定
を行うと云った具合にROM2のシステムプログラムが構成
してあるが、その前に第2のメモリ回路4に退避させて
あるデータが失われているか否かをチェックする構成と
してある。このチェックはバッテリバックアップ設定用
スイッチ5の設定状態情報をもとに実施するが、本シス
テムが従来技術と大きく異なる点はこのチェックと共
に、第2のメモリ回路4の特定照合情報CDを照合してバ
ックアップ電池電圧の低下による第2のメモリ回路4の
保持データの消失をチェックをするようにした点であ
る。
In this system, important data of the system is always saved in the second memory circuit 4, so that the CPU 1 can refer to it whenever necessary. Further, the system program of the ROM 2 is configured such that initialization is performed when the power is restored, and thereafter, important data of the system saved in the second memory circuit 4 is read and initialized. It is configured to check whether or not data previously saved in the second memory circuit 4 has been lost. This check is performed based on the setting state information of the battery backup setting switch 5, but the point that this system is significantly different from the prior art is that the specific check information CD of the second memory circuit 4 is checked together with this check. The difference is that the loss of the data held in the second memory circuit 4 due to the drop in the backup battery voltage is checked.

すなわち、第2図(a),(b)に示すように読出し
専用メモリであるROM2及びバッテリバックアップ付の読
出し/書き込みメモリである第2のメモリ回路4の所定
アドレス領域に互いに同一の特定データにより構成した
バッテリバックアップチェック用の特定照合情報CDをそ
れぞれ格納し、電源復帰による再起動時にこの両データ
を読出して照合し、一致ならばデータ保持、不一致なら
ばデータ消失と判断する処理ルーチンをROM2に設けてあ
る点である。
That is, as shown in FIGS. 2 (a) and 2 (b), specific data identical to each other are stored in predetermined address areas of a read-only memory ROM2 and a second memory circuit 4 which is a read / write memory with battery backup. The configured specific backup information CD for the battery backup check is stored, and both data are read and collated at the time of restart upon power recovery. It is a point provided.

次にこのような構成の本装置の動作を説明する。 Next, the operation of the present apparatus having such a configuration will be described.

第1図において、再起動時にCPU1はROM2よりプログラ
ムを読出して必要に応じメモリ回路3及び4をアクセス
し、所定の処理を実行する。メモリ4はバッテリバック
アップ設定用スイッチ5の設定により、本システムが未
使用時または停電時にもバックアップ電池6より電源の
供給を受けて、記憶してあるデータの消滅を防止してい
る。そして、失われては困る重要なデータをこのメモリ
内に逐次記憶させ、データの更新時や、システムの初期
化時等には前記バッテリバックアップチェック用の特定
照合情報CDを第2のメモリ回路4の前記所定アドレスに
更新記憶させておく。
In FIG. 1, at the time of restart, the CPU 1 reads a program from the ROM 2, accesses the memory circuits 3 and 4 as necessary, and executes a predetermined process. By setting the battery backup setting switch 5, the memory 4 is supplied with power from the backup battery 6 even when the system is not used or when a power failure occurs, thereby preventing stored data from being lost. Then, important data that should not be lost is sequentially stored in this memory, and the specific verification information CD for battery backup check is stored in the second memory circuit 4 at the time of data update or system initialization. At the predetermined address.

本システムでは電源が切れて後、電源復帰して再起動
されるとまずCPU1はI/O回路7によりバッテリバックア
ップ設定スイッチ5の設定状態を読み込み、スイッチが
「オン」状態であるか否かを調べ、「オン」であればさ
らに第2のメモリ回路4の前記所定アドレス内に格納し
てある特定照合情報CDを読出し、ROM2に格納してある特
定照合情報CDと照合する。そして、両者が一致すればこ
の時点で初めて第2のメモリ回路4の保持データが正常
に保存されていると判断して所定の動作を実行するよう
にする。また、バッテリバックアップ設定スイッチ5が
「オフ」かまたは前記特定照合情報CDの照合結果が不一
致であれば、第2のメモリ回路4の保持データは失われ
ていると判断して警告を発令したり、エラー処理をする
等の処置をする。
In this system, when the power is turned off, the power is restored, and the power is restarted, the CPU 1 first reads the setting state of the battery backup setting switch 5 by the I / O circuit 7, and determines whether the switch is in the “on” state. It is checked, and if "ON", the specific collation information CD stored in the predetermined address of the second memory circuit 4 is read and collated with the specific collation information CD stored in the ROM 2. Then, if they match, it is only at this point in time that the data held in the second memory circuit 4 is determined to be stored normally and a predetermined operation is executed. If the battery backup setting switch 5 is “OFF” or the collation result of the specific collation information CD does not match, it is determined that the data held in the second memory circuit 4 has been lost and a warning is issued. , Error processing, etc.

従来システムでは電源が切れて後、電源復帰して再起
動されるとまずCPU1はI/O回路7によりバッテリバック
アップ設定スイッチ5の設定状態を読み込み、スイッチ
が「オン」状態の場合は保存すべきシステムデータがバ
ッテリバックアップメモリに保存されていると判断して
所定の動作を実行しており、この場合、バックアップ電
池の電圧低下等によりバッテリバックアップメモリのデ
ータ保持電圧以下となって該メモリのデータ保持が保証
されない状態があるにもかかわらず、バッテリバックア
ップ設定用スイッチ5の設定状態によってのみ、該メモ
リのバックアップ状態を判断していたため、誤判断する
危険があったが、本発明ではバッテリバックアップチェ
ック用データをROMとバッテリバックアップ対象メモリ
に書込んでおき、ソフトウエアにて両者をチェックする
ことにより保持データが正常が否かを知るようにしたの
で、保持データが失われていれば確実にこれをチェック
でき、従って、保持データ消失を知らずにシステムを再
起動する危険を防止出来て信頼性の高い、コンピュータ
システムが得られるようになる。
In the conventional system, when the power is turned off, the power is restored, and the power is restarted, the CPU 1 first reads the setting state of the battery backup setting switch 5 by the I / O circuit 7, and if the switch is in the "on" state, it should be saved. It determines that the system data is stored in the battery backup memory and executes a predetermined operation. In this case, the voltage falls below the data holding voltage of the battery backup memory due to a drop in the voltage of the backup battery or the like, and the data is held in the memory. Is not guaranteed, the backup state of the memory is determined only based on the setting state of the battery backup setting switch 5. Therefore, there is a risk of erroneous determination. Write the data to the ROM and memory for battery backup, and By checking both data by air to know whether the stored data is normal or not, if the stored data is lost, it can be surely checked if it is lost, so the system is restarted without knowing that the stored data is lost This can prevent the danger of causing a computer system to be highly reliable.

また、バッテリバックアップ付メモリの保持データの
バックアップ確認方法として、バッテリバックアップ付
メモリ内の領域の一部を使用するので、本方式は部品増
は殆ど無く、従って安価に実施できる。更にまた、バッ
テリバックアップ設定用スイッチが、停電時を含むシス
テムの電源オフ時に、何回かオン・オフ操作されて再起
動時に設定用スイッチが「設定」状態になっているよう
な場合、保存すべきデータの保存は保証されないが、本
発明によればそのような場合での誤起動も防止すること
ができる。
In addition, since a part of the area in the memory with battery backup is used as a method for confirming the backup of the data held in the memory with battery backup, this method hardly increases the number of components and can be implemented at low cost. Furthermore, if the battery backup setting switch is turned on and off several times when the system is turned off, including during a power failure, and the setting switch is in the "set" state at the time of restarting, save the battery. Although the storage of the data to be performed is not guaranteed, the present invention can prevent erroneous activation in such a case.

なお、本発明は上記し、且つ、図面に示す実施例に限
定することなく、その要旨を変更しない範囲内で適宜変
形して実施し得ることは勿論であり、例えば、上記実施
例ではROMとバッテリバックアップメモリの双方に照合
用のデータを格納したが、バッテリバックアップメモリ
の異なる複数アドレスにそれぞれ照合用データを記憶さ
せておき、これらをチェックするようにしても良い。ま
た、バッテリバックアップ設定用スイッチの設定状態は
必ずしも、チェックせずとも良いものである。また、バ
ッテリバックアップ識別用データに符号誤り検出用のパ
リティビット等を付加しても良くこれによりデータ消失
の検出能力を一層高めることが出来る。
It should be noted that the present invention is not limited to the embodiment described above and shown in the drawings, and it is a matter of course that the present invention can be appropriately modified and implemented within the scope not changing the gist. Although the collation data is stored in both of the battery backup memories, the collation data may be stored in a plurality of different addresses of the battery backup memory and checked. Also, the setting state of the battery backup setting switch does not necessarily need to be checked. Further, a parity bit or the like for detecting a code error may be added to the battery backup identification data, whereby the ability to detect data loss can be further enhanced.

[発明の効果] 以上詳述したように本発明はバッテリバックアップチ
ェック用の照合データをシステム動作中にバッテリバッ
クアップ付のメモリに転送して書き込んでおき、再起動
時にバッテリバックアップ付のメモリの照合データをチ
ェックするとともに、バッテリバックアップ設定スイッ
チのオン・オフ状態を判定し、上記照合データの正誤と
バッテリバックアップ設定スイッチのオン・オフ状態と
により正常にバックアップされたか否かをチェックする
ものであるから、重要なデータを保持させたバッテリバ
ックアップ付のメモリの保持データが正常に保持されて
いるか否かを高精度に知ることができ、従って、バック
アップ電池の電圧低下等によるデータ消失があればこれ
を直ちに知ることができるので誤動作を未然に防ぐこと
ができる等、信頼性の高い再起動操作が可能になるコン
ピュータシステムを提供することができる。
[Effects of the Invention] As described in detail above, the present invention transfers the collation data for battery backup check to a memory with battery backup during system operation and writes the collation data. And the ON / OFF state of the battery backup setting switch is determined, and whether or not the backup data is normally backed up by the correctness of the verification data and the ON / OFF state of the battery backup setting switch is checked. It is possible to know with high accuracy whether or not the data held in the battery-backed memory holding important data is normally held. Therefore, if data is lost due to a drop in the backup battery voltage, etc. So you can prevent malfunctions before they happen. It is possible to provide a computer system capable of performing a highly reliable restart operation.

【図面の簡単な説明】 第1図は本発明の一実施例を示すブロック図、第2図は
本装置に使用するメモリにおけるバッテリバックアップ
チェック用の照合データの格納エリアを示すメモリマッ
プである。 1……マイクロプロセッサ(CPU)、2……ROM(リード
オンリーメモリ)、3,4……メモリ回路、5……バッテ
リバックアップ設定用スイッチ、6……バックアップ用
電池、7……I/O回路、8……電源回路、9a,9b……逆流
防止用のダイオード。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 is a memory map showing a storage area of verification data for battery backup check in a memory used in the present apparatus. 1 microprocessor (CPU), 2 ROM (read only memory), 3, 4 memory circuit, 5 battery backup setting switch, 6 backup battery, 7 I / O circuit , 8... Power supply circuit, 9a, 9b...

───────────────────────────────────────────────────── フロントページの続き (72)発明者 奥川 守文 東京都千代田区内幸町1丁目1番6号 日本電信電話株式会社内 (72)発明者 中村 公俊 東京都千代田区内幸町1丁目1番6号 日本電信電話株式会社内 (56)参考文献 特開 昭63−276111(JP,A) 特開 昭57−3121(JP,A) 特開 昭63−34654(JP,A) 特開 昭62−169218(JP,A) ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Morifumi Okukawa 1-1-6 Uchisaiwaicho, Chiyoda-ku, Tokyo Nippon Telegraph and Telephone Corporation (72) Inventor Kimitoshi Nakamura 1-1-6 Uchisaiwaicho, Chiyoda-ku, Tokyo Japan (56) References JP-A-63-276111 (JP, A) JP-A-57-3121 (JP, A) JP-A-63-34654 (JP, A) JP-A-62-169218 (JP JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】バッテリバックアップメモリ装置を有し、
保存すべき重要情報をこのバッテリバックアップメモリ
装置に保持させると共に、このバッテリバックアップメ
モリ装置に保持させた重要情報をシステム電源の復帰後
に読出して使用するようにしたコンピュータシステムに
おいて、 前記バッテリバックアップメモリ装置に対するバックア
ップ用電源の供給をオン・オフするバッテリバックアッ
プ設定スイッチと、 前記システム電源の供給期間中において、バッテリバッ
クアップメモリ装置の所定のアドレスに、不揮発性メモ
リに予め記憶してある第1の特定照合情報と同一の第2
の特定照合情報を格納する手段と、 前記システム電源が断状態から復帰した場合に、前記バ
ッテリバックアップ設定スイッチがオン状態になってい
るかオフ状態になっているかを判定する第1の判定手段
と、 前記バッテリバックアップメモリ装置より前記第2の特
定照合情報を読出してこれを前記第1の特定照合情報と
照合し、両特定照合情報が一致するか否かを判定する第
2の判定手段と、 前記第1の判定手段により前記バッテリバックアップ設
定スイッチがオン状態になっていると判定され、かつ前
記第2の判定手段により第2の特定照合情報が第1の特
定照合情報と一致すると判定された場合に、前記バッテ
リバックアップメモリ装置の格納情報は正常に保持され
ていると判断してシステムの再起動を行ない、一方前記
第1および第2の判定手段によりその他の判定結果が得
られた場合には、前記バッテリバックアップメモリ装置
の格納情報は失われていると判断して警告の発生および
エラー処理を行なう手段とを備えたことを特徴とするコ
ンピュータシステム。
A battery backup memory device;
A computer system in which important information to be stored is held in the battery backup memory device, and the important information held in the battery backup memory device is read and used after system power is restored. A battery backup setting switch for turning on / off the supply of backup power; and first specific collation information stored in a non-volatile memory at a predetermined address of a battery backup memory device during a supply period of the system power. The same as the second
Means for storing the specific collation information, and first determining means for determining whether the battery backup setting switch is in an on state or an off state when the system power supply returns from a cut-off state, A second determination unit that reads the second specific collation information from the battery backup memory device, collates the second specific collation information with the first specific collation information, and determines whether both the specific collation information match; When the first determination means determines that the battery backup setting switch is turned on, and when the second determination means determines that the second specific collation information matches the first specific collation information. Then, it is determined that the information stored in the battery backup memory device is normally held, and the system is restarted. Means for performing a warning and performing an error process by determining that the storage information of the battery backup memory device is lost when another determination result is obtained by the determination means. Computer system.
JP1183607A 1989-07-18 1989-07-18 Computer system Expired - Fee Related JP2731251B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1183607A JP2731251B2 (en) 1989-07-18 1989-07-18 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1183607A JP2731251B2 (en) 1989-07-18 1989-07-18 Computer system

Publications (2)

Publication Number Publication Date
JPH0348915A JPH0348915A (en) 1991-03-01
JP2731251B2 true JP2731251B2 (en) 1998-03-25

Family

ID=16138759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1183607A Expired - Fee Related JP2731251B2 (en) 1989-07-18 1989-07-18 Computer system

Country Status (1)

Country Link
JP (1) JP2731251B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63276111A (en) * 1987-05-07 1988-11-14 Oki Electric Ind Co Ltd Start system for microcomputer applied device

Also Published As

Publication number Publication date
JPH0348915A (en) 1991-03-01

Similar Documents

Publication Publication Date Title
US6715106B1 (en) Bios corruption detection system and method
JP3460256B2 (en) Battery disconnection detector
US5960195A (en) Intelligent volatile memory initialization
US20060206764A1 (en) Memory reliability detection system and method
EP0886211A2 (en) Initial program load
JP3376306B2 (en) Data processing apparatus and data processing method
JPH0527880A (en) System restart device
JP2830302B2 (en) Automotive control device
JP2731251B2 (en) Computer system
CN113094107B (en) Data protection method, device, equipment and computer storage medium
JPH03147086A (en) Ic card
CN111783162A (en) Data protection implementation method and device and computer equipment
JP2967219B2 (en) External power supply for digital computer
JP2000059981A (en) Digital protective relay device
JP3046328B2 (en) Pachinko game machine controller
JPH02297237A (en) Automatic restarting device for electronic computer system
JP2755065B2 (en) Information processing device
JPH0120775B2 (en)
JP2000181510A (en) Backup data protecting method for programmable controller, and programmable controller
JPH05108506A (en) Automatic driver repairing device
JP2001331382A (en) Method and device for managing nonvolatile memory
JP3281113B2 (en) Abnormality detection circuit of microcomputer system
JP3743726B2 (en) Dual system control device and automatic start method of the control program
JPS6234358Y2 (en)
JPH04181447A (en) Computer system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees