JPH0267658A - Method for diagnosing fault in non-volatile memory - Google Patents

Method for diagnosing fault in non-volatile memory

Info

Publication number
JPH0267658A
JPH0267658A JP63219906A JP21990688A JPH0267658A JP H0267658 A JPH0267658 A JP H0267658A JP 63219906 A JP63219906 A JP 63219906A JP 21990688 A JP21990688 A JP 21990688A JP H0267658 A JPH0267658 A JP H0267658A
Authority
JP
Japan
Prior art keywords
memory
storage area
logical value
area
control
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
JP63219906A
Other languages
Japanese (ja)
Inventor
Hirobumi Higashida
東田 博文
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.)
Denso Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP63219906A priority Critical patent/JPH0267658A/en
Publication of JPH0267658A publication Critical patent/JPH0267658A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To improve the fault detecting accuracy of a memory by initializing only a controlling storage area when abnormality is generated in the storage format of a memory and holding the stored contents of a fault diagnosing storage area in that condition. CONSTITUTION:In a controller 1, fault diagnosing bits A5 to A7 and B5 to B7 for the memory 10 are respectively arranged in the storage areas A, B of the memory 10. At the time of generating abnormality in the storage format of the memory 10, only the residual control bits A0 to A4 and B0 to B4 and are set up and the contents of fault diagnosing bits A5 to A7 and B5 to B7 are held in their condition. Consequently, history of fault generation such as RAM formation can be left in the memory 10 without troubling the control operation of the controller 1 and a fault in the memory 10 can be rapidly detected.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、自動車の内燃機関の制御装置などに好適に用
いられる不揮発性メモリの故障を診断するための方法に
関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a method for diagnosing a failure in a nonvolatile memory suitably used in a control device for an internal combustion engine of an automobile.

従来の技術 不揮発性メモリの用いられる例として、たとえば自動車
の内燃機関の制御装置が挙げられる。この制御装置は、
吸気圧やスロットル弁開度、あるいは内燃機関の回転数
や排ガス中の酸素濃度などに基づいて、燃r(噴射量や
点火夕rミングの制御を行う。したがって前記制御量は
、気争や地理的染件、あるいは内燃機関の個体差や経年
変化などによ−)で刻々と変化する。このため該制御装
置内には不揮発性メモリが設けられており、こl)不揮
発性メモリ内に前記各条件に対応した最適な燃↑;)噴
射量などの制])#量データが学習によって書込まれる
BACKGROUND OF THE INVENTION An example of the use of non-volatile memory is, for example, a control device for an internal combustion engine of an automobile. This control device is
The fuel injection amount and ignition timing are controlled based on intake pressure, throttle valve opening, internal combustion engine speed, oxygen concentration in exhaust gas, etc. It changes from moment to moment due to factors such as environmental conditions, individual differences in internal combustion engines, and changes over time. For this reason, a non-volatile memory is provided in the control device, and the optimal fuel ↑;) control of injection amount, etc., is stored in the non-volatile memory by learning. written.

