JPS6049450A - Check system of back-up memory - Google Patents

Check system of back-up memory

Info

Publication number
JPS6049450A
JPS6049450A JP58157164A JP15716483A JPS6049450A JP S6049450 A JPS6049450 A JP S6049450A JP 58157164 A JP58157164 A JP 58157164A JP 15716483 A JP15716483 A JP 15716483A JP S6049450 A JPS6049450 A JP S6049450A
Authority
JP
Japan
Prior art keywords
data
address
memory
valid
power
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
JP58157164A
Other languages
Japanese (ja)
Inventor
Masakatsu Kikuchi
正勝 菊池
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
Original Assignee
Toshiba 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 filed Critical Toshiba Corp
Priority to JP58157164A priority Critical patent/JPS6049450A/en
Publication of JPS6049450A publication Critical patent/JPS6049450A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy

Landscapes

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

Abstract

PURPOSE:To check the validity of data through a simple circuit by reading out the data on a prescribed address after a power supply is applied again to decide whether the data is valid or not and discriminating the validity of all data based on the result of said decision. CONSTITUTION:When a microprocessor 3 detects the second application of a power supply, the processor 3 reads the data on an address 1000 of an RAM5 to store it to a register A and also reads the data on an address 1001 of the RAM5 to store it to a register B after inversion. Then the processor 3 judges whether the data are equal to each other between registers A and B. If both data are equal to each other, it is decided that all data of RAM5 and 6 are valid. Then a main program is executed. In case no coincidence is obtained between both data, the data of the address 1000 is read and stored to the address 1001 after inversion to execute an initial start action. Therefore, the data of the RAM6 is supplied to a printer 9 when the coincidence is obtained from the results of comparison. While the processor 3 starts again its actuation from the first when the coincidence is not obtained.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は、比較的簡単なマイクロコンピュータシステ
ム等で用いられるバッテリーバックアップされたメモリ
内のデータの有効性を検査する方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a method for testing the validity of data in a battery-backed memory used in a relatively simple microcomputer system or the like.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

マイクロコンビ二一夕等のシステムにおいて、必要なデ
ータの格納領域用のメモリには、読み出しと書き込みと
を自由に行なえるメモリが用いられる。このようなメモ
リの代表例としてRAMと称される半導体ICメモリが
知られている。このRA Mは、電源が遮断されると内
部に記憶されていたデータが消失するという特性を有す
る。もちろん、現在では不揮発性R,AMも知られてい
るが、この不揮発性RAMは小容量であり、書き込み回
数に制限があり、かつ、高価であるから用途が限定され
ており、ここでは考えないことにする。
2. Description of the Related Art In systems such as microcombiners, a memory that can be freely read and written is used as a storage area for necessary data. A semiconductor IC memory called RAM is known as a typical example of such a memory. This RAM has a characteristic that when the power is cut off, the data stored therein disappears. Of course, non-volatile RAM is also known today, but this non-volatile RAM has a small capacity, a limited number of writes, and is expensive, so its uses are limited, so it will not be considered here. I'll decide.

そこで、上記のようなR,A Mを用いたマイクロコン
ビーータ等のシステムにおいては、電源断からYl旧し
た後にシステムが正常に動作するように、以下の2方式
を探っていた。
Therefore, in a system such as a microcombeater using R and AM as described above, the following two methods have been investigated so that the system can operate normally after a period of time has elapsed since the power was cut off.

第1にl:、RAMに対してデータを与える装置−通常
ハ、ホストコンピー−ターから、電源再投入時に再書き
込みを行なうものである。第2は、RAMのためのバッ
テリーを用いて電源断時のバッテリーバックアップを行
lようものである。
First, a device for providing data to the RAM (usually a host computer) performs rewriting when the power is turned on again. The second method is to use a battery for the RAM to perform battery backup when the power is cut off.

しかし、前者の方式によると、ホストコンピュータ等は
、データ送出後も端末の状態を監視しなければならず、
ホストコンピュータ等の負荷が増大する欠点があった。
However, according to the former method, the host computer etc. must monitor the status of the terminal even after data is sent.
This has the drawback of increasing the load on the host computer, etc.

後者の方式では、ホストコンビーータ等の負荷は増大し
ないが、バックアップ電源により保持されていたデータ
が正しいか否かを電源再投入後に確認する必要があった
。即ち、バックアップ電源の容量と電源断の時間との関
係によっては、RAM内のデータが正しく保持されない
場合があるからである。この確認を行7χうため、書き
込みデータの各ワード全てにパリティ−ピットを付加し
、電源再投入後にパリティ−チェックを行なっていた。
In the latter method, the load on the host converter etc. does not increase, but it is necessary to check whether the data held by the backup power supply is correct after the power is turned on again. That is, depending on the relationship between the capacity of the backup power source and the power-off time, the data in the RAM may not be held correctly. In order to perform this confirmation, a parity pit is added to each word of write data, and a parity check is performed after the power is turned on again.

しかし、この手法によると、例えばデータにワーr単位
でメモリティービットを1ビツト付加する必要があり、
このパリティ−ビットのためにデータが1ビツト圧迫さ
れたυ、1ビット余分なデータ領域を持たねばならなか
った。
However, according to this method, for example, it is necessary to add one memory bit to the data in units of word r.
Because of this parity bit, the data was compressed by 1 bit υ, so it was necessary to have an extra data area of 1 bit.

更に、比較的簡単なマイクロコンビーータ等に、ノぞリ
テイービットを発生させるためのパリティ−ジェネレー
タ等を付加することは、バーrウェアが増大し、コスト
高となる欠点があった。
Furthermore, adding a parity generator or the like for generating a parity bit to a relatively simple microconverter or the like has the drawback of increasing the amount of software and increasing the cost.

〔発明の目的〕[Purpose of the invention]

本発明は、以上述べたような従来方式の欠点に鑑みなさ
れたもので、その目的は、上記第2の方式を採用してホ
ストコンビーータ等の負荷の増大をおさえながら、簡単
な構成によってデータの有効性を検査可能な検査方式を
提供することである。
The present invention has been made in view of the drawbacks of the conventional methods as described above, and its purpose is to suppress the increase in the load on host converters, etc. by adopting the above-mentioned second method, and to provide data data with a simple configuration. An object of the present invention is to provide a test method that can test the effectiveness of a test.

〔発明の概要〕[Summary of the invention]

そこで、本発明では、読み出し書き込み可能であるとと
もに電源断時にバッテリーパックアンプされるメモリと
、このメモリの所定のtz ?Eのアドレスのデータが
相互に特定の関係を有するようにデータを書き込む書込
手段と、電源再投入後に上記所定の複数のアドレスに格
納されているデータを:”JGみ出し、これらのデータ
に基づいてこれらのデータが有効であるか否かを判定す
る判定手段とを有し、この判定手段による利足結果に基
づいて上記メモリ内の全データの有効性ケ判別するよう
にして、上記目的を達成した。
Therefore, the present invention provides a memory that is readable and writable and that is amplified by a battery pack when the power is turned off, and a predetermined tz? a writing means for writing data so that the data at the addresses of E have a specific relationship with each other; and a determination means for determining whether or not these data are valid based on the validity of the data, and the validity of all the data in the memory is determined based on the result of the determination by the determination means. achieved.

〔発明の実施例〕[Embodiments of the invention]

以下し1面を参照して本発明の詳細な説明する。 The present invention will be described in detail below with reference to the first page.

第1図は、本発明の方式を採用したプリンタの制御系の
ゾロツク図である。同図において、1はホストコンビ二
一タ、紙テープリーダ等のよウニデータを転送する装E
tを示し、以下ではホストコンピュータで代表スる。2
け入力インタフェースを示し、パス10に接続されて、
ホストコンピュータ1から転送されたデータを受け入れ
る。3はマイクロプロセッサを示し、パス10にF 1
75されている各部を制御するものである。パス10に
は、マイクロプロセッサ3が用いる制御用プログラムが
格納された几OM4及び、几AM516が接続されてい
る。RAM5.6はバッテリー7によりノ9ツクアツゾ
され、RAM5.6内のデータが、電源断時においても
所定時間保持され得る。更に、ノマス10には、出力イ
ンタフェース8がJ及続され、この出力インタフェース
8にはプリンタ9が接続されている。
FIG. 1 is a diagram of a control system of a printer employing the method of the present invention. In the figure, 1 is a device E for transferring the sea urchin data, such as a host computer, paper tape reader, etc.
In the following, a host computer will be used as a representative. 2
shows an input interface connected to path 10,
Accept data transferred from the host computer 1. 3 indicates the microprocessor, F 1 in path 10
75 is used to control each section. Connected to the path 10 are a box OM4 in which a control program used by the microprocessor 3 is stored, and a box AM516. The RAM 5.6 is powered by the battery 7, and the data in the RAM 5.6 can be retained for a predetermined period of time even when the power is turned off. Further, an output interface 8 is connected to the Nomas 10, and a printer 9 is connected to the output interface 8.

