JP3644058B2 - Electronic control device for vehicle engine and data rewrite control device for EEPROM - Google Patents
Electronic control device for vehicle engine and data rewrite control device for EEPROM Download PDFInfo
- Publication number
- JP3644058B2 JP3644058B2 JP29529894A JP29529894A JP3644058B2 JP 3644058 B2 JP3644058 B2 JP 3644058B2 JP 29529894 A JP29529894 A JP 29529894A JP 29529894 A JP29529894 A JP 29529894A JP 3644058 B2 JP3644058 B2 JP 3644058B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- battery
- eeprom
- control device
- power
- 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 - Fee Related
Links
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F02—COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
- F02B—INTERNAL-COMBUSTION PISTON ENGINES; COMBUSTION ENGINES IN GENERAL
- F02B3/00—Engines characterised by air compression and subsequent fuel addition
- F02B3/06—Engines characterised by air compression and subsequent fuel addition with compression ignition
Description
【0001】
【産業上の利用分野】
この発明は、車載エンジンの電子制御装置及びEEPROMのデータ再書込制御装置に関するものである。
【0002】
【従来の技術】
従来、EEPROMを備えたシステム、例えば、不揮発性メモリとしてEEPROMを備えた車載エンジンの電子制御装置(エンジン制御用ECU;Electronic Control Unit )において、EEPROMのデータを正確に保持するための技術としてデータの再書き込みがある。つまり、EEPROMには車両番号データや仕向地データ等が記憶されるが、このEEPROMのデータは書き換え回数に制限があり、かつ、データ保障が10年程度であるので、データを正確に保持するためにデータの再書き込みが必要となる。そこで、ECUの構成機器であるCPUはEEPROMのデータの再書き込み処理を行っている。その具体例としては、データのチェックのために本来一つでよい車両番号データをEEPROMに複数用意し(奇数個用意し)、イグニッションスイッチのオン毎に複数の車両番号データのうち同じデータ(正しいデータ)が過半数以上あるか否か判定し(多数決をとり)、車両番号データのうち同じデータ(正しいデータ)が過半数未満であると、エラーが発生したとしてデータの再書き込みを行う。
【0003】
【発明が解決しようとする課題】
ところが、このようにすると、本来一つでよい車両番号データをEEPROMに複数用意する必要があり、EEPROMのデータ記憶領域を多く使用してしまう。又、多数決をとるという複雑な処理をイグニッションスイッチのオン毎に行うため、ソフト上の負荷がかかることになる。さらに、複数のデータが全て消える場合もあり、この場合、多数決をとっても復帰できないという問題がある。
【0004】
この発明は上記問題点を解消するためになされたものであって、その目的はデータの再書き込みのためのEEPROMのデータ記憶領域を不要できるとともに、再書き込みのための複雑な処理を行うことなく、かつ、高い信頼性を確保できる車載エンジンの電子制御装置及びEEPROMのデータ再書込制御装置を提供することにある。
【0005】
【課題を解決するための手段】
請求項1に記載の発明は、イグニッションスイッチがオンされてバッテリからの電源供給が実施されることで作動する車載エンジンの電子制御装置であって、データの書き込み及び消去が可能なEEPROMと、前記バッテリの交換を検出するバッテリ交換検出手段と、前記イグニッションスイッチがオンされた場合であって前記バッテリ交換検出手段によってバッテリの交換がされたことを検出したときに、前記EEPROMに書き込まれているデータを読み出すデータ読出手段と、前記データ読出手段によりデータが読み出された場合に再度、EEPROMに前記データを書き込むデータ書込手段とを備えた車載エンジンの電子制御装置をその要旨とする。
【0006】
請求項2に記載の発明は、請求項1に記載の発明における前記バッテリ交換検出手段は、バックアップRAMの動作状態を表すためのステータスビットを利用してバッテリの交換を検出するものとした車載エンジンの電子制御装置をその要旨とする。
【0007】
請求項3に記載の発明は、バッテリからの電源供給にて作動するEEPROMのデータ再書込制御装置であって、前記バッテリの交換を検出するバッテリ交換検出手段と、前記バッテリ交換検出手段によるバッテリの交換に基づいてEEPROMに書き込まれているデータを読み出すデータ読出手段と、前記データ読出手段により読み出されたデータを再度前記EEPROMに書き込むデータ書込手段と、バッテリからの電源の遮断の可能性を検知する電源遮断可能性検知手段とを備え、前記電源遮断可能性検知手段によりバッテリ交換後においてバッテリからの電源の遮断の可能性が無い時に、前記データ読出手段とデータ書込手段とがデータの再書き込みを行うEEPROMのデータ再書込制御装置をその要旨とする。
【0008】
請求項4に記載の発明は、請求項3に記載の発明における前記電源遮断可能性検知手段はバッテリからの電源供給にて駆動されるエンジンの状態から電源の遮断の可能性を検知するものとしたEEPROMのデータ再書込制御装置をその要旨とする。
【0009】
請求項5に記載の発明は、請求項4に記載の発明における前記エンジンは車両に搭載されるものであり、前記電源遮断可能性検知手段は車速が所定値以上またはエンジン回転数が所定値以上の少なくともいずれか一方を満たすとき、バッテリからの電源の遮断の可能性が無いと判定するものとしたEEPROMのデータ再書込制御装置をその要旨とする。
【0010】
【作用】
請求項1に記載の発明によれば、バッテリ交換検出手段はバッテリの交換を検出する。データ読出手段はイグニッションスイッチがオンされた後であって、バッテリ交換検出手段によってバッテリの交換がされたことを検出した場合にEEPROMに書き込まれているデータを読み出す。データ書込手段はデータ読出手段により読み出されたデータを再度、EEPROMに書き込む。
【0011】
このように、バッテリ交換のタイミングでEEPROMのデータの再書き込みが行われる。よって、適切な時期にEEPROMのデータを書き込み(同一の値を上書き)することにより、従来必要としていたデータの再書き込みのためのEEPROMのデータ記憶領域が不要となり、又、多数決といったデータの再書き込みのための複雑な処理を用いることなく、さらに、データが消滅することなく高い信頼性も確保される。
【0012】
請求項2に記載の発明によれば、請求項1に記載の発明の作用に加え、バッテリ交換検出手段は、ステータスビットを利用してバッテリの交換を検出する。よって、専用のバッテリ交換検出手段(例えば、バッテリの取り外しにてオンするリミットスイッチ等)を用いることなく、容易にバッテリの交換を検出することができる。
【0013】
請求項3に記載の発明によれば、バッテリ交換検出手段はバッテリの交換を検出する。データ読出手段はバッテリ交換検出手段によるバッテリの交換に基づいてEEPROMに書き込まれているデータを読み出す。データ書込手段はデータ読出手段により読み出されたデータを再度、EEPROMに書き込む。
このように、バッテリ交換のタイミングでEEPROMのデータの再書き込みが行われる。よって、適切な時期にEEPROMのデータを書き込み(同一の値を上書き)することにより、従来必要としていたデータの再書き込みのためのEEPROMのデータ記憶領域が不要となり、又、多数決といったデータの再書き込みのための複雑な処理を用いることなく、さらに、データが消滅することなく高い信頼性も確保される。
また、電源遮断可能性検知手段はバッテリからの電源の遮断の可能性を検知し、バッテリ交換後においてバッテリからの電源の遮断の可能性が無い時に、データ読出手段とデータ書込手段とがデータの再書き込みを行う。よって、データの再書き込みの途中で電源が遮断されることなく、確実にデータの再書き込みが行われる。
【0014】
請求項4に記載の発明によれば、請求項3に記載の発明の作用に加え、バッテリからの電源の遮断の可能性はバッテリからの電源供給にて駆動されるエンジンの状態から検知される。
【0015】
請求項5に記載の発明によれば、請求項4に記載の発明の作用に加え、車速が所定値以上またはエンジン回転数が所定値以上の少なくともいずれか一方を満たすとき、バッテリからの電源の遮断の可能性が無いと判定される。
【0016】
【実施例】
以下、この発明を車載エンジンの電子制御装置に具体化した一実施例を図面に従って説明する。
【0017】
図1には、電子制御装置(以下、ECUという)4及びその周辺機器の構成を示す。自動車にはディーゼルエンジンが搭載され、ディーゼルエンジンには燃料噴射ポンプが備えられ、燃料噴射ポンプから高圧燃料がディーゼルエンジンに供給され、この燃料が噴射弁から噴射されることにより同エンジンが駆動される。ディーゼルエンジンの出力は車両の駆動輪に伝えられ、同駆動輪を回転させるようになっている。図1に示すECU4は、ディーゼルエンジンの運転状態に基づいて燃料噴射ポンプに設けられた燃料噴射量制御用アクチュエータと燃料噴射時期制御用アクチュエータをコントロールすることにより燃料噴射量および燃料噴射時期を制御するようになっている。
【0018】
以下、詳細に説明する。
図1において、バッテリ1と車載機器2とECU4とは車両に搭載されている。車載機器2は、各種センサと、燃料噴射量制御用アクチュエータと燃料噴射時期制御用アクチュエータとからなる。各種センサには、エンジン回転数センサ(クランク角センサ)を含むディーゼルエンジンの運転状態を検出するためのセンサと、車速センサとを含む。バッテリ1と車載機器2はコネクタ3を介してECU4にそれぞれ電気的に接続されている。
【0019】
ECU4は、電源回路5と、コントローラ6と、データを電気的に書き込み可能で且つ消去可能なEEPROM7と、エンジン制御プログラム等のデータを予め記憶したリードオンリメモリ(ROM)8と、ダイオード9とを備えている。さらに、コントローラ6は、中央処理装置(以下、CPUという)10と、CPU10の演算結果等のデータを一時的に記憶するランダムアクセスメモリ(RAM)11と、入出力ポート12とを備えている。RAM11、入出力ポート12、EEPROM7及びROM8はそれぞれバス13を介してCPU10に接続されている。
【0020】
EEPROM7には、一度書き込んだら更新されることがない車両毎の固有ナンバー(車両番号)や車両の仕向け地に関するデータ(仕向地データ)等が記憶されている。このようにEEPROM7に記憶されるデータは一度書き込むと長期間更新されないものである。又、EEPROM7は、データの書き換え保障回数が約1万回と回数に制限があるとともに、データ書き換え後のデータ保障期間が10年程度である。
【0021】
RAM11は、電源が供給されている状態においてデータを記憶保持するバックアップRAM14を備えている。このバックアップRAM14には排気ガス浄化のための学習値や入出力信号の異常を示すデータ等が記憶されている。又、入出力ポート12には、前記車載機器2がコネクタ3の第1端子15を介して接続されている。
【0022】
第1電源ライン16はその一端が前記バッテリ1に接続されるとともに、他端が前記コネクタ3の第2端子17を介して前記ECU4の電源回路5に接続されている。イグニッションスイッチ18は、第1電源ライン16の途中に介在され、図示しないイグニッションキーの操作によりオン・オフ(開閉)される。そして、イグニッションスイッチ18がオン(閉路)されて、バッテリ1からの電圧(12ボルト)が電源回路5に入力されると、同電源回路5はその入力電圧を所定の電圧VDD(例えば、5ボルト)にして前記CPU10,RAM11,EEPROM7及びROM8にそれぞれ供給する。これにより、ECU4が起動される。
【0023】
第2電源ライン19はその一端がバッテリ1に接続されるとともに、他端がコネクタ3の第3端子20を介して前記電源回路5に接続されている。そして、バッテリ1からの電圧は電源回路5に常時供給され、同電源回路5はその入力電圧を所定の電圧VSTBYにして前記バックアップRAM14に常時供給する。この構成により、バックアップRAM14はイグニッションスイッチ18のオン・オフにかかわらず、データを常に記憶保持することができる。
【0024】
尚、以下、このバックアップRAM14のデータ保持用の出力電圧VSTBYをスタンバイ電圧VSTBYといい、このスタンバイ電圧VSTBYは前記CPU10等へ出力される電圧VDDとほぼ同一レベルとなっている。
【0025】
ダイオード9は前記電源回路5のCPU10等への出力とバックアップRAM14への出力との間に接続され、CPU10等への出力側からバックアップRAM14への出力側に向かって順方向に配置されている。そして、バックアップRAM14へのスタンバイ電圧VSTBYのレベルがCPU10等への出力電圧VDDのレベルより低下した場合には、その出力電圧VDDがダイオード9を介してバックアップRAM14へスタンバイ電圧VSTBYとして出力される。
【0026】
そして、イグニッションスイッチ18がオンされてディーゼルエンジンの運転が開始されると、CPU10は車載機器2のディーゼルエンジンの運転状態を検出するためのセンサによりディーゼルエンジンの運転状態を検知するとともにバックアップRAM14のデータを用いて、ディーゼルエンジンの運転状態に応じて車載機器2の燃料噴射量制御用アクチュエータと燃料噴射時期制御用アクチュエータをコントロールすることにより燃料噴射量および燃料噴射時期を制御する。又、CPU10はエンジン制御中において排気ガス浄化のための定数を学習してその学習値をバックアップRAM14に記憶する。さらに、CPU10は入出力信号のチェックを行い、異常が発生すると異常を示すデータをバックアップRAM14に記憶する。
【0027】
又、本実施例では、CPU10によりバッテリ1の交換を含めたバックアップ電源の遮断が検出される。即ち、CPU10は、周辺機器の動作状態を表すためのステータスビットを有しており、このステータスビットは、バックアップRAM14へのスタンバイ電圧VSTBYが所定時間基準レベル以下になると、ハードウェア的に「1→0」に変化するようになっている。尚、以下、このスタンバイ電圧VSTBYの状態を表すためのステータスビットのことをスタンバイビットという。
【0028】
例えば、バッテリ1が交換等のために一時的に取り外されたり、第2電源ライン19に断線が生じたり、或いは第3端子20に接触不良が生じたりして、バックアップRAM14へのスタンバイ電圧VSTBYが所定時間基準レベル以下になると、CPU10のスタンバイビットが「1→0」に変化される。従って、この状態で、イグニッションスイッチ18がオンされてECU4が起動されると、CPU10は、スタンバイビットの「1→0」の変化に基づいて、バッテリの交換を含めた第2電源ライン19からの電力供給が遮断されたことを検出する。
【0029】
そして、CPU10はイグニッションスイッチ18のオン時にバックアップ電源の遮断があったことを検知すると、バックアップRAM14のデータを全てクリアするようになっている。
【0030】
このスタンバイビットは、ソフトウェアで「1」を書かない限り、「0」の状態を保持している。
本実施例では、このスタンバイビットを利用してEEPROM7のデータの再書き込みを行うようにしている。EEPROM7のデータの再書き込み処理(リフレッシュ処理)の詳細については後述する。
【0031】
本実施例では、CPU10によりバッテリ交換検出手段とデータ読出手段とデータ書込手段と電源遮断可能性検知手段が構成されている。
次に、このように構成した車載エンジンの電子制御装置(EEPROMのデータ再書込制御装置)の作用を説明する。
【0032】
図2にはEEPROM7のデータ再書込制御のためのフローチャートを示すとともに、図3にはタイミングチャートを示す。尚、図2の演算実行周期は、例えば32ms毎あるいはクランク角センサからのパルス信号の入力毎(所定のクランク角毎)である。
【0033】
図3において、t1のタイミングにてイグニッションスイッチ18がオンされ、その後、t2のタイミングにてイグニッションスイッチ18がオフされ、この状態で、t3のタイミングにてバッテリ1が取り外され、t4のタイミングにて新しいバッテリ1が取り付けられたものとする。このバッテリ1の交換は10年間に1,2回は必ず行われるものである。さらに、t5のタイミングにてイグニッションスイッチ18がオンされたものとする。この図3において、t3でのバッテリ1の取り外しによりスタンバイ電圧VSTBYがLレベルになるとともにCPU10のスタンバイビットが「0」にされ、その後のt4のタイミングでのバッテリ1の取り付けによりスタンバイ電圧VSTBYがHレベルに復帰する。
【0034】
図2において、CPU10はステップ100で、車速センサからの信号およびエンジン回転数センサ(クランク角センサ)からの信号により、車速が50Km/h以上で、かつ、エンジン回転数が2000rpm以上か否かを判定する。この処理は、バッテリ1からの電源の遮断の可能性を検知するためのものであり、車速とエンジン回転数とに基づいてバッテリ1からの電源供給にて駆動されるディーゼルエンジンの状態を検知し、このディーゼルエンジンの状態検知によりバッテリ1からの電源の遮断の可能性を検知する。そして、CPU10は、車速が50Km/h以上で、かつ、エンジン回転数が2000rpm以上でないと、バッテリ1からの電源の遮断の可能性があるとして、同ルーチンを終了する(図3のt5〜t6の期間)。
【0035】
一方、CPU10は車速が50Km/h以上で、かつ、エンジン回転数が2000rpm以上であると(図3のt6のタイミング)、バッテリ1からの電源の遮断の可能性が無いとして、ステップ101に移行してスタンバイビットの状態が「1」であるか否か判定する。そして、CPU10は「1」である場合には、バッテリ1の交換が行われていないと判断する。つまり、バッテリ1の取り外しがない場合には、スタンバイ電圧VSTBYのレベルが低下しないので、スタンバイビットは、「1」の状態で保持される。従って、このような場合には、CPU10はバッテリ1の交換がなかったと判断して、同ルーチンを終了する。
【0036】
一方、CPU10はステップ101において、スタンバイビットの状態が「1」でない場合、すなわち「1→0」に変化されている場合には、バッテリ1の交換が行われたと判断する。
【0037】
つまり、バッテリ1の取り外しがあった場合には、スタンバイ電圧VSTBYが所定時間基準レベル以下になって、CPU10のスタンバイビットが「1→0」に変化される。従って、このような場合には、バッテリ1の交換がなされたと判断して、ステップ102に移行する。
【0038】
CPU10はステップ102でEEPROM7の内容(書き込まれているデータ)を読み出し、さらにステップ103に移行する。CPU10はステップ103で、読み出したデータの内容をEEPROM7に再度書き込む。さらに、CPU10はステップ104でスタンバイビットを「1」にする(図3のt6でのスタンバイビットの立ち上げ動作)。
【0039】
このようにして、EEPROM7のデータ再書き込みがバッテリ交換後の所定の条件成立時(車速が50Km/h以上で、かつ、エンジン回転数が2000rpm以上)に行われる。
【0040】
尚、第2電源ライン19が断線されたり第3端子20に接触不良が生じたりした場合にも、前記バッテリ1の交換時と同じく、スタンバイ電圧VSTBYのレベルが低下して、スタンバイビットが「1→0」に変化する。従って、その後イグニッションスイッチ18がオンされたとき、EEPROM7のデータの再書き込みが行われる。しかし、このような場合でもEEPROM7の書き込み回数の制限の1万回をオーバーする可能性は低く、支障は生じない。
【0041】
このように本実施例では、CPU10は図2のステップ101の処理にてバッテリ1の交換を検出し、バッテリ1の交換に基づいてステップ102の処理にてEEPROM7に書き込まれているデータを読み出すとともにステップ103の処理にて読み出されたデータを再度、EEPROM7に書き込む。よって、バッテリ交換のタイミングでEEPROM7のデータの再書き込みが行われる。つまり、EEPROM7のデータを保持するには10年間に1,2回の書き換えが必要であり、10年間に少なくとも1,2回は必ず行われるバッテリ交換のタイミングでEEPROM7のデータの再書き込みを行う。その結果、適切な時期にEEPROM7のデータを書き込み(同一の値を上書き)することにより、従来必要としていたデータの再書き込みのためのEEPROMのデータ記憶領域が不要となり、又、多数決といったデータの再書き込みのための複雑な処理を用いることなく、さらに、データが消滅することなく高い信頼性も確保される。このようにしてEEPROM7のデータを正確かつ半永久的に保存することができる。
【0042】
又、CPU10は図2のステップ101の処理においてスタンバイビットを利用してバッテリ1の交換を検出するようにしたので、専用のバッテリ交換検出手段(例えば、バッテリの取り外しにてオンするリミットスイッチ等)を用いることなく、容易にバッテリの交換を検出することができ、構成を簡単にして製作コストの低減を図ることができる。
【0043】
さらに、CPU10は図2のステップ100の処理にてバッテリ交換後においてバッテリ1からの電源の遮断の可能性を検知し、バッテリ1からの電源の遮断の可能性が無い時に、つまり、バッテリ1からの電源供給にて駆動されるディーゼルエンジンの状態にて(車速が所定値以上で、かつエンジン回転数が所定値以上のとき)、データの再書き込みを行うようにした。よって、車速が所定値以上で、かつエンジン回転数が所定値以上のときには電源が断たれることは有り得ないので、充分書き込み時間が確保でき、データの再書き込みの途中で電源が遮断されることなく、確実にデータの再書き込みを行うことができる。
【0044】
この発明の他の態様として、図2のステップ100においてバッテリ1からの電源の遮断の可能性の検出は車速が所定値以上またはエンジン回転数が所定値以上のいずれか一方を満たすとき、バッテリからの電源の遮断の可能性が無いと判定してもよい。
【0045】
又、この発明は、エンジン制御用ECUの他にも各種の装置に具体化できるものである。
【0046】
【発明の効果】
以上詳述したように請求項1に記載の発明によれば、データの再書き込みのためのEEPROMのデータ記憶領域を不要にできるとともに、再書き込みのための複雑な処理を行うことなく、かつ、高い信頼性を確保できる優れた効果を発揮する。
また、イグニッションスイッチがオンされた場合にデータの再書き込みを行うようにしたため、データの再書き込みの途中で電源が遮断されることなく、確実にデータの再書き込みを行うことができる。
【0047】
請求項2に記載の発明によれば、請求項1に記載の発明の効果に加え、専用のバッテリ交換検出手段を用いることなく、容易にバッテリの交換を検出することができる。
【0048】
請求項3,4,5に記載の発明によれば、データの再書き込みの途中で電源が遮断されることなく、確実にデータの再書き込みを行うことができる。
【図面の簡単な説明】
【図1】車載エンジンの電子制御装置及びその周辺機器を示す構成図。
【図2】作用を説明するためのフローチャート。
【図3】作用を説明するためのタイミングチャート。
【符号の説明】
1…バッテリ、7…EEPROM、10…バッテリ交換検出手段、データ読出手段、データ書込手段、電源遮断可能性検知手段を構成するCPU、14…バックアップRAM。[0001]
[Industrial application fields]
The present invention relates to an on- board engine electronic control device and an EEPROM data rewrite control device.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in a system equipped with an EEPROM, for example, an electronic controller for an in-vehicle engine (an ECU for engine control; Electronic Control Unit) equipped with an EEPROM as a non-volatile memory, a technique for accurately storing the data of the EEPROM There is a rewrite. In other words, vehicle number data, destination data, etc. are stored in the EEPROM, but the data in this EEPROM has a limit on the number of rewrites and the data guarantee is about 10 years. It is necessary to rewrite data. Therefore, the CPU, which is a component device of the ECU, rewrites the EEPROM data. As a specific example, a plurality of vehicle number data, which is essentially one for checking data, is prepared in the EEPROM (an odd number is prepared), and the same data (correct) among the plurality of vehicle number data every time the ignition switch is turned on. It is determined whether or not the data is more than a majority (take a majority vote), and if the same data (correct data) in the vehicle number data is less than a majority, the data is rewritten because an error has occurred.
[0003]
[Problems to be solved by the invention]
However, if this is done, it is necessary to prepare a plurality of vehicle number data, which is essentially one, in the EEPROM, and a large data storage area of the EEPROM is used. Further, since a complicated process of taking a majority decision is performed every time the ignition switch is turned on, a software load is applied. Furthermore, there are cases where all of a plurality of data are erased. In this case, there is a problem that even if a majority vote is taken, it cannot be restored.
[0004]
The present invention has been made to solve the above-mentioned problems, and its object is to eliminate the need for an EEPROM data storage area for rewriting data and to perform complicated processing for rewriting. Another object of the present invention is to provide an onboard engine electronic control device and an EEPROM data rewrite control device that can ensure high reliability.
[0005]
[Means for Solving the Problems]
The invention according to
[0006]
The invention according to
[0007]
According to a third aspect of the present invention, there is provided a data rewrite control device for an EEPROM which is operated by power supply from a battery, the battery replacement detecting means for detecting the replacement of the battery, and the battery by the battery replacement detecting means. Data reading means for reading data written in the EEPROM based on the exchange of data, data writing means for rewriting the data read by the data reading means to the EEPROM, and possibility of shutting off the power from the battery A power cutoff possibility detecting means for detecting the power, and when there is no possibility of shutting off the power from the battery after battery replacement by the power cutoff possibility detecting means, the data reading means and the data writing means The gist of the data rewriting control device of the EEPROM that performs the rewriting is as follows.
[0008]
According to a fourth aspect of the present invention, the power shutoff possibility detecting means in the third aspect of the invention detects the possibility of power shutoff from the state of an engine driven by power supply from a battery. The gist of the EEPROM data rewrite control device is as follows.
[0009]
According to a fifth aspect of the invention, the engine according to the fourth aspect of the invention is mounted on a vehicle, and the power shut-off possibility detecting means has a vehicle speed of a predetermined value or higher or an engine speed of a predetermined value or higher. The gist of the data rewrite control device of the EEPROM is that it is determined that there is no possibility of shutting off the power supply from the battery when at least one of the above is satisfied.
[0010]
[Action]
According to the first aspect of the present invention, the battery replacement detection means detects battery replacement. Data reading means even after the ignition switch is turned on, reads the data written in the EEPROM when it is detected result that the replacement of the battery has been in the battery change detection means. The data writing means writes the data read by the data reading means to the EEPROM again.
[0011]
In this way, the EEPROM data is rewritten at the battery replacement timing. Therefore, writing the EEPROM data at the appropriate time (overwriting the same value) eliminates the need for the EEPROM data storage area for rewriting data, which has been necessary in the past, and rewriting data such as majority voting. Therefore, high reliability can be ensured without using complicated processing for data and without erasing data.
[0012]
According to the invention described in
[0013]
According to the third aspect of the present invention, the battery replacement detection means detects battery replacement. The data reading means reads the data written in the EEPROM based on the battery replacement by the battery replacement detecting means. The data writing means writes the data read by the data reading means to the EEPROM again.
In this way, the EEPROM data is rewritten at the battery replacement timing. Therefore, writing the EEPROM data at the appropriate time (overwriting the same value) eliminates the need for the EEPROM data storage area for rewriting data, which has been necessary in the past, and rewriting data such as majority voting. Therefore, high reliability can be ensured without using complicated processing for data and without erasing data.
The power shutoff possibility detecting means detects the possibility of power shutoff from the battery. When there is no possibility of power shutoff from the battery after battery replacement, the data reading means and the data writing means Rewrite the file. Therefore, the data can be reliably rewritten without turning off the power during the data rewriting.
[0014]
According to the invention described in claim 4, in addition to the operation of the invention described in
[0015]
According to the invention described in
[0016]
【Example】
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is embodied in an onboard engine electronic control device will be described below with reference to the drawings.
[0017]
FIG. 1 shows the configuration of an electronic control unit (hereinafter referred to as ECU) 4 and its peripheral devices. The automobile is equipped with a diesel engine, the diesel engine is provided with a fuel injection pump, high-pressure fuel is supplied from the fuel injection pump to the diesel engine, and the fuel is injected from the injection valve to drive the engine. . The output of the diesel engine is transmitted to the drive wheels of the vehicle, and the drive wheels are rotated. The ECU 4 shown in FIG. 1 controls the fuel injection amount and the fuel injection timing by controlling the fuel injection amount control actuator and the fuel injection timing control actuator provided in the fuel injection pump based on the operating state of the diesel engine. It is like that.
[0018]
This will be described in detail below.
In FIG. 1, a
[0019]
The ECU 4 includes a
[0020]
The
[0021]
The
[0022]
The first
[0023]
The second
[0024]
Hereinafter, the output voltage V STBY for holding data in the
[0025]
The diode 9 is connected between the output of the
[0026]
When the
[0027]
In this embodiment, the
[0028]
For example, when the
[0029]
When the
[0030]
This standby bit holds the state of “0” unless “1” is written by software.
In this embodiment, the data in the
[0031]
In this embodiment, the
Next, the operation of the on-vehicle engine electronic control device (EEPROM data rewrite control device) configured as described above will be described.
[0032]
2 shows a flowchart for data rewrite control of the
[0033]
In FIG. 3, the
[0034]
In FIG. 2, the
[0035]
On the other hand, if the vehicle speed is 50 km / h or more and the engine speed is 2000 rpm or more (timing at t6 in FIG. 3), the
[0036]
On the other hand, if the state of the standby bit is not “1” in
[0037]
That is, when the
[0038]
In
[0039]
In this manner, data rewriting of the
[0040]
Even when the second
[0041]
As described above, in this embodiment, the
[0042]
Further, since the
[0043]
Furthermore, the
[0044]
As another aspect of the present invention, in
[0045]
The present invention can be embodied in various devices other than the engine control ECU.
[0046]
【The invention's effect】
As described above in detail, according to the invention described in
In addition, since the data is rewritten when the ignition switch is turned on, the data can be reliably rewritten without shutting off the power in the middle of the data rewriting.
[0047]
According to the invention described in
[0048]
According to the invention described in
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing an on-vehicle engine electronic control device and its peripheral devices.
FIG. 2 is a flowchart for explaining the operation.
FIG. 3 is a timing chart for explaining the operation.
[Explanation of symbols]
DESCRIPTION OF
Claims (5)
データの書き込み及び消去が可能なEEPROMと、
前記バッテリの交換を検出するバッテリ交換検出手段と、
前記イグニッションスイッチがオンされた場合であって前記バッテリ交換検出手段によってバッテリの交換がされたことを検出したときに、前記EEPROMに書き込まれているデータを読み出すデータ読出手段と、
前記データ読出手段によりデータが読み出された場合に再度、EEPROMに前記データを書き込むデータ書込手段と
を備えたことを特徴とする車載エンジンの電子制御装置。 An electronic control device for an in- vehicle engine that operates when an ignition switch is turned on and power is supplied from a battery,
EEPROM capable of writing and erasing data;
Battery replacement detection means for detecting replacement of the battery;
When it detects Therefore the replacement of the battery has been in the battery replacement detection means in a case where the ignition switch is turned on, a data reading means for reading the data written in said EEPROM,
An electronic control apparatus for an on- vehicle engine , comprising: a data writing means for writing the data to an EEPROM again when data is read by the data reading means.
前記バッテリの交換を検出するバッテリ交換検出手段と、
前記バッテリ交換検出手段によるバッテリの交換に基づいてEEPROMに書き込まれているデータを読み出すデータ読出手段と、
前記データ読出手段により読み出されたデータを再度前記EEPROMに書き込むデータ書込手段と、
バッテリからの電源の遮断の可能性を検知する電源遮断可能性検知手段と
を備え、前記電源遮断可能性検知手段によりバッテリ交換後においてバッテリからの電源の遮断の可能性が無い時に、前記データ読出手段とデータ書込手段とがデータの再書き込みを行うEEPROMのデータ再書込制御装置。 An EEPROM data rewrite control device that operates by power supply from a battery,
Battery replacement detection means for detecting replacement of the battery;
Data reading means for reading data written in the EEPROM based on battery replacement by the battery replacement detecting means;
Data writing means for writing the data read by the data reading means to the EEPROM again;
A power-off possibility detection means for detecting the possibility of power-off from the battery;
The provided, when there is no possibility of interruption of power supply from the battery after the battery replacement by the power-off potential detection means, said data reading means and the data writing means and the data line cormorants E EPROM rewriting data Rewrite control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29529894A JP3644058B2 (en) | 1994-11-29 | 1994-11-29 | Electronic control device for vehicle engine and data rewrite control device for EEPROM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29529894A JP3644058B2 (en) | 1994-11-29 | 1994-11-29 | Electronic control device for vehicle engine and data rewrite control device for EEPROM |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001351521A Division JP3444295B2 (en) | 2001-11-16 | 2001-11-16 | Electronic control unit for vehicle engine |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH08153397A JPH08153397A (en) | 1996-06-11 |
JP3644058B2 true JP3644058B2 (en) | 2005-04-27 |
Family
ID=17818801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP29529894A Expired - Fee Related JP3644058B2 (en) | 1994-11-29 | 1994-11-29 | Electronic control device for vehicle engine and data rewrite control device for EEPROM |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3644058B2 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6243630B1 (en) | 1997-03-17 | 2001-06-05 | Denso Corporation | Vehicle control system |
JPH11203575A (en) * | 1998-01-16 | 1999-07-30 | New Cosmos Electric Corp | General purpose gas detector |
DE19964012A1 (en) * | 1999-12-30 | 2001-07-12 | Bosch Gmbh Robert | Refreshing memory contents of read only memory cell involves comparing current memory cell charge state with threshold value above reading charge, raising charge state if below threshold |
JP4065790B2 (en) | 2003-01-17 | 2008-03-26 | 三菱電機株式会社 | In-vehicle electronic control unit |
JP4702356B2 (en) * | 2007-12-10 | 2011-06-15 | 株式会社デンソー | Rewriting device and program |
CN111273853A (en) * | 2018-12-04 | 2020-06-12 | 宝沃汽车(中国)有限公司 | Vehicle EEPROM data storage method, device, equipment and medium |
-
1994
- 1994-11-29 JP JP29529894A patent/JP3644058B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH08153397A (en) | 1996-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6898499B2 (en) | Control system | |
JP4475320B2 (en) | Vehicle memory management device | |
JP5176728B2 (en) | Electronic control device for vehicle | |
US6401163B1 (en) | Apparatus and method for rewriting data from volatile memory to nonvolatile memory | |
US7003382B2 (en) | Electronic control unit for a vehicle | |
JP3969278B2 (en) | Electronic control unit | |
US5522034A (en) | Battery disconnection detecting apparatus | |
JP3644058B2 (en) | Electronic control device for vehicle engine and data rewrite control device for EEPROM | |
JP4001088B2 (en) | Electronic control unit | |
JP2003002132A (en) | Vehicle control device | |
JP3491358B2 (en) | Power cut-off detection device | |
WO2008099276A1 (en) | Vehicle control device | |
WO2018079537A1 (en) | Electronic control unit and data protection method therefor | |
JP3444295B2 (en) | Electronic control unit for vehicle engine | |
JP2007062632A (en) | Electronic control unit and storing method of data for abnormality generated time storage | |
US6853295B2 (en) | Vehicular control unit with self shut-off function and abnormality detection function | |
JP2006017468A (en) | Data recorder | |
JP2004151944A (en) | Method for writing data in non-volatile storage device, its program and device, and onboard electronic controller | |
JPH1199891A (en) | Re-programmable system of on-board memory | |
JP3960212B2 (en) | Electronic control unit | |
JPH0793006A (en) | Electronic control unit for vehicle | |
JPH09161493A (en) | Management method for rewritable nonvolatile memory | |
JP2004021520A (en) | Electronic controller for vehicle | |
JP6162011B2 (en) | Electronic control unit for automobile | |
JP2000257502A (en) | Electronic controller for automobile |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040120 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040315 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050111 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050124 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080210 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110210 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120210 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |