JP4135269B2 - Electronic control device and recording medium - Google Patents

Electronic control device and recording medium Download PDF

Info

Publication number
JP4135269B2
JP4135269B2 JP25422499A JP25422499A JP4135269B2 JP 4135269 B2 JP4135269 B2 JP 4135269B2 JP 25422499 A JP25422499 A JP 25422499A JP 25422499 A JP25422499 A JP 25422499A JP 4135269 B2 JP4135269 B2 JP 4135269B2
Authority
JP
Japan
Prior art keywords
count value
electronic control
data
control device
ram
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
JP25422499A
Other languages
Japanese (ja)
Other versions
JP2001076494A (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 JP25422499A priority Critical patent/JP4135269B2/en
Publication of JP2001076494A publication Critical patent/JP2001076494A/en
Application granted granted Critical
Publication of JP4135269B2 publication Critical patent/JP4135269B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、例えば自動車の始動に関するデータを確実に記憶することができる電子制御装置及び記録媒体に関する。
【0002】
【従来の技術】
従来より、例えば自動車のエンジン制御を行うために、マイクロコンピュータを中心とする電子制御装置が使用されている。
この電子制御装置では、各種のデータを記憶するために、RAM(ノーマルRAM)、スタンバイRAM、EEPROMなどが採用されている。
【0003】
このうち、RAMはイグニッションキーのオフ時にはデータが保障されないメモリであり、また、スタンバイRAMはバッテリ電圧が低下したり、バッテリ交換などにより電源が遮断されるとデータが保障されないメモリであるが、EEPROMは電源が切られた場合でもデータの保持が可能な(書き込み可能な)不揮発性メモリである。
【0004】
ところが、EEPROMには、書き込み保障回数があり、それを超えるとデータを正しく書き込むことができないことがあるため、データの記憶手段として、前記スタンバイRAMとEEPROMとを組み合わせた電子制御装置が考えられている。
【0005】
これは、書き込み回数に制限のないスタンバイRAMに、ある程度のデータ(例えばエンジンのスタータの始動回数を計数する第1カウント値)を貯え、その第1カウント値が基準値に達する毎に、EEPROMのデータ(例えば前記始動回数を算出するための第2カウント値)をカウントアップするという方法により、EEPROMの書き込み回数を減らそうとする技術である。
【0006】
【発明が解決しようとする課題】
しかしながら、上述した技術では、下記の様な問題がある。
つまり、上述した技術では、スタンバイRAMにデータを貯えているときに、バッテリ交換などにより電源の遮断が発生すると、スタンバイRAM内のデータは消失してしまうので、EEPROMに正確なデータを確保できないという問題がある。
【0007】
具体的には、例えばスタンバイRAM内の前記第1カウント値が消失することにより、EEPROM内に記憶される前記第2カウント値が本来の値より少なくなり、そのため、第2カウント値から換算処理をして始動回数を求めると、実際の始動回数より少ない値となってしまう。これにより、本来の始動回数より少ない始動回数であると見なされて、始動回数が過大になっても気づかず、結果としてスタータ駆動ができなくなることがあり、フェイルセイフ上好ましくない。
【0008】
本発明は、前記課題を解決するためになされたものであり、その目的は、RAMをバックアップする電圧状態を判断して、不揮発性メモリに記憶されるデータを安全側の値とすることができる電子制御装置及び記録媒体を提供することにある。
【0009】
【課題を解決するための手段及び発明の効果】
(1)請求項1の発明は、
電源によりバックアップされたRAM(例えばスタンバイRAM)と、電源遮断時にも記憶内容を保持することができる書き込み可能な不揮発性メモリ(例えばEEPROM)と、を備え、前記RAMに第1データを記憶するとともに、前記第1データが所定の基準値に達した場合に、前記不揮発性メモリの第2データを変更する電子制御装置であって、前記RAMの第1データを保障する保障電圧が維持されたか否かを判断する電圧状態判定手段と、前記電圧状態判定手段により前記保障電圧が維持されなかったと判断された場合には、前記不揮発性メモリの第2データを、前記第1データが所定の基準値に達した場合と同様に変更するデータ変更手段と、を備えたことを特徴とする電子制御装置を要旨とする。
【0010】
例えばバッテリ交換時のように、RAMをバックアップする保障電圧が維持されなかった場合には、RAMの第1データが適正なものではなく(通常はクリアされている)、その場合には、今までRAMに記憶した第1データを利用できないので、その第1データに基づいて不揮発性メモリの第2データを適正に変更できない。
【0011】
そこで、本発明では、RAMの第1データを保障する保障電圧が維持されなかったと判断された場合には、不揮発性メモリの第2データを、第1データが所定の基準値に達した場合と同様に変更する。
これにより、第1データの値がどのようであっても、前記保障電圧の判定条件に基づいて第2データを変更するので、常に第2データを所望の安全側の値に設定することが可能である。つまり、第1データの値の変動を考慮した第2データとすることができるので、第2データに基づいて、より安全に各種の制御を行うことが可能となる。
【0012】
(2)請求項2の発明は、
前記RAMに所定の事象の発生回数を計数する第1カウント値を記憶するとともに、前記第1カウント値が所定の基準値に達した場合に、前記不揮発性メモリの第2カウント値をカウントアップする電子制御装置であって、前記RAMの第1カウント値を保障する保障電圧が維持されたか否かを判断する電圧状態判定手段と、前記電圧状態判定手段により前記保障電圧が維持されなかったと判断された場合には、前記不揮発性メモリの第2カウント値をカウントアップするデータ変更手段と、を備えたことを特徴とする前記請求項1に記載の電子制御装置を要旨とする。
【0013】
本発明は、前記請求項1の発明を例示したものである。
本発明では、RAMの第1カウント値を保障する保障電圧が維持されなかったと判断された場合には、不揮発性メモリの第2カウント値をカウントアップ(インクリメント)するので、第1カウント値がどのようであっても、常に第2カウント値を多めに(従って多めが安全側である場合には安全側)に設定することができる。
【0014】
例えばカウント値が、スタータの駆動回数である場合には、スタータの駆動回数を実際より多め(即ち安全側)に計数することができる。これにより、スタータの駆動回数を少なめに計数することによるスタータ駆動不良を未然に防止することができる。
【0015】
(3)請求項3の発明は、
前記電圧状態判定手段により前記保障電圧が維持されなかったと判断された場合には、前記RAMに記憶されているデータをクリアすることを特徴とする前記請求項1又は2に記載の電子制御装置を要旨とする。
【0016】
例えばバッテリの交換時のように、RAMをバックアップする電源の保障電圧が維持されない場合には、通常、RAMのデータをそのまま保持することはできない。従って、例えばバッテリの交換後に、例えば周知のミラー処理を行うことにより、RAMのデータが正しく保持されたか否かを判定し、データが正しくない場合には、RAMのデータをクリアする。これにより、誤ったデータによる処理を行うリスクを回避できる。
【0017】
(4)請求項4の発明は、
前記電圧状態判定手段は、電源が遮断されたか否かを判定することを特徴とする前記請求項1〜3のいずれかに記載の電子制御装置を要旨とする。
本発明は、電圧状態判定手段の判定手法を例示したものである。ここで、例えばバッテリの交換時のように、電源が遮断された場合には、RAMに記憶されたデータ(第1カウント値)を保持できないので(例えばクリアされる)、電源が遮断されたか否かにより電圧状態を判定している。
【0018】
(5)請求項5の発明は、
前記不揮発性メモリの第2カウント値に0以外のカウント値を設定し、且つ前記RAMの第1カウント値に0以外のカウント値を設定した後に、前記第1カウント値がクリアされた(0に設定された)場合には、前記電源の遮断が発生したと判定することを特徴とする前記請求項4に記載の電子制御装置を要旨とする。
【0019】
本発明は、電源が遮断された場合を判定する手法を例示したものである。
つまり、処理ルーチンが開始された後に電源が遮断された場合には、RAMの第1カウント値がクリアされるので、この第1カウント値に基づいて、電源の遮断の有無を判定することができる。
【0020】
(6)請求項6の発明は、
前記電子制御装置は、車両のエンジン制御を行う車載の装置であることを特徴とする前記請求項1〜5のいずれかに記載の電子制御装置を要旨とする。
本発明は、電子制御装置が適用される対象を例示したものである。
【0021】
(7)請求項7の発明は、
前記発生回数とは、スタータ駆動回数であることを特徴とする前記請求項2〜6のいずかに記載の電子制御装置を要旨とする。
本発明は、所定の処理を実行した回数を示すカウント値の種類を例示したものである。ここでは、カウント値は、スタータ駆動回数を示している。
【0022】
この様に、車載の電子制御装置のスタータ駆動回数、特にイグニッションキーによる始動や自動始動の合計回数である全スタータ駆動回数を記憶しておけば、スタータ駆動回数がどの程度であるかを把握できる。よって、スタータ駆動回数が保障値よりも増加した場合には、必要に応じて、エンジンの自動始動を制限することにより、スタータの寿命を伸ばすことができる。
【0023】
尚、上述した請求項1〜7の発明は、いわゆるエコランによるエンジン制御に適用できる。
このエコランとは、燃費や排ガスの低減のために、例えば信号停止時にはエンジンを自動停止させ、信号発進時にはエンジンを自動始動するものである。
【0024】
この様なエコランの状態でおいては、通常のイグニッションキーによるエンジン始動のみの場合と比べて、スタータ駆動回数が増加し、場合によっては、スタータの保障値を上回る場合があるので、エコランを実施する場合には、上述した様に、スタータ駆動回数を常に把握する必要があるからである。
【0025】
尚、この制御を行う電子制御装置としては、「前記エンジン制御は、前記車両のエンジンを停止させてよい状態であるか否かを判定する停止可能状態判定手段と、該停止可能状態判定手段によって肯定判断された場合には、エンジンを自動停止させる自動停止手段と、該自動停止手段の実行時に、前記車両のエンジンを始動させてよい状態であるか否かを判定する始動可能状態判定手段と、該始動可能状態判定手段によって肯定判断された場合には、エンジンを自動始動させる自動始動手段と、を備えたことを特徴とする電子制御装置。」が挙げられる。
【0026】
)請求項の発明は、前記請求項1〜のいずれか記載の電子制御装置の前記各手段としてコンピュータを機能させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体を要旨とする
【0027】
つまり、上述した様な電子制御装置をコンピュータシステムにて実現する機能は、例えば、コンピュータシステム側で起動するプログラムとして備えることができる。このようなプログラムの場合、例えば、フロッピーディスク(登録商標)、光磁気ディスク、CD−ROM、ハードディスク等のコンピュータ読み取り可能な記録媒体に記録し、必要に応じてコンピュータシステムにロードして起動することにより用いることができる。この他、ROMやバックアップRAMをコンピュータ読み取り可能な記録媒体として前記プログラムを記録しておき、このROMあるいはバックアップRAMをコンピュータシステムに組み込んで用いても良い。
【0028】
【発明の実施の形態】
次に、本発明の電子制御装置及び記録媒体の実施の形態の例(実施例)について、図面に基づいて説明する。
(実施例)
a)まず、本実施例のエンジン制御用の電子制御装置の基本構成について説明する。
【0029】
図1に示す様に、本実施例のエンジン制御用の電子制御装置(以下単にエンジンECUと記す)1は、マイクロコンピュータ(図1ではCPUで示す)3を中心に構成された装置であり、いわゆるエコラン走行の制御が可能なものである。このエンジンECU1は、マイクロコンピュータ3に加え、電源系として、メイン電源回路5及びサブ電源回路7を備え、入力系として、入力回路9及び波形整形回路11を備え、出力系として、第1及び第2出力回路13,15を備えている。また、スタータモニタ回路17及びEEPROM19などを備えている。以下詳細に説明する。
【0030】
前記メイン電源回路5は、イグニッションスイッチ(IGスイッチ)21がオン(ON)の場合に、バッテリ23から電圧(+B)の供給を受け、所定の電圧(Vom)を、入力回路9及びマイクロコンピュータ3に供給するものである。また、サブ電源回路7は、IGスイッチ21がオフ(OFF)の場合でも、バッテリ23から直接の電圧(BATT)の供給を受け、所定の電圧(Vos)を、マイクロコンピュータ3に供給するものである。
【0031】
前記マイクロコンピュータ3は、ROM25、RAM(ノーマルRAM)27、スタンバイRAM(以下SRAMと記す)29等を備えている。このうち、RAM27は、IGスイッチ21がオンの間は、メイン電源回路5からの電圧供給により、内容(データ)を保持するメモリである。また、SRAM29は、IGスイッチ21がオフの間でも、サブ電源回路7からの電圧供給により、内容(例えばスタータ駆動回数のデータ)を保持するメモリである。
【0032】
前記スタータモニタ回路17は、第2出力回路15から出力されるスタータリレー31を駆動する制御信号をチェックして、エンジンの自動始動の有無を検出する回路である。
前記EEPROM19は、メイン電源、サブ電源がダウンしても、内容(例えばスタータ駆動回数のデータ)を保持することができる不揮発性メモリであり、しかも、所定電圧(例えば2V以上)が供給されている場合には、データの書き込みが可能なメモリである。尚、このEEPROM19のデータ書き込み回数には、通常、所定の制限がある。
【0033】
従って、図2に拡大して示す様に、マイクロコンピュータ3は、メイン電源からの電圧(Vom)及びサブ電源からの電圧(Vos)を受け、EEPROM19は、メイン電源からの電圧(Vom)を受け、SRAM29とEEPROM19の間で、データのやりとりが可能である。例えば、SRAM29に記憶されたスタータ駆動回数(始動回数)のデータ(第1カウント値)に基づいて、スタータ駆動回数を示すデータ(第2カウント値)をEEPROM19に書き込むことができる。
【0034】
そして、上述した図1の構成において、バッテリ23に接続されたIGスイッチ21が、図示しないイグニッションキー(IGキー)の操作によりオンとされることで、エンジンECU1が起動する。更に、IGキーが、IGスイッチ21のSTの位置まで回されると、スタータ33のモータ33aが駆動されて、エンジンが始動する。
【0035】
また、エンジンの作動中においては、エンジンECU1は、エンジン回転数信号NE、車速信号SPD等の車両の作動信号や、吸気管圧力信号PIM、スロットル開度信号TA、冷却水温信号THW等のセンサ信号を取り込んで、点火プラグ35による点火制御、インジェクタ37による燃料噴射制御等のための制御信号を出力する。
【0036】
b)次に、エコランについて簡単に説明する。
エコランとは、例えば赤信号での停止時にエンジンを自動停止させ、青信号での発進時にエンジンの自動始動を行うことにより、エンジンの不要な作動期間を低減して、燃料の節約や排ガスの低減を図る制御モードである。
【0037】
従って、エコラン走行の場合には、そうでない場合と比べて、スタータ駆動回数が多くなるが、スタータ駆動回数には、所定のスタータ駆動保障値(それ以上の回数になるとスタータ33の駆動が正常に行われない可能性がある値;例えば130000回)による制限がある。
【0038】
そのため、このスタータ駆動保障値に達したか否かを常にチェックして、その値以上になると、エコランを中止する必要があるので、後述する様に、スタータ駆動回数を計数している。
c)次に、エンジンECU1にて行われる処理等について説明する。
【0039】
このエンジンECU1のマイクロコンピュータ3では、周知のミラー処理(演算データ等を他の記憶領域に記憶しておき、それを現在の同じ演算データ等と一致しているかどうかをチェックし、一致していない場合には異常があると判定する処理)により、マイクロコンピュータ3の異常を絶えずチェックし、異常を検出した場合には、RAM27、SRAM29のデータをクリアする機能を有する。
【0040】
(1)スタータ駆動回数記憶処理本処理では、通常時は、エンジンの始動回数(即ちスタータ駆動回数)を計数して、SRAM29にて第1カウント値として記憶し、第1カウント値が所定の基準値(例えば11)に達した場合には、EEPROM19の第2カウント値をカウントアップ(インクリメント)する。そして、バッテリ23の電源遮断が発生した場合には、第1カウント値の値にかかわらず、第2カウント値をカウントアップする。
【0041】
ここでは、IGスイッチ21が、IGキーの操作により、オフからオンに切り換えれられると、エンジンECU1が始動し、本処理が開始される。尚、第1カウント値n(n値)、第2カウント値S(S値)、基準値N(N値)は、各々予め「0」に設定されている。
【0042】
図3のフローチャートに示す様に、まず、ステップ100にて、EEPROM19に記憶された第2カウント値Sの判定を行う。即ち、第2カウント値Sが「0」であるか否かを判定する。
ここで、第2カウント値Sが「0」であると判定されると、初めてシステムを起動する場合であるとみなしてステップ110に進み、そうでなければステップ140に進む。
【0043】
ステップ110では、第2カウント値Sをカウントアップするための基準値Nを11に設定する。
続くステップ120では、第2カウント値Sに「1」を加算する(カウントアップする)。従って、最初のルーチンでは、第2カウント値Sは「1」に設定される。
【0044】
続くステップ130では、SRAM29に記憶される第1カウント値nを「1」に設定し、前記ステップ110に戻る。
そして、2回目のルーチンで、ステップ100にて、第2カウント値Sが「0」であるか否かを判定する場合には、第2カウント値Sは既に前回のルーチンのステップ120の処理にて「1」に設定されているので、ここでは否定判断されて、ステップ140に進む。
【0045】
ステップ140では、第1カウント値nの判定を行う。即ち第1カウント値nが「0」であるか否かを判定する。ここで肯定判断されるとステップ110に進み、一方否定判断されるとステップ150に進む。
つまり、第1カウント値nは既に前回のルーチンのステップ130にて「1」に設定されているので、或は、更にカウントアップが進んだときには「1以上」となるので、第1カウント値nが「0」ではない場合には、通常時(電源遮断のない場合)であると見なして、ステップ150に進む。
【0046】
ステップ150では、スタータ33を駆動したか否かを判定する。ここで肯定判断されるとステップ160に進み、一方否定判断されるとスタータ駆動まで待機する。
このスタータ駆動の検出方法としては、(i)運転者のIGキーの操作によるスタータ駆動を、モータ33aへの通電状態により検出する方法や、(ii)エコランの際の自動始動を、スタータモニタ回路17により検出する方法がある。
【0047】
ステップ160では、スタータ駆動回数を計数する第1カウント値nをカウントアップする。
ステップ170では、第1カウント値nが、基準値N(=11)に達したか否かを判定する。ここで肯定判断されるとステップ180に進み、一方否定判断されると前記ステップ150に戻る。
【0048】
ステップ170では、EEPROM19の所定の記憶領域に、第2カウント値Sをカウントアップして書き込む。この第2カウント値Sとは、(電源の遮断のない通常の場合は)第1カウント値nが何度基準値Nに達したかを示すものである。
【0049】
一方、前記ステップ140にて肯定判断された場合とは、バッテリ23の電源の遮断が発生したことを示している。
つまり、本ルーチンによる処理が開始され、一旦第2カウント値Sが「1」とされた後には、第1カウント値nは「1〜11」の範囲の値をとるので、第1カウント値nが「0」、即ち第1カウント値nがクリアされた場合には、SRAM29のデータが電源遮断によりクリアになったことを意味する。
【0050】
これを処理の流れで示すと、電源が遮断されても、EEPROM19のデータである第2カウント値Sは保持されるのであるから、電源が回復した後の最初のルーチンでは、ステップ100にて、第2カウント値Sは「0」ではないと否定判断されてステップ140に進み、ステップ140にて、SRAM29の第1カウント値nが「0」であると判定される(即ち肯定判断される)ことにより、電源遮断が発生したと見なすことができる。
【0051】
この場合には、ステップ110を経てステップ120に進み、第2カウント値Sをカウントアップするのである。
つまり、電源が遮断した場合には、SRAM29に蓄積されたスタータ駆動回数のデータである第1カウント値nは「0」となるが、この「0」の値を正しいとして計数を続けると、後に求める全スタータ駆動回数Tは、実際のスタータ駆動回数よりも少ない回数となってしまい好ましくない。
【0052】
そこで、本実施例では、安全を見込んでカウント数を高めに計数するために(即ちフェイルセーフのために)、電源が遮断した場合には、第1カウント値nの値にかかわらず、第2カウント値Sをカウントアップするのである。
従って、ここでは、上述した処理により、スタータ駆動回数の積算値(全スタータ駆動回数)Tを求めるために必要な第2カウント値Sを得ることができるので、これらの値を用い、下記式(1)に基づいて、全スタータ駆動回数Tを計算することができる。
【0053】
T=S×11 …(1)
つまり、S×11により、実際の全スタータ駆動回数より安全側に振った全スタータ駆動回数Tを求めることができる。
(2)スタータ駆動回数確認処理本処理は、スタータ駆動回数が、スタータの動作保障回数(スタータ駆動保障値)以上か否かを判定するための処理である。
【0054】
IGスイッチ21が、IGキーの操作により、オフからオンに切り換えれられると、エンジンECU1が始動し、本処理が開始される。
図4のフローチャートに示す様に、まずステップ200では、前記図3の処理によって算出した第2カウント値Sと、現在までにSRAM29に記憶されている第1カウント値nを用い、下記式(2)に基づいて、全スタータ駆動回数Tを計算する。
【0055】
尚、この式(2)では、前記式(1)に更に第1カウント値nを加算しており、これは、現在までの値を加えることにより、より正確な全スタータ駆動回数Tを求めるためであるが、今回は全スタータ駆動回数を安全側とするために多めに設定しているので、nを省略してもよい。
【0056】
T=S×11+n …(2)
続くステップ210では、全スタータ駆動回数Tがスタータ駆動保障値の130000回以上であるか否かを判定する。ここで肯定判断されるとステップ220に進み、一方否定判断されると前記ステップ200に戻る。
【0057】
ステップ220では、全スタータ駆動回数Tがスタータ駆動保障値以上となったので、エコランを中止し、一旦本処理を終了する。
これにより、スタータ駆動回数が増加した場合には、エコランを中止するので、以降のスタータ駆動回数を低減することができる。
【0058】
d)次に、上述した処理による動作を、図5のタイミングチャートにより説明する。
時刻t1にて、IGスイッチ21が、IGキーの操作により、オフからオンに切り換えられると、エンジンECU1に対してバッテリ23から電圧(+B)が供給される。このとき、上述した様に、前記図3の最初のルーチンにて、EEPROM19の第2カウント値Sは「1」に設定される。
【0059】
従って、IGスイッチ21がオンの間は、スタータ駆動が実施される毎に、SRAM29の第1カウント値nがカウントアップされる。
そして、時刻t2にて、第1カウント値nが基準値Nに達すると、第2カウント値Sがカウントアップされるとともに、第1カウント値nは「1」に戻る。
【0060】
ここで、例えば第2カウント値Sが「2」に設定されている間に、バッテリ23が交換されたとすると、バッテリ23による電圧(+B、BATT)のバックアップがなくなるので(時刻t3)、SRAM29内のデータはクリアされる。従って、第1カウント値nは「0」となる。
【0061】
そして、時刻t4にて、バッテリ23が接続されて電源が回復すると、第1カウント値nが「0」であるにもかかわらず、第2カウント値Sをカウントアップして「3」に設定する。
その後は、電圧の供給がある限りは、同様に、スタータ駆動の実施毎に、第1カウント値nをカウントアップする。
【0062】
e)本実施例では、上述した処理及び動作により、下記の効果を奏する。
・本実施例では、従来の様に、SRAM29に記憶した(スタータ駆動回数を示す)第1カウント値nが基準値Nに達した場合に、EEPROM19の第2カウント値Sをカウントアップするのみではなく、電源が遮断されたと判断された場合にも、第2カウント値Sをカウントアップしている。
【0063】
それにより、第2カウント値Sは高めの値に設定されるので、全スタータ駆動回数Tも、実際のスタータ駆動回数より常に高めの値(従って安全側の値)に設定されることになる。
つまり、全スタータ駆動回数Tが高めの値に設定されることにより、全スタータ駆動回数Tとスタータ駆動保障値とを比較する際に、実際のスタータ駆動回数がスタータ駆動保障値に近づいたことを確実に検出できる。従って、実際のスタータ駆動回数がスタータ駆動保障値以上となることがなく、確実にスタータ駆動を行うことができるという顕著な効果を奏する。
【0064】
・更に、本実施例では、全スタータ駆動回数Tがスタータ駆動保障値以上となった場合には、エコランを中止しているので、それ以降のスタータ駆動回数の増加の程度を低減することができる。つまり、スタータ駆動回数がスタータ駆動保障値を上回るにつれて、始動動作が好適に行えない可能性が増加するので、スタータ駆動回数の多くなるエコランを中止するのである。これにより、エコラン中止以降は、IGキーによるエンジンの始動のみとするので、スタータ33の信頼性を確保することができる。
【0065】
尚、本発明は前記実施例になんら限定されるものではなく、本発明を逸脱しない範囲において種々の態様で実施しうることはいうまでもない。
(1)例えば、本発明は、前記エンジンECUに限らず、上述した処理を実行させるプログラムを記憶している記録媒体にも適用できる。
【0066】
この記録媒体としては、マイクロチップ、フロッピィディスク(登録商標)、ハードディスク、光ディスク等の各種の記録媒体が挙げられる。つまり、上述した電子制御装置の処理を実行させることができるプログラムを記憶したものであれば、特に限定はない。
【0067】
(2)前記実施例では、バッテリの交換時の様に、電源が遮断された場合に、EEPROMの第2カウント値をカウントアップしているが、SRAMの第1カウント値がクリアされる現象は、SRAMをバックアップする電圧が、そのデータを保持できる電圧以下に低下した場合にも発生するので、そのような電圧の低下が発生した場合に、EEPROMの第2カウント値をカウントアップしてもよい。
【図面の簡単な説明】
【図1】 実施例の電子制御装置の概略構成を示す説明図である。
【図2】 実施例の電子制御装置の要部を拡大して示す説明図である。
【図3】 実施例のスタータ駆動回数記憶処理を示すフローチャートである。
【図4】 実施例のスタータ駆動回数確認処理を示すフローチャートである。
【図5】 実施例の処理による動作を示すタイミングチャートである。
【符号の説明】
1…電子制御装置
3…マイクロコンピュータ
5…メイン電源回路
7…サブ電源回路
17…スタータモニタ回路
19…EEPROM
21…イグニッションスイッチ(IGスイッチ)
23…バッテリ23
27…ノーマルRAM(RAM)
29…スタンバイRAM(SRAM)
33…スタータ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an electronic control device and a recording medium that can reliably store data relating to, for example, start of an automobile.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, for example, an electronic control device centered on a microcomputer has been used to control an engine of an automobile.
In this electronic control unit, a RAM (normal RAM), a standby RAM, an EEPROM, and the like are employed to store various data.
[0003]
Of these, the RAM is a memory whose data is not guaranteed when the ignition key is off, and the standby RAM is a memory whose data is not guaranteed if the battery voltage drops or the power is cut off due to battery replacement or the like. Is a non-volatile memory capable of holding (writing) data even when the power is turned off.
[0004]
However, the EEPROM has a guaranteed number of times of writing, and if it exceeds that, data may not be written correctly. Therefore, an electronic control device combining the standby RAM and the EEPROM is considered as a data storage means. Yes.
[0005]
This is because a certain amount of data (for example, a first count value for counting the number of start times of the starter of the engine) is stored in a standby RAM with no limit on the number of writes, and each time the first count value reaches a reference value, This is a technique for reducing the number of times of writing to the EEPROM by a method of counting up data (for example, a second count value for calculating the number of start times).
[0006]
[Problems to be solved by the invention]
However, the above-described technique has the following problems.
In other words, in the above-described technique, if the power is cut off due to battery replacement or the like when data is stored in the standby RAM, the data in the standby RAM is lost, so that accurate data cannot be secured in the EEPROM. There's a problem.
[0007]
Specifically, for example, when the first count value in the standby RAM disappears, the second count value stored in the EEPROM becomes smaller than the original value. Therefore, conversion processing is performed from the second count value. Then, when the number of start times is obtained, the value is smaller than the actual number of start times. As a result, the number of starting times is considered to be less than the original number of starting times, and even if the number of starting times becomes excessive, it is not noticed. As a result, starter drive may not be possible, which is not preferable in terms of fail safety.
[0008]
The present invention has been made to solve the above-mentioned problems, and its object is to determine the voltage state for backing up the RAM and to set the data stored in the nonvolatile memory as a safe value. An electronic control device and a recording medium are provided.
[0009]
[Means for Solving the Problems and Effects of the Invention]
(1) The invention of claim 1
A RAM backed up by a power source (for example, a standby RAM) and a writable non-volatile memory (for example, an EEPROM) capable of retaining stored contents even when the power is shut off, and storing the first data in the RAM When the first data reaches a predetermined reference value, the electronic control device changes the second data of the non-volatile memory, and whether or not a guaranteed voltage that guarantees the first data of the RAM is maintained. Voltage state determining means for determining whether or not the guaranteed voltage is not maintained by the voltage state determining means, the second data of the non-volatile memory is set to a predetermined reference value. The gist of the present invention is an electronic control device comprising data changing means for changing data as in the case of reaching the above.
[0010]
For example, when the guaranteed voltage for backing up the RAM is not maintained, for example, when the battery is replaced, the first data in the RAM is not proper (usually cleared). Since the first data stored in the RAM cannot be used, the second data in the nonvolatile memory cannot be appropriately changed based on the first data.
[0011]
Therefore, in the present invention, when it is determined that the guaranteed voltage for guaranteeing the first data of the RAM is not maintained, the second data of the nonvolatile memory is changed to the case where the first data reaches a predetermined reference value. Change in the same way.
As a result, the second data is changed based on the guarantee voltage determination condition regardless of the value of the first data, so that the second data can always be set to a desired safe value. It is. That is, since it can be set as the 2nd data which considered the change of the value of the 1st data, it becomes possible to perform various control more safely based on the 2nd data.
[0012]
(2) The invention of claim 2
A first count value for counting the number of occurrences of a predetermined event is stored in the RAM, and when the first count value reaches a predetermined reference value, the second count value of the nonvolatile memory is counted up. An electronic control unit for determining whether or not the guaranteed voltage for guaranteeing the first count value of the RAM is maintained; and determining that the guaranteed voltage is not maintained by the voltage state judging means. The electronic control device according to claim 1, further comprising: a data changing unit that counts up the second count value of the nonvolatile memory.
[0013]
The present invention exemplifies the invention of claim 1.
In the present invention, when it is determined that the guaranteed voltage for guaranteeing the first count value of the RAM has not been maintained, the second count value of the nonvolatile memory is counted up (incremented). Even in such a case, the second count value can always be set to a larger value (thus, if a larger value is on the safe side), the second count value can be set.
[0014]
For example, when the count value is the number of times the starter is driven, the number of times the starter is driven can be counted more than actually (that is, on the safe side). As a result, it is possible to prevent a starter drive failure by counting the number of times the starter is driven a little.
[0015]
(3) The invention of claim 3
3. The electronic control unit according to claim 1, wherein when the guaranteed voltage is not maintained by the voltage state determination unit, the data stored in the RAM is cleared. The gist.
[0016]
For example, when the guaranteed voltage of the power source for backing up the RAM is not maintained, such as when the battery is replaced, the data in the RAM cannot normally be held as it is. Therefore, for example, after the battery is replaced, a known mirror process is performed to determine whether or not the RAM data is correctly held. If the data is not correct, the RAM data is cleared. This avoids the risk of processing with incorrect data.
[0017]
(4) The invention of claim 4
The gist of the electronic control device according to any one of claims 1 to 3, wherein the voltage state determination means determines whether or not a power source is cut off.
The present invention exemplifies the determination method of the voltage state determination means. Here, for example, when the power source is shut down, for example, when the battery is replaced, the data (first count value) stored in the RAM cannot be held (eg, cleared). The voltage state is determined by
[0018]
(5) The invention of claim 5
After setting a non-zero count value to the second count value of the nonvolatile memory and setting a non-zero count value to the first count value of the RAM, the first count value is cleared (to zero) If it is set, the electronic control device according to claim 4 is characterized in that it is determined that the power supply is shut off.
[0019]
The present invention exemplifies a method for determining when the power supply is shut off.
That is, when the power supply is shut off after the processing routine is started, the first count value of the RAM is cleared, so that it is possible to determine whether or not the power supply is shut off based on the first count value. .
[0020]
(6) The invention of claim 6
The gist of the electronic control device according to any one of claims 1 to 5, wherein the electronic control device is a vehicle-mounted device that controls a vehicle engine.
The present invention exemplifies an object to which an electronic control device is applied.
[0021]
(7) The invention of claim 7
The gist of the electronic control device according to any one of claims 2 to 6, wherein the number of occurrences is a starter driving number.
The present invention exemplifies the types of count values indicating the number of times a predetermined process has been executed. Here, the count value indicates the number of starter drives.
[0022]
In this way, if the starter drive count of the in-vehicle electronic control device, particularly the total starter drive count, which is the total number of start by the ignition key and the automatic start, is stored, it is possible to grasp how much the starter drive count is. . Therefore, when the number of times the starter is driven exceeds the guaranteed value, it is possible to extend the life of the starter by limiting the automatic start of the engine as necessary.
[0023]
The inventions of claims 1 to 7 described above can be applied to engine control by so-called eco-run.
This eco-run is, for example, to automatically stop the engine when the signal is stopped and automatically start the engine when the signal is started in order to reduce fuel consumption and exhaust gas.
[0024]
In such an eco-run state, the number of starter drives increases compared to the case where only the engine is started with a normal ignition key, and in some cases the starter's guaranteed value may be exceeded. This is because, as described above, it is necessary to always grasp the number of starter drives.
[0025]
The electronic control device that performs this control includes: “the engine control includes a stoppable state determination unit that determines whether or not the vehicle engine may be stopped; and a stoppable state determination unit. An affirmative determination, an automatic stop means for automatically stopping the engine, and a startable state determination means for determining whether or not the vehicle engine may be started when the automatic stop means is executed; And an automatic starter that automatically starts the engine when an affirmative determination is made by the startable state determination unit.
[0026]
  (8Claim8The invention of claim 1 to claim 17Of the electronic control device according to any one ofA computer-readable recording of a program for causing a computer to function as each of the meansSummary of recording media.
[0027]
  That is, the function of realizing the electronic control device as described above in a computer system can be provided as a program that is activated on the computer system side, for example. In the case of such a program, for example, a floppy disk(Registered trademark)It can be used by being recorded on a computer-readable recording medium such as a magneto-optical disk, CD-ROM, hard disk, etc., and loaded into a computer system and started as required. In addition, the ROM or backup RAM may be recorded as a computer-readable recording medium, and the ROM or backup RAM may be incorporated into a computer system and used.
[0028]
DETAILED DESCRIPTION OF THE INVENTION
Next, an example (example) of an embodiment of an electronic control device and a recording medium of the present invention will be described based on the drawings.
(Example)
a) First, the basic configuration of the engine control electronic control device of this embodiment will be described.
[0029]
As shown in FIG. 1, an electronic control device (hereinafter simply referred to as an engine ECU) 1 for engine control according to the present embodiment is a device mainly composed of a microcomputer (shown as CPU in FIG. 1). The so-called eco-run traveling can be controlled. The engine ECU 1 includes a main power supply circuit 5 and a sub power supply circuit 7 as a power supply system in addition to the microcomputer 3, an input circuit 9 and a waveform shaping circuit 11 as an input system, and first and second output systems as an output system. Two output circuits 13 and 15 are provided. Further, a starter monitor circuit 17 and an EEPROM 19 are provided. This will be described in detail below.
[0030]
When the ignition switch (IG switch) 21 is on, the main power supply circuit 5 is supplied with a voltage (+ B) from the battery 23 and supplies a predetermined voltage (Vom) to the input circuit 9 and the microcomputer 3. To supply. The sub power circuit 7 receives a direct voltage (BATT) from the battery 23 and supplies a predetermined voltage (Vos) to the microcomputer 3 even when the IG switch 21 is OFF. is there.
[0031]
The microcomputer 3 includes a ROM 25, a RAM (normal RAM) 27, a standby RAM (hereinafter referred to as SRAM) 29, and the like. Among these, the RAM 27 is a memory that holds contents (data) by supplying voltage from the main power supply circuit 5 while the IG switch 21 is on. The SRAM 29 is a memory that retains contents (for example, data of the number of times of starter driving) by supplying a voltage from the sub power supply circuit 7 even when the IG switch 21 is off.
[0032]
The starter monitor circuit 17 is a circuit that detects the presence or absence of the automatic start of the engine by checking a control signal for driving the starter relay 31 output from the second output circuit 15.
The EEPROM 19 is a non-volatile memory that can retain the contents (for example, data of the starter driving frequency) even when the main power supply and the sub power supply are down, and is supplied with a predetermined voltage (for example, 2 V or more). In some cases, the memory can write data. The number of times data is written to the EEPROM 19 usually has a predetermined limit.
[0033]
Therefore, as shown in an enlarged view in FIG. 2, the microcomputer 3 receives the voltage (Vom) from the main power supply and the voltage (Vos) from the sub power supply, and the EEPROM 19 receives the voltage (Vom) from the main power supply. Data can be exchanged between the SRAM 29 and the EEPROM 19. For example, based on data (first count value) of the starter drive count (start count) stored in the SRAM 29, data (second count value) indicating the starter drive count can be written in the EEPROM 19.
[0034]
In the configuration of FIG. 1 described above, the engine ECU 1 is activated when the IG switch 21 connected to the battery 23 is turned on by operating an ignition key (IG key) (not shown). 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 to start the engine.
[0035]
During engine operation, the engine ECU 1 detects vehicle operation signals such as an engine speed signal NE and a vehicle speed signal SPD, and sensor signals such as an intake pipe pressure signal PIM, a throttle opening signal TA, and a coolant temperature signal THW. And outputs control signals for ignition control by the spark plug 35, fuel injection control by the injector 37, and the like.
[0036]
b) Next, the eco-run will be briefly described.
Eco-run means, for example, that the engine is automatically stopped when it stops at a red light, and the engine is automatically started when it starts at a green light, thereby reducing the unnecessary operation period of the engine, saving fuel and reducing exhaust gas. Is a control mode.
[0037]
Accordingly, in the case of eco-run traveling, the number of starter driving operations is increased compared to the case where it is not. However, the starter driving number is set to a predetermined starter driving guarantee value (when the number of starting times exceeds that, the starter 33 is normally driven). There is a limit due to a value that may not be performed;
[0038]
Therefore, it is always checked whether or not the starter drive guarantee value has been reached, and if it exceeds that value, it is necessary to stop the eco-run, so the number of starter drives is counted as described later.
c) Next, processing performed in the engine ECU 1 will be described.
[0039]
In the microcomputer 3 of the engine ECU 1, known mirror processing (calculation data or the like is stored in another storage area, and it is checked whether or not it matches the current same calculation data or the like. In this case, the microcomputer 3 is constantly checked for abnormalities by a process of determining that there is an abnormality), and if an abnormality is detected, the RAM 27 and the SRAM 29 have a function of clearing data.
[0040]
  (1)In this process, the engine start count (that is, the starter drive count) is counted and stored as a first count value in the SRAM 29, and the first count value is a predetermined reference value (for example, 11), the second count value of the EEPROM 19 is counted up (incremented). When the power supply of the battery 23 is interrupted, the second count value is counted up regardless of the value of the first count value.
[0041]
Here, when the IG switch 21 is switched from OFF to ON by the operation of the IG key, the engine ECU 1 is started and the present process is started. The first count value n (n value), the second count value S (S value), and the reference value N (N value) are each set to “0” in advance.
[0042]
As shown in the flowchart of FIG. 3, first, in step 100, the second count value S stored in the EEPROM 19 is determined. That is, it is determined whether or not the second count value S is “0”.
Here, if it is determined that the second count value S is “0”, it is considered that the system is being activated for the first time, and the process proceeds to step 110; otherwise, the process proceeds to step 140.
[0043]
In step 110, a reference value N for counting up the second count value S is set to 11.
In the following step 120, “1” is added to the second count value S (counting up). Therefore, in the first routine, the second count value S is set to “1”.
[0044]
In the following step 130, the first count value n stored in the SRAM 29 is set to “1”, and the process returns to the step 110.
In the second routine, when it is determined in step 100 whether or not the second count value S is “0”, the second count value S has already been processed in step 120 of the previous routine. Therefore, a negative determination is made here, and the routine proceeds to step 140.
[0045]
In step 140, the first count value n is determined. That is, it is determined whether or not the first count value n is “0”. If an affirmative determination is made here, the process proceeds to step 110, while if a negative determination is made, the process proceeds to step 150.
That is, since the first count value n has already been set to “1” in step 130 of the previous routine, or when the count up further proceeds, it becomes “1 or more”, so the first count value n Is not “0”, it is assumed that it is normal (when power is not shut off), and the process proceeds to step 150.
[0046]
In step 150, it is determined whether or not the starter 33 has been driven. If an affirmative determination is made here, the process proceeds to step 160. If a negative determination is made, the process waits until the starter is driven.
The starter drive detection method includes (i) a method of detecting starter drive by the driver's operation of the IG key based on the energization state of the motor 33a, and (ii) automatic start during an eco-run. There is a method of detecting by 17.
[0047]
In step 160, the first count value n for counting the number of times of starter driving is counted up.
In step 170, it is determined whether or not the first count value n has reached the reference value N (= 11). If an affirmative determination is made here, the process proceeds to step 180. If a negative determination is made, the process returns to step 150.
[0048]
In step 170, the second count value S is counted up and written in a predetermined storage area of the EEPROM 19. The second count value S indicates how many times the first count value n has reached the reference value N (in a normal case where the power is not shut off).
[0049]
On the other hand, the case where an affirmative determination is made in step 140 indicates that the power supply of the battery 23 has been interrupted.
That is, after the processing by this routine is started and the second count value S is once set to “1”, the first count value n takes a value in the range of “1 to 11”. Is "0", that is, when the first count value n is cleared, it means that the data in the SRAM 29 is cleared by power-off.
[0050]
If this is shown in the flow of processing, the second count value S, which is the data in the EEPROM 19, is retained even when the power is shut off. Therefore, in the first routine after the power is restored, in step 100, It is determined that the second count value S is not “0”, and the process proceeds to step 140. In step 140, it is determined that the first count value n of the SRAM 29 is “0” (that is, an affirmative determination). Therefore, it can be considered that the power interruption has occurred.
[0051]
In this case, the process proceeds to step 120 through step 110, and the second count value S is counted up.
In other words, when the power is cut off, the first count value n, which is the data of the starter driving count accumulated in the SRAM 29, becomes “0”. If counting is continued with this “0” value being correct, The total starter drive count T to be obtained is less than the actual starter drive count, which is not preferable.
[0052]
Therefore, in this embodiment, in order to count the number of counts higher in anticipation of safety (that is, for fail-safety), when the power is shut off, the second count regardless of the value of the first count value n. The count value S is counted up.
Accordingly, the second count value S necessary for obtaining the integrated value of the starter drive times (total starter drive times) T can be obtained by the above-described processing. Based on 1), the total starter drive count T can be calculated.
[0053]
      T = S × 11 (1)
  That is, by using S × 11, it is possible to obtain the total starter drive count T that is shifted to the safe side from the actual total starter drive count.
  (2)Starter Drive Count Confirmation Process This process is a process for determining whether or not the starter drive count is equal to or greater than the starter operation guarantee count (starter drive guarantee value).
