JP2000257502A - Electronic controller for automobile - Google Patents

Electronic controller for automobile

Info

Publication number
JP2000257502A
JP2000257502A JP11059083A JP5908399A JP2000257502A JP 2000257502 A JP2000257502 A JP 2000257502A JP 11059083 A JP11059083 A JP 11059083A JP 5908399 A JP5908399 A JP 5908399A JP 2000257502 A JP2000257502 A JP 2000257502A
Authority
JP
Japan
Prior art keywords
data
electronic control
control unit
supplied
vehicle
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
JP11059083A
Other languages
Japanese (ja)
Inventor
Atsushi Yamaguchi
惇 山口
Yoshihiro Kawase
義博 川瀬
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 Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP11059083A priority Critical patent/JP2000257502A/en
Publication of JP2000257502A publication Critical patent/JP2000257502A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make an electronic controller possible to write data into a nonvolatile memory storing a control program during a period of time when the control program for engine control, etc., is not executed. SOLUTION: The power supply from a battery 3 into a main power supply circuit 33 in a microcomputer 31 is continued through a main relay 2, even if an ignition(IG) switch 4 is turned off. Since the control by use of an engine control program in a flash ROM 31c is not executed while the IG switch is off, the flash ROM 31c itself can be switched from an operation mode to a write mode. Since the power supply in a route via the main relay 2 is maintained even if the IG switch is off, a flash write program can be operated by a RAM 31b, and flash write data can be written into the flash ROM 31c. During a predetermined period of time when the power supply is carried out, EEPROM write data in the RAM 31b and flash write data in the RAM 31b are written into EEPROM 35 and flash ROM 31c, respectively.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、自動車に搭載され
た所定の制御対象を制御する自動車用電子制御装置に関
し、特に、ダイアグコードなどの、イグニッションスイ
ッチOFF状態でもその内容を維持しておく必要のある
データを不揮発性メモリに書き込む際の技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic control unit for a vehicle, which controls a predetermined control target mounted on the vehicle, and in particular, it is necessary to maintain its contents even when an ignition switch such as a diagnostic code is in an OFF state. The present invention relates to a technique for writing certain data to a nonvolatile memory.

【0002】[0002]

【従来の技術】従来より、自動車に搭載されたエンジン
をはじめとする所定の制御対象を制御する電子制御装置
(ECU)が知られている。例えばエンジン用のECU
であれば、エンジンのエミッションに関連する異常や水
温センサなどの各種センサの異常を診断し、その診断結
果をダイアグコードとして記憶しておくことがなされて
いる。この車両状態を示すダイアグコードは、バッテリ
が外れても記憶内容が消えないようにする必要があるた
め、例えば不揮発性メモリの1つであるEEPROMを
マイクロコンピュータ(以下、単に「マイコン」と記
す。)の外部に設けていることが多い。
2. Description of the Related Art Conventionally, there has been known an electronic control unit (ECU) for controlling a predetermined control target such as an engine mounted on an automobile. For example, ECU for engine
If so, an abnormality related to engine emission and an abnormality of various sensors such as a water temperature sensor are diagnosed, and the diagnosis result is stored as a diagnostic code. Since it is necessary to keep the stored contents of the diagnostic code indicating the vehicle state even when the battery is removed, for example, an EEPROM, which is one of nonvolatile memories, is referred to as a microcomputer (hereinafter simply referred to as “microcomputer”). ) Is often provided outside.

【0003】この構成では、マイコンは一定間隔で車両
状態をモニタし、EEPROMにダイアグコードとして
書き込むこととなるが、例えば自動車の仕様増加によ
り、記憶しておくべきダイアグコードの種類が増えデー
タ量が多くなってEEPROMの記憶容量が不足する場
合も考えられる。この場合は、例えば大容量EEPRO
Mに交換したり、EEPROMを追加することで対応で
きるが、交換・追加作業が必要となり、またコストアッ
プも招来してしまう。
In this configuration, the microcomputer monitors the state of the vehicle at regular intervals and writes it in the EEPROM as a diagnostic code. However, for example, due to an increase in the specifications of automobiles, the type of diagnostic code to be stored increases and the data amount increases. It is also conceivable that the storage capacity of the EEPROM becomes insufficient due to the increase. In this case, for example, a large capacity EEPRO
It can be dealt with by replacing with M or by adding an EEPROM, but replacement / additional work is required, and the cost is increased.

【0004】ここで、例えばマイコン内部にフラッシュ
メモリを備え、そこに制御プログラムを記憶している構
成の自動車用電子制御装置の場合であれば、フラッシュ
メモリの記憶領域の全てが制御プログラム用に使用され
ることは少なく、空き領域が発生していることが多い。
したがって、その空き領域にダイアグコードを書き込め
ばよいとも考えられる。
For example, in the case of an electronic control unit for a vehicle in which a flash memory is provided in a microcomputer and a control program is stored therein, the entire storage area of the flash memory is used for the control program. Is rarely performed, and an empty area is often generated.
Therefore, it is considered that the diagnostic code may be written in the empty area.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、フラッ
シュメモリには制御プログラムが記憶されており、その
制御プログラムを用いてエンジン制御などを実行してい
る最中においては、フラッシュメモリ自体が「動作モー
ド」となっているため、データ書込ができない。フラッ
シュメモリへデータ書込を行うためには、前記動作モー
ドから「書込モード」へ切り替える必要があり、結果的
に、エンジン制御などを実行している最中はデータ書込
ができないのである。
However, a control program is stored in the flash memory, and during execution of engine control or the like using the control program, the flash memory itself operates in an "operation mode". , The data cannot be written. In order to write data to the flash memory, it is necessary to switch from the operation mode to the "write mode". As a result, data cannot be written during execution of engine control or the like.

【0006】そこで、エンジン制御等の制御プログラム
を実行しない期間中に、当該制御プログラムを記憶した
不揮発性メモリへのデータ書込ができるようにして、上
述した問題を解決することのできる自動車用電子制御装
置を提供することを目的としている。
Therefore, during a period in which a control program such as an engine control is not executed, data can be written to a nonvolatile memory storing the control program, thereby solving the above-mentioned problem. It is intended to provide a control device.

【0007】[0007]

【課題を解決するための手段、及び発明の効果】上記目
的を達成するためになされた請求項1に記載の本発明の
自動車用電子制御装置は、記憶内容をメモリセルのブロ
ック単位で電気的に書き換え可能な読み出し専用の不揮
発性メモリ(以下、「書換可能ROM」ともいう。)を
備えており、その書換可能ROMに記憶された制御プロ
グラムに従って自動車に搭載された所定の制御対象を制
御する。所定の制御対象とはエンジンなどである。ま
た、本発明の自動車用電子制御装置は、制御プログラム
に従った制御の実行に必要な電源が電源供給装置から供
給される状態(いわゆるIGオン状態)と供給されない
状態(いわゆるIGオフ状態)とを切り替えるためのイ
グニッションスイッチを備えている。そして、イグニッ
ションスイッチにより電源供給装置から供給された電源
によって制御プログラムに従った制御を実行する。例え
ばエンジン制御をする場合、IGオン状態の場合にだけ
エンジン制御がなされ、IGオフ状態ではエンジン制御
がなされないこととなる。
According to the first aspect of the present invention, there is provided an electronic control apparatus for a vehicle, wherein the storage contents are electrically controlled in units of memory cell blocks. A rewritable read-only nonvolatile memory (hereinafter, also referred to as a “rewritable ROM”), and controls a predetermined control target mounted on the vehicle according to a control program stored in the rewritable ROM. . The predetermined control target is an engine or the like. In addition, the electronic control unit for a vehicle according to the present invention includes a state where power required for executing control according to the control program is supplied from a power supply device (so-called IG on state) and a state where power is not supplied (so-called IG off state). It has an ignition switch for switching. Then, the control according to the control program is executed by the power supplied from the power supply device by the ignition switch. For example, when controlling the engine, the engine control is performed only when the IG is on, and the engine control is not performed when the IG is off.

【0008】ここで、特に請求項1記載の自動車用電子
制御装置においては、イグニッションスイッチにより通
常動作に必要な電源が供給されない状態へ切り替わった
場合であっても、供給状態制御手段が、その切り替わり
時点から所定期間は自動車用電子制御装置の通常動作に
必要な電源が電源供給装置から供給されている状態を継
続し、その後、通常動作に必要な電源が供給されない状
態に切替設定する。そして、供給状態制御手段によって
電源供給が維持されている所定期間中に、データ書込手
段が次のような処理を行う。すなわち、イグニッション
スイッチにより通常動作に必要な電源が供給されている
期間中に得られ、イグニッションスイッチにより通常動
作に必要な電源が供給されない状態においても内容を維
持する必要のあるデータを、書換可能ROMの、前記制
御プログラムが記憶されていない所定のブロックに書き
込むのである。
Here, in the electronic control apparatus for a vehicle according to the present invention, even when the power supply required for normal operation is not supplied by the ignition switch, the supply state control means switches the state. For a predetermined period from the point in time, the state in which the power required for the normal operation of the vehicle electronic control device is supplied from the power supply device is continued, and then the state is switched to the state in which the power required for the normal operation is not supplied. Then, during a predetermined period in which the power supply is maintained by the supply state control unit, the data writing unit performs the following processing. That is, rewritable ROM data obtained during a period in which power required for normal operation is supplied by the ignition switch and whose contents need to be maintained even when power required for normal operation is not supplied by the ignition switch. In this case, the control program is written in a predetermined block that is not stored.

【0009】上述した従来技術の課題として、書換可能
ROM(上述例ではフラッシュメモリ)に記憶された制
御プログラムを用いてエンジン制御などを実行している
最中においては、書換可能ROMが「動作モード」とな
っているため、データ書込ができないことが挙げられ
る。しかし、この請求項1記載の自動車用電子制御装置
においては、イグニッションスイッチにより通常動作に
必要な電源が供給されない状態(IGオフ状態)になっ
た後の所定期間は、供給状態制御手段によって電源供給
が維持されている。そのIGオフ状態においては、制御
プログラムを用いた制御(エンジン制御など)は実行さ
れないため、書換可能ROMを動作モードから「書込モ
ード」へ切り替えることができる。そして、供給状態制
御手段によって電源供給が維持されているため、データ
書込手段は書換可能ROMにデータを書き込むことがで
きる。
[0009] As a problem of the prior art described above, during execution of engine control or the like using a control program stored in a rewritable ROM (flash memory in the above-described example), the rewritable ROM operates in an "operation mode". , The data cannot be written. However, in the electronic control apparatus for a vehicle according to the first aspect, the power supply is controlled by the supply state control means during a predetermined period after the power required for normal operation is not supplied by the ignition switch (IG off state). Is maintained. In the IG off state, control using the control program (engine control or the like) is not executed, so that the rewritable ROM can be switched from the operation mode to the “write mode”. Since the power supply is maintained by the supply state control means, the data writing means can write data in the rewritable ROM.

【0010】このように、この請求項1記載の自動車用
電子制御装置によれば、例えばエンジン制御などの、制
御プログラムに基づいた制御を実行しない期間中であっ
ても、当該制御プログラムを記憶した書換可能ROMへ
のデータ書込ができ、上述した問題を解決することがで
きる。つまり、例えばダイアグコードをEEPROMに
書き込むことを前提とし、自動車の仕様増加により、記
憶しておくべきダイアグコードの種類が増えデータ量が
多くなってEEPROMの記憶容量が不足する場合であ
っても、制御プログラムを記憶している書換可能ROM
の空き領域を使用することができる。したがって、例え
ば大容量EEPROMに交換したり、EEPROMを追
加しなくてもよく、そのための交換・追加作業は不要と
なり、またコストアップも招来しない。
As described above, according to the electronic control apparatus for a vehicle according to the present invention, the control program is stored even during a period in which control based on the control program such as engine control is not executed. Data can be written to the rewritable ROM, and the above-described problem can be solved. That is, for example, on the assumption that the diagnostic code is written in the EEPROM, even if the type of diagnostic code to be stored increases due to an increase in the specification of the vehicle, the data amount increases, and the storage capacity of the EEPROM becomes insufficient. Rewritable ROM storing control program
Free space can be used. Therefore, for example, it is not necessary to replace with a large-capacity EEPROM or to add an EEPROM, so that replacement / additional work is not required, and cost does not increase.

【0011】なお、ここでの効果説明は、一具体例とし
て上述した従来技術における構成、すなわちマイコンに
EEPROMが外付けされている構成を前提とした説明
であったが、本発明においてEEPROMが必須という
わけではない。例えば、記憶しておくべきダイアグコー
ドが、制御プログラムを記憶している書換可能ROMの
空き領域を使用すれば全て書き込めるだけのデータ量で
あれば、マイコン内の書換可能ROMのみでも対応可能
であり、この点での効果が得られる。
Although the description of the effects here is based on the premise that the configuration in the prior art described above as a specific example, that is, the configuration in which an EEPROM is externally attached to the microcomputer, the EEPROM is indispensable in the present invention. That is not to say. For example, only the rewritable ROM in the microcomputer can be used as long as the diagnostic code to be stored has a data amount that can be entirely written by using an empty area of the rewritable ROM storing the control program. The effect in this respect is obtained.

【0012】ところで、いわゆるIGオフ状態になって
からデータ書込手段により書換可能ROMの空き領域
(正確には、制御プログラムが記憶されていない所定の
ブロック)にデータを書き込むのであるが、この「内容
を維持する必要のあるデータ」については、請求項2に
示すように、イグニッションスイッチにより通常動作に
必要な電源が供給されている期間中(IGオン中)はR
AMにおいて更新記憶しておくことが好ましい。このよ
うにすれば、更新された最新のデータを最終的に書換可
能ROMへ書き込むことができるからである。
By the way, after the so-called IG-off state, data is written by a data writing means into an empty area of a rewritable ROM (more precisely, a predetermined block in which a control program is not stored). Regarding "data whose contents need to be maintained", R is set during the period when the power required for normal operation is supplied by the ignition switch (while the IG is on).
It is preferable that the information be updated and stored in the AM. This is because the updated latest data can be finally written to the rewritable ROM.

【0013】そして、このRAMとしては、請求項3に
示すように、電源供給装置により常時電源供給されるス
タンバイRAMとすることが考えられる。例えばエンジ
ン制御などを考えると、制御学習値をRAMへ記憶して
おく場合、次回の制御でも使用することが好ましいた
め、スタンバイRAMが用いられることが多い。したが
って、そのスタンバイRAMを援用(共用)すればよ
い。
The RAM may be a standby RAM constantly supplied with power by a power supply device. For example, in consideration of engine control and the like, when the control learning value is stored in the RAM, it is preferable to use the control learning value in the next control, so that the standby RAM is often used. Therefore, the standby RAM may be used (shared).

【0014】ところで、前記書換可能ROMへのデータ
書込は、所定の書込プログラムに基づいて実行すること
となる。そして、この書込プログラムをどこに記憶させ
ておくかという点については、例えば請求項4に示すよ
うに、書換可能ROM内に記憶されておくことが考えら
れる。この場合は、書込プログラムの動作用として、不
揮発性メモリとは別のプログラム動作用メモリ(通常は
RAM)を備え、データ書込手段がデータを書換可能R
OMに書き込む際、その書込プログラムを書換可能RO
Mからプログラム動作用メモリへ移して実行させればよ
い。
The data writing to the rewritable ROM is executed based on a predetermined writing program. Regarding where the write program is stored, for example, it is conceivable that the write program is stored in a rewritable ROM. In this case, a memory for program operation (usually a RAM) different from the non-volatile memory is provided for the operation of the write program, and the data writing means can rewrite data.
When writing to OM, the write program can be rewritten.
What is necessary is just to move from M to the memory for program operation and execute it.

【0015】もちろん、書換可能ROMとは別のメモリ
(ROMなど)に記憶しておいてもよいが、制御プログ
ラムの記憶された書換可能ROM自体に記憶しておけ
ば、別のメモリが不要となる利点が得られる。なお、制
御プログラムが記憶される書換可能ROMとしては、請
求項5に示すように、フラッシュメモリとすることが考
えられる。もちろん、EEPROMであってもよい。
Of course, it may be stored in a memory (ROM or the like) other than the rewritable ROM, but if it is stored in the rewritable ROM itself in which the control program is stored, another memory is unnecessary. Some advantages are obtained. As a rewritable ROM in which the control program is stored, a flash memory may be used. Of course, it may be an EEPROM.

【0016】そして、このように書換可能ROMとして
フラッシュメモリを用いる場合には、請求項6に示すよ
うに、データ書込手段が、書き込むべきデータ内容を、
不揮発性メモリとしてのフラッシュメモリ内に記憶され
ている対応データ内容と比較し、異なっている場合に限
り、データ更新を行うことが好ましい。
When the flash memory is used as the rewritable ROM as described above, the data writing means stores the data content to be written as:
It is preferable to compare the corresponding data stored in the flash memory as the nonvolatile memory and update the data only when the content is different.

【0017】また、同様に書換可能ROMとしてフラッ
シュメモリを用いる場合には、請求項7に示す構成を採
用してもよい、すなわち、このフラッシュメモリとは別
に、イグニッションスイッチにより通常動作に必要な電
源が供給されない状態においても内容を維持する必要の
あるデータを記憶しておくための不揮発性メモリとして
のEEPROMを備え、データ書込手段が、内容を維持
する必要のあるデータを書き込む際、そのデータ種別に
応じ、フラッシュメモリ及びEEPROMに分散させて
書き込むようにするのである。
Similarly, when a flash memory is used as the rewritable ROM, the configuration described in claim 7 may be adopted. That is, separately from this flash memory, a power supply required for normal operation by an ignition switch is provided. And an EEPROM as a non-volatile memory for storing data whose contents need to be maintained even when the data is not supplied, and when the data writing means writes the data whose contents need to be maintained, According to the type, the data is distributed and written in the flash memory and the EEPROM.

