JPH0596976A - Data protection device for automobile microcomputer - Google Patents

Data protection device for automobile microcomputer

Info

Publication number
JPH0596976A
JPH0596976A JP3259260A JP25926091A JPH0596976A JP H0596976 A JPH0596976 A JP H0596976A JP 3259260 A JP3259260 A JP 3259260A JP 25926091 A JP25926091 A JP 25926091A JP H0596976 A JPH0596976 A JP H0596976A
Authority
JP
Japan
Prior art keywords
data
microcomputer
rom
initial state
changed
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
JP3259260A
Other languages
Japanese (ja)
Inventor
Masayuki Oki
昌幸 大木
Motohiro Matsumura
基宏 松村
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP3259260A priority Critical patent/JPH0596976A/en
Publication of JPH0596976A publication Critical patent/JPH0596976A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)
  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)

Abstract

(57)【要約】 【目的】自動車用マイクロコンピュータのROMのデー
タ書換による不具合を防止する。 【構成】マイクロコンピュータ1に内蔵のROM11の所
定のアドレス11aと11bとに生産時におけるエンジンの
混合比データ及び点火時期データの総和と排他的論理和
とを記憶しておき、マイクロコンピュータ1の実車装着
後にイグニッションスイッチ2のON操作毎に前記各デ
ータの総和と排他的論理和とを演算して前記初期の記憶
値と比較し、何れかが不一致である場合は、データが変
更された旨を自己診断結果として記憶する一方、サブマ
イクロコンピュータ3によりフェールセーフ制御を行
う。
(57) [Abstract] [Purpose] To prevent problems caused by rewriting the data in the ROM of the automobile microcomputer. [Structure] The total sum and exclusive OR of engine mixture ratio data and ignition timing data at the time of production are stored at predetermined addresses 11a and 11b of a ROM 11 built in the microcomputer 1, and the actual vehicle of the microcomputer 1 is stored. After mounting, each time the ignition switch 2 is turned on, the sum and exclusive OR of the data are calculated and compared with the initial stored value. If any of them does not match, it is confirmed that the data has been changed. The sub-microcomputer 3 performs fail-safe control while storing the self-diagnosis result.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、自動車の各種制御を実
行するため使用されるマイクロコンピュータに関し、特
に、ROMに記憶されたデータが変更されることを防止
する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer used for executing various controls of an automobile, and more particularly to a technique for preventing alteration of data stored in a ROM.

【0002】[0002]

【従来の技術】自動車においては、燃料噴射制御,点火
時期制御,自動変速制御等の種々の制御がマイクロコン
ピュータを用いて実行されている (特開昭56−138
438号公報等参照) 。かかるマイクロコンピュータを
用いた制御システムにおいては、マイクロコンピュータ
自身で例えば一定周期毎にハイレベルに立ち上がり、バ
ックグラウンドジョブの1ループ実行中にローレベルに
立ち下がるようなプログラムラン信号を出力し、暴走監
視回路により該プログラムラン信号を監視しつつ一定時
間以上同一レベルが継続する場合には、プログラムが正
常に実行されていないと判断して、CPUのリセット端
子にリセット信号を出力してリセットをかけてプラグラ
ムを再スタートさせるようにしている。そして、前記リ
セット信号が所定時間内に所定数以上出力されるとCP
Uの動作が停止し、CPU動作の停止に同期してフェー
ルセーフ回路を作動させることにより最小限の制御を行
うようにしたものもある (実開昭平3−6701号公報
等参照) 。
2. Description of the Related Art In automobiles, various controls such as fuel injection control, ignition timing control, automatic shift control, etc. are executed using a microcomputer (Japanese Patent Laid-Open No. 56-138).
No. 438, etc.). In a control system using such a microcomputer, the microcomputer itself outputs, for example, a program run signal that rises to a high level at regular intervals and falls to a low level during one loop execution of a background job to monitor runaway. If the circuit keeps the same level for a certain period of time while monitoring the program run signal, it is determined that the program is not normally executed, and a reset signal is output to the reset terminal of the CPU to reset the program. I am trying to restart the program. When the reset signal is output more than a predetermined number within a predetermined time, CP
There is also a system in which the operation of U is stopped and a fail-safe circuit is operated in synchronization with the stop of the operation of the CPU so as to perform the minimum control (see Japanese Utility Model Laid-Open No. 3701/1991).

【0003】[0003]

【発明が解決しようとする課題】しかしながら、かかる
フェールセーフ制御機能では、マイクロコンピュータの
ROMに記憶されたデータを故意に書き換えられたよう
な場合は、プログラム自体に支障が無ければ前記リセッ
ト信号は出力されないため、改造されたROMによる正
常でない制御が実行されてしまい、例えば排気エミッシ
ョン特性を悪化させた状態のまま運転が行われてしまう
ようなことがある。
However, in such a fail-safe control function, when the data stored in the ROM of the microcomputer is intentionally rewritten, the reset signal is output if there is no problem in the program itself. Since this is not done, abnormal control by the modified ROM may be executed, and for example, operation may be performed with the exhaust emission characteristics deteriorated.

【0004】本発明は、このような従来の問題点に鑑み
なされたもので、ROMのデータが書換等により変更さ
れた場合には、その形跡を自己診断結果として記憶する
ことにより、ROMの改造等によるデータの変更を防止
できるようにした自動車用マイクロコンピュータのデー
タプロテクト装置を提供することを目的とする。
The present invention has been made in view of the above-mentioned conventional problems, and when the data in the ROM is changed by rewriting or the like, the trace thereof is stored as a self-diagnosis result to remodel the ROM. It is an object of the present invention to provide a data protection device for a microcomputer for an automobile, which can prevent the data from being changed due to the above.

【0005】[0005]

【課題を解決するための手段】このため本発明に係る自
動車用マイクロコンピュータのデータプロテクト装置は
図1に示すように、ROMに記憶された少なくとも所定
のデータの初期状態を記憶する初期状態記憶手段と、前
記所定のデータの現状状態と前記初期状態記憶手段に記
憶された初期状態とを比較してデータが初期状態から変
更したか否かを判定するデータ変更判定手段と、該デー
タ変更判定手段によりデータが変更されたと判定された
ときに当該データの変更を自己診断結果として記憶する
診断結果記憶手段と、を含んで構成した。
Therefore, as shown in FIG. 1, an automobile microcomputer data protection apparatus according to the present invention stores an initial state of at least predetermined data stored in a ROM. And a data change determining means for comparing the current state of the predetermined data with an initial state stored in the initial state storing means to determine whether the data has changed from the initial state, and the data change determining means. And a diagnostic result storage unit that stores the change in the data as a self-diagnosis result when it is determined that the data has been changed.

【0006】また、図1に点線で示すように、前記デー
タ変更判定手段によりデータが変更されたと判定された
ときに、当該データに基づくプログラムの実行を停止
し、別のマイクロコンピュータにより予め用意されたフ
ェールセーフ用プログラムを実行させるフェールセーフ
制御手段と、を含んで構成してもよい。更に、図1に鎖
線で示すように、前記データ変更判定手段の作動の有無
を選択して指示する指示手段と、該指示手段の指示を読
み取って該データ変更判定手段の作動の有無を切り換え
る作動切換手段と、を含んで構成してもよい。
Further, as indicated by a dotted line in FIG. 1, when the data change determining means determines that the data has been changed, the execution of the program based on the data is stopped, and another microcomputer prepares in advance. Fail-safe control means for executing the fail-safe program may be included. Further, as shown by a chain line in FIG. 1, an instruction means for selecting and instructing the operation of the data change determination means and an operation for reading the instruction of the instruction means and switching the operation of the data change determination means. The switching means may be included.

【0007】[0007]

【作用】初期状態記憶手段は、マイクロコンピュータの
生産時に所定のデータの全ての総和や排他的論理和等を
求めて初期状態として記憶しておく。その後、データ変
更判定手段により、例えば運転毎にマイクロコンピュー
タの現状のデータの総和や排他的論理和等を求めて前記
初期状態として記憶された総和や排他的論理和等と比較
し、初期状態の値と相違していれば、データが変更され
たと判断して、そのことを診断結果記憶手段により自己
診断結果として記憶する。その結果、ディーラー等によ
り前記自己診断結果からデータの書き換えが見出されて
ROMの交換等により正常データに戻される。
The initial state storage means finds the total sum or exclusive OR of all the predetermined data when the microcomputer is manufactured and stores it as the initial state. After that, by the data change determination means, for example, the sum total of the current data of the microcomputer or the exclusive logical sum is calculated for each operation, and is compared with the total sum or the exclusive logical sum stored as the initial state. If it is different from the value, it is determined that the data has been changed, and the fact is stored as the self-diagnosis result by the diagnosis result storage means. As a result, the dealer or the like finds that the data has been rewritten from the result of the self-diagnosis, and the ROM is replaced to restore the normal data.

【0008】また、前記フェールセーフ制御手段を設け
れば、ROMのデータに変更があったことを判別したと
きにフェールセーフ制御に切り換えられるので、異常状
態での制御を回避しつつ最低限のフェールセーフ制御を
確保することができる。また、製品開発時は、データを
多々書き換えながら最適なデータを見つける行程を有す
るため、データ変更判定手段の作動は不要であり、特
に、判定の結果フェールセーフ手段が作動してフェール
セーフ用プログラムが実行されることの対処に手間取る
ため、指示手段によりデータ変更判定手段の作動を停止
させる指示を出すことにより、作動切換手段に該指示を
読み取らせてデータ変更判定手段の作動を停止させれ
ば、速やかに開発を遂行できる。
Further, if the fail-safe control means is provided, it is possible to switch to the fail-safe control when it is determined that the data in the ROM has been changed, so that the minimum fail can be avoided while avoiding the control in the abnormal state. Safe control can be secured. In addition, during product development, there is a process to find the optimum data while rewriting many data, so it is not necessary to operate the data change determination means. In order to take time to deal with the execution, if the instruction means gives an instruction to stop the operation of the data change determination means, the operation switching means reads the instruction to stop the operation of the data change determination means, Development can be carried out promptly.

【0009】[0009]

【実施例】以下に、本発明の実施例を図に基づいて説明
する。本発明の一実施例を示す図2において、マイクロ
コンピュータ1は、イグニッションスイッチ2からON
信号を入力することによって燃料噴射制御,点火時期制
御等のエンジン制御に関する所定の制御プログラムを繰
り返し実行するものであり、内蔵メモリのROM11部分
には制御プログラム,制御に必要なデータ、例えば燃料
噴射制御における混合比マップや点火時期制御における
点火時期マップのデータが記憶されている。
Embodiments of the present invention will be described below with reference to the drawings. In FIG. 2 showing an embodiment of the present invention, the microcomputer 1 is turned on from an ignition switch 2.
By inputting a signal, a predetermined control program relating to engine control such as fuel injection control and ignition timing control is repeatedly executed. The control program and data necessary for control, such as fuel injection control, are stored in the ROM 11 portion of the built-in memory. The data of the mixing ratio map and the ignition timing map in the ignition timing control are stored.

【0010】前記マイクロコンピュータ1は、例えば生
産時に前記混合比マップの混合比の各データの総和及び
排他的論理和 (同一ビットの値が同一であれば1、相違
すれば0とする) を求め、夫々最下位1バイトの値をデ
ータの初期状態としてROM11の所定のアドレスに記憶
すると共に、前記イグニッションスイッチ2からON信
号を入力する毎に、現状の前記各データの総和及び排他
的論理和を求めて前記初期状態と比較することによって
データの変更 (書き換え) を判定し、変更されたと判定
された時にはその旨を自己診断結果として記憶するデー
タ変更判定プログラムを記憶してある。
The microcomputer 1 obtains, for example, the total sum and exclusive OR of each data of the mixture ratio of the mixture ratio map (1 if the same bit value is the same, 0 if they are different) at the time of production. , The value of the least significant 1 byte is stored at a predetermined address of the ROM 11 as an initial state of data, and each time an ON signal is input from the ignition switch 2, the total sum and exclusive OR of the current data are calculated. A data change determination program is stored to determine the change (rewrite) of the data by comparing the obtained initial state with the initial state, and to store the fact as a self-diagnosis result when the change is determined.

【0011】また、前記マイクロコンピュータ1には、
サブマイクロコンピュータ3が接続されており、前記デ
ータの変更があったと判定された場合は、マイクロコン
ピュータ1のプログラムの実行を停止して、サブマイク
ロコンピュータ3が内蔵のROMに予め記憶されたフェ
ールセーフ用のプログラムに従ってフェールセーフ制御
を行うようになっている。
Further, in the microcomputer 1,
If the sub-microcomputer 3 is connected and it is determined that the data has been changed, the execution of the program of the microcomputer 1 is stopped and the fail-safe stored in advance in the ROM incorporated in the sub-microcomputer 3 Fail-safe control is performed according to the program for.

【0012】図3は、マイクロコンピュータ1の生産時
におけるROM11の作成ルーチンに追加されるフローを
示す。ステップnでは、混合比マップにおける混合比の
全てのデータと点火時期マップにおける全てのデータの
総和を演算して、該演算結果の最下位1バイトをROM
11の所定のアドレス11a、例えば8000Hに書き込
む。
FIG. 3 shows a flow added to the routine for creating the ROM 11 when the microcomputer 1 is manufactured. At step n, the sum of all the data of the mixing ratio in the mixing ratio map and all the data of the ignition timing map is calculated, and the least significant 1 byte of the calculation result is stored in the ROM.
Write to a predetermined address 11a of 11, for example, 8000H.

【0013】ステップ (n+1) では、前記演算された
混合比マップにおける混合比の全てのデータと点火時期
マップにおける全てのデータの排他的論理和を演算し
て、該演算結果の最下位1バイトをROM11の所定のア
ドレス11b、例えば8001Hに書き込む。これらステ
ップn,ステップ (n+1) の機能が初期状態記憶手段
に相当する。
In step (n + 1), the exclusive OR of all the data of the mixing ratio in the calculated mixing ratio map and all the data in the ignition timing map is calculated, and the least significant 1 byte of the calculation result is obtained. The data is written in a predetermined address 11b of the ROM 11, for example, 8001H. The functions of these steps n and (n + 1) correspond to the initial state storage means.

【0014】ステップ (n+2) では、後述するマイク
ロコンピュータ1の実車装着後のROMデータの自己診
断ルーチンを実行させるためのフラグFRMDTCを0
から1に切り換える。このステップ (n+2) の機能が
指示手段に相当する。図4は、前記マイクロコンピュー
タ1の実車への装着後におけるROMデータの自己診断
ルーチンのフローチャートを示す。このルーチンは、イ
グニッションスイッチ2のON操作毎に実行される。
In step (n + 2), a flag FRMDTC for executing a self-diagnosis routine of ROM data after the microcomputer 1 is mounted in an actual vehicle, which will be described later, is set to 0.
Switch from 1 to 1. The function of this step (n + 2) corresponds to the instruction means. FIG. 4 shows a flowchart of a ROM data self-diagnosis routine after the microcomputer 1 is mounted on an actual vehicle. This routine is executed every time the ignition switch 2 is turned on.

【0015】ステップ1では、前記フラグFRMDTC
の値を判定する。マイクロコンピュータ1の実車装着前
の実験段階ではこの値は0にリセットされているから、
当該自己診断ルーチンはキャンセルされるが、実車装着
後は1にセットされており該判定結果に従ってステップ
2以降へ進んで自己診断ルーチンが実行される。このス
テップ1の機能が作動切換手段に相当する。
In step 1, the flag FRMDTC is set.
Determine the value of. Since this value was reset to 0 in the experimental stage before the microcomputer 1 was installed in the actual vehicle,
Although the self-diagnosis routine is canceled, it is set to 1 after the actual vehicle is mounted, and the self-diagnosis routine is executed after step 2 according to the determination result. The function of step 1 corresponds to the operation switching means.

【0016】ステップ2では、現在のROM11の混合比
マップの混合比の全てのデータと点火時期マップの全て
のデータの総和を演算する。ステップ3では、前記ステ
ップ1で演算された現在のデータの総和の最下位1バイ
トと前記所定アドレス (8000H) に書き込まれた生
産時のデータの総和とを比較する。
In step 2, the sum of all the data of the mixing ratio of the current mixing ratio map of the ROM 11 and all the data of the ignition timing map is calculated. In step 3, the least significant 1 byte of the total sum of the current data calculated in step 1 is compared with the total sum of the production data written in the predetermined address (8000H).

【0017】ステップ3で、両方のデータの総和が一致
していると判定されたときは、ステップ4へ進んで、現
在のROM11の混合比マップの混合比の全てのデータと
点火時期マップの全てのデータの排他的論理和を演算す
る。次にステップ5へ進んで、前記ステップ4で演算さ
れた現在のデータの排他的論理和の最下位1バイトと前
記所定アドレス (8001H) に書き込まれた生産時の
データの排他的論理和とを比較する。
If it is determined in step 3 that the sums of both data are the same, the process proceeds to step 4, and all the data of the mixing ratios of the current mixing ratio map of the ROM 11 and all of the ignition timing maps. The exclusive OR of the data of is calculated. Next, in step 5, the least significant 1 byte of the exclusive OR of the current data calculated in step 4 and the exclusive OR of the data at the time of production written in the predetermined address (8001H) are obtained. Compare.

【0018】ステップ5で両方のデータの排他的論理和
が一致していると判定されたときは、ROM11のデータ
は変更されておらず正常であると判定して、当該自己診
断ルーチンを終了する。尚、引続いて、他の系統の自己
診断を行うものであってもよい。以上、ステップ2〜ス
テップ5の機能が、データ変更判定手段に相当する。ス
テップ3,ステップ5の判定で、総和又は排他的論理和
の中少なくとも一方の値が一致していないと判定された
ときは、ステップ6へ進み、ROM11のデータが変更さ
れた旨の自己診断結果を記憶する。例えば、フラグFR
MDNGを1にセットしておき、この結果をディーラー
等が行う診断結果判別ルーチンで読み取らせるようにす
ればよい。このステップ6の機能が診断結果記憶手段に
相当する。
When it is determined in step 5 that the exclusive ORs of both data match, it is determined that the data in the ROM 11 has not changed and is normal, and the self-diagnosis routine ends. .. Note that, subsequently, self-diagnosis of another system may be performed. The functions of step 2 to step 5 above correspond to the data change determining means. When it is determined in step 3 and step 5 that at least one of the total sum and the exclusive OR does not match, the process proceeds to step 6 and the self-diagnosis result indicating that the data in the ROM 11 has been changed. Memorize For example, flag FR
MDNG may be set to 1, and the result may be read by a diagnostic result determination routine performed by a dealer or the like. The function of step 6 corresponds to the diagnosis result storage means.

【0019】ステップ7では、当該マイクロコンピュー
タ1のプログラムの実行を停止し、サブマイクロコンピ
ュータ3のフェールセーフ制御に切り換える。このステ
ップ7の機能とサブマイクロコンピュータ3とが、フェ
ールセーフ制御手段に相当する。このように、ROM11
のデータが書き換え変更された場合には、その履歴を自
己診断結果として記憶すると共に、フェールセーフ制御
に切り換える構成としたため、データ変更による異常状
態での制御を防止でき、変更そのものを抑制できる。
In step 7, the execution of the program of the microcomputer 1 is stopped and the fail-safe control of the sub-microcomputer 3 is switched to. The function of step 7 and the sub-microcomputer 3 correspond to the fail-safe control means. In this way, ROM11
When the data of (3) is rewritten and changed, the history is stored as the self-diagnosis result and the configuration is switched to the fail-safe control. Therefore, control in an abnormal state due to the data change can be prevented and the change itself can be suppressed.

【0020】また、本実施例ではフラグFRMDTCに
よって、実車装着後から自己診断ルーチンが開始され、
実車装着前は自己診断ルーチンがキャンセルされるよう
にしたため、データマッチングの実験段階では多々変更
されるデータに基づく制御を支障なく実行できる。但
し、自己診断結果のみを記憶し、フェールセーフ制御は
行わないで取り敢えず、変更されたデータによる制御を
継続させ、ディーラー等が発見した段階でROMを交換
させて正常に復帰させるようにしてもよい。
In this embodiment, the flag FRMDTC starts the self-diagnosis routine after the actual vehicle is mounted,
Since the self-diagnosis routine is canceled before the actual vehicle is mounted, the control based on the data that is frequently changed can be executed without any trouble in the experimental stage of data matching. However, only the self-diagnosis result may be stored, the fail-safe control may not be performed, the control based on the changed data may be continued, and the ROM may be replaced at the stage discovered by the dealer or the like to restore the normal condition. ..

【0021】また、本実施例では、混合比のデータと点
火時期のデータとを纏めて自己診断を行う構成とした
が、それ以外も含めて各種制御に使用される全てのデー
タについて総和や排他的論理和を求めて自己診断した
り、更にはプログラムデータまでも含めたり、ROMの
全データの自己診断を行うこともできるが、演算時間は
増大するので、その兼ね合いで自己診断項目データを適
宜決定すればよい。尚、例えば、混合比のデータと点火
時期のデータの何れが変更されたかまでも判別したい場
合は、判別したいデータの種別毎に自己診断すればよ
い。また、診断精度はやや下がるが、簡易的には総和,
排他的論理和の一方のみで診断してもよい。
In this embodiment, the mixture ratio data and the ignition timing data are combined for self-diagnosis. However, other than that, all data used for various controls are summed or exclusive. It is possible to perform self-diagnosis by obtaining logical OR, and even include program data, and perform self-diagnosis of all data in ROM, but since the calculation time increases, the self-diagnosis item data can be appropriately set in consideration of that. Just decide. For example, when it is desired to determine which of the mixing ratio data and the ignition timing data has been changed, self-diagnosis may be performed for each type of data to be determined. In addition, although the diagnostic accuracy is slightly lower,
The diagnosis may be made by only one of exclusive OR.

【0022】その他、例えばROM11の混合比のデータ
が変更されたことを判別した場合には、該ROM11から
のデータの使用を停止して、別のROMに記憶しておい
た混合比の正常なデータを使用するようにプログラムが
切り換えられるようなフェールセーフ制御としておい
て、正常時同様のフェールセーフ制御を行うようにする
こともできる。
In addition, for example, when it is determined that the data of the mixing ratio in the ROM 11 has been changed, the use of the data from the ROM 11 is stopped and the normal mixing ratio stored in another ROM is detected. It is also possible to set the fail-safe control so that the program can be switched so as to use the data, and to perform the fail-safe control similar to the normal time.

【0023】また、前記故意のデータ変更の他、走行中
に強い電波障害等でROM11からのデータの取込みがで
きなくなる等の万一の事態に備えて、演算能力に余裕が
あるアイドル時に何回かに一回の割合で前記自己診断ル
ーチンを行うようにしてもよい。
In addition to the above-mentioned intentional data change, in case of an emergency such as when data cannot be fetched from the ROM 11 due to a strong electromagnetic interference during traveling, etc. The self-diagnosis routine may be performed once per crab.

【0024】[0024]

【発明の効果】以上説明してきたように本発明によれ
ば、ROMのデータが変更したときに、その履歴を自己
診断結果として記憶する構成としたため、該自己診断結
果に基づいてROMを正常なものに交換する等により正
常状態に復帰させることができる。また、ROMのデー
タに変更があったことを判別したときにフェールセーフ
制御に切り換える構成とすることにより、異常状態での
制御を回避しつつ最低限のフェールセーフ制御を確保す
ることができる。更に、データ変更判別の有無を選択可
能な構成とすることにより、マイクロコンピュータ開発
時の実験段階ではデータ変更判別及びこれに基づくフェ
ールセーフ制御を実行しないようにすることができ、開
発を促進できる。
As described above, according to the present invention, when the data in the ROM is changed, the history is stored as the self-diagnosis result. It can be returned to the normal state by replacing it with another one. Further, by adopting a configuration in which it is switched to the fail-safe control when it is determined that the data in the ROM has been changed, it is possible to ensure the minimum fail-safe control while avoiding the control in the abnormal state. Further, by adopting a configuration in which the presence or absence of the data change determination can be selected, it is possible to prevent the data change determination and the fail-safe control based on the data change determination from being executed at the experimental stage during microcomputer development, and to promote the development.

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

【図1】本発明の構成,機能を示すブロック図FIG. 1 is a block diagram showing the configuration and functions of the present invention.

【図2】本発明の一実施例の構成を示す図FIG. 2 is a diagram showing a configuration of an embodiment of the present invention.

【図3】同上実施例のROM作成ルーチンを示すフロー
チャート
FIG. 3 is a flowchart showing a ROM creation routine of the above embodiment.

【図4】同上実施例の自己診断ルーチンを示すフローチ
ャート
FIG. 4 is a flowchart showing a self-diagnosis routine of the above embodiment.

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

1 マイクロコンピュータ 3 サブマイクロコンピュータ 11 ROM 11a データの総和を記憶するアドレス 11b データの排他的論理和を記憶するアドレス 1 Microcomputer 3 Sub-microcomputer 11 ROM 11a Address for storing total sum of data 11b Address for storing exclusive OR of data

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】自動車の制御に使用されるマイクロコンピ
ュータにおいて、ROMに記憶された少なくとも所定の
データの初期状態を記憶する初期状態記憶手段と、前記
所定のデータの現状状態と前記初期状態記憶手段に記憶
された初期状態とを比較してデータが初期状態から変更
したか否かを判定するデータ変更判定手段と、該データ
変更判定手段によりデータが変更されたと判定されたと
きに当該データの変更を自己診断結果として記憶する診
断結果記憶手段と、を含んで構成したことを特徴とする
自動車用マイクロコンピュータのデータプロテクト装
置。
1. In a microcomputer used for controlling an automobile, an initial state storage means for storing an initial state of at least predetermined data stored in a ROM, a current state of the predetermined data and the initial state storage means. A data change judging means for judging whether or not the data is changed from the initial state by comparing with the initial state stored in, and a change of the data when the data change judging means judges that the data is changed. And a diagnostic result storage means for storing as a self-diagnosis result, and a data protection device for a microcomputer for an automobile.
【請求項2】前記データ変更判定手段によりデータが変
更されたと判定されたときに、当該データに基づくプロ
グラムの実行を停止し、別のマイクロコンピュータによ
り予め用意されたフェールセーフ用プログラムを実行さ
せるフェールセーフ制御手段と、を含んで構成したこと
を特徴とする請求項1記載の自動車用マイクロコンピュ
ータのデータプロテクト装置。
2. A fail which causes the execution of a program based on the data to be stopped when the data change judging means judges that the data has been changed, and causes a failsafe program prepared in advance by another microcomputer to be executed. 2. The data protection device for an automobile microcomputer according to claim 1, further comprising a safe control means.
【請求項3】前記データ変更判定手段の作動の有無を選
択して指示する指示手段と、該指示手段の指示を読み取
って該データ変更判定手段の作動の有無を切り換える作
動切換手段と、を含んで構成したことを特徴とする請求
項1又は2に記載の自動車用マイクロコンピュータのデ
ータプロテクト装置。
3. An instruction means for selecting and instructing whether or not to operate the data change determining means, and an operation switching means for reading the instruction of the instructing means and switching between operation and non-operation of the data change determining means. 3. The data protection device for an automobile microcomputer according to claim 1 or 2, wherein
JP3259260A 1991-10-07 1991-10-07 Data protection device for automobile microcomputer Pending JPH0596976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3259260A JPH0596976A (en) 1991-10-07 1991-10-07 Data protection device for automobile microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3259260A JPH0596976A (en) 1991-10-07 1991-10-07 Data protection device for automobile microcomputer

Publications (1)

Publication Number Publication Date
JPH0596976A true JPH0596976A (en) 1993-04-20

Family

ID=17331635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3259260A Pending JPH0596976A (en) 1991-10-07 1991-10-07 Data protection device for automobile microcomputer

Country Status (1)

Country Link
JP (1) JPH0596976A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014091666A1 (en) * 2012-12-12 2014-06-19 株式会社デンソー Onboard electronic control device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62111543A (en) * 1985-11-09 1987-05-22 Toyota Motor Corp Multiplex transmission control equipment
JPH0229856A (en) * 1988-07-20 1990-01-31 Fujitsu General Ltd Cafeteria management system
JPH03189337A (en) * 1989-12-19 1991-08-19 Japan Electron Control Syst Co Ltd Automotive control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62111543A (en) * 1985-11-09 1987-05-22 Toyota Motor Corp Multiplex transmission control equipment
JPH0229856A (en) * 1988-07-20 1990-01-31 Fujitsu General Ltd Cafeteria management system
JPH03189337A (en) * 1989-12-19 1991-08-19 Japan Electron Control Syst Co Ltd Automotive control device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014091666A1 (en) * 2012-12-12 2014-06-19 株式会社デンソー Onboard electronic control device
JP2014115950A (en) * 2012-12-12 2014-06-26 Denso Corp In-vehicle electronic control device
US9778970B2 (en) 2012-12-12 2017-10-03 Denso Corporation Memory check, abnormality threshold count, and reset in an onboard electronic control unit

Similar Documents

Publication Publication Date Title
JP4636118B2 (en) Electronic device and program
EP0762249B1 (en) Controller for a machine with control of overwriting program or data in controller after machine stop
JP3255693B2 (en) Automotive multi-computer system
JPH1195803A (en) Control device for system and method of driving control device
US4317364A (en) Self-testing control system for an internal combustion engine
JP3969278B2 (en) Electronic control unit
JPH0237151A (en) Engine controller
EP1717431A2 (en) Electric control unit
JP4001088B2 (en) Electronic control unit
US6502021B2 (en) Vehicle control computer apparatus having self-diagnosis function
JP2002304304A (en) Processing execution device, processing program mounted on the processing execution device, and recording medium
JPH06160245A (en) Abnormality diagnosis system for vehicle
JPH09161493A (en) Management method for rewritable nonvolatile memory
JP2007062632A (en) Electronic control unit and storing method of data for abnormality generated time storage
JP2001182607A (en) Vehicle control device
JP2004178067A (en) Electronic control unit
JPH05171998A (en) Failure diagnosing system for vehicle
JPH0325813B2 (en)
JP2002147281A (en) Program and data rewriting device for electronic control unit
EP1052495B1 (en) Internal combustion engine diagnostic apparatus
JPH05126920A (en) Measuring unit
JPH08147001A (en) Fail-safe device
WO2023233611A1 (en) Electronic control device
JPH04284165A (en) Trouble diagnosing system for starter system
JP2001189083A (en) Electronic control unit