JPH04159440A - Self-diagnostic method in electronic engine control device - Google Patents

Self-diagnostic method in electronic engine control device

Info

Publication number
JPH04159440A
JPH04159440A JP28215790A JP28215790A JPH04159440A JP H04159440 A JPH04159440 A JP H04159440A JP 28215790 A JP28215790 A JP 28215790A JP 28215790 A JP28215790 A JP 28215790A JP H04159440 A JPH04159440 A JP H04159440A
Authority
JP
Japan
Prior art keywords
rom
bits
addresses
engine control
contents
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP28215790A
Other languages
Japanese (ja)
Inventor
Masahito Ogawa
小川 雅仁
Minoru Toyoda
稔 豊田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP28215790A priority Critical patent/JPH04159440A/en
Publication of JPH04159440A publication Critical patent/JPH04159440A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

PURPOSE:To reduce largely ROM contents check processing time by forming ROM contents in 16 bits data comprising even addresses apportioned to the upper 8 bits and odd addresses to the lower 8 bits and adding both data in a bundle. CONSTITUTION:When CPU 3 is started by means of an ignition key or when CPU 3 is restarted after being reset at the time of supply voltage drop or instantaneous supply interruption, the contents of ROM 6 are bundled by defining even addresses to the upper 8 bits and odd addresses to the lower 8 bits so that they may be taken into a 16-bit resistor 5, and the addition is carried out over all addresses in ROM. The result of the addition in the upper 8 bits is compared with a set value determined beforehand. When the two values are not in agreement, an alarm is issued to the drive and at the same time engine control is made by sub CPU 9 as backup, with an abnormality assumed in ROM 6. When the two values are in agreement, on the other hand, signals from various sensors are read from an input unit 2 and the initial setting, such as RAM reset is made for engine control.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、自動車等に利用する電子式エンジン制御装置
の自己診断方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a self-diagnosis method for electronic engine control devices used in automobiles and the like.

従来の技術 自動車等に利用する電子式エンジン制御装置(ECU)
は、自動車走行中は、直接生命の危険が及ぶことから、
故障は許されないが、万一故障の場合は、直ちにドライ
バーに認識させると共にバックアップ処理を行う必要が
ある。そのためECUには、中央処理装置(CPU)の
実行プログラムや各種制御データか格納されたリードオ
ンリメモリ(ROM)の内容が、正常か否かをチエツク
する自己診断装置を有しており、これによりソフトウェ
アの故障検知を行うている。
Conventional technologyElectronic engine control unit (ECU) used in automobiles, etc.
Because there is a direct danger to life while driving,
Failure is not an option, but in the event of a failure, it is necessary to immediately notify the driver and take backup steps. Therefore, the ECU has a self-diagnosis device that checks whether the contents of the read-only memory (ROM), which stores the execution programs of the central processing unit (CPU) and various control data, are normal. Performs software failure detection.

一般的に、ECUには8ビット単位にアドレスを割り付
けているマイクロコンピュータを使用しているため、従
来の自己診断装置では、第4図に示すように、ROMの
各アドレスの内容をそのまま8ビットデータとして扱り
ていた。また、ECUの電源電圧は、電源である車載バ
ッテリーの供給能力が低い上に、始動時にはスタータモ
ータに大電流が流れるため、周期的にrOJ V近傍ま
で減少し、CPUがリセットされ再スタートする。
Generally, ECUs use microcomputers that allocate addresses in 8-bit units, so conventional self-diagnosis devices use the 8-bit content of each address in the ROM as is, as shown in Figure 4. It was treated as data. In addition, the power supply voltage of the ECU periodically decreases to around rOJV because the supply capacity of the on-board battery that is the power source is low, and a large current flows through the starter motor at the time of starting, and the CPU is reset and restarted.

また、クランキングなどによる電圧低下によってもCP
Uがリセットされ再スタートする。そのため、このよう
な電源瞬断時にROMのチエツクを行なった場合、即座
にエンジン制御動作に移ることができず、エンジンの始
動性が悪くなり、最悪の場合にはエンジンが停止してし
まう。このため、イグニッシジンキーによるスタート時
のみROMのチエツクを行なってエンジンの始動性を向
上させるために、電源瞬断であるかどうかのチエツクを
先ず行なう。
In addition, voltage drop due to cranking etc. may cause CP
U is reset and restarts. Therefore, if the ROM is checked during such a momentary power interruption, the engine control operation cannot be started immediately, and the engine starts poorly, and in the worst case, the engine will stop. Therefore, in order to improve the startability of the engine by checking the ROM only when starting with the ignition key, a check is first made to see if there is a momentary power outage.