【0018】この場合には、例えば全てのデータをEE
PROMに書き込める状態であればEEPROMのみに
データ書込をし、自動車の仕様増加により、記憶してお
くべきコード種類が増えデータ量が多くなってEEPR
OMの記憶容量が不足する状況となれば、フラッシュメ
モリにもデータ書込を行うようにすることが考えられ
る。なお、どのデータをフラッシュメモリ、EEPRO
Mのいずれに書き込むかについては、予めデータ種類毎
に設定しておけばよい。
In this case, for example, all data are EE
If the data can be written to the PROM, the data is written only to the EEPROM, and the number of codes to be stored increases and the data amount increases due to the increase in the specification of the vehicle, and the EEPROM is increased.
If the storage capacity of the OM becomes insufficient, it is conceivable to write data to the flash memory. Which data is stored in flash memory, EEPROM
Which of M is to be written may be set in advance for each data type.

【0019】そして、データ種類に応じて分散して書き
込む場合には、請求項8に示すように、内容を維持する
必要のあるデータであって頻繁にデータ内容が変化する
可能性が低いものは、フラッシュメモリに書き込み、頻
繁にデータ内容が変化する可能性が高いものはEEPR
OMに書き込むことが好ましい。これは、一般的に言え
ば、データ書換の頻度が高い場合には、EEPROMの
方がデータ書換回数においてフラッシュメモリより適し
ているからである。
In the case where data is written in a distributed manner according to the type of data, the data whose contents need to be maintained and whose data contents are unlikely to change frequently are low. , Write to flash memory and frequently change data content is EEPR
It is preferable to write in the OM. This is because, generally speaking, when the frequency of data rewriting is high, the EEPROM is more suitable than the flash memory in the number of times of data rewriting.

【0020】なお、書換可能ROMとしてフラッシュメ
モリを用いる場合には、内部に制御プログラムが記憶さ
れている関係から、請求項9に示すように、CPUを中
心として構成されるマイクロコンピュータ内にフラッシ
ュメモリが配備されることが好ましいと考えられる。
In the case where a flash memory is used as the rewritable ROM, the flash memory is stored in a microcomputer mainly constituted by a CPU, because the control program is stored therein. Is preferably deployed.

【0021】もちろん、フラッシュメモリをマイコンに
外付けする構成を採用することも可能である。
Of course, it is also possible to adopt a configuration in which the flash memory is externally attached to the microcomputer.

【0022】[0022]

【発明の実施の形態】以下、本発明の一実施形態につい
て図面を用いて説明する。図1は、自動車(車両)に搭
載されて内燃機関型エンジンの制御を行う、自動車用電
子制御装置の一実施形態としてのエンジンECU30と
メインリレー2、及びその周辺機器の構成を表すブロッ
ク図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an engine ECU 30, a main relay 2, and peripheral devices as an embodiment of an electronic control unit for an automobile, which is mounted on an automobile (vehicle) and controls an internal combustion engine. is there.

【0023】エンジンECU30は、メイン電源回路3
3がメインリレー2及びイグニッションスイッチ4の両
方のルートを介してバッテリ3(電源供給装置に相当)
と接続されている。このメインリレー40は、エンジン
ECU30からのメインリレー制御信号によってオン状
態/オフ状態が切り替えられる。したがってイグニッシ
ョンスイッチ4がオンされている状態あるいはメインリ
レー2がオン状態の場合には、バッテリ3からの電源が
メイン電源回路33を介してマイコン31などに供給さ
れることにより、エンジンECU30は動作する。ま
た、このような構成であるため、イグニッションスイッ
チ4がオフされても、メインリレー2がオン状態であれ
ば、エンジンECU30は通常の動作が可能である。そ
して、イグニッションスイッチ4がオフされた後、メイ
ンリレー制御信号によってメインリレー2がオフ状態と
なると、メイン電源回路33からの電源供給がなくな
り、エンジンECU30は通常動作ができなくなる。
The engine ECU 30 includes a main power supply circuit 3
3 is a battery 3 (corresponding to a power supply device) via both routes of the main relay 2 and the ignition switch 4
Is connected to The ON / OFF state of the main relay 40 is switched by a main relay control signal from the engine ECU 30. Therefore, when the ignition switch 4 is turned on or the main relay 2 is turned on, power from the battery 3 is supplied to the microcomputer 31 and the like via the main power supply circuit 33, so that the engine ECU 30 operates. . Further, with such a configuration, even if the ignition switch 4 is turned off, the engine ECU 30 can perform a normal operation as long as the main relay 2 is on. When the main relay 2 is turned off by the main relay control signal after the ignition switch 4 is turned off, the power supply from the main power supply circuit 33 is stopped, and the engine ECU 30 cannot operate normally.

【0024】なお、イグニッションスイッチ4を介さず
バッテリ3と直接つながるサブ電源回路34を備えてい
るため、メイン電源回路33を介した電源供給が停止し
た後もこのサブ電源回路34を介してマイコン31に電
源供給される。そのため、マイコン31内のRAM31
bのデータはイグニッションスイッチ4のオフ後も保持
される。したがって、この状態が、上述した「エンジン
ECU30が通常動作できなくなる状態」である。
Since the sub power supply circuit 34 is directly connected to the battery 3 without the intervention of the ignition switch 4, the microcomputer 31 is connected via the sub power supply circuit 34 even after the power supply via the main power supply circuit 33 is stopped. Is supplied with power. Therefore, the RAM 31 in the microcomputer 31
The data b is retained even after the ignition switch 4 is turned off. Therefore, this state is the above-mentioned state in which the engine ECU 30 cannot operate normally.

【0025】なお、バッテリ3は、図示しないエンジン
が駆動することによって充電される構成となっている。
具体的には、エンジンによって駆動されるオルタネータ
を備えており、そのオルタネータがエンジン回転数に応
じた電力を発生し、発生した電力がバッテリ3に供給さ
れるよう構成されている。この供給された電力によって
バッテリ3が充電される。
The battery 3 is configured to be charged by driving an engine (not shown).
Specifically, an alternator driven by an engine is provided, and the alternator generates electric power corresponding to the engine speed, and the generated electric power is supplied to the battery 3. The battery 3 is charged by the supplied power.

【0026】マイコン31では、CPU31aがFla
shROM(フラッシュメモリ)31cに記憶された制
御プログラムに従い、入出力回路32及びマイコン31
内のI/O31dを介して入力したセンサ信号に基づい
てエンジンが最適な動作をするようインジェクタ47や
イグナイタ48を制御する信号を出力する。また、エン
ジンのエミッションに関連する異常を自己診断してエン
ジンの動作やセンサ41〜46の異常等を診断し、外部
(DIAGテスタ49あるいは通信ライン5を介して接
続される他のECUなど)からの要求に応じて診断結果
のデータを出力する。なお、入出力回路32に接続され
ているセンサ41〜46は、空燃比(A/F)センサ4
1、エンジンの回転数を検出する回転センサ42、エア
フローメータ43、水温センサ44、スロットルセンサ
45、スタータスイッチ46である。
In the microcomputer 31, the CPU 31a
According to the control program stored in the shROM (flash memory) 31c, the input / output circuit 32 and the microcomputer 31
It outputs a signal for controlling the injector 47 and the igniter 48 so that the engine operates optimally based on the sensor signal input via the I / O 31d in the inside. In addition, a self-diagnosis of an abnormality related to the engine emission is performed to diagnose an operation of the engine, an abnormality of the sensors 41 to 46, and the like. And outputs the data of the diagnosis result in response to the request. The sensors 41 to 46 connected to the input / output circuit 32 are air-fuel ratio (A / F) sensors 4.
1. A rotation sensor 42 for detecting the number of revolutions of the engine, an air flow meter 43, a water temperature sensor 44, a throttle sensor 45, and a starter switch 46.

【0027】また、マイコン31内のRAM31bは、
CPU31aでの演算処理に使うセンサデータ、演算に
て求まった制御データ、あるいは上記診断にて得た種々
の診断データ等を一時的に保持する。また、マイコン3
1にはEEPR0M35が外付けで接続されている。
The RAM 31b in the microcomputer 31 has
The CPU 31a temporarily stores sensor data used for calculation processing, control data obtained by calculation, or various diagnostic data obtained by the above diagnosis. In addition, microcomputer 3
1 is connected to an EEPR0M35 externally.

【0028】ここで、FlashROM31c及びEE
PROM35は共に、所定の書換電圧が供給された状態
で電気的に記憶内容の消去及び書き込みが可能な読み出
し専用の不揮発性メモリ(書換可能ROM)である。そ
して、EEPROM35はメモリセルの1単位でデータ
消去・書込ができるのに対して、FlashROM31
cはメモリセルのブロック単位でデータ消去・書込がで
きる構成である。
Here, the FlashROM 31c and the EE
Each of the PROMs 35 is a read-only nonvolatile memory (rewritable ROM) capable of electrically erasing and writing stored contents while a predetermined rewrite voltage is supplied. The EEPROM 35 is capable of erasing and writing data in units of memory cells.
c is a configuration in which data can be erased and written in units of memory cell blocks.

【0029】EEPROM35には、上述したRAM3
1bに一時的に保持されたデータの内、電源やバッテリ
が遮断された後も記憶させておきたいデータ(例えばフ
ィードバック補正係数やダイアグコードなど)が書き込
まれる。そして、FlashROM31cの一部にも、
同様のデータが書き込まれる。
The EEPROM 35 has the above-mentioned RAM 3
Data (for example, a feedback correction coefficient and a diagnostic code) that is to be stored even after the power supply or the battery is shut down among the data temporarily stored in 1b is written. And, in part of FlashROM31c,
Similar data is written.