[0054]
When the IG switch 21 is switched from off to on by the operation of the IG key, the engine ECU 1 is started and this processing is started.
As shown in the flowchart of FIG. 4, first, in step 200, the second count value S calculated by the processing of FIG. 3 and the first count value n stored in the SRAM 29 up to now are used, and the following formula (2 ) To calculate the total starter drive count T.
[0055]
In this equation (2), the first count value n is further added to the above equation (1), and this is because a more accurate total starter driving frequency T is obtained by adding the value up to now. However, since the number of all starter drivings is set to be a safe side this time, n may be omitted.
[0056]
T = S × 11 + n (2)
In the following step 210, it is determined whether or not the total starter drive count T is equal to or greater than the starter drive guarantee value of 130,000. If an affirmative determination is made here, the process proceeds to step 220. If a negative determination is made, the process returns to step 200.
[0057]
In step 220, since the total starter drive count T is equal to or greater than the starter drive guarantee value, the eco-run is stopped and the present process is temporarily terminated.
As a result, when the starter drive count increases, the eco-run is stopped, so that the subsequent starter drive count can be reduced.
[0058]
d) Next, the operation by the above-described processing will be described with reference to the timing chart of FIG.
At time t1, when the IG switch 21 is switched from off to on by operating the IG key, a voltage (+ B) is supplied from the battery 23 to the engine ECU 1. At this time, as described above, the second count value S of the EEPROM 19 is set to “1” in the first routine of FIG.
[0059]
Accordingly, while the IG switch 21 is on, the first count value n of the SRAM 29 is incremented every time starter driving is performed.
When the first count value n reaches the reference value N at time t2, the second count value S is counted up and the first count value n returns to “1”.
[0060]
Here, for example, if the battery 23 is replaced while the second count value S is set to “2”, the backup of the voltage (+ B, BATT) by the battery 23 is lost (time t 3). The data of is cleared. Accordingly, the first count value n is “0”.
[0061]
At time t4, when the battery 23 is connected and the power is restored, the second count value S is incremented and set to "3" even though the first count value n is "0". .
Thereafter, as long as voltage is supplied, the first count value n is similarly incremented every time starter driving is performed.
[0062]
e) In the present embodiment, the following effects can be obtained by the processing and operation described above.
In this embodiment, when the first count value n stored in the SRAM 29 (indicating the number of times of starter driving) reaches the reference value N as in the prior art, the second count value S of the EEPROM 19 is not simply counted up. The second count value S is also counted up when it is determined that the power supply is cut off.
[0063]
Accordingly, since the second count value S is set to a higher value, the total starter drive count T is also always set to a higher value (accordingly, a safe value) than the actual starter drive count.
That is, when the total starter drive count T is set to a higher value, when the total starter drive count T is compared with the starter drive guarantee value, the actual starter drive count approaches the starter drive guarantee value. It can be detected reliably. Therefore, the actual starter driving frequency does not exceed the starter driving guarantee value, and the starter driving can be reliably performed.
[0064]
Furthermore, in this embodiment, when the total starter drive count T is equal to or greater than the starter drive guarantee value, the eco-run is stopped, so that the degree of increase in the subsequent starter drive count can be reduced. . That is, as the starter drive count exceeds the starter drive guarantee value, the possibility that the start operation cannot be performed favorably increases, so the eco-run where the starter drive count increases is stopped. Thereby, after the eco-run is canceled, only the engine is started by the IG key, so the reliability of the starter 33 can be ensured.
[0065]
  Needless to say, the present invention is not limited to the above-described embodiments, and can be implemented in various modes without departing from the scope of the present invention.
  (1) For example, the present invention is not limited to the engine ECU, and the above-described processing is executed.programIt can also be applied to a recording medium that stores.