このようなシステムにおいて、ホストコンピュータlか
らデータが転送されて入力インタフェース2へ至ると、
マイクロプロセッサ3HROM4内の制御用プログラム
に基づいて、入力インタフェース2からデータを受け取
りノ々ス10を介して几AM6へ格納する。この例でl
d、几AM6#−tデータバッファとして使用され、I
l、AM5けワーキングレジスタとして使用されるもの
とする。マイクロプロセッサ3は、ルコーP終了の旨の
データを受け取るか、RAM6がデータで)14たされ
たことを検出すると、入力インタフェース2へ入力禁止
を通知し、出力インタフェース8ヘデータ出力の開始を
通知し、R,AM6からデータを読み出してパス10ヲ
介して出力インタフェース8ヘデータを転送する。プリ
ンタ9は、出力インタフェース8からデータを受け取り
、このデータに基づくプリント動作を行なう。
In such a system, when data is transferred from the host computer l to the input interface 2,
Based on the control program in the microprocessor 3HROM4, data is received from the input interface 2 and stored in the AM6 via the node 10. In this example l
d, 几AM6#-t used as data buffer, I
1, AM5 shall be used as a working register. When the microprocessor 3 receives data to the effect that the Luko P has ended or detects that the RAM 6 has been filled with data (14), it notifies the input interface 2 that input is prohibited, and notifies the output interface 8 of the start of data output. , R, AM6 and transfers the data to the output interface 8 via the path 10. The printer 9 receives data from the output interface 8 and performs a printing operation based on this data.

このようなマイクロプロセッサ3u、ROMd内の制f
11用ゾログラムに基づいて、バックアップメモリの検
査機能を有し、第2図のような機能部から成るものであ
る。同図において、21Fi書込手段を示し、この書込
手I221はRAM5.6内の所定アドレスの咳のアド
レスにデータを書き込むものである。ここで、全メモリ
領域を図示すると第3図のようであるとする。つまり、
アドレス“0000”からアドレス“0FFF”までが
ROM4に。
Such microprocessor 3u, control f in ROMd
It has a backup memory inspection function based on the 11 zologram, and consists of functional units as shown in FIG. In the figure, a 21Fi writing means is shown, and this writing hand I221 writes data to a predetermined address in the RAM 5.6. Here, it is assumed that the entire memory area is shown in FIG. 3. In other words,
Address “0000” to address “0FFF” is stored in ROM4.

よる制御用プログラムエリアで、アドレス“1ooo”
以降アドレス“IPFF”までがRAM5によるワーキ
ングメモリエリアで、アドレス“2000”以降アドレ
ス“FFFF″までがRA M 6によるデータ/マッ
ファエリアである。寸た、1%AM5は1個のICであ
るICIからなり、RAM6は3個のICである■C■
〜工C1vからなる。ここで、上記所定アドレスとはア
ドレス”1000”であり、隅のアドレスとにアドレス
“1001”である。
In the control program area, address “1ooo”
The area from address "IPFF" to address "IPFF" is a working memory area of RAM 5, and the area from address "2000" to address "FFFF" is a data/muffer area of RAM 6. In short, 1% AM5 consists of one IC, ICI, and RAM6 consists of three ICs ■C■
-Consists of engineering C1v. Here, the predetermined address is the address "1000", and the corner address is the address "1001".

更に、書き込まれるデータは、隣接する2つのアドレス
に人為的に褐き込咬れだとしか考えられぬ2のデータで
あれば良い。例えば、アドレス” 1000”K8 ビ
y ) (RAM5.6の17YVスが8ビツトとする
)のあるデータが書き透通れている場合、隣のアドレス
“1001”には上記データとコンブリメントなデータ
を書き込む。また、7Y’Liス” 1001’ にu
、7PL/ス“1000”IC書き込まれたデータを右
(または、左)ヘローテエイトしたデータを書き込むよ
うにしても良い。
Further, the data to be written may be data 2, which can only be considered to be an artificial addition to two adjacent addresses. For example, if data at address "1000" K8 (assuming 17YV of RAM 5.6 is 8 bits) is written transparently, write data that is congruent with the above data to the adjacent address "1001". Write. In addition, u to 7Y'Lisu"1001'
, 7PL/s "1000" It is also possible to write data obtained by rotating the written data to the right (or left).