【0030】ここで、FlashROM31c及びRA
M31bのメモリ領域の概念図である図6,7を参照し
てさらに説明を進める。FlashROM31cはメモ
リセルのブロック単位でブロック毎にデータ消去・書込
ができるようにされており、本実施例では、図6に示す
ように複数のブロックにて構成されている。ここでは6
つのブロックで構成されていると想定し、その内のブロ
ック1がFlash書込プログラム領域、ブロック2〜
5がエンジン制御プログラム領域、ブロック6がデータ
領域として設定されている。ブロック1に記憶されてい
るFlash書込プログラムは、ブロック6のデータ領
域にデータを書き込むためのプログラムであり、具体的
には、RAM31bへコピーされ、RAM31b上で動
作することとなる。
Here, the FlashROM 31c and the RA
Further description will be given with reference to FIGS. 6 and 7 which are conceptual diagrams of the memory area of M31b. The FlashROM 31c is configured to be able to erase and write data for each block in memory cell blocks. In the present embodiment, the FlashROM 31c includes a plurality of blocks as shown in FIG. Here 6
It is assumed that each block is composed of two blocks, and block 1 of the blocks is a flash write program area,
5 is set as an engine control program area, and block 6 is set as a data area. The Flash writing program stored in the block 1 is a program for writing data in the data area of the block 6, and is specifically copied to the RAM 31b and operates on the RAM 31b.

【0031】なお、このFlashROM31cは「動
作モード」と「書込モード」の2つのモードを取ること
ができ、「動作モード」においては、ブロック2〜5に
記憶されたエンジン制御プログラムを用いた制御が行わ
れる。この動作モードではデータ領域への書込はでき
ず、「書込モード」に切り替わった場合に限りデータ書
込が可能となる。この「動作モード」から「書込モー
ド」への切り替えは、マイコン31からのFlash書
込信号(図1参照)を書込モード端子に入れることによ
って行うことができる。
The FlashROM 31c can take two modes, an "operation mode" and a "write mode". In the "operation mode", control using the engine control program stored in the blocks 2 to 5 is performed. Is performed. In this operation mode, writing to the data area cannot be performed, and data can be written only when the mode is switched to the “writing mode”. Switching from the “operation mode” to the “write mode” can be performed by inputting a Flash write signal (see FIG. 1) from the microcomputer 31 to the write mode terminal.

【0032】このようなメモリ構成であるため、データ
書込を行う際、エンジン制御プログラムのデータを破壊
(消去)することなく、データ領域のみのデータを消去
したりデータを書き込んだりすることができる。一方、
RAM31bは、使用目的によってメモリ領域がブロッ
ク分けされており、本実施例では、図7に示すように複
数のブロックにて構成されている。ここでは6つのブロ
ックで構成されていると想定し、その内のブロック1が
FlashROM31cに書き込むためのデータ領域、
ブロック2がEEPROM35に書き込むためのデータ
領域、ブロック3,4が学習値の記憶領域、ブロック
5,6が入力データ、出力データ領域として設定されて
いる。
With such a memory configuration, when writing data, it is possible to erase or write data only in the data area without destroying (erasing) the data of the engine control program. . on the other hand,
The RAM area of the RAM 31b is divided into blocks according to the purpose of use, and in this embodiment, the RAM area is composed of a plurality of blocks as shown in FIG. Here, it is assumed that the data area is composed of six blocks, and block 1 of the data area is a data area for writing to the FlashROM 31c.
Block 2 is set as a data area for writing to the EEPROM 35, blocks 3 and 4 are set as storage areas for learning values, and blocks 5 and 6 are set as input data and output data areas.

【0033】この内、Flashデータ領域(ブロック
1)には、データ内容が頻繁には変化しないような例え
ばフライトレコーダデータ、車両固有の識別ID、ダイ
アグコード等が記憶される。また、EEPROMデータ
領域(ブロック2)には、データ内容が頻繁に変化する
ような例えばフィードバック補正係数やエンスト時の状
態記憶データなどが記憶される。一方、入出力データ領
域(ブロック5,6)には、イグニッションスイッチ4
がオフの状態において内容が破壊してもよいデータ(例
えばセンサ41〜46等の入力データや出力データ)を
記憶しておく領域として用いられたり、あるいは上述し
たFlashROM31c内の書込プログラム(図6参
照)をダウンロードするための領域として用いられる。
Of these, the Flash data area (block 1) stores, for example, flight recorder data, vehicle-specific identification IDs, diagnostic codes, etc., whose data contents do not change frequently. In the EEPROM data area (block 2), for example, a feedback correction coefficient or a state storage data at the time of engine stall that the data content changes frequently is stored. On the other hand, the ignition switch 4 is provided in the input / output data area (blocks 5 and 6).
Is used as an area for storing data (for example, input data and output data of the sensors 41 to 46 and the like) whose contents may be destroyed in a state where is turned off, or a writing program (FIG. 6) in the above-described FlashROM 31c. ) Is used as an area for downloading.

【0034】そして、マイコン31は、エンジン制御を
実行している際に取り込んだ各種データを一旦RAM3
1bに格納し、EEPROM35に対しては定期的にデ
ータを書き込み、FlashROM31cに対してはイ
グニッションスイッチ4がオフされた後、メインリレー
2を介して電源供給されている所定期間内にデータを書
き込む。
The microcomputer 31 temporarily stores the various data fetched during execution of the engine control in the RAM 3.
1b, and periodically writes data to the EEPROM 35. After the ignition switch 4 is turned off, the data is written to the flash ROM 31c within a predetermined period in which power is supplied via the main relay 2.

【0035】そこで次に、エンジンECU30のマイコ
ン31で実行される処理について、図2〜5のフローチ
ャートを用いて説明する。図2は、イグニッションスイ
ッチ4のオン直後に実行されるベースルーチンを表すフ
ローチャートであり、そのステップ(以下、単に「S」
と記す)10においては、メインリレー制御信号をON
とする。こうしておくことにより、イグニッションスイ
ッチ4がオフされた後もメインリレー2を介してマイコ
ン31へは電源が供給され続けることとなる。そして、
後述するFlashROM31cへのデータ書込が終了
した後で、メインリレー制御信号をOFFすれば、電源
供給を停止することができる。
Next, the processing executed by the microcomputer 31 of the engine ECU 30 will be described with reference to the flowcharts of FIGS. FIG. 2 is a flowchart showing a base routine executed immediately after the ignition switch 4 is turned on.
At 10, the main relay control signal is turned on.
And By doing so, the power is continuously supplied to the microcomputer 31 via the main relay 2 even after the ignition switch 4 is turned off. And
If the main relay control signal is turned off after the data writing to the FlashROM 31c described later is completed, the power supply can be stopped.

【0036】S10でメインリレーを制御信号をONし
た後は、S20においてEEPROM35内に書かれて
いるデータをRAM31bへコピーし、S30において
FlashROM31c内に書かれているデータをRA
M31bへコピーする。このような処理の後、S40へ
移行し、FlashROM31c内のブロック2〜5に
記憶されているエンジン制御プログラム(図6参照)を
実行して各種エンジン制御処理を行う。
After turning on the control signal for the main relay in S10, the data written in the EEPROM 35 is copied to the RAM 31b in S20, and the data written in the Flash ROM 31c is copied to the RAM 31 in S30.
Copy to M31b. After such processing, the flow shifts to S40, where the engine control program (see FIG. 6) stored in blocks 2 to 5 in the FlashROM 31c is executed to perform various engine control processing.

【0037】このS40におけるエンジン制御処理は、
入出力回路32からの各種センサ信号やスタータ信号と
EEPROM35内に格納されている制御データ(例え
ばフィードバック補正係数など)に基づき、エンジンに
対する最適な燃料噴射量や点火時期等を演算し、その演
算結果に応じて、インジェクタ47やイグナイタ48を
制御する信号を出力する、といった手順で実行される。
そして、このエンジン制御処理が繰り返し実行されるこ
とで、エンジンの運転が可能となる。
The engine control process in S40 is as follows.
Based on various sensor signals and starter signals from the input / output circuit 32 and control data (for example, a feedback correction coefficient) stored in the EEPROM 35, an optimum fuel injection amount, ignition timing, and the like for the engine are calculated. , A signal for controlling the injector 47 and the igniter 48 is output.
Then, the engine can be operated by repeatedly executing the engine control process.

【0038】また、図3は、定時間毎に実行される異常
検出に係る処理を表すフローチャートである。最初のス
テップS110では、スロットルセンサ45や水温セン
サ44(図1参照)などのセンサ値、あるいは学習値が
正常な範囲に入っているかどうかをチェックする。そし
て、そのチェック結果が異常であった場合には(S12
0:YES)、検出した異常対象を特定するコードをR
AM31bの対応する領域に記憶する(S130)。対
応する領域とは、図7を参照して説明したように、Fl
ashROM31cへ書き込むように設定されたデータ
についてはブロック1の領域、EEPROM35へ書き
込むように設定されたデータについてはブロック2のデ
ータ領域へそれぞれ記憶するということである。
FIG. 3 is a flowchart showing a process related to abnormality detection executed at regular intervals. In the first step S110, it is checked whether the sensor values of the throttle sensor 45 and the water temperature sensor 44 (see FIG. 1) or the learning values are within a normal range. If the check result is abnormal (S12
0: YES), the code identifying the detected abnormal target is R
The data is stored in the corresponding area of the AM 31b (S130). The corresponding area is, as described with reference to FIG.
That is, data set to be written to the flash ROM 31c is stored in the block 1 area, and data set to be written to the EEPROM 35 is stored in the block 2 data area.

【0039】なお、S110においては、例えばインジ
ェクタ47や図示しない触媒などの不良状態を判断する
ようにしてもよい。図4は、定時間毎に実行されるEE
PROM35へのデータ書込に係る処理を表すフローチ
ャートである。
In step S110, a defective state of the injector 47 or a catalyst (not shown) may be determined. FIG. 4 shows EE executed at regular time intervals.
4 is a flowchart illustrating a process related to writing data to a PROM 35.

【0040】最初のステップS210では、RAM31
b内のブロック2(図7参照)、すなわちEEPROM
35へ書き込むデータを記憶しておくためのデータ領域
に記憶されているデータ(EEPROM書込用データ)
を、実際にEEPROM35内に書き込まれているデー
タと比較する。そして、このRAM31b内のEEPR
OM書込用データが最新コードであるかどうか、すなわ
ちEEPROM書込用データとEEPROM35内のデ
ータが同じであるかどうかを判断する(S220)。
In the first step S210, the RAM 31
b in block b (see FIG. 7), ie, EEPROM
Data stored in a data area for storing data to be written to 35 (EEPROM write data)
Is compared with the data actually written in the EEPROM 35. Then, the EEPR in the RAM 31b
It is determined whether the OM writing data is the latest code, that is, whether the EEPROM writing data and the data in the EEPROM 35 are the same (S220).

【0041】最新コードでなければ(S220:N
O)、データ書込は行わないが、最新コードであれば
(S220:YES)、RAM31b内のEEPROM
書込用データをEEPROM35に書き込む(S23
0)。これによって、EEPROM35には、常に最新
コードが更新記憶されることとなる。
If it is not the latest code (S220: N
O), the data is not written, but if it is the latest code (S220: YES), the EEPROM in the RAM 31b
Write the write data to the EEPROM 35 (S23
0). Thus, the latest code is always updated and stored in the EEPROM 35.

【0042】図5は、FlashROM31cへのデー
タ書込に係る処理を表すフローチャートである。本処理
は、イグニッションスイッチ4がオフされた場合に実行
される。すなわち、上述した図2のS10にてメインリ
レー制御信号をONとしているため、イグニッションス
イッチ4がオフされた後もメインリレー2を介してマイ
コン31へは電源が供給され続け、それによって処理が
行われる。
FIG. 5 is a flowchart showing a process related to writing data to the FlashROM 31c. This processing is executed when the ignition switch 4 is turned off. That is, since the main relay control signal is turned on in S10 of FIG. 2 described above, the power is continuously supplied to the microcomputer 31 via the main relay 2 even after the ignition switch 4 is turned off, whereby the processing is performed. Will be

【0043】最初のステップS310では、EEPRO
M35へのデータ書込を行う。この処理は、実際には図
4にて説明した処理と同様であり、RAM31b内のE
EPROM書込用データを、EEPROM35内に書き
込まれているデータと比較し、最新コードであればその
EEPROM書込用データをEEPROM35内へ書き
込む。
In the first step S310, EEPRO
Write data to M35. This processing is actually the same as the processing described with reference to FIG.
The EPROM writing data is compared with the data written in the EEPROM 35, and if it is the latest code, the EEPROM writing data is written in the EEPROM 35.

【0044】続く、S320では、RAM31b内のブ
ロック1(図7参照)、すなわちFlashROM31
cへ書き込むデータを記憶しておくためのデータ領域に
記憶されているデータ(Flash書込用データ)を、
実際にFlashROM31c内に書き込まれているデ
ータと比較する。そして、このRAM31b内のFla
sh書込用データが最新コードであるかどうか、すなわ
ちFlash書込用データがFlashROM31c内
のデータが同じであるかどうかを判断する(S33
0)。
At S320, the block 1 (see FIG. 7) in the RAM 31b, ie, the FlashROM 31
The data (Flash write data) stored in the data area for storing the data to be written to c is
The data is compared with the data actually written in the FlashROM 31c. And the Fla in the RAM 31b
It is determined whether or not the sh write data is the latest code, that is, whether the flash write data is the same as the data in the Flash ROM 31c (S33).
0).

【0045】最新コードでなければ(S330:N
O)、データ書込は行わずにそのままS410へ移行す
るが、最新コードであれば(S330:YES)、S3
40へ移行して、FlashROM31c内のブロック
1(図6参照)に記憶されている書込プログラムを、R
AM31bの所定領域(図7に示すブロック5,6)へ
ダウンロードする。そして、S450では、プログラム
カウンタをRAM31b上の書込プログラムの先頭アド
レスに設定し、RAM31bで動作させる準備を行う。
したがって、続くS360〜S400はRAM31b上
で動作するFlash書込プログラムによって実行され
る処理となる。なお、本処理ルーチンの前提となるイグ
ニッションスイッチ4のオフによってエンジン制御プロ
グラムは停止するため、このような処理が可能となる。
If it is not the latest code (S330: N
O) If the code is the latest code (S330: YES), the process directly proceeds to S410 without writing data.
40, the write program stored in block 1 (see FIG. 6) in the FlashROM 31c is changed to R
It is downloaded to a predetermined area (blocks 5 and 6 shown in FIG. 7) of the AM 31b. Then, in S450, the program counter is set to the start address of the write program on the RAM 31b, and preparations are made to operate the RAM 31b.
Therefore, the following S360 to S400 are processes executed by the Flash writing program operating on the RAM 31b. Since the engine control program is stopped by turning off the ignition switch 4 which is a premise of this processing routine, such processing becomes possible.

【0046】Flash書込プログラムによって実行さ
れる処理の最初のステップS360では、Flashモ
ード切替ポートをONする。すなわち、Flash書込
信号(図1参照)を書込モード端子に入れることによっ
て「動作モード」から「書込モード」への切り替える。
In the first step S360 of the process executed by the flash writing program, the flash mode switching port is turned on. That is, switching from the “operation mode” to the “write mode” is performed by inputting the Flash write signal (see FIG. 1) to the write mode terminal.

【0047】そして、FlashROM31c内のブロ
ック6(図6参照)のデータ領域を消去(Erase)
した後(S370)、当該データ領域に、S330で最
新コードであると判断されたRAM31b内のFlas
h書込用データを書き込む(S380)。
Then, the data area of the block 6 (see FIG. 6) in the FlashROM 31c is erased (Erase).
After that (S370), the Flash area in the RAM 31b determined to be the latest code in S330 is stored in the data area.
h Write data is written (S380).

【0048】書込終了後に、その書き込んだデータの内
容とRAM31b内のFlash書込用データの内容を
ベリファイする(S390)。これは書込データの信頼
性を向上させるための処理であり、図5には詳しくは表
していないが、ベリファイの結果が一致しなければS3
80の処理を繰り返し、一致すればS400へ移行す
る。
After the writing is completed, the contents of the written data and the contents of the flash writing data in the RAM 31b are verified (S390). This is a process for improving the reliability of the write data. Although not shown in detail in FIG. 5, if the verification results do not match, S3
80 is repeated, and if they match, the process proceeds to S400.

【0049】S400では、Flashモード切替ポー
トをOFFすることによって「書込モード」から「動作
モード」へ戻す。このようなFlash書込プログラム
によって実行される処理(S360〜S400)が終了
した後、S410では、メインリレー制御信号をOFF
する。これによって、マイコン31への電源供給が停止
される。
In S400, the flash mode switching port is turned off to return from the "write mode" to the "operation mode". After the processing (S360 to S400) executed by such a Flash writing program ends, in S410, the main relay control signal is turned off.
I do. As a result, power supply to the microcomputer 31 is stopped.

【0050】なお、本実施例では、マイコン31(内の
特にCPU31a)及びメインリレー2が、供給状態制
御手段に相当しており、図5のフローチャート中のステ
ップで言えば、S310〜S400の処理が行われた後
に実行するS410の処理が、供給状態制御手段として
の処理に相当する。また、図5のS360〜S400の
処理が、データ書込手段としての処理に相当する。
In this embodiment, the microcomputer 31 (particularly, the CPU 31a) and the main relay 2 correspond to the supply state control means. In the steps of the flowchart of FIG. The processing of S410 executed after the processing is performed corresponds to the processing as the supply state control unit. Further, the processing of S360 to S400 in FIG. 5 corresponds to the processing as data writing means.

【0051】以上のような本実施例の自動車用電子制御
装置によれば、イグニッションスイッチ4を介して行わ
れるバッテリ3からマイコン31内のメイン電源回路3
3への電源供給がオフされても、メインリレー2を介し
てバッテリ3からマイコン31内のメイン電源回路33
へ電源供給がされる。そして、その電源供給がされてい
る所定期間中に、RAM31b内のEEPROM書込用
データをEEPROM35内へ書き込み(S310)、
同じくRAM31b内のFlash書込用データFla
shROM31cへ書き込む(S380)。
According to the electronic control unit for a vehicle of the present embodiment as described above, the main power supply circuit 3 in the microcomputer 31 is supplied from the battery 3 through the ignition switch 4.
Even if the power supply to the power supply 3 is turned off, the main power supply circuit 33 in the microcomputer 31
Is supplied with power. Then, during a predetermined period during which the power is supplied, the EEPROM write data in the RAM 31b is written into the EEPROM 35 (S310),
Flash writing data Fla in the RAM 31b
Writing to the shROM 31c (S380).

【0052】従来技術の課題として、FlashROM
31cに記憶された制御プログラムを用いてエンジン制
御などを実行している最中においては、FlashRO
M31cが「動作モード」となっているため、データ書
込ができないことが挙げられる。しかし、この実施形態
の場合には、FlashROM31cへのデータ書込は
IGオフ状態にて行っている。つまり、IGオフ状態に
おいてはFlashROM31c内のエンジン制御プロ
グラムを用いた制御は実行されないため、FlashR
OM31c自体を動作モードから書込モードへ切り替え
ることができる(S360)。そして、IGオフ状態で
もメインリレー2を介したルートでの電源供給が維持さ
れるため、Flash書込用データをFlashROM
31cへ書き込むことができる。
As a problem of the prior art, FlashROM
During execution of the engine control and the like using the control program stored in the FlashRO 31c, the FlashRO
Since M31c is in the “operation mode”, data writing cannot be performed. However, in the case of this embodiment, data writing to the FlashROM 31c is performed with the IG turned off. That is, in the IG off state, the control using the engine control program in the FlashROM 31c is not executed.
The OM 31c itself can be switched from the operation mode to the write mode (S360). Since the power supply via the route via the main relay 2 is maintained even in the IG off state, the flash write data is stored in the flash ROM.
31c.

【0053】このように、FlashROM31cへも
ダイアグコードなどのデータ書込ができるため、従来技
術における問題を解決することができる。つまり、ダイ
アグコードなどをEEPROM35に書き込むことを前
提とし、自動車の仕様増加により、記憶しておくべきダ
イアグコードの種類が増えデータ量が多くなってEEP
ROM35の記憶容量が不足する場合であっても、制御
プログラムを記憶しているFlashROM31cの空
き領域を使用することができる。したがって、例えば大
容量EEPROMに交換したり、EEPROMを追加し
なくてもよく、そのための交換・追加作業は不要とな
り、またコストアップも招来しない。
As described above, since data such as a diag code can be written in the FlashROM 31c, the problem in the prior art can be solved. In other words, on the premise that a diagnostic code or the like is written in the EEPROM 35, the number of types of diagnostic codes to be stored increases and the data amount increases due to an increase in the specification of the automobile, and the EEPROM becomes larger.
Even when the storage capacity of the ROM 35 is insufficient, the free area of the FlashROM 31c storing the control program can be used. Therefore, for example, it is not necessary to replace with a large-capacity EEPROM or to add an EEPROM, so that replacement / additional work is not required, and cost does not increase.

【0054】また、FlashROM31cへのデータ
書込はIGオフ後にしか実行されないが、この書き込ま
れるデータ自体は、エンジン制御の実行中においても、
RAM31bにおいて更新記憶されている(図3参
照)。したがって、更新された最新のデータを最終的に
FlashROM31cへ書き込むことができる。
Although data writing to the FlashROM 31c is performed only after the IG is turned off, the data to be written is not changed even during execution of engine control.
It is updated and stored in the RAM 31b (see FIG. 3). Therefore, the updated latest data can be finally written to the FlashROM 31c.

【0055】また、本実施形態においては、IGオフ状
態においても内容を維持する必要のあるデータの内、F
lashROM31cへは、データ内容が頻繁には変化
しないような例えばフライトレコーダデータ、車両固有
の識別ID、ダイアグコード等が書き込み、一方、EE
PROM38へは、データ内容が頻繁に変化するような
例えばフィードバック補正係数やエンスト時の状態記憶
データなどを書き込むようにした。これは、一般的に言
えば、データ書換の頻度が高い場合には、EEPROM
35の方がデータ書換回数においてFlashROM3
1cより適しているからである。
Further, in the present embodiment, of the data whose contents need to be maintained even when the IG is off, F
For example, flight recorder data, a vehicle-specific identification ID, a diagnostic code, etc., whose data contents do not change frequently, are written in the flash ROM 31c.
In the PROM 38, for example, a feedback correction coefficient or a state storage data at the time of engine stall that the data content changes frequently is written. Generally speaking, if the frequency of data rewriting is high, the EEPROM
35 is the FlashROM3 in the number of data rewrites.
This is because it is more suitable than 1c.

【0056】以上、本発明の一実施形態について説明し
たが、本発明は、上記実施形態に限定されるものではな
く、種々の形態を採り得ることは言うまでもない。 (1)上記実施形態においては、図5の処理が途中で中
断されることは特に想定せずに説明したが、例えばバッ
テリ3とメインリレー2との間などで断線などが生じる
と、マイコン31への電源供給が停止し、図4の処理が
最後まで実行されずに中断する可能性もある。その場合
の対処を簡単に説明しておく。
Although the embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and it goes without saying that various forms can be adopted. (1) In the above-described embodiment, the process of FIG. 5 is described without interruption in particular. However, for example, if a disconnection or the like occurs between the battery 3 and the main relay 2, the microcomputer 31 There is a possibility that the power supply to the power supply is stopped and the processing in FIG. The measures to be taken in this case will be briefly described.

【0057】この場合には、上記実施形態の図2及び図
5の代わりに、図8及び図9のフローチャートを実行す
る。図8及び図9共に、図2及び図5と同じ処理内容の
部分については同じステップ番号を付した。異なってい
る部分について説明する。図8に関しては、S10の後
に「終了IDがあるか否か」を判断するS15を追加
し、そのS15にて肯定判断であればS20へ移行する
が、否定判断の場合には、新しく追加したS17へ移行
することとした。また、S17の処理後はS40へ移行
することとした。
In this case, the flowcharts of FIGS. 8 and 9 are executed in place of FIGS. 2 and 5 of the above embodiment. 8 and 9, the same processing numbers as those in FIGS. 2 and 5 are denoted by the same step numbers. The different parts will be described. Referring to FIG. 8, after S10, S15 for determining whether or not there is an end ID is added. If the determination in S15 is affirmative, the process proceeds to S20. The process is shifted to S17. After the process in S17, the process shifts to S40.

【0058】一方、図9に関しては、S400の後に
「EEPROM35に終了IDを書き込む」処理である
S405を追加しただけである。なお、S330にて否
定判断であった場合には、図5の場合と同様(つまりS
405は経由せず)にS410へ移行する。
On the other hand, with respect to FIG. 9, only S405, which is a process of “writing an end ID to the EEPROM 35”, is added after S400. When a negative determination is made in S330, the same as in the case of FIG.
The process proceeds to S410 without passing through (405).

【0059】このように、図9のS400の後のS40
5においてEEPROM35に終了IDを書き込んでい
るため、終了IDが書き込まれた状態というのは、S3
10でのEEPROM35へのデータ書込及びS380
でのFlashROM31cへのデータ書込が共に終了
している状態である。一方、終了IDが書き込まれてい
ない状態というのは、S310でのEEPROM35へ
のデータ書込及びS380でのFlashROM31c
へのデータ書込の少なくともいずれか一方は終了してい
ない可能性がある。
As described above, S40 after S400 in FIG.
5, the end ID is written in the EEPROM 35. Therefore, the state in which the end ID is written corresponds to S3
Writing data to EEPROM 35 in step 10 and S380
In this state, data writing to the FlashROM 31c has been completed. On the other hand, the state in which the end ID is not written means that the data is written to the EEPROM 35 in S310 and the FlashROM 31c in S380.
There is a possibility that at least one of the data writing to has not been completed.

【0060】そこで、図8のベースルーチンにおいて
は、その終了IDがあるかどうかを判断し(S15)、
終了IDがあれば(S15:YES)、通常通り、その
EEPROM35及びFlashROM31c内のデー
タをRAM31bへコピーする(S20,S30)。し
かし、終了IDがなければ(S15:NO)、S17へ
移行して、RAM31b内のFlashROM31cに
書き込むためのデータ領域及びEEPROM35に書き
込むためのデータ領域(ブロック1及び2;図7参照)
には、初期値を設定する。
Therefore, in the base routine of FIG. 8, it is determined whether or not the end ID exists (S15).
If there is an end ID (S15: YES), the data in the EEPROM 35 and the FlashROM 31c is copied to the RAM 31b as usual (S20, S30). However, if there is no end ID (S15: NO), the process proceeds to S17, where a data area for writing to the FlashROM 31c in the RAM 31b and a data area for writing to the EEPROM 35 (blocks 1 and 2; see FIG. 7)
Is set to an initial value.

