[go: up one dir, main page]

JP2014048070A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2014048070A
JP2014048070A JP2012189140A JP2012189140A JP2014048070A JP 2014048070 A JP2014048070 A JP 2014048070A JP 2012189140 A JP2012189140 A JP 2012189140A JP 2012189140 A JP2012189140 A JP 2012189140A JP 2014048070 A JP2014048070 A JP 2014048070A
Authority
JP
Japan
Prior art keywords
microcomputer
reset
power supply
electronic control
igsw
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.)
Granted
Application number
JP2012189140A
Other languages
Japanese (ja)
Other versions
JP6011162B2 (en
Inventor
Hiroshi Kamakura
央 鎌倉
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 JP2012189140A priority Critical patent/JP6011162B2/en
Publication of JP2014048070A publication Critical patent/JP2014048070A/en
Application granted granted Critical
Publication of JP6011162B2 publication Critical patent/JP6011162B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

【課題】電子制御装置にて、マイコンが、給電手段が異常と誤判定するのを防止する。
【解決手段】電子制御装置では、IGSW(イグニッションスイッチ)がオンされると、電源電圧が供給されてマイコンが起動し、マイコンは、給電用のリレーをオンさせるための信号を駆動回路に出力することにより、IGSWのオフ後も上記リレーがオンし続けて電源供給が続くようにする。そしてマイコンは、IGSWのオフの検出後に、フラッシュメモリ内の判定用フラグをオンにし、他の処理を終えると上記信号の出力を止めて動作を停止する。またマイコンは、起動した際に、判定用フラグがオンでないこと(S330:NO)を条件に上記リレーが異常と判断する(S360)が、IGSWのオン中にて、リセットされると判断すると、リセット履歴をオンする。そしてマイコンは、起動した際に、リセット履歴がオンならば(S345:YES)、上記リレーが異常と判断しない。
【選択図】図4
In an electronic control device, a microcomputer prevents a power supply means from erroneously determining that it is abnormal.
In an electronic control device, when an IGSW (ignition switch) is turned on, a power supply voltage is supplied to start a microcomputer, and the microcomputer outputs a signal for turning on a power supply relay to a drive circuit. Thus, even after the IGSW is turned off, the relay is kept on so that the power supply continues. Then, after detecting that IGSW is turned off, the microcomputer turns on the determination flag in the flash memory. When the other processing is completed, the microcomputer stops outputting the signal and stops the operation. When the microcomputer is activated, it determines that the relay is abnormal on the condition that the determination flag is not on (S330: NO) (S360), but if the microcomputer determines that the relay is reset while the IGSW is on, Turn on reset history. When the microcomputer is activated and the reset history is on (S345: YES), the microcomputer does not determine that the relay is abnormal.
[Selection] Figure 4

Description

本発明は、電源電圧を供給する給電手段の異常を検出する機能を備えた電子制御装置に関する。   The present invention relates to an electronic control device having a function of detecting an abnormality of a power supply unit that supplies a power supply voltage.

例えば、車両のエンジンを制御する電子制御装置としては、車両の使用者によりイグニッションスイッチ(以下、IGSWと記載する)がオンされることと、当該装置にバッテリからの電源電圧を供給する給電用リレーをオンさせるためのリレーオン信号を、当該装置内のロジック部が出力することとの、何れかにより、バッテリからの電源電圧が供給されるものがある。つまり、この種の電子制御装置では、IGSWのオンという起動用給電条件が成立すると、バッテリからの電源電圧が供給されて、ロジック部が動作を開始し、そのロジック部は、動作を開始すると、上記リレーオン信号の出力を開始して、当該装置への電源供給状態を維持する。そして、ロジック部は、IGSWがオフされたことを検知すると、IGSWがオフされてから動作を停止するまでの間に実施すべき特定の処理(例えば、データを所定のメモリに退避させるための処理等)を行い、その処理が終了すると、リレーオン信号の出力を停止して給電用リレーをオフさせることにより、当該装置への電源供給を遮断する(例えば、特許文献1参照)。   For example, as an electronic control device that controls a vehicle engine, a power supply relay that supplies a power supply voltage from a battery to the device when an ignition switch (hereinafter referred to as IGSW) is turned on by a vehicle user. In some cases, a power supply voltage from a battery is supplied by either a logic unit in the device outputting a relay-on signal for turning on the power. That is, in this type of electronic control device, when the power supply condition for starting that IGSW is turned on is satisfied, the power supply voltage from the battery is supplied, the logic unit starts operating, and the logic unit starts operating. The output of the relay on signal is started and the power supply state to the device is maintained. When the logic unit detects that the IGSW is turned off, the logic unit performs a specific process to be performed after the IGSW is turned off until the operation is stopped (for example, a process for saving data in a predetermined memory). When the processing is completed, the output of the relay-on signal is stopped and the power supply relay is turned off to cut off the power supply to the device (see, for example, Patent Document 1).

ここで、給電用リレーや該給電用リレーを駆動する回路等、IGSWがオフされた後も電子制御装置に電源電圧を供給するための給電手段が故障していた場合には、IGSWがオフされると、すぐに電子制御装置への電源供給が停止されてしまうことから、ロジック部は、IGSWのオフ後に実施すべき特定の処理を行うことができなくなる。このため、上記給電手段の異常(故障)を検出して、何等かの処置を行うことが好ましい。   Here, when the power supply means for supplying the power supply voltage to the electronic control device is broken even after the IGSW is turned off, such as the power feeding relay and the circuit for driving the power feeding relay, the IGSW is turned off. Then, since the power supply to the electronic control device is immediately stopped, the logic unit cannot perform a specific process to be performed after the IGSW is turned off. For this reason, it is preferable to detect an abnormality (failure) in the power supply means and take some measures.

そこで、特許文献1には、ロジック部により上記給電手段の異常を検出するための方法として、下記(1)〜(3)の手順からなる方法が記載されている。
(1)ロジック部は、IGSWがオフされたことを検知してからリレーオン信号の出力を停止するまで(延いては、動作を停止するまで)の間に、常時電源供給されたバックアップRAMにデータAを書き込む書込処理を行う。
Therefore, Patent Document 1 describes a method including the following steps (1) to (3) as a method for detecting an abnormality of the power feeding means by the logic unit.
(1) The logic unit stores data in the backup RAM that is always supplied with power until it stops outputting the relay-on signal after detecting that the IGSW is turned off (and until the operation is stopped). Write processing for writing A is performed.

(2)ロジック部は、動作を開始すると、バックアップRAMにデータAが書き込まれているか否かを判定し、データAが書き込まれていれば、給電手段は正常と判定して、バックアップRAM内のデータAをデータBに書き換える書込処理を行う。   (2) When the logic unit starts operating, it determines whether or not data A is written in the backup RAM. If the data A is written, the logic unit determines that the power supply means is normal and stores the data in the backup RAM. Write processing for rewriting data A to data B is performed.

(3)ロジック部は、上記(2)の判定で、バックアップRAMにデータAが書き込まれていないと判定した場合には、給電手段が異常と判定する。
つまり、ロジック部が起動した時点において、バックアップRAMにデータAが書き込まれていない場合は、ロジック部が前回の動作停止前に上記(1)の書込処理を行わなかったということであるが、その原因は、給電手段が故障していて、IGSWのオフ後すぐに電子制御装置への電源供給が停止されたことにある、と考えられるからである。
(3) When the logic unit determines in the determination of (2) above that the data A is not written in the backup RAM, the logic unit determines that the power supply unit is abnormal.
That is, when data A is not written in the backup RAM at the time when the logic unit is activated, the logic unit did not perform the writing process (1) before the previous operation stop. This is because the power supply means is broken and the power supply to the electronic control device is stopped immediately after the IGSW is turned off.

特開平1−129133号公報JP-A-1-129133

ところで、特許文献1に記載の異常検出方法では、給電手段が正常であっても、IGSWのオン中(詳しくは、IGSWがオンしている期間中)にロジック部が何等かの要因でリセットされた場合には、ロジック部が、上記(1)の書込処理を行うことなく動作を停止して再起動することとなり、その回の起動時において、バックアップRAMにはデータBが書き込まれている(即ち、データAが書き込まれていない)こととなる。よって、起動したロジック部は、上記(2),(3)の判定にて、バックアップRAMにデータAが書き込まれていないと判定することとなり、その結果、給電手段が異常と誤判定してしまう。   By the way, in the abnormality detection method described in Patent Document 1, the logic unit is reset for some reason while the IGSW is on (specifically, during the period when the IGSW is on) even if the power supply means is normal. In this case, the logic unit stops and restarts the operation without performing the writing process (1), and data B is written in the backup RAM at the time of the activation. (That is, data A is not written). Therefore, the activated logic unit determines that the data A is not written in the backup RAM in the determinations of (2) and (3) above, and as a result, the power supply unit erroneously determines that it is abnormal. .

そこで、本発明は、電子制御装置において、起動用給電条件が成立している場合にリセットされたロジック部としてのマイコンが、給電手段が異常と誤判定してしまうことを、防止することを目的としている。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to prevent a microcomputer as a logic unit that has been reset when an activation power supply condition is satisfied in an electronic control device from erroneously determining that the power supply means is abnormal. It is said.

本発明の電子制御装置は、起動用給電条件と動作継続用給電条件との何れかが成立している場合に、外部電源からの電源電圧が供給される給電部と、その給電部に電源電圧が供給されると、該電源電圧を電力源として動作するマイコンと、を備えている。また、動作継続用給電条件は、動作状態のマイコンから給電要求信号が出力されることである。   The electronic control device according to the present invention includes a power supply unit to which a power supply voltage from an external power supply is supplied and a power supply voltage to the power supply unit when either the start-up power supply condition or the operation continuation power supply condition is satisfied. And a microcomputer that operates using the power supply voltage as a power source. The operation continuation power supply condition is that a power supply request signal is output from an operating microcomputer.

そして、マイコンは、動作を開始すると、当該マイコンからの給電要求信号が入力されることで前記給電部に電源電圧を供給する給電手段に対して、給電要求信号を出力することを開始し、起動用給電条件が非成立になったことを検知した後で特定の処理を終了すると、その給電要求信号の出力を停止して動作を停止する。   Then, when the microcomputer starts operation, it starts outputting the power supply request signal to the power supply means that supplies the power supply voltage to the power supply unit by inputting the power supply request signal from the microcomputer, and starts up. When the specific process is finished after detecting that the power supply condition is not established, the output of the power supply request signal is stopped and the operation is stopped.

このような電子制御装置では、起動用給電条件が成立して、給電部に電源電圧が供給されると、マイコンが動作を開始して、給電要求信号を出力することとなる。よって、給電手段が正常であれば、起動用給電条件が非成立になっても、給電部には給電手段によって電源電圧が供給し続けられることとなる。そして、マイコンは、起動用給電条件が非成立になったことを検知した後で特定の処理を行い、その特定の処理が終了すると、給電要求信号の出力を停止する。すると、給電手段による給電部への電源電圧の供給が停止されて、マイコンが動作を停止することとなる。   In such an electronic control device, when the power supply condition for activation is satisfied and the power supply voltage is supplied to the power supply unit, the microcomputer starts its operation and outputs a power supply request signal. Therefore, if the power supply means is normal, the power supply voltage is continuously supplied to the power supply unit by the power supply means even if the start-up power supply condition is not satisfied. Then, the microcomputer performs a specific process after detecting that the activation power supply condition is not established, and stops the output of the power supply request signal when the specific process ends. Then, the supply of power supply voltage to the power supply unit by the power supply means is stopped, and the microcomputer stops operating.

また更に、この電子制御装置は、給電手段の異常の有無を判定するために用いられる判定用情報を記憶するための記憶部として、給電部に電源電圧が供給されるか否かに拘わらずデータを保存可能な判定用情報記憶部を備えている。   Still further, this electronic control device is a data storage unit for storing determination information used to determine whether or not there is an abnormality in the power supply means, regardless of whether or not a power supply voltage is supplied to the power supply unit. Is stored.

そして、マイコンは、給電手段の異常を検出するための処理として、第1書込処理、異常検出処理及び第2書込処理を行う。
即ち、マイコンは、起動用給電条件が非成立になったことを検知してから給電要求信号の出力を停止するまでの間に、「判定用情報を判定用情報記憶部に書き込む第1書込処理」を行う。そして、マイコンは、動作を開始した後、「判定用情報記憶部に判定用情報が記憶されているか否かを判定して、判定用情報が記憶されていないことを条件に給電手段が異常であると判断する、異常検出処理」を行い、また、少なくとも判定用情報記憶部に判定用情報が記憶されていると判定した場合には、「判定用情報記憶部に判定用情報とは異なる情報を書き込む第2書込処理」も行う。
Then, the microcomputer performs a first writing process, an abnormality detection process, and a second writing process as processes for detecting an abnormality in the power supply means.
That is, the microcomputer detects that “the first write for writing the determination information in the determination information storage unit” is performed after detecting that the start-up power supply condition is not established until the output of the power supply request signal is stopped. Process. Then, after starting the operation, the microcomputer determines that “the determination unit stores whether or not determination information is stored in the determination information storage unit, and the power supply unit is abnormal on the condition that the determination information is not stored. If it is determined that there is an abnormality detection process and at least determination information is stored in the determination information storage unit, the information different from the determination information is stored in the determination information storage unit. The second writing process for writing "is also performed.

このため、給電手段に異常が生じて、マイコンが給電要求信号を出力していても、起動用給電条件が非成立になるとすぐに給電部への電源電圧の供給が停止されてしまう状態になったならば、マイコンは、起動用給電条件が非成立になると、第1書込処理を行うことなく動作を停止することなる。そして、マイコンが次に起動した際には、判定用情報記憶部に判定用情報が記憶されていないこととなり、その結果、マイコンは、異常検出処理により、給電手段が異常であると判断することとなる。このようにして、給電手段の異常がマイコンにより検出される。   For this reason, even if an abnormality occurs in the power supply means and the microcomputer outputs a power supply request signal, the supply of power supply voltage to the power supply unit is stopped as soon as the start power supply condition is not satisfied. If the activation power supply condition is not established, the microcomputer stops the operation without performing the first writing process. Then, when the microcomputer is next started up, the determination information storage unit does not store the determination information, and as a result, the microcomputer determines that the power feeding unit is abnormal by the abnormality detection process. It becomes. In this way, the abnormality of the power supply means is detected by the microcomputer.

ここで、給電手段が正常であっても、起動用給電条件が成立している場合にマイコンがリセットされたとすると、マイコンは第1書込処理を行うことなく動作を停止して再起動することとなり、その回の起動時においても、判定用情報記憶部には判定用情報が記憶されていないこととなる。よって、起動したマイコンは、異常検出処理にて、判定用情報記憶部に判定用情報が記憶されていないと判定することとなり、その結果、給電手段が異常であるとの誤判定を招くこととなる。   Here, even if the power supply means is normal, if the microcomputer is reset when the start-up power supply condition is satisfied, the microcomputer stops operation and restarts without performing the first writing process. Thus, even at the time of starting that time, determination information is not stored in the determination information storage unit. Therefore, the activated microcomputer determines that the determination information is not stored in the determination information storage unit in the abnormality detection process, and as a result, erroneously determines that the power supply unit is abnormal. Become.

そこで、本発明の電子制御装置には、リセット検出手段が備えられており、そのリセット検出手段は、起動用給電条件が成立している場合におけるマイコンのリセットを検出して、マイコンがリセットされたことを示すリセット発生情報をリセット記憶部に記憶する。   Therefore, the electronic control device of the present invention is provided with a reset detecting means, and the reset detecting means detects the reset of the microcomputer when the power supply condition for activation is satisfied, and the microcomputer is reset. The reset generation information indicating that is stored in the reset storage unit.

そして、マイコンは、動作を開始した際に、リセット記憶部にリセット発生情報が記憶されていた場合には、異常検出処理により給電手段が異常であると判断することを禁止するようになっている。   And when the microcomputer starts the operation, if the reset generation information is stored in the reset storage unit, it is prohibited to determine that the power supply means is abnormal by the abnormality detection process. .

このため、起動用給電条件が成立している場合にリセットされたマイコンが、異常検出処理によって給電手段が異常であると誤判定してしまうことを、防止することができ、その結果、給電手段の故障検出精度を向上させることができる。   For this reason, it is possible to prevent the reset microcomputer from erroneously determining that the power supply means is abnormal by the abnormality detection process when the power supply condition for startup is satisfied. The failure detection accuracy can be improved.

尚、マイコンは、起動用給電条件が成立している場合に所定のリセット実施条件が成立すると、当該マイコンをリセットするためのリセット用処理を行うようになっていることが考えられる。そして、その場合、リセット検出手段は、マイコンのリセットとして、マイコンによりリセット用処理が行われたことを検出するように構成することができる。このように構成すれば、マイコン自身が引き起こした該マイコンのリセット(つまり、ソフトウェアによって故意に実施したリセット)を検出して、そのリセットに起因する誤判定を防止することができる。   Note that it is conceivable that the microcomputer performs a reset process for resetting the microcomputer when a predetermined reset execution condition is satisfied when the activation power supply condition is satisfied. In this case, the reset detection means can be configured to detect that the reset processing has been performed by the microcomputer as a reset of the microcomputer. With this configuration, it is possible to detect a reset of the microcomputer caused by the microcomputer itself (that is, a reset intentionally performed by software) and prevent an erroneous determination due to the reset.

更に、その場合、リセット検出手段を、マイコンによって実現することもでき、具体的には、マイコンは、前記リセット用処理を行う場合に、リセット発生情報をリセット記憶部に記憶するようになっていれば良い。つまり、マイコンがリセット用処理を行う場合に、リセット発生情報をリセット記憶部に記憶すれば、マイコン自身が、リセット用処理が行われたことを検出してリセット発生情報をリセット記憶部に記憶することになる。   Further, in that case, the reset detection means can be realized by a microcomputer. Specifically, the microcomputer stores reset generation information in the reset storage unit when performing the reset processing. It ’s fine. In other words, when the microcomputer performs reset processing, if the reset generation information is stored in the reset storage unit, the microcomputer itself detects that the reset processing has been performed and stores the reset generation information in the reset storage unit. It will be.

第1実施形態の電子制御装置(ECU)の構成図である。It is a lineblock diagram of the electronic control unit (ECU) of a 1st embodiment. マイコンが起動してから動作を終了するまでに行う処理を表すフローチャートである。It is a flowchart showing the process performed after starting a microcomputer until it complete | finishes operation | movement. 時間同期処理を表すフローチャートである。It is a flowchart showing a time synchronous process. イニシャル処理を表すフローチャートである。It is a flowchart showing an initial process. リプログ要求時処理を表すフローチャートである。It is a flowchart showing a replog request time process. マイコン異常検出時処理を表すフローチャートである。It is a flowchart showing a process at the time of microcomputer abnormality detection. NMI処理を表すフローチャートである。It is a flowchart showing NMI processing. アイドル処理を表すフローチャートである。It is a flowchart showing an idle process. 電子制御装置の作用を説明するための第1のタイムチャートである。It is a 1st time chart for demonstrating an effect | action of an electronic control apparatus. 電子制御装置の作用を説明するための第2のタイムチャートである。It is a 2nd time chart for demonstrating an effect | action of an electronic control apparatus. 電子制御装置の作用を説明するための第3のタイムチャートである。It is a 3rd time chart for demonstrating an effect | action of an electronic controller. 第2実施形態の電子制御装置(ECU)の構成図である。It is a block diagram of the electronic controller (ECU) of 2nd Embodiment.

本発明が適用された実施形態の電子制御装置(以下、ECUという)について説明する。尚、本実施形態のECUは、例えば、車両に搭載されて、該車両のエンジンを制御するものであるが、制御対象はエンジン以外でも良く、また、用途も車両用以外であっても良い。   An electronic control device (hereinafter referred to as ECU) according to an embodiment to which the present invention is applied will be described. The ECU of this embodiment is mounted on a vehicle and controls the engine of the vehicle, for example, but the control target may be other than the engine, and the use may be other than for the vehicle.

[第1実施形態]
図1に示すように、第1実施形態のECU11は、外部電源としてのバッテリ13の電圧(通常12V前後であり、以下、バッテリ電圧という)Vbatが給電用のリレーであるメインリレー15を介して電源電圧VBとして供給される端子17を備えている。そして、その端子17には、車両のIGSW(イグニッションスイッチ)19及びダイオード21を介しても、バッテリ電圧Vbatが電源電圧VBとして供給されるようになっている。
[First Embodiment]
As shown in FIG. 1, the ECU 11 of the first embodiment has a voltage Vbat (usually around 12 V, hereinafter referred to as a battery voltage) Vbat as an external power supply via a main relay 15 that is a power supply relay. A terminal 17 supplied as the power supply voltage VB is provided. The battery voltage Vbat is supplied to the terminal 17 as the power supply voltage VB via the vehicle IGSW (ignition switch) 19 and the diode 21.

更に、ECU11は、バッテリ電圧Vbatがバックアップ電源として常時供給される端子23と、一端にバッテリ電圧Vbatが印加されるメインリレー15のコイル15aの他端が接続された端子25と、IGSW19がオンすることでバッテリ電圧Vbatが供給されるライン26の電圧が、IGSW19のオン/オフを表すIGSW信号として入力される端子27と、車両内に配設された通信ライン28に接続された端子29と、を備えている。   Further, in the ECU 11, the terminal 23 to which the battery voltage Vbat is constantly supplied as a backup power source, the terminal 25 to which the other end of the coil 15a of the main relay 15 to which the battery voltage Vbat is applied is connected, and the IGSW 19 are turned on. Thus, the terminal 27 to which the voltage of the line 26 to which the battery voltage Vbat is supplied is input as an IGSW signal indicating on / off of the IGSW 19, a terminal 29 connected to the communication line 28 disposed in the vehicle, It has.

そして、ECU11は、当該ECU11の動作を司るマイコン31と、電源制御IC33と、入力回路35と、通信回路37と、を備えている。
電源制御IC33は、端子17に供給される電源電圧VBから、マイコン31を動作させるための一定の動作用電圧Vd(本実施形態では例えば5V)を生成して、その動作用電圧Vdをマイコン31に出力する主電源回路41と、端子23に供給されるバックアップ電源としてのバッテリ電圧Vbatから、一定のスタンバイ電圧Vs(本実施形態では例えば3V)を生成して、そのスタンバイ電圧Vsをマイコン31に出力する副電源回路43と、メインリレー15をオンさせるための駆動回路45と、マイコン31をリセットする制御を行うリセット制御回路47と、マイコン31の動作を監視するウォッチドッグタイマ(WDT)49と、を備えている。
The ECU 11 includes a microcomputer 31 that controls the operation of the ECU 11, a power supply control IC 33, an input circuit 35, and a communication circuit 37.
The power supply control IC 33 generates a constant operation voltage Vd (for example, 5 V in the present embodiment) for operating the microcomputer 31 from the power supply voltage VB supplied to the terminal 17, and uses the operation voltage Vd for the microcomputer 31. A constant standby voltage Vs (for example, 3 V in this embodiment) is generated from the main power supply circuit 41 that outputs to the battery 23 and the battery voltage Vbat as a backup power supply supplied to the terminal 23, and the standby voltage Vs is supplied to the microcomputer 31. A sub power supply circuit 43 that outputs, a drive circuit 45 for turning on the main relay 15, a reset control circuit 47 that performs control to reset the microcomputer 31, and a watch dog timer (WDT) 49 that monitors the operation of the microcomputer 31 It is equipped with.

駆動回路45は、端子27から入力されるIGSW信号がハイ(=Vbat)の場合、あるいは、マイコン31から入力される給電要求信号SDがハイ(=Vd)の場合に、端子25をグランドライン(0Vのライン)に接続してコイル15aに電流を流すことにより、メインリレー15をオンさせる。   When the IGSW signal input from the terminal 27 is high (= Vbat) or when the power supply request signal SD input from the microcomputer 31 is high (= Vd), the drive circuit 45 sets the terminal 25 to the ground line ( The main relay 15 is turned on by connecting the current to the coil 15a and connecting it to the 0V line.

ウォッチドッグタイマ49は、マイコン31が正常な場合に該マイコン31から一定時間以内毎に出力されるクリア信号WDCによってタイマ値がクリアされる(リセットされる)タイマであり、そのクリア信号WDCが上記一定時間よりも少し長い値に設定された規定時間以上出力されないと、リセット制御回路47へリセット要求を出力する。   The watchdog timer 49 is a timer whose timer value is cleared (reset) by a clear signal WDC output from the microcomputer 31 every predetermined time when the microcomputer 31 is normal. If it is not output for a specified time longer than the predetermined time, a reset request is output to the reset control circuit 47.

リセット制御回路47は、それの機能として、下記の《機能1》〜《機能4》を有している。
《機能1》ウォッチドッグタイマ49からリセット要求が出力されると、マイコン31のリセット端子(図1において「RES」と記載)へ、所定時間だけリセット信号SRを出力することにより、マイコン31をリセットして再起動させる。これは、マイコン31の正常復帰を試みるためのリセット機能である。
The reset control circuit 47 has the following << Function 1 >> to << Function 4 >> as its functions.
<< Function 1 >> When a reset request is output from the watchdog timer 49, the microcomputer 31 is reset by outputting a reset signal SR to the reset terminal of the microcomputer 31 (described as "RES" in FIG. 1) for a predetermined time. And reboot. This is a reset function for attempting to return the microcomputer 31 to normal.

《機能2》主電源回路41からの動作用電圧Vdが0Vから上昇して、マイコン31が確実に動作すると設計上考えられる正常範囲(例えば4.5V〜5.5V)の最小値に達するまでの間、マイコン31のリセット端子へリセット信号SRを出力する。これは、ECU11への電源投入時において、動作用電圧Vdが正常範囲に上昇するまでマイコン31をリセットしておく機能(いわゆるパワーオンリセット機能)である。   << Function 2 >> Until the operating voltage Vd from the main power supply circuit 41 rises from 0V and reaches the minimum value in the normal range (for example, 4.5V to 5.5V) that is considered in design when the microcomputer 31 operates reliably During this period, the reset signal SR is output to the reset terminal of the microcomputer 31. This is a function (so-called power-on reset function) that resets the microcomputer 31 until the operating voltage Vd rises to a normal range when the ECU 11 is powered on.

《機能3》主電源回路41からの動作用電圧Vdが正常範囲から低下して、マイコン31が動作不能となる電圧値(例えば3.5V)よりも高い所定のリセット実施閾値(例えば4V)まで低下したことを検知すると、その時点から、動作用電圧Vdが上記リセット実施閾値よりも高いリセット解除閾値(例えば4.5V)に上昇するまでの間、マイコン31のリセット端子へリセット信号SRを出力する。これは、動作用電圧Vdの低下によるマイコン31の誤動作を防止するための機能(いわゆる電圧低下リセット機能)である。   << Function 3 >> The operating voltage Vd from the main power supply circuit 41 drops from the normal range, and the reset execution threshold (for example, 4V) is higher than a voltage value (for example, 3.5V) at which the microcomputer 31 becomes inoperable. When a decrease is detected, a reset signal SR is output to the reset terminal of the microcomputer 31 from that point in time until the operating voltage Vd rises to a reset release threshold (for example, 4.5 V) higher than the reset execution threshold. To do. This is a function (so-called voltage drop reset function) for preventing a malfunction of the microcomputer 31 due to a drop in the operating voltage Vd.

《機能4》上記《機能3》によりリセット信号SRを出力する前の時点であって、動作用電圧Vdが上記リセット実施閾値よりも高いリセット予告閾値(例えば4.3V)まで低下したことを検知した時点で、マイコン31のノンマスカブル割り込み端子(図1において「NMI」と記載)にリセット予告信号SNを出力する。これは、マイコン31に対して、上記《機能3》によるリセットが間もなく実施されることを予告するための機能である。そして、マイコン31は、ノンマスカブル割り込み端子にリセット予告信号SNが入力されると、ノンマスカブル割り込みの処理であるNMI処理を行い、その後リセット信号SRによってリセットされるのを待つこととなる。   << Function 4 >> Detecting that the operating voltage Vd has dropped to a reset notice threshold (for example, 4.3 V) higher than the reset execution threshold before the reset signal SR is output by the above "Function 3". At this point, the reset notice signal SN is output to the non-maskable interrupt terminal (described as “NMI” in FIG. 1) of the microcomputer 31. This is a function for notifying the microcomputer 31 that the reset according to << Function 3 >> will be performed soon. When the reset notice signal SN is input to the non-maskable interrupt terminal, the microcomputer 31 performs the NMI process that is a non-maskable interrupt process, and then waits for the reset by the reset signal SR.

また、入力回路35は、端子27から入力されるIGSW信号(ハイがバッテリ電圧Vbatで、ローが0Vの信号)を、マイコン31に入力させることが可能な電圧の信号(ハイが動作用電圧Vdで、ローが0Vの信号)にレベルに変換して出力する。そして、入力回路35から出力されるレベル変換後のIGSW信号は、マイコン31の端子のうち、立ち下がりエッジキャプチャ機能付きの入力端子に入力されるようになっている。   The input circuit 35 is a voltage signal (high is the operating voltage Vd) that allows the microcomputer 31 to input the IGSW signal (high is the battery voltage Vbat and low is the 0V signal) input from the terminal 27. Then, the signal is converted into a level of low (0V signal) and output. The level-converted IGSW signal output from the input circuit 35 is input to an input terminal with a falling edge capture function among the terminals of the microcomputer 31.

尚、立ち下がりエッジキャプチャ機能付きの入力端子とは、入力される信号に立ち下がりエッジ(ハイからローへの変化)が発生すると、そのことを示す履歴情報がマイコン31内の特定のレジスタにハードウェアによって記憶されることとなる入力端子である。このため、IGSW19がオンからオフされて、入力回路35からマイコン31に入力されるIGSW信号に立ち下がりエッジが生じると、上記特定のレジスタには、履歴情報として、IGSW19がオンからオフに変化したことを示す情報(以下、IGSWオフエッジ履歴という)が記憶されることとなる。尚、その記憶されるIGSWオフエッジ履歴は、例えば、値が“1”のフラグである。   Note that an input terminal with a falling edge capture function means that when a falling edge (change from high to low) occurs in an input signal, history information indicating that is stored in a specific register in the microcomputer 31. Input terminal to be stored by the wearer. For this reason, when the IGSW 19 is turned off from on and a falling edge occurs in the IGSW signal input from the input circuit 35 to the microcomputer 31, the IGSW 19 is changed from on to off as history information in the specific register. Information indicating this (hereinafter referred to as IGSW off-edge history) is stored. Note that the stored IGSW off-edge history is, for example, a flag having a value of “1”.

また、マイコン31は、プログラムを実行するCPU51と、データの書き換えが可能な不揮発性メモリであるフラッシュメモリ53と、CPU51による演算結果等が記憶されるRAM55と、副電源回路43からのスタンバイ電圧Vsがデータ記憶用の電圧として常時供給されるスタンバイRAM(SRAM:バックアップRAMとも呼ばれる)57と、を備えている。   In addition, the microcomputer 31 includes a CPU 51 that executes a program, a flash memory 53 that is a non-volatile memory capable of rewriting data, a RAM 55 that stores calculation results and the like by the CPU 51, and a standby voltage Vs from the sub power supply circuit 43. Includes a standby RAM (SRAM: also referred to as a backup RAM) 57 that is constantly supplied as a voltage for data storage.

そして、フラッシュメモリ53は、CPU51によって実行されるプログラム(実行対象のプログラム)を記憶する記憶領域61と、マイコン31によってメインリレー15をオンさせることができなくなる異常(以下、メインリレー異常という)が発生しているか否かを判定するために用いられる判定用フラグを記憶する記憶領域63と、IGSW19のオン中にマイコン31がリセットされたか否かを示すフラグであるリセット履歴を記憶する記憶領域65と、メインリレー異常が発生しているという判断を確定させるために用いられる異常判定カウンタ(詳しくは、その異常判定カウンタの値)を記憶する記憶領域67と、を備えている。   The flash memory 53 has a storage area 61 for storing a program (execution target program) executed by the CPU 51 and an abnormality that prevents the main relay 15 from being turned on by the microcomputer 31 (hereinafter referred to as a main relay abnormality). A storage area 63 for storing a determination flag used for determining whether or not the storage has occurred, and a storage area 65 for storing a reset history that is a flag indicating whether or not the microcomputer 31 has been reset while the IGSW 19 is on. And a storage area 67 for storing an abnormality determination counter (specifically, the value of the abnormality determination counter) used to confirm the determination that a main relay abnormality has occurred.

一方、通信回路37は、端子29を介して車両内の通信ライン28に接続されており、その通信ライン28に接続された他の装置とマイコン31との間で、通信データをやり取りさせる。   On the other hand, the communication circuit 37 is connected to a communication line 28 in the vehicle via a terminal 29 and exchanges communication data between the microcomputer 31 and another device connected to the communication line 28.

また、通信ライン28には、車両外部の装置として、マイコン31のプログラム(詳しくは、フラッシュメモリ53の記憶領域61に記憶されたプログラム)を書き換えるためのツール59が接続可能となっている。そして、マイコン31(詳しくは、マイコン31内のCPU51)は、通信ライン28に接続されたツール59からのリプログ要求(リプログは、プログラムの書き換えを意味する「リプログラム」の略)を受信した場合には、フラッシュメモリ53の記憶領域61に記憶されているプログラムを、そのツール59から送信されて来る新たなプログラムに書き換えるリプログ処理を行うこととなる。   Further, a tool 59 for rewriting a program of the microcomputer 31 (specifically, a program stored in the storage area 61 of the flash memory 53) can be connected to the communication line 28 as a device outside the vehicle. When the microcomputer 31 (specifically, the CPU 51 in the microcomputer 31) receives a reprogram request from the tool 59 connected to the communication line 28 (replog is an abbreviation of “reprogram” meaning program rewriting). In this case, reprogram processing is performed to rewrite the program stored in the storage area 61 of the flash memory 53 with a new program transmitted from the tool 59.

次に、マイコン31が行う処理のうち、主に、メインリレー異常を検出することに関連する処理について、図2〜図8のフローチャートを用い説明する。尚、マイコン31が行う処理は、実際には、CPU51がプログラムを実行することで実現される処理であり、換言すれば、CPU51がプログラムに従って行う処理である。   Next, of the processes performed by the microcomputer 31, processes related to detecting a main relay abnormality will be mainly described with reference to the flowcharts of FIGS. Note that the processing performed by the microcomputer 31 is actually processing realized by the CPU 51 executing a program, in other words, processing performed by the CPU 51 according to the program.

図2に示すように、マイコン31は、動作を開始すると、まずS110にて、駆動回路45への給電要求信号SDをハイにすることにより、IGSW19がオフされてもメインリレー15のオンが維持されて、該メインリレー15から端子17へ電源電圧VBが供給され続けるようにする。   As shown in FIG. 2, when the microcomputer 31 starts operation, first, in S110, the power supply request signal SD to the drive circuit 45 is set to high so that the main relay 15 remains on even when the IGSW 19 is turned off. Thus, the power supply voltage VB is continuously supplied from the main relay 15 to the terminal 17.

そして次に、マイコン31は、S120にて、イニシャル処理を行う。
そのイニシャル処理には、例えば、上記特定のレジスタを含む種々の内部レジスタをクリアするレジスタ初期化処理や、RAM55における所定のデータ記憶領域にプログラムで定められた設定値を書き込むデータ初期化処理や、前回の動作中にRAM55からフラッシュメモリ53に保存しておいた(つまり、退避させておいた)データを、フラッシュメモリ53からRAM55に記憶し直すデータ復元処理等が、含まれているが、更に、メインリレー異常を検出することに関連する処理も含まれている。そして、そのイニシャル処理については、後で図4を用いて説明する。また、フラッシュメモリ53の前述した記憶領域63,65,67に記憶される判定用フラグ、リセット履歴、及び異常判定カウンタの各々は、イニシャル処理における上記データ復元処理によってRAM55にコピーされ、その後の処理では、RAM55上で更新されることとなる。
Next, the microcomputer 31 performs an initial process in S120.
The initial process includes, for example, a register initialization process for clearing various internal registers including the specific register, a data initialization process for writing a set value determined by a program in a predetermined data storage area in the RAM 55, Data restoration processing is included in which data stored in the flash memory 53 from the RAM 55 during the previous operation (that is, saved) is stored again in the RAM 55 from the flash memory 53. Also included is processing associated with detecting a main relay abnormality. The initial process will be described later with reference to FIG. The determination flag, reset history, and abnormality determination counter stored in the storage areas 63, 65, and 67 of the flash memory 53 are copied to the RAM 55 by the data restoration process in the initial process, and the subsequent processes Then, it is updated on the RAM 55.

マイコン31は、イニシャル処理を終了した後、S130にて、後述する図3の時間同期処理を行い、更にS140にて、後述する図8のアイドル処理を行う。
尚、時間同期処理は、予め決められた一定の時間(例えば1msや8ms)毎に行われ、その時間同期処理が終了してから次に開始されるまでの空き時間において、アイドル処理が行われる。また、アイドル処理では、主に、RAM55における上記所定のデータ記憶領域に対して上記データ初期化処理で書き込んだのと同じ設定値を書き込むリフレッシュ処理等が行われる。そのリフレッシュ処理は、データ初期化処理でRAM55に書き込んだ設定値が何等かの原因で他の値に変わってしまっても、その設定値を元の値に戻すために行われる。
After completing the initial process, the microcomputer 31 performs a time synchronization process of FIG. 3 described later in S130, and further performs an idle process of FIG. 8 described later in S140.
The time synchronization process is performed every predetermined time (for example, 1 ms or 8 ms), and the idle process is performed in the idle time from the end of the time synchronization process to the next start. . In the idle process, a refresh process for writing the same set value as that written in the data initialization process to the predetermined data storage area in the RAM 55 is mainly performed. The refresh process is performed to return the set value to the original value even if the set value written in the RAM 55 in the data initialization process is changed to another value for some reason.

また、マイコン31は、時間同期処理内にて、所定のシャットダウン条件が成立したか否かを判定する(S150)。尚、図2では、分かりやすさを優先して、シャットダウン条件が成立したか否かを判定するS150の判定処理を、時間同期処理とは別の処理として記載しているが、そのS150の判定処理は、実際には時間同期処理の中で行われる。   Further, the microcomputer 31 determines whether or not a predetermined shutdown condition is satisfied within the time synchronization process (S150). In FIG. 2, the determination process of S150 for determining whether or not the shutdown condition is satisfied is given priority for ease of understanding, but is described as a process different from the time synchronization process. The processing is actually performed in time synchronization processing.

また、シャットダウン条件としては、少なくとも、IGSW19がオフであるという条件が含まれており、他には、例えば、エンジンを制御するための処理を行わなくても良い状態になったという条件も含まれている。   In addition, the shutdown condition includes at least a condition that the IGSW 19 is off, and for example, includes a condition that a process for controlling the engine is not required. ing.

そして、マイコン31は、シャットダウン条件が成立したと判定したならば(S150:YES)、S160に移行して、シャットダウン前処理を行い、その後、S170にて、シャットダウン処理を行う。   If it is determined that the shutdown condition is satisfied (S150: YES), the microcomputer 31 proceeds to S160 to perform pre-shutdown processing, and then performs shutdown processing in S170.

尚、シャットダウン前処理としては、例えば、フラッシュメモリ53内のデータが正常か否かをサムチェック等の手法で検査するメモリチェック処理等、エンジンの制御を実施している最中には一度に行うことができない比較的時間のかかる処理がある。また、シャットダウン処理としては、例えば、RAM55からフラッシュメモリ53に、異常の発生を示すダイアグコード(ダイアグは、診断を意味する「ダイアグノーシス」の略)や学習値等の、特定のデータをコピーして退避させるデータ退避処理(データ保存のための処理)がある。   As the pre-shutdown process, for example, a memory check process for checking whether or not the data in the flash memory 53 is normal is performed at a time during engine control, such as a memory check process for checking whether or not data is normal. There are relatively time consuming processes that cannot. Further, as the shutdown process, for example, specific data such as a diagnosis code (diagnosis means “diagnosis” meaning diagnosis) indicating the occurrence of an abnormality or a learning value is copied from the RAM 55 to the flash memory 53. Data evacuation processing (processing for data storage).

そして、マイコン31は、シャットダウン処理を終了したなら、S180にて、駆動回路45への給電要求信号SDをハイからローにする。
すると、その時点において、IGSW19はオフされているため、給電要求信号SDがローになることでメインリレー15がオフし、端子17への電源電圧VBの供給が停止する。その結果、主電源回路41から動作用電圧Vdが出力されなくなり、マイコン31は動作を停止することとなる。
When the microcomputer 31 finishes the shutdown process, the power supply request signal SD to the drive circuit 45 is changed from high to low in S180.
Then, since the IGSW 19 is turned off at that time, the main relay 15 is turned off when the power supply request signal SD becomes low, and the supply of the power supply voltage VB to the terminal 17 is stopped. As a result, the operation voltage Vd is not output from the main power supply circuit 41, and the microcomputer 31 stops operating.

尚、もしメインリレー異常が生じていたならば、IGSW19がオフされた時点で、端子17への電源電圧VBの供給が停止するため、マイコン31は、シャットダウン前処理(S160)及びシャットダウン処理(S170)を行う前に、動作用電圧Vdが供給されなくなって動作を停止してしまうこととなる。   If a main relay abnormality has occurred, the supply of the power supply voltage VB to the terminal 17 is stopped when the IGSW 19 is turned off. Therefore, the microcomputer 31 performs pre-shutdown processing (S160) and shutdown processing (S170). ), The operation voltage Vd is not supplied and the operation is stopped.

次に、時間同期処理について図3を用い説明する。
図3に示すように、マイコン31は、図2のS130で時間同期処理を開始すると、まずS210にて、今回の処理がイニシャル処理を行った後の初回処理であるか否かを判定し、初回処理であれば、S220〜S240の処理を行う。
Next, time synchronization processing will be described with reference to FIG.
As shown in FIG. 3, when the microcomputer 31 starts the time synchronization process in S <b> 130 of FIG. 2, first, in S <b> 210, it is determined whether or not the current process is an initial process after the initial process is performed. If it is an initial process, the process of S220-S240 is performed.

まずS220では、RAM55内の判定用フラグをオフにし、次のS230では、RAM55内のリセット履歴を、リセット無しを示す方のオフにする。尚、本実施形態において、「フラグをオフにする」ということは、そのフラグを例えば“0”にするということであり、逆に「フラグをオンにする」ということは、そのフラグを例えば“1”にするということである。そして、次のS240にて、上記S220でオフにした判定用フラグを、フラッシュメモリ53の記憶領域63に書き込むと共に、上記S230でオフにしたリセット履歴を、フラッシュメモリ53の記憶領域65に書き込む書込処理を行う。   First, in S220, the determination flag in the RAM 55 is turned off, and in the next S230, the reset history in the RAM 55 is turned off which indicates no reset. In the present embodiment, “turning off a flag” means that the flag is set to “0”, for example, and conversely “turning on the flag” means that the flag is set to, for example, “ 1 ”. In the next S240, the determination flag turned off in S220 is written in the storage area 63 of the flash memory 53, and the reset history turned off in S230 is written in the storage area 65 of the flash memory 53. Process.

つまり、S220〜S240では、記憶領域63,65内の判定用フラグとリセット履歴をオフにして、前回の動作での情報を引き継がないようにしている。
また、S240では、後述する図4(イニシャル処理)のS340又はS350の処理によりRAM55上で更新される異常判定カウンタの現在値を、フラッシュメモリ53の記憶領域67に書き込む処理(つまり、記憶領域67内の異常判定カウンタを更新目的で書き換える処理)も行う。
That is, in S220 to S240, the determination flag and the reset history in the storage areas 63 and 65 are turned off so that the information in the previous operation is not taken over.
In S240, a process of writing the current value of the abnormality determination counter updated in the RAM 55 by the process of S340 or S350 in FIG. 4 (initial process) described later (that is, the storage area 67). The process of rewriting the abnormality determination counter in the table for the purpose of updating is also performed.

尚、記憶領域63内の判定用フラグをオフにする書き込み処理は、後述する図4のS330で判定用フラグがオンであると判定した場合にだけ行うようにしても良い。つまり、記憶領域63内の判定用フラグをオフにする書き込み処理は、その記憶領域63内の判定用フラグがオンであった場合にだけ行うようにしても良い。そして、このようなことは、記憶領域65内のリセット履歴をオフにする書き込み処理についても同様である。また、S220〜S240の処理は、例えば、イニシャル処理の最後で実施されるようにしても良い。   The writing process for turning off the determination flag in the storage area 63 may be performed only when it is determined that the determination flag is on in S330 of FIG. 4 to be described later. That is, the writing process for turning off the determination flag in the storage area 63 may be performed only when the determination flag in the storage area 63 is on. This also applies to the writing process for turning off the reset history in the storage area 65. Further, the processes of S220 to S240 may be performed at the end of the initial process, for example.

図3の説明に戻り、マイコン31は、S240の処理を行った後、S250に進む。
また、マイコン31は、上記S210にて、今回の処理がイニシャル処理後の初回処理ではないと判定した場合には、S220〜S240の処理を行うことなく、そのままS250に進む。
Returning to the description of FIG. 3, the microcomputer 31 proceeds to S250 after performing the process of S240.
If the microcomputer 31 determines in S210 that the current process is not the initial process after the initial process, the microcomputer 31 proceeds to S250 without performing the processes of S220 to S240.

S250では、IGSW19がオフか否かを判定し、IGSW19がオフでなければ(オンであれば)、S255に進み、一定時間毎に行うべき定期処理を行う。
尚、IGSW19がオンかオフかは、入力回路35から入力されるレベル変換後のIGSW信号に基づいて判定することができる。また、定期処理としては、エンジンを制御するための処理の他に、例えば、マイコン31自身の異常を検出するための自己診断処理がある。そして、その自己診断処理としては、例えば、所定時間毎に実行されるべきタスクの実行周期を監視して、その実行周期が異常であれば当該マイコン31が異常であると判断する、といった処理や、既知の演算対象値に対して所定の演算を行い、その演算結果が予め定められた期待値と一致していないと判定したならば当該マイコン31が異常であると判断する、といった処理等がある。
In S250, it is determined whether or not the IGSW 19 is off. If the IGSW 19 is not off (if it is on), the process proceeds to S255, and a periodic process to be performed at regular intervals is performed.
Whether the IGSW 19 is on or off can be determined based on the level-converted IGSW signal input from the input circuit 35. In addition to the process for controlling the engine, the regular process includes, for example, a self-diagnosis process for detecting an abnormality of the microcomputer 31 itself. As the self-diagnosis process, for example, the execution cycle of a task to be executed every predetermined time is monitored, and if the execution cycle is abnormal, it is determined that the microcomputer 31 is abnormal. A process such as performing a predetermined calculation on a known calculation target value and determining that the microcomputer 31 is abnormal if it is determined that the calculation result does not match a predetermined expected value. is there.

そして、マイコン31は、上記S255で定期処理を行った後、当該時間同期処理を終了する。
一方、マイコン31は、上記S250でIGSW19がオフであると判定した場合(即ち、IGSW19がオンからオフされたことを検知した場合)には、S260に進んで、IGSW19のオフの検出時から所定時間Tdが経過したか否かを判定し、所定時間Tdが経過していなければ、そのまま当該時間同期処理を終了する。また、上記S260にて、所定時間Tdが経過したと判定したならば、S270に進む。
And the microcomputer 31 complete | finishes the said time synchronous process, after performing a regular process by said S255.
On the other hand, when the microcomputer 31 determines that the IGSW 19 is off in S250 (that is, when it is detected that the IGSW 19 has been turned off from the on state), the microcomputer 31 proceeds to S260, and the predetermined value is detected from the time when the IGSW 19 is turned off. It is determined whether or not the time Td has elapsed. If the predetermined time Td has not elapsed, the time synchronization processing is terminated as it is. If it is determined in S260 that the predetermined time Td has elapsed, the process proceeds to S270.

尚、所定時間Tdは、メインリレー異常が生じている場合に、IGSW19がオフされてからマイコン31への動作用電圧Vdが供給されなくなって該マイコン31が動作を停止するまでの、最長時間よりも長い時間に設定されている。このため、図3におけるS270以降の処理は、メインリレー異常が生じておらず、IGSW31がオフされた後もマイコン31が確実に動作している状態で実行されることとなる。逆に言うと、メインリレー異常が生じている場合、S270以降の処理は実行されなくなる。   Note that the predetermined time Td is longer than the longest time from when the IGSW 19 is turned off until the operation voltage Vd is not supplied to the microcomputer 31 until the operation of the microcomputer 31 stops when the main relay abnormality occurs. Even set for a long time. For this reason, the processing after S270 in FIG. 3 is executed in a state in which the main relay abnormality does not occur and the microcomputer 31 operates reliably even after the IGSW 31 is turned off. In other words, if a main relay abnormality has occurred, the processes after S270 are not executed.

そして、S270では、RAM55内の判定用フラグをオンにし、次のS280にて、上記S270でオンにした判定用フラグを、フラッシュメモリ53の記憶領域63に書き込む書込処理を行う。   In S270, the determination flag in the RAM 55 is turned on. In the next S280, a writing process for writing the determination flag turned on in S270 to the storage area 63 of the flash memory 53 is performed.

つまり、S270,S280では、記憶領域63内の判定用フラグをオンにしている。
このようにするのは、当該マイコン31が次回に起動した際に、その記憶領域63内の判定用フラグがオンであれば、メインリレー異常が発生していない(即ち、メインリレー15は正常に機能する)と判定できるようにするためである。
That is, in S270 and S280, the determination flag in the storage area 63 is turned on.
This is because, when the microcomputer 31 is started next time, if the determination flag in the storage area 63 is on, no main relay abnormality has occurred (that is, the main relay 15 is operating normally). This is to make it possible to determine that it is functional.

逆に、メインリレー異常が発生している場合には、マイコン31がS280の書込処理(記憶領域63にオンの判定用フラグを書き込む処理)を行う前に電源電圧VBが遮断されてマイコン31が動作を停止するため、記憶領域63内の判定用フラグは、S240の書込処理で書き込まれたオフのままとなる。よって、マイコン31は、後述するように、起動した際のイニシャル処理(図4)にて、記憶領域63に記憶されている判定用フラグを参照し、その判定用フラグがオフであれば、メインリレー異常が発生していると判定することができる。   Conversely, if a main relay abnormality has occurred, the power supply voltage VB is cut off and the microcomputer 31 before the microcomputer 31 performs the writing process of S280 (the process of writing the ON determination flag in the storage area 63). Since the operation stops, the determination flag in the storage area 63 remains off written in the writing process of S240. Therefore, as will be described later, the microcomputer 31 refers to the determination flag stored in the storage area 63 in the initial process at the time of activation (FIG. 4). If the determination flag is off, the microcomputer 31 It can be determined that a relay abnormality has occurred.

図3の説明に戻り、マイコン31は、S280の処理を行った後、S290に進む。
そして、S290では、前述した特定のレジスタ内のIGSWオフエッジ履歴をクリアし、次のS295にて、後述する図8のアイドル処理で参照されるRAM55内のフラグであるフェールセーフ状態をオフにする。そして、その後、当該時間同期処理を終了する。尚、S290の処理は省略しても良い。
Returning to the description of FIG. 3, the microcomputer 31 performs the process of S280 and then proceeds to S290.
In S290, the IGSW off-edge history in the specific register described above is cleared, and in the next S295, the fail-safe state, which is a flag in the RAM 55 referred to in idle processing in FIG. Thereafter, the time synchronization process is terminated. Note that the process of S290 may be omitted.

次に、イニシャル処理について図4を用い説明する。
図4に示すように、マイコン31は、図2のS120でイニシャル処理を開始すると、まずS305にて、前述したデータ初期化処理やデータ復元処理等を行う。
Next, the initial process will be described with reference to FIG.
As shown in FIG. 4, when the microcomputer 31 starts the initial process in S120 of FIG. 2, first, in S305, the data initialization process, the data restoration process, and the like are performed.

そして、次のS310にて、RAM55内の故障診断結果情報の1つであるメインリレー診断結果を、「未検出」を示す値に設定し、次のS315にて、前述したフェールセーフ状態をオフにする。   In the next S310, the main relay diagnosis result, which is one of the failure diagnosis result information in the RAM 55, is set to a value indicating “not detected”, and in the next S315, the above-described fail-safe state is turned off. To.

尚、メインリレー診断結果は、「未検出」を示す値と、「正常」を示す値と、「異常」を示す値との、3通りの何れかに設定される。そして、「未検出」を示す値は、メインリレー異常が発生しているとも発生していないとも判断していないことを表し、「正常」を示す値は、メインリレー異常が発生していない(つまり正常である)と判断したことを表し、「異常」を示す値は、メインリレー異常が発生していると判断したことを表している。   The main relay diagnosis result is set to one of three values: a value indicating “not detected”, a value indicating “normal”, and a value indicating “abnormal”. A value indicating “not detected” indicates that it is not determined whether a main relay abnormality has occurred or not, and a value indicating “normal” indicates that no main relay abnormality has occurred ( That is, the value indicating “abnormal” indicates that it is determined that a main relay abnormality has occurred.

次にS320にて、IGSW19がオフか否かを判定し、IGSW19がオフでなければ(オンであれば)、S325に進む。
S325では、フラッシュメモリ53が正常状態(詳しくは、データの読み出しを正常に行える状態)であるか否かを判定し、フラッシュメモリ53が正常状態でないと判定した場合には、そのまま当該イニシャル処理を終了する。
Next, in S320, it is determined whether or not the IGSW 19 is off. If the IGSW 19 is not off (if on), the process proceeds to S325.
In S325, it is determined whether or not the flash memory 53 is in a normal state (specifically, a state where data can be normally read). If it is determined that the flash memory 53 is not in a normal state, the initial process is performed as it is. finish.

つまり、フラッシュメモリ53が正常状態でなく、そのフラッシュメモリ53からデータを読み出せない場合には、記憶領域63内の判定用フラグに基づきメインリレー異常の有無を判定することができないため、その場合には、メインリレー診断結果を「未検出」の値にしたまま、当該イニシャル処理を終了する。尚、マイコン31は、例えば、S305のデータ復元処理でフラッシュメモリ53からデータを読み出せなかった場合に、メモリ異常フラグをオンしておき、S325では、そのメモリ異常フラグを参照して、フラッシュメモリ53が正常状態か否か判定する。   That is, if the flash memory 53 is not in a normal state and data cannot be read from the flash memory 53, the presence or absence of the main relay abnormality cannot be determined based on the determination flag in the storage area 63. In this case, the initial process is terminated while the main relay diagnosis result is kept at the value “not detected”. The microcomputer 31 turns on the memory abnormality flag when, for example, data cannot be read from the flash memory 53 in the data restoration process in S305, and in S325, the flash memory is referred to by referring to the memory abnormality flag. It is determined whether 53 is in a normal state.

一方、上記S325にて、フラッシュメモリ53が正常状態であると判定した場合には、S330に進む。
S330では、データ復元処理により記憶領域63からRAM55にコピーされた判定用フラグが、オンか否かを判定する。尚、このS330で記憶領域63から判定用フラグを読み出して、その読み出した判定用フラグがオンか否かを判定しても良い。
On the other hand, if it is determined in S325 that the flash memory 53 is in a normal state, the process proceeds to S330.
In S330, it is determined whether the determination flag copied from the storage area 63 to the RAM 55 by the data restoration process is on. In S330, the determination flag may be read from the storage area 63, and it may be determined whether or not the read determination flag is on.

そして、このS330にて、判定用フラグがオンであると判定した場合には、前回の動作中においてIGSW19がオフされてから図3のS270,S280の処理が行われたということである。よって、この場合には、S335に進み、メインリレー異常が発生していないと判断(即ち、メインリレー15は正常に機能すると判断)して、メインリレー診断結果を、「正常」を示す値に設定する。更に、次のS340にて、データ復元処理により記憶領域63からRAM55にコピーされた異常判定カウンタをクリアし(カウンタ値を「0」にし)、その後、当該イニシャル処理を終了する。尚、S340で0にクリアされた異常判定カウンタは、その後に実行される図3のS240にて、フラッシュメモリ53の記憶領域67に書き込まれることとなるが、「0」にされた異常判定カウンタの記憶領域67への書き込みは、このイニシャル処理において実施しても良い。   If it is determined in S330 that the determination flag is on, the processing of S270 and S280 in FIG. 3 has been performed after the IGSW 19 was turned off during the previous operation. Therefore, in this case, the process proceeds to S335, where it is determined that the main relay abnormality has not occurred (that is, it is determined that the main relay 15 functions normally), and the main relay diagnosis result is set to a value indicating “normal”. Set. Further, in the next S340, the abnormality determination counter copied from the storage area 63 to the RAM 55 by the data restoration process is cleared (the counter value is set to “0”), and then the initial process is terminated. Note that the abnormality determination counter cleared to 0 in S340 is written to the storage area 67 of the flash memory 53 in S240 of FIG. 3 executed thereafter, but the abnormality determination counter set to “0”. This storage area 67 may be written in this initial process.

また、上記S320にて、IGSW19がオフと判定した場合にも、S335に進む。
つまり、IGSW19がオフであるのにマイコン31が動作しているということは、メインリレー15による電源電圧VBの供給が行われている、と考えられることから、この場合にも、メインリレー異常が発生していないと判断して、S335及びS340の処理を行い、その後、当該イニシャル処理を終了する。
If it is determined in S320 that the IGSW 19 is off, the process proceeds to S335.
That is, the fact that the microcomputer 31 is operating even when the IGSW 19 is off is considered that the power supply voltage VB is being supplied by the main relay 15, and in this case also, the main relay abnormality is detected. It is determined that no occurrence has occurred, the processes of S335 and S340 are performed, and then the initial process is terminated.

一方、上記S330にて、判定用フラグがオンではない(オフである)と判定した場合には、S345に移行する。
S345では、データ復元処理により記憶領域65からRAM55にコピーされたリセット履歴が、オンか否かを判定する。尚、このS345で記憶領域65からリセット履歴を読み出して、その読み出したリセット履歴がオンか否かを判定しても良い。
On the other hand, if it is determined in S330 that the determination flag is not ON (OFF), the process proceeds to S345.
In S345, it is determined whether or not the reset history copied from the storage area 65 to the RAM 55 by the data restoration process is ON. In S345, the reset history may be read from the storage area 65, and it may be determined whether or not the read reset history is ON.

そして、このS345にて、リセット履歴がオンではない(オフであると)判定した場合には、IGSW19のオン中にマイコン31はリセットされていないということであり、判定用フラグがオフであったのは、メインリレー異常が発生していて、前回の動作中にIGSW19がオフされた際に、図3のS270,S280の処理を行う前に電源電圧VBの供給が遮断されたため、と考えられる。よって、この場合には、S350に進み、メインリレー異常が発生している可能性があると判断して、データ復元処理により記憶領域63からRAM55にコピーされた異常判定カウンタをインクリメントする。尚、このS350でインクリメントされた異常判定カウンタは、その後に実行される図3のS240にて、フラッシュメモリ53の記憶領域67に書き込まれることとなるが、インクリメントされた異常判定カウンタの記憶領域67への書き込みは、このイニシャル処理において実施しても良い。   If it is determined in S345 that the reset history is not ON (OFF), the microcomputer 31 has not been reset while the IGSW 19 is ON, and the determination flag is OFF. This is probably because the main relay abnormality has occurred, and when the IGSW 19 was turned off during the previous operation, the supply of the power supply voltage VB was interrupted before performing the processes of S270 and S280 in FIG. . Therefore, in this case, the process proceeds to S350, where it is determined that a main relay abnormality may have occurred, and the abnormality determination counter copied from the storage area 63 to the RAM 55 by the data restoration process is incremented. The abnormality determination counter incremented in S350 is written in the storage area 67 of the flash memory 53 in S240 of FIG. 3 executed thereafter, but the incremented abnormality determination counter storage area 67. The writing to may be performed in this initial process.

そして、次のS355にて、インクリメント後の異常判定カウンタが、予め定められた異常判定閾値以上になったか否かを判定し、異常判定閾値以上になっていなければ、そのまま当該イニシャル処理を終了する。よって、この場合は、メインリレー異常が発生している可能性があると判断した状態のままであり、実質的には、メインリレー異常を検出していない状態(即ち、メインリレー診断結果が「未検出」の値になっている状態)となる。   Then, in next S355, it is determined whether or not the incremented abnormality determination counter is equal to or greater than a predetermined abnormality determination threshold. If the abnormality determination counter is not equal to or greater than the abnormality determination threshold, the initial process is terminated. . Therefore, in this case, the state in which it is determined that there is a possibility that the main relay abnormality has occurred remains substantially, and the state in which the main relay abnormality is not detected (that is, the main relay diagnosis result is “ State of “not detected”).

また、上記S355にて、異常判定カウンタが異常判定閾値以上になったと判定した場合には、S360に進み、メインリレー異常が発生していると正式に判断(確定判断)して、メインリレー診断結果を、「異常」を示す値に設定する。この時点で、メインリレー異常を検出したことになる。   If it is determined in S355 that the abnormality determination counter has become equal to or greater than the abnormality determination threshold, the process proceeds to S360, where it is formally determined that a main relay abnormality has occurred (determined determination), and main relay diagnosis is performed. The result is set to a value indicating “abnormal”. At this point, the main relay abnormality is detected.

そして、次のS365にて、フェールセーフ状態をオンにし、更に、次のS370にて、例えば、メインリレー異常が発生したことを示すダイアグコードをRAM55等に記憶したり、異常の発生を車両の使用者等に知らせるための警告灯を点灯させたりする、ダイアグ処理を行う。そして、その後、当該イニシャル処理を終了する。   Then, in the next S365, the fail safe state is turned on. Further, in the next S370, for example, a diagnosis code indicating that a main relay abnormality has occurred is stored in the RAM 55 or the like. Diag processing is performed, such as turning on a warning light to notify the user or the like. Then, the initial process ends.

一方、上記S345にて、リセット履歴がオンであると判定した場合には、IGSW19のオン中にマイコン31がリセットされたということを意味しており、そのリセットが発生したことにより、前回の動作中に図3のS270,S280の処理を行うことができなかったと考えられる。よって、この場合には、判定用フラグがオフであっても(S330で「NO」と判定しても)、S350以降の処理を行わずに(即ち、メインリレー異常が発生していると判断することを禁止して)、そのまま当該イニシャル処理を終了する。   On the other hand, if it is determined in S345 that the reset history is ON, it means that the microcomputer 31 has been reset while the IGSW 19 is ON. It is considered that the processes of S270 and S280 in FIG. 3 could not be performed. Therefore, in this case, even if the determination flag is OFF (determined as “NO” in S330), it is determined that the processing after S350 is not performed (that is, the main relay abnormality has occurred). The initial process is terminated as is.

次に、リセット履歴が、どのような場合にオンにされるのかについて説明する。
本実施形態において、リセット履歴は、図5〜図7の各処理によってオンにされる。
〈図5の説明〉
マイコン31は、IGSW19のオン中に、前述したツール59からのリプログ要求を受信すると、図5のリプログ要求時処理を行う。
Next, the case where the reset history is turned on will be described.
In the present embodiment, the reset history is turned on by each process of FIGS.
<Explanation of FIG. 5>
When the microcomputer 31 receives the replog request from the above-described tool 59 while the IGSW 19 is on, the microcomputer 31 performs the replog request processing shown in FIG.

図5に示すように、マイコン31は、リプログ要求時処理を開始すると、まずS410にて、RAM55内のリセット履歴をオンにし、次のS420にて、上記S410でオンにしたリセット履歴を、フラッシュメモリ53の記憶領域65に書き込む書込処理を行う。つまり、S410,S420では、記憶領域65内のリセット履歴をオンにしている。   As shown in FIG. 5, when the microcomputer 31 starts the process for requesting relogging, first, in S410, the reset history in the RAM 55 is turned on, and in the next S420, the reset history turned on in S410 is flushed. A writing process for writing to the storage area 65 of the memory 53 is performed. That is, in S410 and S420, the reset history in the storage area 65 is turned on.

そして次に、S430にて、前述のリプログ処理(記憶領域61内のプログラムを、ツール59から送信されて来る新たなプログラムに書き換える処理)を行う。
そして、リプログ処理が終わると、次のS440にて、当該マイコン31をリセットするためのリセット用処理として、ウォッチドッグタイマ49に対するクリア信号WDCの出力を停止する処理を行う。
Next, in S430, the above repro processing (processing for rewriting the program in the storage area 61 with a new program transmitted from the tool 59) is performed.
Then, when the reprogram processing is completed, in the next S440, as the reset processing for resetting the microcomputer 31, processing for stopping the output of the clear signal WDC to the watchdog timer 49 is performed.

すると、マイコン31からクリア信号WDCが出力されなくなり、その結果、リセット制御回路47が、前述の《機能1》によってマイコン31にリセット信号SRを出力するため、マイコン31はリセットされることとなる。このため、マイコン31は、S440の次のS450にて、リセットされるのを待つ状態(例えば、実質的には処理を行わないノンオペレーション命令の実行を繰り返す状態)となる。   Then, the clear signal WDC is not output from the microcomputer 31, and as a result, the reset control circuit 47 outputs the reset signal SR to the microcomputer 31 by the above-mentioned << Function 1 >>, so that the microcomputer 31 is reset. For this reason, the microcomputer 31 enters a state of waiting for reset in S450 following S440 (for example, a state in which execution of a non-operation instruction that does not substantially perform processing is repeated).

このように、マイコン31は、IGSW19のオン中にリプログ処理を行うと、リセット実施条件が成立したとして、自らをリセットするリセット用処理(S440)を行い、その後、再起動して書き換え後の新たなプログラムを実行するようになっている。そして、マイコン31は、このように自らをリセットする自己リセットを行う場合に、当然ながらリセットされると判断して、記憶領域65内リセット履歴をオンする(S410,S420)。   As described above, when the microcomputer 31 performs the reprogramming process while the IGSW 19 is on, the microcomputer 31 performs the resetting process (S440) for resetting itself, assuming that the reset execution condition is satisfied, and then restarts and renews the new It is supposed to run a simple program. Then, when performing the self-reset for resetting itself as described above, the microcomputer 31 determines that it is naturally reset, and turns on the reset history in the storage area 65 (S410, S420).

〈図6の説明〉
また、マイコン31は、前述の自己診断処理によって当該マイコン31の異常を検出した場合(当該マイコン31が異常と判断した場合)に、図6のマイコン異常検出時処理を行う。
<Explanation of FIG. 6>
Further, when the microcomputer 31 detects an abnormality of the microcomputer 31 by the above-described self-diagnosis process (when the microcomputer 31 determines that an abnormality has occurred), the microcomputer 31 performs the microcomputer abnormality detection process of FIG.

図6に示すように、マイコン31は、マイコン異常検出時処理を開始すると、まずS510にて、自己診断処理で検出した異常の内容や検出時刻等を示す情報である異常ログを、RAM55等に記憶する処理を行う。   As shown in FIG. 6, when the microcomputer 31 starts the microcomputer abnormality detection process, first, in S510, the abnormality log, which is information indicating the content and detection time of the abnormality detected in the self-diagnosis process, is stored in the RAM 55 or the like. The process to memorize is performed.

そして次に、S520にて、RAM55内のリセット履歴をオンにし、次のS530にて、上記S520でオンにしたリセット履歴を、フラッシュメモリ53の記憶領域65に書き込む書込処理を行う。つまり、S520,S530では、図5のS410,S420と同様に、記憶領域65内のリセット履歴をオンにしている。   Next, in S520, the reset history in the RAM 55 is turned on. In the next S530, the reset history turned on in S520 is written into the storage area 65 of the flash memory 53. That is, in S520 and S530, the reset history in the storage area 65 is turned on as in S410 and S420 of FIG.

そして、次のS540にて、図5のS440と同様に、リセット用処理として、ウォッチドッグタイマ49に対するクリア信号WDCの出力を停止する処理を行い、その後、S550にて、図5のS450と同様に、リセット制御回路47からのリセット信号SRによってリセットされるのを待つ状態となる。   Then, in the next S540, as in S440 in FIG. 5, a process for stopping the output of the clear signal WDC to the watchdog timer 49 is performed as a reset process, and then in S550, the same as S450 in FIG. At the same time, a reset signal SR from the reset control circuit 47 waits for the reset.

このように、マイコン31は、IGSW19のオン中に自己診断処理で異常を検出した場合にも、リセット実施条件が成立したとして、自らをリセットするリセット用処理(S540)を行うようになっている。尚、この場合のリセットは、正常復帰を試みるためのリセットである。そして、マイコン31は、このような異常検出に伴う正常復帰用の自己リセットを行う場合にも、当然ながらリセットされると判断して、記憶領域65内リセット履歴をオンする(S520,S530)。   Thus, even when the microcomputer 31 detects an abnormality in the self-diagnosis process while the IGSW 19 is on, the microcomputer 31 performs the reset process (S540) to reset itself, assuming that the reset execution condition is satisfied. . Note that the reset in this case is a reset for attempting normal recovery. Then, the microcomputer 31 determines that the reset is naturally performed even when performing a self-reset for normal recovery accompanying such abnormality detection, and turns on the reset history in the storage area 65 (S520, S530).

〈図7の説明〉
また、マイコン31は、リセット制御回路47が、前述の《機能4》によってリセット予告信号SNを出力すると、図7のNMI処理を行う。
<Explanation of FIG. 7>
Further, the microcomputer 31 performs the NMI process of FIG. 7 when the reset control circuit 47 outputs the reset notice signal SN by the above-mentioned << Function 4 >>.

図7に示すように、マイコン31は、NMI処理を開始すると、まずS610にて、前述した特定のレジスタにIGSWオフエッジ履歴が記憶されているか否かを判定し、IGSWオフエッジ履歴が記憶されていないと判定した場合には、S620に進む。   As shown in FIG. 7, when the NMI process is started, the microcomputer 31 first determines in S610 whether or not the IGSW off-edge history is stored in the specific register, and the IGSW off-edge history is not stored. If it is determined, the process proceeds to S620.

そして、S620にて、RAM55内のリセット履歴をオンにし、次のS630にて、上記S620でオンにしたリセット履歴を、フラッシュメモリ53の記憶領域65に書き込む書込処理を行う。   In step S620, the reset history in the RAM 55 is turned on. In step S630, the reset history turned on in step S620 is written into the storage area 65 of the flash memory 53.

つまり、当該NMI処理の開始時にIGSWオフエッジ履歴が記憶されていなかった場合には(S610:NO)、IGSW19がオフされていないのに、例えば電源電圧VBのラインや動作用電圧Vdのラインにノイズが乗ったことにより、動作用電圧Vdがリセット予告閾値まで低下して、リセット制御回路47からリセット予告信号SNが出力された、と考えられる。よって、この場合、マイコン31は、間もなく動作用電圧Vdがリセット実施閾値(<リセット予告閾値)まで低下して、リセット制御回路47の《機能3》によりリセットされる、と判断し、S620,S630の処理により、記憶領域65内のリセット履歴をオンにしている。   In other words, when the IGSW off-edge history is not stored at the start of the NMI processing (S610: NO), the IGSW 19 is not turned off, but noise is generated in the power supply voltage VB line or the operation voltage Vd line, for example. It is considered that the operation voltage Vd is lowered to the reset notice threshold value and the reset notice signal SN is output from the reset control circuit 47. Therefore, in this case, the microcomputer 31 determines that the operation voltage Vd will soon drop to the reset execution threshold (<reset notice threshold) and is reset by the << function 3 >> of the reset control circuit 47, and S620, S630. As a result, the reset history in the storage area 65 is turned on.

そして、マイコン31は、S630の次のS640にて、リセット制御回路47によってリセットされるのを待つ状態(例えば、ノンオペレーション命令の実行を繰り返す状態)となる。   Then, the microcomputer 31 enters a state of waiting for reset by the reset control circuit 47 (for example, a state in which execution of a non-operation instruction is repeated) in S640 following S630.

このように、マイコン31は、ノイズにより動作用電圧Vdが低下してリセット制御回路47によりリセットされることを検知した場合(S610:NO)にも、記憶領域65内リセット履歴をオンする(S620,S630)。   As described above, the microcomputer 31 also turns on the reset history in the storage area 65 when detecting that the operation voltage Vd is reduced due to noise and is reset by the reset control circuit 47 (S610: NO) (S620). , S630).

尚、メインリレー異常が発生しておらず、IGSW19がオフされてから、図3のS290でIGSWオフエッジ履歴がクリアされ、その後、図2のS180の処理が行われたことにより、動作用電圧Vdが低下して当該NMI処理が行われた場合にも、図7のS610で「NO」と判定されて、S620,S630の処理により、リセット履歴がオンにされる。しかし、その場合には、図3のS270,S280の処理により記憶領域63内の判定用フラグが既にオンにされており、マイコン31が次に起動した際に行う図4のイニシャル処理では、S330にて「YES」と判定する(即ち、メインリレー異常が発生していないと判断する)こととなるため、リセット履歴がオンになっていても処理に影響は無い。また、本実施形態において、マイコン31は、S610の判定により、IGSW19のオン中にリセット予告信号が入力されたこと、を検出していることとなる。   Note that the main relay abnormality has not occurred and the IGSW 19 is turned off, and then the IGSW off-edge history is cleared in S290 in FIG. 3, and then the processing in S180 in FIG. Even when the NMI processing is performed due to a decrease, “NO” is determined in S610 of FIG. 7 and the reset history is turned on by the processing of S620 and S630. However, in that case, the determination flag in the storage area 63 has already been turned on by the processing of S270 and S280 of FIG. 3, and in the initial processing of FIG. Therefore, the process is not affected even if the reset history is turned on. Further, in the present embodiment, the microcomputer 31 detects that the reset notice signal has been input while the IGSW 19 is on, based on the determination in S610.

一方、マイコン31は、上記S610にて、特定のレジスタにIGSWオフエッジ履歴が記憶されていると判定した場合には、そのままS640に移行する。
つまり、この場合には、IGSW19がオフされた直後に、動作用電圧Vdがリセット予告閾値まで低下して、リセット制御回路47からリセット予告信号SNが出力された、と考えられ、メインリレー異常が発生している可能性がある。よって、マイコン31は、リセット履歴をオンにすることなく、リセット制御回路47によってリセットされるのを待つ。
On the other hand, if the microcomputer 31 determines in S610 that the IGSW off-edge history is stored in the specific register, the microcomputer 31 proceeds to S640 as it is.
That is, in this case, immediately after the IGSW 19 is turned off, it is considered that the operating voltage Vd has dropped to the reset notice threshold and the reset notice signal SN is output from the reset control circuit 47, and the main relay abnormality has occurred. It may have occurred. Therefore, the microcomputer 31 waits for resetting by the reset control circuit 47 without turning on the reset history.

以上のように、IGSW19のオン中に起こるマイコン31のリセットとしては、マイコン31がリセット用処理(S440,S540)を行うことで起こるリセット(即ち、ソフトウェアによる故意のリセット)と、ノイズによって動作用電圧Vdが瞬間的に低下して起こるリセット(即ち、意図しないリセット)とがある。そして、図5と図6の各処理では、故意のリセットの発生を検出してリセット履歴をオンにしており、図7の処理では、意図しないリセットの発生を検出してリセット履歴をオンにしている。   As described above, the reset of the microcomputer 31 that occurs while the IGSW 19 is turned on includes a reset that occurs when the microcomputer 31 performs the reset process (S440, S540) (that is, a deliberate reset by software) and noise for operation. There is a reset that occurs when the voltage Vd drops instantaneously (that is, an unintended reset). 5 and FIG. 6, the occurrence of a deliberate reset is detected and the reset history is turned on. In the process of FIG. 7, the occurrence of an unintended reset is detected and the reset history is turned on. Yes.

次に、アイドル処理について、図8を用い説明する。
図8に示すように、マイコン31は、アイドル処理を開始すると、まずS710にて、前述したリフレッシュ処理等の、通常の処理を行う。
Next, idle processing will be described with reference to FIG.
As shown in FIG. 8, when starting the idle process, the microcomputer 31 first performs a normal process such as the refresh process described above in S710.

そして、次のS720にて、フェールセーフ状態がオンであるか否かを判定し、フェールセーフ状態がオンでなければ(オフであれば)、そのまま当該アイドル処理を終了する。   Then, in next S720, it is determined whether or not the fail safe state is on. If the fail safe state is not on (if off), the idle processing is terminated as it is.

また、上記S720にて、フェールセーフ状態がオンであると判定した場合には、図4のイニシャル処理によりメインリレー異常が発生していると判断されたということであり、その場合にはS730に進む。   If it is determined in S720 that the fail-safe state is ON, it is determined that the main relay abnormality has occurred by the initial process in FIG. 4, and in that case, the process proceeds to S730. move on.

そして、S730では、メインリレー異常が発生している場合のフェールセーフ処理として、本来ならばIGSW19がオフされた後に行う処理(例えば、図2のS160で行われるシャットダウン前処理や、図2のS170で行われるシャットダウン処理であり、特に、例えば後者のシャットダウン処理)を行う。尚、このS730では、本来ならばIGSW19がオフされた後に行う処理を、制御対象の制御に影響を与えないような処理時間となる量に分けて、少しずつ行う。そして、その後、当該アイドル処理を終了する。   In S730, as fail-safe processing when the main relay abnormality occurs, processing that is normally performed after the IGSW 19 is turned off (for example, pre-shutdown processing performed in S160 in FIG. 2 or S170 in FIG. 2). In particular, for example, the latter shutdown process). In S730, the processing that is normally performed after the IGSW 19 is turned off is divided into amounts that are processing times that do not affect the control of the control target, and is performed little by little. Thereafter, the idle process is terminated.