ここで、従来の電子式エンジン制御装置の自己診断方法
について第5図とともに説明する。先ず、ECUに対す
る電源瞬断であるかどうかをチエツクする(ステップ3
1)。始動時等、電源瞬断てなければ、ROMの各アド
レスの内容を全アドレスにわたって加算しくステップ3
2)、この結果をあらかじめ設定した設定値と比較する
(ステップ33)。ここで上記結果が上記設定値と異な
れば、ROMの内容が異常であるので、ドライバーへの
警報ならびにバックアップ処理を行なう(ステップ34
)。また、上記結果が上記設定値と一致すれば、ROM
の内容が正常であるので、各種センサからの入力の読み
込み、RAMのリセット等の初期設定を行ない(ステッ
プ35)、エンジン制御動作に移行する(ステップ36
)。また、ステップ31で電源瞬断であると判断したな
ら、直接初期設定を行なう。
Here, a conventional self-diagnosis method for an electronic engine control device will be explained with reference to FIG. First, check whether there is a momentary power outage to the ECU (step 3).
1). If there is no momentary power interruption, such as when starting, add the contents of each address in the ROM to all addresses in step 3.
2) Compare this result with a preset setting value (step 33). If the above result is different from the set value, the contents of the ROM are abnormal, and a warning is given to the driver and backup processing is performed (step 34).
). Also, if the above result matches the above setting value, the ROM
Since the contents of are normal, initial settings such as reading inputs from various sensors and resetting the RAM are performed (step 35), and the process moves to engine control operation (step 36).
). Further, if it is determined in step 31 that there is a momentary power interruption, initial settings are directly performed.

発明が解決しようとする課題 しかしながら、上記従来の電子式エンジン制御装置の自
己診断方法では、以下の問題があった。
Problems to be Solved by the Invention However, the above-mentioned conventional self-diagnosis method for an electronic engine control device has the following problems.

(1)8ビット単位でデータを加算してROMの内容を
チエツクしているので、データの加算の回数が多いため
処理時間がかかる。例えばROMの容量が32 kBy
teの場合、約70m5を要する。
(1) Since the contents of the ROM are checked by adding data in units of 8 bits, processing time is required due to the large number of data additions. For example, the capacity of ROM is 32 kBy
In the case of te, approximately 70 m5 is required.

(2)電源瞬断時はROMのチエツクを行っていないの
で、このときのROMの異常は検出できないため、CP
Uの誤動作や暴走の恐れがあり、安全性に障害となる。
(2) Since the ROM is not checked during a momentary power outage, ROM abnormalities cannot be detected at this time, so the CP
There is a risk of the U malfunctioning or running out of control, which poses an obstacle to safety.

本発明は上記の問題を解決する、ROMのチエツクを短
時間のうちに行い、エンジンの始動性を向上させること
ができ、かつ確実に異常検知をすることができる優れた
電子式エンジン制御装置の自己診断方法を提供すること
を目的とするものである。
The present invention solves the above problems by providing an excellent electronic engine control device that can check the ROM in a short time, improve engine startability, and reliably detect abnormalities. The purpose is to provide a self-diagnosis method.

課題を解決するための手段 本発明は上記課題を解決するため、ROMの内容を、そ
の偶数アドレスを上位8ビット、奇数アドレスを下位8
ビットとした16ビットデータとして扱うことにより、
データの加算処理の回数を減らし、短時間にROMの異
常検出を行うものである。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention divides the contents of a ROM into upper 8 bits for even addresses and lower 8 bits for odd addresses.
By treating it as 16-bit data,
This method reduces the number of data addition processes and detects abnormalities in the ROM in a short time.

作用 本発明は上記構成により、エンジン始動時におけるRO
Mのチエツクを短時間に行うことができるため、エンジ
ンの始動性を向上させることができる。
Effect The present invention has the above-mentioned configuration, so that the RO when starting the engine is
Since M can be checked in a short time, engine startability can be improved.

実施例 第1図は本発明の電子式エンジン制御装置の自己診断方
法が用いられる電子式エンジン制御装置(ECU)の概
略ブロック図である。第1図において、1はECU本体
、2はスロットル開度センサ、吸気圧センサ等からの出
力信号が入力される入力部、3は入力部からの信号等を
もとにしてエンジン(図示せず)を制御するCPUであ
り、制御部4と16ビットレジスタ5から成る。5は1
6ビットレジスタであり、ROM6の内容をその偶数ア
ドレスを上位8ビット、奇数アドレスを下位8ビットと
した16ビットデータとして取り込む。6はCPU3の
実行プログラムや各種制御データが格納されたROM、
7はCPU3あるいはROM4が異常の際にエンジンを
制御するサブCPUであり、制御できる機能数としては
CPU3よりは少なくなっているものである。8はCP
U3、サブCPU7から出力されるエンジン制御信号が
入力され、これをエンジンに出力する出力部である。
Embodiment FIG. 1 is a schematic block diagram of an electronic engine control unit (ECU) in which the self-diagnosis method for an electronic engine control unit of the present invention is used. In Fig. 1, 1 is the ECU main body, 2 is an input section into which output signals from the throttle opening sensor, intake pressure sensor, etc. are input, and 3 is an engine (not shown) based on the signals from the input section. ), and consists of a control section 4 and a 16-bit register 5. 5 is 1
It is a 6-bit register, and takes in the contents of the ROM 6 as 16-bit data, with the even address being the upper 8 bits and the odd address being the lower 8 bits. 6 is a ROM in which execution programs and various control data for the CPU 3 are stored;
7 is a sub-CPU that controls the engine when the CPU 3 or ROM 4 is abnormal, and the number of functions that can be controlled is smaller than that of the CPU 3. 8 is CP
U3 is an output section that receives an engine control signal output from the sub CPU 7 and outputs it to the engine.

また、第2図、第3図はそれぞれ、本発明の自己診断方
法の一実施例を示すメモリイメージ図およびフローチャ
ートである。第2図に示すように、ROMの内容を、そ
の偶数アドレスを上位8ビット、奇数アドレスを下位8
ビットとした16ビットデータとして扱う。
2 and 3 are a memory image diagram and a flowchart, respectively, showing an embodiment of the self-diagnosis method of the present invention. As shown in Figure 2, the contents of the ROM are divided into the upper 8 bits for even addresses and the lower 8 bits for odd addresses.
Treated as 16-bit data.

ここで本実施例について第3図とともに説明する。イグ
ニッションキーによるCPUのスタート時、または電源
電圧が低下したためもしくは電源瞬断時にリセットされ
てCPUが再スタートした場合、ROMの内容を、その
偶数アドレスを上位8ビット、奇数アドレスを下位8ビ
ットとして扱い、16ビットレジスタ5に取り込み、こ
れをROMの全アドレスに渡って加算する(ステップ1
1)。次に上位加算の結果をあらかじめ定めた設定値と
比較しくステップ12)、これらが一致しない場合はド
ライバーに警報するとともにROMの異常として、エン
ジンの制御をサブCPU5によって行なわせるバックア
ップ動作にする(ステップ13)。また、上記結果と上
記設定値とが一致した場合には、入力部2から各種セン
サからの信号を読み込み、RAMのリセット等の初期設
定を行ない(ステップ14)、エンジン制御を行なう(
ステップ15)。
The present embodiment will now be described with reference to FIG. 3. When the CPU is started by the ignition key, or when the CPU is reset and restarted due to a drop in power supply voltage or momentary power interruption, the contents of the ROM are treated as the upper 8 bits of the even address and the lower 8 bits of the odd address. , and add it to the 16-bit register 5 over all addresses in the ROM (step 1).
1). Next, the result of the upper order addition is compared with a predetermined set value (step 12), and if they do not match, the driver is alerted and a ROM error is detected, and a backup operation is performed in which the engine is controlled by the sub CPU 5 (step 12). 13). If the above result matches the set value, the input section 2 reads signals from various sensors, performs initial settings such as resetting the RAM (step 14), and performs engine control (step 14).
Step 15).

また、エンジン制御動作を開始してから、ROMの内部
をいくつかのブロックに分割して、このブロックごとに
ROMの内容をチエツクしくステップ16)、正常であ
ればエンジン制御を続け、異常があったならば上記バ・
ソファ・ツブ動作と同様のバックアップ動作を行なう(
ステ・ツブ18)。
Also, after starting the engine control operation, divide the inside of the ROM into several blocks, check the contents of the ROM for each block (step 16), and if it is normal, continue engine control, or if there is an abnormality. If the above
Perform a backup operation similar to the sofa knob operation (
Ste Tubu 18).

このように本実施例によれば、ROMの内容をその偶数
アドレスを上位8ビット、奇数アドレスを下位8ビット
とした16ビットデータとして扱い、これを加算するた
め、データ加算の回数が8ビット単位で加算する場合に
比へて半分で済むため、32 kByteのROMの場
合、従来の70m5を30IIIls以下へとROM内
容のチエ・ツクの処理時間を大幅に削減することができ
るという効果を有する。
In this way, according to this embodiment, the contents of the ROM are treated as 16-bit data, with the even address being the upper 8 bits and the odd address being the lower 8 bits, and being added, the number of data additions is in units of 8 bits. In the case of a 32 kByte ROM, the processing time for checking the ROM contents can be significantly reduced from the conventional 70 m5 to 30 IIIs or less.

さらに、ROM内容のチエツク時間が大幅に短縮できる
ことにより、電源瞬断の判定をする必要がなく、常にR
OMの内容のチエツクを行なうので、確実にROMの異
常を検出することができ、始動性を確保できる上に、安
全性が高いという効果を有する。
Furthermore, since the time to check the ROM contents can be greatly reduced, there is no need to judge instantaneous power outages, and the R
Since the contents of the OM are checked, abnormalities in the ROM can be reliably detected, ensuring startability and high safety.

発明の効果 本発明は上記実施例からも明らかなように、ROMの内
容をその偶数アドレスを上位8ビット、奇数アドレスを
下位8ビットとした16ビットデータとして16ビット
レジスタに取り込み、この16ビットデータをひとまと
めにして加算するため、データ加算の回数が8ビット単
位で加算する場合に比べて半分で済むため、ROM内容
のチエツクの処理時間を大幅に削減することができると
いう効果を有する。
Effects of the Invention As is clear from the above embodiments, the present invention imports the contents of a ROM into a 16-bit register as 16-bit data with the upper 8 bits at the even address and the lower 8 bits at the odd address, and stores the 16-bit data. Since the data are added together, the number of data additions is only half that of adding in 8-bit units, which has the effect of significantly reducing the processing time for checking the ROM contents.

さらに、ROM内容のチエツク時間が大幅に短縮できる
ことにより、電源瞬断の判定をする必要がなく、常にR
OMの内容のチエツクを行なうので、確実にROMの異
常を検出することができ、始動性を確保できる上に、安
全性が高いという効果を有する。
Furthermore, since the time to check the ROM contents can be greatly reduced, there is no need to judge instantaneous power outages, and the R
Since the contents of the OM are checked, abnormalities in the ROM can be reliably detected, ensuring startability and high safety.

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

第1図は本発明の電子式エンジン制御装置の自己診断方
法の用いられる電子式エンジン制御装置の概略ブロック
図、第2図は本発明においてRoMの内容を16ビット
データとして扱う場合のメモリイメージ図、第3図は本
発明における自己診断方法の動作を示すフローチャート
、第4図は従来例のメモリイメージ図、第5図は従来例
のフローチャートである。 1・・・・・・ECU本体、2・・・・・・入力部、3
・・・・・・CPU、4・・・・・・制御i、5−・・
・−・16ビットレジスタ、6・・・・・・ROM、7
・・・・・・サブCPU、8・・・・・・出力部。 代理人の氏名 弁理士 小蝦治 明 ほか2名/  −
−−E t、u  7 J$。 3−cPu 第1図 第2図 第3図
FIG. 1 is a schematic block diagram of an electronic engine control device used in the self-diagnosis method for an electronic engine control device of the present invention, and FIG. 2 is a memory image diagram when the contents of RoM are treated as 16-bit data in the present invention. FIG. 3 is a flowchart showing the operation of the self-diagnosis method according to the present invention, FIG. 4 is a memory image diagram of the conventional example, and FIG. 5 is a flowchart of the conventional example. 1... ECU body, 2... Input section, 3
...CPU, 4...Control i, 5-...
・-・16-bit register, 6...ROM, 7
......Sub CPU, 8...Output section. Name of agent: Patent attorney Akira Koebushi and 2 others / −
--E t, u 7 J$. 3-cPu Figure 1 Figure 2 Figure 3

