JPH03256149A - Failure information storage device - Google Patents

Failure information storage device

Info

Publication number
JPH03256149A
JPH03256149A JP2053547A JP5354790A JPH03256149A JP H03256149 A JPH03256149 A JP H03256149A JP 2053547 A JP2053547 A JP 2053547A JP 5354790 A JP5354790 A JP 5354790A JP H03256149 A JPH03256149 A JP H03256149A
Authority
JP
Japan
Prior art keywords
address
failure information
storage
failure
written
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
JP2053547A
Other languages
Japanese (ja)
Inventor
Masao Nakajima
正雄 中島
Isao Koizumi
古泉 功
Takashi Hirano
隆司 平野
Naoki Shimada
直樹 島田
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.)
Bosch Corp
Original Assignee
Zexel 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 Zexel Corp filed Critical Zexel Corp
Priority to JP2053547A priority Critical patent/JPH03256149A/en
Publication of JPH03256149A publication Critical patent/JPH03256149A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To decide whether failure information is miswritten or not with high probability by converting the failure information into contents corresponding to respective addresses of the 1st and 2nd storage means and respectively writing the converted contents in the storage areas of the corresponding addresses. CONSTITUTION:At the time of detecting the generation of a failure, a failure detecting means 2 outputs the failure information to a writing means 5, which changes the failure information into the contents corresponding to respective addresses of the 1st and 2nd storage means 3, 4 and writes the changed contents in the storage areas 3a, 4a of respective corresponding addresses. A reading means 6 reads out the contents stored in the areas 3a, 3b having the addresses mutually related to the means 3, 4 and outputs the read contents to a deciding means 7. The means 7 decides whether the two contents of the failure information correspond to respective addresses of the areas 3a, 3b or not. When the means 7 decides that one of the two read failure information corresponds to the address of the area 3a and the other does not correspond to the address of the area 4a, a correcting means 8 corrects the storage contents not corresponding to the address based upon the storage contents of the corresponding storage area.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、車両等の機器に故障が発生した場合に、そ
の故障情報を記憶させておくための故障情報記憶装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a failure information storage device for storing failure information when a failure occurs in equipment such as a vehicle.

[従来の技術] 一般に、マイクロコンピュータ(以下、マイコンという
。)を搭載した車両においては、エンジンその他の各部
に故障が発生した場合、故障箇所(故障内容)を記憶し
ておき、故障箇所を修理する際には、記憶内容から故障
箇所を割り出し、これによって適切な修理を行うように
している。したがって、記憶内容は正確なものでなけれ
ばならず、誤った情報を出力することがないようにする
ことが重要である。
[Prior Art] Generally, in a vehicle equipped with a microcomputer (hereinafter referred to as microcomputer), when a failure occurs in the engine or other parts, the failure location (failure details) is memorized and the failure location is repaired. When repairing, the location of the failure is determined from the memory contents, and appropriate repairs are made based on this information. Therefore, the stored contents must be accurate, and it is important to prevent erroneous information from being output.

ところが、車両に搭載されるマイコンにおいては、イグ
ニッションキーの切断、走行時の振動による電源とマイ
コンとの接続部の緩み等に起因するマイコンの瞬間的切
断(以下、瞬断という。)により、誤った内容が記憶さ
れることがある。
However, microcomputers installed in vehicles can be accidentally disconnected due to instantaneous disconnection of the microcomputer (hereinafter referred to as "instantaneous disconnection") caused by disconnection of the ignition key or loosening of the connection between the power supply and the microcomputer due to vibrations during driving. The contents may be stored.

そこで、この出願の発明者は、同一の故障情報を記憶装
置の3つの領域に記憶させ、この3つの記憶内容を比較
することによって記憶内容が正しいものであるか否かを
判断していた。すなわち、3つの記憶領域の記憶内容を
それぞれA、B、Cとし、かつA、B、Cの順に記憶さ
れるものとした場合、記憶内容を比較すると次の4つの
場合が想定される。
Therefore, the inventor of this application stored the same failure information in three areas of a storage device, and compared the three stored contents to determine whether the stored contents were correct. That is, if the storage contents of the three storage areas are respectively A, B, and C, and A, B, and C are stored in the order, the following four cases are assumed when the storage contents are compared.

A=B=C・・・・・・(1) A=B≠C・・・・・・(2〉 A≠B=C・・・・・・(3) A#B≠C・・・・・・(4〉 そして、式(1)の場合には、記憶内容A、B、Cが全
て正しい、式(2)の場合には、記憶内容Cか瞬断の影
響により誤って書き込まれた(以下、誤書き込みという
。)もので、記憶内容A、Bが正しい、式(3)の場合
には、記憶内容Aが瞬断の影響により誤って書き込まれ
たもので、記憶内容B。
A=B=C...(1) A=B≠C...(2> A≠B=C...(3) A#B≠C... ...(4) In the case of formula (1), memory contents A, B, and C are all correct; in the case of formula (2), memory content C was written incorrectly due to the effect of a momentary interruption. (hereinafter referred to as erroneous writing), and in the case of formula (3), where stored contents A and B are correct, stored contents A was written incorrectly due to the influence of a momentary interruption, and stored contents B.

Cが正しい、式(4)の場合には、記憶内容Bが誤書き
込みされたもので、記憶内容Aが正しい、と判断してい
た。
In the case of formula (4) in which C is correct, it is determined that memory content B was written in error and memory content A is correct.

[発明が解決しようとする課題] しかしながら、上記のようにして判断する場合には、誤
った記憶内容を正しいものと誤判断することがあった。
[Problems to be Solved by the Invention] However, when making the determination as described above, there have been cases where incorrect stored content is incorrectly determined to be correct.

すなわち、上記従来の記憶方法においては、故障情報を
記憶装置の3つの記憶領域に単に書き込むだけであるか
ら、各記憶領域に書き込まれた内容が正しいものである
か否かを判断することができない。このため、式(1)
の場合には誤判断の確率は低いものの、式(2)、式(
3)および式(4)の場合には、誤った記憶内容を正し
いものと誤判断することがある。特に、式(4)の場合
には記憶内容A、B、Cのいずれも誤書き込みされた確
率が非常に高(、故障内容を誤って判断する確率も高い
ものとなっていた。
In other words, in the conventional storage method described above, since failure information is simply written to three storage areas of the storage device, it is not possible to determine whether the content written to each storage area is correct or not. . For this reason, equation (1)
Although the probability of misjudgment is low in the case of , Equation (2) and Equation (
In the case of equation (3) and equation (4), incorrect memory contents may be mistakenly determined to be correct. In particular, in the case of equation (4), the probability that all of the memory contents A, B, and C were written incorrectly was extremely high (and the probability that the content of the failure was incorrectly determined was also high).

また、瞬断による誤書き込みは経時的に行われるため、
当初式(1)が成立していたにも拘わらず、式(2)、
(3)あるいは式(4)になることがある。
In addition, since erroneous writing due to instantaneous interruptions occurs over time,
Although equation (1) was initially established, equation (2),
(3) or equation (4) may be obtained.

ここで、式(2)、(3)において互いに等しい記憶内
容のいずれも誤書き込みされたものである確率は、式(
4)の記憶内容Aが誤書き込みされたものである確率よ
りも低い。したがって、式(2)、 (3’)が成立し
ているときに、他と異なる記憶内容を互いに等しい2つ
の記憶内容に訂正し、式(1)が成立するようにしてお
けば、式(4)になるのを阻止し、これによって誤った
記憶内容を正しいものと判断する確率を低くすることが
できる。ところが、上記従来の記憶方法では訂正するこ
とが全く行われておらず、このため誤判断する確率が高
いものとなっていた。
Here, in equations (2) and (3), the probability that both of the same memory contents have been written by mistake is calculated by the equation (
This is lower than the probability that the stored content A was written in error in 4). Therefore, when formulas (2) and (3') hold true, if the different memory contents are corrected into two equal memory contents so that formula (1) holds true, then the formula ( 4) can be prevented, thereby lowering the probability that erroneous memory contents will be judged as correct. However, in the conventional storage method described above, no correction is performed at all, resulting in a high probability of misjudgment.

この発明は、上記事情を考慮してなされたもので、記憶
内容が誤書き込みされたものであるか否かを高い確率を
もって判断することができ、したがって故障箇所を誤っ
て判断するのを防止することができ、しかも誤書き込み
された記憶内容を正しいものに訂正することができる故
障情報記憶装置を提供することを目的とする [課題を解決するための手段] この発明は、第1図(A)、(B)、(C)に示すよう
に、機器1の各部に設置した各種センサ(図示せず)か
ら機器lの各部の状態を示す情報が入力され、その入力
情報に基づいて各部の故障を検出する故障検出手段2と
、アドレスが付された複数の記憶領域3a、・・・を有
する第1記憶手段3と、この第1記憶手段3のアドレス
と関連するアドレスが付された複数の記憶領域4 a 
+  ・・を有する第2記憶手段4と、前記故障検出手
段2からの故障情報を前記第1記憶手段3のアドレスに
対応させた内容にして対応するアドレスの記憶領域3a
に書き込むとともに、同故障情報を前記第2記憶手段4
のアドレスに対応した内容にして対応するアドレスの記
憶領域4aに書き込む書き込み手段5と、第1および第
2記憶手段3,4の互いに関連するアドレスの記憶領域
3a、4aに書き込まれた故障情報をそれぞれ読み取る
読み取り手段6と、この読み取り手段6によって読み取
られた各故障情報がそれぞれが書き込まれた記憶領域3
a、4aのアドレスと対応しているか否かを判別する判
別手段7と、第1記憶手段3と第2記憶手段4とのいず
れか一方から読み取られた故障情報がアドレスに対応し
、他方から読み取られた故障情報がアドレスに対応して
いないと前記判別手段7によって判断された際に、一方
から読み取られた故障情報を、その故障情報が読み取ら
れた記憶領域3a(4a)のアドレスと関連する他方の
記憶領域4a(3a)のアドレスと対応する内容にして
当該アドレスが付された他方の記憶領域4a(3a)に
書き込む訂正手段8とを備えたことを特徴とするもので
ある。
This invention was made in consideration of the above circumstances, and it is possible to determine with a high probability whether or not the memory contents have been written in error, thereby preventing erroneously determining the location of the failure. An object of the present invention is to provide a failure information storage device capable of correcting erroneously written memory contents. ), (B), and (C), information indicating the status of each part of equipment 1 is input from various sensors (not shown) installed in each part of equipment 1, and each part is controlled based on the input information. A first storage means 3 having a plurality of storage areas 3a, . . . each having a plurality of storage areas 3a, . storage area 4 a
+ . . . and a storage area 3a of the corresponding address by making the failure information from the failure detection means 2 correspond to the address of the first storage means 3.
At the same time, the same failure information is written to the second storage means 4.
The writing means 5 writes the content corresponding to the address in the storage area 4a of the corresponding address, and the failure information written in the storage areas 3a and 4a of the mutually related addresses of the first and second storage means 3 and 4 is written in the storage area 4a of the corresponding address. A reading means 6 for reading each, and a storage area 3 in which each failure information read by the reading means 6 is written.
The determination means 7 determines whether or not the address corresponds to the address a, 4a, and the failure information read from either the first storage means 3 or the second storage means 4 corresponds to the address, and the failure information is determined from the other. When the determination means 7 determines that the read failure information does not correspond to an address, the failure information read from one side is associated with the address of the storage area 3a (4a) from which the failure information was read. The correction means 8 writes the contents corresponding to the address of the other storage area 4a (3a) to which the address is attached to the other storage area 4a (3a).

[作用] 故障検出手段2は、機器1の各部に設置された各種セン
サからの人力情報に基づいて機器1の各部に故障が発生
しているか否かを検出する。故障が発生していることを
検出すると、故障検出手段2は故障情報を書き込み手段
5に出力する。書き込み手段5では、故障情報を第1お
よび第2記憶手段3,4の各アドレスのいずれかに対応
した内容に変更し、その内容を対応するアドレスの記憶
領域3a、4aにそれぞれ書き込む。この場合、いずれ
の故障情報をいずれのアドレスに書き込むかは予め定め
られている。例えば、故障検出手段2から出力される故
障情報をA、、A、・・・とし、それらが書き込まれる
記憶領域3aのアドレスをそれぞれり、 M、・・・、
記憶領域4aのアドレスをそれぞれL’M’、・・・と
すると、故障情報A。
[Operation] The failure detection means 2 detects whether or not a failure has occurred in each part of the equipment 1 based on human power information from various sensors installed in each part of the equipment 1. When detecting that a failure has occurred, the failure detection means 2 outputs failure information to the writing means 5. The writing means 5 changes the failure information to contents corresponding to either of the addresses of the first and second storage means 3, 4, and writes the contents into the storage areas 3a, 4a of the corresponding addresses, respectively. In this case, which failure information is written to which address is determined in advance. For example, let the failure information output from the failure detection means 2 be A, , A, .
Letting the addresses of the storage area 4a be L'M', . . . , the failure information A.

A3.・・は、それぞれAL、A、、・・・に変更され
て第1記憶手段3のアドレスL、M、・・・が付された
記憶領域3 a +  3 a + ・・・それぞれに
書き込まれるとともに、A L’ 、 A M’、・・
・に変更されて第2記憶手段4のアドレスL’ 、M’
 、・・・が付された第2記憶領域4a、4a、  ・
・に書き込まれる。
A3. . . are respectively changed to AL, A, . . . and written to the storage areas 3 a + 3 a + . . . to which addresses L, M, . Along with A L', A M',...
・The addresses L' and M' of the second storage means 4 are changed to
, . . . second storage areas 4a, 4a, ・
・Written in

読み取り手段6は、第1記憶手段3と第2記憶手段4と
の互いに関連するアドレスが付された記憶領域3a、4
aの記憶内容(故障情報)を読み取り、読み取った記憶
内容を判別手段7に出力する。
The reading means 6 reads the storage areas 3a and 4 of the first storage means 3 and the second storage means 4 to which mutually related addresses are assigned.
The memory contents (failure information) of a are read and the read memory contents are output to the determining means 7.

判別手段7は、2つの故障情報がそれぞれが書き込まれ
た記憶領域3a、4aの各アドレスと対応しているか否
かを判別する。読み取られた2つの故障情報のうちの一
方が記憶領域3a(4a)のアドレスと対応し、他方が
記憶領域4a(3a)のアドレスと対応していないもの
と判別手段7が判別した場合には、訂正手段8が故障情
報とアドレスとが対応していない記憶領域の記憶内容を
アドレスと記憶内容とが対応した記憶領域の記憶内容に
基づいて訂正する。
The determining means 7 determines whether the two pieces of failure information correspond to the respective addresses of the storage areas 3a and 4a to which they are written. When the determining means 7 determines that one of the two read failure information corresponds to the address of the storage area 3a (4a) and the other does not correspond to the address of the storage area 4a (3a). The correcting means 8 corrects the storage contents of the storage area where the failure information and the address do not correspond based on the storage contents of the storage area where the address and the storage content correspond.

例えば、第1記憶手段3のアドレスSが付された記憶領
域3aの記憶内容がアドレスと対応しないXであり、ア
ドレスSと関連するアドレスS′が付された第2記憶手
段4の記憶領域4aの記憶内容がアドレスと対応した故
障情報A8′であるものとすると、訂正手段8は故障情
報As’ に基づいて第1記憶領域3のアドレスSが付
された記憶領域3aの記憶内容をアドレスに対応した故
障情報A8に訂正する。逆に、第1記憶手段3のアドレ
スTが付された記憶領域3aにそのアドレスと対応した
故障情報A7が書き込まれ、第2記憶手段4のアドレス
T′が付された記憶領域4aにそのアドレスと対応しな
い故障情報Yが書き込まれていた場合には、アドレスT
′が付された記憶領域4aの記憶内容をAT′ に訂正
する。
For example, the storage content of the storage area 3a to which the address S of the first storage means 3 is attached is X that does not correspond to the address, and the storage area 4a of the second storage means 4 to which the address S' related to the address S is attached. Assuming that the stored content of is failure information A8' corresponding to the address, the correction means 8 converts the stored content of the storage area 3a to which the address S of the first storage area 3 is attached to the address based on the failure information As'. Correct the corresponding failure information A8. Conversely, failure information A7 corresponding to the address is written in the storage area 3a of the first storage means 3 to which the address T is attached, and that address is written to the storage area 4a of the second storage means 4 to which the address T' is attached. If failure information Y that does not correspond to
The stored contents of the storage area 4a marked with ' are corrected to AT'.

なお、1つの故障情報と1つのアドレスとを対応させる
必要はなく、複数の故障情報をまとめて1つのアドレス
に対応させた内容に変更し、それを対応するアドレスの
記憶領域3a、4aに書き込むようにしてもよい。例え
ば、故障情報A I+A、をまとめてALとし、それを
アドレスL、L’が付された記憶領域3a、4aにそれ
ぞれ書き込むようにしてもよい。
Note that it is not necessary to associate one piece of fault information with one address, and instead change the contents of a plurality of pieces of fault information into one that corresponds to one address, and write it to the storage areas 3a and 4a of the corresponding address. You can do it like this. For example, the failure information A I+A may be collectively written as AL and written in the storage areas 3a and 4a assigned addresses L and L', respectively.

[実施例] 以下、この発明の一実施例について第2図ないし第9図
を参照して説明する。
[Embodiment] An embodiment of the present invention will be described below with reference to FIGS. 2 to 9.

第2図はこの発明を実施するための車両制御用のマイコ
ン10を示すものであり、マイコン10は中央演算処理
装置(以下、CPUという)11およびメモリ12を備
えている。勿論、マイコンIOはそれら以外の構成も備
えているが、周知のものと同様であるので省略しである
。
FIG. 2 shows a microcomputer 10 for controlling a vehicle for implementing the present invention, and the microcomputer 10 is equipped with a central processing unit (hereinafter referred to as CPU) 11 and a memory 12. Of course, the microcomputer IO has other configurations as well, but they are the same as well-known ones, so they are omitted.

CPU1lには、故障検出対象である機器としての車両
(図示せず)の各部に設置された各種のセンサ(図示せ
ず)からそれぞれ情報が入力される。
Information is input to the CPU 1l from various sensors (not shown) installed in various parts of a vehicle (not shown) serving as equipment to be detected for failure.

そして、入力情報から故障検出対象に故障が発生してい
るか否かを検出する。この実施例では、検出対象が24
種あり、各検出対象に対応して24種の故障情報がCP
UIIから出力されるとともに、以下に詳述するように
してメモリ12に書き込まれる。
Then, it is detected from the input information whether a failure has occurred in the failure detection target. In this example, there are 24 detection targets.
There are 24 types of failure information corresponding to each detection target in the CP.
It is output from the UII and written to the memory 12 as detailed below.

メモリ12は、第3図ないし第5図に示すように、00
0.、(以下、下部室Hは16進数を示す)から7FF
、(10進数で2047)までのアドレスが付された記
憶領域12a、・・を有する8ビツトのE E P R
OM(E 1ectrically  E rasab
le A nd P rogrammable ROM
)が用いられている。この場合、メモリ12は、メイン
ブロック(第1記憶手段03とサブブロック(第2記憶
手段)14とに仮想的に区画され、さらにメインブロッ
ク13は第1、第2および第3のメインブロック13A
、13B、13Cに、サブブロック■4は第1゜第2お
よび第3のサブブロック14A、14814Cにそれぞ
れ仮想的に区画されている。
As shown in FIGS. 3 to 5, the memory 12 has 00
0. , (hereinafter, lower chamber H indicates hexadecimal number) to 7FF
, (2047 in decimal), an 8-bit EEP R having storage areas 12a, etc., with addresses up to (2047 in decimal)
OM(E 1 electrically E rasab
le and programmable ROM
) is used. In this case, the memory 12 is virtually partitioned into a main block (first storage means 03) and a sub-block (second storage means) 14, and the main block 13 is divided into a first, second and third main block 13A.
, 13B and 13C, sub-block 4 is virtually divided into first, second and third sub-blocks 14A and 14814C, respectively.

メインブロック13とサブブロック14とには、後述す
るように、互いに関連するアドレスが付された記憶領域
12a、12aに同一の故障情報(記憶内容は異なる。
As will be described later, the main block 13 and sub-block 14 have storage areas 12a and 12a assigned mutually related addresses with the same failure information (the stored contents are different).

)を記憶させるようにしている。).

これは、メインブロック13とサブブロック14との互
いに関連するアドレスが付された記憶領域12a、12
aの記憶内容のいずれか一方が瞬断等によって誤書き込
みされたものと判断された場合に、他方にもとづいて一
方を訂正するためのものである。
This corresponds to the storage areas 12a and 12 of the main block 13 and the sub-block 14, which are assigned mutually related addresses.
This is to correct one of the stored contents of a when it is determined that one of them has been erroneously written due to a momentary interruption or the like, based on the other.

また、メインおよびサブブロック13.14をそれぞれ
3つのブロックに区画したのは次の理由による。すなわ
ち、メモリ12の各記憶領域12aは8ビツトを有して
おり、各ビットが1つの故障情報を表す。しかるに、記
憶すべき故障情報は24種ある。そこで、メインブロッ
ク13を第1、第2および第3のメインブロック13A
  13813Cに区画し、それぞれ8種の故障情報を
記憶させるようにしている。この点は、サブブロック1
4についても同様である。
The main and sub blocks 13 and 14 are each divided into three blocks for the following reason. That is, each storage area 12a of the memory 12 has 8 bits, and each bit represents one piece of failure information. However, there are 24 types of failure information to be stored. Therefore, the main block 13 is divided into the first, second and third main blocks 13A.
It is divided into 13813C, and eight types of failure information are stored in each section. This point is subblock 1
The same applies to 4.

また、各ブロック13A−14Cには、次のようにして
故障情報が書き込まれる。
Further, failure information is written in each block 13A to 14C as follows.

いま、24種の故障情報をそれぞれに、、に、。Currently, we have information on each of 24 types of failures.

・・・+Kt4とすると、故障情報に1〜に8が第1メ
インブロツク13Aに、故障情報に9〜KI8が第2メ
インブロツク13Bに、故障情報に17〜に!4が第3
メインブロツク13Cにそれぞれ書き込まれる。 まず
、第1メインブロツク13Aに対する書き込みについて
述べると、故障情報に、〜に8は、第4図に示すように
、各記憶領域12aの最寄側の桁から順次対応しており
、各故障情報は記憶領域12aの各桁を1からOに変換
することによって書き込まれる。また、複数の故障情報
により、各故障情報に対応した桁が1からOに変換され
る。
...+Kt4, failure information 1-8 goes to the first main block 13A, failure information 9-KI8 goes to the second main block 13B, and failure information 17-! 4 is the third
Each is written to the main block 13C. First, to describe writing to the first main block 13A, as shown in FIG. is written by converting each digit of the storage area 12a from 1 to O. Further, depending on the plurality of pieces of failure information, the digit corresponding to each piece of failure information is converted from 1 to O.

例えば、故障情報に2により記憶領域12Hの記憶内容
が (111111111)から (111111101) に書き換えられる。つまり記憶情報に、が書き込まれる
。また、記憶情報に、、に3により、記憶領域12aの
記憶内容が (111111001)に書き換えられる。
For example, the storage contents of the storage area 12H are rewritten from (111111111) to (111111101) based on the failure information 2. In other words, is written to the memory information. In addition, the storage contents of the storage area 12a are rewritten to (111111001) by 3 in the storage information.

この書き換えは、記憶内容に対応したアドレスの記憶領
域12aについてだけ行われるのであり、記憶内容とア
ドレスとは次のような一定の規則に従って関係付けられ
ている。
This rewriting is performed only on the storage area 12a at an address corresponding to the stored content, and the stored content and address are related according to the following fixed rules.

いま、(11111101)を反転させると、(000
00010)になる。これを2進数の数とみなすと、1
0B(以下、下添字Bは2進数を示す。)であり、16
進数の2□(以下、下添字Hは16進数を示す。)にな
る。そして、002Hのアドレスが付された記憶領域1
2aに(11111101)が書き込まれる。同様に、
故障情報かに8であれば、(10000000)が08
0.のアドレスが付された記憶領域12aに書き込まれ
る。
Now, if we invert (11111101), it becomes (000
00010). If we consider this as a binary number, 1
0B (hereinafter, the subscript B indicates a binary number), and 16
The base number is 2□ (hereinafter, the subscript H indicates a hexadecimal number). Then, storage area 1 with address 002H
(11111101) is written to 2a. Similarly,
If the failure information is 8, (10000000) is 08
0. is written to the storage area 12a assigned the address.

また、故障情報に、が発せられた後に、故障が発生し、
その故障に対応する故障情報かに3である場合には、故
障情報に2.に3によって表される内容は、(1111
1001)てあり、これを反転すると(0000011
0)になる。これは、110、、であり、6.である。
Also, if the failure occurs after the failure information is issued,
If the failure information corresponding to the failure is 3, the failure information is 2. The content represented by 3 is (1111
1001), and if you invert this, (0000011)
0). This is 110, and 6. It is.

したがって、アドレス006、の記憶領域12aに(1
1111001)が書き込まれる。同様に、故障情報に
、が発せられた後に故障情報に8が発せられた場合には
、アドレス082の記憶領域に(01111101)が
書き込まれる。さらに、故障情報に、〜に8が全て発せ
られた場合には、アドレスOFF□の記憶領域12aに
(00000000)が書き込まれる。
Therefore, in the storage area 12a at address 006, (1
1111001) is written. Similarly, if 8 is issued as the fault information after , then (01111101) is written in the storage area at address 082. Further, when all 8's are issued in the failure information, (00000000) is written in the storage area 12a at address OFF□.

なお、以上の内容から明らかなように、第1メインブロ
ツク13Aは、アドレス0OOI(〜OFF、までであ
る。以下、100.〜]、 F F、までが第2メイン
ブロック13B、200.、〜2 F F +1まてが
第3メインブロック13C,300,〜3FFHまでが
第1サブブロック14A、400.〜4FF、までか第
2サブブロック14B、50’O,〜5FF、までが第
3サブブロツク14Cとされており、アドレス600□
〜7 F F nまでの記憶領域12aは不使用領域に
なっている。
As is clear from the above content, the first main block 13A has addresses 0OOI (~OFF, hereinafter referred to as 100.~), and the addresses up to FF correspond to the second main blocks 13B, 200.~OFF. 2FF +1 The third main block 13C, 300, to 3FFH is the first subblock 14A, 400. to 4FF, and the second subblock 14B, 50'O, to 5FF is the third subblock. It is said to be 14C, and the address is 600□
The storage area 12a from 7FFn to 7FFn is an unused area.

また、故障情報が書き込まれた記憶領域]、 2 Hの
うちアドレス数の最も大きい記憶領域12 aは、過去
に発生した全ての故障情報が書き込まれることになる。
In addition, the storage area 12a having the largest number of addresses among the storage areas 12a and 2H in which failure information has been written is where all failure information that has occurred in the past is written.

したがって、第1メインブロツク13Aの記憶内容を取
り出す場合には、アドレスOFF□からアドレス000
.へ向かって順次読み取るようにすれば、最初に故障情
報が読み取られた記憶領域12aの記憶内容によって過
去に発生した全ての故障情報が得られることになる。こ
の点は、以下に述べる第2および第3メインブロック1
3B、13Cについても同様である。
Therefore, when retrieving the memory contents of the first main block 13A, it is necessary to read the contents from address OFF□ to address 000.
.. If the information is read sequentially toward , all of the failure information that has occurred in the past can be obtained based on the storage contents of the storage area 12a from which the failure information was first read. This point applies to the second and third main blocks 1 described below.
The same applies to 3B and 13C.

また、第2メインブロツク13Bへの書き込みについて
は、故障情報に9〜に18が記憶領域12aの最寄側の
桁から順次対応しており、故障情報に9〜に111によ
り上記と同様にして表される数と、第2メインブロツク
の3桁のアドレス(100,〜IFF、)のうちの下2
桁の数とが一致するアドレスの記憶領域に、故障情報が
書き込まれる。
Regarding writing to the second main block 13B, digits 9 to 18 correspond to the failure information sequentially from the nearest digit of the storage area 12a, and 9 to 111 correspond to the failure information in the same way as above. The number represented and the lower two of the three-digit address (100, ~IFF,) of the second main block.
Failure information is written to the storage area of the address that matches the number of digits.

第3メインブロツク13Bについても同様である。The same applies to the third main block 13B.

次に、第1サブブロツク14Aへの書き込みについて説
明すると、第1サブブロツク14Aには、第1メインブ
ロツク13Aに書き込まれた故障情報に関する記憶内容
を反転して得られる2進数から1だけ差し引いて得られ
た2進数が記憶領域12aに書き込まれる。この場合、
書き込まれる記憶領域12aのアドレスは、第1メイン
ブロツク13aの記憶領域12aのアドレスの下2桁と
一定の関連を持たせている。すなわち、内容的に同一で
ある(上記のように形態は異なる)故障情報は、下2桁
が等しいアドレスが付された第1メインブロツク13A
と第1サブブロツク14Aとの各記憶領域12a12H
に書き込まれる。
Next, to explain the writing to the first sub-block 14A, the first sub-block 14A contains a binary number obtained by subtracting 1 from the binary number obtained by inverting the memory contents related to the failure information written in the first main block 13A. The binary number is written into the storage area 12a. in this case,
The address of the storage area 12a to be written has a certain relationship with the last two digits of the address of the storage area 12a of the first main block 13a. In other words, failure information that is the same in content (different in form as described above) is stored in the first main block 13A to which addresses have the same last two digits.
and each storage area 12a12H of the first sub-block 14A.
will be written to.

例えば、第4図に示すように、第1メインフロツク13
AのアドレスOO2、、の記憶領域12aに(1111
1101)が書き込まれている場合には、これを反転し
てlだけ差し引くことにより、(00,000001)
が得られる。そして、これが第1サブブロツク14Aの
アドレス302 、、を有する記憶領域12aに書き込
まれる。
For example, as shown in FIG.
In the storage area 12a of address OO2 of A (1111
1101) is written, by reversing this and subtracting l, it becomes (00,000001).
is obtained. Then, this is written to the storage area 12a having the address 302, . . . of the first sub-block 14A.

第2、第3サブブロック14B、14Cについては、第
2、第3メインブロツクの記憶内容が上記と同様にして
それぞれ書き込まれる。
Regarding the second and third sub-blocks 14B and 14C, the stored contents of the second and third main blocks are written in the same manner as described above.

なお、この実施例ではEEFROMが用いられており、
それにおいては各ビットの定常状態が1であるため、1
からOへ変換しているが、定常状態がOであるものでれ
ばOからlへ変換するようにしてもよい。この場合には
、メインブロック13A、13B、13Gの記憶内容を
そのまま2進数とみなし、これを対応するアドレスの記
憶領域12Hに書き込めばよい。サブブロック14A。
Note that this embodiment uses EEFROM,
In that case, the steady state of each bit is 1, so 1
However, as long as the steady state is O, it may be converted from O to l. In this case, the storage contents of the main blocks 13A, 13B, and 13G may be regarded as binary numbers as they are, and these may be written into the storage area 12H at the corresponding address. Sub-block 14A.

14B、14Cに対しては、メインブロック13A〜1
3Cの記憶内容から1だけ差し引き、それを対応する記
憶領域12Hに書き込めばよい。
For 14B and 14C, main blocks 13A to 1
It is sufficient to subtract 1 from the storage contents of 3C and write it to the corresponding storage area 12H.

また、メインブロック13とサブブロック14との各記
憶領域12aのうち、過去に発生した全ての故障情報が
書き込まれた記憶領域12Hについては、メインブロッ
ク13とサブブロック14とのいずれか一方の記憶領域
12Hに書き込まれた故障情報がアドレスと対応し、他
方の記憶領域12aに書き込まれた故障情報がアドレス
と対応していない場合には、アドレスと故障情報とが対
応しない他方の記憶領域12Hの記憶内容が、アドレス
と故障情報とが対応する一方の記憶領域12aの記憶内
容に基づいて訂正される。
Furthermore, among the storage areas 12a of the main block 13 and the sub-block 14, the storage area 12H in which all the failure information that occurred in the past is written is the storage area 12H of the main block 13 and the sub-block 14. If the failure information written in the area 12H corresponds to an address and the failure information written in the other storage area 12a does not correspond to the address, then the failure information written in the other storage area 12H where the address and the failure information do not correspond. The stored contents are corrected based on the stored contents of one storage area 12a to which the address and the failure information correspond.

例えば、第1メインブロツク13Aのアドレスが008
1(である記憶領域12aに、過去に発生した全ての故
障情報が書き込まれていたものとする。第4図において
、アドレス008.の記憶内容は、(11110111
)であり、アドレスと対応している。アドレス0O8H
と関連するサブブロック14Aのアドレス308□が付
された記憶領域12aの記憶内容は、(0000100
0)てあり、アドレスと対応していない。この場合には
、アドレス008.の記憶内容に基づいてアドレス30
8、の記憶内容がアドレス308Hと対応するよう、(
00000111)に訂正される。
For example, the address of the first main block 13A is 008
It is assumed that all the failure information that occurred in the past has been written in the storage area 12a which is 1 (.1). In FIG.
) and corresponds to the address. Address 0O8H
The storage contents of the storage area 12a to which the address 308□ of the sub-block 14A related to is (0000100
0) and does not correspond to the address. In this case, address 008. address 30 based on the memory contents of
8, so that the memory contents of address 308H correspond to (
00000111).

勿論、第2.第3メインブロック13B、13Cと第2
.第3サブブロック14B、14Gについても同様であ
る。また、第nサブブロック14A、14B、14Cに
書き込まれた故障情報がアドレスと対応し、第nメイン
ブロック13A、13B、13Cに書き込まれた故障情
報がアドレスと対応していない場合には、第nサブブロ
ック14A〜14Cに書き込まれた記憶内容に基づいて
第nメインブロック13A〜13Cに書き込まれた記憶
内容が訂正される。
Of course, the second. Third main blocks 13B, 13C and second
.. The same applies to the third sub-blocks 14B and 14G. Further, if the failure information written in the n-th sub-blocks 14A, 14B, 14C corresponds to the address, and the failure information written in the n-th main block 13A, 13B, 13C does not correspond to the address, The storage contents written in the n-th main blocks 13A-13C are corrected based on the storage contents written in the n-th sub-blocks 14A-14C.

上記のようなメモリ12への書き込みおよび訂正は、所
定のプログラムにしたがって行われる。
Writing and correction to the memory 12 as described above are performed according to a predetermined program.

以下、メモリ12への書き込みおよび訂正について第6
図以降に示すフローチャートに基づいて説明する。
Below, the sixth section regarding writing and correction to the memory 12 will be explained.
This will be explained based on the flowcharts shown in the figures and subsequent figures.

第6図は、書き込みおよび訂正処理のメインルーチンを
示すものであり、プログラムのスタート後、ステップ1
01においてメモリクリアスイッチ(図示せず)がON
状態になっているか否かが判断される。メモリクリアス
イッチは、メモリ12の記憶内容を全て初期状態にする
ためのものであり、メモリクリアスイッチがON状態で
あれば、つまりメモリクリアスイッチが操作者によって
ON操作されていれば、ステップ102においてメモリ
クリアが実行される。このメモリクリアは、EEPRO
Mに対する周知のメモリクリア方法が採用されている。
FIG. 6 shows the main routine of writing and correction processing. After the program starts, step 1
At 01, the memory clear switch (not shown) is turned on.
It is determined whether or not the state has been reached. The memory clear switch is for setting all the stored contents of the memory 12 to the initial state, and if the memory clear switch is in the ON state, that is, if the memory clear switch is turned on by the operator, in step 102 Memory clear is executed. This memory clear is done by EEPRO
A well-known memory clearing method for M is employed.

しかも、この発明の要旨でもないので、簡単に説明する
と、いわゆるページライトモードで16バイトずつ行わ
れる。そして、メモリクリアが96(−600,/16
)回行われることにより、メモリ12全体がクリアされ
る。
Furthermore, this is not the gist of the invention, so to briefly explain, the data is written in 16-byte units in a so-called page write mode. And memory clear is 96(-600,/16
) times, the entire memory 12 is cleared.

なお、メモリ12全体がクリアされるまでの間は、メモ
リクリアスイッチをON操作しておく必要があるが、そ
の時間は3秒程度である。
Note that it is necessary to turn on the memory clear switch until the entire memory 12 is cleared, but the time required is about 3 seconds.

メモリクリアスイッチがON操作されていなければ、ス
テップ103においてメモリ12の検索が行われる。
If the memory clear switch has not been turned on, the memory 12 is searched in step 103.

メモリ検索は、詳細を後述するように、メモリ12から
最新でかつ正しい故障情報の読み出し、その故障情報の
CPUが処理可能なRAM(ランダムアクセスメモリ)
等に対する書き込み、および故障情報の訂正が行われる
。
As will be described in detail later, the memory search involves reading out the latest and correct failure information from the memory 12 and reading out the failure information from a RAM (random access memory) that can be processed by the CPU.
etc., and correction of failure information is performed.

メモリ検索が終了すると、現時点において故障が発生し
ているか否かが判断される(ステップ104)。
When the memory search is completed, it is determined whether a failure has occurred at the present time (step 104).

現時点で故障がある場合には、ステップ105において
メモリ更新が行われる。メモリ更新は、後述するように
、過去に発生した全故障と現時点での故障が異なる場合
に、過去の故障に現時点での故障を加え、それを対応す
るアドレスに書き込むものである。
If there is a current failure, a memory update is performed in step 105. As will be described later, memory updating is performed by adding the current failure to the past failures and writing it to the corresponding address when all the failures that have occurred in the past are different from the current failure.

ステップ102におけるメモリクリアが終了した場合、
ステップ104における判断が否定判断である場合、お
よびステップ105におけるメモリ更新が終了した場合
には、プログラムが終了する。
When the memory clear in step 102 is completed,
If the determination in step 104 is negative, and if the memory update in step 105 is completed, the program ends.

上記メモリ検索は、第7図に示すフローチャートに基づ
いて実行される。このフローチャートに示すように、ま
ずステップ201で第1メインブロツク13Aのアドレ
スカウンタの初期化が行われ、アドレスカウンタの値n
が0FFHとされる。
The above memory search is executed based on the flowchart shown in FIG. As shown in this flowchart, first, in step 201, the address counter of the first main block 13A is initialized, and the value n of the address counter is initialized.
is set to 0FFH.

次に、第1メインブロツク13Aおよび第1サブブロツ
ク14Aの読み取りが行われる(ステップ202)。こ
の読み取りは、詳細を後述するように、第1メインブロ
ツク13Aについてはアドレスカウンタによって指示さ
れるアドレスが付された記憶領域12aについて行われ
、第1サブブロツク14Aについては読み取られる第1
メインブロツク13Aの記憶領域12aのアドレスと関
連するアドレスが付された記憶領域12aについて行わ
れる。この場合、アドレスカウンタの値は第1メインブ
ロツク13Aおよび第2メインブロツク14Aの1つの
記憶領域12aを読み取ると、1だけデクリメントされ
る。したがって、読み取りは、アドレスOFF、からア
ドレス000.へ向かって順次行われる。そして、読み
取りは、第1メインブロツク13Aと第1サブブロツク
14Aとの少なくとも一方から有効な故障情報が最初に
読み取られるまで続けられる。
Next, the first main block 13A and the first sub-block 14A are read (step 202). As will be described in detail later, this reading is performed for the first main block 13A in the storage area 12a assigned the address indicated by the address counter, and for the first sub-block 14A, the first
This is performed for the storage area 12a assigned an address related to the address of the storage area 12a of the main block 13A. In this case, the value of the address counter is decremented by 1 when one storage area 12a of the first main block 13A and the second main block 14A is read. Therefore, reading is performed from address OFF to address 000. It will be carried out sequentially towards. Reading continues until valid fault information is first read from at least one of the first main block 13A and the first sub-block 14A.

有効な故障情報は、ステップ203において、CPUI
Iが使用可能なメモリ(勿論メモリ12とは異なるメモ
リ)に故障データとして書き込まれる(セーブされる)
。ここで、故障データとしたのは、説明の便宜上、メモ
リ12に書き込まれた故障情報と区別するためのもので
ある。また、故障データは、故障情報の読み取り順序お
よび前述したメモリ12に対する故障情報の書き込み態
様から明らかなように、現在までに発生した全ての故障
情報を含むものであり、最新のものである。
Valid fault information is sent to the CPUI in step 203.
I is written (saved) as failure data in an available memory (a memory different from memory 12, of course).
. Here, failure data is used to distinguish it from failure information written in the memory 12 for convenience of explanation. Furthermore, as is clear from the order in which the failure information is read and the manner in which the failure information is written to the memory 12 described above, the failure data includes all the failure information that has occurred up to now, and is the latest.

そこで、以下においては故障データを最新故障データと
称し、この最新故障データに対応する故障情報を最新故
障情報と称する。
Therefore, hereinafter, the failure data will be referred to as the latest failure data, and the failure information corresponding to this latest failure data will be referred to as the latest failure information.

以下、同様にしてアドレスカウンタの初期化(n−1F
F、)、第2メインブロツク13Bおよび第2サブブロ
ツク14Bの最新故障情報の読み取り、並びにセーブが
行われ(ステップ204,205゜206)、その後ア
ドレスカウンタの初期化(n=2 F F 、)、第3
メインブロツク13Gおよび第3サブブロツク14Cの
最新故障情報の読み取り、並びにセーブが行われる(ス
テップ207,208.209)。
Hereafter, address counter initialization (n-1F
F, ), the latest failure information of the second main block 13B and second sub-block 14B is read and saved (steps 204, 205, 206), and then the address counter is initialized (n=2 F F ,), Third
The latest failure information of the main block 13G and third sub-block 14C is read and saved (steps 207, 208, and 209).

最新故障情報の読み取りは、第8図に示すフローチャー
トに基づいて行われる。
The latest failure information is read based on the flowchart shown in FIG.

ステップ301においてメインブロック13の故障情報
の読み取りが行われる。この読み取りは、記憶領域12
a毎に行われるものであり、アドレスカウンタの値nと
同一のアドレスが付された記憶領域12aについて行わ
れる。この場合、ステップ202における読み取りであ
れば、ステップ201においてアドレスカウンタの初期
化(n−〇FF、)が行われているので、最初の読み取
りは第1メインブロツク13AのアドレスOF F o
が付された記憶領域12aについて行われる。
In step 301, failure information of the main block 13 is read. This reading is performed in the storage area 12.
This is performed every time a, and is performed for the storage area 12a assigned the same address as the value n of the address counter. In this case, in the case of reading in step 202, since the address counter has been initialized (n-〇FF,) in step 201, the first reading is performed at the address OFFO of the first main block 13A.
This is performed for the storage area 12a marked with .

なお、以下においては、第1メインブロツク13Aと第
1サブブロツク14Aとについてのみ説明することとし
、第2.第3メインブロック13B、13Gおよび第2
.第3サブブロツクについてはその説明を省略する。
In the following, only the first main block 13A and the first sub-block 14A will be explained, and the second. Third main blocks 13B, 13G and second
.. The description of the third sub-block will be omitted.

次に、ステップ302において、第1サブブロツク13
Bの読み取りが行われた記憶領域12Hのアドレスと関
連するアドレスが付された第1サブブロツク14Aの記
憶領域12aの読み取りが行われる。勿論、最初の読み
取りは、アドレス3FF、が付された記憶領域12aに
対して行われる。
Next, in step 302, the first sub-block 13
The storage area 12a of the first sub-block 14A, which has an address related to the address of the storage area 12H from which B was read, is read. Of course, the first reading is performed on the storage area 12a assigned the address 3FF.

次に、第1メインブロツク13Aから読み取った故障情
報が有効であるか否かが判断される(ステップ303)
。故障情報が有効であるか否かは、故障情報とそれが読
み取られた記憶領域12aのアドレスとが対応している
か否かよって判断される。例えばアドレスが008.で
あるのに対し、そこに書き込まれた故障情報が (11110111)である場合には、故障情報は有効
であり、それ以外の場合には有効でないものと判断され
る。
Next, it is determined whether the failure information read from the first main block 13A is valid (step 303).
. Whether or not the failure information is valid is determined by whether or not the failure information corresponds to the address of the storage area 12a from which it was read. For example, the address is 008. On the other hand, if the failure information written there is (11110111), the failure information is determined to be valid; otherwise, it is determined to be invalid.

第1メインブロツクL4Aの故障情報が有効でなければ
、ステップ304において第1サブブロツク14Aから
読み取った故障情報が有効であるか否かか判断される。
If the failure information of the first main block L4A is not valid, it is determined in step 304 whether the failure information read from the first sub-block 14A is valid.

この判断も故障情報とアドレスとの対応関係に基づいて
行われる。
This determination is also made based on the correspondence between failure information and addresses.

第1サブブロツク14Aの故障情報が有効でなければ、
つまり第■メインブロック13Aの故障情報と第1サブ
ブロック1.4 Aの故障情報との両者が有効でなけれ
ば、ステップ305においてアドレスカウンタが更新さ
れる。この更新は、アドレスカウンタの値を1だけデク
リメントすることによって行われる。そして、ステップ
306において、1だけデクリメントされた後のアドレ
スカウンタの値nがOであるか否かが判断される。
If the failure information of the first sub-block 14A is not valid,
That is, if both the failure information of the main block 13A and the failure information of the first sub-block 1.4A are not valid, the address counter is updated in step 305. This update is performed by decrementing the value of the address counter by one. Then, in step 306, it is determined whether the value n of the address counter after being decremented by 1 is O.

neoであれば、ステップ301へ戻り、アドレスカウ
ンタの値nと同一のアドレスが付された第1メインブロ
ツク13Aの記憶領域12Hの読み取りが行われるとと
もに、それと関連するアドレスが付された第1サブブロ
ツク14Aの記憶領域12aの読み取りが行われる。以
下、ステップ303またはステップ304の判断か肯定
判断になるまで、つまり第■メインブロック13Aから
読み取られた故障情報と第1サブブロツク14Aから読
み取られた故障情報のいずれかが有効であると判断され
るまで繰り返される。
If it is neo, the process returns to step 301, where the storage area 12H of the first main block 13A with the same address as the address counter value n is read, and the first sub-block with the associated address is read. Reading of the storage area 12a of 14A is performed. Thereafter, until an affirmative determination is made in step 303 or step 304, it is determined that either the fault information read from the main block 13A or the fault information read from the first sub-block 14A is valid. repeated until.

なお、読み取りを繰り返してアドレスカウンタの値nが
Oになった場合、つまりステップ306の判断が肯定判
断になった場合には、第1メインブロツク13Aと第1
サブブロツク14Aとのいずれにも有効な故障情報が書
き込まれていないのであり、第1メインブロツク13A
と第1サブブロツク14Aとの読み取りが終了し、第2
メインおよびサブブロック13B、14Bの読み取り、
第3メインおよびサブブロック13C14Cの読み取り
が、第7図に示すフローチャートにしたがって行われる
。
Note that if the value n of the address counter becomes O after repeated reading, that is, if the judgment in step 306 is affirmative, the first main block 13A and the first
Valid failure information is not written in any of the sub-blocks 14A and the first main block 13A.
and the first sub-block 14A are completed, and the second sub-block 14A is read.
reading main and sub-blocks 13B, 14B;
Reading of the third main and sub-blocks 13C and 14C is performed according to the flowchart shown in FIG.

ステップ304における判断が肯定判断である場合には
、第1サブブロツク14Aから読み取られた故障情報に
基づき、第1メインブロツク13aの記憶領域12Hの
記憶内容の訂正が行われる。
If the determination in step 304 is affirmative, the contents stored in the storage area 12H of the first main block 13a are corrected based on the failure information read from the first sub-block 14A.

勿論、訂正が行われる記憶領域12aは、有効な故障情
報が読み取られた第1サブブロツク14Aの記憶領域1
2aに付されたアドレスと関連するアドレスが付された
第1メインブロツク13Aの記憶領域12aである。そ
して、有効な故障情報は、前述したように、ステップ2
03において最新故障データとしてメモリに書き込まれ
る。
Of course, the storage area 12a where the correction is made is the storage area 1 of the first sub-block 14A from which valid failure information has been read.
This is the storage area 12a of the first main block 13A to which an address related to the address assigned to 2a is assigned. Then, valid failure information is obtained in step 2, as described above.
At 03, it is written to the memory as the latest failure data.

なお、最新故障データは、それが読み取られたメインブ
ロックまたはサブブロック毎にメモリに書き込まれる。
Note that the latest failure data is written to the memory for each main block or subblock from which it is read.

上記ステップ303における判断が肯定判断である場合
、つまり第1メインブロツク13Aから読み取られた故
障情報が有効である場合には、ステップ308において
第1サブブロツクから読み取られた故障情報が有効であ
るか否かが判断される。
If the determination in step 303 is affirmative, that is, if the failure information read from the first main block 13A is valid, it is determined in step 308 whether the failure information read from the first sub-block is valid. will be judged.

有効であれば、第1メインブロツク13Aの故障情報ま
たは第1サブブロツク14Aの故障情報が最新故障デー
タとされる。
If valid, the failure information of the first main block 13A or the failure information of the first sub-block 14A is set as the latest failure data.

有効でなければ、ステップ309において、第1サブブ
ロツク14Aの訂正が行われるとともに、有効な故障情
報が最新故障データとされる。
If it is not valid, in step 309, the first sub-block 14A is corrected and the valid failure information is made the latest failure data.

また、上記メモリ更新は、第9図に示すフローチャート
に基づいて実行される。
Further, the above memory update is executed based on the flowchart shown in FIG.

まず、ステップ401において、メインブロックカウン
タが初期化(n−1)される。次に、メインブロックカ
ウンタによって指示される第nメインブロックから読み
取られた最新故障データが取り出される(ステップ40
2)。勿論、最初に取り出される最新故障データは、ス
テップ401においてメインブロックカウンタの値nが
1になされているから、メインブロックカウンタ第1メ
インブロツク13Aから読み取られた最新故障データが
取り出される。
First, in step 401, a main block counter is initialized (n-1). Next, the latest failure data read from the nth main block indicated by the main block counter is retrieved (step 40
2). Of course, since the value n of the main block counter is set to 1 in step 401, the latest failure data that is retrieved first is the latest failure data read from the main block counter first main block 13A.

次に、現在発生している故障データのうち第nメインブ
ロックに書き込まれるべき故障データ(以下、現在故障
データという。)が取り出される(ステップ403)。
Next, among the currently occurring fault data, fault data to be written into the n-th main block (hereinafter referred to as current fault data) is extracted (step 403).

なお、現在故障データは、新たな故障が発生する度に、
しかもその故障情報が書き込まれるべきメインブロック
毎に、CPU11が処理可能なRAM等のメモリに予め
書き込まれている。
The current failure data is updated every time a new failure occurs.
Furthermore, the failure information is written in advance in a memory such as a RAM that can be processed by the CPU 11 for each main block to which it is to be written.

その後、最新故障データと現在故障データとのオア(論
理和)が取られる(ステップ404)。この場合、現在
故障データが最新故障データに含まれていなければ、現
在故障データか最新故障データに加えられる。勿論、現
在故障データが最新故障データに既に含まれているなら
ば、それが最新故障データにさらに加えられることはな
い。次に、現在故障データが加えられた最新故障データ
と、現在故障データか加えられる直前の最新故障データ
との比較がなされ、故障が増加したか否かが判断される
(ステップ405)。
Thereafter, the latest failure data and the current failure data are ORed (step 404). In this case, if the current failure data is not included in the latest failure data, it is added to the current failure data or the latest failure data. Of course, if the current fault data is already included in the latest fault data, it will not be further added to the latest fault data. Next, the latest failure data to which the current failure data was added is compared with the latest failure data immediately before the current failure data was added, and it is determined whether the number of failures has increased (step 405).

故障が増加していなければ、メインブロックカウンタの
値nが1だけインクリメントされる(ステップ406)
。インクリメントされた結果、メインブロックカウンタ
の値nが4になっているか否かが判断される(ステップ
407)。n=4であればプログラムが終了するが、n
が2または3の場合には、ステップ402へ戻り、ステ
ップ405までを繰り返す。つまり、第2.第3メイン
ブロック13B、13cに書き込まれるべき故障として
、新たな故障が発生しているか否かが判断される。
If the number of failures is not increasing, the value n of the main block counter is incremented by 1 (step 406).
. As a result of the increment, it is determined whether the value n of the main block counter is 4 (step 407). If n=4, the program ends, but n
If is 2 or 3, the process returns to step 402 and repeats steps up to step 405. In other words, the second. It is determined whether a new failure has occurred as a failure to be written into the third main blocks 13B, 13c.

一方、ステップ405において故障が増加しているもの
と判断されると、最新故障データに現在故障データを加
えた故障データに基づき、その故障データが書き込まれ
るべきアドレスが設定される(ステップ408)。例え
ば、書き込まれるべき故障データが(00100101
)であれば、アドレスはm25.(m=n−1)になる
。ここで、rnJはメインブロックカウンタの値である
。したかって、アドレス設定は、メインブロックカウン
タの値に応じて第1.第2.第3メインブロツク(サブ
ブロック)のいずれかに対して行われる。
On the other hand, if it is determined in step 405 that the number of failures is increasing, the address to which the failure data is to be written is set based on the failure data obtained by adding the current failure data to the latest failure data (step 408). For example, if the failure data to be written is (00100101
), the address is m25. (m=n-1). Here, rnJ is the value of the main block counter. Therefore, the address setting is performed according to the value of the main block counter. Second. This is performed for any of the third main blocks (sub-blocks).

次に、メモリ12に対して書き込むべき故障情報の設定
が行われる(ステップ409)。故障情報の設定は、故
障データを反転することによって行われるものであり、
上記の例であれば、故障情報は(11011010)に
なる。この故障情報は、上記のようにして設定されたア
ドレスに書き込まれる(ステップ410)。
Next, failure information to be written to the memory 12 is set (step 409). Fault information is set by inverting the fault data.
In the above example, the failure information is (11011010). This failure information is written to the address set as described above (step 410).

次に、第nサブブロックに対する書き込みアドレスが設
定される(ステップ411)。書き込むべきアドレスは
、メインブロックに書き込まれた記憶領域のアドレスと
関連するアドレスか設定される。例えば、上記の例であ
れば、アドレスはに25H(k=m+3)と設定される
。
Next, a write address for the nth sub-block is set (step 411). The address to be written is set to be an address related to the address of the storage area written to the main block. For example, in the above example, the address is set to 25H (k=m+3).

次に、ステップ412において、第nサブブロックに書
き込むべき故障情報の設定が行われる。
Next, in step 412, failure information to be written in the n-th sub-block is set.

これは、ステップ409において設定された故障情報を
反転して得られる2進数からlを差し引いた値を書き込
むべき故障情報とするものである。
This is to set the value obtained by subtracting l from the binary number obtained by inverting the failure information set in step 409 as the failure information to be written.

例えば上記の例であれば、(11011010)を反転
して(00100101)とし、これから1を差し引い
て、(00100100)を得る。このようにして設定
された故障情報は、ステップ411において設定された
アドレスの記憶領域12aに書き込まれる(ステップ4
13)。
For example, in the above example, (11011010) is inverted to become (00100101), and 1 is subtracted from it to obtain (00100100). The failure information set in this way is written to the storage area 12a at the address set in step 411 (step 4
13).

次に、メインブロックカウンタ更新が行われる(ステッ
プ414)。これは、ステップ408と同様に行われる
。その後、メインブロックカウンタの値nが4であるか
否かが判断される(ステップ415)。n=4であれば
、ステップ402に戻り、他の第nメインブロックおよ
び第nサブブロックに対する故障情報の更新が行われる
。一方、n=4であれば、このサブルーチンが終了する
。
Next, the main block counter is updated (step 414). This is done similarly to step 408. Thereafter, it is determined whether the value n of the main block counter is 4 (step 415). If n=4, the process returns to step 402 and the failure information for the other n-th main block and n-th sub-block is updated. On the other hand, if n=4, this subroutine ends.

上記の記憶装置においては、記憶内容(故障情報)とそ
れが書き込まれる記憶領域12Hのアドレスとを対応さ
せているから、瞬断等の影響によって誤った情報が記憶
領域12aに書き込まれた場合には、それが誤書き込み
されたものであるか否かを記憶内容とアドレスとから容
易に判別することができる。したがって、故障箇所を誤
って判断するのを防止することができる。勿論、誤った
故障情報がそれと対応するアドレスに書き込まれる確率
は零ではないが、その確率は非常に低い。
In the above storage device, since the stored content (failure information) is associated with the address of the storage area 12H where it is written, if incorrect information is written to the storage area 12a due to the influence of a momentary power outage, etc. It is possible to easily determine from the stored contents and address whether or not it has been written in error. Therefore, it is possible to prevent erroneously determining the location of the failure. Of course, the probability that erroneous failure information will be written to the corresponding address is not zero, but the probability is very low.

したがって、誤った故障データを正しいものと判断する
確率は、従来のものに比して大幅に小さくすることがで
きる。
Therefore, the probability that erroneous failure data is determined to be correct can be significantly reduced compared to the conventional method.

また、この実施例の記憶装置においては、新たに発生し
た故障情報を過去に発生した故障情報に加えて書き込む
ようにしているから、1つのメインブロック内の全ての
故障情報を取り出し、最も情報数の多い記憶内容から次
に情報数の多い記憶内容を差し引き、これを順次繰り返
すことにより、故障が発生した順序を知ることができる
。これは、故障の因果関係を解明する上で重要である。
In addition, in the storage device of this embodiment, newly generated failure information is written in addition to past failure information, so all failure information in one main block is extracted and the most By subtracting the storage content with the next largest number of information from the storage content with the largest number of information, and repeating this process sequentially, it is possible to know the order in which the failure occurred. This is important in elucidating the causal relationship of failure.

なお、故障の発生順序は、同一の第nメインブロックに
書き込まれる故障についてのみ知ることができ、異なる
第nメインブロック間の故障の発生順序については知る
ことができない。これは、故障の検出対象が24種ある
のに対し8ビツトのメモリを用い、24種の故障情報を
3つの群に区分するとともに、3つの群を3つの第nメ
インブロックそれぞれ書き込むようにしているためであ
る。しかし、故障検出対象と同数のビット数を有するメ
モリを用いれば、全ての故障の発生順序を知ることがで
きる。
Note that the order of occurrence of faults can be known only for faults written in the same n-th main block, and cannot be known about the order of occurrence of faults between different n-th main blocks. Although there are 24 types of failure detection targets, an 8-bit memory is used, and the 24 types of failure information are divided into three groups, and each of the three groups is written to the three n-th main blocks. This is because there is. However, if a memory having the same number of bits as the fault detection target is used, the order in which all faults occur can be known.

さらに、第nメインブロック13A(13B。Furthermore, the nth main block 13A (13B).

13C)と第0サブブロツク14A(14B、14C)
とのいずれか一方の故障情報が有効くアドレスと故障情
報とが対応している)であり、他方が有効でない場合に
は、一方に基づいて他方を訂正し、両者を常に内容的に
一致させるようにしているから、この記憶装置から故障
情報を読み取った際に、誤った情報を正しいものと誤判
断する確率をより一層低下させることができる。
13C) and 0th subblock 14A (14B, 14C)
If either one of the failure information is valid (the address and the failure information correspond), and the other is not valid, the other is corrected based on one so that the contents of the two always match. Therefore, when failure information is read from this storage device, it is possible to further reduce the probability that incorrect information is mistakenly judged as correct.

なお、上記の実施例においては、故障の発生順序をも解
明し得るよう、過去に発生した故障に新たに発生した故
障を加えるようにしているが、故障の発生順序を解明す
る必要がない場合には、新たに発生した故障だけをアド
レスに対応した態様にして書き込むようにしてもよい。
In the above embodiment, newly occurring failures are added to previously occurring failures so that the order in which failures occur can be clarified; however, in cases where it is not necessary to clarify the order in which failures occur. In this case, only newly occurring failures may be written in a manner corresponding to the address.

[発明の効果] 以上説明したように、この発明の故障情報記憶装置によ
れば、故障情報を第1および第2記憶手段の各アドレス
に対応させた内容にして対応するアドレスの記憶領域に
それぞれ書き込むようにしているから、記憶内容(故障
情報)が誤書き込みされたものであるか否かを高い確率
をもって判断することができ、その分だけ故障箇所を誤
って判断する確率を低くすることができる。しかも、第
1゜第2記憶手段のいずれかに書き込まれた故障情報が
有効でない場合には、それを有効な故障情報に基づいて
訂正するようにしているから、記憶内容が誤書き込みさ
れたものであるか否かをより一層高い確率をもって判断
することができ、ひいては故障箇所を誤って判断するの
を高い確率をもって防止することができるという効果が
得られる。
[Effects of the Invention] As explained above, according to the failure information storage device of the present invention, failure information is made to correspond to each address of the first and second storage means and stored in the storage area of the corresponding address. Because it is written, it is possible to judge with a high probability whether or not the memory content (fault information) was written in error, and the probability of incorrectly determining the location of the fault can be reduced accordingly. can. Moreover, if the failure information written to either the first or second storage means is invalid, it is corrected based on the valid failure information, so that if the memory contents are written incorrectly, Therefore, it is possible to judge with a higher probability whether or not the problem occurs, and it is possible to prevent erroneously determining the location of a failure with a higher probability.

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