典型的な従来技術の前記メモリ内の記憶態様は第512
1で示される。すなわち、通常記憶用のストア領域aと
、反転記憶用のストア領域すとが対を成して設けられて
おり、前記吸気圧やスロット・ル弁開度などを測定する
検出器の検出出力が正常であるときには、第5[2!(
1)で示されるように、ス[−ア領域21.bの相互に
対応するビット、たとえばストア領域aのビットa1に
は「0」がストアされ、反転ストア領域すのピッ)−b
 1には反対の「1」がストアされる。
A typical prior art storage mode in the memory is 512th.
It is indicated by 1. That is, a store area A for normal storage and a storage area A for inversion storage are provided as a pair, and the detection output of the detector that measures the intake pressure, throttle valve opening, etc. When it is normal, the fifth [2! (
As shown in 1), the space area 21. 0 is stored in mutually corresponding bits of b, for example bit a1 of store area a, and
The opposite "1" is stored in "1".

これに対して前記各検出器の出力に異常が発見されたと
きには、制御装置はその検出器からの出力に基づいた演
算動作によることなく、たとえばハードウェアでの制御
動作を行う。このとき前記メモリのストア領域aにおい
て、第50(2>で示されるように、前記異常が発見さ
れた検出器に対応するビット、たとえばストア領域aの
ビットct 2には「1」がストアされ、反転ス[・ア
顕域すのピッ)−b 2には「0」がストアされる。こ
のようにデータを直接記憶するストアW4域aと、反転
して記憶するストア領域すとを用いて、いわゆるダCア
ゲノージスと称される自己詮所機能が実現される。
On the other hand, when an abnormality is found in the output of each of the detectors, the control device performs a control operation using, for example, hardware, without performing calculation operations based on the outputs from the detectors. At this time, in the store area a of the memory, as shown by the 50th (2>), "1" is stored in the bit corresponding to the detector in which the abnormality was discovered, for example, bit ct 2 of the store area a. , "0" is stored in the inverted S[・A visible area SNOPI)-b2. In this way, by using the store W4 area a for directly storing data and the store area S for storing data in an inverted manner, a self-examination function called so-called data storage is realized.

一方、メモリ自体に異常が生じたJ%きには、第5図(
3)で示されるように、相互に対を成ずストア領域it
、bの対応するビット、たとえばrt lblのストア
内容は同一となってしまい、この場自、前述のようにそ
の異常が生じたビ・71・に対応する演算動作は停止さ
れ、ハードウェアによ′)て制御が行なわれる。
On the other hand, when J% has an abnormality in the memory itself, Figure 5 (
3), the storage areas it
, b, for example, the stored contents of rt_lbl become the same, and at this point, as mentioned above, the arithmetic operation corresponding to the faulty bit 71 is stopped, and the hardware ') control is performed.

運転者が警告表示なとてそのような異常を発見し、整備
工場などで修理が行なわれると、メモリはバッテリなど
のバックアップ電源から切離され、これによって第51
1Z(1)で示されるように、ス【・ア領域Et内のス
トア内容はすべて「0」に初期化され、ストア領域す内
のストア内容はすべて「1」に初期化される。
When the driver detects such an abnormality through a warning display and repairs are carried out at a repair shop, the memory is disconnected from the backup power source such as the battery, and the 51st
As shown by 1Z(1), all store contents in the storage area Et are initialized to "0", and all store contents in the store area Et are initialized to "1".

すなわち第6図で示されるように、ステップrllでス
[・ア顔域aのストア内容とストア領域1−)のス■・
ア内容とが加算されてストア顕域aに代入される。前述
のように各検出器などに異常がないときにはストア領域
aのストア内容はすべて「0」で、6す、ス■・ア頭域
すのス(〜ア内容はすべてrl。
That is, as shown in FIG. 6, in step rll, the store contents of the face area a and the store contents of the store area 1-) are stored.
The contents of a are added and assigned to the store domain a. As mentioned above, when there is no abnormality in each detector, the stored contents of the store area a are all "0", and the contents of the storage area a are all "0".

である。このときのステップn 1における加算結果は
上位llビットと下位4ビツトとによって16進数で表
示すると、¥〈16進数であることを表わす)FFであ
り、ステップn2では前記加算結果が¥FFであるかど
うかが判断され、そうであるときにはメモリ自体は正常
に動作しているものとして次の動作に移る。
It is. At this time, when the addition result in step n1 is expressed in hexadecimal using the upper 11 bits and lower 4 bits, it is ¥FF (representing hexadecimal number), and in step n2, the addition result is ¥FF. If so, it is assumed that the memory itself is operating normally and the process moves on to the next operation.

またこのステップrr 2において前記加算結果が¥F
Fでないとき、すなわちストア領域t1のストア内容と
、ストア領域すのストア内容の反転した値とが等しくな
いときにはステップrr 3に移り、ストア領域aには
¥00が代入され、またステップrI4でストア領域す
には¥FFが代入され、こうしてストア領域εi、bは
前述のように初期化される。
Also, in this step rr2, the addition result is ¥F
If not F, that is, if the stored contents of the store area t1 and the inverted value of the stored contents of the store area \FF is assigned to the area S, and the store area εi,b is thus initialized as described above.

発明が解決しようとする課題 上述のような従来技術では、ストア領域aのストア内容
と、ストア領域すのストア内容の反転した値とが等しく
ないときには、ストア領域a、bはともに初期化されて
しまう、したがってそれまでに得られた前記学習値など
も初期化されてしまうとともに、メモリの記憶態様に異
常が生じた、いわゆるRAM <ランダムアクセスメモ
リ)化けしたことが前述の初期化動作によって消去され
てしまい、たとえば整備工場などでの点検時においても
前記Fj A M化けのようなメモリ自体の欠陥を発見
することは困難である。
Problems to be Solved by the Invention In the prior art as described above, when the stored contents of store area a and the inverted value of the stored contents of store area S are not equal, both store areas a and b are initialized. Therefore, the learned values obtained up to that point are also initialized, and the abnormality in the storage mode of the memory (RAM) is erased by the above-mentioned initialization operation. As a result, it is difficult to discover defects in the memory itself, such as the above-mentioned Fj AM corruption, even during inspection at a repair shop.

本発明の目的は、メモリに制【1用ストア領域に加えて
故障診断用ストア領域を設け、該メモリの記憶f3様に
異常が生じた場合には、前記制御用ストア領域のみを初
期化し、故障3断用ストア領域のストア内容をそのまま
の状態で保持することによって、メモリ自体の故障の履
歴を残すことができるようにした不揮発性メモリの故障
詮所方法を提供することである。
An object of the present invention is to provide a storage area for failure diagnosis in addition to a storage area for control [1] in the memory, and to initialize only the storage area for control when an abnormality occurs in the memory f3 of the memory. To provide a method for investigating failures in a non-volatile memory, in which a history of failures of the memory itself can be left by retaining the stored contents of a storage area for failure 3 as they are.

課題を解決するための手段 本発明は、制御に用いる制御用ストア領域と、メモリの
故陣詮断に用いる故障詮断用ス[・ア顕域とを備え、 前記制御用ストア領域には、制御〕2動fYの異常時に
予め定める論理値をストアし、 前記故障於所用ストーア領域の論理値が予め設定した論
理値と一致しているがどうかを比較し、該予め設定した
論理値と異なるときには、前記制御用ストア領域の論理
値を初期化するとともに、該故障診断用ストア領域の論
理値をそのまま保持することを特徴とする不揮発性メモ
リの故障診断方法である。
Means for Solving the Problems The present invention includes a control storage area used for control and a fault snooping area used for snooping memory failures, and the control storage area includes: [Control] Store a predetermined logical value when the bidirectional fY is abnormal, compare whether the logical value in the store area for failure corresponds with the preset logical value, and check whether it differs from the preset logical value. The non-volatile memory failure diagnosis method is characterized in that, at times, the logical value of the control storage area is initialized and the logical value of the failure diagnosis storage area is maintained as it is.

また本発明は、メモリの故障J夕断時に、重犯故n診断
用ストア領域の論理値が前記予め定めた論理値と異なる
ときには、ハ故障jt所用ストア頭域の論理値に対応し
たコードで表示出力を行うことを特徴とする不揮発性メ
モリの故障診断方法である。
Further, in the present invention, when the logical value of the storage area for serious crime diagnosis differs from the predetermined logical value at the time of failure of the memory, a code corresponding to the logical value of the storage area for failure jt is displayed. This is a nonvolatile memory failure diagnosis method characterized by outputting.

fト用 本発明に従えば、メモリには、制御に用いる制御用スト
ア領域と、該メモリの故障詮所に用いる故障it断所用
トア顕域とが設けられている。前記制御用ストア領域に
は制御動作の異常時に予め定める論理値をストアし、し
たがってこの制御用ストア領域の論理値に対応して波制
御坪対象などの異常を検出することができる。
According to the present invention, the memory is provided with a control storage area used for control and a failure storage area used to investigate a failure of the memory. A predetermined logic value is stored in the control storage area when an abnormality occurs in the control operation, and therefore, an abnormality such as a wave control object can be detected in accordance with the logic value of the control storage area.

また前記故障3を所用ストア領域の論理値が予め設定し
た論理値と一致しているときには、該メモリは正常に動
fF= しており、一致しないときには該メモリの記憶
態様に異常が生じたものとして、重犯制御n用ストア領
域の論理値を初期化し、故障診断用スI・ア領域の論理
値はそのままの状すで保持する。したがって上述のよう
に記憶態様に異常が生じた場きであっても、制御用スト
ア領域の論理値は初期化されており、制(鐸に大きな支
障をきたすことはない、まなこのような記憶態様の異常
は故障診断用ス)−ア顕域内にそのまま残されており、
したが−)てメモリ自体に発生した故障の履歴が保持さ
れることとなり、メモリの故障検出の精度を向上するこ
とができる。
In addition, when the logical value of the required storage area matches the preset logical value for failure 3, the memory is operating normally, and when they do not match, an abnormality has occurred in the storage mode of the memory. As a result, the logical value of the storage area for serious crime control n is initialized, and the logical value of the fault diagnosis storage area is maintained as is. Therefore, even if an abnormality occurs in the storage mode as described above, the logical values in the control storage area are initialized, and this type of storage will not cause any major problems with the control (taku). The abnormality in the aspect is left as it is within the obvious area for failure diagnosis.
Therefore, the history of failures that have occurred in the memory itself is maintained, and the accuracy of memory failure detection can be improved.

また本発明に従えば、メモリの故n診断時において、前
記故障診断用ストア領域の論理値が前記予め定めた論理
値と異なるときには、該、メモリの故障誇断時に前記故
障診断用ストア領域の論理値に対応したコードで表示出
力が行なわれる。したがってメモリの履歴中に発生した
、いわゆるRAM「ヒけなどの異常のり様を容易に知る
ことができろ。
Further, according to the present invention, when the logical value of the storage area for failure diagnosis differs from the predetermined logical value when diagnosing a memory failure, when the logical value of the storage area for failure diagnosis is different from the predetermined logical value, the storage area Display output is performed using a code corresponding to the logical value. Therefore, it is easy to see abnormalities such as so-called RAM sink marks that occur in the memory history.

実施例 第1[2Iは、本発明の一実施例の内燃機関の−1(坤
装置1の電気的構成を示すブロック図である。この制御
坤装置1は、大気圧検出器2、回転数検出器3、酸素濃
度検出器4および冷却水温度検出器5などからの検出結
果に基づいて、処理回路6が最適な燃料噴射量や点火時
期などを演算し、燃f1噴射弁7や点火回路8などを制
(綽する。処理回路6はまた冷却水温度検出器5などか
らの出力に応答して、たとえば冷却水温度が異常に上昇
したJlll きなどには警告灯りを点灯し、運転者に
報知を行う。
Embodiment 1 [2I is a block diagram showing the electrical configuration of a control device 1 of an internal combustion engine according to an embodiment of the present invention. This control device 1 includes an atmospheric pressure detector 2, a rotation speed Based on the detection results from the detector 3, oxygen concentration detector 4, cooling water temperature detector 5, etc., the processing circuit 6 calculates the optimal fuel injection amount, ignition timing, etc. The processing circuit 6 also responds to the output from the coolant temperature detector 5, etc., and turns on a warning light when the coolant temperature rises abnormally, for example, and alerts the driver. will be notified.

この処理回路6内には、バッテリ11からのベックアラ
アミ源が3g!断されても、その記憶内容を渫持するこ
とができる不揮発性のメモリ10が設けられており、こ
のメモリ10には前記各検出器2−5からの出力に基づ
いて、たとえば最適な空燃比となる燃料噴射量の学習制
御量や、前記各検出器2〜5の状態などが記憶される。
In this processing circuit 6, there is 3g of Beck Arami source from the battery 11! A non-volatile memory 10 is provided which can retain its stored contents even if the power is disconnected, and this memory 10 stores, for example, the optimal air-fuel ratio based on the output from each of the detectors 2-5. The learning control amount of the fuel injection amount, the state of each of the detectors 2 to 5, etc. are stored.

処理回路6に間遠してまた、リードオンメモリ(以下、
ROMと略称する)12が設けられており、処理回路6
は後述するように、異常発生箇所の検出時に、その発生
箇所に対応したコードデータを続出し、読出されたコー
ドに従って警告灯9を点滅駆動し、こうして作業者に異
常発生箇所を報知する。
Close to the processing circuit 6, there is also a read-on memory (hereinafter referred to as
(abbreviated as ROM) 12 is provided, and a processing circuit 6
As will be described later, when detecting a location where an abnormality has occurred, code data corresponding to the location is successively output, and the warning light 9 is driven to blink according to the read code, thus notifying the operator of the location where the abnormality has occurred.

第2図は、メモリ10内の記憶態様を示す口である。こ
のメモリ10は主記憶用のス1−ア領域Aと反転記憶用
のストア領域Bとから構成されており、各ストア領域A
、Bの下位ビットAO〜A4; B O−B 4は、制
御用ストア領域として前記各検出器2〜5に発生した異
常をストアするために用いられる。異常が検出されない
ときには、第2図〈1〉で示されるように、ストア領域
AのビットAO−A4は「0」にリセットされており、
これに対応してストア領域BのビットBo□−B4には
反転したrl、がセットされている。このような対を成
す各ビットAO〜A4;BO〜B4はそれぞれ前記各検
出器2〜5などに対応しており、成る検出器に異常が発
生して、たとえば第2図(2)で示されるように、スト
ア領域AのビットAOが「1」とな−)なときにはスt
・ア顕域BのビットBOは「0」となり、前記警告灯9
が点灯する。
FIG. 2 is a diagram showing the manner of storage in the memory 10. FIG. This memory 10 is composed of a storage area A for main storage and a storage area B for inverted storage.
, B's lower bits AO to A4; B OB 4 is used as a control storage area to store abnormalities occurring in each of the detectors 2 to 5. When no abnormality is detected, bits AO-A4 of store area A are reset to "0", as shown in FIG. 2 <1>.
Correspondingly, the inverted rl is set in bit Bo□-B4 of store area B. Each of the bits AO to A4; BO to B4 in such a pair corresponds to each of the detectors 2 to 5, etc., and if an abnormality occurs in the detector, for example, as shown in FIG. 2 (2), When bit AO of store area A is “1”, the
・Bit BO of A visible area B becomes “0”, and the warning light 9
lights up.

このように各検出器2〜5などに異常が発生した渇きに
は、警告灯りが点灯し、運転者への報知を行うとともに
、処理回路6による、いわゆるソフトウェアによる制御
動作が解除され、ハードウェアによる制御動作に切換え
が行なわれる。このような異常状態の表示は整備工場な
どで不良部品V)交換が行なわれ、バッテリ11からの
電源供給を!断することによってリセットされる。
In this way, when an abnormality occurs in each of the detectors 2 to 5, a warning light is turned on to notify the driver, and the so-called software control operation by the processing circuit 6 is canceled, and the hardware Switching to the control operation is performed by If such an abnormal condition is displayed, the defective part (V) must be replaced at a repair shop or the like, and power must be supplied from the battery 11! It is reset by disconnecting.

一方、ストア領域Aの上位ビットA5〜A7と、ス[−
ア顕域Bの上位ビット85〜B7とは故障診断用ストア
領域として用いられ、ビットA5〜A7には「1」がス
トアされており、ビット85〜B7には「0」がストア
されている。
On the other hand, upper bits A5 to A7 of store area A and
The upper bits 85 to B7 of the external area B are used as a storage area for fault diagnosis, and bits A5 to A7 store "1", and bits 85 to B7 store "0". .

したがって前記ストア領域A、Bを、下位ビットA+1
−.A4;BO〜B4と、上位ビットA5〜A 7 :
 B 5〜B7とに分割して16進数で表わすと、前記
各検出器2〜5からの出力およびこのメモリ10の正常
時には、ストア領域Aは¥EOを表し、ストア領域Bは
¥IFを表わす。
Therefore, the storage areas A and B are set to lower bits A+1.
−. A4; BO~B4 and upper bits A5~A7:
When divided into B5 to B7 and expressed in hexadecimal, when the output from each of the detectors 2 to 5 and this memory 10 is normal, store area A represents ¥EO, and store area B represents ¥IF. .

上述のように構成された制御装置1において、各検出器
2〜5などに異常が生じた渇きには、ストア領域Aの対
応するビット、たとえば前記第2図(2)で示されるよ
うに、ビットA Oが「1」となり、これに対応してス
トア領域BのビットB1が「0」となって警告灯9が点
灯する。こうして異常状りとなるとその検出器がらの出
力によることなく、処理回路6はいわゆるハードウェア
での制御nを行う。
In the control device 1 configured as described above, when an abnormality occurs in each of the detectors 2 to 5, the corresponding bit in the storage area A, for example, as shown in FIG. Bit AO becomes "1" and correspondingly, bit B1 of store area B becomes "0" and warning light 9 lights up. In this way, when an abnormal condition occurs, the processing circuit 6 performs so-called hardware control without depending on the output of the detector.

このように異常が発生し、たとえば整備工場などで処理
回路6に設けられた端子Cを接地することによって、前
述のように該処理回路6はその異常発生箇所に対応した
コードデータ、たとえば¥11をROM12から続出し
、こうして読出されたコードに対応して警告灯りを点滅
駆動し、fv−業者に異常発生箇所を報知する。
When an abnormality occurs in this way and the terminal C provided in the processing circuit 6 is grounded at a repair shop, for example, the processing circuit 6 will output the code data corresponding to the location where the abnormality has occurred, for example, ¥11. is successively read from the ROM 12, and a warning light is driven to blink in response to the code thus read out, thereby notifying the fv-company of the location where the abnormality has occurred.

これに対してスt・ア顕域A、Bの故1118断用ビッ
トA5〜A7;B5〜B7のストア内容が変化したとき
、すなわち第21Elj(3)で示されるように、いわ
ゆるR A M化けが発生したときには警告灯9が点灯
し、前述のように処理回路6の端子Cを接地することに
よって、ROM12からは通常の異常検出時とは全く異
なるコードデータ、たとえば¥99が読出され、警告灯
りが点滅駆動される。
On the other hand, when the stored contents of the 1118 disable bits A5 to A7; B5 to B7 of the storage areas A and B change, that is, as shown in the 21st Elj (3), the so-called RAM When a monster occurs, the warning light 9 lights up, and by grounding the terminal C of the processing circuit 6 as described above, code data that is completely different from that at the time of normal abnormality detection, such as ¥99, is read out from the ROM 12. The warning light will start blinking.

第3図は、メモリ10のストア領域ABのビットAO□
−A4;BO〜B4の初期化動作を説明するためのフロ
ーチャートである。ステップ「ri 1では、ストア領
域Aのストア内容と、ストア領域Bのストア内容とが加
算され、ストア領域Aに入力される。ステップr「−2
では、前記加算結果がストアされたストア領域Aのスト
ア内容が¥FFであるかどうかが判断され、そうである
ときすなわちストア領域Aのストア内容が¥EOであり
、ストア領域Bのストア内容が¥IFであるとき、すな
わち正常状態であるときには直接状の動作に移る。
FIG. 3 shows bit AO□ of store area AB of memory 10.
-A4; It is a flowchart for explaining the initialization operation of BO to B4. In step "ri 1, the store contents of store area A and the store contents of store area B are added and input to store area A. Step r"-2
Then, it is determined whether the stored content of the store area A where the above addition result is stored is ¥FF, and if so, that is, the stored content of the store area A is ¥EO, and the stored content of the store area B is When it is ¥IF, that is, when it is in a normal state, it moves to a direct operation.

ステップrn 2において、ストア領域Aのストア内容
が¥FFでないときにはステップm3に移り、ストア領
域Aのストア内容と¥EOとの乗算が行なわれ、その乗
算結果がストア領域Aに再び入力されて、こうしてビッ
トA5〜A7によって構成される故障診断用ストア領域
の内容を変化することなく、ビットA O−、A 4に
よって構成される制御用ストア領域のストア内容を「0
」に初期化することができる。ステップm4では、スト
ア領域Bのストア内容と、¥IFとの和算が行なわれ、
これによってビット85\B7によって構成される故障
診断用ストア領域のストア内容を変化することなく、ビ
ットBO〜B4によって構成される制御用ストア領域の
ストア内容を「1」に初期化することができる。
In step rn2, if the stored contents of store area A are not ¥FF, the process moves to step m3, where the stored contents of store area A are multiplied by ¥EO, and the multiplication result is inputted into store area A again. In this way, without changing the contents of the failure diagnosis store area made up of bits A5 to A7, the stored contents of the control store area made up of bits A O- and A4 are changed to "0".
”. In step m4, the store contents of store area B and ¥IF are summed,
As a result, the stored contents of the control store area made up of bits BO to B4 can be initialized to "1" without changing the stored contents of the fault diagnosis store area made up of bits 85\B7. .

第4図は、整備工場などにおいて、各検出器2〜5の故
障診断が行なわれる際の動作を表わすフローチャートで
あり、前記ストア領域Aについての検出動作を表わす。
FIG. 4 is a flowchart showing the operation when a failure diagnosis of each of the detectors 2 to 5 is performed in a repair shop or the like, and shows the detection operation for the store area A.

ステップ[011では処理口n6の前記端子(コが接地
されているかどうか、すなわちテスト・モードが選択さ
れているかどうかが判断され、そうであるときにはステ
ップrn l 2にTjす、変数n (n = 0 、
 1 、− 、 ? )が「0」に初期設定され、ステ
ップm13に移る。
In step [011, it is determined whether the terminal (k) of the processing port n6 is grounded, that is, whether the test mode is selected, and if so, the process proceeds to step rnl2. 0,
1, -, ? ) is initialized to "0" and the process moves to step m13.

17711口13では、変1&rIが「4」を超えてい
るかどうか、すなわち故障診断用ストア領域であるかど
うかが判断され、そうでないときにはステラ11口14
に移り、ビットA rIが「1」であるかどうかが判断
され、そうであるとき、すなわちピッ■・A nに対応
した検出器が異常であるときにはステップ「n15に移
る。17711口15ではROM12からこのビットA
 rIに対応した項目のコードデータが読出され、前述
のように警告灯9が点滅駆動されてステップm 16に
移る。ステップm14においてビットA nが「1」で
ないときには、直接ステップto 16に移る。ステッ
プrn l 3において変1!Lr+が4を超えている
とき、すなわち故障診断用ストア領域であるときには、
ステップrn 17でビットA rIが「0」であるか
どうかが判断され、そうであるときには前記ステップm
 15に移り、そうでないときにはステップm 16に
移る。
In the 17711 port 13, it is determined whether the variable 1&rI exceeds "4", that is, whether it is a storage area for failure diagnosis, and if not, the Stella 11 port 14
Then, it is determined whether the bit A rI is "1" or not. If so, that is, if the detector corresponding to the bit A n is abnormal, the process moves to step "n15. In the 17711 port 15, the ROM 12 From this bit A
The code data of the item corresponding to rI is read out, the warning light 9 is driven to blink as described above, and the process moves to step m16. If the bit A n is not "1" in step m14, the process moves directly to step to 16. Change 1 at step rn l 3! When Lr+ exceeds 4, that is, when the storage area is for fault diagnosis,
In step rn 17 it is determined whether the bit A rI is "0" and if so, the step m
If not, the process moves to step m16.

ステップ[n16では変数nに「1」が加算されて更新
され、ステップm18で変数口が7を超えたかどうか、
すなわちすべてのビットAO〜A7の内容が読出された
かどうかが判断され、そうでないときには前記ステップ
m13に戻り、そうであるときには他の動作に移る。前
記ステップm11において、テストモードが選択されて
いないときには直接他の動作に移る。
In step [n16, "1" is added to the variable n and updated, and in step m18, it is determined whether the variable number exceeds 7 or not.
That is, it is determined whether the contents of all bits AO to A7 have been read. If not, the process returns to step m13, and if so, the process moves to other operations. In step m11, if the test mode is not selected, the process moves directly to another operation.

このように本件制御装置1では、メモリ10のストア領
域A、・Bにそれぞれ該メモリ10の故障診断用ビット
A5〜A7 、B5〜B7を設け、該メモリ10の記+
1!懸様に異常が生じた、いわゆるR A M化は時に
おいては、残余の制御用ビットAO〜A4 : BO〜
B4のみをリセットし、該故障hu用ビットA5〜A7
.B5〜B7の内容はそのままの状態で保持するように
したので、本件制御装置1の制御動fトに支障をきたす
ことなく、メモリ10にRA M (ヒけなどの故障が
生じた履歴を残すことができ、メモリ10の故障を速や
かに検出することができる。
In this way, in the present control device 1, fault diagnosis bits A5 to A7 and B5 to B7 of the memory 10 are provided in the storage areas A and B of the memory 10, respectively, and the memory 10 is
1! In cases where an abnormality has occurred, so-called RAM conversion, the remaining control bits AO~A4: BO~
Reset only B4 and set bits A5 to A7 for the faulty hu.
.. Since the contents of B5 to B7 are retained as they are, they can be stored in the memory 10 in RAM (a history of failures such as sinks) without interfering with the control operations of the control device 1. Therefore, a failure of the memory 10 can be quickly detected.

また上述のようにメモリ10に故障が生じていた場きに
は、ROM 12にストアされている出力コードによ−
)て警告灯りを点滅駆動するようにしたので、これによ
ってもまたメモリ10の故障を検出し易くすることがで
きる。
In addition, if a failure occurs in the memory 10 as described above, the output code stored in the ROM 12
), the warning light is made to blink, which also makes it easier to detect a failure of the memory 10.

上述の実施例では、l(OM l 2から読出されたコ
ードデータは警告灯りの点滅動作によって表示されなけ
れども、本発明の他の実施例として、音などによって表
示されてもよい。
In the embodiment described above, the code data read from l(OM l 2) is not displayed by the flashing action of the warning light, but in other embodiments of the present invention, it may be displayed by sound or the like.

発明の効果 以上のように本発明によれば、メモリに制御に用いる制
御用ストア領域と、該メモリの故nh断に用いる故障1
き所用ストアWi域とを設け、故障診断用ストア領域の
論理値が予め設定した論理値と一致しないときには、該
メモリの記憶態様に異常が生じたものとして、前記制御
用ストア領域の論理値を初期化し、故障診断用ストア領
域の論理値はそのままの状態で保持するようにしたので
、いわゆるRAM化けなどによ′)て記憶態様に異常が
生じた場きには、制御用ストア領域の論理値は初期化さ
れて制御に大きな支障をきたすことなく、このような記
憶態様の異常を故障診断用ストア領域内にそのまま残す
ことができ、したがってメモリ自体に発生した故障の履
歴が保持されることとなり、メモリの故障検出精度を向
上することができる。
Effects of the Invention As described above, according to the present invention, there is a control storage area in the memory used for control, and a failure area 1 used in the event of an nh disconnection of the memory.
When the logical value of the fault diagnosis storage area does not match the preset logical value, it is assumed that an abnormality has occurred in the storage mode of the memory, and the logical value of the control storage area is set. The logic values in the storage area for failure diagnosis are maintained as they are after initialization, so if an abnormality occurs in the storage format due to so-called RAM corruption, the logic values in the storage area for control The values are initialized, and such abnormalities in the storage format can be left in the fault diagnosis storage area without causing any major problems with control, thus preserving the history of faults that have occurred in the memory itself. Therefore, the accuracy of memory failure detection can be improved.

また本発明によれば、メモリの故障診断時において、前
記故障診断用ストア領域の論理値が前記予め定めた論理
値と興なるときには、該メモリの故障診断時に前記故障
診断用ストア領域の論理値に対応したコードで表示出力
を行なうようにしたので、メモリの履歴中に発生したい
わゆるRAM化けなどの異常の態様を容易に知ることが
できる。
Further, according to the present invention, when the logical value of the storage area for failure diagnosis differs from the predetermined logical value when diagnosing the failure of the memory, the logical value of the storage area for failure diagnosis when diagnosing the memory. Since the display output is performed using a code corresponding to the above, it is possible to easily know the state of an abnormality such as so-called RAM corruption that has occurred during the memory history.

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

第1図は本発明の一実施例の内燃機関の制御装置1の電
気的構成を示すブロック図、第2図はメモリ10内のス
トア頭域A、Bの記憶り様を示す図、第3図はメモリ1
0ビット−AO〜A =1. 、 B O〜B−1の初
期化動作を説明するための70−チャート、第40は各
検出器2〜5およびメモリ10の故障検出動f?を説明
するためのフローチャート、第5図は従来技術のメモリ
のストア領域εt、1〕の記憶態様を示す図、第6図は
従来技術のメモリのストア領域it、bの初期化動作を
説明するためのフローチャートである。 1・・・制御装置、2・・・大気圧検出器、3・・・回
転数検出器、4・・・酸素濃度検出器、5・・・冷却水
温度検出器、6・・・処理回路、7・・・燃料噴射弁、
8・・・点火回路、9・・・警告灯、10・・・メモリ
、11・・・バッテリ、12・・・ROM、A、B・・
・ストア領域、AO〜A4; BO〜B4・・・制御用
ビット、A5〜A7:B5〜B7・・・故障詮断用ビッ
FIG. 1 is a block diagram showing the electrical configuration of a control device 1 for an internal combustion engine according to an embodiment of the present invention, FIG. 2 is a diagram showing how storage areas A and B are stored in the memory 10, and FIG. The figure shows memory 1
0 bit - AO~A = 1. , 70-chart for explaining the initialization operation of B O to B-1, the 40th chart shows the failure detection operation f? of each detector 2 to 5 and the memory 10. FIG. 5 is a diagram showing the storage mode of the storage area εt,1 of the memory of the prior art, and FIG. 6 is a flowchart for explaining the initialization operation of the storage area it,b of the memory of the prior art. This is a flowchart for 1... Control device, 2... Atmospheric pressure detector, 3... Rotation speed detector, 4... Oxygen concentration detector, 5... Cooling water temperature detector, 6... Processing circuit , 7... fuel injection valve,
8... Ignition circuit, 9... Warning light, 10... Memory, 11... Battery, 12... ROM, A, B...
- Store area, AO to A4; BO to B4... Control bits, A5 to A7: B5 to B7... Fault snooping bits

Claims (2)

【特許請求の範囲】[Claims] (1)制御に用いる制御用ストア領域と、メモリの故障
診断に用いる故障診断用ストア領域とを備え、前記制御
用ストア領域には、制御動作の異常時に予め定める論理
値をストアし、 前記故障診断用ストア領域の論理値が予め設定した論理
値と一致しているかどうかを比較し、該予め設定した論
理値と異なるときには、前記制御用ストア領域の論理値
を初期化するとともに、該故障診断用ストア領域の論理
値をそのまま保持することを特徴とする不揮発性メモリ
の故障診断方法。
(1) A control storage area used for control and a failure diagnosis storage area used for memory failure diagnosis, the control storage area stores a predetermined logical value in the event of an abnormality in a control operation, and the failure It is compared whether the logical value of the diagnostic storage area matches a preset logical value, and if it is different from the preset logical value, the logical value of the control storage area is initialized and the fault diagnosis is performed. A method for diagnosing a failure of a non-volatile memory, characterized in that logical values in a storage area are maintained as they are.
(2)メモリの故障診断時に、前記故障診断用ストア領
域の論理値が前記予め定めた論理値と異なるときには、
該故障診断用ストア領域の論理値に対応したコードで表
示出力を行うことを特徴とする請求項1記載の不揮発性
メモリの故障診断方法。
(2) When diagnosing a memory failure, if the logical value of the failure diagnosis storage area differs from the predetermined logical value,
2. The nonvolatile memory failure diagnosis method according to claim 1, wherein the display output is performed using a code corresponding to the logical value of the failure diagnosis storage area.
JP63219906A 1988-09-01 1988-09-01 Method for diagnosing fault in non-volatile memory Pending JPH0267658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63219906A JPH0267658A (en) 1988-09-01 1988-09-01 Method for diagnosing fault in non-volatile memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63219906A JPH0267658A (en) 1988-09-01 1988-09-01 Method for diagnosing fault in non-volatile memory

Publications (1)

Publication Number Publication Date
JPH0267658A true JPH0267658A (en) 1990-03-07

Family

ID=16742883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63219906A Pending JPH0267658A (en) 1988-09-01 1988-09-01 Method for diagnosing fault in non-volatile memory

Country Status (1)

Country Link
JP (1) JPH0267658A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8849504B2 (en) 2006-02-03 2014-09-30 Denso Corporation Electronic control apparatus for vehicles

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS554703A (en) * 1978-06-21 1980-01-14 Toshiba Corp Main memory control system
JPS59148954A (en) * 1983-02-14 1984-08-25 Fujitsu Ltd Patrolling system of control storage
JPS603732A (en) * 1983-06-21 1985-01-10 Honda Motor Co Ltd Detection for abnormality of input and output device
JPS60114949A (en) * 1983-11-28 1985-06-21 Toshiba Corp Storage device
JPS61166654A (en) * 1985-01-19 1986-07-28 Panafacom Ltd Memory patrol diagnosis system
JPS61234401A (en) * 1985-04-11 1986-10-18 Nippon Denso Co Ltd On-vehicle controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS554703A (en) * 1978-06-21 1980-01-14 Toshiba Corp Main memory control system
JPS59148954A (en) * 1983-02-14 1984-08-25 Fujitsu Ltd Patrolling system of control storage
JPS603732A (en) * 1983-06-21 1985-01-10 Honda Motor Co Ltd Detection for abnormality of input and output device
JPS60114949A (en) * 1983-11-28 1985-06-21 Toshiba Corp Storage device
JPS61166654A (en) * 1985-01-19 1986-07-28 Panafacom Ltd Memory patrol diagnosis system
JPS61234401A (en) * 1985-04-11 1986-10-18 Nippon Denso Co Ltd On-vehicle controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8849504B2 (en) 2006-02-03 2014-09-30 Denso Corporation Electronic control apparatus for vehicles

Similar Documents

Publication Publication Date Title
US4317364A (en) Self-testing control system for an internal combustion engine
US5034894A (en) Self-diagnosis system for a motor vehicle
US5111686A (en) Fault diagnosis apparatus for mounting on a vehicle
JPH01210842A (en) Vehicle diagnosing device
JPS6378041A (en) Fault diagnosing device for vehicle
US4532593A (en) Electronic control method and apparatus for internal combustion engine
JP2987446B2 (en) Vehicle self-diagnosis device
JPH0267658A (en) Method for diagnosing fault in non-volatile memory
JPH0674087A (en) Electric control device with backup memory
JP2002334024A (en) Electronic controller
JP3419060B2 (en) Diagnostic device for vehicles
JP4041216B2 (en) Abnormality detection method and abnormality detection device
JPH0114528B2 (en)
JP2007138726A (en) Electronic control device and display for vehicle
JPS6379031A (en) Trouble diagnosing apparatus for vehicle
JP3312917B2 (en) Misfire determination device for spark ignition type internal combustion engine
JPH0720935A (en) Abnormality detecting device
JPH0348340A (en) Abnormality detector using microcomputer
JPS6255443A (en) Failure diagnosis device for engine load detecting switch
JP5980112B2 (en) Vehicle information storage processing device and vehicle information storage processing method
JPS61234401A (en) On-vehicle controller
JPH0623930B2 (en) Anomaly detection device for electronic control unit
JPH01123132A (en) Fault diagnosing apparatus for automobile
JP3415745B2 (en) Measurement system
JPS62279151A (en) Control device mounted on car