JPH0973417A - Multiple memory control method - Google Patents

Multiple memory control method

Info

Publication number
JPH0973417A
JPH0973417A JP7226361A JP22636195A JPH0973417A JP H0973417 A JPH0973417 A JP H0973417A JP 7226361 A JP7226361 A JP 7226361A JP 22636195 A JP22636195 A JP 22636195A JP H0973417 A JPH0973417 A JP H0973417A
Authority
JP
Japan
Prior art keywords
flag
address
writing
normal
information
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
JP7226361A
Other languages
Japanese (ja)
Inventor
Toshiya Morita
俊哉 森田
Norihiro Uchiyama
律浩 内山
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP7226361A priority Critical patent/JPH0973417A/en
Publication of JPH0973417A publication Critical patent/JPH0973417A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To attain highly reliable memory control under simple control with simple constitution while a method which records the same information in duplex memories is powerless for a fault having the possibility that files in both the memories are destroyed. SOLUTION: This method has a step wherein an information memory is divided into areas 1 and 2, areas of normalcy flags 1 and 2 showing that each wiring process is normal are provided, and the normalcy flags are made ineffective at the time of writing to write data in the area 1, a step wherein the normalcy flag 1 is rewritten after the data writing ends, a step wherein the flags are made ineffective as well, data are written in the area 2, and the normalcy flag 2 is rewritten into normal states, a step the normalcy flags 1 are read out first at the time of reading and the data in the area 1 are read out as normal data when the flag shows normalcy, and a step wherein the data in the area 2 are read out as normal data when the normalcy flag 1 is ineffective and the normalcy flag 2 is normal.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、通信機器や情報
機器のメモリの保持情報に対する信頼性を高めた多重メ
モリ制御方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiple memory control method for improving reliability of information held in memories of communication equipment and information equipment.

【0002】[0002]

【従来の技術】一般に、通信機器等を含む情報処理装置
では、様々な設定情報・履歴情報をメモリに蓄え、この
情報を基に、装置動作及び外部の管理制御装置間との動
作が行える。従って、これらの情報は、極めて重要であ
り、電源の停止及び瞬断又はメモリ基板のオンライン挿
抜により損なわれるものであってはならない。従来は、
信頼性の高い情報保持のため、メモリ基板にバックアッ
プ用バッテリを設けることで対応してきた。しかしなが
ら、保持性や電池使用を避けるため、最近はRAMセル
とEEPROMセルからなる不揮発性RAMを用いてい
る。これは、電圧値が、ある値以下(Vstとする)に
なると、RAMセルの内容をEEPROMセルに転写し
て保持し(以下、ストア動作とする)、電圧値が、ある
値(Vrcとする)以上になると、EEPROMセルの
内容をRAMセルに転写して(以下、リコール動作とす
る)、プロセッサ等のアクセスが可能となる。ところ
が、この方式もRAMセルへの書き込み中の電源ONか
らOFF(瞬断も含む)の過渡状態においては、電圧変
動等ノイズによるストア動作の誤動作又は電圧=Vst
より、やや高い電圧値で不揮発性RAM周辺の各種IC
の正常動作が保証されずに、誤った情報がRAMセルに
書き込まれ、電圧=VstでEEPROMセルに誤った
情報が転写される可能性がある。
2. Description of the Related Art Generally, in an information processing apparatus including a communication device, various setting information and history information are stored in a memory, and the operation of the apparatus and the operation between external management control apparatuses can be performed based on this information. Therefore, these pieces of information are extremely important and should not be impaired by the interruption and interruption of the power supply or the online insertion / removal of the memory board. conventionally,
In order to retain information with high reliability, a memory battery has been provided with a backup battery. However, in order to avoid the holding property and use of the battery, recently, a non-volatile RAM composed of a RAM cell and an EEPROM cell is used. This is because when the voltage value becomes a certain value or less (Vst), the content of the RAM cell is transferred to an EEPROM cell and held (hereinafter, store operation), and the voltage value is a certain value (Vrc). In the above case, the contents of the EEPROM cell are transferred to the RAM cell (hereinafter referred to as a recall operation), and the processor or the like can be accessed. However, also in this method, in a transient state from power ON to OFF (including instantaneous interruption) during writing to the RAM cell, malfunction of the store operation due to noise such as voltage fluctuation or voltage = Vst
ICs around non-volatile RAM with slightly higher voltage value
There is a possibility that incorrect information is written in the RAM cell without guaranteeing the normal operation and the incorrect information is transferred to the EEPROM cell at the voltage = Vst.

【0003】他の従来例として、これらの要因による誤
った情報を基に、電源復旧後又はメモリ基板のオンライ
ン挿入後、装置が再起動することを防ぐため、特開平6
−332805号、特開平5−46494号公報では、
下記の方法で情報の信頼性を高めている。即ち、同一情
報を複数の領域に書き込み、電源復旧後に各領域の情報
を読み出して、それぞれ比較を行うことにより信頼性の
判定を行う。その判定は、少なくとも、2つの領域から
読み出した情報が同一であることをもって正常とする。
更に、他の従来例として、特開平2−125350号公
報では、予めメモリ領域の複数の番地に固定パターンを
書き込み、電源復旧後に情報を読み出した時点で、その
複数の番地の情報が全て予め書き込まれた固定パターン
と一致しているか否かにより、情報の信頼性を判定す
る。図6は、通信装置等のバックアップメモリ制御の一
例のブロック図である。図7には、上記の判定方法によ
るバックアップメモリ制御方式について説明している。
図7では、メモリ領域を領域1(91)、領域2(9
2)・・・、領域N(93)に複数分割している。通常
時、プロセッサ等は、メモリへの書き込み情報が発生す
ると、ステップS81〜S84でその情報を、メモリ領
域1(91)〜N(93)それぞれに書き込む((W
1)〜(WN))。その後、電源異常が発生した時、こ
れらの情報は、EEPROMセルに転写され復旧後にR
AMセルに戻る。この時、ステップS91で領域1〜N
の情報を、それぞれ読み出し((R1)〜(RN))、
ステップS92,S93,S96で領域1の情報を中心
に比較を行い、少なくとも1つの他領域の情報と一致す
るなら、領域1の情報を正しいと看做す。この例では、
2つ以上の領域の組み合わせでステップS94,S9
7,S98と、相当繁雑な判断処理が必要となる。
As another conventional example, based on erroneous information due to these factors, in order to prevent the device from being restarted after power is restored or a memory board is inserted online, Japanese Patent Laid-Open No. Hei 6 (1994) -1999
-332805 and Japanese Patent Laid-Open No. 5-46494,
The following methods are used to increase the reliability of information. That is, the same information is written in a plurality of areas, the information in each area is read out after the power is restored, and the comparison is performed to determine the reliability. The determination is normal when at least the information read from the two areas is the same.
Further, as another conventional example, in Japanese Unexamined Patent Publication No. 2-125350, when a fixed pattern is written in advance in a plurality of addresses in a memory area and the information is read out after the power is restored, all the information in the plurality of addresses is written in advance. The reliability of the information is determined by whether or not it matches the fixed pattern. FIG. 6 is a block diagram of an example of backup memory control of a communication device or the like. FIG. 7 illustrates a backup memory control method based on the above determination method.
In FIG. 7, the memory area is defined as area 1 (91) and area 2 (9
2) ..., A plurality of areas N (93) are divided. Normally, when information to be written in the memory is generated, the processor or the like writes the information in each of the memory areas 1 (91) to N (93) in steps S81 to S84 ((W
1) to (WN)). After that, when a power failure occurs, these pieces of information are transferred to the EEPROM cell and R is restored after restoration.
Return to AM cell. At this time, in steps S91, areas 1 to N
Of information ((R1) to (RN)),
In steps S92, S93, and S96, the information about the area 1 is mainly compared, and if the information matches the information about at least one other area, the information about the area 1 is regarded as correct. In this example,
Steps S94 and S9 in combination of two or more areas
7, S98 and a considerably complicated judgment process are required.

