JP3531589B2 - Electronic control unit for engine control - Google Patents

Electronic control unit for engine control

Info

Publication number
JP3531589B2
JP3531589B2 JP2000195872A JP2000195872A JP3531589B2 JP 3531589 B2 JP3531589 B2 JP 3531589B2 JP 2000195872 A JP2000195872 A JP 2000195872A JP 2000195872 A JP2000195872 A JP 2000195872A JP 3531589 B2 JP3531589 B2 JP 3531589B2
Authority
JP
Japan
Prior art keywords
engine
power supply
reset
unit
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2000195872A
Other languages
Japanese (ja)
Other versions
JP2002014726A5 (en
JP2002014726A (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 JP2000195872A priority Critical patent/JP3531589B2/en
Priority to US09/874,210 priority patent/US6556901B2/en
Publication of JP2002014726A publication Critical patent/JP2002014726A/en
Application granted granted Critical
Publication of JP3531589B2 publication Critical patent/JP3531589B2/en
Publication of JP2002014726A5 publication Critical patent/JP2002014726A5/ja
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Measuring Temperature Or Quantity Of Heat (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Electric Clocks (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は電子制御装置に係
り、特に、マイクロコンピュータの作動/停止に関わら
ず継続的に時間を計測する時計IC等の計時部を用いた
車載用電子制御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic control device, and more particularly, to an on-vehicle electronic control device using a timekeeping unit such as a clock IC that continuously measures time regardless of whether the microcomputer is activated or stopped. Is.

【0002】[0002]

【従来の技術】例えば車載用電子制御装置(車載EC
U)として、内蔵する時計ICを使って時間経過を計測
し、時計ICからのデータにより、ECU電源がオフに
なっていた時間、すなわちエンジン停止時間(ソーク時
間)を算出したり、各種センサやアクチュエータの故障
発生時刻を記憶したりするものが知られている。
2. Description of the Related Art For example, a vehicle-mounted electronic control device (vehicle-mounted EC
As U), the elapsed time is measured using a built-in timepiece IC, and the time when the ECU power is off, that is, the engine stop time (soak time) is calculated from various data from the timepiece IC. It is known that the time when an actuator failure occurs is stored.

【0003】エンジン冷却水温検出用の温度センサにつ
いてその故障判定を例に挙げれば、エンジン冷却水温
は、エンジン停止後一定時間が経過すれば下がるもので
あり、時計ICを用いてエンジン停止中の時間経過を計
測する。そして、エンジン停止後、所定時間が経過した
時のセンサ検出値(水温)の下がり具合から水温センサ
の故障を判定するようにしていた。
Taking the failure judgment of the temperature sensor for detecting the engine cooling water temperature as an example, the engine cooling water temperature is lowered after a lapse of a fixed time after the engine is stopped, and the time during which the engine is stopped by using a clock IC is used. Measure progress. Then, the failure of the water temperature sensor is determined from the degree of decrease in the sensor detection value (water temperature) when a predetermined time elapses after the engine is stopped.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来技術において、ECU電源がオフになっていた期間中
に時計ICへの給電が途絶えるなどして時計ICがリセ
ットされると、時計ICの時刻データに狂いが生じる。
例えば、時計ICの時刻データからエンジン停止時間
(ソーク時間)を算出した場合にその時間を誤って算出
してしまい、センサ故障判定等を適切に実施できなくな
る可能性があった。つまり、従来既存の装置では、時計
ICの時刻の正当性を確認することができないため、時
刻データに狂いが生じると、該時刻データを用いて実施
される各種制御に支障を来すおそれがあった。
However, in the above-mentioned prior art, when the timepiece IC is reset due to the interruption of power supply to the timepiece IC during the period when the ECU power is off, the time data of the timepiece IC is reset. Goes crazy.
For example, when the engine stop time (soak time) is calculated from the time data of the clock IC, the calculated time may be erroneously calculated, and it may not be possible to appropriately carry out the sensor failure determination or the like. That is, in the existing device in the related art, it is not possible to confirm the correctness of the time of the clock IC. Therefore, if the time data is distorted, various controls performed using the time data may be hindered. It was

【0005】本発明は、上記問題に着目してなされたも
のであって、その目的とするところは、計時部(時計I
C)のリセットが不用意に発生したとしても、それを正
しく認識することができる電子制御装置を提供すること
である。
The present invention has been made in view of the above problems, and its purpose is to provide a clock unit (clock I).
An object of the present invention is to provide an electronic control device capable of correctly recognizing even if the reset of C) occurs carelessly.

【0006】[0006]

【課題を解決するための手段】請求項1に記載の発明で
は、制御部は、イグニッションスイッチがオンになると
動作してエンジン制御に関するデータ演算や制御を実施
すると共に、イグニッションスイッチがオフになると停
止する。計時部は、前記制御部とは別系統の電源からの
給電により動作し、エンジン停止中の時間経過を計測す
る。また特に、制御部は、車載機器の故障判定を行うも
のであって、さらに、計時部への電源供給状態を間接的
又は直接的に監視することにより計時部のリセットの有
無を判定し、前記計時部がリセットされたと判定される
場合には、該故障判定を行わない。要するに、時計IC
等で具体化される計時部は自身のリセットを判定する機
能を持たないが、本発明によれば、計時部への電源供給
状態を監視することにより、計時部のリセットの有無を
制御部にて好適に判定することができる。その結果、計
時部のリセットが不用意に発生したとしても、それを正
しく認識することができる。特に、本発明によれば、制
御部は、計時部がリセットされたと判定される場合に、
故障判定を行わないので、計時部の誤った時刻データを
用いることが原因で判定結果の適正さが欠けるといった
不都合を招くことが無く、信頼性の高い故障判定が実施
できる。
According to a first aspect of the present invention, the control unit operates when the ignition switch is turned on to perform data calculation and control relating to engine control, and stops when the ignition switch is turned off. To do. The timer unit operates by being supplied with electric power from a power source of a system different from that of the control unit, and measures the time elapsed while the engine is stopped. Further, in particular, the control unit also performs a failure determination of the in-vehicle device.
A than, and is further determined by determining the presence or absence of the reset of the timer unit by indirectly or directly monitor the power supply state to the time measuring unit, wherein the timing unit is reset
In that case, the failure determination is not performed . In short, the clock IC
However, according to the present invention, by monitoring the power supply state to the timer unit, the control unit determines whether the timer unit is reset or not. Can be appropriately determined. As a result, even if the reset of the timekeeping unit occurs carelessly, it can be recognized correctly. In particular, according to the invention,
When it is determined that the clock unit has been reset,
Since no failure judgment is made, incorrect time data in the timekeeping section
The judgment result is not appropriate due to the use
Highly reliable failure determination without inconvenience
it can.

【0007】請求項2に記載の発明では、前記制御部は
その起動に際して、該制御部の停止期間中に計時部がリ
セットされたかどうかを判定するので、エンジン停止中
(制御部の停止期間中)に計時部のリセットが発生した
としても、それを制御部の起動直後に認識することがで
きる。制御部の起動時において計時部のリセット判定を
行うことにより、起動当初から誤りのない各種制御が実
施できるようになる。
According to the second aspect of the present invention, the control unit determines whether or not the timekeeping unit has been reset during the stop period of the control unit when the control unit is started. Therefore, the engine is stopped (during the stop period of the control unit). Even if a reset of the clock unit occurs in), it can be recognized immediately after the control unit is activated. By performing the reset determination of the clock unit at the time of starting the control unit, it is possible to perform various kinds of control without error from the beginning of the start.

【0008】ここで、請求項3又は請求項4の如く、計
時部と電源を同一とし該電源からの給電により記憶内容
を保持するメモリ(スタンバイRAM等)を要件とする
ことで、計時部への電源供給状態を間接的に監視するこ
とが可能となる。
[0008] Here, as in claim 3 or claim 4, by providing a memory (standby RAM or the like) for holding the stored contents by the same power supply as the timekeeping unit and power supply from the power supply, It is possible to indirectly monitor the power supply state of the.

【0009】すなわち、請求項3に記載の発明では、計
時部のリセット電圧(最低作動電圧)よりも幾分高いメ
モリのデータ保持電圧をしきい値として電源電圧の低下
を監視する電子制御装置であって、制御部は、データ保
持電圧以下にメモリの電源電圧が低下したことを表す履
歴に基づいて、計時部のリセットの有無を判定する。こ
の場合、計時部のリセット電圧とメモリのデータ保持電
圧とが比較的近く、且つ「リセット電圧<データ保持電
圧」であることから、電源電圧がメモリのデータ保持電
圧以下に低下すれば、計時部のリセットが同時に発生し
た可能性が高いと考えられる。故にこのことから、計時
部のリセット判定を行うことができる。またこの場合、
スタンバイRAM等のメモリを備えるマイクロコンピュ
ータの場合は一般に、データ保持電圧をしきい値とする
電圧監視機能を予め有しており、その既存構成を用いる
ことにより、新たな構成を付加することなく本装置が実
現できる。
That is, according to the third aspect of the present invention, an electronic control device for monitoring a decrease in the power supply voltage using the data holding voltage of the memory, which is slightly higher than the reset voltage (minimum operating voltage) of the clock unit, as a threshold value. Therefore, the control unit determines whether or not the timekeeping unit is reset based on the history indicating that the power supply voltage of the memory has dropped below the data holding voltage. In this case, since the reset voltage of the timer unit and the data holding voltage of the memory are relatively close and “reset voltage <data holding voltage”, if the power supply voltage drops below the data holding voltage of the memory, It is highly possible that the two resets occurred at the same time. Therefore, from this, it is possible to make a reset determination of the time counting unit. Also in this case,
In general, a microcomputer provided with a memory such as a standby RAM has a voltage monitoring function that uses a data holding voltage as a threshold value in advance, and by using the existing configuration of the microcomputer, it is possible to add a new configuration without adding a new configuration. The device can be realized.

【0010】また、請求項4に記載の発明では、制御部
は、メモリの保持データをチェックし、そのチェック結
果から計時部のリセットの有無を判定する。この場合、
仮にメモリの保持データが破壊されたと判定されれば、
それは電源電圧がデータ保持電圧以下に低下したことに
起因すると考えられる。従って上述した通り、計時部の
リセット電圧とメモリのデータ保持電圧とが比較的近
く、且つ「リセット電圧<データ保持電圧」であること
から、上記した電圧低下時は、計時部のリセットも同時
に発生した可能性が高いと考えられる。故にこのことか
ら、計時部のリセット判定を行うことができる。
Further, according to the invention described in claim 4, the control section checks the data held in the memory, and judges from the check result whether or not the clock section is reset. in this case,
If it is determined that the data held in the memory has been destroyed,
It is considered that this is because the power supply voltage has dropped below the data holding voltage. Therefore, as described above, the reset voltage of the clock unit and the data holding voltage of the memory are relatively close to each other and "reset voltage <data holding voltage". Therefore, at the time of the above voltage drop, the reset of the clock unit also occurs at the same time. It is highly possible that Therefore, from this, it is possible to make a reset determination of the time counting unit.

【0011】また、請求項5に記載したように、計時部
の電源電圧を検出する手段を設け、該電源電圧の検出結
果に基づいて計時部のリセットを判定するように構成す
れば、計時部への電源供給状態を直接的に監視して計時
部のリセット判定を実施することができる。例えば、計
時部の最低作動電圧又はそれよりも幾分高い電圧値をし
きい値として、電源電圧低下を監視すると良い。
Further, when the means for detecting the power supply voltage of the timer is provided and the reset of the timer is judged based on the detection result of the power supply voltage, the timer can be configured. It is possible to directly monitor the state of power supply to the power supply and make a reset determination of the timer. For example, the power supply voltage drop may be monitored by using the minimum operating voltage of the timer unit or a voltage value slightly higher than the minimum operating voltage as a threshold value.

【0012】請求項6に記載の発明では、エンジン停止
中の経過時間とエンジン始動時における水温センサの検
出値とから当該水温センサの故障が判定される。この場
合、計時部がリセットされたと判定される場合に、水温
センサの故障判定を禁止するので、計時部の誤った時刻
データを用いることが原因で判定結果の適正さが欠ける
といった不都合を招くことが無く、信頼性の高いセンサ
故障判定が実施できる。
According to the sixth aspect of the present invention, the failure of the water temperature sensor is determined based on the elapsed time during the engine stop and the detection value of the water temperature sensor at the engine start. In this case, when it is determined that the timekeeping unit has been reset, failure determination of the water temperature sensor is prohibited, which may cause inconvenience that the determination result is insufficient due to use of incorrect time data of the timekeeping unit. Therefore, highly reliable sensor failure determination can be performed.

【0013】[0013]

【発明の実施の形態】以下、この発明を具体化した一実
施の形態を図面に従って説明する。図1は、自動車に搭
載されてエンジン制御をはじめその他の制御を行う車載
用制御装置(ECU)の一例を示すブロック図である。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an example of a vehicle-mounted control unit (ECU) mounted on a vehicle to perform engine control and other controls.

【0014】図1において、ECU10は、2系統の給
電路によりバッテリ21に接続されており、該ECU1
0内の電源IC11には、IGスイッチ22のオン/オ
フに応じてバッテリ電源が供給される一方、別系統にて
常時バッテリ電源が供給される。また、バッテリ21に
はスタータスイッチ23を介してスタータ装置24が接
続されている。
In FIG. 1, the ECU 10 is connected to a battery 21 by two power feed paths.
The battery power is supplied to the power supply IC 11 in 0 according to the ON / OFF of the IG switch 22, while the battery power is always supplied by another system. A starter device 24 is connected to the battery 21 via a starter switch 23.

【0015】ECU10内の電源IC11は、メイン電
源とサブ電源(本実施の形態では共に5V程度)を生成
し出力するものであり、IGスイッチ22のオン/オフ
状態に関わらず常にサブ電源を生成すると共に、IGス
イッチ22のオン(閉鎖)に伴いメイン電源を生成す
る。このうちサブ電源が、計時部としての時計IC12
とスタンバイRAM(以下、SRAMと略す)13に供
給される。これにより、時計IC12は、IGスイッチ
22のオン/オフに関わらず継続的に時間の計測を行う
ことができる。また、SRAM13は、IGスイッチ2
2のオフ時にも記憶内容を保持することができる。
The power supply IC 11 in the ECU 10 generates and outputs a main power supply and a sub power supply (both about 5 V in this embodiment), and always generates the sub power supply regardless of the ON / OFF state of the IG switch 22. At the same time, when the IG switch 22 is turned on (closed), main power is generated. Of these, the sub power supply is the clock IC 12 as a timekeeping unit.
And a standby RAM (hereinafter abbreviated as SRAM) 13 are supplied. As a result, the clock IC 12 can continuously measure time regardless of whether the IG switch 22 is on or off. In addition, the SRAM 13 is the IG switch 2
It is possible to retain the stored contents even when 2 is turned off.

【0016】時計IC12は、水晶発振器からのクロッ
ク信号を内部で分周し、「年、月、日、時、分、秒」を
内蔵カウンタで計数する。時計IC12は、一度、日時
と時刻を設定し起動すると、電源供給が継続される限り
動き続け、その内部の値を読み込むことで正確な時刻デ
ータが得られる。
The clock IC 12 internally divides the clock signal from the crystal oscillator, and counts "year, month, day, hour, minute, second" with a built-in counter. Once the time and date and time are set and activated once, the clock IC 12 continues to operate as long as power supply is continued, and accurate time data can be obtained by reading the internal value.

【0017】メイン電源は、制御部としてのマイコン
(マイクロコンピュータ)14とEEPROM15に供
給され、マイコン14は、メイン電源の供給に伴い起動
する。つまり、IGスイッチ22がオンになるとマイコ
ン14が動作し、同IGスイッチ22がオフになるとマ
イコン14が停止する。マイコン14は、CPUやメモ
リ等からなる周知の論理演算回路で構成されており、各
種データ演算や制御を実施する。またマイコン14は、
時計IC12の保持する時刻データを定期的に読み取
り、その時刻データを必要に応じてSRAM13に記憶
する。
The main power source is supplied to a microcomputer (microcomputer) 14 and an EEPROM 15 as a control unit, and the microcomputer 14 is activated when the main power source is supplied. That is, when the IG switch 22 is turned on, the microcomputer 14 operates, and when the IG switch 22 is turned off, the microcomputer 14 stops. The microcomputer 14 is composed of a well-known logical operation circuit including a CPU and a memory, and executes various data operations and controls. In addition, the microcomputer 14
The time data held by the clock IC 12 is periodically read and the time data is stored in the SRAM 13 as needed.

【0018】水温センサ25は、エンジン冷却水の温度
を検出するものであり、その検出値はマイコン14内の
ADC(ADコンバータ)14aに取り込まれる。マイ
コン14は、水温センサ25の検出値からその時々のエ
ンジン冷却水温を検知する。また、マイコン14は、水
温センサ25の故障診断を実施し、故障発生の旨を判定
すると、故障内容を示す故障コード等をEEPROM1
5に記憶する。
The water temperature sensor 25 detects the temperature of the engine cooling water, and the detected value is taken into the ADC (AD converter) 14a in the microcomputer 14. The microcomputer 14 detects the engine cooling water temperature at each time from the detection value of the water temperature sensor 25. Further, when the microcomputer 14 carries out a failure diagnosis of the water temperature sensor 25 and determines that a failure has occurred, the EEPROM 1 outputs a failure code indicating the details of the failure.
Store in 5.

【0019】次に、水温センサ25の故障判定に関わる
マイコン14の処理手順について説明する。図2は、マ
イコン起動時に実施される水温センサ25の故障判定ル
ーチンを示すフローチャートである。なお、ここで説明
する水温センサ25の故障判定は、ソーク時間(エンジ
ンを停止して車両を放置した時間)が所定時間以上とな
る場合に、エンジン始動時における水温検出値の下がり
具合から水温センサ25の故障を診断するものである。
Next, the processing procedure of the microcomputer 14 relating to the failure determination of the water temperature sensor 25 will be described. FIG. 2 is a flowchart showing a failure determination routine of the water temperature sensor 25 which is executed when the microcomputer is started. It should be noted that the failure determination of the water temperature sensor 25 described here is based on the degree of decrease in the water temperature detection value at the engine start when the soak time (the time when the vehicle is left with the engine stopped) is a predetermined time or longer. 25 failures are diagnosed.

【0020】また、マイコン14は図2の処理の他に、
図5に示す定時割り込み処理を実施する。先ず始めに図
5の割り込み処理を説明すると、例えば1秒毎に図5の
処理が起動され、ステップ401では、時計IC12の
今現在の時刻データ(現在時刻)を「前回時刻」とす
る。続くステップ402では、その前回時刻をSRAM
13に記憶する。図5の処理によれば、エンジンの通常
運転時において1秒毎に時計IC12の時刻データが
「前回時刻」としてSRAM13に記憶される。このと
き、SRAM13の前回時刻データは毎回上書きされ
る。それ故、エンジンの運転停止時(IGオフ時)に
は、最後に記憶された前回時刻データがSRAM13に
残り、当該データがエンジン停止中も保持されることと
なる。
In addition to the processing shown in FIG.
The scheduled interrupt processing shown in FIG. 5 is executed. First, the interrupt process of FIG. 5 will be described. For example, the process of FIG. 5 is started every one second, and in step 401, the current time data (current time) of the clock IC 12 is set to “previous time”. In the following step 402, the previous time is stored in the SRAM.
Store in 13. According to the process of FIG. 5, the time data of the clock IC 12 is stored in the SRAM 13 as the “previous time” every one second during the normal operation of the engine. At this time, the previous time data in the SRAM 13 is overwritten each time. Therefore, when the engine is stopped (when the IG is off), the last stored last time data remains in the SRAM 13 and the data is retained even when the engine is stopped.

【0021】一方で、マイコン14の起動時に図2がス
タートすると、ステップ101では、時計IC12のリ
セット判定を行う。このリセット判定は、マイコン起動
前(エンジン停止期間)において時計IC12がリセッ
トされた形跡があるか否かを判別するものであって、例
えば図3又は図4の処理に従い実施される。但し、その
詳細は後述する。
On the other hand, when FIG. 2 starts when the microcomputer 14 is started up, in step 101, the reset judgment of the timepiece IC 12 is performed. This reset determination determines whether or not there is a sign that the clock IC 12 has been reset before the microcomputer is activated (engine stop period), and is performed according to the process of FIG. 3 or FIG. 4, for example. However, the details will be described later.

【0022】続くステップ102では、上記ステップ1
01の結果を受けて時計ICリセットが確認された否か
を判別する。時計IC12がリセットされていた場合、
後続の故障判定処理を実施することなくそのまま本処理
を終了する。また、時計IC12がリセットされてない
場合、ステップ103以降の故障判定処理を実施する。
In the following step 102, the above step 1
Based on the result of 01, it is determined whether or not the timepiece IC reset is confirmed. If the clock IC12 has been reset,
The present process is terminated without performing the subsequent failure determination process. If the clock IC 12 has not been reset, the failure determination process from step 103 is executed.

【0023】ステップ103では、時計IC12から現
在の時刻を読み込み、続くステップ104では、前回の
エンジン停止時から今現在までの経過時間によりソーク
時間を算出する。すなわち、上記ステップ103で読み
込んだ現在時刻と、前回エンジン停止時の前回時刻(上
記図5、ステップ402のSRAM値)との差からソー
ク時間を算出する。
At step 103, the current time is read from the clock IC 12, and at step 104, the soak time is calculated from the elapsed time from the last engine stop to the present. That is, the soak time is calculated from the difference between the current time read in step 103 and the previous time when the engine was stopped last time (SRAM value in step 402 in FIG. 5 above).

【0024】その後、ステップ105では、前記算出し
たソーク時間が所定時間a(例えば6時間)よりも長い
か否かを判別し、YESの場合に、続くステップ106
でその時の冷却水温(センサ検出値)が所定温度b(例
えば50℃)以上であるか否かを判別する。
Thereafter, in step 105, it is judged whether or not the calculated soak time is longer than a predetermined time a (for example, 6 hours), and if YES, the following step 106
Then, it is determined whether or not the cooling water temperature (sensor detection value) at that time is equal to or higher than a predetermined temperature b (for example, 50 ° C.).

【0025】所定のソーク時間が経過した時に冷却水温
(センサ検出値)が十分に低下していれば、水温センサ
25が正常であると判定できることから、ステップ10
6がNOの場合、水温センサ正常であると判定し(ステ
ップ107)、ステップ106がYESの場合、水温セ
ンサ故障であると判定する(ステップ108)。なお、
ステップ108では、水温センサ故障を表すダイアグコ
ード等がEEPROM15に記憶されると共に、故障発
生を警告するために警告灯(MIL等)が点灯される。
If the cooling water temperature (sensor detection value) has fallen sufficiently when the predetermined soak time has elapsed, it can be judged that the water temperature sensor 25 is normal.
If 6 is NO, it is determined that the water temperature sensor is normal (step 107), and if step 106 is YES, it is determined that the water temperature sensor is faulty (step 108). In addition,
In step 108, a diagnostic code or the like indicating a failure of the water temperature sensor is stored in the EEPROM 15, and a warning lamp (MIL or the like) is turned on to warn the occurrence of the failure.

【0026】次に、時計IC12のリセット判定処理
(上記図2、ステップ101のサブルーチン)を図3及
び図4のフローチャートを用いて説明する。なお以下に
は、図3及び図4の各々について時計IC12のリセッ
ト判定が可能であることの根拠と同処理の手順とを順に
説明する。
Next, the reset determination process of the timepiece IC 12 (subroutine of step 101 in FIG. 2 above) will be described with reference to the flowcharts of FIGS. 3 and 4. In the following, the grounds that the reset determination of the clock IC 12 is possible and the procedure of the same processing will be described in order for each of FIGS. 3 and 4.

【0027】先ずは図3について説明する。要するに、
上述した通りサブ電源は時計IC12とSRAM13に
供給されており、このサブ電源が所定の低電圧域まで低
下すると、時計IC12の作動に支障を来すと共に、S
RAM13において適正にデータが記憶保持できなくな
る。具体的には、図6に示すように、時計IC12のリ
セット電圧(最低作動電圧)は2.0V程度であり、サ
ブ電源電圧がリセット電圧以下になると、時計IC12
がリセットされる。また、SRAM13のデータ保持電
圧は2.5V程度であり、サブ電源の電圧がデータ保持
電圧以下になると、SRAM13のデータが破壊される
可能性が生じる。
First, FIG. 3 will be described. in short,
As described above, the sub power supply is supplied to the timepiece IC 12 and the SRAM 13. If the sub power supply drops to a predetermined low voltage range, the operation of the timepiece IC 12 is hindered and the S
Data cannot be properly stored and held in the RAM 13. Specifically, as shown in FIG. 6, the reset voltage (minimum operating voltage) of the timepiece IC12 is about 2.0 V, and when the sub power supply voltage becomes equal to or lower than the reset voltage, the timepiece IC12 is
Is reset. Further, the data holding voltage of the SRAM 13 is about 2.5V, and when the voltage of the sub power supply becomes equal to or lower than the data holding voltage, the data of the SRAM 13 may be destroyed.

【0028】かかる場合、時計IC12のリセットを監
視する機能は元々無いが、SRAM13は電源監視機能
を持ち、サブ電源電圧がデータ保持電圧以下になった時
にその履歴を残すことができる。そこで、時計IC12
のリセット電圧とSRAM13のデータ保持電圧とが比
較的近く、また「リセット電圧<データ保持電圧」であ
ることから、SRAM13の電源監視機能を用いてサブ
電源電圧がデータ保持電圧以下になった履歴が確認され
た場合には、時計IC12がリセットされた可能性が高
いと判断する。
In such a case, although the function of monitoring the reset of the clock IC 12 is not originally provided, the SRAM 13 has a power supply monitoring function and can record the history when the sub power supply voltage becomes equal to or lower than the data holding voltage. Therefore, the clock IC12
Is relatively close to the data holding voltage of the SRAM 13, and "reset voltage <data holding voltage", the history that the sub power supply voltage becomes equal to or lower than the data holding voltage by using the power supply monitoring function of the SRAM 13 is If it is confirmed, it is highly likely that the clock IC 12 has been reset.

【0029】例えば、図6において、サブ電源電圧が図
の丸数字1又は2のように低下する場合、何れの場合も
データ保持電圧(2.5V)を下回るため、そのサブ電
源低下の履歴がSRAM13に残ることとなる。これ
は、データ保持電圧の監視により時計IC12に対する
電源電圧低下を間接的に判定するものであるが、上記し
た各電圧値の大小関係から、時計IC12のリセットが
漏れなく判定できるようになる。
For example, in FIG. 6, when the sub power supply voltage drops as indicated by the circled numbers 1 or 2 in the figure, the data holding voltage (2.5 V) is dropped in either case, so the history of the sub power supply drop is shown. It remains in the SRAM 13. This indirectly determines the power supply voltage drop for the timepiece IC12 by monitoring the data holding voltage. However, the reset of the timepiece IC12 can be determined without omission because of the magnitude relation between the above voltage values.

【0030】実際には、マイコン14が図3をスタート
すると、ステップ201では、SRAM13に残る履歴
から、マイコン停止中(エンジン停止中)にサブ電源低
下があったか否かを判別する。そして、サブ電源低下が
なければステップ202に進み、時計ICリセット無し
の旨を記憶した後元の図2の処理に戻る。また、サブ電
源低下があった場合、ステップ203でSRAM13を
初期化し、更にステップ204で時計ICリセット有り
の旨を記憶した後元の図2の処理に戻る。
In practice, when the microcomputer 14 starts the process shown in FIG. 3, in step 201, it is determined from the history stored in the SRAM 13 whether or not the sub power supply voltage has dropped while the microcomputer is stopped (the engine is stopped). Then, if the sub power supply has not dropped, the process proceeds to step 202, stores the fact that the clock IC is not reset, and then returns to the original process of FIG. If the sub power supply has dropped, the SRAM 13 is initialized in step 203, and further, in step 204, the fact that the clock IC is reset is stored, and then the process returns to the original process of FIG.

【0031】一方、図4のリセット判定処理は、マイコ
ン起動時においてSRAM13の記憶データをチェック
することにより、時計IC12のリセットを判定するも
のである。具体的には、SRAM13に予め記憶されて
いる所定のキーワードが正しいか否かを判定する、いわ
ゆる「キーワードチェック」や、SRAM13の記憶デ
ータを真値と照合する、「ミラーチェック」等を実施す
る。かかる場合、上記のチェック結果が異常であれば、
サブ電源電圧の低下が原因でデータが破壊されたと予測
できることから、時計IC12がリセットされた可能性
も高いと判断できる。
On the other hand, the reset judgment processing of FIG. 4 judges the reset of the clock IC 12 by checking the data stored in the SRAM 13 when the microcomputer is started. Specifically, a so-called "keyword check" for determining whether or not a predetermined keyword stored in the SRAM 13 in advance is correct, a "mirror check" for checking the stored data of the SRAM 13 with a true value, and the like are performed. . In this case, if the above check result is abnormal,
Since it can be predicted that the data has been destroyed due to the drop in the sub power supply voltage, it can be determined that the clock IC 12 may have been reset.

【0032】さて実際には、マイコン14が図4をスタ
ートすると、ステップ301ではキーワードチェックを
行い、ステップ302では、ミラーチェックを行う。そ
して、ステップ301,302が共に正常(OK)であ
ればステップ303に進み、時計ICリセット無しの旨
を記憶した後元の図2の処理に戻る。また、ステップ3
01,302の何れかが異常(NG)であれば、ステッ
プ304でSRAM13を初期化し、更にステップ30
5で時計ICリセット有りの旨を記憶した後元の図2の
処理に戻る。
Actually, when the microcomputer 14 starts FIG. 4, in step 301, a keyword check is performed, and in step 302, a mirror check is performed. If both steps 301 and 302 are normal (OK), the process proceeds to step 303, stores the fact that the clock IC is not reset, and returns to the original process of FIG. Also, step 3
If any of 01 and 302 is abnormal (NG), the SRAM 13 is initialized in step 304, and further step 30
After the fact that the clock IC has been reset is stored in 5, the process returns to the original process of FIG.

【0033】以上詳述した本実施の形態によれば、以下
に示す効果が得られる。マイコン14の起動時において
時計IC12がリセットされたかどうかを判定するの
で、エンジン停止中(マイコン停止期間中)に時計IC
12のリセットが発生したとしても、それをマイコン起
動直後に認識することができる。
According to this embodiment described in detail above, the following effects can be obtained. Since it is determined whether or not the clock IC 12 has been reset when the microcomputer 14 is started up, the clock IC 12 is activated while the engine is stopped (during the microcomputer stop period).
Even if the 12 reset occurs, it can be recognized immediately after the microcomputer is started.

【0034】サブ電源電圧がデータ保持電圧以下に低下
したことを表す履歴から、時計IC12への電源供給状
態が間接的に監視されるので、時計IC12のリセット
の有無が好適に判定できる。またこの場合、SRAM1
3自身又はマイコン14は、データ保持電圧をしきい値
とする電圧監視機能を予め有しており、その既存構成を
用いることにより、新たな構成を付加することなく本装
置が実現できる。
Since the power supply state to the timepiece IC12 is indirectly monitored from the history indicating that the sub-power supply voltage has dropped to the data holding voltage or less, it is possible to preferably determine whether or not the timepiece IC12 is reset. In this case, SRAM1
The device 3 itself or the microcomputer 14 has a voltage monitoring function which uses the data holding voltage as a threshold value in advance, and by using the existing configuration thereof, the present device can be realized without adding a new configuration.

【0035】また、SRAM13の保持データをチェッ
クすることにより、時計IC12への電源供給状態が間
接的に監視されるので、時計IC12のリセットの有無
が好適に判定できる。
Further, by checking the data held in the SRAM 13, the power supply state to the timepiece IC 12 is indirectly monitored, so that whether the timepiece IC 12 is reset or not can be suitably judged.

【0036】時計IC12がリセットされたと判定され
る場合、水温センサ25の故障判定を禁止するので、時
計IC12の誤った時刻データを用いることが原因で判
定結果の適正さが欠けるといった不都合を招くことが無
く、信頼性の高いセンサ故障判定が実施できる。
When it is determined that the timepiece IC12 has been reset, the failure determination of the water temperature sensor 25 is prohibited, so that the use of incorrect time data of the timepiece IC12 causes an inconvenience in that the determination result is not appropriate. Therefore, highly reliable sensor failure determination can be performed.

【0037】なお本発明は、上記以外に次の形態にて具
体化できる。上記実施の形態では、水温センサ25の故
障判定に合わせて、マイコン起動時に時計IC12のリ
セット判定を実施したが、これ以外に、通常のマイコン
動作期間(エンジンの通常運転期間)において、例えば
定期的に時計IC12のリセット判定を実施しても良
い。これにより、マイコン停止期間(エンジン停止期
間)だけでなく、それ以外の場合にも時計IC12のリ
セットの有無が好適に判定できるようになる。その結
果、不用意に発生する時計IC12のリセットを正しく
認識することができる。
The present invention can be embodied in the following modes other than the above. In the above-described embodiment, the reset determination of the clock IC 12 is performed at the time of starting the microcomputer in accordance with the determination of the failure of the water temperature sensor 25. However, in addition to this, for example, periodically during the normal microcomputer operating period (normal engine operating period). Alternatively, the reset determination of the clock IC 12 may be performed. As a result, whether or not the clock IC 12 is reset can be appropriately determined not only during the microcomputer stop period (engine stop period) but also in other cases. As a result, it is possible to correctly recognize the careless reset of the clock IC 12.

【0038】時計IC12の電源電圧(サブ電源電圧)
を検出する手段を設け、該電源電圧の検出結果に基づい
て時計IC12のリセットを判定するように構成しても
良い。これにより、時計IC12への電源供給状態を直
接的に監視することができ、それに応じてリセット判定
を実施することができる。例えば、時計IC12の最低
作動電圧又はそれよりも幾分高い電圧値をしきい値とし
て、電源電圧低下を監視すると良い。
Power supply voltage of clock IC 12 (sub power supply voltage)
May be provided, and the reset of the timepiece IC 12 may be determined based on the detection result of the power supply voltage. As a result, the power supply state to the timepiece IC 12 can be directly monitored, and the reset determination can be performed accordingly. For example, it is advisable to monitor the power supply voltage drop using the minimum operating voltage of the clock IC 12 or a voltage value slightly higher than the minimum operating voltage as a threshold value.

【0039】上記実施の形態では、時計IC12の時刻
データを用いてソーク時間を計測し、それに基づいて水
温センサ25の故障判定を行ったが、時計IC12の用
途はこれに限定されない。例えば、各種センサやアクチ
ュエータ等、車載機器の故障判定を行う際に、故障情報
(ダイアグコード等)と共に時計IC12の時刻データ
をEEPROMに記憶する。これにより、故障発生時刻
が記憶され、故障発生の時系列が明確になる。かかる場
合、時計IC12のリセットにより時刻データに狂いが
生じ、それに気付かないことが原因で後々の故障解析に
支障を来すといった問題が解消される。
In the above embodiment, the soak time is measured using the time data of the timepiece IC12 and the failure determination of the water temperature sensor 25 is performed based on the soak time, but the use of the timepiece IC12 is not limited to this. For example, when determining a failure of an in-vehicle device such as various sensors or actuators, the time data of the clock IC 12 is stored in the EEPROM together with the failure information (diag code or the like). As a result, the failure occurrence time is stored and the time series of the failure occurrence becomes clear. In such a case, the problem that the time data is distorted due to the reset of the clock IC 12 and the failure analysis is hindered later due to not being noticed is solved.

【0040】[0040]

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

【図1】発明の実施の形態における車載用制御装置の一
例を示すブロック図。
FIG. 1 is a block diagram showing an example of a vehicle-mounted control device according to an embodiment of the invention.

【図2】水温センサの故障判定ルーチンを示すフローチ
ャート。
FIG. 2 is a flowchart showing a failure determination routine of the water temperature sensor.

【図3】時計ICのリセット判定処理を示すフローチャ
ート。
FIG. 3 is a flowchart showing a reset determination process of the clock IC.

【図4】時計ICのリセット判定処理を示すフローチャ
ート。
FIG. 4 is a flowchart showing a reset determination process of the clock IC.

【図5】1秒毎の割り込み処理を示すフローチャート。FIG. 5 is a flowchart showing interrupt processing every 1 second.

【図6】実施の形態の作用を説明するためのタイムチャ
ート。
FIG. 6 is a time chart for explaining the operation of the embodiment.

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

10…ECU、11…電源IC、12…時計IC(計時
部)、13…SRAM、14…マイコン(制御部)、2
1…バッテリ、22…IGスイッチ(電源スイッチ)、
25…水温センサ。
10 ... ECU, 11 ... Power supply IC, 12 ... Clock IC (timekeeping section), 13 ... SRAM, 14 ... Microcomputer (control section), 2
1 ... Battery, 22 ... IG switch (power switch),
25 ... Water temperature sensor.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G05B 23/00 - 23/02 F02D 41/00 - 41/40 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields investigated (Int.Cl. 7 , DB name) G05B 23/00-23/02 F02D 41/00-41/40

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】自動車に搭載されエンジン制御を行うエン
ジン制御用電子制御装置において、 イグニッションスイッチがオンになると動作して前記エ
ンジン制御に関するデータ演算や制御を実施すると共
に、前記イグニッションスイッチがオフになると停止す
る制御部と、 前記制御部とは別系統の電源からの給電により動作し、
エンジン停止中の時間経過を計測する計時部とを備え、 前記制御部は、車載機器の故障判定を行うものであっ
て、さらに、計時部への電源供給状態を間接的又は直接
的に監視することにより計時部のリセットの有無を判定
し、前記計時部がリセットされたと判定される場合に
は、前記故障判定を行わないことを特徴とするエンジン
制御用電子制御装置。
1. An electronic control unit for engine control mounted on a vehicle for controlling an engine, which operates when an ignition switch is turned on to perform data calculation and control relating to the engine control, and when the ignition switch is turned off. A control unit to be stopped, and the control unit is operated by power supply from a power supply of a different system,
And a time measuring unit for measuring time elapsed during the engine stop, the control unit may be one that performs failure determination of the in-vehicle equipment
In addition, it also determines whether or not the timer has been reset by indirectly or directly monitoring the power supply status to the timer.
If it is determined that the timekeeping unit has been reset,
Is an electronic control unit for engine control , wherein the failure determination is not performed .
【請求項2】 前記制御部はその起動に際して、該制御
部の停止期間中に計時部がリセットされたかどうかを判
定する請求項1に記載のエンジン制御用電子制御装置。
2. The electronic control device for engine control according to claim 1, wherein the control unit determines, when the control unit is started, whether or not the time counting unit is reset during a stop period of the control unit.
【請求項3】 前記計時部と電源を同一とし該電源から
の給電により記憶内容を保持するメモリを備え、計時部
のリセット電圧よりも幾分高い前記メモリのデータ保持
電圧をしきい値として電源電圧の低下を監視するエンジ
ン制御用電子制御装置であって、 前記制御部は、前記データ保持電圧以下にメモリの電源
電圧が低下したことを表す履歴に基づいて、計時部のリ
セットの有無を判定する請求項1又は2に記載のエンジ
ン制御用電子制御装置。
3. A power supply is provided with the same power supply as that of the timekeeping unit and holding stored contents by power supply from the power supply, with the data holding voltage of the memory somewhat higher than the reset voltage of the timekeeping unit as a threshold value. Engine to monitor the voltage drop
3. An electronic control device for electronic control, wherein the control unit determines whether or not the timer unit is reset based on a history indicating that the power supply voltage of the memory has dropped below the data holding voltage. Engine described in
Electronic control unit for control.
【請求項4】 前記計時部と電源を同一とし該電源から
の給電により記憶内容を保持するメモリを備え、 前記制御部は、前記メモリの保持データをチェックし、
そのチェック結果から計時部のリセットの有無を判定す
る請求項1又は2に記載のエンジン制御用電子制御装
置。
4. A memory having the same power source as that of the timekeeping unit and holding stored contents by power supply from the power source, the control unit checking data held in the memory,
The engine control electronic control unit according to claim 1, wherein it is determined whether or not the timekeeping unit is reset based on the check result.
【請求項5】 前記計時部の電源電圧を検出する手段を
設け、前記制御部は、電源電圧の検出結果に基づいて計
時部のリセットを判定する請求項1又は2に記載のエン
ジン制御用電子制御装置。
5. a means for detecting a power supply voltage of the timing section, wherein the control unit ene according to the reset of the timer unit in claim 1 or 2 determines based on the detection result of the supply voltage
Electronic control device for gin control .
【請求項6】 ンジンの冷却水の温度を検出する水温
センサを備え、エンジン停止中の経過時間とエンジン始
動時における水温センサの検出値とから当該水温センサ
の故障を判定するエンジン制御用電子制御装置であり、 前記制御部は、計時部がリセットされたと判定される場
合に、水温センサの故障判定を禁止する請求項1〜5の
何れかに記載のエンジン制御用電子制御装置。
Further comprising: a coolant temperature sensor for detecting the temperature of coolant of the engine, an electronic for determining engine control fault and a detection value of the water temperature sensor of the water temperature sensor during the elapsed time while the engine is stopped and the engine start It is a control device, The said control part is an electronic control device for engine control in any one of Claims 1-5 which prohibits failure determination of a water temperature sensor, when it determines with the timekeeping part having been reset.
JP2000195872A 2000-06-29 2000-06-29 Electronic control unit for engine control Expired - Lifetime JP3531589B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2000195872A JP3531589B2 (en) 2000-06-29 2000-06-29 Electronic control unit for engine control
US09/874,210 US6556901B2 (en) 2000-06-29 2001-06-06 Electronic control unit and method measuring and using electric power-off period

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000195872A JP3531589B2 (en) 2000-06-29 2000-06-29 Electronic control unit for engine control

Publications (3)

Publication Number Publication Date
JP2002014726A JP2002014726A (en) 2002-01-18
JP3531589B2 true JP3531589B2 (en) 2004-05-31
JP2002014726A5 JP2002014726A5 (en) 2004-09-24

Family

ID=18694466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000195872A Expired - Lifetime JP3531589B2 (en) 2000-06-29 2000-06-29 Electronic control unit for engine control

Country Status (1)

Country Link
JP (1) JP3531589B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009191743A (en) * 2008-02-14 2009-08-27 Honda Motor Co Ltd Abnormality determination device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7475234B2 (en) 2004-02-10 2009-01-06 Denso Corporation Electronic control apparatus equipped with malfunction monitor
JP4640060B2 (en) * 2005-09-12 2011-03-02 株式会社アドヴィックス Brake control device
JP5080956B2 (en) * 2007-12-19 2012-11-21 株式会社ハーマン Monitoring device for power-off state in cooking device
JP5295213B2 (en) * 2010-12-13 2013-09-18 日立オートモティブシステムズ株式会社 Control devices for vehicles, etc.
JP6163118B2 (en) * 2014-02-05 2017-07-12 日立オートモティブシステムズ株式会社 Vehicle control device
WO2020195192A1 (en) * 2019-03-26 2020-10-01 日立オートモティブシステムズ株式会社 Electronic control device and diagnostic method for electronic control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009191743A (en) * 2008-02-14 2009-08-27 Honda Motor Co Ltd Abnormality determination device
JP4635264B2 (en) * 2008-02-14 2011-02-23 本田技研工業株式会社 Abnormality judgment device

Also Published As

Publication number Publication date
JP2002014726A (en) 2002-01-18

Similar Documents

Publication Publication Date Title
JP3489548B2 (en) Electronic control unit for engine control
US6556901B2 (en) Electronic control unit and method measuring and using electric power-off period
JP3596433B2 (en) Automotive electronic control unit
EP1569174B1 (en) Data recording apparatus and data recording method
US7706939B2 (en) Data recording apparatus and shut-down method for data recording apparatus
EP1571599B1 (en) Data recording apparatus and the method thereof
JP2009276820A (en) Electronic apparatus and program
JP2006291730A (en) Diagnosis device for vehicle
JP3531589B2 (en) Electronic control unit for engine control
JPH09230929A (en) Method and device for diagnosing fault of on-vehicle controller
JP5195472B2 (en) Vehicle failure diagnosis system and vehicle failure diagnosis method
JP3494128B2 (en) Electronic control device, electronic control device for engine control
JP3627625B2 (en) In-vehicle control device
JP3379260B2 (en) Diagnosis device for vehicles
JP2002014720A5 (en)
JPH10160642A (en) Car defect diagnostic device
JP7157873B2 (en) Electronic control device, diagnostic method for electronic control device
JP3419060B2 (en) Diagnostic device for vehicles
JPH0236003B2 (en)
KR100610849B1 (en) A self diagnosis system of vehicle and method thereof
KR100610850B1 (en) A self diagnosis system of vehicle and method thereof
JP2021117112A (en) Electronic control 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: 20040210

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040223

R150 Certificate of patent or registration of utility model

Ref document number: 3531589

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110312

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130312

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20140312

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term