JP3546791B2 - Electronic control unit - Google Patents

Electronic control unit Download PDF

Info

Publication number
JP3546791B2
JP3546791B2 JP2000010469A JP2000010469A JP3546791B2 JP 3546791 B2 JP3546791 B2 JP 3546791B2 JP 2000010469 A JP2000010469 A JP 2000010469A JP 2000010469 A JP2000010469 A JP 2000010469A JP 3546791 B2 JP3546791 B2 JP 3546791B2
Authority
JP
Japan
Prior art keywords
counter data
write
unit
starter
stored
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
Application number
JP2000010469A
Other languages
Japanese (ja)
Other versions
JP2001200750A (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 JP2000010469A priority Critical patent/JP3546791B2/en
Publication of JP2001200750A publication Critical patent/JP2001200750A/en
Application granted granted Critical
Publication of JP3546791B2 publication Critical patent/JP3546791B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Read Only Memory (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、例えば自動車のエンジンのスタータ駆動回数を、不揮発性メモリに確実に記憶することができる電子制御装置に関する。
【0002】
【従来の技術】
従来より、例えば自動車のエンジン制御を行うために、マイクロコンピュータを中心とする電子制御装置が使用されている。
この電子制御装置では、各種のデータを記憶するために、RAM(ノーマルRAM)、EEPROMなどが採用されている。このうち、RAMはイグニッションキーのオフ時にはデータが保障されないメモリであり、EEPROMは電源が切られた場合でもデータの保持が可能な(書き込み可能な)不揮発性メモリである。
【0003】
例えば記憶されるデータとして、スタータの駆動回数(始動回数)の場合を考えると、スタータにはその始動回数による寿命がある。よって、特にアイドルストップ&スタータ制御(エンジンの自動停止や自動始動の制御;ISS制御)の様に、通常より始動回数が多くなるときには、始動回数がスタータの駆動保障回数を上回るか否かをチェックすることが重要である。
【0004】
しかも、この始動回数は、イグニッションスイッチがオフの場合やバッテリの交換時にも保持する必要があるので、始動回数はEEPROMなどの不揮発性メモリに記憶する必要がある。
ところが、EEPROMには、書込保障回数(書込許容回数)があり、それを超えるとデータを正しく書き込むことができないことがあるため、データの記憶手段として、各種の技術が提案されている。
【0005】
例えば、EEPROMの使用中のメモリアドレスに記憶されている値Cに、発生回数Aを加算して、その合計値(C+A)をEEPROMに記憶してゆき、合計値(C+A)が許容回数である判定値Vを超えたときに、使用中のメモリアドレスから別のメモリアドレスに移動し、その新しいメモリアドレスに、(C+A−V)を書き込む。そして、使用済みのメモリアドレスの個数をKとしたときに、その発生回数の総数を(C+KV)で表す方法が提案されている(特公平7−79000号公報参照)。
【0006】
【発明が解決しようとする課題】
しかしながら、上述した技術では、例えば50万回の始動回数の様な大きなカウンタデータを記憶する場合には、複数のメモリアドレス(例えば2ワードにわたる2個のメモリアドレス)を必要とするので、メモリ効率が悪くなることがあった。
【0007】
つまり、現在使用中の2個のメモリアドレス(即ち数値の上位部分を記憶する上位メモリアドレスと下位部分を記憶する下位メモリアドレス)においては、始動回数を記憶する場合、当然ながら、下位メモリアドレスの方が頻繁に書き換えられるが、従来技術では、下位メモリアドレスの書込保障回数を超えたときに、始動回数を記憶する全て(即ち2個)のメモリアドレスを変更している。
【0008】
そのため、上位メモリアドレスは書込保障回数を超えていないにもかかわらず、全てのメモリアドレスを変更することになり、メモリ効率が悪いという問題があった。
本発明は、前記課題を解決するためになされたものであり、その目的は、不揮発性メモリにおけるメモリ効率が高い電子制御装置を提供することにある。
【0009】
【課題を解決するための手段及び発明の効果】
(1)請求項1の発明は、
電源遮断時にも記憶内容を保持することができる書き込み可能な不揮発性メモリ(例えばEEPROM)を備え、前記不揮発性メモリの複数の書込単位に、所定の事象が発生する回数を計数するカウンタデータを記憶する電子制御装置であって、前記不揮発性メモリに、前記カウンタデータの上位部分を記憶する第1書込単位を設けるとともに、前記カウンタデータの下位部分を記憶する複数の第2書込単位を設け、前記複数の第2書込単位のうち、所定の第2書込単位における書込回数が前記不揮発性メモリの書込保障回数に基づいて所定の判定値以上となった場合には、前記カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更することを特徴とする電子制御装置を要旨とする。
【0010】
本発明では、不揮発性メモリに、所定のカウンタデータ(例えばスタータ駆動回数)を記憶するために、複数の書込単位を設定している。具体的には、不揮発性メモリに、カウンタデータの上位部分を記憶する第1書込単位を設けるとともに、カウンタデータの下位部分を記憶する複数の第2書込単位を設けている。
【0011】
そして、第2書込単位における書込回数が所定の判定値以上となった場合には、カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更している。
つまり、例えばスタータ駆動回数のようなカウンタデータを記憶する場合には、カウンタデータの下位部分が頻繁に変化し、よって、下位部分を記憶する第2書込単位に頻繁に数値が書き込まれる。そのため、第2書込単位は、第1書込単位に比べて、早めに例えば書込保障回数(書込許容回数)に達してしまう。
【0012】
ところが、この場合には、上位部分を記憶する第1書込単位は書込保障回数に達しておらず、従来の様に上位及び下位の両書込単位ごと変更すると、メモリの有効な利用ができない。
そこで、本発明では、使用中の第2書込単位が所定の判定値以上となった場合でも、第1書込単位は変更せずにそのまま使用し、第2書込単位のみ他の第2書込単位に変更するのである。これにより、まだ使用できる第1書込単位を変更しないので、メモリ効率が高いという効果がある。
【0013】
尚、前記書込単位とは、例えばEEPROMにおいて、データの書き込みや読み出しが行われる最小の単位を示している。
(2)請求項2の発明は、
揮発性メモリと、IGスイッチのオフによる電源遮断時にも記憶内容を保持することができる書き込み可能な不揮発性メモリと、を備え、前記不揮発性メモリの複数の書込単位に、所定の事象が発生する回数を計数するカウンタデータを記憶する自動車用の電子制御装置であって、前記IGスイッチのオン時には、前記不揮発性メモリに記憶されたカウンタデータを前記揮発性メモリに記憶し、前記IGスイッチのオン中は、前記所定の事象が発生する回数を計数して前記揮発性メモリに記憶し、前記IGスイッチのオフ時には、前記揮発性メモリに記憶されたカウンタデータを前記不揮発性メモリに記憶する構成を備え、更に、前記不揮発性メモリに、前記カウンタデータの上位部分を記憶する第1書込単位を設けるとともに、前記カウンタデータの下位部分を記憶する複数の第2書込単位を設け、前記複数の第2書込単位のうち、所定の第2書込単位における書込回数が前記不揮発性メモリの書込保障回数に基づいて所定の判定値以上となった場合には、前記カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更することを特徴とする電子制御装置を要旨とする。
【0014】
本発明も、前記請求項1の発明と同様に、第2書込単位における書込回数が所定の判定値以上となった場合には、カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更しているので、メモリ効率が高いという利点がある。
尚、本発明でも、前記書込単位とは、例えばEEPROMにおいて、データの書き込みや読み出しが行われる最小の単位を示している。
(3)請求項3の発明は、
揮発性メモリと、IGスイッチのオフによる電源遮断時にも記憶内容を保持することができる書き込み可能な不揮発性メモリと、を備え、前記不揮発性メモリの複数の書込単位に、所定の事象が発生する回数を計数するカウンタデータを記憶する自動車用の電子制御装置であって、前記IGスイッチのオン時には、前記不揮発性メモリに記憶されたカウンタデータを前記揮発性メモリに記憶し、前記IGスイッチのオン中は、前記所定の事象が発生する回数を計数して前記揮発性メモリに記憶し、前記IGスイッチのオフ時には、前記揮発性メモリに記憶されたカウンタデータを前記不揮発性メモリに記憶する構成を備え、更に、前記不揮発性メモリに、前記カウンタデータの上位部分を記憶する第1書込単位を設けるとともに、前記カウンタデータの下位部分を記憶する複数の第2書込単位を設け、前記複数の第2書込単位のうち、所定の第2書込単位における書込回数が前記不揮発性メモリの書込保障回数以上となった場合には、前記カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更することを特徴とする電子制御装置を要旨とする。
本発明は、第2書込単位における書込回数が不揮発性メモリの書込保障回数以上となった場合には、カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更しているので、メモリ効率が高いという利点がある。
尚、本発明でも、前記書込単位とは、例えばEEPROMにおいて、データの書き込みや読み出しが行われる最小の単位を示している。
4)請求項4の発明は
前記第1書込単位を固定とし、前記判定に応じて、前記複数の第2書込単位のみを変更することを特徴とする前記請求項1〜3のいずれかに記載の電子制御装置を要旨とする。
【0015】
本発明では、第1書込単位を固定し、使用中のある第2書込単位が例えば書込保障回数に達したら、他の書込保障回数に変更する。
尚、カウンタデータによっては、第1書込単位を複数設定してもよい。
5)請求項5の発明は、
前記不揮発性メモリに、前記第1書込単位及び第2書込単位の記憶領域とは別に、使用する書込単位を指定する指定データを記憶する記憶領域を設けたことを特徴とする前記請求項1〜のいずれかに記載の電子制御装置を要旨とする。
【0016】
第2書込単位は、前記判定に応じて変更されるので、その位置を指定する必要がある。従って、本発明では、その位置を指定する指定データ(アドレス)を記憶する領域を、不揮発性メモリに設けている。
6)請求項6の発明は、
前記カウンタデータとは、エンジンのスタータ駆動回数であることを特徴とする前記請求項1〜のいずれかに記載の電子制御装置を要旨とする。
【0017】
本発明は、カウンタデータを例示している。本発明では、上述した構成により、効率よくスタータ駆動回数を記憶することができる。
7)請求項7の発明は、
前記不揮発性メモリの第1書込単位と第2書込単位とに記憶されたカウンタデータに基づいて主カウンタデータを求め、その主カウンタデータと所定の判定値とを比較し、その比較結果に基づいて、前記主カウンタデータの示す対象の状態を判断することを特徴とする前記請求項1〜のいずれかに記載の電子制御装置を要旨とする。
【0018】
例えばスタータ総駆動回数である主カウンタデータは、第1書込単位に記憶されているカウンタデータの上位部分と、現在使用中の第2書込単位に記憶されているカウンタデータの下位部分とに基づいて求めることができ、この主カウンタデータが、その主カウンタデータの示す対象の状態(例えばスタータの使用状態)を表している。
【0019】
従って、主カウンタデータを所定の判定値と比較することにより、その状態(例えばスタータの駆動回数がスタータ駆動保障回数以上か否か)を判断することができる。
8)請求項8の発明は、
前記主カウンタデータが車両のスタータ総駆動回数であり、そのスタータ総駆動回数がスタータ駆動保障回数以上となった場合には、その旨を報知することを特徴とする前記請求項に記載の電子制御装置を要旨とする。
【0020】
本発明は、主カウンタデータの示す対象を例示したものである。
ここでは、主カウンタデータがスタータ総駆動回数であるので、そのスタータ総駆動回数が、スタータ駆動保障回数以上となった場合には、例えばその旨を報知することにより、始動不良等を未然に防止できる。
【0021】
9)請求項9の発明は、
前記電子制御装置は、車載エンジンの自動停止及び/又はスタータによるエンジンの自動始動(例えばアイドルストップ&スタート制御)を行うことができる装置であることを特徴とする前記請求項1〜のいずれかに記載の電子制御装置を要旨とする。
【0022】
本発明の電子制御装置は、エンジンの自動停止やスタータによってエンジンの自動始動を行う装置である。従って、その様な制御を行わない場合と比べて、スタータ駆動回数が増加する傾向がある。特に、エンジンの自動始動を行う場合には、運転者のイグニッションキーによるスタータ駆動回数に自動始動によるスタータ駆動回数が加わるので、一層スタータ駆動回数が増加する傾向がある。
【0023】
従って、このようなエンジンの自動停止や自動始動の制御を行う場合には、スタータ駆動回数がスタータ駆動保障回数以上か否かをチェックすることが非常に重要になるが、本発明では、そのような制御を実施する場合に、確実にスタータ駆動回数のチェックを行うことができる。
【0024】
よって、スタータ駆動回数がスタータ駆動保障回数以上となった場合には、警告ランプ等により運転者に報知して、スタータの交換を促すことができる。又は、スタータ駆動回数がスタータ駆動保障回数以上となった場合には、必要に応じて、エンジンの自動始動を制限することにより、スタータの寿命を伸ばすことができる。
【0025】
尚、前記アイドルストップ&スタート制御とは、所定の条件が満たされた場合に、自動的にエンジンを停止したり始動する制御である。
具体的には、燃費や排ガスの低減のために、例えば信号停止時にはエンジンを自動停止させ、信号発進時にはエンジンを自動始動するものである。又は、例えば車速が0であり、且つドアが開かれた場合に、エンジンを自動停止するものである。
【0026】
このアイドルストップ&スタート制御を行う電子制御装置としては、「アイドルストップ&スタート制御は、車両のエンジンを停止させてよい状態であるか否かを判定する停止可能状態判定手段と、停止可能状態判定手段によって肯定判断された場合には、エンジンを自動停止させる自動停止手段と、自動停止手段の実行時に、車両のエンジンを始動させてよい状態であるか否かを判定する始動可能状態判定手段と、始動可能状態判定手段によって肯定判断された場合には、エンジンを自動始動させる自動始動手段と、を備えたことを特徴とする電子制御装置。」が挙げられる。
【0027】
【発明の実施の形態】
次に、本発明の電子制御装置の実施の形態の例(実施例)について、図面に基づいて説明する。
(実施例)
a)まず、本実施例のエンジン制御用の電子制御装置の基本構成について説明する。
【0028】
図1に示す様に、本実施例のエンジン制御用の電子制御装置(以下単にエンジンECUと記す)1は、マイクロコンピュータ3を中心に構成された装置であり、アイドルストップ&スタート制御とともに、スタータ駆動回数をチェックすることが可能なものである。
【0029】
このエンジンECU1は、マイクロコンピュータ3に加え、電源系として、メイン電源回路5を備え、入力系として、入力回路9及び波形整形回路11を備え、出力系として、第1〜第3出力回路13、15、17を備えている。また、各種のデータの記憶手段として、EEPROM19などを備えている。以下詳細に説明する。
【0030】
前記メイン電源回路5は、イグニッションスイッチ(IGスイッチ)21がオンの場合に、バッテリ23から電圧(+B)の供給を受け、所定の電圧(Vom)を、入力回路9及びマイクロコンピュータ3に供給するものである。
前記マイクロコンピュータ3は、CPU24、ROM25、RAM(ノーマルRAM)27、を備えている。このうち、RAM27は、IGスイッチ21がオンの間は、メイン電源回路5からの電圧供給により、内容(データ)を保持するメモリである。
【0031】
前記EEPROM19は、メイン電源がダウンしても、内容(例えばスタータ駆動回数のデータ)を保持することができる不揮発性メモリであり、しかも、所定電圧(例えば2V以上)が供給されている場合には、データの書き込みが可能なメモリである。
【0032】
従って、マイクロコンピュータ3は、メイン電源からの電圧(Vom)を受け、EEPROM19は、メイン電源からの電圧(Vom)を受け、RAM27とEEPROM19の間で、データのやりとりが可能である。例えば、RAM27に記憶されたスタータ駆動回数のデータ(カウンタデータ)に基づいて、そのカウンタデータをEEPROM19に書き込むことができる。
【0033】
そして、上述した図1の構成において、バッテリ23に接続されたIGスイッチ21が、図示しないイグニッションキー(IGキー)の操作によりオンとされることで、エンジンECU1が起動する。更に、IGキーが、IGスイッチ21のSTの位置まで回されると、スタータ33のモータ33aが駆動されて、エンジンが始動する。
【0034】
また、エンジンの作動中においては、エンジンECU1は、エンジン回転数信号NE、車速信号SPD等の車両の作動信号、スロットル開度信号TA、冷却水温信号THW等のセンサ信号を取り込んで、電磁弁37による燃料噴射制御等のための制御信号を出力する。
【0035】
b)次に、本実施例の要部であるCPU24、RAM27、EEPROM19などの構成について説明する。
本実施例では、スタータ駆動回数(始動回数)がスタータ駆動保障回数(スタータ33の動作が保障される保障値;例えば45万回)以上となったことを検知するために、以下の様に、スタータ駆動回数をEEPROM19に記憶するための構成を備えている。
【0036】
図2に示す様に、マイクロコンピュータ3のCPU24には、スタータ駆動回数をカウントするスタータ駆動回数計測部24aと、スタータ駆動回数を書き込む記憶領域(以下単にメモリとも記す)を指定するアドレスを決定する記憶領域アドレス決定部24bと、記憶領域の書込回数がEEPROM19の書込保障回数を超過したことを判定する書込保障回数判定部24cとを備えている。
【0037】
また、RAM27には、50万回のスタータ駆動回数を記憶するために、2ワード(4バイト)分の記憶領域が設定されている。
つまり、RAM27の記憶領域(メモリRA)は、スタータ駆動回数の上位部分(即ちカウンタデータの2バイト分の上位ワード)を記憶できるように設定され、記憶領域(メモリRB)には、スタータ駆動回数の下位部分(即ちカウンタデータの2バイト分の下位ワード)を記憶できるように設定されている。
【0038】
更に、EEPROM19には、スタータ駆動回数を記憶するために、1ワード分の書込単位である記憶領域(メモリM0〜Mn、Mk)が複数設定されている。尚、このEEPROM19では、1ワード(2バイト)単位でしかアクセス(読み出しや書き込み)ができない。
【0039】
前記EEPROM19の書込保障回数は10万回であり、16進数で表すと0x186A0のため、2ワード分必要である。また、本実施例では、スタータ総駆動回数として50万回を記憶するので、その点からも2ワード分必要である。従って、スタータ駆動回数を2バイトの上位ワードと2バイトの下位ワードに分けて記憶するように設定されている。
【0040】
具体的には、EEPROM19の記憶領域のうち、メモリM0は、第1書込単位であり、前記RAM27と同様に、スタータ駆動回数の上位部分の数値、即ち、10進数で示すと、65536〜4294967295の数値データを記憶できるように設定されている。また、各メモリM1〜Mnは、第2書込単位であり、それぞれ、スタータ駆動回数の下位部分の数値、即ち、10進数で示すと、0〜65535の数値データを記憶できるように設定されている。
【0041】
また、前記メモリM0〜Mn以外に、メモリMkが設定されており、このメモリMkには、スタータ駆動回数の下位部分を記憶する前記メモリM1〜Mnのどれが現在使用中であるかを示すアドレスが記憶されている。尚、アドレスは、メモリM0〜Mnにおいて、0〜nの数値が順番に設定されている。
【0042】
従って、このEEPROM19とマイクロコンピュータ3との間で、スタータ駆動回数を示すカウンタデータ等をやりとりすることにより、後に詳述する様に、スタータ駆動回数を正確に記憶することができる。
c)次に、エンジンECU1にて行われる、アイドルストップ&スタート制御(ISS制御)について簡単に説明する。
【0043】
このISS制御とは、エンジンの不要な作動期間を低減して、燃料の節約や排ガスの低減を図る制御である。
例えば赤信号での停止時にエンジンを自動停止させ、青信号での発進時にエンジンの自動始動を行うことにより、エンジンの不要な作動期間を低減して、燃料の節約や排ガスの低減を図る制御である。また、例えば車速が0で、車両のドアが開かれた場合に、エンジンを自動停止する制御を行ってもよい。
【0044】
従って、ISS制御の場合には、そうでない場合と比べて、スタータ駆動回数が多くなるが、スタータ駆動回数には上述したスタータ駆動保障回数による制限がある。
そのため、本実施例では、以下に述べる様に、スタータ駆動回数をカウントし、スタータ駆動回数がスタータ駆動保障回数以上であるか否かを常にチェックして、その値以上になると、スタータ交換要求として、警告ランプ35を点灯させる等の運転者に対する警告を行う。
【0045】
d)次に、上述したエンジンECU1にて実施される、スタータ駆動回数のチェック等の処理について説明する。
▲1▼記憶データの読出処理
本処理は、EEPROM19のデータをRAM27に読み出す処理である。
【0046】
図3のフローチャートに示す様に、まず、ステップ100にて、IGスイッチ21がオフ(OFF)からオン(ON)に切り換えられたか否かを判定する。ここで肯定判断されるとステップ110に進み、一方否定判断されると一旦本処理を終了する。
【0047】
ステップ110では、EEPROM19のメモリMkから、下位ワードのメモリM1〜Mnのうち、現在使用中のメモリを示す指示データ(アドレス)を読み出して、RAM27に「p」としてコピーする。
続くステップ120では、EEPROM19の上位ワードのメモリM0のデータ「i(上位)」を読み出し、それをRAM27の対応するメモリMAに記憶する。
【0048】
続くステップ130では、前記「p」の値であるアドレスが示す下位ワードメモリMpのデータを読み出し、RAM27の対応するメモリRBに記憶する。
従って、本処理により、上位ワードのデータと下位ワードのデータが、RAM27のメモリRA、RBに記憶されることになる。即ち現在までのスタータ総駆動回数がRAM27に記憶されることになる。
【0049】
▲2▼始動回数カウント処理
本処理は、IGスイッチ21の1回のオンの期間において、マニュアルでの始動及び自動始動によるスタータ駆動回数(始動回数)を検出する処理である。
図4のフローチャートに示す様に、まず、ステップ200にて、STA信号が入力したか否かによって、スタータ33が駆動されたか(即ち始動検出か)否かを判定する。ここで肯定判断されるとステップ210に進み、一方否定判断されると一旦本処理を終了する。
【0050】
尚、マニュアルにてIGスイッチ21が操作されてスタータ33が駆動された場合でも、第2出力回路15からの信号によって自動始動された場合でも、エンジンECU1にはSTA信号が入力するので、同様にスタータ33が駆動されたことを検出することができる。
【0051】
また、ここでは、STA信号の電圧が、一定電圧以上であり且つ一定時間以上保持され、その後一定電圧以下になった場合に、スタータ33の1回の駆動とみなす。
ステップ210では、今回スタータ33が駆動されたので、スタータ駆動回数を更新する処理、即ち今回のIGスイッチ21のオンの期間における始動回数(今回始動回数KS)をカウントアップし、その値をRAM27に記憶する処理を行い、一旦本処理を終了する。
【0052】
本処理により、始動が検出される度に、IGスイッチ21のオンに期間における今回始動回数KSがカウントアップされる。
▲3▼記憶データの書込処理
本処理は、EEPROM19のデータを更新するための処理である。
【0053】
図5のフローチャートに示す様に、ステップ300では、IGスイッチ21がオンからオフに切り換えられたか否かを判定する。ここで肯定判断されるとステップ310に進み、一方否定判断されると一旦本処理を終了する。
ステップ310では、EEPROM19のメモリMkのデータ(アドレス)を読み出し、RAM27に「p」としてコピーする。
【0054】
続くステップ320では、スタータ総駆動回数iを求める。具体的には、RAMのメモリRA、RBに記憶した2ワードのデータから、前回IGスイッチ21がオンになった時点のスタータ総駆動回数に、その後IGスイッチ21がオンの期間に計数した今回始動回数KSの値を加算して、現時点までのスタータ総駆動回数iを求める。
【0055】
続くステップ330では、スタータ総駆動回数iが、「g*p」以上であるか否かを判定する。ここで肯定判断されるとステップ340に進み、一方否定判断されるとステップ350に進む。
つまり、「g」とは書込保障回数であり、「p」とは下位ワードのアドレスであるので、「g*p」とは、例えばメモリM1が使用されている場合には10万回のスタータ総駆動回数、メモリM2が使用されている場合には20万回のスタータ総駆動回数の様に、下位ワードの各メモリM1〜Mnにおける書込回数が書込保障回数に達したか否かを判定する判定値である。
【0056】
従って、この判定により、現在使用中の下位ワードのメモリが書込保障回数に達したか否かを判定することができる。
ステップ340では、下位ワードが書込保障回数に達したので、次にデータを書き込む(第2書込単位である)下位ワードのメモリを移動させるために、「p」をカウントアップする。尚、このステップ340がスキップされると、当然ながら「p」はカウントアップされないので、前回値のままである。
【0057】
続くステップ350では、前記ステップ320で求めたスタータ総駆動回数iのうち、その上位部分に相当する数値を、EEPROM19のメモリM0に書き込む。
続くステップ360では、前記ステップ320で求めたスタータ総駆動回数iのうち、その下位部分に相当する数値を、アドレス「p」にて指定されたEEPROM19のメモリMpに書き込む。
【0058】
このスタータ総駆動回数iの下位部分に相当する数値を書き込むメモリMpとは、前記ステップ340で更新された「p」の値又は更新されない前回の「p」の値が示すアドレスのメモリMpである。
続くステップ370では、カウントアップされた「p」の値を、EEPROM19のメモリMkに書き込み、一旦本処理を終了する。
【0059】
本処理により、EEPROM19に新しいスタータ総駆動回数を書き込むことができる。つまり、今までと同じ上位ワードのメモリM0と、必要に応じて変更された下位ワードのメモリMpを用いて、スタータ総駆動回数を記憶することができる。
【0060】
▲4▼次に、スタータ劣化判定処理について説明する。
本処理は、スタータ33の劣化を判定するための処理であり、所定期間毎に実行される。
図6のフローチャートに示す様に、ステップ400では、前記図5のステップの320処理により算出されたスタータ総駆動回数iに、現時点までに記憶された今回始動回数KSを加算して、スタータ33の使用開始から現時点までのスタータ総駆動回数iiを算出する。
【0061】
続くステップ410では、そのスタータ総駆動回数iiが、例えば45万回のスタータ駆動保障回数以上となったか否かを判定する。ここで肯定判断されるとステップ420に進み、一方否定判断されると、まだスタータ33は正常に作動できる少ない始動回数であるので、一旦本処理を終了する。
【0062】
ステップ420では、スタータ総駆動回数iiがスタータ駆動保障回数以上となり、その後のスタータ33の駆動が保障されないので、そのことを運転者等に報知するために、警告ランプ35を点灯し、一旦本処理を終了する。
本処理により、スタータ33の寿命が来たこと、運転者等に正確に知らせることができる。
【0063】
尚、警告ランプ35の点灯だけでなく、ISS制御を行っている場合には、そのISS制御を中止することが望ましい。
e)上述した構成により、本実施例は、下記の効果を奏する。
・本実施例では、不揮発性メモリの第1書込単位であるメモリM0に、現在のスタータ総駆動回数の上位部分を記憶し、複数の第2書込単位であるメモリM1〜Mnのいずれかに現在のスタータ総駆動回数の下位部分を記憶している。
【0064】
そして、IGスイッチ21がオンからオフに切り換えられたときには、スタータ総駆動回数の下位部分を記憶する下位ワードのメモリが書込保障回数以上である否かを判定し、書込保障回数以上である場合には、スタータ総駆動回数の下位部分を記憶する下位ワードのメモリを指定するアドレスをカウントアップして、次に使用する下位ワードのメモリを変更している。また、その場合には、スタータ総駆動回数の上位部分を記憶する上位ワードのメモリの値をカウントアップしている。
【0065】
これにより、本実施例では、下位ワードのメモリの書込回数が書込保障回数となった場合にのみ、他の下位ワードのメモリを使用するので、メモリ効率が高いという効果がある。
また、上位ワードのメモリに関しては、下位ワードのメモリが変更される毎にカウントアップされるだけであるので、下位ワードのメモリが書込保障回数に達した場合でも、上位ワードのメモリは書込保障回数に達しない。よって、そのまま、同じ書込単位である上位ワードのメモリを使用するので、その点からも、メモリ効率が高いという利点がある。
【0066】
・また、本実施例では、スタータ総駆動回数がスタータ駆動保障回数以上となった場合には、警告ランプ35を点灯して、運転者にスタータ33の交換を促しているので、突然の始動不良が発生し難く、常に安全な運転が可能となる。
・更に、スタータ総駆動回数がスタータ駆動保障回数以上となった場合には、ISS制御を中止することにより、それ以降のスタータ駆動回数の増加の程度を低減することができる。
【0067】
つまり、スタータ駆動総回数がスタータ駆動保障回数を上回るにつれて、始動動作が好適に行えない可能性が増加するので、スタータ駆動総回数の多くなるISS制御を中止するのである。これにより、ISS制御中止以降は、IGキーによるエンジンの始動のみとするので、スタータ33の信頼性を確保することができる。
【0068】
尚、本発明は前記実施例になんら限定されるものではなく、本発明を逸脱しない範囲において種々の態様で実施しうることはいうまでもない。
【図面の簡単な説明】
【図1】実施例の電子制御装置の概略構成を示す説明図である。
【図2】実施例のEEPROMのメモリを示す説明図である。
【図3】実施例の記憶データ読出処理を示すフローチャートである。
【図4】実施例の始動回数カウント処理を示すフローチャートである。
【図5】実施例の記憶データ書込処理を示すフローチャートである。
【図6】実施例のスタータ劣化判定処理を示すフローチャートである。
【符号の説明】
1…電子制御装置
3…マイクロコンピュータ
5…メイン電源回路
19…EEPROM
21…イグニッションスイッチ(IGスイッチ)
23…バッテリ
27…ノーマルRAM(RAM)
33…スタータ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an electronic control device that can reliably store, for example, the number of times a starter of an automobile engine is driven in a nonvolatile memory.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, for controlling an engine of an automobile, for example, an electronic control device mainly including a microcomputer has been used.
In this electronic control device, a RAM (normal RAM), an EEPROM, or the like is used to store various data. Among them, the RAM is a memory whose data is not guaranteed when the ignition key is turned off, and the EEPROM is a nonvolatile memory which can hold (write) data even when the power is turned off.
[0003]
For example, when the stored data is the number of times the starter has been driven (the number of starts), the starter has a life based on the number of starts. Therefore, especially when the number of starts is larger than usual, such as in idle stop & starter control (control of automatic stop and automatic start of the engine; ISS control), it is checked whether or not the number of starts exceeds the guaranteed number of starter driving. It is important to.
[0004]
In addition, since the number of starts needs to be maintained even when the ignition switch is turned off or when the battery is replaced, the number of starts must be stored in a nonvolatile memory such as an EEPROM.
However, the EEPROM has a guaranteed number of times of writing (allowable number of times of writing). If the number of times exceeds that, data may not be correctly written. Therefore, various techniques have been proposed as data storage means.
[0005]
For example, the number of occurrences A is added to the value C stored at the memory address in use of the EEPROM, and the total value (C + A) is stored in the EEPROM, and the total value (C + A) is the allowable number. When the judgment value V is exceeded, the memory address is moved from the used memory address to another memory address, and (C + AV) is written to the new memory address. When the number of used memory addresses is K, a method has been proposed in which the total number of occurrences is represented by (C + KV) (see Japanese Patent Publication No. 7-79000).
[0006]
[Problems to be solved by the invention]
However, in the above-described technique, when storing large counter data such as 500,000 start times, a plurality of memory addresses (for example, two memory addresses over two words) are required, so that the memory efficiency is increased. Sometimes got worse.
[0007]
That is, in the two memory addresses that are currently in use (that is, the upper memory address that stores the upper part of the numerical value and the lower memory address that stores the lower part), when the number of starts is stored, the lower memory However, in the prior art, when the number of times of writing of the lower memory address is exceeded, all (that is, two) memory addresses for storing the number of starts are changed.
[0008]
Therefore, although the upper memory address does not exceed the number of times of writing guarantee, all memory addresses are changed, and there is a problem that the memory efficiency is low.
SUMMARY An advantage of some aspects of the invention is to provide an electronic control device having high memory efficiency in a nonvolatile memory.
[0009]
Means for Solving the Problems and Effects of the Invention
(1) The invention of claim 1 is
A writable nonvolatile memory (for example, an EEPROM) capable of holding stored contents even when the power is turned off is provided, and counter data for counting the number of times a predetermined event occurs is stored in a plurality of write units of the nonvolatile memory. An electronic control unit for storing, wherein a first write unit for storing an upper part of the counter data is provided in the nonvolatile memory, and a plurality of second write units for storing a lower part of the counter data are provided. Provided,A predetermined one of the plurality of second writing unitsThe number of times of writing in the second writing unit isBased on the number of times the nonvolatile memory is guaranteed to be writtenThe gist of the present invention resides in that an electronic control device is characterized in that, when the value becomes equal to or more than a predetermined judgment value, the writing unit for storing the lower part of the counter data is changed to another second writing unit.
[0010]
In the present invention, a plurality of write units are set in order to store predetermined counter data (for example, the number of times the starter has been driven) in the nonvolatile memory. Specifically, the nonvolatile memory is provided with a first write unit for storing the upper part of the counter data and a plurality of second write units for storing the lower part of the counter data.
[0011]
When the number of times of writing in the second writing unit is equal to or greater than a predetermined determination value, the writing unit for storing the lower part of the counter data is changed to another second writing unit.
In other words, for example, when storing counter data such as the number of times the starter has been driven, the lower part of the counter data frequently changes, and thus a numerical value is frequently written in the second write unit that stores the lower part. Therefore, the second writing unit reaches, for example, the write guarantee count (allowable write count) earlier than the first writing unit.
[0012]
However, in this case, the first write unit for storing the upper part has not reached the number of times of writing guarantee, and if both the upper and lower write units are changed as in the conventional case, the effective use of the memory is not achieved. Can not.
Therefore, in the present invention, even when the used second writing unit becomes equal to or more than a predetermined determination value, the first writing unit is used without being changed, and only the second writing unit is used for the other second writing unit. It is changed to a writing unit. As a result, the first write unit that can still be used is not changed, so that there is an effect that the memory efficiency is high.
[0013]
Note that the write unit indicates the minimum unit in which data is written or read, for example, in an EEPROM.
(2) The invention of claim 2 is
A volatile memory; and a writable non-volatile memory capable of retaining stored contents even when power is shut off by turning off an IG switch. A predetermined event occurs in a plurality of write units of the non-volatile memory. An electronic control unit for a vehicle that stores counter data for counting the number of times that the IG switch is turned on, wherein when the IG switch is turned on, the counter data stored in the non-volatile memory is stored in the volatile memory. During ON, the number of occurrences of the predetermined event is counted and stored in the volatile memory, and when the IG switch is OFF, the counter data stored in the volatile memory is stored in the nonvolatile memory. Further comprising a first write unit for storing an upper part of the counter data in the nonvolatile memory; A plurality of second write units for storing a lower part of data are provided, and the number of writes in a predetermined second write unit among the plurality of second write units is equal to the number of write guarantees of the nonvolatile memory. When the predetermined value is equal to or more than the predetermined judgment value, the writing unit for storing the lower part of the counter data is changed to another second writing unit.The gist is an electronic control unit.
[0014]
Similarly to the first aspect of the present invention, when the number of times of writing in the second writing unit is equal to or more than a predetermined determination value, the writing unit for storing the lower part of the counter data is replaced with another writing unit. Since the unit is changed to the second writing unit, there is an advantage that the memory efficiency is high.
In the present invention, the writing unit indicates the minimum unit in which data is written or read, for example, in an EEPROM.
(3) The invention of claim 3 is:
A volatile memory; and a writable non-volatile memory capable of retaining stored contents even when power is shut off by turning off an IG switch. A predetermined event occurs in a plurality of write units of the non-volatile memory. An electronic control unit for a vehicle that stores counter data for counting the number of times that the IG switch is turned on, wherein when the IG switch is turned on, the counter data stored in the non-volatile memory is stored in the volatile memory. During ON, the number of occurrences of the predetermined event is counted and stored in the volatile memory, and when the IG switch is OFF, the counter data stored in the volatile memory is stored in the nonvolatile memory. Further comprising a first write unit for storing an upper part of the counter data in the nonvolatile memory; A plurality of second write units for storing a lower part of data are provided, and the number of write operations in a predetermined second write unit among the plurality of second write units is equal to or greater than the number of write guarantees of the nonvolatile memory. In this case, the writing unit for storing the lower part of the counter data is changed to another second writing unit.The gist is an electronic control unit.
According to the present invention, when the number of times of writing in the second writing unit is equal to or larger than the guaranteed number of times of writing in the nonvolatile memory, the writing unit for storing the lower part of the counter data is changed to another second writing unit. The change has the advantage of high memory efficiency.
In the present invention, the writing unit indicates the minimum unit in which data is written or read, for example, in an EEPROM.
(4) Claim 4The invention of
2. The method according to claim 1, wherein the first writing unit is fixed, and only the plurality of second writing units are changed according to the determination.Any of 3The gist is the electronic control device described in (1).
[0015]
In the present invention, the first write unit is fixed, and when a certain second write unit in use reaches, for example, the number of times of writing, the number of times is changed to another number of times of writing.
Note that a plurality of first writing units may be set depending on the counter data.
(5) Claim 5The invention of
The non-volatile memory is provided with a storage area for storing designation data for designating a write unit to be used, separately from the storage areas for the first write unit and the second write unit. Item 14The gist is the electronic control device according to any one of the above.
[0016]
Since the second writing unit is changed according to the determination, it is necessary to specify its position. Therefore, in the present invention, an area for storing designated data (address) for designating the position is provided in the nonvolatile memory.
(6) Claim 6The invention of
The said counter data is the number of times of starter drive of an engine, The said Claim 1 characterized by the above-mentioned.5The gist is the electronic control device according to any one of the above.
[0017]
The present invention exemplifies counter data. According to the present invention, with the above-described configuration, the number of times the starter has been driven can be efficiently stored.
(7) Claim 7The invention of
The main counter data is obtained based on the counter data stored in the first write unit and the second write unit of the nonvolatile memory, and the main counter data is compared with a predetermined determination value. 3. The method according to claim 1, wherein a state of a target indicated by the main counter data is determined based on the main counter data.6The gist is the electronic control device according to any one of the above.
[0018]
For example, the main counter data, which is the total number of times of driving of the starter, includes an upper part of the counter data stored in the first writing unit and a lower part of the counter data stored in the currently used second writing unit. The main counter data indicates a target state indicated by the main counter data (for example, a use state of the starter).
[0019]
Therefore, by comparing the main counter data with a predetermined determination value, it is possible to determine the state (for example, whether or not the number of times the starter has been driven is equal to or greater than the guaranteed number of starter drives).
(8) Claim 8The invention of
The said main counter data is the total number of starter driving of the vehicle, and when the total number of starter driving becomes equal to or more than the guaranteed number of starter driving, the fact is notified.7The gist is the electronic control device described in (1).
[0020]
The present invention exemplifies an object indicated by the main counter data.
Here, since the main counter data is the total number of starter drive times, if the total number of starter drive times is equal to or greater than the guaranteed number of starter drive times, for example, a notification to that effect is issued to prevent poor starting and the like. it can.
[0021]
(9) Claim 9The invention of
The said electronic control device is a device which can perform automatic stop (for example, idle stop & start control) of an engine by an automatic stop of a vehicle-mounted engine and / or a starter, The said Claim 1 characterized by the above-mentioned.8The gist is the electronic control device according to any one of the above.
[0022]
The electronic control device of the present invention is a device for automatically stopping the engine or automatically starting the engine by using a starter. Therefore, the number of times the starter is driven tends to increase as compared with the case where such control is not performed. In particular, when the engine is automatically started, the number of times the starter is driven by the ignition key is added to the number of times the starter is driven by the ignition key of the driver.
[0023]
Therefore, when performing such control of automatic stop and automatic start of the engine, it is very important to check whether or not the number of times of starter driving is equal to or more than the number of times of guaranteed starter driving. In the case of performing an appropriate control, it is possible to reliably check the number of times the starter is driven.
[0024]
Therefore, when the number of times of starter driving is equal to or more than the guaranteed number of times of starter driving, the driver can be notified by a warning lamp or the like to urge the replacement of the starter. Alternatively, when the number of times the starter has been driven is equal to or greater than the guaranteed number of times of starter driving, the life of the starter can be extended by restricting the automatic start of the engine as necessary.
[0025]
The idle stop & start control is a control for automatically stopping and starting the engine when a predetermined condition is satisfied.
Specifically, in order to reduce fuel consumption and exhaust gas, for example, the engine is automatically stopped when a traffic light stops, and the engine is automatically started when a traffic light starts. Alternatively, when the vehicle speed is 0 and the door is opened, the engine is automatically stopped.
[0026]
The electronic control device for performing the idle stop & start control includes a "stoppable state determination means for determining whether the engine of the vehicle is in a state in which the engine of the vehicle may be stopped, and a stoppable state determination. Automatic stopping means for automatically stopping the engine when the means is affirmatively determined; and startable state determining means for determining whether or not the engine of the vehicle is ready to start when the automatic stopping means is executed. And an automatic start means for automatically starting the engine when the start possible state judgment means makes an affirmative judgment. "
[0027]
BEST MODE FOR CARRYING OUT THE INVENTION
Next, an example (example) of an embodiment of an electronic control device of the present invention will be described with reference to the drawings.
(Example)
a) First, a basic configuration of an electronic control unit for engine control according to the present embodiment will be described.
[0028]
As shown in FIG. 1, an electronic control unit (hereinafter simply referred to as an engine ECU) 1 for controlling an engine according to the present embodiment is a device mainly constituted by a microcomputer 3, and includes a starter and an idle stop & start control. The number of times of driving can be checked.
[0029]
The engine ECU 1 includes, in addition to the microcomputer 3, a main power supply circuit 5 as a power supply system, an input circuit 9 and a waveform shaping circuit 11 as an input system, and first to third output circuits 13 as an output system. 15 and 17 are provided. An EEPROM 19 and the like are provided as storage means for various data. This will be described in detail below.
[0030]
When the ignition switch (IG switch) 21 is turned on, the main power supply circuit 5 receives the supply of the voltage (+ B) from the battery 23 and supplies a predetermined voltage (Vom) to the input circuit 9 and the microcomputer 3. Things.
The microcomputer 3 includes a CPU 24, a ROM 25, and a RAM (normal RAM) 27. The RAM 27 is a memory that holds contents (data) by supplying a voltage from the main power supply circuit 5 while the IG switch 21 is on.
[0031]
The EEPROM 19 is a non-volatile memory capable of retaining the contents (for example, data of the number of times the starter has been driven) even when the main power supply goes down, and when a predetermined voltage (for example, 2 V or more) is supplied. , A memory to which data can be written.
[0032]
Therefore, the microcomputer 3 receives the voltage (Vom) from the main power supply, the EEPROM 19 receives the voltage (Vom) from the main power supply, and data can be exchanged between the RAM 27 and the EEPROM 19. For example, the counter data can be written in the EEPROM 19 based on the starter drive count data (counter data) stored in the RAM 27.
[0033]
Then, in the configuration of FIG. 1 described above, the IG switch 21 connected to the battery 23 is turned on by operating an ignition key (IG key) (not shown), so that the engine ECU 1 is started. Further, when the IG key is turned to the ST position of the IG switch 21, the motor 33a of the starter 33 is driven, and the engine starts.
[0034]
Also, during operation of the engine, the engine ECU 1 takes in engine operation signals such as an engine speed signal NE and a vehicle speed signal SPD, and sensor signals such as a throttle opening signal TA and a cooling water temperature signal THW to obtain electromagnetic valves 37. And outputs a control signal for fuel injection control or the like.
[0035]
b) Next, the configurations of the CPU 24, the RAM 27, the EEPROM 19, and the like, which are main parts of the present embodiment, will be described.
In the present embodiment, in order to detect that the starter drive count (start count) is equal to or greater than the starter drive guarantee count (guaranteed value for guaranteeing the operation of the starter 33; for example, 450,000 times), the following is performed. A configuration is provided for storing the number of times the starter has been driven in the EEPROM 19.
[0036]
As shown in FIG. 2, the CPU 24 of the microcomputer 3 determines a starter drive count measuring unit 24a that counts the number of starter drive, and an address that specifies a storage area in which the starter drive count is written (hereinafter also simply referred to as a memory). The storage area address determination unit 24b includes a storage area address determination unit 24b and a write protection number determination unit 24c that determines that the number of writes in the storage area has exceeded the write protection number of the EEPROM 19.
[0037]
In the RAM 27, a storage area for two words (4 bytes) is set in order to store 500,000 starter driving times.
That is, the storage area (memory RA) of the RAM 27 is set so as to be able to store the upper part of the number of starter driving times (ie, the upper word of 2 bytes of the counter data), and the storage area (memory RB) stores the number of starter driving times. (That is, a lower word of 2 bytes of the counter data).
[0038]
Further, in the EEPROM 19, a plurality of storage areas (memory M0 to Mn, Mk) which are write units of one word are set in order to store the number of times the starter is driven. In the EEPROM 19, access (reading and writing) can be performed only in units of one word (2 bytes).
[0039]
The number of times the EEPROM 19 is guaranteed to be written is 100,000 times, which is 0x186A0 in hexadecimal, so that two words are required. Further, in this embodiment, since 500,000 times are stored as the total number of times of driving of the starter, two words are required from that point of view. Therefore, the starter drive count is set so as to be stored separately in a 2-byte upper word and a 2-byte lower word.
[0040]
More specifically, in the storage area of the EEPROM 19, the memory M0 is a first writing unit and, like the RAM 27, is a numerical value of an upper part of the number of times of starter driving, that is, 65536 to 4294967295 as a decimal number. Is set to be able to store numerical data. Each of the memories M1 to Mn is a second writing unit, and is set so as to be able to store a numerical value of a lower part of the number of times of starter driving, that is, numerical data of 0 to 65535 in decimal. I have.
[0041]
In addition to the memories M0 to Mn, a memory Mk is set. The memory Mk stores an address indicating which one of the memories M1 to Mn that stores a lower part of the number of times of starter driving is currently in use. Is stored. The addresses are set in the memory M0 to Mn in numerical order from 0 to n.
[0042]
Therefore, by exchanging counter data indicating the number of times the starter has been driven between the EEPROM 19 and the microcomputer 3, the number of times the starter has been driven can be accurately stored, as will be described in detail later.
c) Next, the idle stop & start control (ISS control) performed by the engine ECU 1 will be briefly described.
[0043]
The ISS control is a control that saves fuel and reduces exhaust gas by reducing an unnecessary operation period of the engine.
For example, by automatically stopping the engine when stopping at a red light and automatically starting the engine when starting at a green light, unnecessary control of the engine is reduced to save fuel and reduce exhaust gas. . Further, for example, when the vehicle speed is 0 and the door of the vehicle is opened, control for automatically stopping the engine may be performed.
[0044]
Therefore, in the case of the ISS control, the number of times of starter driving is increased as compared with the case where the ISS control is not performed. However, the number of times of starter driving is limited by the above-mentioned number of times of starter driving assurance.
Therefore, in the present embodiment, as described below, the number of starter driving times is counted, and it is always checked whether the number of starter driving times is equal to or more than the number of guaranteed starter driving. Then, a warning is given to the driver such as turning on a warning lamp 35.
[0045]
d) Next, a description will be given of processing such as checking the number of times the starter has been driven, which is performed by the engine ECU 1 described above.
(1) Read processing of stored data
This process is a process of reading data from the EEPROM 19 to the RAM 27.
[0046]
As shown in the flowchart of FIG. 3, first, in step 100, it is determined whether or not the IG switch 21 has been switched from off (OFF) to on (ON). If the determination is affirmative, the process proceeds to step 110, while if the determination is negative, the process is temporarily terminated.
[0047]
At step 110, instruction data (address) indicating the currently used memory is read out from the memory Mk of the EEPROM 19 among the lower-order memories M1 to Mn, and copied to the RAM 27 as "p".
In the subsequent step 120, the data “i (upper)” of the upper word memory M0 of the EEPROM 19 is read and stored in the corresponding memory MA of the RAM 27.
[0048]
In the following step 130, the data of the lower word memory Mp indicated by the address which is the value of “p” is read and stored in the corresponding memory RB of the RAM 27.
Therefore, by this processing, the data of the upper word and the data of the lower word are stored in the memories RA and RB of the RAM 27. That is, the total number of times the starter has been driven so far is stored in the RAM 27.
[0049]
(2) Start count counting process
This process is a process of detecting the number of times the starter is driven (the number of times of start-up) by manual start and automatic start during a single ON period of the IG switch 21.
As shown in the flowchart of FIG. 4, first, in step 200, it is determined whether or not the starter 33 has been driven (that is, whether or not start-up has been detected) based on whether or not the STA signal has been input. Here, if the determination is affirmative, the process proceeds to step 210, while if the determination is negative, the process is temporarily terminated.
[0050]
Note that the STA signal is input to the engine ECU 1 regardless of whether the starter 33 is driven by manually operating the IG switch 21 or automatically started by a signal from the second output circuit 15. It is possible to detect that the starter 33 has been driven.
[0051]
Here, when the voltage of the STA signal is equal to or higher than a certain voltage and is held for a certain time or longer, and then becomes equal to or lower than the certain voltage, it is considered that the starter 33 is driven once.
In step 210, since the starter 33 has been driven this time, the process of updating the number of times the starter has been driven, that is, the number of starts (current start number KS) in the ON period of the current IG switch 21 is counted up, and the value is stored in the RAM 27. The storage process is performed, and the process ends once.
[0052]
By this process, every time the start is detected, the number of times of starting KS in the period during which the IG switch 21 is turned on is counted up.
(3) Storage data write processing
This process is a process for updating data in the EEPROM 19.
[0053]
As shown in the flowchart of FIG. 5, in step 300, it is determined whether or not the IG switch 21 has been switched from on to off. Here, if the determination is affirmative, the process proceeds to step 310, while if the determination is negative, the process is temporarily terminated.
In step 310, the data (address) in the memory Mk of the EEPROM 19 is read and copied to the RAM 27 as "p".
[0054]
In the following step 320, the total number of starter drive times i is determined. Specifically, from the two-word data stored in the memories RA and RB of the RAM, the number of times the starter has been driven last time when the IG switch 21 was turned on last time, and the current start count counted during the period when the IG switch 21 is on thereafter By adding the value of the number of times KS, the total number of starter driving times i up to the present time is obtained.
[0055]
In the following step 330, it is determined whether or not the total number i of drive of the starter is equal to or more than “g * p”. If the determination is affirmative, the process proceeds to step 340, while if the determination is negative, the process proceeds to step 350.
That is, “g” is the number of times of writing guarantee, and “p” is the address of the lower word, so “g * p” is, for example, 100,000 times when the memory M1 is used. Whether the number of times of writing in each of the memories M1 to Mn of the lower word has reached the number of times of guaranteed writing, such as the total number of starter driving, or the total number of starter driving of 200,000 when the memory M2 is used. Is a determination value for determining.
[0056]
Therefore, by this determination, it can be determined whether or not the memory of the lower word currently in use has reached the number of times of writing guarantee.
In step 340, since the lower word has reached the guaranteed write count, "p" is counted up in order to move the memory of the lower word in which data is to be written next (the second write unit). If this step 340 is skipped, “p” is not counted up, so that it remains at the previous value.
[0057]
In the following step 350, the numerical value corresponding to the upper part of the total number of starter driving times i obtained in step 320 is written in the memory M0 of the EEPROM 19.
In the following step 360, the numerical value corresponding to the lower part of the total number of starter driving times i obtained in step 320 is written to the memory Mp of the EEPROM 19 specified by the address "p".
[0058]
The memory Mp into which the numerical value corresponding to the lower part of the total number of starter driving times i is written is the memory Mp at the address indicated by the value of “p” updated in step 340 or the previous value of “p” not updated. .
In the following step 370, the counted-up value of “p” is written in the memory Mk of the EEPROM 19, and the present process is ended once.
[0059]
With this processing, the new starter total drive count can be written in the EEPROM 19. In other words, the starter total drive count can be stored using the same upper word memory M0 as before and the lower word memory Mp changed as necessary.
[0060]
{Circle around (4)} Next, the starter deterioration determination processing will be described.
This process is a process for determining the deterioration of the starter 33, and is executed every predetermined period.
As shown in the flowchart of FIG. 6, in step 400, the starter number KS stored up to the present time is added to the starter total number of drive times i calculated in step 320 of FIG. The total number of starter driving times ii from the start of use to the present time is calculated.
[0061]
In the following step 410, it is determined whether or not the total number of starter driving times ii has become equal to or more than the 450,000 starter driving guarantee times, for example. If the determination is affirmative, the process proceeds to step 420. On the other hand, if the determination is negative, the starter 33 still has a small number of start-ups that can normally operate, and thus the process is temporarily terminated.
[0062]
In step 420, since the total number of starter driving ii becomes equal to or more than the number of guaranteed starter driving, and the subsequent driving of the starter 33 is not guaranteed, the warning lamp 35 is turned on to notify the driver or the like of the starter 33. To end.
By this processing, it is possible to accurately inform the driver or the like that the life of the starter 33 has expired.
[0063]
When ISS control is performed in addition to lighting of the warning lamp 35, it is desirable to stop the ISS control.
e) With the above-described configuration, the present embodiment has the following effects.
In the present embodiment, the upper part of the current total number of starter driving is stored in the memory M0 as the first writing unit of the nonvolatile memory, and any one of the memories M1 to Mn as the plurality of second writing units is stored. The lower part of the current total number of drive of the starter is stored.
[0064]
Then, when the IG switch 21 is switched from on to off, it is determined whether or not the memory of the lower word storing the lower part of the total number of drive of the starter is equal to or greater than the write guarantee number, and is equal to or greater than the write guarantee number. In such a case, the address specifying the memory of the lower word for storing the lower part of the total number of drive of the starter is counted up, and the memory of the lower word to be used next is changed. Also, in that case, the value of the memory of the upper word storing the upper part of the total number of starter drive times is counted up.
[0065]
As a result, in this embodiment, since the memory of the other lower word is used only when the number of times of writing to the memory of the lower word becomes the number of times of writing, the memory efficiency is high.
Also, since the upper word memory is only counted up each time the lower word memory is changed, even if the lower word memory has reached the write guarantee count, the upper word memory is not written. The number of guarantees is not reached. Therefore, since the memory of the upper word, which is the same writing unit, is used as it is, there is an advantage that the memory efficiency is high also from that point.
[0066]
Also, in the present embodiment, when the total number of starter drives exceeds the guaranteed starter drive count, the warning lamp 35 is turned on to urge the driver to replace the starter 33. Is less likely to occur and safe driving is always possible.
Further, when the total number of starter driving times is equal to or larger than the guaranteed starter driving number, the degree of increase in the number of starter driving times thereafter can be reduced by stopping the ISS control.
[0067]
In other words, as the total number of starter driving times exceeds the guaranteed starter driving number, the possibility that the starting operation cannot be appropriately performed increases, so that the ISS control in which the total number of starter driving times increases is stopped. Thus, after the ISS control is stopped, only the engine is started by the IG key, so that the reliability of the starter 33 can be ensured.
[0068]
It should be noted that the present invention is not limited to the above-described embodiment at all, and it goes without saying that the present invention can be implemented in various modes without departing from the present invention.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram illustrating a schematic configuration of an electronic control device according to an embodiment.
FIG. 2 is an explanatory diagram showing a memory of an EEPROM of an embodiment.
FIG. 3 is a flowchart illustrating a stored data reading process according to the embodiment;
FIG. 4 is a flowchart illustrating a start count counting process according to the embodiment.
FIG. 5 is a flowchart illustrating a storage data writing process according to the embodiment;
FIG. 6 is a flowchart illustrating starter deterioration determination processing according to the embodiment.
[Explanation of symbols]
1. Electronic control unit
3. Microcomputer
5: Main power supply circuit
19… EEPROM
21 ... Ignition switch (IG switch)
23… Battery
27 ... Normal RAM (RAM)
33 ... Starter

Claims (9)

電源遮断時にも記憶内容を保持することができる書き込み可能な不揮発性メモリを備え、
前記不揮発性メモリの複数の書込単位に、所定の事象が発生する回数を計数するカウンタデータを記憶する電子制御装置であって、
前記不揮発性メモリに、前記カウンタデータの上位部分を記憶する第1書込単位を設けるとともに、前記カウンタデータの下位部分を記憶する複数の第2書込単位を設け、
前記複数の第2書込単位のうち、所定の第2書込単位における書込回数が前記不揮発性メモリの書込保障回数に基づいて所定の判定値以上となった場合には、前記カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更することを特徴とする電子制御装置。
Equipped with a writable nonvolatile memory that can retain the stored contents even when the power is turned off,
An electronic control unit that stores counter data for counting the number of times a predetermined event occurs in a plurality of write units of the nonvolatile memory,
A first writing unit that stores an upper part of the counter data, and a plurality of second writing units that store a lower part of the counter data;
When the number of writes in a predetermined second write unit among the plurality of second write units is equal to or greater than a predetermined determination value based on the guaranteed number of writes in the nonvolatile memory , the counter data An electronic control unit for changing a writing unit for storing a lower part of the second writing unit to another second writing unit.
揮発性メモリと、IGスイッチのオフによる電源遮断時にも記憶内容を保持することができる書き込み可能な不揮発性メモリと、を備え、
前記不揮発性メモリの複数の書込単位に、所定の事象が発生する回数を計数するカウンタデータを記憶する自動車用の電子制御装置であって、
前記IGスイッチのオン時には、前記不揮発性メモリに記憶されたカウンタデータを前記揮発性メモリに記憶し、
前記IGスイッチのオン中は、前記所定の事象が発生する回数を計数して前記揮発性メモリに記憶し、
前記IGスイッチのオフ時には、前記揮発性メモリに記憶されたカウンタデータを前記不揮発性メモリに記憶する構成を備え、
更に、前記不揮発性メモリに、前記カウンタデータの上位部分を記憶する第1書込単位を設けるとともに、前記カウンタデータの下位部分を記憶する複数の第2書込単位を設け、
前記複数の第2書込単位のうち、所定の第2書込単位における書込回数が前記不揮発性メモリの書込保障回数に基づいて所定の判定値以上となった場合には、前記カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更することを特徴とする電子制御装置。
It includes a volatile memory, a nonvolatile memory writable that can also hold the stored contents when the power is cut off due to the off of the IG switch, a,
An electronic control unit for a vehicle that stores counter data for counting the number of times a predetermined event occurs in a plurality of write units of the nonvolatile memory,
When the IG switch is ON, the counter data stored in the nonvolatile memory is stored in the volatile memory,
While the IG switch is on, the number of times the predetermined event occurs is counted and stored in the volatile memory,
When the IG switch is turned off, a configuration is provided in which the counter data stored in the volatile memory is stored in the nonvolatile memory,
Further, in the nonvolatile memory, a first write unit that stores an upper part of the counter data is provided, and a plurality of second write units that store a lower part of the counter data are provided.
When the number of writes in a predetermined second write unit among the plurality of second write units is equal to or greater than a predetermined determination value based on the guaranteed number of writes in the nonvolatile memory , the counter data An electronic control unit for changing a writing unit for storing a lower part of the second writing unit to another second writing unit.
揮発性メモリと、IGスイッチのオフによる電源遮断時にも記憶内容を保持することができる書き込み可能な不揮発性メモリと、を備え、A volatile memory, and a writable non-volatile memory capable of retaining stored contents even when power is shut off by turning off an IG switch;
前記不揮発性メモリの複数の書込単位に、所定の事象が発生する回数を計数するカウンタデータを記憶する自動車用の電子制御装置であって、  An electronic control unit for a vehicle that stores counter data for counting the number of times a predetermined event occurs in a plurality of write units of the nonvolatile memory,
前記IGスイッチのオン時には、前記不揮発性メモリに記憶されたカウンタデータを前記揮発性メモリに記憶し、  When the IG switch is turned on, the counter data stored in the nonvolatile memory is stored in the volatile memory,
前記IGスイッチのオン中は、前記所定の事象が発生する回数を計数して前記揮発性メモリに記憶し、  While the IG switch is on, the number of occurrences of the predetermined event is counted and stored in the volatile memory,
前記IGスイッチのオフ時には、前記揮発性メモリに記憶されたカウンタデータを前記不揮発性メモリに記憶する構成を備え、  When the IG switch is turned off, a configuration is provided in which the counter data stored in the volatile memory is stored in the nonvolatile memory,
更に、前記不揮発性メモリに、前記カウンタデータの上位部分を記憶する第1書込単位を設けるとともに、前記カウンタデータの下位部分を記憶する複数の第2書込単位を設け、  Further, in the nonvolatile memory, a first write unit that stores an upper part of the counter data is provided, and a plurality of second write units that store a lower part of the counter data are provided.
前記複数の第2書込単位のうち、所定の第2書込単位における書込回数が前記不揮発性メモリの書込保障回数以上となった場合には、前記カウンタデータの下位部分を記憶する書込単位を他の第2書込単位に変更することを特徴とする電子制御装置。  If the number of writes in a predetermined second write unit of the plurality of second write units is equal to or greater than the guaranteed write count of the non-volatile memory, the lower part of the counter data is stored. An electronic control unit for changing the writing unit to another second writing unit.
前記第1書込単位を固定とし、前記判定に応じて、前記複数の第2書込単位のみを変更することを特徴とする前記請求項1〜3のいずれかに記載の電子制御装置。Wherein the first write unit is fixed and in response to said determination, the electronic control device according to any one of claims 1-3, characterized by changing only the plurality of second writing unit. 前記不揮発性メモリに、前記第1書込単位及び第2書込単位の記憶領域とは別に、使用する書込単位を指定する指定データを記憶する記憶領域を設けたことを特徴とする前記請求項1〜のいずれかに記載の電子制御装置。The non-volatile memory is provided with a storage area for storing designation data for designating a write unit to be used, separately from the storage areas for the first write unit and the second write unit. Item 5. The electronic control device according to any one of Items 1 to 4 . 前記カウンタデータとは、エンジンのスタータ駆動回数であることを特徴とする前記請求項1〜のいずれかに記載の電子制御装置。The electronic control device according to any one of claims 1 to 5 , wherein the counter data is the number of times the engine has been driven by a starter. 前記不揮発性メモリの第1書込単位と第2書込単位とに記憶されたカウンタデータに基づいて主カウンタデータを求め、その主カウンタデータと所定の判定値とを比較し、その比較結果に基づいて、前記主カウンタデータの示す対象の状態を判断することを特徴とする前記請求項1〜のいずれかに記載の電子制御装置。The main counter data is obtained based on the counter data stored in the first write unit and the second write unit of the nonvolatile memory, and the main counter data is compared with a predetermined determination value. The electronic control device according to any one of claims 1 to 6 , wherein a state of a target indicated by the main counter data is determined based on the information. 前記主カウンタデータが車両のスタータ総駆動回数であり、そのスタータ総駆動回数がスタータ駆動保障回数以上となった場合には、その旨を報知することを特徴とする前記請求項に記載の電子制御装置。8. The electronic apparatus according to claim 7 , wherein the main counter data is the total number of starter driving of the vehicle, and when the total number of starter driving is equal to or more than the guaranteed number of starter driving, the fact is notified. Control device. 前記電子制御装置は、車載エンジンの自動停止及び/又はスタータによるエンジンの自動始動を行うことができる装置であることを特徴とする前記請求項1〜のいずれかに記載の電子制御装置。The electronic control device according to any one of claims 1 to 8 , wherein the electronic control device is a device capable of automatically stopping an onboard engine and / or automatically starting the engine by a starter.
JP2000010469A 2000-01-19 2000-01-19 Electronic control unit Expired - Fee Related JP3546791B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000010469A JP3546791B2 (en) 2000-01-19 2000-01-19 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000010469A JP3546791B2 (en) 2000-01-19 2000-01-19 Electronic control unit

Publications (2)

Publication Number Publication Date
JP2001200750A JP2001200750A (en) 2001-07-27
JP3546791B2 true JP3546791B2 (en) 2004-07-28

Family

ID=18538485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000010469A Expired - Fee Related JP3546791B2 (en) 2000-01-19 2000-01-19 Electronic control unit

Country Status (1)

Country Link
JP (1) JP3546791B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4686358B2 (en) * 2005-12-26 2011-05-25 ジヤトコ株式会社 Control device with flash memory
EP2685070A4 (en) * 2011-03-10 2015-11-11 Toyota Motor Co Ltd Vehicle control device
JP5556732B2 (en) * 2011-04-15 2014-07-23 株式会社デンソー Starter drive count storage system and electronic control unit

Also Published As

Publication number Publication date
JP2001200750A (en) 2001-07-27

Similar Documents

Publication Publication Date Title
JP2006347441A (en) Electronic control device
JP3460256B2 (en) Battery disconnection detector
JP3546791B2 (en) Electronic control unit
JP2000020178A (en) Electronic controller
JP2002323902A (en) Electronic controller
JP4760103B2 (en) Vehicle information backup device
JP4135269B2 (en) Electronic control device and recording medium
JP2001210083A (en) Electronic control device
WO2018079537A1 (en) Electronic control unit and data protection method therefor
JP4134477B2 (en) Electronic control unit
JP2004151944A (en) Method for writing data in non-volatile storage device, its program and device, and onboard electronic controller
JP5667810B2 (en) Control apparatus and control method
KR101274474B1 (en) Method and apparatus for data management in a vehicle
JP2008019716A (en) Electronic control device of vehicle
JP2772721B2 (en) Vehicle theft prevention and alarm system
JPH05289949A (en) Vehicle control device
JP2001202786A (en) Electronic control device
JP2001184265A (en) Electronic controller
JP2009013883A (en) Engine stopping and starting vehicle
JP2000274300A (en) Electronic control unit for vehicle
JP3190609B2 (en) Automotive circuit device having electrically rewritable nonvolatile memory
JP2000192844A (en) Engine control device
JP3444295B2 (en) Electronic control unit for vehicle engine
JP2004156590A (en) Vehicle control system
US7027281B2 (en) Failure detecting device

Legal Events

Date Code Title Description
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: 20040323

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040405

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: 20100423

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110423

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120423

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120423

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130423

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees