JP3211708B2 - Vehicle control device - Google Patents

Vehicle control device

Info

Publication number
JP3211708B2
JP3211708B2 JP06337297A JP6337297A JP3211708B2 JP 3211708 B2 JP3211708 B2 JP 3211708B2 JP 06337297 A JP06337297 A JP 06337297A JP 6337297 A JP6337297 A JP 6337297A JP 3211708 B2 JP3211708 B2 JP 3211708B2
Authority
JP
Japan
Prior art keywords
vehicle
value
control device
learning value
learning
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.)
Expired - Lifetime
Application number
JP06337297A
Other languages
Japanese (ja)
Other versions
JPH10252546A (en
Inventor
孝一 大原
和彦 中井
克己 鷹羽
浩和 小黒
優子 山本
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 JP06337297A priority Critical patent/JP3211708B2/en
Priority to US09/020,421 priority patent/US6243630B1/en
Publication of JPH10252546A publication Critical patent/JPH10252546A/en
Application granted granted Critical
Publication of JP3211708B2 publication Critical patent/JP3211708B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、車両を制御する車
両制御装置に関し、特に、学習制御によって算出した学
習値をEEPROM等、電気的にデータの書き換えが可
能な不揮発性ROMに保存するようにした車両制御装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vehicle control device for controlling a vehicle, and more particularly, to a method for storing a learning value calculated by learning control in an electrically rewritable nonvolatile ROM such as an EEPROM. Vehicle control device.

【0002】[0002]

【従来の技術】従来より、車両のエンジンや自動変速機
(オートマチックトランスミッション)を制御する車両
制御装置においては、制御対象の経時変化や個体差など
の影響をなくすために、過去の制御結果を評価して制御
パラメータや制御論理を修正する、いわゆる学習制御が
広く採用されている。そして、学習制御によって算出し
た制御パラメータなどの学習値を、いわゆるスタンバイ
RAM(バッテリ電圧により電源が常時供給されるRA
Mであり、バックアップRAMともいう)に記憶するよ
うにしていた。
2. Description of the Related Art Conventionally, in a vehicle control device for controlling an engine or an automatic transmission (automatic transmission) of a vehicle, a past control result is evaluated in order to eliminate the influence of the control object with time and individual differences. So-called learning control, in which control parameters and control logic are corrected, is widely adopted. A learning value such as a control parameter calculated by the learning control is stored in a so-called standby RAM (RA which is always supplied with power by a battery voltage).
M, also referred to as a backup RAM).

【0003】ところが、学習値をスタンバイRAMに記
憶させておくようにしただけでは、車両からバッテリが
外され、或いは、外れた場合に、それまでに算出した学
習値を失ってしまう。そこで、近年では、EEPROM
といった電気的にデータの書き換えが可能な不揮発性R
OMに学習値を書き込んでおき、バッテリ外れが発生し
たと判断した場合には、その不揮発性ROMから通常の
RAMへ学習値を転送して、過去に算出した学習値を継
続して使用できるようにしている。
However, if the learning value is simply stored in the standby RAM, the battery is removed from the vehicle or, if the battery is removed, the learned value calculated so far is lost. Therefore, in recent years, EEPROM
Non-volatile R that can electrically rewrite data
The learning value is written in the OM, and when it is determined that the battery is disconnected, the learning value is transferred from the non-volatile ROM to the normal RAM so that the learning value calculated in the past can be continuously used. I have to.

【0004】[0004]

【発明が解決しようとする課題】ここで、データの書き
換えが可能なEEPROM等の不揮発性ROMに学習値
を更新して書き込む頻度を多くすれば、バッテリ外れが
生じた際に、できるだけ近い時期の学習値を制御に用い
ることができるのであるが、現状において、この種の不
揮発性ROMには、半導体メーカー側で書込保証回数が
設定されており、その書込保証回数を越えてデータの書
き込みを行った場合には、データが確実に書き込まれる
保証がないため、学習値を頻繁に更新して書き込むこと
はできないという問題がある。
Here, if the frequency of updating and writing the learning value to a non-volatile ROM such as an EEPROM in which data can be rewritten is increased, when the battery is disconnected, it is possible to perform the operation as soon as possible. The learning value can be used for control. However, at present, in this type of non-volatile ROM, the number of guaranteed write operations is set by the semiconductor manufacturer, and data is written beyond the guaranteed number of write operations. Is performed, there is no guarantee that the data is written reliably, so that there is a problem that the learning value cannot be frequently updated and written.

【0005】尚、例えば特開平5−79379号公報に
は、EEPROMへ一定時間毎に最新の学習値を書き込
むようにすることが開示されているが、自動車の使用期
間(最大15年〜20年)を考慮すると、書込保証回数
を越えてしまう可能性が非常に高い。しかも、この種の
車両制御装置は、一般的に車両のイグニッションスイッ
チの投入時に動作電源が供給されるが、イグニッション
スイッチが投入されて当該装置が動作している間に、車
両が常に運転されているとは限らず、この結果、真に有
用ではない学習値をEEPROMに更新して書き込む可
能性があり、EEPROMへのデータの書き込み回数を
必要以上に増加させてしまうこことなる。
[0005] For example, Japanese Patent Laid-Open No. Hei 5-79379 discloses that the latest learning value is written into the EEPROM at regular intervals, but the period of use of the vehicle (maximum 15 to 20 years) ), The possibility of exceeding the guaranteed number of times of writing is very high. Moreover, this type of vehicle control device is generally supplied with operating power when the ignition switch of the vehicle is turned on, but the vehicle is always driven while the ignition switch is turned on and the device is operating. As a result, there is a possibility that a learning value that is not really useful may be updated and written to the EEPROM, and the number of times of writing data to the EEPROM is unnecessarily increased.

【0006】本発明は、こうした問題に鑑みなされたも
のであり、電気的にデータの書き換えが可能な不揮発性
ROMへの学習値の書き込み回数を、学習制御の制御性
を損ねることなく所定の書込保証回数以内に抑えること
ができる車両制御装置を提供することを目的としてい
る。
SUMMARY OF THE INVENTION The present invention has been made in view of such a problem, and it is possible to reduce the number of times a learning value is written to an electrically rewritable nonvolatile ROM by a predetermined value without impairing the controllability of learning control. It is an object of the present invention to provide a vehicle control device capable of keeping the number of times within the guaranteed number of times.

【0007】[0007]

【課題を解決するための手段、及び発明の効果】本発明
の車両制御装置は、電気的にデータの書き換えが可能な
不揮発性ROMを備えており、車両を制御する際の学習
制御によって算出した学習値を、所定条件の成立時に前
記不揮発性ROMへ書き込んでおくことにより、学習値
を保存するのであるが、特に、運転検出手段が、車両の
イグニッションスイッチが投入された後に車両が実際に
運転されたか否かを検出し、計数手段が、運転検出手段
により車両が実際に運転されたと検出された回数を計数
し、更に、運転回数判定手段が、計数手段の計数値が所
定値以上になったか否かを判定する。
The vehicle control device according to the present invention includes a nonvolatile ROM in which data can be electrically rewritten, and is calculated by learning control when controlling the vehicle. The learning value is stored in the non-volatile ROM by writing the learning value when the predetermined condition is satisfied. In particular, the driving detection means determines that the vehicle actually operates after the ignition switch of the vehicle is turned on. The counting means counts the number of times that the vehicle has been actually driven by the driving detection means, and the driving number determination means determines that the count value of the counting means has exceeded a predetermined value. Is determined.

【0008】そして、当該車両制御装置は、運転回数判
定手段により計数手段の計数値が所定値以上になったと
判定された場合に、不揮発性ROMへの学習値の書き込
みを実行すると共に、計数手段の計数値を初期化する。
このような本発明の車両制御装置においては、イグニッ
ションスイッチがオフ状態からオン状態となって車両が
実際に運転されると、計数手段の計数値が1つ更新され
る。そして、その計数値が所定値以上になると、不揮発
性ROMへの学習値の書き込みが実行されると共に、計
数手段の計数値が初期化される。このため、車両が所定
回数だけ運転される毎に、前記不揮発性ROMへ最新の
学習値が書き込まれることとなる。
The vehicle control device executes the writing of the learning value to the non-volatile ROM when the driving number determination means determines that the count value of the counting means has exceeded a predetermined value. Is initialized.
In such a vehicle control device of the present invention, when the ignition switch is turned on from the off state and the vehicle is actually driven, the count value of the counting means is updated by one. When the count value becomes equal to or more than the predetermined value, the learning value is written into the nonvolatile ROM, and the count value of the counting means is initialized. Therefore, every time the vehicle is driven a predetermined number of times, the latest learning value is written to the nonvolatile ROM.

【0009】よって、本発明の車両制御装置によれば、
イグニッションスイッチを投入したけれど車両は運転し
ない、といった場合には不揮発性ROMへの学習値の書
き込みは行われず、実際に車両が運転された場合の真に
有用な学習値を、不揮発性ROMに書き込んで保存する
ことができる。そして、車両が所定回数だけ運転される
毎に、不揮発性ROMへ学習値を書き込むこととなるた
め、不揮発性ROMへのデータ書き込み回数を大幅に低
減することができる。
Therefore, according to the vehicle control device of the present invention,
When the ignition switch is turned on but the vehicle does not drive, the learning value is not written to the nonvolatile ROM, and the truly useful learning value when the vehicle is actually driven is written to the nonvolatile ROM. Can be saved. Then, each time the vehicle is driven a predetermined number of times, the learning value is written to the nonvolatile ROM, so that the number of times of writing data to the nonvolatile ROM can be significantly reduced.

【0010】従って、不揮発性ROMへの学習値の書き
込み回数を、学習制御の制御性を損ねることなく所定の
書込保証回数以内に抑えることができるようになる。と
ころで、運転検出手段は、車両が実際に運転されたこと
を、車両のエンジン回転数が所定回転数以上になったこ
とで判断するように構成することができる。そして、こ
のように構成すれば、車両が運転されたことを簡単且つ
確実に検出することができる。尚、上記所定回転数は、
エンジンのアイドル回転数付近に設定することが望まし
い。
Therefore, the number of times of writing the learning value to the nonvolatile ROM can be suppressed to within a predetermined number of times of guaranteed writing without impairing the controllability of the learning control. By the way, the driving detecting means can be configured to determine that the vehicle has actually been driven, when the engine speed of the vehicle has become equal to or higher than a predetermined speed. With this configuration, it is possible to easily and reliably detect that the vehicle has been driven . Note that the predetermined rotation speed is
It is desirable to set it near the idle speed of the engine.
No.

【0011】一方、前述したように、この種の車両制御
装置は、一般的に車両のイグニッションスイッチが投入
されている時に動作電源が供給されるように構成される
が、この場合、不揮発性ROMへ学習値を書き込む処理
を行っている最中に車両運転者がイグニッションスイッ
チをオフしてしまうと、書き込み処理が中断されて、保
存すべき学習値が破壊されてしまう可能性がある。
On the other hand, as described above, this type of vehicle control device is generally configured so that operating power is supplied when an ignition switch of the vehicle is turned on. In this case, a nonvolatile ROM is used. If the vehicle driver turns off the ignition switch while performing the process of writing the learning value to the storage device, the writing process may be interrupted and the learning value to be stored may be destroyed.

【0012】そこで、この問題を解決するためには、車
両が所定の速度以上で走行しているか否かを検出する走
行状態検出手段を追加して設け、運転回数判定手段によ
り計数手段の計数値が所定値以上になったと判定され、
且つ、前記走行状態検出手段により車両が所定の速度以
上で走行していると検出された場合に、不揮発性ROM
への学習値の書き込みを実行すると共に、計数手段の計
数値を初期化するように構成すればよい。
Therefore, in order to solve this problem, a running state detecting means for detecting whether the vehicle is running at a predetermined speed or more is additionally provided, and the count value of the counting means is determined by the driving frequency determining means. Is determined to be equal to or greater than a predetermined value,
When the traveling state detecting means detects that the vehicle is traveling at a predetermined speed or higher, the nonvolatile ROM
It is sufficient to write the learning value into the memory and initialize the count value of the counting means.

【0013】つまり、運転回数判定手段により計数手段
の計数値が所定値以上になったと判定されても、車両が
所定の速度以上で走行していなければ、不揮発性ROM
への学習値の書き込みは行わず、車両が所定速度以上で
走行している場合に学習値の書き込みを行うのである。
That is, even if the count value of the counting means is determined to be equal to or greater than the predetermined value by the driving frequency determination means, the nonvolatile ROM is provided if the vehicle is not running at a predetermined speed or more.
The learning value is not written into the learning value, but the learning value is written when the vehicle is running at a predetermined speed or higher.

【0014】このように構成すれば、車両運転者により
イグニッションスイッチがオフされる可能性のない状況
下で、不揮発性ROMへの学習値の書き込みを行うこと
ができ、保存すべき学習値が破壊されてしまうことを確
実に回避できる。
With this configuration, the learning value can be written to the non-volatile ROM in a situation where there is no possibility that the ignition switch is turned off by the vehicle driver, and the learning value to be stored is destroyed. This can be reliably avoided.

【0015】[0015]

【発明の実施の形態】以下、本発明の実施形態について
図面を用いて説明する。尚、本発明の実施形態は、下記
のものに何ら限定されることなく、本発明の技術的範囲
に属する限り、種々の形態を採り得ることは言うまでも
ない。
Embodiments of the present invention will be described below with reference to the drawings. It is needless to say that the embodiments of the present invention are not limited to the following, and can take various forms as long as they belong to the technical scope of the present invention.

【0016】まず、図1は、実施形態の車両用エンジン
制御装置(以下、ECUという)1の構成を表わすブロ
ック図である。図1に示すように、本実施形態のECU
1は、車両に搭載されたエンジンを制御するための様々
な処理を実行するCPU3と、CPU3により実行され
るプログラムを格納するROM5と、CPU3による制
御演算結果などを一時記憶する演算作業用の通常RAM
(即ち、バッテリ電圧による電源バックアップが施され
ていないRAMであり、以下、N・RAMという)7
と、バッテリ電圧による電源バックアップが施されたス
タンバイRAM(以下、S・RAMという)9と、電気
的にデータの書き換えが可能な不揮発性ROMとしての
EEPROM11とを備えている。
FIG. 1 is a block diagram showing the configuration of a vehicle engine control device (hereinafter, referred to as an ECU) 1 according to an embodiment. As shown in FIG. 1, the ECU of the present embodiment
Reference numeral 1 denotes a CPU 3 for executing various processes for controlling an engine mounted on a vehicle, a ROM 5 for storing a program executed by the CPU 3, and a normal operation for temporarily storing control operation results and the like by the CPU 3. RAM
(That is, a RAM that is not backed up by a power supply using a battery voltage, and is hereinafter referred to as an N-RAM).
A standby RAM (hereinafter referred to as S-RAM) 9 which is backed up by a power supply using a battery voltage; and an EEPROM 11 as a nonvolatile ROM in which data can be electrically rewritten.

【0017】そして、CPU3とROM5,N・RAM
7,及びS・RAM9は、互いにバス13で接続されて
おり、CPU3とEEPROM11は、シリアルデータ
ライン15で接続されている。また更に、ECU1は、
エンジンの回転数NEを検出する回転数センサ17や車
両の走行速度(車速)vを検出する車速センサ19など
の各種センサからの信号を、CPU3へ入力するための
入力回路21と、CPU3から出力される駆動信号に応
じて、インジェクタやイグナイタなどのアクチュエータ
23を作動させる出力回路25と、車両のバッテリ27
からイグニッションスイッチ29を介して供給されるイ
グニッション電圧VIGを受けて、CPU3,ROM5,
N・RAM7,S・RAM9,及びEEPROM11へ
動作電圧VD を出力する共に、バッテリ27からイグニ
ッションスイッチ29を介さずに直接供給されるバッテ
リ電圧VBBを受けて、S・RAM9へデータ保持用のバ
ックアップ電圧VS を出力する電源回路31とを備えて
いる。
The CPU 3, the ROM 5, and the N.RAM
7, and the SRAM 9 are connected to each other by a bus 13, and the CPU 3 and the EEPROM 11 are connected by a serial data line 15. Still further, the ECU 1
An input circuit 21 for inputting signals from various sensors such as a speed sensor 17 for detecting the engine speed NE of the engine and a vehicle speed sensor 19 for detecting the traveling speed (vehicle speed) v of the vehicle to the CPU 3, and an output from the CPU 3 An output circuit 25 for operating an actuator 23 such as an injector or an igniter in accordance with the drive signal to be supplied;
From the CPU 3, the ROM 5, the ignition voltage VIG supplied from the
The operating voltage VD is output to the N-RAM 7, the S-RAM 9, and the EEPROM 11, and the battery voltage V BB directly supplied from the battery 27 without passing through the ignition switch 29 is received. And a power supply circuit 31 for outputting VS.

【0018】このようなECU1においては、イグニッ
ションスイッチ29がオン(投入)されると、電源回路
31からCPU3,ROM5,及びN・RAM7などに
動作電圧VD が供給される。そして、CPU3が、RO
M5に格納されたプログラムに従いエンジン制御処理を
実行して、各種センサからのセンサ信号に基づきアクチ
ュエータ23を作動させることにより、エンジンの制御
を行う。
In such an ECU 1, when the ignition switch 29 is turned on (turned on), the operating voltage VD is supplied from the power supply circuit 31 to the CPU 3, the ROM 5, the N.RAM 7, and the like. Then, the CPU 3 sets the RO
The engine is controlled by executing an engine control process according to a program stored in M5 and operating the actuator 23 based on sensor signals from various sensors.

【0019】ここで、CPU3が実行するエンジン制御
処理は学習制御によるものである。そして、CPU3
は、学習制御によってN・RAM7上で算出した制御パ
ラメータなどの学習値と、後述するようにN・RAM7
上でカウントアップされるカウンタCの値とをS・RA
M9へ定期的にコピーして、イグニッションスイッチ2
9のオフ中にも学習値とカウンタCの値を失わないよう
にしている。また、CPU3は、後述する条件が成立し
たときに、N・RAM7上の学習値をEEPROM11
へ書き込むようにしており、これにより、バッテリ27
が外れてS・RAM9の記憶データが消失しても、学習
値を失わないようにしている。
The engine control process executed by the CPU 3 is based on learning control. And CPU3
Is a learning value such as a control parameter calculated on the N-RAM 7 by the learning control, and a N-RAM 7
The value of the counter C counted up above is
Copy it to M9 regularly and use ignition switch 2
The learning value and the value of the counter C are not lost even during the turning off of the switch 9. When a condition described later is satisfied, the CPU 3 stores the learning value in the N-RAM 7 in the EEPROM 11.
To the battery 27.
Even if the stored data in the S-RAM 9 is lost due to the error.

【0020】そこで次に、このようなECU1でCPU
3により実行される処理について、図2のフローチャー
トに沿って説明する。尚、図2に示す処理において、カ
ウンタCや後述するフラグFの操作及び判定はN・RA
M7上で行われる。図2に示すように、CPU3は、イ
グニッションスイッチ29のオンに伴い動作を開始する
と、最初に、ステップ(以下、Sと記す)100〜S1
30の初期化処理を行う。
Then, the CPU 1 is executed by the ECU 1 as described above.
3 will be described with reference to the flowchart of FIG. In the process shown in FIG. 2, the operation and determination of the counter C and a flag F described later are determined by N · RA
It is performed on M7. As shown in FIG. 2, when the CPU 3 starts operating in response to the turning on of the ignition switch 29, first, steps (hereinafter, referred to as S) 100 to S 1 are performed.
The initialization processing of 30 is performed.

【0021】即ち、まずS100にて、バッテリ外れの
履歴(つまり、バッテリ27が外れた痕跡)があるか否
かを判定する。尚、この判定は、例えばS・RAM9の
記憶データをチェックすることにより行われ、記憶デー
タが正常であればバッテリ外れの履歴が無いと判断さ
れ、逆に異常であればバッテリ外れの履歴があると判断
される。
That is, first, in S100, it is determined whether or not there is a history of battery disconnection (that is, a trace of the battery 27 being disconnected). This determination is made, for example, by checking the stored data in the S-RAM 9. If the stored data is normal, it is determined that there is no history of battery disconnection. Conversely, if the stored data is abnormal, there is a history of battery disconnection. Is determined.

【0022】ここで、バッテリ外れの履歴が無かった場
合には、S110に進んで、S・RAM9の記憶データ
(つまり、イグニッションスイッチ29のオフ中にS・
RAM9にバックアップ保存されていた学習値及びカウ
ンタCの値)をN・RAM7に書き込む。また、バッテ
リ外れの履歴があった場合には、S・RAM9の記憶デ
ータは不定であることから、S120に移行して、その
時点でEEPROM11に書き込まれている学習値を、
N・RAM7に書き込む。
If there is no history of battery disconnection, the process proceeds to S110, where the data stored in the S.RAM 9 (that is, the S.R.
The learning value and the value of the counter C which have been backed up in the RAM 9 are written in the N-RAM 7. If there is a history of battery loss, the data stored in the S-RAM 9 is indefinite, so the process proceeds to S120 and the learning value written in the EEPROM 11 at that time is
Write to N · RAM7.

【0023】そして、S110及びS120のうちの何
れかの処理を行った後、S130に進んで、イグニッシ
ョンスイッチ29が投入された後に車両が実際に運転さ
れたか否かを示すフラグFへ、車両が未だ運転されてい
ないことを示す「0」をセットする。
After performing one of the processes in S110 and S120, the process proceeds to S130, in which a flag F indicating whether the vehicle is actually driven after the ignition switch 29 is turned on is set to a flag F. Set to "0" indicating that it has not been operated yet.

【0024】このようなS100〜S130の初期化処
理を終えると、CPU3は、学習制御によるエンジン制
御処理の実行を開始すると共に、そのエンジン制御処理
と並行して、S140〜S230の処理を定期的に繰り
返し実行する。即ち、まずS140にて、N・RAM7
に現在格納されている学習値とカウンタCの値とを、S
・RAM9に書き込む(コピーする)。
After completing the initialization processing of S100 to S130, the CPU 3 starts the execution of the engine control processing by the learning control and periodically executes the processing of S140 to S230 in parallel with the engine control processing. Execute repeatedly. That is, first in S140, the N.RAM7
The learning value and the value of the counter C currently stored in
Write (copy) to the RAM 9

【0025】そして、続くS150にて、フラグFが
「0」であるか否かを判定し、「0」であれば、S16
0に進んで、回転数センサ17からの信号に基づき検出
されるエンジン回転数NEが、予め設定された所定回転
数(本実施形態では、アイドル回転数付近の値である5
00rpm )以上であるか否かを判定する。
Then, in subsequent S150, it is determined whether or not the flag F is "0".
The engine speed NE detected on the basis of the signal from the speed sensor 17 is changed to a predetermined speed (in the present embodiment, a value near the idle speed 5 in the present embodiment).
00 rpm) is determined.

【0026】ここで、エンジン回転数が500rpm 以上
であれば、イグニッションスイッチ29が投入された後
に車両が実際に運転されたと判断して、S170に進
み、このS170にて、カウンタCの値をN・RAM7
上で1インクリメントし、更に続くS180にて、フラ
グFへ、車両が運転されたことを示す「1」をセットす
る。
If the engine speed is 500 rpm or more, it is determined that the vehicle has actually been operated after the ignition switch 29 is turned on, and the program proceeds to S170, where the value of the counter C is set to N.・ RAM7
The above is incremented by one, and then at S180, "1" indicating that the vehicle has been driven is set to the flag F.

【0027】そして、このようにS180でフラグFに
「1」をセットするか、或いは、S150にてフラグF
が「0」ではないと判定するか、或いは、S160にて
エンジン回転数NEが500rpm 以上ではないと判定し
た場合には、S190に移行して、カウンタCの値が予
め設定された所定値(本実施形態では10)以上である
か否かを判定する。そして、カウンタCの値が10以上
であれば、S200に進んで、車速センサ19からの信
号に基づき検出される車速vが予め設定された所定速度
(本実施形態では、40km/h)以上であるか否かを判定
する。
Then, the flag F is set to "1" in S180, or the flag F is set in S150.
Is not "0", or when it is determined in S160 that the engine speed NE is not more than 500 rpm, the process proceeds to S190, and the value of the counter C is set to a predetermined value ( In the present embodiment, it is determined whether or not 10) or more. If the value of the counter C is 10 or more, the process proceeds to S200, and the vehicle speed v detected based on the signal from the vehicle speed sensor 19 is equal to or higher than a predetermined speed (40 km / h in the present embodiment). It is determined whether or not there is.

【0028】ここで、車速vが40km/h以上であれば、
S210に進んで、N・RAM7に現在格納されている
学習値をEEPROM11に更新して書き込み、更に続
くS220にて、カウンタCの値を「0」に初期化す
る。そして、このようにS220でカウンタCを初期化
するか、或いは、S190にてカウンタCの値が10以
上ではないと判定するか、或いは、S200にて車速v
が40km/h以上ではないと判定した場合には、後続する
他の処理を実行し、その間に、S230に示す如く、N
・RAM7上の学習値が学習制御により更新される。そ
して、その後S140に戻って、N・RAM7に現在格
納されている最新の学習値とカウンタCの値とを、S・
RAM9に書き込み、前述したS150以降の処理を繰
り返す。
Here, if the vehicle speed v is 40 km / h or more,
In S210, the learning value currently stored in the N-RAM 7 is updated and written in the EEPROM 11, and in S220, the value of the counter C is initialized to "0". Then, the counter C is initialized in S220, or the value of the counter C is determined not to be 10 or more in S190, or the vehicle speed v is determined in S200.
Is not equal to or higher than 40 km / h, another subsequent process is executed, and during that time, as shown in S230, N
The learning value on the RAM 7 is updated by learning control. Then, the process returns to S140, and the latest learning value currently stored in the N-RAM 7 and the value of the counter C are replaced by S ·
The data is written into the RAM 9, and the above-described processing from S150 is repeated.

【0029】このような本実施形態のECU1では、イ
グニッションスイッチ29が投入されて動作を開始した
後、エンジン回転数NEが500rpm 以上になるまで
は、S160で否定判定され続け、エンジン回転数NE
が500rpm 以上になると、車両が実際に運転されたと
判断されて、S170の処理によりカウンタCの値が1
インクリメントされる。
In the ECU 1 of this embodiment, after the ignition switch 29 is turned on and the operation is started, a negative determination is made in S160 until the engine speed NE becomes 500 rpm or more, and the engine speed NE is maintained.
Is 500 rpm or more, it is determined that the vehicle has actually been driven, and the value of the counter C is set to 1 by the processing of S170.
Incremented.

【0030】そして、カウンタCの値が1インクリメン
トされると、S180の処理によりフラグFに「1」が
セットされるため、その後、イグニッションスイッチ2
9がオン状態である間は、S150で否定判定されて、
もはやカウンタCの値はインクリメントされなくなる。
また、カウンタCの値は、S140の処理によりS・R
AM9に保存されて、次にイグニッションスイッチ29
が投入された場合に、S110の処理によりN・RAM
7へ書き込まれる。
When the value of the counter C is incremented by one, the flag F is set to "1" by the processing of S180.
While No. 9 is in the ON state, a negative determination is made in S150,
The value of the counter C is no longer incremented.
Further, the value of the counter C is determined by S · R
Stored in the AM 9 and then the ignition switch 29
Is inserted, N · RAM
7 is written.

【0031】このため、カウンタCの値は、イグニッシ
ョンスイッチ29が投入された後にエンジン回転数NE
が500rpm 以上になる、という状態が起こる毎に、1
ずつカウントアップされることとなる。そして、カウン
タCの値が10以上になり、且つ、車速vが40km/h以
上となれば、S190とS200の両方で肯定判定され
て、S210の処理により、N・RAM7内の学習値が
EEPROM11に更新して書き込まれ、更にS220
の処理にてカウンタCの値が「0」に初期化される。
For this reason, the value of the counter C is determined by the engine speed NE after the ignition switch 29 is turned on.
Every time a condition occurs where
It will be counted up by one. If the value of the counter C becomes 10 or more and the vehicle speed v becomes 40 km / h or more, the affirmative determination is made in both S190 and S200, and the learning value in the N-RAM 7 is stored in the EEPROM 11 by the processing in S210. Is updated and written in
, The value of the counter C is initialized to "0".

【0032】よって、本実施形態のECU1では、イグ
ニッションスイッチ29が投入された後にエンジン回転
数NEが500rpm 以上になる、という状態が10回起
こる毎に、即ち、車両が実際に10回運転される毎に、
EEPROM11への学習値の書き込みが実行されるこ
ととなる。
Therefore, in the ECU 1 of the present embodiment, every time the state where the engine speed NE becomes 500 rpm or more after the ignition switch 29 is turned on occurs 10 times, that is, the vehicle is actually operated 10 times. Every,
The writing of the learning value to the EEPROM 11 is executed.

【0033】よって、本実施形態のECU1によれば、
イグニッションスイッチ29を投入したけれど車両は運
転しない、といった場合にはEEPROM11への学習
値の書き込みは行われず、実際に車両が運転された場合
の真に有用な学習値を、EEPROM11に書き込んで
保存することができる。そして、車両が10回運転され
る毎に、EEPROM11へ学習値を書き込むこととな
るため、EEPROM11へのデータ書き込み回数を大
幅に低減することができる。
Therefore, according to the ECU 1 of the present embodiment,
When the ignition switch 29 is turned on but the vehicle is not driven, the learning value is not written in the EEPROM 11, and a truly useful learning value when the vehicle is actually driven is written and stored in the EEPROM 11. be able to. Then, the learning value is written to the EEPROM 11 every time the vehicle is driven ten times, so that the number of times of writing data to the EEPROM 11 can be greatly reduced.

【0034】従って、このECU1によれば、車両の使
用期間におけるEEPROM11への学習値の書き込み
回数を、学習制御の制御性を損ねることなく所定の書込
保証回数以内に抑えることができるようになる。また、
車両が実際に運転されたことを、エンジン回転数NEが
所定回転数以上になったことで判断するようにしている
ため、車両が運転されたことを簡単且つ確実に検出する
ことができる。
Therefore, according to the ECU 1, the number of times of writing the learning value to the EEPROM 11 during the use period of the vehicle can be suppressed to within the predetermined number of times of guaranteed writing without impairing the controllability of the learning control. . Also,
Since the fact that the vehicle has actually been driven is determined based on the fact that the engine speed NE has become equal to or higher than the predetermined speed, it is possible to easily and reliably detect that the vehicle has been driven.

【0035】尚、バッテリ外れのタイミングによって
は、EEPROM11に最悪9サイクル前の学習値しか
保存されておらず、最新の学習値を制御に反映させるこ
とができない場合も生じるが、例えば新車直後にバッテ
リ27を外すことは通常有り得ず、しかも、数回の学習
制御が実行されていれば数サイクル前の学習値であって
も学習制御の性格から極端に最適値からずれたものでは
ないため、制御性には殆ど影響しない。
Depending on the timing at which the battery is disconnected, only the learning value of the worst nine cycles before may be stored in the EEPROM 11 and the latest learning value may not be reflected in the control. It is usually impossible to remove 27, and if learning control is performed several times, the learning value even a few cycles ago does not extremely deviate from the optimal value due to the nature of the learning control. Has little effect on gender.

【0036】一方更に、本実施形態のECU1では、カ
ウンタCの値が10以上になっても、車速vが40km/h
以上でなければ、EEPROM11への学習値の書き込
みは行わず、車速vが40km/h以上の場合にEEPRO
M11へ学習値を書き込むようにしている。このため、
EEPROM11へ学習値を確実に書き込むことができ
る。
On the other hand, in the ECU 1 of this embodiment, even if the value of the counter C becomes 10 or more, the vehicle speed v becomes 40 km / h.
Otherwise, the learning value is not written to the EEPROM 11, and if the vehicle speed v is 40 km / h or more, the EEPROM
The learning value is written to M11. For this reason,
The learning value can be reliably written to the EEPROM 11.

【0037】つまり、EEPROM11へ学習値を書き
込む処理を行っている最中に車両運転者がイグニッショ
ンスイッチ29をオフしてしまうと、書き込み処理が中
断されて、EEPROM11内の学習値が破壊されてし
まう。よって、その直後にバッテリ外れが起こった場合
には、過去の学習値を使用することができなくなってし
まうのであるが、車速vが40km/h以上であれば、イグ
ニッションスイッチ29がオフされる可能性は無く、E
EPROM11へ学習値を確実に書き込むことができる
ようになり、学習値が破壊されてしまうといった問題が
生じないのである。
That is, if the vehicle driver turns off the ignition switch 29 during the process of writing the learning value to the EEPROM 11, the writing process is interrupted and the learning value in the EEPROM 11 is destroyed. . Therefore, if the battery is disconnected immediately after that, the past learning value cannot be used, but if the vehicle speed v is 40 km / h or more, the ignition switch 29 may be turned off. No sex, E
This makes it possible to reliably write the learning value to the EPROM 11, and the problem that the learning value is destroyed does not occur.

【0038】尚、本実施形態では、S130,S15
0,S160,及びS180の処理が運転検出手段に相
当し、S170の処理が計数手段に相当し、S190の
処理が運転回数判定手段に相当し、S200の処理が走
行状態検出手段に相当している。
In this embodiment, S130, S15
The processing of 0, S160, and S180 corresponds to driving detection means, the processing of S170 corresponds to counting means, the processing of S190 corresponds to driving number determination means, and the processing of S200 corresponds to running state detection means. I have.

【0039】ところで、図2のS160で判定する回転
数は、「500rpm 」に限るものではなく適宜設定する
ことができるが、本実施形態のようにエンジンのアイド
ル回転数付近に設定することが望ましい。また、図2の
S190で判定する回数についても、「10回」に限る
ものではなく、車両の使用期間において予想される総運
転回数と、EEPROM11の書込保証回数とに基づ
き、適宜設定することができる。つまり、車両の使用期
間においてEEPROM11への学習値の書き込み回数
が上記書込保証回数を越えないように設定すれば良い。
The rotation speed determined in S160 in FIG. 2 is not limited to "500 rpm", but can be set as appropriate. However, it is desirable to set the rotation speed near the idle speed of the engine as in this embodiment. . Also, the number of times determined in S190 of FIG. 2 is not limited to “10 times”, and may be appropriately set based on the total number of times of operation expected during the use period of the vehicle and the guaranteed number of times of writing in the EEPROM 11. Can be. That is, the number of times of writing the learning value to the EEPROM 11 during the use period of the vehicle may be set so as not to exceed the above-mentioned guaranteed number of times of writing.

【0040】また同様に、図2のS200で判定する車
速(40km/h)についても、適宜設定することができ
る。一方、上記実施形態では、データの書き換えが可能
な不揮発性ROMとして、EEPROMを用いたが、フ
ラッシュROMを用いることもできる。
Similarly, the vehicle speed (40 km / h) determined in S200 of FIG. 2 can be appropriately set. On the other hand, in the above embodiment, the EEPROM is used as the data rewritable nonvolatile ROM, but a flash ROM may be used.

【0041】また、図2のS210にて、カウンタCの
値を学習値と共にEEPROM11へ書き込むようにし
ても良い。このようにすれば、バッテリ外れの履歴があ
った場合に、図2のS120でEEPROM11内のカ
ウンタCの値がN・RAM7に転送されるため、バッテ
リ外れが起こった時点までにカウントしていたカウンタ
Cの値を継続して用いることができるようになる。
In step S210 in FIG. 2, the value of the counter C may be written into the EEPROM 11 together with the learned value. In this way, if there is a history of battery loss, the value of the counter C in the EEPROM 11 is transferred to the N-RAM 7 in S120 of FIG. The value of the counter C can be used continuously.

【0042】また更に、上記実施形態のECU1は、車
両のエンジンを制御するものであったが、例えば自動変
速機を制御する電子制御装置など、他の車両制御装置に
ついても全く同様に構成することができる。
Further, the ECU 1 of the above embodiment controls the engine of the vehicle, but other vehicle control devices such as an electronic control device for controlling an automatic transmission may be configured in exactly the same manner. Can be.

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

【図1】 実施形態の車両用エンジン制御装置(EC
U)の構成を表すブロック図である。
FIG. 1 is a vehicle engine control device (EC) according to an embodiment;
It is a block diagram showing the structure of U).

【図2】 図1のECUで実行される処理を表すフロー
チャートである。
FIG. 2 is a flowchart illustrating a process executed by an ECU of FIG. 1;

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