[0066]
  This recording medium includes microchips and floppy disks.(Registered trademark)And various recording media such as a hard disk and an optical disk. That is, the processing of the electronic control device described above can be executed.ProgramThere is no particular limitation as long as it is memorized.
[0067]
(2) In the above embodiment, the second count value of the EEPROM is counted up when the power is cut off, such as when the battery is replaced, but the phenomenon that the first count value of the SRAM is cleared is Since this also occurs when the voltage for backing up the SRAM drops below the voltage that can hold the data, the second count value of the EEPROM may be counted up when such a drop in voltage occurs. .
[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 illustrating an enlarged main part of an electronic control device according to an embodiment.
FIG. 3 is a flowchart illustrating a starter drive count storage process according to the embodiment.
FIG. 4 is a flowchart illustrating starter driving frequency confirmation processing according to the embodiment.
FIG. 5 is a timing chart showing an operation by processing of an embodiment.
[Explanation of symbols]
1 ... Electronic control unit
3 ... Microcomputer
5 ... Main power circuit
7 ... Sub power circuit
17 ... Starter monitor circuit
19… EEPROM
21 ... Ignition switch (IG switch)
23 ... Battery 23
27 ... Normal RAM (RAM)
29 ... Standby RAM (SRAM)
33 ... Starter

Claims (8)

電源によりバックアップされたRAMと、
電源遮断時にも記憶内容を保持することができる書き込み可能な不揮発性メモリと、
を備え、
前記RAMに第1データを記憶するとともに、前記第1データが所定の基準値に達した場合に、前記不揮発性メモリの第2データを変更する電子制御装置であって、
前記RAMの第1データを保障する保障電圧が維持されたか否かを判断する電圧状態判定手段と、
前記電圧状態判定手段により前記保障電圧が維持されなかったと判断された場合には、前記不揮発性メモリの第2データを、前記第1データが所定の基準値に達した場合と同様に変更するデータ変更手段と、
を備えたことを特徴とする電子制御装置。
RAM backed up by a power supply,
Writable non-volatile memory that can retain stored contents even when the power is turned off,
With
An electronic control device that stores first data in the RAM and changes the second data of the nonvolatile memory when the first data reaches a predetermined reference value,
Voltage state determination means for determining whether or not a guaranteed voltage for ensuring the first data of the RAM is maintained;
Data that changes the second data of the non-volatile memory in the same manner as when the first data reaches a predetermined reference value when the voltage state determining means determines that the guaranteed voltage is not maintained. Change means,
An electronic control device comprising:
前記RAMに所定の事象の発生回数を計数する第1カウント値を記憶するとともに、前記第1カウント値が所定の基準値に達した場合に、前記不揮発性メモリの第2カウント値をカウントアップする電子制御装置であって、前記RAMの第1カウント値を保障する保障電圧が維持されたか否かを判断する電圧状態判定手段と、
前記電圧状態判定手段により前記保障電圧が維持されなかったと判断された場合には、前記不揮発性メモリの第2カウント値をカウントアップするデータ変更手段と、
を備えたことを特徴とする前記請求項1に記載の電子制御装置。
A first count value for counting the number of occurrences of a predetermined event is stored in the RAM, and when the first count value reaches a predetermined reference value, the second count value of the nonvolatile memory is counted up. An electronic control unit, a voltage state determination means for determining whether or not a guaranteed voltage for ensuring the first count value of the RAM is maintained;
If the voltage state determination means determines that the guaranteed voltage has not been maintained, the data change means for counting up the second count value of the nonvolatile memory;
The electronic control device according to claim 1, further comprising:
前記電圧状態判定手段により前記保障電圧が維持されなかったと判断された場合には、前記RAMに記憶されているデータをクリアすることを特徴とする前記請求項1又は2に記載の電子制御装置。3. The electronic control device according to claim 1, wherein when the voltage state determination unit determines that the guaranteed voltage is not maintained, the data stored in the RAM is cleared. 前記電圧状態判定手段は、電源が遮断されたか否かを判定することを特徴とする前記請求項1〜3のいずれかに記載の電子制御装置。The electronic control device according to claim 1, wherein the voltage state determination unit determines whether or not a power source is cut off. 前記不揮発性メモリの第2カウント値に0以外のカウント値を設定し、且つ前記RAMの第1カウント値に0以外のカウント値を設定した後に、前記第1カウント値がクリアされた場合には、前記電源の遮断が発生したと判定することを特徴とする前記請求項4に記載の電子制御装置。When the count value other than 0 is set to the second count value of the nonvolatile memory and the count value other than 0 is set to the first count value of the RAM, and then the first count value is cleared 5. The electronic control device according to claim 4, wherein it is determined that the power supply has been shut off. 前記電子制御装置は、車両のエンジン制御を行う車載の装置であることを特徴とする前記請求項1〜5のいずれかに記載の電子制御装置。The electronic control device according to claim 1, wherein the electronic control device is a vehicle-mounted device that performs engine control of a vehicle. 前記発生回数とは、スタータ駆動回数であることを特徴とする前記請求項2〜6のいずかに記載の電子制御装置。The electronic control device according to claim 2, wherein the number of occurrences is a starter driving number. 前記請求項1〜7のいずれか記載の電子制御装置の前記各手段としてコンピュータを機能させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体。8. A computer-readable recording medium on which a program for causing a computer to function as each means of the electronic control device according to claim 1 is recorded.
JP25422499A 1999-09-08 1999-09-08 Electronic control device and recording medium Expired - Fee Related JP4135269B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25422499A JP4135269B2 (en) 1999-09-08 1999-09-08 Electronic control device and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25422499A JP4135269B2 (en) 1999-09-08 1999-09-08 Electronic control device and recording medium

Publications (2)

Publication Number Publication Date
JP2001076494A JP2001076494A (en) 2001-03-23
JP4135269B2 true JP4135269B2 (en) 2008-08-20

Family

ID=17261997

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25422499A Expired - Fee Related JP4135269B2 (en) 1999-09-08 1999-09-08 Electronic control device and recording medium

Country Status (1)

Country Link
JP (1) JP4135269B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100721385B1 (en) * 2002-05-10 2007-05-23 주식회사 만도 Error detection control method of controller for vehicle
JP5406689B2 (en) * 2009-12-10 2014-02-05 富士通テン株式会社 Control apparatus and control method
JP5284943B2 (en) * 2009-12-24 2013-09-11 富士通テン株式会社 Control apparatus and control method
JP6872474B2 (en) 2017-12-15 2021-05-19 日立建機株式会社 Construction machinery

Also Published As

Publication number Publication date
JP2001076494A (en) 2001-03-23

Similar Documents

Publication Publication Date Title
US8306688B2 (en) Electronic control device
JPH0742888B2 (en) Engine controller
JP2005083221A (en) Power circuit of on-vehicle electronic controller
JP4643074B2 (en) Vehicle power supply control device
JP4135269B2 (en) Electronic control device and recording medium
JP2001263210A (en) Electronic control device and storage medium
JP6323044B2 (en) Vehicle information recording apparatus and program
US6243630B1 (en) Vehicle control system
JP3546791B2 (en) Electronic control unit
JP2017096186A (en) Vehicle electronic control device
US8341343B2 (en) Controller
JP2000268588A (en) Electronic controller and recording medium
JP4707411B2 (en) Electronic control device for vehicle
CN111026093B (en) Method and system for judging abnormal power-off of ECU
JP2000285684A (en) Electronic control device and recording medium
JP4134477B2 (en) Electronic control unit
JP2018073161A (en) Electronic control device
US7027281B2 (en) Failure detecting device
JP3444295B2 (en) Electronic control unit for vehicle engine
JP2001210083A (en) Electronic control device
JP2001189083A (en) Electronic control device
JP6331446B2 (en) Vehicle information recording apparatus and program
US20220126649A1 (en) Control apparatus for vehicle
JP7242131B2 (en) Operation recording device and its data storage method
JP2000353390A (en) Electronic control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080325

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080411

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080526

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140613

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees