JPH0777101A - On-vehicle electronic controller - Google Patents
On-vehicle electronic controllerInfo
- Publication number
- JPH0777101A JPH0777101A JP21963493A JP21963493A JPH0777101A JP H0777101 A JPH0777101 A JP H0777101A JP 21963493 A JP21963493 A JP 21963493A JP 21963493 A JP21963493 A JP 21963493A JP H0777101 A JPH0777101 A JP H0777101A
- Authority
- JP
- Japan
- Prior art keywords
- data
- eeprom
- cpu
- mask rom
- output
- 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
Links
Landscapes
- Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はマイクロコンピュータ
(CPU)の外部記憶素子として、EEPROMを用い
た車載用電子制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vehicle-mounted electronic control device using an EEPROM as an external storage element of a microcomputer (CPU).
【0002】[0002]
【従来の技術】従来、この種の車載用電子制御装置(以
下ECUと略す)は、マイクロコンピュータ(CPU)
及び周辺記憶素子から構成される。この周辺記憶素子の
うち不揮発性のもは、プログラム及びデータを記憶する
もので、一般にROMと呼ばれているものであり、マス
クROMとプログラマブルROM(PROM)の2種類
がある。PROMの中でも、EEPROMは、外部から
の電気信号によって記憶内容の書き換えが可能である。2. Description of the Related Art Conventionally, a vehicle-mounted electronic control unit (hereinafter abbreviated as ECU) of this type is a microcomputer (CPU).
And a peripheral storage element. The non-volatile one of the peripheral storage elements stores programs and data and is generally called a ROM, and there are two types, a mask ROM and a programmable ROM (PROM). Among the PROMs, the EEPROM can rewrite the stored contents by an electric signal from the outside.
【0003】ECUの周辺記憶素子として、マスクRO
MとEEPROMを用いた場合、マスクROMにはCP
Uに内蔵されるかあるいは外部に配置され、プログラム
及びデータを格納する。EEPROMにはCPUとシリ
アル信号線により接続され、生産ロット毎の固有のデー
タ(例えば、エンジン制御装置であれば、エンジンの生
産ロットに応じた燃料噴射量補正データなど)が設定さ
れる。ECU生産ラインにおいて、EEPROMをEC
Uに装着した後に、生産ロットに応じてEEPROM内
のロット毎固有データを、外部から電気信号を与えるこ
とによりデータを書き換える。ECUが車両に装着され
て電源がONしプログラムが起動後、CPUはEEPR
OM内のロット毎固有データを読み取り、各制御用デー
タとして用いる。A mask RO is used as a peripheral storage element of the ECU.
When M and EEPROM are used, the mask ROM is CP
It is built in the U or arranged externally and stores programs and data. The EEPROM is connected to the CPU via a serial signal line, and sets unique data for each production lot (for example, in the case of an engine control device, fuel injection amount correction data according to the production lot of the engine). EC in EEPROM production line
After mounting on the U, the lot-specific data in the EEPROM is rewritten according to the production lot by externally applying an electric signal. After the ECU is installed in the vehicle, the power is turned on, and the program is started, the CPU is EEPR
The unique data for each lot in the OM is read and used as each control data.
【0004】これにより、ECUの生産ロット毎にデー
タの変更の必要が生じても、マスクROM内のプログラ
ムあるいはデータを変更することなく、EEPROMの
データを書き換えることにより、生産ロット毎の対応が
できる。As a result, even if it is necessary to change the data for each production lot of the ECU, it is possible to deal with each production lot by rewriting the data in the EEPROM without changing the program or data in the mask ROM. .
【0005】[0005]
【発明が解決しようとする課題】しかしながら、上記従
来の車載用電子制御装置では、EEPROMの書き込み
を行う際に、誤って間違ったデータをEEPROMに書
き込んだ場合、例えばデータが燃料噴射量を補正するも
のであった場合には、異常な燃料噴射を行うことによ
り、エンジン等の損傷を起こすという問題があった。However, in the above-described conventional on-vehicle electronic control unit, when wrong data is written in the EEPROM by mistake when writing the EEPROM, for example, the data corrects the fuel injection amount. If so, there is a problem in that the engine is damaged due to abnormal fuel injection.
【0006】本発明は、このような従来の問題を解決す
るものであり、EEPROMへのデータ書き込み場合の
データの正当性をチェックし、EEPROMへの誤った
データの書き込みを確実に防止することのできる優れた
車載用電子制御装置を提供することを目的とするもので
ある。The present invention solves such a conventional problem by checking the validity of data when writing data to the EEPROM and reliably preventing erroneous data writing to the EEPROM. It is an object of the present invention to provide an excellent in-vehicle electronic control device that can be used.
【0007】[0007]
【課題を解決するための手段】本発明は、上記目的を達
成するために、マスクROMに内蔵したプログラムに従
って動作するマイクロコンピュータ(CPU)と、この
CPUとシリアル信号線により接続されたEEPROM
と、このEEPROMより読み取ったデータと上記マス
クROMに予め設定されたデータとが一致しない場合に
異常パターンを出力する警告灯出力とを備えたものであ
る。In order to achieve the above object, the present invention provides a microcomputer (CPU) that operates according to a program built in a mask ROM, and an EEPROM connected to this CPU by a serial signal line.
And a warning lamp output for outputting an abnormal pattern when the data read from the EEPROM and the data preset in the mask ROM do not match.
【0008】[0008]
【作用】したがって、本発明によれば、EEPROMよ
り読み取ったデータが誤って間違ったデータであった場
合、マスクROMに予め設定されたデータとが一致しな
いため警告灯出力に異常パターンが出力され、警告灯出
力を監視することによりEEPROMへ誤ったデータを
書き込むことを防止することができる。Therefore, according to the present invention, when the data read from the EEPROM is erroneously wrong data, an abnormal pattern is output to the warning lamp output because the data set in the mask ROM does not match. By monitoring the output of the warning light, it is possible to prevent erroneous data writing to the EEPROM.
【0009】[0009]
【実施例】図1は本発明の一実施例における車載用電子
制御装置のブロック図であり、図2はEEPROMの読
み取りプログラムの流れ図である。1 is a block diagram of an on-vehicle electronic control unit according to an embodiment of the present invention, and FIG. 2 is a flow chart of an EEPROM reading program.
【0010】図1において、1はマイクロコンピュータ
(CPU)であり、マスクROM2とワークRAM3を
内蔵している。マスクROM2には各種制御プログラム
及び各種初期データが記憶されている。また、ワークR
AM3には読み取りデータ及び制御処理途中のデータな
どのアクセスが行われる。4は入力インターフェースで
あり、各種入力信号5を処理してCPU1に入力する。
6は出力インターフェースであり、CPU1で処理され
た信号出力を各種出力信号7として発し、燃料噴射弁、
イグナイタ、各ソレノイド等の制御を行う。8はEEP
ROMであり、データライン9とクロックライン10の
2本のライン(シリアル信号線)を介してCPU1のポ
ートに接続されている。11は警告灯出力であり、EE
PROM8より読み取ったデータと上記マスクROM2
に予め設定されたデータとが一致しない場合に異常パタ
ーンを出力する。In FIG. 1, reference numeral 1 is a microcomputer (CPU), which contains a mask ROM 2 and a work RAM 3. Various control programs and various initial data are stored in the mask ROM 2. Also, work R
The AM3 is accessed for read data and data in the middle of control processing. An input interface 4 processes various input signals 5 and inputs them to the CPU 1.
Reference numeral 6 denotes an output interface, which outputs various signal outputs processed by the CPU 1 as various output signals 7,
It controls the igniter and each solenoid. 8 is EEP
It is a ROM and is connected to the port of the CPU 1 via two lines (serial signal lines) of a data line 9 and a clock line 10. 11 is a warning light output, EE
Data read from the PROM 8 and the mask ROM 2
If the data set in advance does not match, the abnormal pattern is output.
【0011】次に、上記実施例の動作について、図2に
示す流れ図を参照して説明する。ステップaにおいて、
EEPROM8内に記憶された認識データを読み取り、
次にステップbにおいて、マスクROM2内に記憶され
た認識データと照合する。EEPROM8より読み取っ
たデータとマスクROM2内に記憶された認識データと
が一致するか否かをステップcにて判定し、一致してい
ない場合には、ステップdにて警告灯出力11をONに
する。Next, the operation of the above embodiment will be described with reference to the flow chart shown in FIG. In step a,
Read the recognition data stored in the EEPROM 8,
Next, in step b, it is collated with the recognition data stored in the mask ROM 2. In step c, it is determined whether or not the data read from the EEPROM 8 and the recognition data stored in the mask ROM 2 match. If they do not match, the warning lamp output 11 is turned on in step d. .
【0012】このように、上記実施例によれば、生産ラ
インにおいて、ECUにEEPROM8を装着しデータ
を書き込み後、ECUの電源をONして、警告灯出力1
1を外部で監視することにより、EEPROM8の書き
込みデータの正当性をチェックすることができる。As described above, according to the above-described embodiment, in the production line, after mounting the EEPROM 8 on the ECU and writing the data, the power of the ECU is turned on to output the warning light output 1
It is possible to check the legitimacy of the write data in the EEPROM 8 by monitoring 1 externally.
【0013】なお、上記実施例においては、データ異常
を示す出力として警告灯出力11をONとした固定出力
であるが、警告灯出力11をパルス列の出力として行っ
ても良い。In the above embodiment, the warning lamp output 11 is a fixed output that is turned on as an output indicating a data abnormality, but the warning lamp output 11 may be output as a pulse train.
【0014】[0014]
【発明の効果】本発明は上記実施例より明らかなよう
に、EEPROMより読み取ったデータと上記マスクR
OMに予め設定されたデータとが一致しない場合に異常
パターンを出力する警告灯出力とを備えることにより、
EEPROMに設定されたデータが誤っている場合、警
告灯出力に異常パターンが出力され、警告灯出力を監視
することによりEEPROMへ誤ったデータを書き込む
ことを防止することができるという効果を有する。According to the present invention, as is apparent from the above embodiment, the data read from the EEPROM and the mask R
By providing a warning light output that outputs an abnormal pattern when data that is preset in the OM does not match,
When the data set in the EEPROM is erroneous, an abnormal pattern is output to the warning lamp output, and by monitoring the warning lamp output, it is possible to prevent the writing of erroneous data in the EEPROM.
【図1】本発明の第1の実施例における車載用電子制御
装置のブロック図FIG. 1 is a block diagram of an on-vehicle electronic control device according to a first embodiment of the present invention.
【図2】同実施例の動作を説明する流れ図FIG. 2 is a flowchart for explaining the operation of the embodiment.
1 CPU 2 マスクROM 3 RAM 4 入力インターフェース 5 各種入力信号 6 出力インターフェース 7 各種出力信号 8 EEPROM 9 データライン 10 クロックライン 11 警告灯出力 1 CPU 2 Mask ROM 3 RAM 4 Input Interface 5 Various Input Signals 6 Output Interface 7 Various Output Signals 8 EEPROM 9 Data Lines 10 Clock Lines 11 Warning Light Output
Claims (1)
って動作するマイクロコンピュータ(CPU)と、この
CPUとシリアル信号線により接続されたEEPROM
と、このEEPROMより読み取ったデータと上記マス
クROMに予め設定されたデータとが一致しない場合に
異常パターンを出力する警告灯出力とを備えた車載用電
子制御装置。1. A microcomputer (CPU) operating according to a program built in a mask ROM, and an EEPROM connected to the CPU by a serial signal line.
And a warning lamp output that outputs an abnormal pattern when the data read from the EEPROM does not match the data preset in the mask ROM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21963493A JPH0777101A (en) | 1993-09-03 | 1993-09-03 | On-vehicle electronic controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21963493A JPH0777101A (en) | 1993-09-03 | 1993-09-03 | On-vehicle electronic controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0777101A true JPH0777101A (en) | 1995-03-20 |
Family
ID=16738604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP21963493A Pending JPH0777101A (en) | 1993-09-03 | 1993-09-03 | On-vehicle electronic controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0777101A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7068147B2 (en) | 1999-12-07 | 2006-06-27 | Denso Corporation | Control information rewriting system |
JP2009083777A (en) * | 2007-10-02 | 2009-04-23 | Denso Corp | Vehicle control device and program |
-
1993
- 1993-09-03 JP JP21963493A patent/JPH0777101A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7068147B2 (en) | 1999-12-07 | 2006-06-27 | Denso Corporation | Control information rewriting system |
JP2009083777A (en) * | 2007-10-02 | 2009-04-23 | Denso Corp | Vehicle control device and program |
US8095262B2 (en) | 2007-10-02 | 2012-01-10 | Denso Corporation | Vehicular control apparatus and program storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5712969A (en) | Method for completely reprogramming an erasable, non-volatile memory | |
JP3626328B2 (en) | Vehicle control device | |
US20090187305A1 (en) | Method of detecting manipulation of a programmable memory device of a digital controller | |
JP2002082841A (en) | Control data storage device of electronic controller | |
US6401163B1 (en) | Apparatus and method for rewriting data from volatile memory to nonvolatile memory | |
US8190321B2 (en) | Electronic control unit with permission switching | |
JP2006268176A (en) | Data validity/invalidity deciding method for flash eeprom | |
KR20000068300A (en) | Process for the protection of stored program controls from overwriting | |
JP2830302B2 (en) | Automotive control device | |
JPH0633828A (en) | On-vehicle electronic control | |
KR100317594B1 (en) | Vehicle Control | |
JPH0777101A (en) | On-vehicle electronic controller | |
JP3296043B2 (en) | Vehicle electronic control unit | |
JPH11141391A (en) | Controller for automobile | |
JP2005338955A (en) | Electronic control device | |
JP2009026183A (en) | Electronic control apparatus for automobile | |
JPH09293028A (en) | Semiconductor storage device | |
JP2000035923A (en) | Abnormality detecting method and abnormality detecting device | |
JPH08153397A (en) | Eeprom data rewrite controller | |
JP5432315B2 (en) | Electronic control device for vehicle | |
JP2002303203A (en) | Vehicle control device, and method for assembling the same | |
JPH0777103A (en) | On-vehicle electronic controller | |
JPH0777102A (en) | On-vehicle electronic controller | |
JP4308349B2 (en) | Control method and control apparatus for internal combustion engine | |
KR100327402B1 (en) | Method and apparatus for self-testing of the micro-processor |