このように、マイコン31は、メインリレー異常の発生を検出した場合には、本来ならばIGSW19がオフされた後に行う処理を、アイドル処理で行うようにしている。
このため、メインリレー異常が発生していて、IGSW19がオフされてすぐに端子17への電源電圧VBの供給が停止されても、IGSW19がオフされた後に行うはずの処理が全く行われなくなってしまうことを防止することができる。つまり、メインリレー異常による影響を少なくすることができる。例えば、S730のフェールセーフ処理として、シャットダウン処理(データ退避処理)を行うようになっていれば、RAM55からフラッシュメモリ53への、ダイアグコードや学習値等のデータ保存を行うことができるため、制御への影響を抑えることができる。
As described above, when the microcomputer 31 detects the occurrence of the main relay abnormality, the process that is normally performed after the IGSW 19 is turned off is performed by the idle process.
Therefore, even if the main relay abnormality has occurred and the supply of the power supply voltage VB to the terminal 17 is stopped immediately after the IGSW 19 is turned off, the processing that should be performed after the IGSW 19 is turned off is not performed at all. Can be prevented. That is, the influence due to the main relay abnormality can be reduced. For example, if shutdown processing (data saving processing) is performed as the fail-safe processing in S730, data such as diagnostic codes and learning values can be saved from the RAM 55 to the flash memory 53. The influence on can be suppressed.

次に、以上のようなECU11の作用ついて、図9〜図11を用い、主にマイコン31を主体にして説明する。尚、図9〜図11及び以下の説明において、「トリップ」とは、マイコン31(延いてはECU11)が連続して動作している期間を意味している。   Next, the operation of the ECU 11 as described above will be described mainly with the microcomputer 31 as a main component, with reference to FIGS. 9 to 11 and the following description, “trip” means a period during which the microcomputer 31 (and thus the ECU 11) is continuously operating.

まず図9は、メインリレー15が正常に機能する場合の、マイコン31の動作例を表している。
図9に示すように、トリップ1中の時刻t1でIGSW19がオンからオフされたとすると、マイコン31は、そのことを図3のS250で検出し、その検出時点から所定時間Tdが経過した時刻t2になると、図3のS270,S280により、フラッシュメモリ53の記憶領域63にオンの判定用フラグを書き込む。尚、マイコン31は、起動した際に、図2のS110により、駆動回路45への給電要求信号SDをハイにしているため、IGSW19がオフされても、メインリレー15がオンし続けて、ECU11への電源電圧VBの供給が継続される。
First, FIG. 9 shows an operation example of the microcomputer 31 when the main relay 15 functions normally.
As shown in FIG. 9, if the IGSW 19 is turned off from on at time t1 during trip 1, the microcomputer 31 detects this at S250 in FIG. 3, and time t2 when a predetermined time Td has elapsed from the detection time. Then, an ON determination flag is written in the storage area 63 of the flash memory 53 through S270 and S280 in FIG. When the microcomputer 31 is activated, the power supply request signal SD to the drive circuit 45 is made high by S110 in FIG. 2, so that even if the IGSW 19 is turned off, the main relay 15 continues to be turned on and the ECU 11 The supply of the power supply voltage VB is continued.

そして、その後、マイコン31は、シャットダウン前処理(図2のS160)及びシャットダウン処理(図2のS170)を行い、それらの処理が終了した時刻t3にて、図2のS180により、駆動回路45への給電要求信号SDをハイからローにする。すると、メインリレー15がオフしてECU11への電源電圧VBが遮断され、その結果、マイコン31が動作を停止する。この時点でトリップ1が終了する。   Then, after that, the microcomputer 31 performs pre-shutdown processing (S160 in FIG. 2) and shutdown processing (S170 in FIG. 2). At time t3 when these processings are completed, the microcomputer 31 transfers to the drive circuit 45 through S180 in FIG. The power supply request signal SD is changed from high to low. Then, the main relay 15 is turned off and the power supply voltage VB to the ECU 11 is cut off. As a result, the microcomputer 31 stops its operation. At this point, Trip 1 ends.

その後の時刻t4でIGSW19がオンされると、メインリレー15がオンする。そして、そのメインリレー15を介してECU11に電源電圧VBが供給され、マイコン31が起動して、この時点からトリップ2が始まる。   When the IGSW 19 is turned on at the subsequent time t4, the main relay 15 is turned on. Then, the power supply voltage VB is supplied to the ECU 11 via the main relay 15, the microcomputer 31 is activated, and the trip 2 starts from this point.

尚、メインリレー15での電圧降下は殆ど無いため、メインリレー15がオンしていれば、IGSW19がオンであっても、ダイオード21に電流は流れない。つまり、ダイオード21を経由しての電源電圧VBの供給は、IGSW19がオンで、且つ、メインリレー15が故障によりオンしない場合に、行われることとなる。   Since there is almost no voltage drop at the main relay 15, no current flows through the diode 21 even if the IGSW 19 is on if the main relay 15 is on. That is, the supply of the power supply voltage VB via the diode 21 is performed when the IGSW 19 is on and the main relay 15 is not turned on due to a failure.

そして、起動したマイコン31は、図4のイニシャル処理を行うが、マイコン31の起動時点において、記憶領域63内の判定用フラグはオンになっている。
このため、マイコン31は、図4のS330にて、判定用フラグがオンであると判定し、図4のS335にて、メインリレー異常が発生していないと判断して、メインリレー診断結果を、「正常」を示す値に設定することとなる。
Then, the activated microcomputer 31 performs the initial process of FIG. 4, but at the time of activation of the microcomputer 31, the determination flag in the storage area 63 is on.
Therefore, the microcomputer 31 determines in S330 of FIG. 4 that the determination flag is on, determines in S335 of FIG. 4 that no main relay abnormality has occurred, and displays the main relay diagnosis result. , The value indicating “normal” is set.

そして、その後、マイコン31は、図3のS220,S240により、時刻t5に示すように、記憶領域63にオフの判定用フラグを書き込む。つまり、記憶領域63内の判定用フラグを、オンからオフに書き換えて、次回の異常検出に備える。   Thereafter, the microcomputer 31 writes an OFF determination flag in the storage area 63 as shown at time t5 in S220 and S240 of FIG. That is, the determination flag in the storage area 63 is rewritten from on to off to prepare for the next abnormality detection.

次に図10は、メインリレー異常が発生した場合の、マイコン31の動作例を表している。尚、この図10及び図11の各例において、異常判定閾値は「2」である。
図10の例では、トリップ1におけるIGSW19のオン中に、メインリレー異常が発生している。
Next, FIG. 10 shows an operation example of the microcomputer 31 when the main relay abnormality occurs. In each example of FIGS. 10 and 11, the abnormality determination threshold is “2”.
In the example of FIG. 10, a main relay abnormality has occurred while the IGSW 19 is on in Trip 1.

このため、図10に示すように、トリップ1中の時刻t11でIGSW19がオンからオフされたとすると、すぐに、ECU11への電源電圧VBが遮断されて、マイコン31が動作を停止し、トリップ1が終了する。そして、この場合、マイコン31は、IGSW19がオフされた後に図3のS270,S280の処理を行うことができず、その結果、記憶領域63にオンの判定用フラグを書き込むことができない。よって、判定用フラグがオフのまま、マイコン31の動作が停止することとなる。   Therefore, as shown in FIG. 10, if the IGSW 19 is turned off from on at time t11 during trip 1, the power supply voltage VB to the ECU 11 is immediately cut off, the microcomputer 31 stops operating, and trip 1 Ends. In this case, the microcomputer 31 cannot perform the processes of S270 and S280 in FIG. 3 after the IGSW 19 is turned off. As a result, the microcomputer 31 cannot write the ON determination flag in the storage area 63. Therefore, the operation of the microcomputer 31 is stopped while the determination flag is off.

尚、メインリレー15が、マイコン31からの給電要求信号SDだけでなく、IGSW信号によってもオン不能ならば(つまり、メインリレー15にオン不能なオフ故障が生じている場合には)、IGSW19のオン中において、ECU11へは、IGSW19及びダイオード21を介して電源電圧VBが供給されることとなる。また、メインリレー異常が発生していても、メインリレー15がIGSW信号でオン可能ならば(つまり、メインリレー15が、IGSW信号ではオン可能で、マイコン31からの給電要求信号SDではオン不能な場合には)、IGSW19のオン中において、ECU11へは、メインリレー15を介して電源電圧VBが供給されることとなる。   If the main relay 15 cannot be turned on not only by the power supply request signal SD from the microcomputer 31 but also by the IGSW signal (that is, when the main relay 15 has an off failure that cannot be turned on), the IGSW 19 During the on-state, the power supply voltage VB is supplied to the ECU 11 via the IGSW 19 and the diode 21. Even if the main relay abnormality occurs, if the main relay 15 can be turned on with the IGSW signal (that is, the main relay 15 can be turned on with the IGSW signal, and cannot be turned on with the power supply request signal SD from the microcomputer 31. In this case, the power supply voltage VB is supplied to the ECU 11 via the main relay 15 while the IGSW 19 is on.

その後の時刻t12でIGSW19がオンされると、ECU11に電源電圧VBが供給されて、マイコン31が起動し、この時点からトリップ2が始まる。
そして、起動したマイコン31は、図4のイニシャル処理を行うが、マイコン31の起動時点において、記憶領域63内の判定用フラグは、オンではなく、オフになっている。
When the IGSW 19 is turned on at time t12 thereafter, the power supply voltage VB is supplied to the ECU 11, the microcomputer 31 is started, and the trip 2 starts from this point.
Then, the activated microcomputer 31 performs the initial process of FIG. 4. At the time of activation of the microcomputer 31, the determination flag in the storage area 63 is not turned on but turned off.

このため、マイコン31は、図4のS330にて、判定用フラグがオフであると判定する。また、この例では、記憶領域65内のリセット履歴がオフであり、マイコン31は、図4のS345にて、リセット履歴がオフであると判定することとなる。よって、マイコン31は、図4のS350により、異常判定カウンタをインクリメントする。このため、異常判定カウンタは、「0」から「1」に増加するが、未だ異常判定閾値(=2)には達しない。   Therefore, the microcomputer 31 determines that the determination flag is off in S330 of FIG. In this example, the reset history in the storage area 65 is off, and the microcomputer 31 determines that the reset history is off in S345 of FIG. Therefore, the microcomputer 31 increments the abnormality determination counter in S350 of FIG. For this reason, the abnormality determination counter increases from “0” to “1”, but has not yet reached the abnormality determination threshold (= 2).

また、この場合、マイコン31は、メインリレー診断結果を、図4のS310で「未検出」を示す値に設定した後、変更しないため、そのメインリレー診断結果は「未検出」を示す値になる。   In this case, since the microcomputer 31 does not change the main relay diagnosis result after setting the main relay diagnosis result to the value indicating “not detected” in S310 of FIG. 4, the main relay diagnosis result is set to the value indicating “not detected”. Become.

そして、その後、マイコン31は、図3のS220,S240により、時刻t13に示すように、記憶領域63にオフの判定用フラグを書き込むこととなる。よって、判定用フラグはオフのままである。   After that, the microcomputer 31 writes an OFF determination flag in the storage area 63 as shown at time t13 by S220 and S240 in FIG. Therefore, the determination flag remains off.

その後、トリップ1と同様に、トリップ2中の時刻t14でIGSW19がオンからオフされたとすると、この場合も、すぐに、ECU11への電源電圧VBが遮断されて、マイコン31が動作を停止し、トリップ2が終了する。そして、この場合も、マイコン31は、記憶領域63にオンの判定用フラグを書き込むことができない。   Thereafter, similarly to Trip 1, if IGSW 19 is turned off from on at time t14 during Trip 2, the power supply voltage VB to ECU 11 is immediately cut off in this case as well, and microcomputer 31 stops operating. Trip 2 ends. Also in this case, the microcomputer 31 cannot write the ON determination flag in the storage area 63.

そして、その後の時刻t15でIGSW19がオンされると、ECU11に電源電圧VBが供給されて、マイコン31が起動し、この時点からトリップ3が始まる。
そして、起動したマイコン31は、図4のS330にて、判定用フラグがオフであると判定し、図4のS345にて、リセット履歴がオフであると判定することとなる。よって、マイコン31は、図4のS350により、異常判定カウンタをインクリメントする。このため、異常判定カウンタは、「1」から増加して異常判定閾値(=2)に達する。
Then, when the IGSW 19 is turned on at the subsequent time t15, the power supply voltage VB is supplied to the ECU 11, the microcomputer 31 is activated, and the trip 3 starts from this point.
Then, the activated microcomputer 31 determines that the determination flag is OFF in S330 of FIG. 4, and determines that the reset history is OFF in S345 of FIG. Therefore, the microcomputer 31 increments the abnormality determination counter in S350 of FIG. For this reason, the abnormality determination counter increases from “1” and reaches the abnormality determination threshold (= 2).

よって、マイコン31は、図4のS355にて、異常判定カウンタが異常判定閾値以上になったと判定し、図4のS360にて、メインリレー異常が発生していると判断して、メインリレー診断結果を、「異常」を示す値に設定することとなる。更に、マイコン31は、図4のS365により、フェールセーフ状態をオンにし、その後は、本来ならばIGSW19がオフされた後に行う処理を、アイドル処理で行うようになる。   Therefore, the microcomputer 31 determines in S355 in FIG. 4 that the abnormality determination counter has become equal to or greater than the abnormality determination threshold, determines in S360 in FIG. 4 that a main relay abnormality has occurred, and performs main relay diagnosis. The result is set to a value indicating “abnormal”. Further, the microcomputer 31 turns on the fail-safe state in S365 of FIG. 4, and thereafter performs processing that is normally performed after the IGSW 19 is turned off as idle processing.

次に図11は、IGSW19のオン中にマイコン31がリセットされた場合の、マイコン31の動作例を表している。尚、この図11の例においても、図10と同様に、トリップ1におけるIGSW19のオン中に、メインリレー異常が発生している。   Next, FIG. 11 shows an operation example of the microcomputer 31 when the microcomputer 31 is reset while the IGSW 19 is on. In the example of FIG. 11 as well, as in FIG. 10, the main relay abnormality occurs while the IGSW 19 in the trip 1 is on.

まず、図11において、時刻t13よりも前(左側)の動作内容は、前述した図10と同じであるため、説明を省略する。
そして、図11では、トリップ2中の時刻t24(この時点でIGSW19はオンのまま)にて、マイコン31がリセットされた場合を表している。
First, in FIG. 11, the operation content before (left side) before time t13 is the same as that in FIG.
FIG. 11 shows a case where the microcomputer 31 is reset at time t24 during trip 2 (IGSW 19 remains on at this time).

ここで、時刻t24で発生したリセットが、マイコン31のソフトウェアによる故意のリセットであれば、図5のS410,S420又は図6のS520,S530の処理により、記憶領域65にオンのリセット履歴が書き込まれることとなる。また、時刻t24で発生したリセットが、ノイズにより動作用電圧Vdが低下して起こるリセットであれば、図7のS620,S630の処理により、記憶領域65にオンのリセット履歴が書き込まれることとなる。   Here, if the reset generated at time t24 is a deliberate reset by the software of the microcomputer 31, an on-reset history is written in the storage area 65 by the processing of S410 and S420 in FIG. 5 or S520 and S530 in FIG. Will be. If the reset generated at time t24 is a reset that occurs due to a decrease in the operating voltage Vd due to noise, the ON reset history is written in the storage area 65 by the processing of S620 and S630 in FIG. .

このため、時刻t24で発生したリセットが時刻25で解除されて、マイコン31が再起動した時点(即ち、トリップ3の開始時)では、記憶領域65内のリセット履歴がオンになっている。そして、時刻25で起動したマイコン31は、図4のS330にて、判定用フラグがオフであると判定し、図4のS345にて、リセット履歴がオンであると判定することとなる。   Therefore, the reset history in the storage area 65 is turned on when the reset generated at time t24 is canceled at time 25 and the microcomputer 31 is restarted (that is, at the start of trip 3). Then, the microcomputer 31 activated at time 25 determines that the determination flag is off in S330 of FIG. 4, and determines that the reset history is on in S345 of FIG.

よって、トリップ3において、マイコン31は、判定用フラグがオフであっても、異常判定カウンタをインクリメントすることなく、図4のイニシャル処理を終了することとなる。このため、異常判定カウンタは、前回のトリップ2における値(=1)のままとなり、メインリレー異常が発生していると図4のS360で判断することが禁止されることとなる。   Therefore, in trip 3, the microcomputer 31 ends the initial process in FIG. 4 without incrementing the abnormality determination counter even if the determination flag is OFF. For this reason, the abnormality determination counter remains at the value (= 1) in the previous trip 2, and it is prohibited to determine in S360 of FIG. 4 that the main relay abnormality has occurred.

そして、その後、マイコン31は、時刻t26に示すように、図3のS230,S240により、記憶領域65内のリセット履歴をオンからオフに書き換えることとなる。また、マイコン31は、図3のS220,S240により、記憶領域63にオフの判定用フラグを書き込むこととなる。   Then, as shown at time t26, the microcomputer 31 rewrites the reset history in the storage area 65 from on to off by S230 and S240 in FIG. Further, the microcomputer 31 writes an OFF determination flag in the storage area 63 by S220 and S240 in FIG.

その後、トリップ3中の時刻t27でIGSW19がオンからオフされたとすると、この場合も、すぐに、ECU11への電源電圧VBが遮断されて、マイコン31が動作を停止し、トリップ3が終了する。   Thereafter, if the IGSW 19 is turned off from on at time t27 during the trip 3, also in this case, the power supply voltage VB to the ECU 11 is immediately cut off, the microcomputer 31 stops operating, and the trip 3 ends.

そして、その後の時刻t28でIGSW19がオンされると、ECU11に電源電圧VBが供給されて、マイコン31が起動し、この時点からトリップ4が始まる。
そして、起動したマイコン31は、図4のS330にて、判定用フラグがオフであると判定し、図4のS345にて、今度は、リセット履歴がオフであると判定することとなる。よって、マイコン31は、図4のS350により、異常判定カウンタをインクリメントし、その結果、異常判定カウンタは異常判定閾値(=2)に達する。このため、マイコン31は、図4のS360にて、メインリレー異常が発生していると判断して、メインリレー診断結果を、「異常」を示す値に設定することとなる。更に、マイコン31は、図4のS365により、フェールセーフ状態をオンにし、その後は、本来ならばIGSW19がオフされた後に行う処理を、アイドル処理で行うようになる。つまり、図11における時刻t28以降のトリップ4の動作は、図10における時刻t15以降のトリップ3の動作と同じである。
Then, when the IGSW 19 is turned on at the subsequent time t28, the power supply voltage VB is supplied to the ECU 11, the microcomputer 31 is activated, and the trip 4 starts from this point.
Then, the activated microcomputer 31 determines that the determination flag is off in S330 of FIG. 4, and then determines that the reset history is off in S345 of FIG. Therefore, the microcomputer 31 increments the abnormality determination counter in S350 of FIG. 4, and as a result, the abnormality determination counter reaches the abnormality determination threshold (= 2). For this reason, the microcomputer 31 determines that a main relay abnormality has occurred in S360 of FIG. 4 and sets the main relay diagnosis result to a value indicating "abnormal". Furthermore, the microcomputer 31 turns on the fail-safe state in S365 of FIG. 4, and thereafter performs processing that is normally performed after the IGSW 19 is turned off as idle processing. That is, the operation of trip 4 after time t28 in FIG. 11 is the same as the operation of trip 3 after time t15 in FIG.

以上のようなECU11によれば、マイコン31がIGSW19のオン中にリセットされて、記憶領域63内の判定用フラグがオンにされなかった場合には、そのリセットの発生が検出されてリセット履歴がオンされる。そして、リセットの解除により起動したマイコン31は、判定用フラグがオフであっても、リセット履歴がオンであれば、図4のイニシャル処理におけるS350以降の処理を行うことが禁止される(即ち、メインリレー異常が発生していると判断することが禁止される)ようになっている。   According to the ECU 11 as described above, when the microcomputer 31 is reset while the IGSW 19 is on and the determination flag in the storage area 63 is not turned on, the occurrence of the reset is detected and the reset history is recorded. Turned on. Then, even if the determination flag is off, the microcomputer 31 activated by releasing the reset is prohibited from performing the processing after S350 in the initial processing of FIG. It is prohibited to judge that a main relay abnormality has occurred.

よって、IGSW19のオン中にリセットされたマイコン31が、次に起動した際に、メインリレー異常が発生していると誤判定してしまうことを、防止することができ、その結果、メインリレー15に関する故障検出精度を向上させることができる。   Therefore, it is possible to prevent the microcomputer 31 reset while the IGSW 19 is turned on from being erroneously determined that a main relay abnormality has occurred when the microcomputer 31 is started next time. As a result, the main relay 15 The failure detection accuracy can be improved.

尚、本実施形態では、IGSW19がオンであることが、起動用給電条件に相当している。また、メインリレー15及び駆動回路45が、給電手段に相当し、メインリレー異常が、給電手段の異常に相当している。また、マイコン31が給電要求信号SDをハイにすることが、「給電要求信号を出力すること」に相当し、マイコン31が給電要求信号SDをハイからローにすることが、「給電要求信号の出力を停止すること」に相当している。また、オンの判定用フラグが、判定用情報に相当し、オフの判定用フラグが、判定用情報とは異なる情報に相当している。また、オンのリセット履歴が、リセット発生情報に相当している。   In the present embodiment, the fact that the IGSW 19 is on corresponds to the start-up power supply condition. Further, the main relay 15 and the drive circuit 45 correspond to power supply means, and the main relay abnormality corresponds to abnormality of the power supply means. Further, setting the power supply request signal SD to high by the microcomputer 31 corresponds to “outputting a power supply request signal”, and changing the power supply request signal SD from high to low by the microcomputer 31 This corresponds to “stopping the output”. The ON determination flag corresponds to determination information, and the OFF determination flag corresponds to information different from the determination information. Further, the ON reset history corresponds to reset occurrence information.

[第2実施形態]
図12に示す第2実施形態のECU11では、図1と比較すると、ダイオード21を経由した電源電圧VBの供給経路が設けられていない、という点が異なっている。
[Second Embodiment]
The ECU 11 of the second embodiment shown in FIG. 12 is different from that of FIG. 1 in that a supply path for the power supply voltage VB via the diode 21 is not provided.

そして、この構成の場合、マイコン31は、例えば、当該マイコン31から駆動回路45へ給電要求信号SDを出力するための配線の故障(断線又はグランドショート)と、メインリレー15のオフ故障とのうち、前者の配線故障を、メインリレー異常として検出することとなる。もしメインリレー15にオフ故障が生じたなら、IGSW19がオンされても、ECU11に電源電圧VBが供給されず、マイコン31は動作しなくなるからである。   In the case of this configuration, the microcomputer 31 includes, for example, a wiring failure (disconnection or ground short) for outputting the power supply request signal SD from the microcomputer 31 to the drive circuit 45 and an off failure of the main relay 15. The former wiring failure is detected as a main relay abnormality. If an off failure occurs in the main relay 15, even if the IGSW 19 is turned on, the power supply voltage VB is not supplied to the ECU 11, and the microcomputer 31 does not operate.

一方、第1実施形態のECU11(図1)において、マイコン31は、メインリレー15にオフ故障が生じても、IGSW19のオン中は動作するため、給電要求信号SDの配線故障とメインリレー15のオフ故障とを、メインリレー異常として検出することとなる。   On the other hand, in the ECU 11 (FIG. 1) of the first embodiment, the microcomputer 31 operates while the IGSW 19 is on even when the main relay 15 is turned off. An off failure is detected as a main relay abnormality.

以上、本発明の一実施形態について説明したが、本発明はこうした実施形態に何等限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々なる態様で実施し得ることは勿論である。   As mentioned above, although one Embodiment of this invention was described, this invention is not limited to such Embodiment at all, Of course, in the range which does not deviate from the summary of this invention, it can implement in a various aspect. .

例えば、駆動回路45の一部又は全部は、ECU11の外部にあっても良い。
また、起動用給電条件としては、IGSW19のオンという条件以外でも良く、例えば、他の制御装置から出力される起動用信号がアクティブレベルになったという条件であっても良い。また、起動用給電条件としては、例えば、複数の起動用信号のうちの少なくとも1つがアクティブレベルである、というように、2つ以上の条件の何れかが成立している、という条件あっても良い。
For example, a part or all of the drive circuit 45 may be outside the ECU 11.
Further, the power supply condition for activation may be other than the condition that the IGSW 19 is turned on, for example, the condition that the activation signal output from another control device becomes an active level. Further, the power supply condition for activation may be a condition that one of two or more conditions is satisfied, for example, at least one of a plurality of activation signals is at an active level. good.

また、図5〜図7の各処理のうち、何れかが行われない構成であっても良い。また、マイコン31が、リプログ処理を実施した場合や異常を検出した場合以外の、所定の場合に、リセット用処理を行うのであれば、その所定の場合に、リセット履歴をオンにする処理を行えば良い。   Further, a configuration in which any one of the processes in FIGS. 5 to 7 is not performed may be employed. In addition, if the microcomputer 31 performs the reset process in a predetermined case other than the case where the reprogram processing is performed or an abnormality is detected, the process of turning on the reset history is performed in the predetermined case. Just do it.

また、図8のアイドル処理から、S720及びS730の処理を削除することも可能である。
また、判定用フラグ、リセット履歴、及び異常判定カウンタの保存先は、スタンバイRAM57でも良い。
Further, the processes of S720 and S730 can be deleted from the idle process of FIG.
Further, the storage location of the determination flag, the reset history, and the abnormality determination counter may be the standby RAM 57.

また、動作用電圧Vdの低下によるリセットを検出せずに、マイコン31のソフトウェアによる故意のリセットだけを検出するのであれば、リセット履歴の保存先(リセット記憶部)は、例えばRAM55でも良い。   Further, if only a deliberate reset by software of the microcomputer 31 is detected without detecting a reset due to a decrease in the operating voltage Vd, the reset history storage destination (reset storage unit) may be, for example, the RAM 55.

また、データの書き換えが可能な不揮発性メモリとしては、フラッシュメモリに限らず、例えばEEPROM等でもよい。
また、異常判定閾値は、図10,図11で例示した「2」に限らず、「3」以上であっても良いし、「1」であっても良い。尚、異常判定閾値を「1」にするのであれば、図4におけるS350,S355の処理等、異常判定カウンタに関する処理は不要となる。
Further, the nonvolatile memory capable of rewriting data is not limited to the flash memory, and may be, for example, an EEPROM.
The abnormality determination threshold value is not limited to “2” illustrated in FIGS. 10 and 11, and may be “3” or more, or “1”. If the abnormality determination threshold is set to “1”, processing relating to the abnormality determination counter, such as the processing of S350 and S355 in FIG. 4, is not necessary.

一方、マイコン31とは別に、リセット検出手段としてのハードウェアを設けるようにしても良い。
例えば、マイコン31がリセット用処理(S440,S540)を行う場合に、そのリセット用処理を行うことを示す報知信号を、リセット検出手段及びリセット記憶部としてのラッチ回路に出力し、そのラッチ回路は、報知信号が入力されると、該報知信号をラッチしてセット状態になる、といった構成でも良い。この場合、ラッチ回路がセット状態であることが、リセット記憶部にリセット発生情報が記憶されていること、に相当する。また同様に、上記ラッチ回路が、IGSW19のオン中にリセット制御回路47からマイコン31へリセット信号SRが出力されると、そのリセット信号SRをラッチしてセット状態になる、という構成を採ることもできる。そして、マイコン31は、図4のS345にて、上記ラッチ回路がセット状態であるか否か判定すれば良い。
On the other hand, separately from the microcomputer 31, hardware as reset detection means may be provided.
For example, when the microcomputer 31 performs the reset process (S440, S540), a notification signal indicating that the reset process is performed is output to the reset detection unit and the latch circuit as the reset storage unit. When the notification signal is input, the notification signal may be latched and set. In this case, the fact that the latch circuit is in the set state corresponds to the fact that the reset generation information is stored in the reset storage unit. Similarly, the latch circuit may be configured such that when the reset signal SR is output from the reset control circuit 47 to the microcomputer 31 while the IGSW 19 is on, the reset signal SR is latched and set. it can. And the microcomputer 31 should just determine whether the said latch circuit is a set state in S345 of FIG.

また例えば、上記報知信号をラッチするラッチ回路と、リセット信号SRをラッチするラッチ回路とを、別々に設けても良く、その場合、マイコン31は、図4のS345にて、複数のラッチ回路の少なくとも1つがセット状態であるか否か判定すれば良い。   In addition, for example, a latch circuit that latches the notification signal and a latch circuit that latches the reset signal SR may be provided separately. In this case, the microcomputer 31 includes a plurality of latch circuits in S345 of FIG. What is necessary is just to determine whether at least one is a set state.

11…ECU(電子制御装置)、13…バッテリ、15…メインリレー、17…給電部としての端子、19…IGSW(イグニッションスイッチ)、21…ダイオード、31…マイコン、33…電源制御IC、41…主電源回路、45…駆動回路、47…リセット制御回路、49…ウォッチドッグタイマ、51…CPU、53…フラッシュメモリ、63…判定用情報記憶部としての記憶領域、65…リセット記憶部としての記憶領域   DESCRIPTION OF SYMBOLS 11 ... ECU (electronic control apparatus), 13 ... Battery, 15 ... Main relay, 17 ... Terminal as electric power feeding part, 19 ... IGSW (ignition switch), 21 ... Diode, 31 ... Microcomputer, 33 ... Power supply control IC, 41 ... Main power supply circuit 45 ... Drive circuit 47 ... Reset control circuit 49 ... Watch dog timer 51 ... CPU 53 ... Flash memory 63 ... Storage area as determination information storage section 65 ... Storage as reset storage section region

Claims (6)

起動用給電条件と動作継続用給電条件との何れかが成立している場合に、外部電源(13)からの電源電圧が供給される給電部(17)と、
前記給電部に前記電源電圧が供給されると、該電源電圧を電力源として動作するマイコン(31)と、を備え、
前記動作継続用給電条件は、動作状態の前記マイコンから給電要求信号が出力されることであり、
前記マイコンは、動作を開始すると、前記給電要求信号が入力されることで前記給電部に前記電源電圧を供給する給電手段(15,45)に対して、前記給電要求信号を出力することを開始し、前記起動用給電条件が非成立になったことを検知した後で特定の処理を終了すると、前記給電要求信号の出力を停止して動作を停止するようになっている、電子制御装置(11)であって、
前記給電手段の異常の有無を判定するために用いられる判定用情報を記憶するための記憶部として、前記給電部に前記電源電圧が供給されるか否かに拘わらずデータを保存可能な判定用情報記憶部(63)を備え、
前記マイコンは、前記起動用給電条件が非成立になったことを検知してから前記給電要求信号の出力を停止するまでの間に、前記判定用情報を前記判定用情報記憶部に書き込む第1書込処理(S270,S280)を行い、
前記マイコンは、動作を開始した後、前記判定用情報記憶部に前記判定用情報が記憶されているか否かを判定して、前記判定用情報が記憶されていないことを条件に前記給電手段が異常であると判断する、異常検出処理(S330,S350〜S360)を行い、また、少なくとも前記判定用情報記憶部に前記判定用情報が記憶されていると判定した場合には、前記判定用情報記憶部に前記判定用情報とは異なる情報を書き込む第2書込処理(S220,S240)も行い、
更に、当該電子制御装置は、前記起動用給電条件が成立している場合における前記マイコンのリセットを検出して、前記マイコンがリセットされたことを示すリセット発生情報をリセット記憶部(65)に記憶するリセット検出手段(31,S410,S420,S520,S530,S610〜S630)を備え、
前記マイコンは、動作を開始した際に、前記リセット記憶部に前記リセット発生情報が記憶されていた場合には、前記異常検出処理により前記給電手段が異常であると判断することを禁止する(S345)ようになっていること、
を特徴とする電子制御装置。
A power supply unit (17) to which a power supply voltage from an external power supply (13) is supplied when either the start-up power supply condition or the operation continuation power supply condition is satisfied;
When the power supply voltage is supplied to the power supply unit, the microcomputer (31) that operates using the power supply voltage as a power source,
The operation continuation power supply condition is that a power supply request signal is output from the microcomputer in an operation state,
When the microcomputer starts operation, the microcomputer starts outputting the power supply request signal to the power supply means (15, 45) that supplies the power supply voltage to the power supply unit when the power supply request signal is input. When the specific process is terminated after detecting that the start-up power supply condition is not established, the electronic control device is configured to stop the operation by stopping the output of the power supply request signal ( 11)
As a storage unit for storing determination information used for determining whether there is an abnormality in the power supply means, a determination unit capable of storing data regardless of whether the power supply voltage is supplied to the power supply unit An information storage unit (63),
The microcomputer writes the determination information to the determination information storage unit from when it detects that the start-up power supply condition is not satisfied until it stops outputting the power supply request signal. Write processing (S270, S280),
After starting the operation, the microcomputer determines whether or not the determination information is stored in the determination information storage unit, and the power supply unit is configured on the condition that the determination information is not stored. When the abnormality detection process (S330, S350 to S360) for determining that there is an abnormality is performed and it is determined that the determination information is stored in at least the determination information storage unit, the determination information A second writing process (S220, S240) for writing information different from the determination information to the storage unit is also performed.
Further, the electronic control unit detects reset of the microcomputer when the start-up power supply condition is satisfied, and stores reset generation information indicating that the microcomputer has been reset in the reset storage unit (65). Reset detecting means (31, S410, S420, S520, S530, S610 to S630) for
When the microcomputer has started the operation and the reset generation information is stored in the reset storage unit, the microcomputer prohibits the abnormality detection processing from determining that the power supply unit is abnormal (S345). )
An electronic control device.
請求項1に記載の電子制御装置において、
前記マイコンは、前記起動用給電条件が成立している場合に所定のリセット実施条件が成立すると、当該マイコンをリセットするためのリセット用処理(S440,S540)を行うようになっており、
前記リセット検出手段(31,S410,S420,S520,S530)は、前記マイコンのリセットとして、前記マイコンにより前記リセット用処理が行われたことを検出すること、
を特徴とする電子制御装置。
The electronic control device according to claim 1.
The microcomputer performs a reset process (S440, S540) for resetting the microcomputer when a predetermined reset execution condition is satisfied when the activation power supply condition is satisfied,
The reset detection means (31, S410, S420, S520, S530) detects that the reset processing has been performed by the microcomputer as a reset of the microcomputer;
An electronic control device.
請求項2に記載の電子制御装置において、
前記リセット検出手段は、前記マイコンによって実現され、前記マイコンは、前記リセット用処理(S440,S540)を行う場合に、前記リセット発生情報を前記リセット記憶部に記憶する(S410,S420,S520,S530)こと、
を特徴とする電子制御装置。
The electronic control device according to claim 2,
The reset detection means is realized by the microcomputer, and the microcomputer stores the reset generation information in the reset storage unit (S410, S420, S520, S530) when performing the reset processing (S440, S540). )about,
An electronic control device.
請求項2又は請求項3に記載の電子制御装置において、
前記リセット実施条件は、前記マイコンが実行対象のプログラムを書き換える処理を行ったという条件と、前記マイコンが当該マイコンの異常を検出したという条件との、少なくとも一方であること、
を特徴とする電子制御装置。
The electronic control device according to claim 2 or claim 3,
The reset execution condition is at least one of a condition that the microcomputer has performed a process of rewriting a program to be executed and a condition that the microcomputer has detected an abnormality of the microcomputer.
An electronic control device.
請求項1ないし請求項4の何れか1項に記載の電子制御装置において、
前記給電部に供給される前記電源電圧から、前記マイコンを動作させるための一定の動作用電圧を生成して前記マイコンに出力する電源回路(41)と、
前記電源回路から出力される前記動作用電圧が、前記マイコンが動作不能となる電圧値よりも高い所定のリセット実施閾値まで低下したことを検知すると、前記マイコンをリセットするリセット制御回路(47)と、を備え、
前記リセット記憶部(65)は、前記給電部に前記電源電圧が供給されるか否かに拘わらずデータを保存可能な記憶部であり、
前記リセット検出手段(31,S610〜S630)は、前記マイコンのリセットとして、前記起動用給電条件が成立している場合における前記リセット制御回路による前記マイコンのリセットを検出すること、
を特徴とする電子制御装置。
The electronic control device according to any one of claims 1 to 4,
A power supply circuit (41) for generating a constant operating voltage for operating the microcomputer from the power supply voltage supplied to the power supply unit and outputting the generated voltage to the microcomputer;
A reset control circuit (47) for resetting the microcomputer when detecting that the operating voltage output from the power supply circuit has dropped to a predetermined reset execution threshold value that is higher than a voltage value at which the microcomputer becomes inoperable; With
The reset storage unit (65) is a storage unit capable of storing data regardless of whether the power supply voltage is supplied to the power supply unit,
The reset detection means (31, S610 to S630) detects the reset of the microcomputer by the reset control circuit when the activation power supply condition is satisfied as the reset of the microcomputer.
An electronic control device.
請求項5に記載の電子制御装置において、
前記リセット制御回路(47)は、前記マイコンをリセットする前の時点であって、前記電源回路から出力される前記動作用電圧が前記リセット実施閾値よりも高いリセット予告閾値まで低下したことを検知した時点で、前記マイコンにリセット予告信号を出力するようになっており、
前記リセット検出手段は、前記マイコンによって実現され、前記マイコンは、前記起動用給電条件が成立している場合に前記リセット予告信号が入力されたことを検出すると、前記リセット発生情報を前記リセット記憶部に記憶する(S610〜S630)こと、
を特徴とする電子制御装置。
The electronic control device according to claim 5.
The reset control circuit (47) has detected that the operating voltage output from the power supply circuit has dropped to a reset notice threshold value higher than the reset execution threshold value at a time point before resetting the microcomputer. At that time, a reset warning signal is output to the microcomputer.
The reset detection means is realized by the microcomputer, and when the microcomputer detects that the reset notice signal is input when the activation power supply condition is satisfied, the reset generation unit stores the reset generation information. (S610 to S630),
An electronic control device.
JP2012189140A 2012-08-29 2012-08-29 Electronic control unit Active JP6011162B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012189140A JP6011162B2 (en) 2012-08-29 2012-08-29 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012189140A JP6011162B2 (en) 2012-08-29 2012-08-29 Electronic control unit

Publications (2)

Publication Number Publication Date
JP2014048070A true JP2014048070A (en) 2014-03-17
JP6011162B2 JP6011162B2 (en) 2016-10-19

Family

ID=50607916

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012189140A Active JP6011162B2 (en) 2012-08-29 2012-08-29 Electronic control unit

Country Status (1)

Country Link
JP (1) JP6011162B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016147585A (en) * 2015-02-12 2016-08-18 株式会社デンソー Electronic control device
JP2017056847A (en) * 2015-09-17 2017-03-23 日野自動車株式会社 Vehicular electronic control device
JP2017178086A (en) * 2016-03-30 2017-10-05 株式会社デンソー Electronic control unit
RU2644961C1 (en) * 2014-03-18 2018-02-15 Мицубиси Электрик Корпорейшн Refrigerator
JP2018067239A (en) * 2016-10-21 2018-04-26 株式会社デンソー Electronic control unit
WO2021054007A1 (en) * 2019-09-18 2021-03-25 日立オートモティブシステムズ株式会社 Electronic control device
JP2021086505A (en) * 2019-11-29 2021-06-03 エイブリック株式会社 Power supply management device
JP2022053165A (en) * 2020-09-24 2022-04-05 株式会社デンソー Electronic control device
JP2023105615A (en) * 2022-01-19 2023-07-31 株式会社デンソー electronic controller

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60211525A (en) * 1984-04-06 1985-10-23 Fujitsu Ten Ltd Power supply momentary interruption storage device
JPS63147745U (en) * 1987-03-19 1988-09-29
JPH01129133A (en) * 1987-11-16 1989-05-22 Hitachi Ltd Engine control device self-diagnosis
JPH0717660U (en) * 1993-08-31 1995-03-31 株式会社東海理化電機製作所 Vehicle load control device
JPH07245786A (en) * 1994-03-04 1995-09-19 Nissan Motor Co Ltd Multiplex device
JP2009009786A (en) * 2007-06-27 2009-01-15 Shimadzu Corp Mass spectrometer
JP2009274569A (en) * 2008-05-14 2009-11-26 Denso Corp Vehicle controlling device
JP2011069289A (en) * 2009-09-25 2011-04-07 Fujitsu Ten Ltd Idling stop device, and idling stop function disabling method
JP2011121553A (en) * 2009-12-14 2011-06-23 Denso Corp On-vehicle device
JP2012006547A (en) * 2010-06-28 2012-01-12 Toyota Motor Corp Electronic control device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60211525A (en) * 1984-04-06 1985-10-23 Fujitsu Ten Ltd Power supply momentary interruption storage device
JPS63147745U (en) * 1987-03-19 1988-09-29
JPH01129133A (en) * 1987-11-16 1989-05-22 Hitachi Ltd Engine control device self-diagnosis
JPH0717660U (en) * 1993-08-31 1995-03-31 株式会社東海理化電機製作所 Vehicle load control device
JPH07245786A (en) * 1994-03-04 1995-09-19 Nissan Motor Co Ltd Multiplex device
JP2009009786A (en) * 2007-06-27 2009-01-15 Shimadzu Corp Mass spectrometer
JP2009274569A (en) * 2008-05-14 2009-11-26 Denso Corp Vehicle controlling device
JP2011069289A (en) * 2009-09-25 2011-04-07 Fujitsu Ten Ltd Idling stop device, and idling stop function disabling method
JP2011121553A (en) * 2009-12-14 2011-06-23 Denso Corp On-vehicle device
JP2012006547A (en) * 2010-06-28 2012-01-12 Toyota Motor Corp Electronic control device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2644961C1 (en) * 2014-03-18 2018-02-15 Мицубиси Электрик Корпорейшн Refrigerator
JP2016147585A (en) * 2015-02-12 2016-08-18 株式会社デンソー Electronic control device
JP2017056847A (en) * 2015-09-17 2017-03-23 日野自動車株式会社 Vehicular electronic control device
JP2017178086A (en) * 2016-03-30 2017-10-05 株式会社デンソー Electronic control unit
JP2018067239A (en) * 2016-10-21 2018-04-26 株式会社デンソー Electronic control unit
JPWO2021054007A1 (en) * 2019-09-18 2021-03-25
WO2021054007A1 (en) * 2019-09-18 2021-03-25 日立オートモティブシステムズ株式会社 Electronic control device
CN114223120A (en) * 2019-09-18 2022-03-22 日立安斯泰莫株式会社 Electronic control device
JP7288513B2 (en) 2019-09-18 2023-06-07 日立Astemo株式会社 electronic controller
US12319210B2 (en) 2019-09-18 2025-06-03 Hitachi Astemo, Ltd. Electronic control device
JP2021086505A (en) * 2019-11-29 2021-06-03 エイブリック株式会社 Power supply management device
JP7329426B2 (en) 2019-11-29 2023-08-18 エイブリック株式会社 Power management device
JP2022053165A (en) * 2020-09-24 2022-04-05 株式会社デンソー Electronic control device
JP2023105615A (en) * 2022-01-19 2023-07-31 株式会社デンソー electronic controller
JP7797890B2 (en) 2022-01-19 2026-01-14 株式会社デンソー Electronic control unit

Also Published As

Publication number Publication date
JP6011162B2 (en) 2016-10-19

Similar Documents

Publication Publication Date Title
JP6011162B2 (en) Electronic control unit
JP4518150B2 (en) Electronic control device for vehicle
JP4692318B2 (en) Electronic control unit
JP5176728B2 (en) Electronic control device for vehicle
JP5382084B2 (en) Vehicle equipment
JP5244981B2 (en) Microcomputer and operation method thereof
WO2014091666A1 (en) Onboard electronic control device
JP2014035730A (en) Vehicle control device
JP3870751B2 (en) Electronic control unit
JP2015217911A (en) Electronic control apparatus
JP2008186173A (en) Fault monitoring system
JP5962697B2 (en) Electronic control unit
JP2006307721A (en) Electronic control unit for vehicle
JP4812699B2 (en) Power control device
JP5598447B2 (en) Starter control device
JP2020050319A (en) Power supply monitoring device, power supply control system, and power supply monitoring method
JP2002236503A (en) Electronic controller for vehicle
JP2008293420A (en) Electronic control unit
JP2008055980A (en) Automotive electronic control device
JP3960212B2 (en) Electronic control unit
JP3870974B2 (en) Electronic control unit
JP2012173919A (en) Information processor, electronic control unit for vehicle, and data storage method
JP2013058159A (en) Electronic control device
JP2015215743A (en) Electronic control unit
CN104657304B (en) Electronic control unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141205

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160202

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160325

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160905

R151 Written notification of patent or utility model registration

Ref document number: 6011162

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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