【0061】このようにすることで、実際には正常なデ
ータ書込がされていない場合のデータを使用してしまう
ことを防止できる。 (2)また、上記実施例においては、一般的な構成とし
て、マイコン31内にFlashROM31cを配備
し、EEPROM35をマイコン31に外付けした。し
かし、例えば図10(a)に示すように、マイコン外部
にFlashROMを出し、EEPROMは用いないよ
うにすることも考えられるし、図10(b)に示すよう
に、マイコン外部にFlashROM及びEEPROM
を共に配備することも可能である。
In this way, it is possible to prevent the use of data that is not actually written normally. (2) In the above embodiment, as a general configuration, the flash ROM 31c is provided in the microcomputer 31 and the EEPROM 35 is externally attached to the microcomputer 31. However, for example, as shown in FIG. 10A, a FlashROM may be provided outside the microcomputer and the EEPROM may not be used, or as shown in FIG. 10B, the FlashROM and the EEPROM may be provided outside the microcomputer.
Can also be deployed together.

【0062】(3)また更に、上記実施形態では、自動
車のエンジンを制御するエンジンECU30を一例とし
て取り上げたが、本発明は、例えばブレーキ、トランス
ミッション、サスペンション等の他の制御対象を制御す
る自動車用電子制御装置に対しても、全く同様に適用す
ることができる。
(3) Further, in the above embodiment, the engine ECU 30 for controlling the engine of the vehicle is taken as an example. However, the present invention is applied to a vehicle for controlling other controlled objects such as a brake, a transmission and a suspension. The same can be applied to the electronic control device in the same manner.

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

【図1】自動車用電子制御装置の一実施形態としてのエ
ンジンECUとメインリレー、及びその周辺機器の構成
を表すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an engine ECU, a main relay, and peripheral devices as an embodiment of an electronic control unit for a vehicle.

【図2】 イグニッションスイッチのオン直後に実行さ
れるベースルーチンを表すフローチャートである。
FIG. 2 is a flowchart illustrating a base routine executed immediately after an ignition switch is turned on.

【図3】定時間毎に実行される異常検出に係る処理を表
すフローチャートである。
FIG. 3 is a flowchart illustrating a process related to abnormality detection performed at regular intervals.

【図4】定時間毎に実行されるEEPROM35へのデ
ータ書込に係る処理を表すフローチャートである。
FIG. 4 is a flowchart illustrating a process related to writing data to an EEPROM 35, which is executed at regular intervals.

【図5】FlashROMへのデータ書込に係る処理を
表すフローチャートである。
FIG. 5 is a flowchart illustrating a process related to writing data to a FlashROM.

【図6】FlashROMのメモリ領域の概念図であ
る。
FIG. 6 is a conceptual diagram of a memory area of the FlashROM.

【図7】RAMのメモリ領域の概念図である。FIG. 7 is a conceptual diagram of a memory area of a RAM.

【図8】別実施形態の場合の、イグニッションスイッチ
のオン直後に実行されるベースルーチンを表すフローチ
ャートである。
FIG. 8 is a flowchart illustrating a base routine executed immediately after an ignition switch is turned on in another embodiment.

【図9】別実施形態の場合の、FlashROMへのデ
ータ書込に係る処理を表すフローチャートである。
FIG. 9 is a flowchart illustrating a process related to writing data to a FlashROM in another embodiment.

【図10】マイコンとFlashROMあるいはEEP
ROMとの関係における別実施形態を示す説明図であ
る。
FIG. 10 shows a microcomputer and FlashROM or EEP.
It is explanatory drawing which shows another embodiment in the relationship with ROM.

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

2…メインリレー 3…バッテリ 4…イグニッションスイッチ 5…通信ライン 30…エンジンECU 31…マイコン 31a…CPU 31b…RAM 31c…FlashROM 31d…I/O 32…入出力回路 33…メイン電源回
路 34…サブ電源回路 35…EEPROM 41…A/Fセンサ 42…回転センサ 43…エアフローメータ 44…水温センサ 45…スロットルセンサ 46…スタータスイ
ッチ 47…インジェクタ 48…イグナイタ 49…DIAGテスタ
DESCRIPTION OF SYMBOLS 2 ... Main relay 3 ... Battery 4 ... Ignition switch 5 ... Communication line 30 ... Engine ECU 31 ... Microcomputer 31a ... CPU 31b ... RAM 31c ... FlashROM 31d ... I / O 32 ... Input / output circuit 33 ... Main power supply circuit 34 ... Sub power supply Circuit 35 EEPROM 41 A / F sensor 42 Rotation sensor 43 Air flow meter 44 Water temperature sensor 45 Throttle sensor 46 Starter switch 47 Injector 48 Igniter 49 DIAG tester

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 3G084 CA07 DA13 DA26 EB02 EB06 FA35 5B018 GA04 HA23 HA31 HA35 MA23 NA01 PA03 QA05 RA11  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 3G084 CA07 DA13 DA26 EB02 EB06 FA35 5B018 GA04 HA23 HA31 HA35 MA23 NA01 PA03 QA05 RA11

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】記憶内容をメモリセルのブロック単位で電
気的に書き換え可能な読み出し専用の不揮発性メモリを
備え、前記不揮発性メモリに記憶された制御プログラム
に従って自動車に搭載された所定の制御対象を制御する
よう構成されていると共に、 前記制御プログラムに従った制御の実行に必要な電源が
電源供給装置から供給される状態と供給されない状態と
を切り替えるためのスイッチを備え、当該スイッチによ
り前記電源供給装置から供給された電源によって前記制
御プログラムに従った制御を実行するよう構成された自
動車用電子制御装置において、 前記スイッチにより前記通常動作に必要な電源が供給さ
れない状態へ切り替わった場合であっても、その切り替
わり時点から所定期間は当該自動車用電子制御装置の通
常動作に必要な電源が前記電源供給装置から供給されて
いる状態を継続し、その後、通常動作に必要な電源が供
給されない状態に切替設定する供給状態制御手段と、 前記スイッチにより前記通常動作に必要な電源が供給さ
れている期間中に得られ、当該スイッチにより前記通常
動作に必要な電源が供給されない状態においても内容を
維持する必要のあるデータを、前記供給状態制御手段に
よって電源供給が維持されている前記所定期間中に、前
記不揮発性メモリの前記制御プログラムが記憶されてい
ない所定のブロックに書き込むデータ書込手段と、 を備えていることを特徴とする自動車用電子制御装置。
1. A control system according to claim 1, further comprising: a read-only non-volatile memory capable of electrically rewriting the storage content in units of memory cells in blocks, wherein a predetermined control target mounted on the vehicle is controlled according to a control program stored in said non-volatile memory. And a switch for switching between a state in which power required for executing control according to the control program is supplied from a power supply device and a state in which power is not supplied, and the power supply by the switch. An electronic control unit for a vehicle configured to execute control according to the control program by a power supply supplied from a device, even when the power supply required for the normal operation is not supplied by the switch. For a predetermined period from the time of the switching, it is necessary for normal operation of the electronic control unit for the vehicle. Supply state control means for continuing the state in which power is supplied from the power supply device, and then switching to a state in which power required for normal operation is not supplied, and the power required for the normal operation by the switch. The data obtained during the power supply period, the data whose contents need to be maintained even when the power required for the normal operation is not supplied by the switch, the power supply is maintained by the supply state control means. An electronic control unit for a vehicle, comprising: data writing means for writing data in a predetermined block of the nonvolatile memory where the control program is not stored during a predetermined period.
【請求項2】請求項1に記載の自動車用電子制御装置に
おいて、 前記内容を維持する必要のあるデータは、前記スイッチ
により前記通常動作に必要な電源が供給されている期間
中はRAMにおいて更新記憶されていること、 を特徴とする自動車用電子制御装置。
2. The electronic control unit for a vehicle according to claim 1, wherein the data whose contents need to be maintained are updated in a RAM during a period in which power necessary for the normal operation is supplied by said switch. An electronic control unit for a vehicle, which is stored.
【請求項3】請求項1又は2に記載の自動車用電子制御
装置において、 前記RAMは、前記電源供給装置により常時電源供給さ
れるスタンバイRAMであること、 を特徴とする自動車用電子制御装置。
3. The electronic control unit for a vehicle according to claim 1, wherein the RAM is a standby RAM that is constantly supplied with power by the power supply unit.
【請求項4】請求項1〜3のいずれかに記載の自動車用
電子制御装置において、前記不揮発性メモリには自メモ
リへの書込プログラムが記憶されていると共に、当該書
込プログラムの動作用として、前記不揮発性メモリとは
別のプログラム動作用メモリを備えており、 前記データ書込手段は、前記スイッチにより前記通常動
作に必要な電源が供給されない状態においても内容を維
持する必要のあるデータを前記不揮発性メモリに書き込
む際、前記不揮発性メモリから前記プログラム動作用メ
モリへ移されて動作する前記書込プログラムに従って、
前記データ書込を実行すること、 を特徴とする自動車用電子制御装置。
4. The electronic control unit for a vehicle according to claim 1, wherein the nonvolatile memory stores a program for writing to the own memory, and a program for operating the program. A memory for program operation different from the non-volatile memory, wherein the data writing means is a memory which needs to maintain data even when power required for the normal operation is not supplied by the switch. When writing to the non-volatile memory, according to the write program that is moved from the non-volatile memory to the program operation memory and operates,
Executing the data writing, an electronic control unit for a vehicle.
【請求項5】請求項1〜4のいずれかに記載の自動車用
電子制御装置において、 前記不揮発性メモリは、ブロック単位で書換可能なフラ
ッシュメモリであること、 を特徴とする自動車用電子制御装置。
5. The electronic control unit for a vehicle according to claim 1, wherein said nonvolatile memory is a flash memory rewritable in block units. .
【請求項6】請求項5に記載の自動車用電子制御装置に
おいて、 前記データ書込手段は、書き込むべきデータ内容を、前
記不揮発性メモリとしてのフラッシュメモリ内に記憶さ
れている対応データ内容と比較し、異なっている場合に
限り、データ更新を行うこと、 を特徴とする自動車用電子制御装置。
6. The electronic control unit for a vehicle according to claim 5, wherein said data writing means compares data contents to be written with corresponding data contents stored in a flash memory as said nonvolatile memory. An electronic control unit for a vehicle, wherein data is updated only when the data is different.
【請求項7】請求項5又は6に記載の自動車用電子制御
装置において、 前記制御プログラムの記憶された不揮発性メモリである
フラッシュメモリとは別に、前記スイッチにより前記通
常動作に必要な電源が供給されない状態においても内容
を維持する必要のあるデータを記憶しておくための不揮
発性メモリとしてのEEPROMを備えており、 前記データ書込手段は、前記内容を維持する必要のある
データを書き込む際、そのデータ種別に応じ、前記フラ
ッシュメモリ及びEEPROMに分散させて書き込むと
共に、前記EEPROMに対しては、前記スイッチによ
り前記通常動作に必要な電源が供給されている期間中に
おいてもデータを書き込むこと、 を特徴とする自動車用電子制御装置。
7. The electronic control unit for a vehicle according to claim 5, wherein a power required for the normal operation is supplied by the switch separately from a flash memory which is a nonvolatile memory storing the control program. An EEPROM as a non-volatile memory for storing data whose contents need to be maintained even in a state where the data need not be maintained. According to the data type, the data is written in the flash memory and the EEPROM in a distributed manner, and the data is written to the EEPROM even during a period in which the power required for the normal operation is supplied by the switch. Characteristic electronic control unit for automobiles.
【請求項8】請求項7に記載の自動車用電子制御装置に
おいて、 前記データ書込手段は、 前記内容を維持する必要のあるデータであって頻繁にデ
ータ内容が変化する可能性が低いものは、前記フラッシ
ュメモリに書き込み、頻繁にデータ内容が変化する可能
性が高いものは前記EEPROMに書き込むこと、 を特徴とする自動車用電子制御装置。
8. The electronic control unit for a vehicle according to claim 7, wherein said data writing means is a data whose contents need to be maintained and whose data is less likely to change frequently. An electronic control unit for a vehicle, wherein the data is written to the flash memory, and the data whose data content is likely to change frequently is written to the EEPROM.
【請求項9】請求項5〜8のいずれかに記載の自動車用
電子制御装置において、 前記フラッシュメモリは、CPUを中心として構成され
るマイクロコンピュータ内に配備されていること、 を特徴とする自動車用電子制御装置。
9. The vehicle electronic control device according to claim 5, wherein said flash memory is provided in a microcomputer having a CPU as a center. For electronic control device.
JP11059083A 1999-03-05 1999-03-05 Electronic controller for automobile Pending JP2000257502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11059083A JP2000257502A (en) 1999-03-05 1999-03-05 Electronic controller for automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11059083A JP2000257502A (en) 1999-03-05 1999-03-05 Electronic controller for automobile

Publications (1)

Publication Number Publication Date
JP2000257502A true JP2000257502A (en) 2000-09-19

Family

ID=13103110

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11059083A Pending JP2000257502A (en) 1999-03-05 1999-03-05 Electronic controller for automobile

Country Status (1)

Country Link
JP (1) JP2000257502A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915192B2 (en) 2003-01-17 2005-07-05 Mitsubishi Denki Kabushiki Kaisha Vehicular electronic control apparatus
JP2006232223A (en) * 2005-02-28 2006-09-07 Fujitsu Ten Ltd Vehicular electronic control device
JP2013065261A (en) * 2011-09-20 2013-04-11 Denso Corp Memory management device
CN107422658A (en) * 2011-09-21 2017-12-01 日立汽车系统株式会社 Programing change acquisition methods
CN110329077A (en) * 2019-08-14 2019-10-15 北京极智嘉科技有限公司 Robot and applied to the battery runs down control method in robot

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58208994A (en) * 1982-05-28 1983-12-05 Toshiba Corp Nonvolatile semiconductor storage device
JPH06272611A (en) * 1993-03-22 1994-09-27 Hitachi Ltd Engine control device
JPH09330104A (en) * 1996-06-10 1997-12-22 Unisia Jecs Corp Electronic control system for automobile
JPH1134766A (en) * 1997-07-18 1999-02-09 Toyota Motor Corp Abnormality processing method for vehicle controlling computer
JPH1145105A (en) * 1997-07-25 1999-02-16 Fanuc Ltd Backup system for data for cnc device
JPH1153262A (en) * 1997-08-08 1999-02-26 Nissan Motor Co Ltd Memory rewriting device for vehicle control

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58208994A (en) * 1982-05-28 1983-12-05 Toshiba Corp Nonvolatile semiconductor storage device
JPH06272611A (en) * 1993-03-22 1994-09-27 Hitachi Ltd Engine control device
JPH09330104A (en) * 1996-06-10 1997-12-22 Unisia Jecs Corp Electronic control system for automobile
JPH1134766A (en) * 1997-07-18 1999-02-09 Toyota Motor Corp Abnormality processing method for vehicle controlling computer
JPH1145105A (en) * 1997-07-25 1999-02-16 Fanuc Ltd Backup system for data for cnc device
JPH1153262A (en) * 1997-08-08 1999-02-26 Nissan Motor Co Ltd Memory rewriting device for vehicle control

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915192B2 (en) 2003-01-17 2005-07-05 Mitsubishi Denki Kabushiki Kaisha Vehicular electronic control apparatus
CN1300735C (en) * 2003-01-17 2007-02-14 三菱电机株式会社 Vehicle electronic control device
DE10341786B4 (en) 2003-01-17 2017-03-30 Mitsubishi Denki K.K. Electronic vehicle control device
JP2006232223A (en) * 2005-02-28 2006-09-07 Fujitsu Ten Ltd Vehicular electronic control device
JP4707411B2 (en) * 2005-02-28 2011-06-22 富士通テン株式会社 Electronic control device for vehicle
JP2013065261A (en) * 2011-09-20 2013-04-11 Denso Corp Memory management device
CN107422658A (en) * 2011-09-21 2017-12-01 日立汽车系统株式会社 Programing change acquisition methods
CN107422658B (en) * 2011-09-21 2020-03-10 日立汽车系统株式会社 Program change acquisition method
US10606229B2 (en) 2011-09-21 2020-03-31 Hitachi Automotive Systems, Ltd. Electronic control unit for vehicle and method of executing program
US11556104B2 (en) 2011-09-21 2023-01-17 Hitachi Astemo, Ltd. Electronic control unit for vehicle and method of executing program
CN110329077A (en) * 2019-08-14 2019-10-15 北京极智嘉科技有限公司 Robot and applied to the battery runs down control method in robot
CN110329077B (en) * 2019-08-14 2021-10-19 北京极智嘉科技股份有限公司 Robot and battery power-off control method applied to robot

Similar Documents

Publication Publication Date Title
US4402057A (en) Method of and apparatus for ensuring correct operation of a microcomputer in the event of power outage
JP3491419B2 (en) Electronic control unit
JP5176728B2 (en) Electronic control device for vehicle
JP4506868B2 (en) Electronic control unit
JP4345708B2 (en) Electronic control device for vehicle
US8095263B2 (en) Electronic control unit and vehicle control system
JP3969278B2 (en) Electronic control unit
JP4552982B2 (en) Electronic control unit
JP2000020407A (en) Electronic control unit
US6182004B1 (en) Apparatus and method for controlling electric power supply in nonvolatile memory rewriting operation
JP4001088B2 (en) Electronic control unit
JP2000257502A (en) Electronic controller for automobile
JP4600510B2 (en) Control device and program
JP2002041367A (en) Vehicle controller
JP2007062632A (en) Electronic control unit and storing method of data for abnormality generated time storage
JP2005338955A (en) Electronic control device
JPH11141391A (en) Controller for automobile
JP2009026183A (en) Electronic control apparatus for automobile
JP2004151944A (en) Method for writing data in non-volatile storage device, its program and device, and onboard electronic controller
JP2003104138A (en) System for monitoring vehicle control device for rewriting of data
JPH05289949A (en) Vehicle control device
JPH0793006A (en) Electronic control unit for vehicle
JPH09171459A (en) Electronic control equipment
JP2000192844A (en) Engine control device
JPH08153397A (en) Eeprom data rewrite controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050517

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070731

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070928

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071218