JPS6211918A - Checking system for memory back-up battery - Google Patents

Checking system for memory back-up battery

Info

Publication number
JPS6211918A
JPS6211918A JP60151540A JP15154085A JPS6211918A JP S6211918 A JPS6211918 A JP S6211918A JP 60151540 A JP60151540 A JP 60151540A JP 15154085 A JP15154085 A JP 15154085A JP S6211918 A JPS6211918 A JP S6211918A
Authority
JP
Japan
Prior art keywords
memory
address
check
battery
contents
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
JP60151540A
Other languages
Japanese (ja)
Inventor
Hiroshi Maruyama
浩 丸山
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 JP60151540A priority Critical patent/JPS6211918A/en
Publication of JPS6211918A publication Critical patent/JPS6211918A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the program runaways and the destruction of the check data due to the program logic conflict without using any exclusive device, by providing the battery check data on a memory with a space of a fixed piece of data or more. CONSTITUTION:When an address (a) is used as a battery check memory X for memory back-up, the address (b) of the 2nd check memory Y is set at a place away from the address (a) of the memory X by (c) bytes or more. In other words,the memory contents show X(AA) in the address (a) together with the memory contents showing Y(SS) in the address (b) respectively. Thus it is avoided that both the check data X and check data Y are destructed at a time by a single instruction. Furthermore, the contents of the address (b) are secured as long as a back-up batter 5 is normal even in case the logic conflict occurs during the operation of a system 1 and the contents of the address (a) are destructed. This improves the reliability with the system restart processing.

Description

【発明の詳細な説明】 〔概要〕 メモリのバックアップバッテリーが枯渇しているか否か
をチェックの為前記メモリ上に或る一定アドレス以上離
れて複数個のチェックデータを配置する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] In order to check whether the backup battery of the memory is depleted or not, a plurality of pieces of check data are arranged on the memory at a distance of a certain address or more.

〔産業上の利用分野〕[Industrial application field]

本発明はマイクロプロセッサ及びバックアップバッテリ
ーを備えたメモリを有するシステムに係り、特に専用の
チェック装置を持つことなく且つ従来より高い信頼性を
有するメモリバックアソプバソテリーチェソク方式に関
するものである。
The present invention relates to a system having a memory equipped with a microprocessor and a backup battery, and more particularly to a memory backup battery check system that does not require a dedicated checking device and has higher reliability than the conventional system.

従来使用されているメモリパソクアンプバソテリーチェ
ック方式の内、ソフトウェアに依る方式の場合にはプロ
グラムの暴走やプログラム論理の矛盾により、チェック
データが破壊されることがあると云う欠点があり、此の
改善が強く望まれていた。
Among conventional memory and amplifier battery check methods, those that rely on software have the disadvantage that check data may be destroyed due to runaway programs or inconsistencies in program logic. Improvement was strongly desired.

〔従来の技術〕[Conventional technology]

普通のメモリは停電になると其の記憶内容が当然消えて
しまう。停電になっても記憶内容が消えない様にする為
にはROM等の特殊なメモリを使用する方法と専用のバ
ッテリーにより動作するメモリを使用する方法がある。
Normal memory naturally loses its memory contents when there is a power outage. In order to prevent memory contents from being erased even in the event of a power outage, there are two methods: using special memory such as ROM, and using memory operated by a dedicated battery.

此の専用のバッテリーにより駆動するメモリを使用する
場合には、其のバッテリーが正常に動作しているか否か
、即ちバッテリーが枯渇しているか否かをチェックしな
がら使用する必要がある。
When using a memory powered by such a dedicated battery, it is necessary to check whether the battery is operating normally, that is, whether the battery is depleted.

此のメモリバックアップバッテリーチェック方式として
は、専用のチェック装置を持ちチェック信号をハードウ
ェアメモリ上に通知する方式とメモリの特定番地に予め
書き込まれた固定値をプログラムによりチェックする方
式とがある。
As this memory backup battery checking method, there are two methods: one has a dedicated check device and notifies a check signal on the hardware memory, and the other uses a program to check a fixed value written in advance at a specific address in the memory.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

然しなから専用のチェック装置を持つ方式は価格が高く
なり、システムのスペースが増大すると云う欠点がある
However, the system having a dedicated checking device has the drawbacks of being expensive and increasing the space of the system.

又プログラムを使用する方式はプログラムの暴走やプロ
グラム論理の矛盾により上記番地の固定値を破壊した場
合にバッテリーの枯渇と誤認すると云う欠点があった。
Furthermore, the system using a program has the disadvantage that if the fixed value of the address is destroyed due to a program runaway or a contradiction in the program logic, it may be mistaken as a battery depletion.

本発明の目的はメモリバックアップバッテリーチェック
の為の何等の専用装置を使用することなく、且つプログ
ラムの暴走やプログラム論理の矛盾によるチェックデー
タ破壊に強いチェック方式を提供することである。
An object of the present invention is to provide a check method that does not require any special equipment for checking a memory backup battery and is resistant to destruction of check data due to program runaway or contradiction in program logic.

〔問題点を解決するための手段〕 上記問題点はマイクロプロセッサ2及びバックアップバ
ッテリ−5を備えたメモリ3を有するシステムに於いて
、前記メモリ3上に或る一定アドレスC以上離れて複数
個のチェックデータX、Y等を配置して前記バックアッ
プバッテリー5の良否をチェックすることにより解決さ
れる。
[Means for Solving the Problems] The above problem is that in a system having a memory 3 equipped with a microprocessor 2 and a backup battery 5, a plurality of This problem can be solved by arranging check data X, Y, etc. to check the quality of the backup battery 5.

〔作用〕[Effect]

本発明に依るとマイクロプロセッサの具備する命令機能
を考慮し、−命令で同時に破壊することのできる番地の
連続した最大メモリエリアより大きく離れた番地にバッ
テリーチェック用のデータX及びY等を設けることによ
り、プログラムの暴走やプログラム論理の矛盾に対する
防護策を強化出来ると云う効果が生まれる。
According to the present invention, in consideration of the instruction function provided by the microprocessor, data for battery checking, such as data X and Y, is provided at an address that is far away from the maximum consecutive memory area of addresses that can be simultaneously destroyed by an instruction. This has the effect of strengthening protection against runaway programs and inconsistencies in program logic.

〔実施例〕〔Example〕

第1図は本発明に依るメモリバックアップバッテリーチ
ェック方式の一実施例を示す図である。
FIG. 1 is a diagram showing an embodiment of a memory backup battery checking method according to the present invention.

第2図は本発明に依るチェックデータの配置の説明図で
ある。
FIG. 2 is an explanatory diagram of the arrangement of check data according to the present invention.

図中、1はマイクロプロセッサ及びバックアップバッテ
リーを備えたメモリを有するシステム、2はマイクロプ
ロセッサ、3はメモリ、4はバックアップバッテリーを
必要としないメモリ、5はメモリ3のバックアップバッ
テリー、6は主電源である。
In the figure, 1 is a system having a memory with a microprocessor and a backup battery, 2 is a microprocessor, 3 is a memory, 4 is a memory that does not require a backup battery, 5 is a backup battery for the memory 3, and 6 is a main power source. be.

第1図に示すシステム1は常時外部からの主電源6から
電源を供給されて動作しているが、メモ+J 3は停電
時でも其の記憶内容が消滅しない様にバックアップバッ
テリー5により電源を供給されている。尚メモリ4はバ
ックアップバッテリーを必要としないメモリである。
The system 1 shown in Fig. 1 is always powered by an external main power source 6, but the Memo+J 3 is powered by a backup battery 5 so that its memory contents will not be lost even in the event of a power outage. has been done. Note that the memory 4 is a memory that does not require a backup battery.

主電源6が停電した場合にマイクロプロセッサ2は其の
動作を停止する。
When the main power supply 6 loses power, the microprocessor 2 stops its operation.

然しメモリ3はバックアップバッテリー5により電源が
供給されているので主電源6が停電した場合でも其の記
憶内容は失われることなく保持される。
However, since the memory 3 is powered by the backup battery 5, its stored contents are retained without being lost even if the main power supply 6 is interrupted.

停電後或る時間経過して主電源6が復旧した場合には、
マイクロプロセッサ2は直ちに動作を再開してシステム
1用の再開処理プログラムRが起動出来る。
If the main power supply 6 is restored after a certain period of time after a power outage,
The microprocessor 2 immediately resumes operation and the restart processing program R for the system 1 can be activated.

第2図に於いては例えばインテル8086マイクロプロ
セソサ等に見られるセグメント方式を使用するアドレス
/メモリ管理方式の場合のメモリ配置を示している。
FIG. 2 shows a memory arrangement in the case of an address/memory management system using a segment system, which is found in, for example, the Intel 8086 microprocessor.

即ち、例えばインテル8086マイクロプロセツサを例
に取ると一つのデータ転送命令の指定するメモリの1セ
グメントは、セグメントAに示す様に最少16バイト〜
最大65536バイトで構成され、此のセグメント単位
により、データ転送命令が行われる。
That is, taking the Intel 8086 microprocessor as an example, one segment of memory specified by one data transfer instruction is at least 16 bytes as shown in segment A.
It consists of a maximum of 65,536 bytes, and data transfer commands are executed in units of segments.

従ってメモリバックアップバッテリーチェックメモリX
用としてアドレスa 〔メモリ内容AA)を用いた場合
、第2のチェックメモリYのアドレスb〔メモリ内容S
S〕は、第1のチェックメモリXのアドレスから655
37バイト以上離れた箇所にアドレスを設置する。
Therefore memory backup battery check memory
When address a [memory content AA] is used for the second check memory Y, address b [memory content S
S] is 655 from the address of the first check memory
Set the address at a location more than 37 bytes away.

即ち、b−a >65537 ハイド−Cハイド此の様
にチェックデータXのアドレスaとチェックデータYの
アドレスbがCバイト以上離れていれば、チェックデー
タXとチェックデータYが一命令で同時に破壊されるこ
とばない。
That is, b-a > 65537 Hyde-C Hyde If address a of check data X and address b of check data Y are separated by more than C bytes like this, check data There are no words to be said.

停電が復旧して主電源6が動作した場合にはマイクロプ
ロセッサ2は直ちに動作を再開し、システム1用の再開
処理プログラムRを起動する。
When the power is restored and the main power supply 6 is activated, the microprocessor 2 immediately resumes operation and starts the restart processing program R for the system 1.

再開処理プログラムRはバッテリーを必要としないメモ
リ4に格納されており、メモリ4には普通読み出し専用
メモリROM等を使用する。
The restart processing program R is stored in a memory 4 that does not require a battery, and the memory 4 normally uses a read-only memory ROM or the like.

マイクロプロセッサ2はメモリ4から再開処理プログラ
ムRを読み出して再開処理プログラムRを起動する。
The microprocessor 2 reads the restart processing program R from the memory 4 and starts the restart processing program R.

再開処理プログラムRは先づ上記メモリ3のアドレスa
のチェックデータX1及びアドレスbのチェックデータ
Yの内容をチェックし、若しヂエックデータX及びチェ
ックデータYの内容が共に破壊されていた場合にはバッ
クアップバッテリー5が枯渇していると判定し、メモリ
3内の全データの初期化を行う。
The restart processing program R first starts at address a of the memory 3.
The contents of check data X1 and check data Y of address b are checked, and if the contents of check data X and check data Y are both destroyed, it is determined that the backup battery 5 is exhausted, and the memory 3 Initialize all data in the file.

其れ以外の場合にはバックアップバッテリ−5は正常で
あると見做し、メモリ3内の必要最少限のエリアに就い
てのみ初期化を行う。
In other cases, the backup battery 5 is assumed to be normal, and only the minimum necessary area in the memory 3 is initialized.

次にシステム1が運転中にプログラム論理矛盾が起こり
、此の為アドレスaの内容を破壊したが、システム運用
には支障がなかったとする。
Next, suppose that a program logic contradiction occurs while system 1 is operating, and as a result, the contents of address a are destroyed, but there is no problem with system operation.

此の状態でシステム1の主電源6の切断/投入を行った
としてもバックアップバッテリー5が正常である限りメ
モリ3のアドレスbの内容は保持されているので、バン
クアップバッテリー5の枯渇とは見做されず、メモリ3
内の必要最少限のエリアに就いてのみ初期化され、其の
他のデータは其の侭保持することが出来、従ってシステ
ム再開処理の信頼性は高くなる。
Even if the main power supply 6 of the system 1 is turned off/on in this state, the contents of address b in the memory 3 will be retained as long as the backup battery 5 is normal, so it is not considered that the bank-up battery 5 is depleted. Memory 3
Only the minimum necessary area within the system is initialized, and other data can be preserved, thus increasing the reliability of the system restart process.

尚運用開始前にパンクアップバソテリーチェソクメモリ
X及びYの内容は再設定しておく必要がある。
It is necessary to reset the contents of the puncture-up bath battery check memories X and Y before starting operation.

又第1図及び第2図は例えばインテル8086マイクロ
プロセソサ等に見られるセグメント方式を使用するアド
レス/メモリ管理方式の場合を例に取ってチェックデー
タをCバイト以上離す方法に就いて説明したが、あくま
でも本発明の一実施例に過ぎず、別種のマイクロプロセ
ッサによるアドレス/メモリ管理方式の場合にも本発明
の効果は変わらない。
In addition, FIGS. 1 and 2 illustrate a method for separating check data by C bytes or more, taking as an example the address/memory management method that uses the segment method found in the Intel 8086 microprocessor, etc. This is merely one embodiment of the present invention, and the effects of the present invention remain the same even in the case of an address/memory management system using a different type of microprocessor.

〔発明の効果〕〔Effect of the invention〕

以上詳細に説明した様に本発明によれば、プログラムの
暴走やプログラム論理の矛盾に依るメモリ破壊時のメモ
リハックアップバッテリーの枯渇チェックの誤認防護が
強化される為システムの信頼性が高められると云う大き
い効果がある。
As explained in detail above, according to the present invention, system reliability is improved because protection against false recognition of memory hack-up battery depletion check in the event of memory corruption due to program runaway or inconsistency in program logic is strengthened. There is a big effect.

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

第1図は本発明に依るメモリバックアップバッテリーチ
ェック方式の一実施例を示す図である。 第2図は本発明に依るチェックデータの配置の説明図で
ある。 図中、1はマイクロプロセッサ及びバックアップバッテ
リーを備えたメモリを有するシステム、2はマイクロプ
ロセッサ、3はメモリ、4ばバックアンプバッテリーを
必要としないメモリ、5はメモリ3のバックアップバッ
テリー、6は主電源である。
FIG. 1 is a diagram showing an embodiment of a memory backup battery checking method according to the present invention. FIG. 2 is an explanatory diagram of the arrangement of check data according to the present invention. In the figure, 1 is a system having a memory including a microprocessor and a backup battery, 2 is a microprocessor, 3 is memory, 4 is memory that does not require a backup amplifier battery, 5 is a backup battery for memory 3, and 6 is a main power supply It is.

Claims (1)

【特許請求の範囲】 マイクロプロセッサ(2)及びバックアップバッテリー
(5)を備えたメモリ(3)を有するシステムに於いて
、 前記メモリ(3)上に或る一定アドレス(C)以上離れ
て複数個のチェックデータを配置して前記バックアップ
バッテリー(5)の良否をチェックすることを特徴とす
るメモリバックアップバッテリーチェック方式。
[Claims] In a system having a memory (3) equipped with a microprocessor (2) and a backup battery (5), a plurality of microprocessors located at a certain address (C) or more apart on the memory (3) are provided. A memory backup battery checking method characterized in that the quality of the backup battery (5) is checked by arranging check data.
JP60151540A 1985-07-10 1985-07-10 Checking system for memory back-up battery Pending JPS6211918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60151540A JPS6211918A (en) 1985-07-10 1985-07-10 Checking system for memory back-up battery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60151540A JPS6211918A (en) 1985-07-10 1985-07-10 Checking system for memory back-up battery

Publications (1)

Publication Number Publication Date
JPS6211918A true JPS6211918A (en) 1987-01-20

Family

ID=15520744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60151540A Pending JPS6211918A (en) 1985-07-10 1985-07-10 Checking system for memory back-up battery

Country Status (1)

Country Link
JP (1) JPS6211918A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63192838U (en) * 1987-05-27 1988-12-12

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63192838U (en) * 1987-05-27 1988-12-12

Similar Documents

Publication Publication Date Title
JPS6211918A (en) Checking system for memory back-up battery
JPS62111776A (en) Control method for printer
JPH064417A (en) Battery backup control system for memory
JPH02165344A (en) Hot stand-by system
JPS61141047A (en) Saving system of trouble information
JPS6014345A (en) Protecting system of program runaway
JPS5873099A (en) Data processor
JPS58168121A (en) Processing system of power failure restoration
JPS6020779B2 (en) Composite computer system
JPS59154698A (en) Protecting system of control storage
JP2001084179A (en) Automatic backup system and recording medium recording automatic backup program
JPH04128961A (en) Multi-processor control system
JPS60132250A (en) Restarting method of control device
JPS6226738B2 (en)
JPS62209627A (en) Data processor
JPS6252650A (en) Memory checking method
JPS62126452A (en) Memory load system
JPS6121539A (en) Generation management system of data file
JPS608962A (en) Temporary fault detecting system of storage information
JPS63165951A (en) Common memory protecting system
JPS61236098A (en) Rom program controller
JPH0511336B2 (en)
JPH01102643A (en) Data processing system
JPS59121525A (en) Subchannel control system
JPS6257048A (en) Decentralized processor system