【0004】更に、他の従来例として、特開平4−30
5743号公報では、正副2つのファイル記憶用メモリ
101Aと101Bに、ファイル毎に同一ボリュームの
書き込みを行う(ステップS110,S111)。読み
出し時には、どちらを正に指定したかを調べ(ステップ
S103,S104)、正側のファイル、例えば、11
1Aからデータを読み出す(ステップS105)。とこ
ろで、このシステムは、前提があって、ファイル111
Aと111Bのどちらが正側になるかは、メモリアクセ
ス実行前に更新記録を調べた上で決定する。つまり、属
性を設定するプロセスがある。一方に不具合があり、更
新がされないと、そちらのファイルは、不具合があると
判定されて古くなり、新の方が正となるという前提があ
る。
Further, as another conventional example, Japanese Patent Application Laid-Open No. 4-30
In the Japanese Patent No. 5743, the same volume is written for each file in the two primary and secondary file storage memories 101A and 101B (steps S110 and S111). At the time of reading, it is checked which one is specified as positive (steps S103 and S104), and the file on the positive side, for example, 11
Data is read from 1A (step S105). By the way, this system has a premise that the file 111
Which of A and 111B is the positive side is determined after checking the update record before executing the memory access. That is, there is a process of setting attributes. If there is a defect on one side and it is not updated, it is assumed that the file will be determined to be defective and will become old, and the new one will be positive.

【0005】[0005]

【発明が解決しようとする課題】従来のバックアップメ
モリ制御方法は上記のように構成されているので、以下
のような課題があった。即ち、複数の同一情報を読み出
して比較または多数決でデータを得る方法は、回路規模
が大きくなり、かつ処理時間がかかる。異常時には記憶
していた情報を破棄する方法は、再起動に時間がかか
り、かつ履歴情報が得られず障害解析が困難でもある。
また2重化メモリに同一情報を同時に記録する方法で
は、ハードウェアの故障に対しては有効であるが、電源
の瞬断のように両方のメモリのファイルが破壊される可
能性がある障害には無力であり、かつ管理情報ファイル
を持つ必要があった。
Since the conventional backup memory control method is configured as described above, it has the following problems. That is, the method of reading a plurality of pieces of the same information and obtaining the data by comparison or majority decision requires a large circuit scale and processing time. The method of discarding the stored information at the time of abnormality requires a long time for restarting, and history information cannot be obtained, and failure analysis is difficult.
Also, the method of simultaneously recording the same information in the dual memory is effective for hardware failure, but it may cause a failure in which files in both memories may be destroyed, such as a momentary power failure. Was powerless and needed to have a management information file.

【0006】[0006]

【課題を解決するための手段】この発明に係る多重メモ
リ制御方法は、同一情報を含むバックアップ情報用メモ
リを2つの情報領域1と2に区分し、また各情報領域1
ないし2の書き込みが正常であることを示すフラグ1な
いし2の領域を設け、書き込みに際してはまずフラグ1
を無効とし、続いて領域1にデータを書き込むステップ
と、データ書込終了後、フラグ1を書き戻すステップ
と、続いて同様にフラグを無効、領域2にデータを書き
込み、更にフラグ2を正常と書き戻すステップと、読み
出しに際してはまずフラグ1を読み出して正常ならば領
域1のデータを正常として読み出すステップと、フラグ
1が無効でフラグ2が正常であれば領域2のデータを正
常として読み出すステップを備えた。
A multiple memory control method according to the present invention divides a backup information memory containing the same information into two information areas 1 and 2 and each information area 1
Areas of flags 1 and 2 which indicate that writing of flags 1 to 2 are normal are provided.
Invalidate, and then write data to area 1, write back flag 1 after writing data, and similarly invalidate flag, write data to area 2, and set flag 2 to normal. The step of writing back, the step of reading the flag 1 first and reading the data of the area 1 as normal when reading is normal, and the step of reading the data of the area 2 normal when the flag 1 is invalid and the flag 2 is normal. Prepared

【0007】または、バックアップ情報も含むメモリに
少なくとも時間的に新しい情報領域1の書き込みが正常
であることを示すアドレスフラグ1と、結果的に直前の
時間の書き込み情報領域を示すアドレスフラグ2を設
け、書き込みに際しては情報領域1対応のアドレスフラ
グ1を無効と書き込み、また情報領域のアドレス値を設
定するステップと、続いて情報領域1にデータを書き込
むステップと、必要データを所要量書き込み終わるとア
ドレスフラグ1を正常と書き戻すステップと、続いてア
ドレス2の値を必要値に設定するステップと、読み出し
に際してはまずアドレスフラグ1を読み出して正常なら
ば領域1のデータを正常として読み出すステップと、ア
ドレスフラグ1が無効でアドレスフラグ2が正常であれ
ばアドレス2の値から時間的に前の領域までのデータを
正常として読み出すステップを設けた。
Alternatively, an address flag 1 indicating that the writing of the new information area 1 is normal at least temporally and an address flag 2 indicating the writing information area of the immediately preceding time are provided in the memory including the backup information. When writing, the address flag 1 corresponding to the information area 1 is written as invalid, the step of setting the address value of the information area, the step of subsequently writing the data in the information area 1, and the address when the necessary amount of necessary data is written The step of writing back the flag 1 as normal, the step of subsequently setting the value of the address 2 to a required value, the step of reading the address flag 1 first and the step of reading the data of the area 1 as normal when reading the address, If flag 1 is invalid and address flag 2 is normal, is it the value of address 2? The data up to a temporally previous region is provided the step of reading as normal.

【0008】または、メモリの書き込み情報領域1ない
しNに対応してそのアドレスとフラグの組からなるフラ
グ情報領域1ないしNを設け、書き込みに際してはフラ
グ1をいったん無効とし、アドレス1の値を設定するス
テップと、メモリのフラグ情報領域1対応の情報領域1
である上記アドレス1の番地にデータを書き込むステッ
プと、続いてフラグ情報領域1のフラグ1を正常と書き
戻すステップと、更に順に、フラグを2無効、アドレス
2の値を設定、対応するメモリの情報領域2にデータを
書き込み、フラグ2を正常と書き戻すステップを、以
後、情報領域Nまで備え、読み出しに際してはフラグ情
報領域1のフラグ1を読み出して正常ならそのアドレス
1の値の情報領域1のデータを正常として読み出すステ
ップと、更に順に、フラグ情報領域2のフラグ2を読み
出して正常ならそのアドレス2対応のメモリの情報領域
2のデータを読み出ステップと、フラグが無効の場合は
対になるアドレス対応の情報領域のデータは破棄するス
テップとを備えてデータを得るようにした。
Alternatively, flag information areas 1 to N composed of a combination of the address and the flag are provided corresponding to the write information areas 1 to N of the memory, the flag 1 is temporarily invalidated at the time of writing, and the value of the address 1 is set. Information area 1 corresponding to the flag information area 1 of the memory
The step of writing data to the address of the address 1 and the step of subsequently writing back the flag 1 in the flag information area 1 as normal, and the flag 2 are invalidated, the value of the address 2 is set, and the corresponding memory The step of writing data to the information area 2 and writing the flag 2 back to normal is provided up to the information area N. When reading, the flag 1 of the flag information area 1 is read, and if normal, the information area 1 having the value of the address 1 is read. Reading the data as normal, and then reading the flag 2 in the flag information area 2 and reading the data in the information area 2 of the memory corresponding to the address 2 if the reading is normal. The data in the information area corresponding to the address is deleted, and the data is obtained.

【0009】[0009]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

実施の形態1.以下、この発明の実施の形態1を図につ
いて説明する。図1で、11はデータの記録領域Aを、
12は同じくバックアップ用の記録領域Bを、1は領域
Aへの正常書き込みが終了したことを示す正常フラグの
領域を示す。また、(W1)は、プロセッサ等からのフ
ラグAを無効値書き換え制御、(W2)は情報領域
(A)への情報書き込み制御、(W3)はフラグA有効
書き換え制御、(W4)は情報領域(B)への情報書き
込み制御、(R1)はフラグA読み出し制御、(R2)
は情報領域(A)からの情報読み出し制御、(R3)は
情報領域(B)からの情報読み出し制御を示す。
Embodiment 1. Embodiment 1 of the present invention will be described below with reference to the drawings. In FIG. 1, 11 is a data recording area A,
Similarly, reference numeral 12 is a backup recording area B, and 1 is a normal flag area indicating that normal writing to the area A is completed. Further, (W1) is an invalid value rewrite control of the flag A from the processor, (W2) is information write control to the information area (A), (W3) is a flag A valid rewrite control, and (W4) is an information area. (B) information writing control, (R1) flag A reading control, (R2)
Indicates information read control from the information area (A), and (R3) indicates information read control from the information area (B).

【0010】次に、動作について説明する。通常時にス
テップS1で、バックアップメモリへの書き込み情報が
発生すると、プロセッサ等はステップS2で、フラグA
(実際は、1〜2バイトの任意のパターン)の値を無効
値(例えば、all‘1’)に書き換える(W1)。こ
の後ステップS3で、情報領域(A)に情報データを書
き込む(W2)。書き込みが全て完了した時点のステッ
プS4で、フラグAを有効値に書き戻す(W3)。この
間に電源異常が発生した場合は、情報領域(A)への書
き込みが完了しておらず、フラグAは、無効値となって
いる。(W3)を終えると、ステップS6で、プロセッ
サ等は同一情報を情報領域(B)に書き込む(W4)。
Next, the operation will be described. Normally, when the write information to the backup memory is generated in step S1, the processor or the like sets flag A in step S2.
The value of (actually, an arbitrary pattern of 1 to 2 bytes) is rewritten to an invalid value (for example, all'1 ') (W1). Then, in step S3, information data is written in the information area (A) (W2). In step S4 at the time when all the writing is completed, the flag A is written back to the valid value (W3). If a power failure occurs during this time, writing to the information area (A) has not been completed, and the flag A has an invalid value. Upon completion of (W3), the processor or the like writes the same information in the information area (B) in step S6 (W4).

【0011】次に、電源異常が発生し、復旧した際の制
御について説明する。プロセッサ等は、電源復旧を認識
すると、ステップS11で、まずフラグAの値を読み込
み、以下の判定を行う。ステップS13a,S13b
で、もし、フラグAが有効値であるなら、情報領域
(A)の情報が最新情報で、かつ、正常な情報であると
判断し、ステップS14で、情報領域(A)の情報を読
み出す。必要なら、この時情報領域(B)の情報も、情
報領域(A)の情報に書き換えておく。もし、フラグA
の値が無効値であった場合は、情報領域(A)への情報
書き込み中に、電源異常が発生したと判断する。
Next, the control when the power source abnormality occurs and the power source is restored will be described. When the processor or the like recognizes that the power supply is restored, in step S11, the value of the flag A is first read and the following determination is performed. Steps S13a and S13b
If the flag A has a valid value, it is determined that the information in the information area (A) is the latest information and normal information, and the information in the information area (A) is read in step S14. If necessary, the information in the information area (B) is also rewritten to the information in the information area (A) at this time. If flag A
If the value of is an invalid value, it is determined that a power supply abnormality has occurred while writing information in the information area (A).

【0012】情報領域(A)と情報領域(B)への書き
込み制御は、上記のように、シリアル処理で行われるた
め時間差がある。従って、情報領域(A)への最新情報
書き込み中に、電源異常が発生した場合は、情報領域
(B)への最新情報書き込み制御が行われておらず、最
新情報の最前の情報が正常に保存されている。このよう
に、もし、フラグAの値が無効値であった場合は、領域
Aのデータ書き込み中に異常があったと判断されるの
で、プロセッサ等は、情報領域(B)の情報を読み出
し、最新情報の直前の情報で装置が再起動し、被害が最
小限度にとどめられ、信頼性の高いシステムが得られ
る。
The writing control to the information area (A) and the information area (B) is performed by the serial processing as described above, so that there is a time difference. Therefore, if a power failure occurs while writing the latest information to the information area (A), the latest information writing control to the information area (B) is not performed, and the previous information of the latest information is normal. It has been saved. As described above, if the value of the flag A is an invalid value, it is determined that there is an abnormality during the data writing in the area A, and therefore the processor or the like reads the information in the information area (B) and updates the latest information. The information immediately before the information restarts the device, the damage is minimized, and a highly reliable system is obtained.

【0013】実施の形態2.図2は、実施の形態2の例
を示すものであり、実施の形態1で説明した制御に、更
に、フラグBを設けたものである。図2において、2は
領域Bへの正常書き込みが終了したことを示すBの正常
フラグの領域を示す。また、(W5)はフラグB無効値
書き換え制御、(W6)はフラグB有効値書き換え制
御、(R4)はフラグB読み出し制御を示す。その他の
(W1)ないし(W4),(R1)ないし(R3)は、
実施の形態1と同様のことを示す。
Embodiment 2. FIG. 2 shows an example of the second embodiment, in which a flag B is further provided in the control described in the first embodiment. In FIG. 2, reference numeral 2 denotes an area of a normal flag of B indicating that the normal writing to the area B is completed. Further, (W5) shows flag B invalid value rewrite control, (W6) shows flag B valid value rewrite control, and (R4) shows flag B read control. The other (W1) to (W4) and (R1) to (R3) are
The same thing as in the first embodiment is shown.

【0014】次に、動作について説明する。通常時に、
ステップS1でバックアップメモリへの書き込み情報が
発生すると、プロセッサは、ステップS2で、フラグA
の値を無効値に書き換える(W1)。この後ステップS
3で、情報を情報領域(A)に書き込む(W2)。書き
込みが全て完了した時点のステップS4で、フラグAを
有効値以下に書き戻す(W3)。この間に電源異常が発
生した場合は、情報領域(A)への書き込みが完了して
おらず、フラグAは、無効値となっている。ここまで
は、実施の形態1と同じであるが、この後にステップS
5で、フラグBの値を無効値に書き換える(W4)。こ
の後ステップS6で、同一情報を情報領域(B)に書き
込む(W5)。また、書き込みが全て完了した時点のス
テップS7で、フラグBを有効値に書き戻す(W6)。
この間に電源異常が発生した場合は、情報領域(B)へ
の書き込みが完了しておらず、フラグBは、無効値とな
っている。
Next, the operation will be described. Normally,
When the write information to the backup memory is generated in step S1, the processor sets the flag A in step S2.
The value of is rewritten to an invalid value (W1). After this step S
At 3, the information is written in the information area (A) (W2). In step S4 at the time when all the writing is completed, the flag A is written back to the effective value or less (W3). If a power failure occurs during this time, writing to the information area (A) has not been completed, and the flag A has an invalid value. Up to this point, the process is the same as that of the first embodiment, but after this step S
At 5, the value of flag B is rewritten to an invalid value (W4). Thereafter, in step S6, the same information is written in the information area (B) (W5). Further, in step S7 at the time when all the writing is completed, the flag B is written back to the valid value (W6).
If a power failure occurs during this period, writing to the information area (B) has not been completed, and the flag B has an invalid value.

【0015】次に、電源異常が発生し、復旧した際の制
御について説明する。プロセッサ等は、電源復旧を認識
すると、まずステップS11とS12で、フラグA,フ
ラグBの値を読み込み以下の判定を行う。もし、ステッ
プS13で、フラグAが有効値であるなら、情報領域
(A)の情報が最新情報で、かつ、正常な情報であると
判断し、ステップS14で、情報領域(A)の情報を読
み出す。
Next, the control when a power supply abnormality occurs and the power supply is restored will be described. When the processor or the like recognizes that the power supply is restored, first, in steps S11 and S12, the values of the flag A and the flag B are read and the following determination is performed. If the flag A has a valid value in step S13, it is determined that the information in the information area (A) is the latest information and is normal information, and in step S14, the information in the information area (A) is updated. read out.

【0016】もし、フラグAが無効値であるなら、次
に、ステップS15で、フラグBの判定を行い、フラグ
Bの値が有効値であるなら、情報領域(B)の情報が最
新情報の最前の情報で、かつ、正常な情報であると判断
し、ステップS16で、情報領域(B)の情報を読み出
す。この時必要なら、情報領域(A)の情報も、情報領
域(B)の情報に書き換えておく。フラグBも無効値で
あるなら、ステップS17で、アブノーマルシーケンス
として、デフォルトの情報で再起動し、メモリ基板を障
害とする。この実施例の形態によると、フラグA,B両
方の判定を組み合わせて、よりきめ細かな故障部分の特
定が可能となる。
If the flag A is an invalid value, then the flag B is determined in step S15. If the value of the flag B is a valid value, the information in the information area (B) is the latest information. It is determined that the information is the frontmost information and is normal information, and in step S16, the information in the information area (B) is read. At this time, if necessary, the information in the information area (A) is also rewritten to the information in the information area (B). If the flag B is also an invalid value, in step S17, the abnormal sequence is restarted with the default information, and the memory substrate becomes a failure. According to the embodiment, it is possible to combine the determinations of both the flags A and B to more finely specify the failure portion.

【0017】実施の形態3.図3は、実施の形態3の例
を示すものであり、履歴情報等バックアップメモリの特
定番地からシーケンシャルに書き込む(アドレスを1番
地ずつインクリメントして書き込む)ようなメモリ制御
において、その情報量が大きく2面分のバックアップメ
モリ容量を設けるのが困難な場合に対応した例である。
図3において、21はデータ記録領域、22はアドレス
A対応の領域、22aはその内のフラグAの正常/無効
(書き込み中)の記録領域、22bはアドレスAのアド
レス値の記録領域で、23,23bはそれぞれ同様にア
ドレスB対応、アドレスB値の領域である。また、(W
21)はプロセッサ等からのアドレスAフラグの無効値
書き換え制御、(W22)はアドレスAのアドレス値イ
ンクリメント制御、(W23)は情報領域への情報書き
込み制御(アドレスAで設定された番地への書き込
み)、(W24)はアドレスAフラグの有効値書き戻し
制御、(W25)はアドレスBのアドレス値設定(最終
のアドレスAのアドレス値)制御、(R21)はアドレ
スAフラグの読み出し制御を示す。
Embodiment 3 FIG. 3 shows an example of the third embodiment, and the amount of information is large in memory control such as sequential writing from a specific address of the backup memory such as history information (writing by incrementing the address by one address). This is an example corresponding to the case where it is difficult to provide the backup memory capacity for two surfaces.
In FIG. 3, 21 is a data recording area, 22 is an area corresponding to address A, 22a is a normal / invalid (writing) recording area of flag A therein, 22b is a recording area of the address value of address A, 23 , 23b are areas for address B and address B value, respectively. Also, (W
21) is the invalid value rewriting control of the address A flag from the processor, (W22) is the address value increment control of the address A, (W23) is the information writing control to the information area (writing to the address set by the address A. ) And (W24) show the effective value write-back control of the address A flag, (W25) shows the address value setting of the address B (the final address value of the address A), and (R21) shows the read control of the address A flag.

【0018】次に、動作について説明する。通常時にス
テップS21で、バックアップメモリへの書き込み情報
が発生すると、プロセッサ等は、ステップS22で、ア
ドレスAのフラグの値を無効値に書き換える(W2
1)。次に、ステップS23で、アドレスAのアドレス
値をインクリメントし(W22)、ステップS24で、
そのアドレス値の示す情報領域の番地に情報を書き込む
(W23)。以降、情報を全て書き込むまで、上記(W
21)〜(W23)の動作を繰り返す。全ての情報を書
き換えると、ステップS25で、アドレスAのフラグの
値を有効値に書き戻す(W24)。この間に電源異常が
発生した場合は、情報領域への書き込みが完了しておら
ず、アドレスAのフラグは無効値となっている。その後
ステップS27で、アドレスBのアドレス値を最終のア
ドレスAと同一の値に設定する(W25)。
Next, the operation will be described. Normally, when write information to the backup memory is generated in step S21, the processor or the like rewrites the value of the flag of the address A to an invalid value in step S22 (W2).
1). Next, in step S23, the address value of the address A is incremented (W22), and in step S24,
Information is written in the address of the information area indicated by the address value (W23). After that, until all the information is written, (W
21) to (W23) are repeated. When all the information is rewritten, the value of the flag of the address A is written back to the valid value in step S25 (W24). If a power failure occurs during this period, writing to the information area has not been completed, and the flag of address A has an invalid value. After that, in step S27, the address value of the address B is set to the same value as the final address A (W25).

【0019】次に、電源異常が発生し、復旧した際の制
御について説明する。プロセッサは、電源復旧を認識す
ると、まずステップS31で、アドレスAのフラグの値
を読み込み以下の判定を行う。もし、ステップS32
で、アドレスAのフラグの有効値であるなら、アドレス
Aが示す番地までは、情報領域の情報が最新情報で、か
つ、正常な情報であると判断し、ステップS33で、ア
ドレスAの領域のデータをアドレス値のところまで読み
出す。必要があれば、アドレスBのアドレス値を最終の
アドレスAと同一の値に設定する。もし、アドレスAの
フラグの値が無効値であった場合は、最新情報の書き込
み中に電源異常が発生したと判断し、予め定められた別
の手順で、例えば、以前のアドレスBのアドレス値を読
み出す等の処理をする。アドレスAとアドレスBの制御
は、上記のように、シリアル処理で行われるため時間差
があり、情報領域への最新情報書き込み中に、電源異常
が発生した場合は、アドレスBのアドレス値には、最新
情報の最前の情報が書き込まれている番地が正常に保存
されている。従って、もし、アドレスAのフラグの値が
無効値であった場合は、プロセッサ等は、アドレスBに
設定されている番地までの情報を読み出し、最新情報の
最前の情報で装置が再起動する(ロールメモリ方式に対
しては、アドレス値にロール情報を付加することで対処
する)。
Next, the control when the power supply abnormality occurs and the power supply is restored will be described. When the processor recognizes that the power supply is restored, first in step S31, the value of the flag of the address A is read and the following determination is performed. If step S32
If it is a valid value of the flag of the address A, it is determined that the information in the information area is the latest information and normal information up to the address indicated by the address A. Read data up to the address value. If necessary, the address value of the address B is set to the same value as the final address A. If the flag value of the address A is an invalid value, it is determined that the power supply abnormality has occurred during the writing of the latest information, and another predetermined procedure, for example, the address value of the previous address B is used. Processing such as reading. As described above, since the control of the address A and the address B is performed by the serial processing, there is a time lag, and when a power failure occurs while writing the latest information in the information area, the address value of the address B is The address in which the latest information of the latest information is written is normally saved. Therefore, if the value of the flag of the address A is an invalid value, the processor or the like reads the information up to the address set in the address B, and the apparatus is restarted with the latest information of the latest information ( The roll memory method is dealt with by adding roll information to the address value).

【0020】実施の形態4.図4は、実施の形態2と3
を併せて実施した例を示すものであり、実施の形態3で
説明した制御に、更に、アドレスBにもフラグを設けた
ものである。図4において、23aはアドレスBの正常
/無効フラグ領域で、その他は先の実施の形態3のそれ
と同じものである。また、(W26)はアドレスBのフ
ラグの無効値書き換え制御、(W27)はアドレスBフ
ラグの有効値書き戻し制御、(R22)はアドレスBの
フラグ読み出し制御を示す。その他の(W21)〜(W
25),(R21)は、先の実施の形態3と同様のもの
である。
Embodiment 4 FIG. 4 shows the second and third embodiments.
In addition to the control described in the third embodiment, the address B is also provided with a flag. In FIG. 4, 23a is a normal / invalid flag area of the address B, and the others are the same as those of the third embodiment. Further, (W26) shows the invalid value rewrite control of the address B flag, (W27) shows the valid value write back control of the address B flag, and (R22) shows the flag read control of the address B. Other (W21) ~ (W
25) and (R21) are the same as those in the third embodiment.

【0021】次に、動作について説明する。ステップS
21ないしS24の書き込み、S25のフラグの書き戻
しまでは、実施の形態3と同様である。次に、ステップ
S26で、アドレスBのフラグを無効値に書き換え(W
26)、ステップS27で、アドレスBのアドレス値を
最終のアドレスAと同一の値に設定する(W25)。そ
の後ステップS28で、アドレスBのフラグを有効値に
書き戻す(W27)。この間に、電源異常が発生した場
合は、アドレスBのアドレス値を最終のアドレスAと同
一の値に設定する制御が完了しておらず、アドレスBの
フラグは、無効値となっている。
Next, the operation will be described. Step S
The processes from 21 to S24 to the writing back of the flag in S25 are the same as those in the third embodiment. Next, in step S26, the flag of address B is rewritten to an invalid value (W
26), in step S27, the address value of the address B is set to the same value as the final address A (W25). Then, in step S28, the flag of address B is written back to a valid value (W27). During this period, if a power failure occurs, the control for setting the address value of the address B to the same value as the final address A has not been completed, and the flag of the address B has an invalid value.

【0022】次に、電源異常が発生し、復旧した際の制
御について説明する。この場合も、ステップS31ない
しS33は、先の実施の形態3と同様である。ステップ
S32で、もし、アドレスAのフラグが無効値であるな
ら、次に、ステップS34で、アドレスBのフラグを読
み出し、ステップS35で、アドレスBのフラグの判定
を行う。フラグBの値が有効値であるなら、アドレスB
のアドレス値が示す番地までは、情報領域の情報が正常
な情報であると判断し、ステップS36で、このデータ
を用いて装置が再起動する。フラグBも無効値であるな
ら、ステップS36で、アブノーマルシーケンスとし
て、デフォルトの情報で再起動し、メモリ基板を障害と
する(ロールメモリ方式に対しては、アドレス値にロー
ル情報を付加することで対処する)。
Next, the control when a power supply abnormality occurs and the power supply is restored will be described. Also in this case, steps S31 to S33 are the same as those in the third embodiment. If the flag of the address A is an invalid value in step S32, then the flag of the address B is read in step S34, and the flag of the address B is determined in step S35. If the value of flag B is a valid value, address B
Up to the address indicated by the address value, the information in the information area is determined to be normal information, and the device is restarted using this data in step S36. If the flag B is also an invalid value, in step S36, the memory board is restarted with the default information as an abnormal sequence, and the memory substrate is made to be a failure (for the roll memory method, the roll information is added to the address value. deal with).

【0023】実施の形態5.図5は、実施の形態5の例
を示すものであり、履歴・設定情報等で番地単位でラン
ダムに書き込まれる重要な情報で、かつ、実施の形態1
に示したように、2面分のバックアップメモリ容量を設
けるのが、困難な場合に対応した実施の例である。図
中、41はアドレス*****対応領域、41aはその
内のフラグの正常/無効(書き込み中)の記録領域、4
1bは実際のデータ書き込み範囲アドレスの記載領域で
ある。42,42a,42bはそれぞれアドレス△△△
△△対応領域、同フラグ正常/無効、データ書き込みア
ドレス領域であり、43,43a,43bもそれぞれア
ドレス□□□□□のそれぞれ対応の領域である。図5
中、(W41)はプロセッサ等からの*****番地へ
の(フラグ+情報)の書き込み制御、(W42)は△△
△△△番地への(フラグ+情報)の書き込み制御、(W
43)は□□□□□番地への(フラグ+情報)書き込み
制御、(R41)は*****番地からの(フラグ+情
報)の読み出し制御、(R42)は△△△△△番地から
の(フラグ+情報)の読み出し制御、(R43)は□□
□□□番地からの(フラグ+情報)読み出し制御を示
す。
Embodiment 5 FIG. 5 shows an example of the fifth embodiment, which is important information randomly written in address units in the history / setting information and the like.
As shown in, it is an example of an embodiment in which it is difficult to provide the backup memory capacity for two surfaces. In the figure, 41 is a region corresponding to the address ****, 41a is a recording region in which the flag therein is normal / invalid (during writing), 4
Reference numeral 1b is an area for describing an actual data write range address. 42, 42a and 42b are addresses ΔΔΔ respectively
[Delta] [Delta] corresponding areas, the flag normal / invalid, and data write address areas, and 43, 43a and 43b are areas corresponding to the addresses □□□□□. FIG.
(W41) is a writing control of (flag + information) from the processor etc. to the address ***, and (W42) is ΔΔ.
Writing control of (flag + information) to address △△△, (W
43) is (flag + information) write control to address □□□□□□, (R41) is (flag + information) read control from address ***, and (R42) is △△△△△ address (Flag + information) read control from (R43) is □□
□□□ Indicates the (flag + information) read control from address.

【0024】次に、動作について説明する。通常時ステ
ップS41で、バックアップメモリへの書き込み情報が
発生すると、プロセッサは、ステップS41で、書き込
み番地(*****番地)を設定し、書き込み情報にフ
ラグ(実際は、任意のパターン)を付加して書き込みを
行う。この間に、電源異常が発生した場合は、****
*番地に書き込まれたフラグは、無効値になっている。
データ書き込みが終わると、ステップS43で、フラグ
41aを正常と書き戻し(W41)、更に、ステップS
44で、アドレス△△△△△番地を設定する。アドレス
△△△△△への情報書き込み中に、電源異常が発生した
場合は、△△△△△番地に書き込まれたフラグは、無効
値になっている。このアドレス△△△△△へのデータの
書き込みが終わると、ステップS45で、フラグ42a
を正常と書き戻し(W42)、更に、次のアドレス番地
を設定する。この制御を繰り返し、アドレス□□□□□
への最後の書き込み情報終了後、ステップS47で、フ
ラグ43aを正常と書き戻す。もし、アドレス□□□□
□へのデータ書き込み中に、電源異常が発生した場合
は、□□□□□番地に書き込まれたフラグは、無効値に
なっている。
Next, the operation will be described. When the write information to the backup memory is generated in the normal time step S41, the processor sets the write address (***** address) and adds a flag (actually, an arbitrary pattern) to the write information in the step S41. And write. If a power failure occurs during this time, ****
* The flag written in the address is an invalid value.
When the data writing is completed, the flag 41a is written back as normal in step S43 (W41), and further in step S43.
At 44, the address ΔΔΔΔΔ address is set. If a power supply error occurs while writing information to the address ΔΔΔΔΔ, the flag written at the address ΔΔΔΔΔ is an invalid value. When the writing of the data to the address ΔΔΔΔΔ is completed, the flag 42a is set in step S45.
Is written back as normal (W42), and the next address is set. This control is repeated until the address □□□□□
After the end of the last write information to, the flag 43a is written back as normal in step S47. If the address □□□□
If a power failure occurs while writing data to □, the flag written to address □□□□□□ has an invalid value.

【0025】次に、電源異常が発生し、復旧した際の制
御について説明する。プロセッサは、ステップS51
で、電源復旧を認識すると、通常通り各番地のバックア
ップ情報を読み出す。例えば、ステップS52で、**
***番地の情報を読み出した時、(R41)フラグの
値を読み込み、もし、ステップS54で、有効値であれ
ば、ステップS56で、*****番地の情報を取り込
み、無効値なら書き込み中に、電源異常が発生したと判
定し、その情報を破棄する。以下、上記の動作を繰り返
し、△△△△△番地、□□□□□番地についても同様に
行う((R42),(R43))。各番地への書き込み
制御は、上記のように、シリアル処理で行われるため時
間差があり、ある番地への情報書き込み中に、電源異常
が発生した場合は、その他の番地のフラグは有効値であ
り、情報も正常な情報が保持されている。以上により、
バックアップメモリへの書き込み中に、電源異常が発生
した場合にも、多くとも1ブロック番地分の情報損失に
抑えることができる。
Next, the control when a power supply abnormality occurs and the power supply is restored will be described. The processor proceeds to step S51.
Then, when the power restoration is recognized, the backup information of each address is read as usual. For example, in step S52, **
When the address information is read out, the value of the (R41) flag is read, and if it is a valid value in step S54, the information in the *** address is fetched in step S56, and if it is an invalid value. It is determined that a power failure has occurred during writing, and that information is discarded. Thereafter, the above operation is repeated, and the same is done for the addresses ΔΔΔΔΔ and □□□□□□ ((R42), (R43)). As described above, write control to each address is performed in serial processing, so there is a time lag, and if a power failure occurs while writing information to a certain address, the flags of other addresses are valid values. , The information is also normal. From the above,
Even if a power failure occurs during writing to the backup memory, the information loss of at most one block address can be suppressed.

【0026】[0026]

【発明の効果】この発明によれば、大規模なH/Wと、
複雑な管理用のS/Wを用いないで、電源異常から復旧
した際に、容易にバックアップメモリの最新情報を確認
できる効果がある。
According to the present invention, a large-scale H / W,
There is an effect that the latest information in the backup memory can be easily confirmed when a power failure is recovered without using a complicated management S / W.

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

【図1】 本発明の実施の形態1の例を示す図である。FIG. 1 is a diagram showing an example of a first embodiment of the present invention.

【図2】 本発明の実施の形態2の例を示す図である。FIG. 2 is a diagram showing an example of a second embodiment of the present invention.

【図3】 本発明の実施の形態3の例を示す図である。FIG. 3 is a diagram showing an example of a third embodiment of the present invention.

【図4】 本発明の実施の形態4の例を示す図である。FIG. 4 is a diagram showing an example of a fourth embodiment of the present invention.

【図5】 本発明の実施の形態5の例を示す図である。FIG. 5 is a diagram showing an example of a fifth embodiment of the present invention.

【図6】 バックアップメモリ制御の構成例を示す図で
ある。
FIG. 6 is a diagram showing a configuration example of backup memory control.

【図7】 従来のバックアップメモリの構成と動作を示
す図である。
FIG. 7 is a diagram showing the configuration and operation of a conventional backup memory.

【図8】 従来の他のバックアップメモリの構成と動作
を示す図である。
FIG. 8 is a diagram showing the configuration and operation of another conventional backup memory.

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

1 フラグA領域、2 フラグB領域、11 情報(デ
ータ)領域A、12情報(データ)領域B、21 情報
(データ)領域、22 アドレスA対応領域、22a
アドレスAフラグ領域、22b アドレスA値領域、2
3 アドレスB対応領域、23a アドレスBフラグ領
域、23b アドレスB値領域、41アドレス****
*対応領域、41a フラグ領域、41b 情報領域、
42アドレス△△△△△対応領域、42a フラグ領
域、42b 情報領域、43アドレス□□□□□対応領
域、43a フラグ領域、43b 情報領域、S2フラ
グA無効化ステップ、S3 情報A書き込みステップ、
S4 フラグA正常化ステップ、S5 フラグB無効化
ステップ、S6 情報B書き込みステップ、S7 フラ
グB正常化ステップ、S13 フラグA判定ステップ、
S14 情報A読み出しステップ、S15 フラグB判
定ステップ、S16 情報B読み出しステップ、S22
アドレスA無効化ステップ、S24 情報A書き込み
ステップ、S25 アドレスAフラグ正常化ステップ、
S26 アドレスB無効化ステップ、S27 情報B書
き込みステップ、S28 アドレスBフラグ正常化ステ
ップ、S32 アドレスAフラグ判定ステップ、S33
アドレスA値の情報読み出しステップ、S35 アド
レスBフラグ判定ステップ、S36 アドレスB値の情
報読み出しステップ。
1 flag A area, 2 flag B area, 11 information (data) area A, 12 information (data) area B, 21 information (data) area, 22 address A corresponding area, 22a
Address A flag area, 22b Address A value area, 2
3 address B corresponding area, 23a address B flag area, 23b address B value area, 41 address ***
* Corresponding area, 41a flag area, 41b information area,
42 address ΔΔΔΔΔ corresponding area, 42a flag area, 42b information area, 43 address □□□□□ corresponding area, 43a flag area, 43b information area, S2 flag A invalidating step, S3 information A writing step,
S4 flag A normalization step, S5 flag B invalidation step, S6 information B writing step, S7 flag B normalization step, S13 flag A determination step,
S14 information A reading step, S15 flag B determining step, S16 information B reading step, S22
Address A invalidating step, S24 Information A writing step, S25 Address A flag normalizing step,
S26 address B invalidation step, S27 information B writing step, S28 address B flag normalization step, S32 address A flag determination step, S33
Address A value information reading step, S35 Address B flag determination step, S36 Address B value information reading step.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 同一情報を含むバックアップ情報用メモ
リを2つの情報領域1と情報領域2に区分し、また上記
情報領域1の書き込みが正常であることを示すフラグ1
の書き込み領域を設け、 書き込みに際してはまず上記フラグ1を無効(書込中)
としてから上記情報領域1にデータを書き込むステップ
と、 続いて上記情報領域1への書き込み終了後にフラグ1を
正常と書き戻すステップと、 続いて情報領域2にデータを書き込むステップと、 読み出しに際しては、まずフラグ1を読み出して正常な
らば情報領域1のデータを正常として読み出すステップ
と、 フラグ1が正常でなければ情報領域2のデータを正常と
して読み出すステップを含む多重メモリ制御方法。
1. A backup information memory containing the same information is divided into two information areas 1 and 2 and a flag 1 indicating that writing to the information area 1 is normal.
The writing area is provided, and when writing, the above flag 1 is invalidated (writing)
Then, the step of writing the data in the information area 1, the step of writing the flag 1 back to the normal state after the writing in the information area 1, and the step of writing the data in the information area 2 are performed. First, a multiple memory control method including a step of reading the flag 1 and reading the data of the information area 1 as normal if it is normal, and a step of reading the data of the information area 2 as normal if the flag 1 is not normal.
【請求項2】 また更に、情報領域2の書き込みが正常
であることを示すフラグ2の書き込み領域を付加し、 書き込みに際して、情報領域1の書き込みが正常終了し
てフラグ1が書き戻された後、情報領域2にデータを書
き込むステップの前に、フラグ2を無効とするステップ
と、情報領域2にデータを書き込んだ後、フラグ2を正
常と書き戻すステップと、 読み出しに際しては、フラグ1が正常でなければ次にフ
ラグ2を読み出し、正常であれば情報領域2のデータを
正常として読み出すステップにつなぎ、 フラグ2も正常でなければ故障が発生したと判定するス
テップを付加したことを特徴とする請求項1記載の多重
メモリ制御方法。
2. Further, after adding a writing area of a flag 2 indicating that writing of the information area 2 is normal, the writing of the information area 1 is normally completed and the flag 1 is written back at the time of writing. , The step of invalidating the flag 2 before the step of writing the data in the information area 2, the step of writing the data in the information area 2 and then writing the flag 2 back as normal, and the flag 1 is normal when reading out. If not, the flag 2 is read next, and if it is normal, it is connected to the step of reading the data of the information area 2 as normal, and if flag 2 is not normal, a step of determining that a failure has occurred is added. The method for controlling multiple memories according to claim 1.
【請求項3】 バックアップ情報も含むメモリに少なく
とも時間的に新しい情報領域1のアドレス値を書き込む
アドレス1領域と、情報領域1の書き込みが正常である
ことを示すアドレスフラグ1の領域と、結果的に直前の
時間の書き込み情報領域を示すアドレス2領域を設け、 書き込みに際しては、まず上記情報領域1対応のアドレ
スフラグ1を無効(書込中)と書き込み、アドレス1の
値を設定するステップと、 続いて情報領域1にデータを書き込むステップと、 必要データを所要量情報領域に書き込み終わるとアドレ
スフラグ1を正常と書き戻すステップと、 続いてアドレス2の値を所定の値に設定するステップ
と、 読み出しに際してはまずアドレスフラグ1を読み出して
正常ならば情報領域1のデータを正常として読み出すス
テップと、 アドレスフラグ1が無効であればアドレス2の値から前
の情報領域までのデータを正常として読み出すステップ
を含む多重メモリ制御方法。
3. An address 1 area in which an address value of a new information area 1 is written at least temporally in a memory including backup information, an area of an address flag 1 indicating that writing in the information area 1 is normal, and a resultant result area. An address 2 area indicating a write information area of the immediately preceding time is provided, and at the time of writing, first writing the address flag 1 corresponding to the information area 1 as invalid (writing) and setting the value of the address 1. Next, a step of writing data in the information area 1, a step of writing back the address flag 1 as normal when the necessary data is written in the required amount information area, and a step of setting the value of the address 2 to a predetermined value, At the time of reading, first, the address flag 1 is read, and if it is normal, the step of reading the data in the information area 1 as normal is performed. When, multiple memory control method comprising the steps of reading the data if the address flag 1 is invalid from the value of the address 2 to the front of the information area as a normal.
【請求項4】 また更に、アドレスフラグ2を付加し、 書き込みに際しては、アドレスフラグ1を正常と書き戻
して後、アドレスフラグ2を無効(書込中)と書き込む
ステップと、アドレス2の値を設定するステップの後、
アドレスフラグ2を正常と書き戻すステップと、 読み出しに際しては、アドレスフラグ1が正常でなけれ
ば続いてアドレスフラグ2を読みだし、正常であればア
ドレス2の値から時間的に前の領域までのデータを読み
出すステップにつなぎ、アドレスフラグ2も正常でなけ
れば故障があると判定するステップを付加したことを特
徴とする請求項3記載の多重メモリ制御方法。
4. Further, when the address flag 2 is added and the address flag 1 is written back as normal when writing, the step of writing the address flag 2 as invalid (writing) and the value of the address 2 are written. After the step of setting
When the address flag 2 is written back as normal, and when reading, if the address flag 1 is not normal, the address flag 2 is read subsequently, and if normal, the data from the value of the address 2 to the region preceding in time is read. 4. The multiple memory control method according to claim 3, further comprising a step of determining that there is a failure if the address flag 2 is not normal, connected to the step of reading.
【請求項5】 メモリの書き込み情報領域1ないしNに
対応してそのアドレスとフラグの組からなるフラグ情報
領域1ないしNを設け、 書き込みに際してはまず上記フラグ情報領域1のアドレ
ス1の値を設定し、フラグ1を無効(書込中)とするス
テップと、 続いてメモリの上記アドレス1の値対応の情報領域1に
データを書き込むステップと、 続いて情報領域1へのデータ書き込み終了後に上記フラ
グ情報領域1のフラグを1正常(書き込み終了)と書き
戻すステップと、 更に順に、次の書き込みのアドレス2の値を設定し、フ
ラグ2を無効とするステップ、メモリのアドレス2の値
対応の情報領域2へのデータの書き込みステップ、フラ
グ2を正常と書き戻すステップを、以後、情報領域Nま
で設け、 読み出しに際してはフラグ情報領域1のフラグ1を読み
出して正常なら上記アドレス1の値対応の情報領域1の
データを正常として読み出すステップと、 更に順に、フラグ情報領域2のフラグ2を読み出して正
常ならそのアドレス2に対応するメモリの情報領域2の
データを読み出していき、読み出したフラグが無効の場
合は対になるアドレスの値対応の情報領域のデータは破
棄することでデータを得る多重メモリ制御方法。
5. A flag information area 1 to N consisting of a set of an address and a flag is provided corresponding to the write information area 1 to N of the memory, and at the time of writing, the value of the address 1 of the flag information area 1 is first set. Then, the step of invalidating (writing) the flag 1, the step of writing the data to the information area 1 corresponding to the value of the address 1 of the memory, and the flag after the data writing to the information area 1 is completed. The step of writing back the flag of the information area 1 as 1 normal (write completed), the step of setting the value of the address 2 for the next writing and invalidating the flag 2 in order, and the information corresponding to the value of the address 2 of the memory The step of writing data to the area 2 and the step of writing back the flag 2 as normal are provided up to the information area N, and the flag information area is used for reading. If the flag 1 of No. 1 is normal and the data of the information area 1 corresponding to the value of the address 1 is normal, then read the flag 2 of the flag information area 2 if normal and the memory corresponding to the address 2 is normal. The multiple memory control method in which the data in the information area 2 is read, and when the read flag is invalid, the data in the information area corresponding to the value of the paired address is discarded to obtain the data.
JP7226361A 1995-09-04 1995-09-04 Multiple memory control method Pending JPH0973417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7226361A JPH0973417A (en) 1995-09-04 1995-09-04 Multiple memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7226361A JPH0973417A (en) 1995-09-04 1995-09-04 Multiple memory control method

Publications (1)

Publication Number Publication Date
JPH0973417A true JPH0973417A (en) 1997-03-18

Family

ID=16843950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7226361A Pending JPH0973417A (en) 1995-09-04 1995-09-04 Multiple memory control method

Country Status (1)

Country Link
JP (1) JPH0973417A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000218824A (en) * 1998-11-26 2000-08-08 Seiko Epson Corp Ink container and printer using the same
US6401179B1 (en) 1998-09-05 2002-06-04 Samsung Electronics Co., Ltd. Method for storing reference information and apparatus therefor
KR20020089131A (en) * 2001-05-22 2002-11-29 가부시키가이샤 히타치세이사쿠쇼 Nonvolatile Data Storage System and Data Storaging Method
WO2010064337A1 (en) * 2008-12-04 2010-06-10 パナソニック株式会社 Microcomputer
CN110278716A (en) * 2018-01-18 2019-09-24 三菱电机株式会社 PLC, network unit, CPU element and data transferring method
JP2021126508A (en) * 2020-02-10 2021-09-02 オリンパス・ウィンター・アンド・イベ・ゲゼルシャフト・ミット・ベシュレンクテル・ハフツング Electrosurgical system, electrosurgical instrument, operation data write-in method, and electrosurgical supply device
US11798682B2 (en) 2020-02-10 2023-10-24 Olympus Winter & Ibe Gmbh Electrosurgical system, electrosurgical instrument, method for reading configuration data, and electrosurgical supply device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6401179B1 (en) 1998-09-05 2002-06-04 Samsung Electronics Co., Ltd. Method for storing reference information and apparatus therefor
JP2000218824A (en) * 1998-11-26 2000-08-08 Seiko Epson Corp Ink container and printer using the same
JP2009040063A (en) * 1998-11-26 2009-02-26 Seiko Epson Corp Ink cartridge and printer using the same
KR20020089131A (en) * 2001-05-22 2002-11-29 가부시키가이샤 히타치세이사쿠쇼 Nonvolatile Data Storage System and Data Storaging Method
WO2010064337A1 (en) * 2008-12-04 2010-06-10 パナソニック株式会社 Microcomputer
CN110278716A (en) * 2018-01-18 2019-09-24 三菱电机株式会社 PLC, network unit, CPU element and data transferring method
US10656615B2 (en) * 2018-01-18 2020-05-19 Mitsubishi Electric Corporation PLC, network unit, CPU, and data transfer method
CN110278716B (en) * 2018-01-18 2020-10-27 三菱电机株式会社 PLC, network unit, CPU unit, and data transfer method
JP2021126508A (en) * 2020-02-10 2021-09-02 オリンパス・ウィンター・アンド・イベ・ゲゼルシャフト・ミット・ベシュレンクテル・ハフツング Electrosurgical system, electrosurgical instrument, operation data write-in method, and electrosurgical supply device
US11798682B2 (en) 2020-02-10 2023-10-24 Olympus Winter & Ibe Gmbh Electrosurgical system, electrosurgical instrument, method for reading configuration data, and electrosurgical supply device

Similar Documents

Publication Publication Date Title
KR100204027B1 (en) Database recovery apparatus and method using nonvolatile memory
EP0645046B1 (en) Data writing to non-volatile memory
US5043871A (en) Method and apparatus for database update/recovery
US6260124B1 (en) System and method for dynamically resynchronizing backup data
EP0862762B1 (en) Semiconductor memory device having error detection and correction
US5623625A (en) Computer network server backup with posted write cache disk controllers
JP3233079B2 (en) Data processing system and data processing method
JP2990181B1 (en) Flash memory, microcomputer having flash memory, and method of storing program in flash memory
JPH0973417A (en) Multiple memory control method
US5381544A (en) Copyback memory system and cache memory controller which permits access while error recovery operations are performed
JP3076881B2 (en) Information processing device with memory restoration function
US7849279B2 (en) Method for the secure updating data areas in non volatile memory, device to perform such a method
US20070274302A1 (en) Data Storage Device, Memory Managing Method, and Program
JPH01271856A (en) Battery back-up memory
JP3407021B2 (en) Microcomputer
JP2751822B2 (en) Memory control method for FIFO memory device
JP3239935B2 (en) Tightly-coupled multiprocessor system control method, tightly-coupled multiprocessor system, and recording medium therefor
JPH0820933B2 (en) Data writing method and device
JPH0217550A (en) Trouble processing system for multiprocessor system
JP3555847B2 (en) Cache memory failure processing apparatus, cache memory failure processing method, and multiprocessor system
JPH07281962A (en) Access method to electrically rewritable nonvolatile memory
JPS6326406B2 (en)
JPH07168769A (en) Data updating method for nonvolatile memory
JP3281858B2 (en) Microcomputer evaluation device
JPH04257030A (en) Rom patch system