本実施例では、防接する2つのアドレスのデータが互い
にコンブリメントなデータとなるように書き込むものと
する。ここで、所定の複数のアドレスを隠棲する2つの
アドレスとするのは次の理由による。一般に、メモリの
空間的配置とアドレス配置はほぼ対応している。電源が
遮断することにより変更されるデータは、空間的に離れ
れば離れるほど互いに異なるものとなる確率が高くなる
In this embodiment, it is assumed that data at two shielded addresses is written in such a way that the data is complementary to each other. Here, the reason why the plurality of predetermined addresses are set as two addresses for hiding is as follows. In general, the spatial arrangement of memory and the address arrangement almost correspond. The probability that the data that is changed when the power is cut off becomes different from each other increases as the distance between the data increases spatially.

したがって、離散したアドレスであると、電源が遮断し
てデータが変化したにもかかわらず、依然として特定の
関係を有するような異なるデータであることが少しでは
あるがあり得る。これに対し、防接するアドレスであれ
ば、はとんど同じデータに変化することとなり、予め与
えた特定の関係を保持するS率は、離散したアドレスの
場合に比し、さらに小さいものとなる。これが上記理由
である。
Therefore, if the addresses are discrete, even if the power is cut off and the data changes, there is a small chance that the data will still be different and have a specific relationship. On the other hand, if the address is a shield, the data will almost always change to the same data, and the S rate for maintaining the specific relationship given in advance will be even smaller than in the case of discrete addresses. . This is the reason mentioned above.

また、書込手段21が書き込みを行なう時期は、当初の
電源投入時及び、電源再投−人時であってデータの有効
性がないと判定されたときとする。22は判定手段を示
し、この実施例では、電源投入判断部23.読取部24
.レジスタA、レジスタB、比較部25からなる。電源
投入判断部23は、電源26の電圧がOから所定電圧と
なったとき、電源投入パルス27を読取部為へ出力する
。読取部24は、アドレス’ 1000”、”1001
”を記憶しておいて、電源投入ノξルス27を受けると
アドレス“1000”のデータを読み出しレジスタAへ
格納し、更にアドレス“1001″のデータを読み出し
反転してレジスタBへ格納する。比較部部はレジスタA
、Hのデータを取り込み、これらが一致するか否か比較
し、判定出力28を出力する。判定出力28が、一致し
たことを示すときには、■AM5.6のデータが全て有
効であるとして、マイクロプロセラv3は、メインプロ
グラムの処理を行なう。また、判定出力路が、一致しな
かったことを示すときには、読取部Uは判定出力路を受
けてアドレス” 1000’のデータを読み出し反転し
てレジスタBへ格納する。このとき、判定出力28を受
けていた書込手段21は、レジスタBにデータが格納さ
れるのを待って、格納されたデータをアドレス“100
工”へ格納する。この処理を終ると、マイクロプロセ;
・ザ3は、フラグ類を初期化して、イニシャルスタート
の動作を行なう。
The writing means 21 writes data when the power is first turned on and when the power is turned on again, when it is determined that the data is not valid. Reference numeral 22 indicates a determining means, and in this embodiment, a power-on determining section 23. Reading section 24
.. It consists of register A, register B, and comparison section 25. The power-on determining section 23 outputs a power-on pulse 27 to the reading section when the voltage of the power source 26 changes from O to a predetermined voltage. The reading unit 24 reads the addresses '1000'' and '1001.
”, and when the power-on signal ξ 27 is received, the data at address “1000” is read out and stored in register A, and the data at address “1001” is read out and inverted and stored in register B. Compare. Part is register A
, H are taken in, compared to see if they match, and a judgment output 28 is output. When the determination output 28 indicates that there is a match, it is assumed that all the data of AM5.6 is valid, and the microprocessor v3 processes the main program. Further, when the judgment output path indicates that there is no match, the reading unit U receives the judgment output path, reads out the data at address "1000', inverts it, and stores it in the register B. At this time, the judgment output 28 is The writing means 21 that had received the data waits for the data to be stored in the register B, and then writes the stored data to the address "100".
When this process is completed, the microprocessor;
・The 3 initializes flags and performs an initial start operation.

第4図は、上記の検査をマイクロプロセッサ3で行なう
場合のプログラムのフローチャートである。同図に示さ
れるように、電源投入されたことをマイクロプロセッサ
3が検出すると、RAM5のアドレス“1000”のデ
ータを読みレジスタAヘスドアし、RAM5のアドレス
“1001”ノデータを読み反転してレジスタBにスト
アする。次に、マイクロプロセッサ3は、レジスタAと
レジスタBとのデータが静しいか合力)判断し、停しい
ときには、l′LAM5,6の全データが有効であると
して、メインブロク゛ラムの実行へ進む。また、レジス
タAとレジスタBとのデータが等しくないときには、I
LAM5のアドレス“1000”のデータを読み出し、
これを反転した後、T(、AM5のアドレス“1001
”へ格納する。そして、フラグ類を初期化してイニシャ
ルスタートの動作を実行する。
FIG. 4 is a flowchart of a program when the above inspection is performed by the microprocessor 3. As shown in the figure, when the microprocessor 3 detects that the power has been turned on, it reads the data at address "1000" in RAM 5 and transfers it to register A, reads the data at address "1001" in RAM 5, inverts it, and transfers it to register B. Store in. Next, the microprocessor 3 determines whether the data in registers A and B are quiet (resultant), and if it is, it assumes that all data in l'LAMs 5 and 6 is valid and proceeds to execute the main block. . Also, when the data in register A and register B are not equal, I
Read the data at address “1000” of LAM5,
After inverting this, T(, AM5 address “1001
” and initializes the flags and executes the initial start operation.

従って、第1図のシステムでプリンタ9の動作途中に電
源断となり、その後電池再投入によって上記検査が行な
われ、比較結呆が一致すれば、続けてRAM6のデータ
がプリンタ9へ力えられる。
Therefore, in the system shown in FIG. 1, the power is cut off during the operation of the printer 9, and then the battery is reinserted to carry out the above inspection. If the results of the comparison match, the data in the RAM 6 is subsequently input to the printer 9.

また、一致せぬときには、マイクロプロセッサ3は初め
から動作を開始し直すことになる。
Furthermore, if they do not match, the microprocessor 3 will restart its operation from the beginning.

第5図は、他の実施例を説明するためのフローチャート
である。この実施例は、検査のためのデータを格納して
おくアドレスの組を複数組とし、全てのアドレスの組に
おいて、格納され1いるデータが互いにコンブリメント
なときのみ、RAM内の全データが有効であると判定す
るようにしたものである。これによって、検査の箇所が
複数fM所となるから、有効性の判定の信頼度が増加す
るものである。
FIG. 5 is a flowchart for explaining another embodiment. In this embodiment, a plurality of sets of addresses are used to store data for inspection, and all data in the RAM is valid only when the data stored in all sets of addresses are congruent with each other. It is determined that . As a result, the number of inspection points becomes a plurality of fM points, which increases the reliability of the determination of effectiveness.

z146図は、第5旧にて説明した実施例により検31
fると好適なメモリのメモリマツプを示す。即ち、RO
M4及び、ワーキンダレジスタエ1)7トなっている′
fLAM5の構成は、第3図に示したものと同様である
が、データバッファエリアが、BUF■〜BUFOのよ
うに複数あり、しかも、それらを構成するICが工C■
〜IC■のように複数ある例を示す。
Figure z146 is the result of inspection 31 according to the example explained in the 5th old.
f indicates a memory map of a preferred memory. That is, R.O.
M4 and working register area 1) 7 bits'
The configuration of fLAM5 is the same as that shown in Fig. 3, but there are multiple data buffer areas such as BUF - BUFO, and the ICs that make up these areas are
An example of multiple cases such as ~IC■ is shown.

このような場合には、検査のためのデータを格納してお
くアドレスの組を複数−この実施例では、5組−として
、ワーキングレジスタエリア、データノ々ツファエリア
全てにおいて検査を行なうようにすると、より信頼性が
増加する。更に、同図のように、データを格納しておく
アドレスの組を、Arjn、x 、 ADnx + 1
 、 ADR2,ADR2’+ 1 、・・・。
In such a case, it is better to use multiple sets of addresses (in this example, five sets) to store the data for inspection and perform the inspection on both the working register area and the data buffer area. Reliability increases. Furthermore, as shown in the figure, the set of addresses for storing data is Arjn, x, ADnx + 1
, ADR2, ADR2'+ 1,...

AI)R,5,ADR5+1で示すように、異なるIC
テツゾのアドレスに配置することにより、更に信頼性の
高い検査を行なうことができる。
AI) Different ICs as shown in R,5,ADR5+1
By placing it at the Tetsuo address, even more reliable testing can be performed.

尚、実施例では、防接するアドレスにコンブリメントな
2つのデータが存在することは、人為的以外にあり得な
いとして、一方のアドレスのデータを反転して他方のア
ドレスへ格納したが、よシ信頼度を高めるためには、予
め所定のデータ(例えば、10101010等)を用意
して一方のアドレスへ格納し、他方のアドレスにはこれ
を反転して格納するようにしても良い。才た、検査用の
デー゛りの格納アドレスは、通常のデータを格納するた
めに用いないものとする。
In the example, the data in one address was inverted and stored in the other address, assuming that the existence of two pieces of concomitant data in shielded addresses is impossible except for artificially. In order to increase reliability, predetermined data (for example, 10101010, etc.) may be prepared in advance and stored in one address, and inverted and stored in the other address. The storage address of the advanced test data shall not be used for storing normal data.

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

以上説明したように本発明によれば、一応の/?ツテリ
ーパックアップによってメモリ内のデータを保持するの
で、ホストコンビーータ等の負荷を大きくすることはな
い。更に、パリティジェネレータのようなバーr構成は
不要で簡単である。また、ノクリテイチェック方式に比
べ、検査のために使用できぬデータエリアの割合を少な
くでき便利である。また、ノぞリティチェック方式で(
よ、2ピイトエラーに対処しにくいが、本方式では、そ
のような制限がなく、比較的信頼性が高い。
As explained above, according to the present invention, /? Since the data in the memory is retained by data backup, the load on the host converter etc. is not increased. Furthermore, a bar configuration such as a parity generator is unnecessary and simple. Furthermore, compared to the non-criteria check method, this method is convenient because it can reduce the proportion of data areas that cannot be used for inspection. In addition, with the Nozority check method (
However, this method does not have such limitations and is relatively reliable.

従って、コンデンサ等の小容量のノマッテリーでバック
アップしているシステムには、経済的であり信頼性がお
けるから特に好適でおる。また、オペレータ不在時に生
じた電源断の対策として効果的である。
Therefore, it is particularly suitable for a system backed up by a small-capacity battery such as a capacitor because it is economical and reliable. It is also effective as a countermeasure against power outages that occur when the operator is absent.

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

第1図は本発明の方式を採用したプリンタの制。 御系のブロック図、第2し1は本発明の方式の実施例の
ブロック図、第3図は本発明により検査されるメモリの
メモリマツプを示す図、第4図は本発明の方式の一実施
例を説明するためのフローチャートを示す図、第5図は
本発明の方式の他の実施例を説明するためのフローチャ
ートを示す図、第6図は第5図の実施例により検査され
るメモリのメモリマツプを示す図である。 4・・・RC)M5,6・・−RAM 7・・・バッテ
リー21・・・書込手段 22・・・判定手段 23・
・・電源投入判断部 24・・・読取部 25・・・比
較部代理人 弁理士 則 近 憲 佑 (ほか1名) 第1図 第2図 第4図 第5図
Figure 1 shows the system of a printer that adopts the method of the present invention. 2.1 is a block diagram of an embodiment of the method of the present invention; FIG. 3 is a diagram showing a memory map of the memory inspected by the present invention; FIG. 4 is an implementation of the method of the present invention. FIG. 5 is a diagram showing a flowchart for explaining another embodiment of the method of the present invention, and FIG. 6 is a diagram showing a flowchart for explaining another embodiment of the method of the present invention. FIG. 3 is a diagram showing a memory map. 4...RC) M5,6...-RAM 7...Battery 21...Writing means 22...Judgment means 23.
...Power-on judgment section 24...Reading section 25...Comparison section agent Patent attorney Noriyuki Chika (and one other person) Fig. 1 Fig. 2 Fig. 4 Fig. 5

Claims (3)

