JP2024014427A - electronic control unit - Google Patents
electronic control unit Download PDFInfo
- Publication number
- JP2024014427A JP2024014427A JP2022117244A JP2022117244A JP2024014427A JP 2024014427 A JP2024014427 A JP 2024014427A JP 2022117244 A JP2022117244 A JP 2022117244A JP 2022117244 A JP2022117244 A JP 2022117244A JP 2024014427 A JP2024014427 A JP 2024014427A
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- power supply
- microcomputers
- shutdown
- electronic control
- 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.)
- Pending
Links
- 238000012545 processing Methods 0.000 claims abstract description 43
- 238000000034 method Methods 0.000 claims description 33
- 230000005856 abnormality Effects 0.000 claims description 23
- 238000010586 diagram Methods 0.000 abstract description 2
- 239000004065 semiconductor Substances 0.000 description 15
- 230000015654 memory Effects 0.000 description 13
- 238000012805 post-processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 239000000470 constituent Substances 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Images
Abstract
【課題】電子制御装置において、電源オフ要求が発生した際、第1マイコンが、他の第2マイコンからの通知を受けることなく第2マイコンの動作停止を検知し、当該装置への電力供給を停止できるようにする。【解決手段】複数のマイコン20,40と電力供給部60とを備え、複数のマイコンは、それぞれ、シャットダウン指令が発生すると実行中の処理動作を停止するシャットダウン直前処理を実施する。また、複数のマイコンの1つである第1マイコンは、シャットダウン直前処理を完了すると、他のマイコンである第2マイコンの消費電流が所定の閾値以下になったか否かを判断して、消費電流が前記閾値以下になると、電力供給部からの電力供給を停止させる。【選択図】図1[Problem] In an electronic control device, when a power off request occurs, a first microcomputer detects that the second microcomputer has stopped operating without receiving notification from another second microcomputer, and stops supplying power to the device. Make it possible to stop. The power supply device includes a plurality of microcomputers 20, 40 and a power supply unit 60, and each of the plurality of microcomputers performs immediately-before-shutdown processing in which processing operations that are being executed are stopped when a shutdown command is issued. In addition, when the first microcomputer, which is one of the plurality of microcomputers, completes the processing immediately before shutdown, the first microcomputer, which is one of the plurality of microcomputers, determines whether the current consumption of the second microcomputer, which is another microcomputer, has become less than a predetermined threshold, and When becomes less than the threshold value, the power supply from the power supply section is stopped. [Selection diagram] Figure 1
Description
本開示は、複数のマイコンを備えた電子制御装置に関する。 The present disclosure relates to an electronic control device including a plurality of microcomputers.
特許文献1に記載のように、メインマイコンとサブマイコンとを備え、電源オフ要求が発生すると、各マイコンが自身のデータを不揮発性メモリに書き込むシャットダウン処理を実施するよう構成された電子制御装置が知られている。 As described in Patent Document 1, an electronic control device includes a main microcomputer and a sub-microcomputer, and is configured to perform a shutdown process in which each microcomputer writes its own data to a nonvolatile memory when a power-off request occurs. Are known.
この電子制御装置においては、サブマイコンがシャットダウン処理を完了すると、その旨をメインマイコンに通知し、メインマイコンは、自身のシャットダウン処理を完了し、且つ、上記通知を受けると、電源回路から各マイコンへの電力供給を停止させる。 In this electronic control device, when the sub microcomputer completes the shutdown processing, it notifies the main microcomputer to that effect, and when the main microcomputer completes its own shutdown processing and receives the above notification, the power supply circuit sends a notification to each microcomputer. Stop power supply to.
上記電子制御装置によれば、メインマイコンは、メインマイコンとサブマイコンがシャットダウン処理を完了してから、電源回路からの電力供給を停止させる。このため、各マイコンは、電源回路からの電力供給が停止される前に、保存すべきデータを不揮発性メモリに書き込むことができる。 According to the electronic control device, the main microcomputer stops the power supply from the power supply circuit after the main microcomputer and the sub-microcomputer complete the shutdown process. Therefore, each microcomputer can write data to be saved into the nonvolatile memory before the power supply from the power supply circuit is stopped.
ところで、上記電子制御装置では、メインマイコンは、サブマイコンからシャットダウン処理完了時に送信される通知信号によって、サブマイコンの動作終了を検知する。このため、サブマイコンのシャットダウン処理が何かしらの要因で延長されて、サブマイコンから通知信号が送信されない場合に、メインマイコンが、サブマイコンとの通信不良が発生したと判断して、電源回路からの電力供給を停止させてしまうことがある。 By the way, in the above-mentioned electronic control device, the main microcomputer detects the end of the operation of the sub-microcomputer based on a notification signal transmitted from the sub-microcomputer when the shutdown processing is completed. Therefore, if the sub-microcomputer's shutdown process is extended for some reason and the sub-microcomputer does not send a notification signal, the main microcomputer determines that a communication failure has occurred with the sub-microcomputer and shuts down the power supply from the power supply circuit. The power supply may be stopped.
本開示の一局面は、複数のマイコンを備えた電子制御装置において、電源オフ要求が発生した際、第1マイコンが、他の第2マイコンからの通知を受けることなく第2マイコンの動作停止を検知し、当該装置への電力供給を停止できるようにすることを目的とする。 One aspect of the present disclosure is that in an electronic control device including a plurality of microcomputers, when a power off request occurs, a first microcomputer stops the operation of a second microcomputer without receiving a notification from another second microcomputer. The purpose is to detect and stop power supply to the device.
本開示の一局面の電子制御装置は、複数のマイコン(20,40)と、複数のマイコンに電力供給を行うように構成された電力供給部(60)とを備える。そして、複数のマイコンは、それぞれ、各マイコンの動作を停止させるシャットダウン指令が発生すると、実行中の処理動作を停止するシャットダウン直前処理(S150,S250)を実施する。 An electronic control device according to one aspect of the present disclosure includes a plurality of microcomputers (20, 40) and a power supply section (60) configured to supply power to the plurality of microcomputers. When a shutdown command for stopping the operation of each microcomputer is generated, each of the plurality of microcomputers executes a pre-shutdown process (S150, S250) for stopping the processing operation being executed.
また、複数のマイコンの1つである第1マイコン(20)は、シャットダウン直前処理を完了すると、複数のマイコンのうち、第1マイコンとは異なる他のマイコンである第2マイコン(40)の消費電流が所定の閾値以下であるか否かを判断する(S160)。そして、第1マイコンは、第2マイコンの消費電流が閾値以下である場合に、電力供給部からの電力供給を停止させる。 In addition, when the first microcomputer (20), which is one of the plurality of microcomputers, completes the processing immediately before shutdown, the second microcomputer (40), which is another microcomputer different from the first microcomputer among the plurality of microcomputers, consumes It is determined whether the current is below a predetermined threshold (S160). Then, the first microcomputer stops the power supply from the power supply unit when the current consumption of the second microcomputer is less than or equal to the threshold value.
つまり、第1マイコンは、第2マイコンの消費電流が閾値以下まで低下すると、第2マイコンがシャットダウン直前処理を完了したと判断し、第1マイコンと第2マイコンのシャットダウン直前処理が完了しているときに電力供給部からの電力供給を停止させる。 In other words, when the current consumption of the second microcomputer falls below the threshold, the first microcomputer determines that the second microcomputer has completed the processing immediately before shutdown, and the processing immediately before shutdown of the first microcomputer and the second microcomputer is completed. Sometimes the power supply from the power supply unit is stopped.
このため、本開示の電子制御装置によれば、第2マイコンのシャットダウン直前処理が何かしらの要因で延長された場合に、第1マイコンが、第2マイコンのシャットダウン直前処理が完了しない状態で電力供給を停止させるのを、抑制することができる。 Therefore, according to the electronic control device of the present disclosure, if the immediately-before-shutdown process of the second microcomputer is extended for some reason, the first microcomputer does not supply power before the immediately-before-shutdown process of the second microcomputer is not completed. can be suppressed from stopping.
以下、図面を参照しながら、本開示の実施形態を説明する。
[構成]
本実施形態の電子制御装置(以下、ECU)10は、例えば、車両に搭載されて、車両の動力源となるエンジンやモータなどを制御するのに用いられる。
Embodiments of the present disclosure will be described below with reference to the drawings.
[composition]
An electronic control unit (hereinafter referred to as ECU) 10 of this embodiment is, for example, mounted on a vehicle and used to control an engine, a motor, etc. that serve as a power source of the vehicle.
このため、ECU10には、図1に示すように、車両のパワースイッチであるイグニッションスイッチ(以下、IGSW)2、及び、IGSW2がオン状態になると、車載バッテリからECU10への電力供給経路を導通させるメインリレー4が接続されている。
For this reason, as shown in FIG. 1, the
メインリレー4は、スイッチの接点とコイルとを備えた周知のものであり、コイルに通電されると、スイッチの接点が閉じて、車載バッテリからECU10への電力供給経路を導通させる。
The main relay 4 is a well-known device that includes a switch contact and a coil, and when the coil is energized, the switch contact closes and connects the power supply path from the vehicle battery to the
ECU10には、制御対象となるエンジンなどの制御を行うメインマイコン20と、メインマイコン20による制御を補助するサブマイコン40と、メインマイコン20及びサブマイコン40に電力供給を行う統合IC60と、が備えられている。
The ECU 10 includes a
なお、メインマイコン20及びサブマイコン40は、制御用の各種演算処理を行う中央処理演算部(すなわち、CPU)を含む、マイクロコンピュータ若しくはマイクロコントローラである。
The
統合IC60は、IGSW2がオフ状態で、各マイコン20,40への電力供給を停止しているときに、IGSW2がオン状態に切り換えられると、例えば、メインリレー4のコイルの一端をグラウンドに接続することで、コイルに通電する。この結果、メインリレー4のスイッチの接点が閉じて、統合IC60に車載バッテリからバッテリ電圧VBが供給される。
The integrated IC 60 connects one end of the coil of the main relay 4 to ground, for example, when the IGSW 2 is turned on while the IGSW 2 is turned off and power supply to each
統合IC60は、メインリレー4を介して車載バッテリから供給されるバッテリ電圧VBにて、各マイコン20,40の内部回路を駆動するための3種類の電源電源VC1,VC2,VC3を生成し、各マイコン20,40に供給する。
The integrated
つまり、統合IC60は、生成した電源電源VC1,VC2,VC3を、メインマイコン20及びサブマイコン40を構成する複数の機能回路に供給することで、メインマイコン20及びサブマイコン40に電力供給を行う。なお、統合IC60は、本開示の電力供給部の一例である。
That is, the integrated
また、メインマイコン20及びサブマイコン40は、複数の機能回路として、それぞれ、CPU22,42と、ROM,RAMなどの半導体メモリ24,44と、入出力インタフェイスとしての入出力部26,46と、を備える。
Moreover, the
そして、統合IC60にて生成された電源電圧VC1,VC2,VC3は、それぞれ、メインマイコン20及びサブマイコン40のCPU22,42、半導体メモリ24,44、及び、入出力部26,46に供給される。
The power supply voltages VC1, VC2, and VC3 generated by the integrated
具体的には、統合IC60の電源電圧VC1の出力端子61は、第1給電経路L1を介して、メインマイコン20及びサブマイコン40の第1電源端子31,51に接続されており、電源電圧VC1は、各マイコン20,40のCPU22,42に供給される。
Specifically, the
また、統合IC60の電源電圧VC2の出力端子62は、第2給電経路L2を介して、メインマイコン20及びサブマイコン40の第2電源端子32,52に接続されており、電源電圧VC2は、各マイコン20,40の半導体メモリ24,44に供給される。
Further, the
また、統合IC60の電源電圧VC3の出力端子63は、第3給電経路L3を介して、メインマイコン20及びサブマイコン40の第3電源端子33,53に接続されており、電源電圧VC3は、各マイコン20,40の入出力部26,46に供給される。
Further, the
次に、メインマイコン20には、サブマイコン40の消費電流を監視する消費電流モニタ部28が備えられている。この消費電流モニタ部28は、統合IC60からサブマイコン40への第1~第3給電経路L1,L2,L3に設けられた電流センサを介して、サブマイコン40のCPU42,半導体メモリ44及び入出力部46に流れる電流isb1,isb2,isb3をそれぞれ検出する。
Next, the
なお、消費電流モニタ部28にて検出された電流isb1,isb2,isb3は、サブマイコン40のCPU42,半導体メモリ44,及び、入出力部46の消費電流として、入出力部26を介して、メインマイコン20のCPU22に入力される。そして、CPU22は、その入力された消費電流に基づき、サブマイコン40の動作停止を判断する。
Note that the currents isb1, isb2, and isb3 detected by the current
統合IC60は、IGSW2がオン状態になると、メインリレー4をオン状態に切り替えて、上記各電源電圧VC1,VC2,VC3の生成を開始する。したがって、IGSW2がオン状態に切り換えられると、メインマイコン20及びサブマイコン40の上記各機能回路に電源電圧VC1,VC2,VC3が供給されて、各マイコン20、40が動作可能となる。
When the IGSW2 is turned on, the integrated
また、このとき、統合IC60は、メインマイコン20にリセット信号(以下、RST信号)を出力することで、メインマイコン20を起動(すなわち、パワーオンリセット)させる。また、メインマイコン20は、統合IC60からのRST信号を受けて起動すると、サブマイコン40にRST信号を出力することで、サブマイコン40を起動(すなわち、パワーオンリセット)させる。
Also, at this time, the integrated
このため、IGSW2がオン状態に切り換えられると、メインマイコン20及びサブマイコン40が順に起動し、各マイコン20,40内のCPU22,42が、半導体メモリ24,44のROMに記憶されたプログラムに従い、図2に示す制御処理を開始する。
Therefore, when the IGSW 2 is turned on, the
メインマイコン20及びサブマイコン40は、起動後、CPU22,42が制御処理を正常に実行しているときには、一定周期で監視用のウォッチドッグ信号(以下、WDC信号)を発生する。
After the
そして、メインマイコン20が発生したWDC信号は、統合IC60に入力され、サブマイコン40が発生したWDC信号は、メインマイコン20に入力される。このため、統合IC60は、メインマイコン20からのWDC信号により、メインマイコン20の動作を監視することができ、メインマイコン20は、サブマイコン40からのWDC信号により、サブマイコン40の動作を監視することができる。
The WDC signal generated by the
[処理]
次に、メインマイコン20及びサブマイコン40のCPU22,42にて実行される制御処理について説明する。図2において、向かって左側のフローチャートは、メインマイコン20のCPU22にて実行される制御処理を表し、向かって右側のフローチャートは、サブマイコン40のCPU42にて実行される制御処理を表す。
[process]
Next, control processing executed by the
図2に示すように、メインマイコン20及びサブマイコン40が起動し、CPU22,42が制御処理を開始すると、CPU22,42は、まずS110,S210にて、通常処理を実行する。
As shown in FIG. 2, when the
通常処理では、CPU22,42は、それぞれ、制御対象や周辺機器の状態を検出する各種センサから、入出力部26,46を介して各種検出信号を取得し、取得した検出信号に基づき、制御対象を所望状態に制御するのに必要な各種制御量を算出する。また、CPU22,42は、算出した制御量に応じた制御信号を、入出力部26,46を介して、制御対象や周辺機器に出力することで、制御対象を所望状態に制御する。
In normal processing, the
次に、通常処理の実行中に、CPU22,42は、S120,S220にて、IGSW2がオフ状態に切り換えられたか否かを判断し、IGSW2がオフ状態に切り換えられていなければ、S110,S210に移行することで、通常処理を継続する。
Next, during execution of normal processing, the
一方、IGSWがオフ状態に切り換えられている場合、S120,S220では、電源オフ要求が入力されたと判断して、それぞれ、S130,S230に移行し、制御対象の制御を安全に停止させるためのIGオフ後処理を実行する。 On the other hand, if the IGSW has been switched to the off state, it is determined in S120 and S220 that a power off request has been input, and the process moves to S130 and S230, respectively, to switch the IGSW to safely stop the control of the controlled object. Execute off-post processing.
なお、CPU22,42は、通常処理及びIGオフ後処理の実行中、マイコン間通信によって、制御に必要なデータを送受信する。したがって、CPU22,42は、図3に示すように、時点t1にてIGスイッチがオフ状態になると、互いに同期して、通常処理を終了し、IGオフ後処理を開始することになる。
Note that the
また、メインマイコン20側のCPU22は、S130のIGオフ後処理実行中に、各マイコン20,40の動作を停止させるシャットダウン条件が成立したか否かを判断して、シャットダウン条件が成立すると、シャットダウン指令を発生する。
Further, the
このシャットダウン指令は、メインマイコン20及びサブマイコン40の動作を停止させて、シャットダウンさせる指令である。そして、メインマイコン20は、例えば、起動時にオン状態にセットされるメインリレー制御フラグをオフ状態に切り換えることで、シャットダウン指令を発生する。
This shutdown command is a command to stop the operation of the
また、このようにオフ状態に切り換えられたメインリレー制御フラグは、マイコン間通信によってサブマイコン40のCPU42にも送信される。そして、サブマイコン40側のCPU42は、メインリレー制御フラグを受信することで、メインマイコン20からのシャットダウン指令を検知する。
The main relay control flag thus switched to the off state is also transmitted to the
このため、S130,S230のIGオフ後処理実行中に、CPU22,42は、それぞれ、S140,S240にて、メインリレー制御フラグに基づきシャットダウン指令が発生したか否かを判断する。そして、シャットダウン指令が発生していなければ、S130,S230に移行することで、IGオフ後処理を継続する。
Therefore, during execution of the IG-off post-processing in S130 and S230, the
また、S140,S240にて、シャットダウン指令が発生したと判断されると、CPU22,42は、例えば、図3に示す時点t2で、それぞれ、S150,S250に移行し、シャットダウン直前処理を開始する。
Further, when it is determined in S140 and S240 that a shutdown command has been issued, the
このシャットダウン直前処理は、例えば、制御に用いた各種データを半導体メモリ24,44の不揮発性メモリにバックアップしたり、シャットダウンタイミングを記憶したりするための最終処理であり、予め設定されたディレイ時間を含む。 This processing immediately before shutdown is, for example, the final processing for backing up various data used for control to the nonvolatile memory of the semiconductor memories 24, 44, and storing the shutdown timing, and is performed for a preset delay time. include.
そして、サブマイコン40のCPU42は、S250にてシャットダウン直前処理を完了すると、制御処理を終了して、自身の動作を停止(すなわち、シャットダウン)する。
一方、メインマイコン20のCPU22は、S150にてシャットダウン直前処理を完了すると、S160に移行する。そして、S160では、消費電流モニタ部28にて監視されているサブマイコン40の消費電流isb1,isb2,isb3が、それぞれ、予め設定された動作停止判定用の閾値ith1,ith2,ith3以下になったか否かを判断する。
Then, when the
On the other hand, after the
S160の処理は、サブマイコン40の消費電流isb1,isb2,isb3が全て閾値ith1,ith2,ith3以下になるのを待機する処理である。このため、サブマイコン40の消費電流isb1,isb2,isb3の少なくとも一つが、閾値ith1,ith2又はith3以下になっていなれば、再度S160に移行する。 The process of S160 is a process of waiting until the current consumption isb1, isb2, isb3 of the sub-microcomputer 40 all become equal to or less than the threshold values ith1, ith2, ith3. Therefore, if at least one of the current consumption isb1, isb2, and isb3 of the sub-microcomputer 40 is no more than the threshold value ith1, ith2, or ith3, the process returns to S160.
また、S160にて、消費電流isb1,isb2,isb3は、全て、閾値ith1,ith2,ith3以下であると判断されると、メインマイコン20のCPU22は、サブマイコン40は動作を停止していると判断して、自身の動作を停止(すなわち、シャットダウン)する。
Further, if it is determined in S160 that the current consumption isb1, isb2, isb3 are all below the threshold values ith1, ith2, ith3, the
つまり、メインマイコン20は、サブマイコン40を構成する各機能回路の消費電流isb1,isb2,isb3が、全て閾値ith1,ith2,ith3以下である場合に、サブマイコン40が動作を停止したと判断して、自身の動作を停止する。
In other words, the
また、このようにメインマイコン20が動作を停止すると、メインマイコン20から統合IC60にWDC信号が出力されなくなる。このため、統合IC60は、メインマイコン20からWDC信号が出力されなくなることにより、メインマイコン20の動作停止を検知し、メインリレー4のコイルへの通電を停止する。
Further, when the
この結果、車載バッテリから統合IC60へのバッテリ電圧VBの供給経路が遮断されて、統合IC60は、電源電圧VC1,VC2,VC3の生成を停止することになり、ECU10は完全に動作を停止することになる。
As a result, the supply path of the battery voltage VB from the vehicle battery to the integrated
[効果]
本実施形態のECU10において、メインマイコン20のCPU22は、図3に示すように、時点t2で開始したシャットダウン直前処理が完了しても、サブマイコン40がシャットダウンしたことを確認できる時点t3までは、シャットダウン直前処理を継続する。
[effect]
In the
そして、メインマイコン20のCPU22は、サブマイコン40がシャットダウンしたことを確認すると、自身の処理動作を停止して、WDC信号の出力を停止する。この結果、統合IC60は、メインマイコン20からWDC信号の出力が停止された後の時点t4にて、各マイコン20,40への電力供給を停止することになる。
When the
したがって、本実施形態のECU10によれば、サブマイコン40が動作しているときに、統合IC60が各マイコン20,40への電力供給を停止するのを抑制することができる。
Therefore, according to the
また、メインマイコン20のCPU22は、サブマイコン40のCPU42,半導体メモリ44,入出力部46等の各機能回路に流れる消費電流が全て閾値以下になった時点t3でサブマイコン40の動作停止を検知し、統合IC60からの電力供給を停止させる。したがって、サブマイコン40のシャットダウン直前処理が意図せず延長した場合に、サブマイコン40のシャットダウン直前処理が完了しないまま、メインマイコン20がシャットダウンし、統合IC60からの電力供給が停止されるのを抑制できる。
Further, the
また、メインマイコン20のCPU22は、サブマイコン40の動作停止を、サブマイコン40から動作停止を表す通信信号を受けることなく、検出することができる。したがって、例えば、メインマイコン20側で、サブマイコン40からの通知信号によってサブマイコン40の動作停止を検知できないときに、サブマイコン40との通信経路が故障したとして、統合IC60からの電力供給が停止されることも抑制できる。
Further, the
[変形例]
上記実施形態では、メインマイコン20側のCPU22は、自身のシャットダウン直前処理を完了すると、サブマイコン40の各機能回路の消費電流が閾値以下であるか否かを判断し、消費電流が閾値以下であるとき処理動作を停止する。
[Modified example]
In the above embodiment, when the
このため、例えば、何らかの異常によってサブマイコン40側でのシャットダウン直前処理が想定以上に延長されて、各機能回路の消費電流が閾値以下にならない場合には、メインマイコン20側でサブマイコン40の動作停止を判断することができなくなる。
Therefore, for example, if the pre-shutdown processing on the sub-microcomputer 40 side is extended longer than expected due to some abnormality and the current consumption of each functional circuit does not fall below the threshold, the
そこで、メインマイコン20の制御処理においては、図4に示すように、更に、S170,S180の処理を実行するようにしてもよい。
すなわち、図4に示す制御処理においては、S160にてサブマイコン40の消費電流が閾値以下ではないと判断されたときには、S170に移行し、S160の処理を開始してからの経過時間を計測する。
Therefore, in the control process of the
That is, in the control process shown in FIG. 4, when it is determined in S160 that the current consumption of the sub-microcomputer 40 is not below the threshold value, the process moves to S170, and the elapsed time from the start of the process in S160 is measured. .
また、S170では、その経過時間が、予め設定された異常判定時間を越えたか否かを判断する。そして、S170にて、S160の処理を開始してからの経過時間は、異常判定時間を越えていないと判断された場合には、再度S160の処理を実行することで、図5に示す時点t11まで、サブマイコン40がシャットダウンするのを待機する。 Further, in S170, it is determined whether the elapsed time exceeds a preset abnormality determination time. If it is determined in S170 that the elapsed time since the start of the process in S160 has not exceeded the abnormality determination time, the process in S160 is executed again to meet the time t11 shown in FIG. Wait until the sub-microcomputer 40 shuts down.
一方、S170にて、S160の処理を開始してからの経過時間は、異常判定時間を越えたと判断された場合、つまり、サブマイコン40のシャットダウン待機時間が経過すると、S180に移行する。 On the other hand, if it is determined in S170 that the elapsed time since the start of the process in S160 has exceeded the abnormality determination time, that is, if the shutdown standby time of the sub-microcomputer 40 has elapsed, the process moves to S180.
そして、S180では、サブマイコン40には、シャットダウンできない何らかの異常(以下、シャットダウン異常)が発生していることを検出し、制御処理を終了する。この結果、メインマイコン20は、制御処理を終了することに伴い、図5に示す時点t11にて、自身の動作を停止(すなわち、シャットダウン)する。
Then, in S180, it is detected that some kind of abnormality that cannot be shut down (hereinafter referred to as a shutdown abnormality) has occurred in the sub-microcomputer 40, and the control process is ended. As a result, the
また、このようにメインマイコン20が動作を停止すると、図5に示す時点t12にて、統合IC60がメインリレー4をオフさせ、メインマイコン20及びサブマイコン40への電力供給を停止する。このため、各マイコン20,40の電源状態はオフ状態となる。すると、サブマイコン40は、電源電圧が低下することにより、図5に示す時点t13にて動作を停止(すなわち、シャットダウン)する。
Further, when the
このように、本変形例のECU10においては、サブマイコン40が何らかの異常によってシャットダウンすることができない場合に、メインマイコン20側で、シャットダウン直前処理終了後の経過時間から、サブマイコン40のシャットダウン異常を検出する。
As described above, in the
そして、シャットダウン異常を検出すると、メインマイコン20は、制御処理を終了することから、統合IC60は、メインリレー4をオフさせて、メインマイコン20及びサブマイコン40への電力供給を停止する。
When a shutdown abnormality is detected, the
よって、サブマイコン40にシャットダウン異常が発生した際に、統合IC60から各マイコン20,40への電力供給を停止させること(すなわち、ECU10の動作を停止させること)ができなくなるのを抑制できる。
Therefore, when a shutdown abnormality occurs in the sub-microcomputer 40, it is possible to prevent the integrated
また次に、メインマイコン20は、S180にて、サブマイコン40のシャットダウン異常を検出した際には、そのときのサブマイコン40の各機能回路の消費電流から、消費電流が閾値以下にならなかった機能回路を特定する。そして、その特定した機能回路を、サブマイコン40のシャットダウン異常の原因となった機能回路として、半導体メモリ24の不揮発性メモリに記憶する。
Next, when the
このため、使用者は、メインマイコン20がシャットダウン異常検出時に半導体メモリ24の不揮発性メモリに記憶した機能回路に基づき、シャットダウン異常の発生原因を特定して、シャットダウン異常回避のための対策を施すことができるようになる。
Therefore, the user must identify the cause of the shutdown abnormality based on the functional circuit stored in the nonvolatile memory of the semiconductor memory 24 when the
なお、S180にて、シャットダウン異常を検出した場合には、その旨を報知したり、その発生時刻を半導体メモリ24の不揮発性メモリに記憶したりするようにしてもよい。また、S180では、サブマイコン40のシャットダウン異常を検出した際には、サブマイコン40の各機能回路の消費電流を半導体メモリ24の不揮発性メモリに記憶するようにしてもよい。 Note that if a shutdown abnormality is detected in S180, a notification to that effect may be provided, or the time of occurrence may be stored in the nonvolatile memory of the semiconductor memory 24. Further, in S180, when a shutdown abnormality of the sub-microcomputer 40 is detected, the current consumption of each functional circuit of the sub-microcomputer 40 may be stored in the nonvolatile memory of the semiconductor memory 24.
また、S180にて、シャットダウン異常の原因となった機能回路を特定した際には、その機能回路の種類に応じて、サブマイコン40に対し所定のフェイルセーフ処理を実行させることで、サブマイコン40をより安全にシャットダウンさせるようにしてもよい。 Further, when the functional circuit that caused the shutdown abnormality is identified in S180, the sub-microcomputer 40 is caused to execute a predetermined fail-safe process depending on the type of the functional circuit. may be shut down more safely.
以上、本開示の実施形態及び変形例について説明したが、本開示は上述の実施形態及び変形例に限定されることなく、種々変形して実施することができる。
例えば、上記実施形態では、ECU10は、車両の動力源となるエンジンやモータを制御するものであると説明したが、本開示の技術は、制御対象を複数のマイコンを使って制御する電子制御装置であれば、上記実施形態と同様に適用することができる。
Although the embodiments and modified examples of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments and modified examples, and can be implemented with various modifications.
For example, in the above embodiment, it was explained that the
また、上記実施形態では、メインマイコン20及びサブマイコン40を構成する機能回路は、CPU22,42、半導体メモリ24,44、入出力部26,46、であるものとして説明したが、この機能回路は一例であり、適宜構成すればよい。例えば、各マイコン20,40には、機能回路として、更に、A/D変換部やD/A変換部、駆動回路などの機能回路が備えられていてもよい。
Furthermore, in the above embodiment, the functional circuits that constitute the
また、上記実施形態では、メインマイコン20は、サブマイコン40の動作停止を検出すると、自身の動作を停止することで、統合IC60へのWDC信号の出力を停止して、統合IC60にメインリレー4をオフさせるものとして説明した。しかし、メインマイコン20は、サブマイコン40の動作停止を検出すると、メインリレー4を直接オフ状態に切り換えることで、ECU10の動作を停止させるように構成されてもよい。
In the above embodiment, when the
また、上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしてもよい。また、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。 Further, a plurality of functions of one component in the embodiment described above may be realized by a plurality of components, or one function of one component may be realized by a plurality of components. Further, a plurality of functions possessed by a plurality of constituent elements may be realized by one constituent element, or one function realized by a plurality of constituent elements may be realized by one constituent element. Further, a part of the configuration of the above embodiment may be omitted. Further, at least a part of the configuration of the above embodiment may be added to or replaced with the configuration of other embodiments.
また、本開示は、上述した電子制御装置の他、電子制御装置を構成要素とするシステム、電子制御装置としてコンピュータを機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実態的記録媒体、複数のマイコンによる制御方法など、種々の形態で本開示を実現することもできる。 In addition to the above-mentioned electronic control device, the present disclosure also relates to a system including the electronic control device as a component, a program for causing a computer to function as an electronic control device, and a non-transitional actual system such as a semiconductor memory in which this program is recorded. The present disclosure can also be implemented in various forms, such as a recording medium and a control method using multiple microcomputers.
10…ECU、20…メインマイコン、40…サブマイコン、22,42…CPU、24,44…半導体メモリ、26,46…入出力部、60…統合IC。 10... ECU, 20... Main microcomputer, 40... Sub microcomputer, 22, 42... CPU, 24, 44... Semiconductor memory, 26, 46... Input/output section, 60... Integrated IC.
Claims (4)
前記複数のマイコンに電力供給を行うように構成された電力供給部(60)と、
を備えた電子制御装置であって、
前記複数のマイコンは、それぞれ、各マイコンの動作を停止させるシャットダウン指令が発生すると、実行中の処理動作を停止するシャットダウン直前処理(S150,S250)を実施するよう構成され、
更に、前記複数のマイコンの1つである第1マイコン(20)は、前記シャットダウン直前処理を完了すると、前記複数のマイコンのうち、当該第1マイコンとは異なる他のマイコンである第2マイコン(40)の消費電流が所定の閾値以下になったか否かを判断し(S160)、前記消費電流が前記閾値以下になると前記電力供給部からの電力供給を停止させる、ように構成されている、電子制御装置。 multiple microcomputers (20, 40),
a power supply unit (60) configured to supply power to the plurality of microcomputers;
An electronic control device comprising:
Each of the plurality of microcomputers is configured to perform immediately-before-shutdown processing (S150, S250) to stop the processing operation being executed when a shutdown command to stop the operation of each microcomputer is generated;
Further, when the first microcomputer (20), which is one of the plurality of microcomputers, completes the immediately-before-shutdown processing, the first microcomputer (20), which is one of the plurality of microcomputers, executes the second microcomputer (20), which is another microcomputer different from the first microcomputer among the plurality of microcomputers. 40) is configured to determine whether or not the current consumption has become below a predetermined threshold (S160), and to stop the power supply from the power supply unit when the current consumption becomes below the threshold; Electronic control unit.
前記第1マイコンは、前記第2マイコンが前記シャットダウン直前処理を開始してから、前記消費電流が前記閾値以下に低下するまでの経過時間を計測して、該経過時間が所定の異常判定時間を越えたか否かを判断し(S170)、前記経過時間が前記異常判定時間を越えると、前記第2マイコンのシャットダウン異常を検出して(S180)、前記電力供給部からの電力供給を停止させる、ように構成されているように構成されている電子制御装置。 The electronic control device according to claim 1,
The first microcomputer measures the elapsed time from when the second microcomputer starts the immediately-before-shutdown processing until the current consumption falls below the threshold, and determines that the elapsed time is a predetermined abnormality determination time. determining whether the elapsed time exceeds the abnormality determination time (S170), detecting a shutdown abnormality of the second microcomputer (S180), and stopping the power supply from the power supply unit; An electronic control unit configured to:
前記電力供給部は、前記第2マイコンを構成する複数の機能回路(42,44,46)に対し、それぞれ、異なる電力供給経路を介して電力供給を行うように構成され、
前記第1マイコンは、前記電力供給部から前記異なる電力供給経路を介して前記第2マイコンの複数の機能回路に供給される電流をそれぞれ検出し、該電流が前記閾値以下になるまでの前記経過時間が前記異常判定時間を越えた機能回路を、前記シャットダウン異常の原因となった機能回路として特定する、ように構成されている電子制御装置。 The electronic control device according to claim 2,
The power supply unit is configured to supply power to the plurality of functional circuits (42, 44, 46) constituting the second microcomputer through different power supply paths, respectively,
The first microcomputer detects each current supplied from the power supply section to the plurality of functional circuits of the second microcomputer via the different power supply paths, and detects the progress until the current becomes equal to or less than the threshold value. An electronic control device configured to identify a functional circuit whose time exceeds the abnormality determination time as the functional circuit that caused the shutdown abnormality.
前記電子制御装置は、車両に搭載され、
前記電力供給部は、前記車両のパワースイッチ(2)がオフ状態からオン状態に切り換えられると、前記複数のマイコンへの電力供給を開始して、前記複数のマイコンを起動するように構成され、
前記複数のマイコンは、前記電力供給部からの電力供給により起動すると、予め設定された通常処理(S110,S220)を実行し、該通常処理の実行中に前記パワースイッチがオフ状態に切り換えられると、前記通常処理を終了させるオフ後処理(S130,S140)を実行するように構成され、
更に、前記第1マイコンは、前記オフ後処理の実行中に前記シャットダウン指令を発生して、前記第2マイコンに送信することで、前記第1マイコン及び前記第2マイコンに対し、前記シャットダウン直前処理を実施させる、ように構成されている電子制御装置。 The electronic control device according to any one of claims 1 to 3,
The electronic control device is mounted on a vehicle,
The power supply unit is configured to start supplying power to the plurality of microcomputers to activate the plurality of microcomputers when the power switch (2) of the vehicle is switched from an off state to an on state,
When the plurality of microcomputers are activated by power supply from the power supply unit, they execute preset normal processing (S110, S220), and when the power switch is turned off during execution of the normal processing, , configured to execute post-off processing (S130, S140) that ends the normal processing,
Furthermore, the first microcomputer generates the shutdown command during execution of the post-off process and sends it to the second microcomputer, thereby instructing the first microcomputer and the second microcomputer to perform the immediately-before-shutdown process. An electronic control device configured to carry out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022117244A JP2024014427A (en) | 2022-07-22 | 2022-07-22 | electronic control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022117244A JP2024014427A (en) | 2022-07-22 | 2022-07-22 | electronic control unit |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2024014427A true JP2024014427A (en) | 2024-02-01 |
Family
ID=89719073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022117244A Pending JP2024014427A (en) | 2022-07-22 | 2022-07-22 | electronic control unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2024014427A (en) |
-
2022
- 2022-07-22 JP JP2022117244A patent/JP2024014427A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4345708B2 (en) | Electronic control device for vehicle | |
JP5739290B2 (en) | Electronic control unit | |
CN105373455B (en) | Processor system, engine control system and control method | |
JP4940681B2 (en) | Electronic control device | |
JP2008289254A (en) | Power supply device | |
JP6011162B2 (en) | Electronic control unit | |
WO2016203505A1 (en) | Semiconductor device and diagnostic test method | |
JP2017033236A (en) | Vehicle controller | |
JP2009202822A (en) | Control device | |
US11342772B2 (en) | Precharge controller | |
JP6408843B2 (en) | Vehicle power supply device | |
JP2010244311A (en) | In-vehicle electronic controller | |
JP2024014427A (en) | electronic control unit | |
JP5465799B2 (en) | Control device | |
JP2014146131A (en) | Information processing apparatus, monitoring device, and control device | |
JPH01298446A (en) | Double microcomputer system runaway preventing circuit | |
JP2007041824A (en) | Resetting circuit for electronic control unit | |
US11784593B2 (en) | Power supply controller | |
US20030140261A1 (en) | Control apparatus | |
JP2007162586A (en) | On-vehicle control device | |
JP7143797B2 (en) | Power control device for in-vehicle camera module | |
JP2020050319A (en) | Power supply monitoring device, power supply control system and power supply monitoring method | |
JP2022123552A (en) | Data processing system, method | |
JP5918720B2 (en) | Control apparatus and control method | |
JP3711849B2 (en) | Microcomputer |