1…ECU(車両用エンジン制御装置) 3…CPU
5…ROM 7…N・RAM(演算作業用の通常RAM) 9…S・RAM(スタンバイRAM) 11…EEP
ROM 17…回転数センサ 19…車速センサ 21…入
力回路 23…アクチュエータ 25…出力回路 27…バ
ッテリ 29…イグニッションスイッチ 31…電源回路
1. ECU (vehicle engine control device) 3. CPU
5 ROM 7 N RAM (normal RAM for calculation work) 9 S RAM (standby RAM) 11 EEP
ROM 17 ... Rotation speed sensor 19 ... Vehicle speed sensor 21 ... Input circuit 23 ... Actuator 25 ... Output circuit 27 ... Battery 29 ... Ignition switch 31 ... Power supply circuit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 小黒 浩和 愛知県刈谷市昭和町1丁目1番地 株式 会社デンソー内 (72)発明者 山本 優子 愛知県刈谷市昭和町1丁目1番地 株式 会社デンソー内 (56)参考文献 特開 平5−79379(JP,A) 特開 平8−153397(JP,A) 実開 昭62−132256(JP,U) (58)調査した分野(Int.Cl.7,DB名) F02D 45/00 340 F02D 45/00 376 ──────────────────────────────────────────────────の Continuing on the front page (72) Inventor Hirokazu Oguro 1-1-1, Showa-cho, Kariya-shi, Aichi Pref. 56) References JP-A-5-79379 (JP, A) JP-A-8-15397 (JP, A) JP-A-62-132256 (JP, U) (58) Fields investigated (Int. Cl. 7 , (DB name) F02D 45/00 340 F02D 45/00 376

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 電気的にデータの書き換えが可能な不揮
発性ROMを備えると共に、車両を制御する際の学習制
御によって算出した学習値を、所定条件の成立時に前記
不揮発性ROMへ書き込んでおくことにより、前記学習
値を保存するように構成された車両制御装置において、 前記車両のイグニッションスイッチが投入された後に前
記車両が実際に運転されたか否かを検出する運転検出手
段と、 該運転検出手段により前記車両が実際に運転されたと検
出された回数を計数する計数手段と、 該計数手段の計数値が所定値以上になったか否かを判定
する運転回数判定手段とを備え、 前記運転回数判定手段により前記計数手段の計数値が所
定値以上になったと判定された場合に、前記不揮発性R
OMへの学習値の書き込みを実行すると共に、前記計数
手段の計数値を初期化するように構成されたこと、 を特徴とする車両制御装置。
1. A nonvolatile ROM having electrically rewritable data, and a learning value calculated by learning control when controlling a vehicle is written in the nonvolatile ROM when a predetermined condition is satisfied. In the vehicle control device configured to store the learning value, a driving detection unit that detects whether the vehicle is actually driven after an ignition switch of the vehicle is turned on, and the driving detection unit Counting means for counting the number of times that the vehicle has been actually driven, and driving number judgment means for judging whether or not the count value of the counting means has exceeded a predetermined value. Means determines that the count value of the counting means is equal to or greater than a predetermined value.
A vehicle control device configured to execute writing of a learning value to the OM and to initialize a count value of the counting means.
【請求項2】 請求項1に記載の車両制御装置におい
て、 前記運転検出手段は、前記車両が実際に運転されたこと
を、前記車両のエンジン回転数が所定回転数以上になっ
たことで判断すること、 を特徴とする車両制御装置。
2. The vehicle control device according to claim 1, wherein the driving detection unit determines that the vehicle is actually driven by determining that the engine speed of the vehicle is equal to or higher than a predetermined speed. A vehicle control device.
【請求項3】 請求項2に記載の車両制御装置におい
て、前記所定回転数は、エンジンのアイドル回転数付近に設
定されていること、 を特徴とする車両制御装置。
3. The vehicle control device according to claim 2 , wherein the predetermined speed is set near an idle speed of the engine.
That it is constant, the vehicle control equipment according to claim.
【請求項4】 請求項1ないし請求項3の何れかに記載4. The method according to claim 1, wherein
の車両制御装置において、In the vehicle control device of 更に、前記車両が所定の速度以上で走行しているか否かFurther, whether or not the vehicle is traveling at or above a predetermined speed
を検出する走行状態検出手段を備え、Driving state detecting means for detecting 前記運転回数判定手段により前記計数手段の計数値が所The count value of the counting means is determined by the
定値以上になったと判定され、且つ、前記走行状態検出It is determined that it has exceeded the predetermined value, and the traveling state has been detected.
手段により前記車両が所定の速度以上で走行しているとMeans that the vehicle is traveling at or above a predetermined speed
検出された場合に、前記不揮発性ROMへの学習値の書If detected, write the learning value to the non-volatile ROM.
き込みを実行すExecute the writing ると共に、前記計数手段の計数値を初期And the count value of the counting means is initialized.
化するように構成されたこと、Has been configured to を特徴とする車両制御装置。A vehicle control device characterized by the above-mentioned.
JP06337297A 1997-03-17 1997-03-17 Vehicle control device Expired - Lifetime JP3211708B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP06337297A JP3211708B2 (en) 1997-03-17 1997-03-17 Vehicle control device
US09/020,421 US6243630B1 (en) 1997-03-17 1998-02-09 Vehicle control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06337297A JP3211708B2 (en) 1997-03-17 1997-03-17 Vehicle control device

Publications (2)

Publication Number Publication Date
JPH10252546A JPH10252546A (en) 1998-09-22
JP3211708B2 true JP3211708B2 (en) 2001-09-25

Family

ID=13227403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06337297A Expired - Lifetime JP3211708B2 (en) 1997-03-17 1997-03-17 Vehicle control device

Country Status (1)

Country Link
JP (1) JP3211708B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4767278B2 (en) * 2008-04-15 2011-09-07 三菱電機株式会社 In-vehicle electronic control unit
JP4636118B2 (en) 2008-05-12 2011-02-23 株式会社デンソー Electronic device and program
JP5630643B2 (en) * 2010-09-29 2014-11-26 株式会社アドヴィックス Electronic control unit
CN113269998A (en) * 2021-05-19 2021-08-17 广州小鹏汽车科技有限公司 Learning method and device based on parking function in automatic driving

Also Published As

Publication number Publication date
JPH10252546A (en) 1998-09-22

Similar Documents

Publication Publication Date Title
JP4345708B2 (en) Electronic control device for vehicle
US5095438A (en) Engine controller with low voltage reset
JP3969278B2 (en) Electronic control unit
JPH11107846A (en) Vehicular controller
JP4042466B2 (en) Memory diagnostic device and control device
US6243630B1 (en) Vehicle control system
JP4001088B2 (en) Electronic control unit
JP3817855B2 (en) Electronic control device
JP3211708B2 (en) Vehicle control device
JP2002041367A (en) Vehicle controller
JP2006328965A (en) Vehicle control method and electronic control device,
JP3097580B2 (en) Electronic control unit
JPH1139231A (en) Electronic controller for vehicle
JP3491358B2 (en) Power cut-off detection device
JP4760103B2 (en) Vehicle information backup device
JPH10252547A (en) Vehicle control device
JP2008196441A (en) Control device for vehicle
JP4412222B2 (en) VEHICLE CONTROL METHOD AND ELECTRONIC CONTROL DEVICE
JP3960212B2 (en) Electronic control unit
JP6376006B2 (en) Electronic control unit
JP3551855B2 (en) Vehicle control device
JP2002054495A (en) Electronic control device
JP3846398B2 (en) Vehicle control device
JP2000192844A (en) Engine control device
JPH05289949A (en) Vehicle control device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110719

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120719

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120719

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130719

Year of fee payment: 12

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term