【特許請求の範囲】[Claims] (1) 読み出し書き込み可能であるとともに電源断時
にバッテリーバックアップされるメモリと、該メモリの
所定の複数のアドレスのデータが相互に特定の関係を有
するようにデータを書き込む書込手段と、電源再投入後
に前記所定の複数のアドレスに格納されているデータを
読み出し、これらのデータに基づいて該データが有効で
あるか否かを判定する判定手段とを有し、該判定手段に
よる判定結果に基づいて前記メモリ内の全データの有効
性を判別することを特徴とするバックアップメモリの検
査方式。
(1) A memory that is readable and writable and is backed up by a battery when the power is turned off, a writing means that writes data so that data at a plurality of predetermined addresses in the memory have a specific relationship with each other, and a power supply that is turned on again. determination means for later reading data stored at the plurality of predetermined addresses and determining whether or not the data is valid based on the data, and based on the determination result by the determination means. A backup memory inspection method characterized by determining the validity of all data in the memory.
(2) 書込手段は、所定アドレスとその隣のアドレス
とのデータが相互にコンブリメントなデータとなるよう
に書き込み、判定手段は読み出したデータの一方を反転
して他方のデータと一致するか否か比較することにより
データが有効であるか否か判定することを特徴とする特
許請求の範囲第(1)項記載のバックアップメモリの検
査方式。
(2) The writing means writes data such that the data at the predetermined address and the address next to it become mutually congruent data, and the determining means inverts one of the read data to determine whether it matches the other data. The backup memory inspection method according to claim 1, wherein it is determined whether the data is valid or not by comparing whether the data is valid or not.
(3) 書込手段は、複数の所定アドレスとその開のア
ドレスとの少なくとも一方にデータを書き込み、判定手
段は、前記複截の所定アドレスとその岡のアドレスとに
書き込まれたデータを読み出して、防接するアドレスか
ら読み出されたデータの組についてデータが有効である
か否か判定することを特徴とする特許請求の範囲第(1
)項または第(2)項記載のバックアップメモリの検査
方式。
(3) The writing means writes data to at least one of a plurality of predetermined addresses and an address thereof, and the determination means reads data written to the plurality of predetermined addresses and an address thereof. , Claim No. 1 is characterized in that it is determined whether or not data is valid for a set of data read from a shielded address.
) or (2).
JP58157164A 1983-08-30 1983-08-30 Check system of back-up memory Pending JPS6049450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58157164A JPS6049450A (en) 1983-08-30 1983-08-30 Check system of back-up memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58157164A JPS6049450A (en) 1983-08-30 1983-08-30 Check system of back-up memory

Publications (1)

Publication Number Publication Date
JPS6049450A true JPS6049450A (en) 1985-03-18

Family

ID=15643584

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58157164A Pending JPS6049450A (en) 1983-08-30 1983-08-30 Check system of back-up memory

Country Status (1)

Country Link
JP (1) JPS6049450A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6326748A (en) * 1986-07-21 1988-02-04 Toyo Electric Mfg Co Ltd Method for deciding abnormality of memory
JPH0281150A (en) * 1988-09-16 1990-03-22 Nippon Denso Co Ltd Data protecting method for back-up memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6326748A (en) * 1986-07-21 1988-02-04 Toyo Electric Mfg Co Ltd Method for deciding abnormality of memory
JPH0281150A (en) * 1988-09-16 1990-03-22 Nippon Denso Co Ltd Data protecting method for back-up memory

Similar Documents

Publication Publication Date Title
US5446741A (en) Fast memory power-on diagnostics using DMA
US20030033573A1 (en) Memory card and memory controller
US4603406A (en) Power backed-up dual memory system
US6081892A (en) Initial program load
US5960195A (en) Intelligent volatile memory initialization
JPS6049450A (en) Check system of back-up memory
JP3070512B2 (en) Initialization diagnosis method of memory system
EP0070184B1 (en) A method of testing memory
JPH0778231A (en) Memory card
JP2910692B2 (en) Testing method of random access memory
JP3125526B2 (en) Storage device
JP2001147863A (en) Flash memory rewrite device
JPS6120160A (en) Method for detecting exception of addressing
JPH08220198A (en) Battery backup memory unit and backup function testing method
JPH0341538A (en) Main storage device
JPH02100743A (en) Electronic equipment
JP3220060B2 (en) Memory test method
JP3071846B2 (en) Parity error detection method and parity error detection circuit
JPS6072044A (en) Inspecting system of backup memory
JPH06250933A (en) Access control method for information processor and main storage
JPS6269342A (en) Semiconductor disk device
JP3060376U (en) Memory device
JPS59106017A (en) Testing of input/output controller
JPH02105241A (en) Memory fault detection circuit
JPH0460735A (en) Diagnostic system for storage device