第1図(A)はこの発明の特許請求の範囲に対応した構
成を示すブロック図、第1図(B)、(C)はそれぞれ
第1.第2記憶手段の内容を模式的に示す図、第2図な
いし第9図はこの発明の一実施例を示すもので、第2図
はその概略構成図、第3図はメモリの内容を示す図、第
4図はメモリのメインブロックにおけるア、ドレスとそ
のアドレスが付された記憶領域の記憶内容とを示す図、
第5図はメモリのサブブロックにおけるアドレスとその
アドレスが付された記憶領域の記憶内容とを示す図、第
6図は故障情報をメモリに書き込むとともに訂正するた
めのプログラムのうちのメインルーチンを示すフローチ
ャート、第7図はメモリ検索用サブルーチンを示すフロ
ーチャート、第8図は最新故障情報読み取り用サブルー
チンを示すフローチャート、第9図は故障情報更新用サ
ブルーチンを示すフローチャートである。 ■・・・機器、2・・・故障検出手段、3・・・第1記
憶手段、3a、4a・・・記憶領域、4・・・第2記憶
手段、5・・・書き込み手段、6・・読み取り手段、7
・・・判別手段、8・・・訂正手段、11・・・中央演
算処理装置、12・・・メモリ、12a・・・記憶領域
、13・・メインブロック(第1記憶手段)、14・・
サブブロック(第2記憶手段)。
FIG. 1(A) is a block diagram showing a configuration corresponding to the claims of the present invention, and FIGS. 1(B) and 1(C) are respectively 1. Figures 2 to 9 schematically show the contents of the second storage means, and Figures 2 to 9 show an embodiment of the present invention, Figure 2 is a schematic diagram thereof, and Figure 3 shows the contents of the memory. 4 is a diagram showing the addresses in the main block of the memory and the storage contents of the storage area to which the addresses are assigned,
FIG. 5 is a diagram showing addresses in memory sub-blocks and the storage contents of storage areas to which those addresses are assigned, and FIG. 6 is a diagram showing the main routine of a program for writing and correcting failure information to memory. 7 is a flowchart showing a subroutine for searching memory, FIG. 8 is a flowchart showing a subroutine for reading the latest failure information, and FIG. 9 is a flowchart showing a subroutine for updating failure information. ■... equipment, 2... failure detection means, 3... first storage means, 3a, 4a... storage area, 4... second storage means, 5... writing means, 6.・Reading means, 7
. . . Discrimination means, 8 .
Sub-block (second storage means).

Claims (1)

【特許請求の範囲】[Claims] 機器の各部の故障を検出する故障検出手段と、アドレス
が付された複数の記憶領域を有する第1の記憶手段と、
この第1の記憶手段の各アドレスと関連するアドレスが
それぞれ付された複数の記憶領域を有する第2記憶手段
と、前記故障検出手段からの故障情報を、前記第1記憶
手段のアドレスに対応させた内容にして対応するアドレ
スの第1記憶手段の記憶領域に書き込むとともに、故障
情報が書き込まれた第1記憶手段の記憶領域のアドレス
と関連する第2記憶手段のアドレスと対応する内容にし
て対応するアドレスが付された第2記憶手段の記憶領域
に書き込む書き込み手段と、第1および第2記憶手段の
互いに関連するアドレスの記憶領域に書き込まれた故障
情報をそれぞれ読み取る読み取り手段と、この読み取り
手段によって読み取られた各故障情報がそれぞれが書き
込まれた記憶領域のアドレスと対応しているか否かを判
別する判別手段と、第1記憶手段と第2記憶手段とのい
ずれか一方から読み取られた故障情報がアドレスに対応
し、他方から読み取られた故障情報がアドレスに対応し
ていないと前記判別手段によって判断された際に、一方
から読み取られた故障情報を、その故障情報が読み取ら
れた記憶領域のアドレスと関連する他方の記憶領域のア
ドレスと対応する内容にして当該アドレスが付された他
方の記憶領域に書き込む訂正手段とを備えたことを特徴
とする故障情報記憶装置。
a failure detection means for detecting a failure in each part of the device; a first storage means having a plurality of storage areas assigned addresses;
A second storage means has a plurality of storage areas each having an address associated with each address of the first storage means, and the failure information from the failure detection means is made to correspond to the address of the first storage means. and writes the content to the storage area of the first storage means at the corresponding address, and writes the content to correspond to the address of the second storage means associated with the address of the storage area of the first storage means where the failure information is written. a writing means for writing into a storage area of the second storage means to which an address is assigned; a reading means for reading the failure information written in the storage area of the first and second storage means at mutually related addresses; and this reading means. determining means for determining whether each piece of fault information read by corresponds to the address of the storage area in which it was written; and a fault read from either the first storage means or the second storage means. When the determining means determines that the information corresponds to the address and the failure information read from the other side does not correspond to the address, the failure information read from one side is transferred to the storage area from which the failure information was read. A failure information storage device comprising: a correction means for writing contents corresponding to the address of the other storage area associated with the address in the other storage area to which the address is attached.
JP2053547A 1990-03-07 1990-03-07 Failure information storage device Pending JPH03256149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2053547A JPH03256149A (en) 1990-03-07 1990-03-07 Failure information storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2053547A JPH03256149A (en) 1990-03-07 1990-03-07 Failure information storage device

Publications (1)

Publication Number Publication Date
JPH03256149A true JPH03256149A (en) 1991-11-14

Family

ID=12945823

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2053547A Pending JPH03256149A (en) 1990-03-07 1990-03-07 Failure information storage device

Country Status (1)

Country Link
JP (1) JPH03256149A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57162188A (en) * 1981-03-27 1982-10-05 Fujitsu Ltd Error detecting system for storage device
JPS6288044A (en) * 1985-10-14 1987-04-22 Fujitsu Ltd Memory control system
JPH01292550A (en) * 1988-05-20 1989-11-24 Nec Corp Error detecting circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57162188A (en) * 1981-03-27 1982-10-05 Fujitsu Ltd Error detecting system for storage device
JPS6288044A (en) * 1985-10-14 1987-04-22 Fujitsu Ltd Memory control system
JPH01292550A (en) * 1988-05-20 1989-11-24 Nec Corp Error detecting circuit

Similar Documents

Publication Publication Date Title
US7240178B2 (en) Non-volatile memory and non-volatile memory data rewriting method
US7689881B2 (en) Repair of memory hard failures during normal operation, using ECC and a hard fail identifier circuit
JP5100663B2 (en) Test apparatus and test method
EP0448970B1 (en) An information processing device having an error check and correction circuit
EP0149389B1 (en) Address translation control system
JP4704574B2 (en) Method for safely writing pointer for ring memory
KR880000300B1 (en) Buffer Memory Error Handling System
US20040230879A1 (en) Apparatus and method for responding to data retention loss in a non-volatile memory unit using error checking and correction techniques
JP2542351B2 (en) Failure information storage device
US6646917B1 (en) Storage device managing nonvolatile memory by converting logical address to physical address of nonvolatile memory
US6941413B2 (en) Nonvolatile memory, its data updating method, and card reader equipped with such nonvolatile memory
US5963718A (en) Method and apparatus for correcting error in control field in cache memory
JP3003543B2 (en) Electronic odometer
US7376868B2 (en) Cache memory device and reference history bit error detection method
JPH08305638A (en) Rom data check method
JP3646679B2 (en) Non-volatile memory data rewrite method
US20210326202A1 (en) Non-volatile memory
US4912712A (en) Fault detection circuit capable of detecting burst errors in an LRU memory
US6654288B2 (en) Method and device for backing up data in a memory module and memory module
EP0525941B1 (en) Method of self-diagnosing a mobile telephone set for use in a mobile telephone switching system and mobile telephone set being applied to the method
JPH06266618A (en) Information processor provided with main storage controller having error correction/detection function
US20090175142A1 (en) Method and system of recording data on a storage medium
JPS6035694B2 (en) Main memory protection method
JPS6258026B2 (en)
JP2957749B2 (en) Fire alarm system