Claims (1)

【特許請求の範囲】[Claims]  8ビット単位にアドレスを割り付けているマイクロコ
ンピュータを用いたエンジン制御装置において、リード
オンリメモリの偶数アドレスを上位8ビット、奇数アド
レスを下位8ビットとして16ビットレジスタに取り込
み、この16ビットデータをひとまとめにして加算した
結果と、予め設定してある16ビットの設定値とを比較
することにより、リードオンリメモリの異常検出を行う
ことを特徴とする電子式エンジン制御装置の自己診断方
法。
In an engine control device using a microcomputer that allocates addresses in 8-bit units, the even addresses of the read-only memory are taken into a 16-bit register as the upper 8 bits and the odd addresses are treated as the lower 8 bits, and this 16-bit data is grouped together. A self-diagnosis method for an electronic engine control device, characterized in that an abnormality in a read-only memory is detected by comparing the result of addition with a preset 16-bit setting value.
JP28215790A 1990-10-19 1990-10-19 Self-diagnostic method in electronic engine control device Pending JPH04159440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28215790A JPH04159440A (en) 1990-10-19 1990-10-19 Self-diagnostic method in electronic engine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28215790A JPH04159440A (en) 1990-10-19 1990-10-19 Self-diagnostic method in electronic engine control device

Publications (1)

Publication Number Publication Date
JPH04159440A true JPH04159440A (en) 1992-06-02

Family

ID=17648844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28215790A Pending JPH04159440A (en) 1990-10-19 1990-10-19 Self-diagnostic method in electronic engine control device

Country Status (1)

Country Link
JP (1) JPH04159440A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010019232A (en) * 2008-07-14 2010-01-28 Keihin Corp Engine control apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61165158A (en) * 1984-12-20 1986-07-25 Fujitsu Ltd Data checking system of storage device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61165158A (en) * 1984-12-20 1986-07-25 Fujitsu Ltd Data checking system of storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010019232A (en) * 2008-07-14 2010-01-28 Keihin Corp Engine control apparatus

Similar Documents

Publication Publication Date Title
US6076172A (en) Monitoting system for electronic control unit
JPH0237151A (en) Engine controller
JPH03246440A (en) On-vehicle fault diagnostic device
JP3817855B2 (en) Electronic control device
JPH03238541A (en) Controller for automobile
JP2001265617A (en) Controller for vehicle provided with diagnosis function and recording medium
JPH04159440A (en) Self-diagnostic method in electronic engine control device
JP3296043B2 (en) Vehicle electronic control unit
JPH06160245A (en) Abnormality diagnosis system for vehicle
JP7029366B2 (en) Electronic control device for automobiles
JP2002227662A (en) Electronic control device
JP2864610B2 (en) Failure diagnosis device for engine rotation angle sensor
JPH0559452B2 (en)
JP3741872B2 (en) RAM diagnostic device
JPS5928048A (en) Self-diagnosis starting system in self diagnosing device for automobile engine control device
JP2553732B2 (en) Electronic fuel injector
JP2629958B2 (en) Automotive control device
JPH0742602A (en) Memory backup power supply monitor in on-vehicle electric apparatus
JP3302739B2 (en) Control unit diagnostic device
JPH11184762A (en) Device for diagnosing backup ram system of controller for automobile
JPH0512134A (en) Self diagnostic method for electronic engine controller
JPH06249043A (en) Automotive control device
JPH02281352A (en) Memory check method of controller for automobile
JPH08294240A (en) Electronic controller for air bag
JP2019164579A (en) Electronic control device