JP2012020710A - Vehicle ecu - Google Patents

Vehicle ecu Download PDF

Info

Publication number
JP2012020710A
JP2012020710A JP2010161900A JP2010161900A JP2012020710A JP 2012020710 A JP2012020710 A JP 2012020710A JP 2010161900 A JP2010161900 A JP 2010161900A JP 2010161900 A JP2010161900 A JP 2010161900A JP 2012020710 A JP2012020710 A JP 2012020710A
Authority
JP
Japan
Prior art keywords
microcomputer
mode
input information
external input
change
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
JP2010161900A
Other languages
Japanese (ja)
Other versions
JP5640518B2 (en
Inventor
Akiyo Watanabe
章代 渡辺
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
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 Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2010161900A priority Critical patent/JP5640518B2/en
Publication of JP2012020710A publication Critical patent/JP2012020710A/en
Application granted granted Critical
Publication of JP5640518B2 publication Critical patent/JP5640518B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a vehicle electronic control unit (ECU) for minimizing electric power consumption when the operation of an internal microcomputer is not required.SOLUTION: A power source IC4 switches from a normal operation mode to a microcomputer off mode when "L" is given to an input part VC and the microcomputer 1 directs the microcomputer off mode and thereby, an operation power V4 supplied from a power source output part VO1 to the microcomputer 1 is stopped and the power is supplied to a power input part VCC of an external change detection part 3 from the power out put part VO2. The power source IC4, in the microcomputer off mode, switches from the microcomputer off mode to the normal operation mode when an input terminal P1 of CPU 42 receives the detection signal SS receiving from the external change detection part 3 and the detection signal SS directs the starting factor change to be the starting factor of the microcomputer 1.

Description

この発明は、車両に搭載される車載用ECU(Electronic Control Unit)に関する。   The present invention relates to an in-vehicle ECU (Electronic Control Unit) mounted on a vehicle.

従来、車両には車載用ECUと呼ばれる電子装置が複数搭載されており、各車載用ECUがCAN(Controller Area Network)などのネットワークを介して情報を交換しながら協調動作することによって、車両の走行に係る制御及び車室内などの快適性に係る制御等を実現している。また各車載用ECUは、車両のバッテリ又はオルタネータ等の電源に電力線を介して接続され、電源から供給される電力により動作している。近年では、車両に搭載される車載用ECUの数が増大しているため省電力化が求められている。   2. Description of the Related Art Conventionally, a vehicle has a plurality of electronic devices called vehicle-mounted ECUs. Each vehicle-mounted ECU exchanges information via a network such as a CAN (Controller Area Network) so that the vehicle travels. And the control related to the comfort of the passenger compartment. Each on-vehicle ECU is connected to a power source such as a battery or an alternator of the vehicle via a power line and is operated by power supplied from the power source. In recent years, since the number of in-vehicle ECUs mounted on a vehicle is increasing, power saving is required.

そして、車両の高機能化に伴い、車載用ECUに高機能なマイクロコンピュータ(以下、「マイコン」と略記する。)が多数搭載されるようになった。これらマイコンを駆動させるため消費電力や暗電流が増加し、バッテリ上がりや燃費悪化の一因となっている。そこで、マイコンのモードをHALTモード(CPUの命令実行を中断するモード)やSTOPモード(CPUおよび周辺回路の動作を停止するモード)にして、通常モード中に上述したHALTモード(STOPモード)を挿入して、マイコンによる通常モード動作を間欠動作させることが一般的に行われている。   Along with the enhancement of the functions of vehicles, a large number of high-performance microcomputers (hereinafter abbreviated as “microcomputers”) have been mounted on in-vehicle ECUs. Driving these microcomputers increases power consumption and dark current, which contributes to battery exhaustion and fuel consumption deterioration. Therefore, the microcomputer mode is changed to the HALT mode (mode for interrupting CPU instruction execution) or STOP mode (mode for stopping the operation of the CPU and peripheral circuits), and the above-described HALT mode (STOP mode) is inserted into the normal mode. The normal mode operation by the microcomputer is generally performed intermittently.

また、電力消費を低減することができる車載用ECUとして、例えば特許文献1で開示された車載機器の駆動制御装置が挙げられる。この制御装置は、車両に接近する物体を検出するための接近センサが設けられ、コントローラはスイッチを間欠的にオンして上記接近センサを間欠的に駆動させる。コントローラは、上記接近センサを間欠的に駆動させた時において上記接近センサにより車両に接近する物体を検出すると、それまで駆動を停止させていた駆動制御対象の侵入センサの駆動を開始させている。   Moreover, as a vehicle-mounted ECU that can reduce power consumption, for example, a drive control device for a vehicle-mounted device disclosed in Patent Document 1 can be cited. The control device is provided with an approach sensor for detecting an object approaching the vehicle, and the controller intermittently turns on the switch to drive the approach sensor intermittently. When the controller detects the object approaching the vehicle by the proximity sensor when the proximity sensor is intermittently driven, the controller starts driving the intrusion sensor to be driven that has been stopped until then.

特許第4149879号公報Japanese Patent No. 4149879

しかしながら、マイコンのHALTモードやSTOPモードではマイコンの主要動作は停止するが、マイコン自体には常に電源が供給されているため、HALTモードやSTOPモード期間中においても“0”でない電力が消費されることになるという問題点があった。   However, in the microcomputer HALT mode or STOP mode, the main operation of the microcomputer is stopped, but since power is always supplied to the microcomputer itself, non-zero power is consumed even during the HALT mode and the STOP mode. There was a problem that it would be.

同様なことが特許文献1で開示された上記制御装置においても当てはまる。すなわち、接近センサや浸入センサを駆動させるコントローラ(マイコンに相当)及びコントローラを制御するセキュリティECUには、常時電源が供給されており、この点において消費電力を抑制できていないという問題点があった。   The same applies to the control device disclosed in Patent Document 1. That is, the controller (equivalent to the microcomputer) that drives the proximity sensor and the intrusion sensor and the security ECU that controls the controller are always supplied with power, and there is a problem that power consumption cannot be suppressed in this respect. .

この発明は上記問題点を解決するためになされたもので、内部のマイコンの動作不要時における消費電力を最小限に抑えた車載用ECUを得ることを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to obtain an in-vehicle ECU that minimizes power consumption when the operation of an internal microcomputer is unnecessary.

この発明に係る請求項1記載の車載用ECUは、動作電源の供給時に動作状態となり、動作中において所定条件成立時に、マイコンOFFモード設定を行うマイコンと、通常モード設定時において前記マイコンに前記動作電源を供給し、前記マイコンOFFモード設定時において前記マイコンへの前記動作電源の供給を停止する電源部と、前記マイコンOFFモード設定時において、車両に関連する外部入力内容を示す外部入力情報における前記マイコンの起動要因とすべき起動要因変化を検出して検出信号を出力する外部変化検出部と、前記電源部は、前記マイコンOFFモード設定時において、前記検出信号が前記外部入力情報の前記起動要因変化を指示するとき、前記マイコンOFFモード設定から前記通常モード設定に改めることを特徴としている。   According to a first aspect of the present invention, the in-vehicle ECU is in an operating state when operating power is supplied, and when the predetermined condition is satisfied during operation, the microcomputer sets the microcomputer OFF mode, and the microcomputer operates in the normal mode when the operation is performed. A power supply unit that supplies power and stops supplying the operating power to the microcomputer when the microcomputer OFF mode is set, and the external input information that indicates external input content related to the vehicle when the microcomputer OFF mode is set An external change detection unit that detects a start factor change to be a start factor of the microcomputer and outputs a detection signal; and the power source unit is configured to detect the start factor of the external input information when the microcomputer OFF mode is set. When instructing a change, change the microcomputer OFF mode setting to the normal mode setting. It is a symptom.

請求項2記載の本願発明は、請求項1記載の車載用ECUであって、前記電源部は、外部の通信線との送受信が可能な通信部を含み、前記マイコンは前記通信部とデータの授受が可能であり、前記所定条件は、前記通信部の受信内容に関する第1の条件と、前記マイコン内部における第2の条件との組合せ条件を含み、前記通信部は前記マイコンOFFモードから前記通常動作モードに設定変更可能なモード変換機能を有する。   A second aspect of the present invention is an in-vehicle ECU according to the first aspect, wherein the power supply unit includes a communication unit capable of transmitting and receiving with an external communication line, and the microcomputer is configured to transmit data to and from the communication unit. The predetermined condition includes a combination condition of a first condition related to the received content of the communication unit and a second condition in the microcomputer, and the communication unit is configured to perform the normal operation from the microcomputer OFF mode. It has a mode conversion function that can be changed to an operation mode.

請求項3記載の本願発明は、請求項1あるいは請求項2記載の車載用ECUであって、前記外部入力情報は複数の部分外部入力情報を含み、前記外部変化検出部は、各々が動作状態時に対応する前記部分外部入力情報において前記起動要因変化を検出して部分検出信号を出力する複数の部分外部変化検出部と各々が対応する前記部分検出信号に対し信号変換処理を行う少なくとも一つの検出信号変換部とを含み、前記検出信号は、前記信号変換処理後の前記複数の部分検出信号を含み、前記信号変換処理後の前記複数の部分検出信号は、それぞれ互いに共通する所定の信号変化により、対応する前記部分外部入力情報の前記起動要因変化を指示する。   A third aspect of the present invention is an in-vehicle ECU according to the first or second aspect, wherein the external input information includes a plurality of partial external input information, and each of the external change detection units is in an operating state. A plurality of partial external change detection units for detecting the activation factor change in the partial external input information corresponding to time and outputting partial detection signals, and at least one detection for performing signal conversion processing on the corresponding partial detection signals A signal conversion unit, wherein the detection signal includes the plurality of partial detection signals after the signal conversion processing, and the plurality of partial detection signals after the signal conversion processing are caused by predetermined signal changes that are common to each other. Instructing the activation factor change of the corresponding partial external input information.

請求項4記載の本願発明は、請求項1ないし請求項3記載の車載ECUであって、前記マイコンは内部に不揮発性メモリを有し、前記外部入力情報を受け、前記マイコンOFFモード設定時に前記不揮発性メモリに前記外部入力情報を書込み、前記マイコンは、前記動作電源の供給開始時において、新たに受ける前記外部入力情報と、不揮発性メモリから読み出した前記外部入力情報とを比較し、内容に変化が無い場合、前記マイコンOFFモード設定を行う。   The present invention of claim 4 is the in-vehicle ECU according to claims 1 to 3, wherein the microcomputer has a nonvolatile memory therein, receives the external input information, and sets the microcomputer OFF mode when the microcomputer is set to the OFF mode. The external input information is written to the nonvolatile memory, and the microcomputer compares the external input information newly received at the start of supply of the operating power with the external input information read from the nonvolatile memory, If there is no change, the microcomputer OFF mode is set.

請求項1記載の本願発明における電源部は、マイコンOFFモード設定時において、検出信号が外部入力情報の起動要因変化を指示するとき、マイコンOFFモード設定から通常モード設定に改めている。   The power supply unit according to the first aspect of the present invention changes the microcomputer OFF mode setting to the normal mode setting when the detection signal indicates a change in activation factor of the external input information when the microcomputer OFF mode is set.

したがって、マイコンOFFモード設定時においては、マイコンへの動作電源供給を完全に停止してマイコンの消費電力を“0”に抑えながら、必要時に適切にマイコンを動作状態に復帰させることができる効果を奏する。   Therefore, when the microcomputer OFF mode is set, the operation power supply to the microcomputer is completely stopped and the power consumption of the microcomputer is suppressed to “0”, and the microcomputer can be appropriately returned to the operating state when necessary. Play.

請求項2記載の本願発明は、マイコンの内部要因(第2の条件)に加えて、外部情報(第1の条件)によって、マイコンOFFモード設定を行うとともに、マイコンOFFモード設定から通常モード設定への解除設定を行うことができる。   According to the present invention of claim 2, the microcomputer OFF mode is set by external information (first condition) in addition to the internal factor (second condition) of the microcomputer, and the microcomputer OFF mode setting is changed to the normal mode setting. Can be set to cancel.

請求項3記載の本願発明は、少なくとも一つの検出変換部による信号変換処理前の複数の部分検出信号間で上記起動要因変化の指示内容が互いに異なっていても、上記信号変換処理後において、互いに共通する所定の信号変化により、対応する部分外部入力情報の起動要因変化を指示するようにしている。   In the present invention of claim 3, even if the instruction contents of the activation factor change are different between the plurality of partial detection signals before the signal conversion processing by at least one detection conversion unit, after the signal conversion processing, A change in activation factor of the corresponding partial external input information is instructed by a common predetermined signal change.

その結果、上記信号変換処理後の複数の部分検出信号を電源部の一の入力端子に共通入力するように構成しても、上記入力端子に得られる信号の上記所定の信号変化に基づき、複数の部分外部入力情報いずれかの起動要因変化を確実に認識することができるため、電源部への複数の部分検出信号用の入力端子を最小限に抑えることができる。   As a result, even if the plurality of partial detection signals after the signal conversion processing are configured to be commonly input to one input terminal of the power supply unit, a plurality of partial detection signals are generated based on the predetermined signal change of the signal obtained at the input terminal. Since the activation factor change in any of the partial external input information can be reliably recognized, the input terminals for a plurality of partial detection signals to the power supply unit can be minimized.

請求項4記載の本願発明において、マイコンは、動作電源の供給開始時において、新たに受ける外部入力情報と、不揮発性メモリから読み出した外部入力情報とを比較し、内容に変化が無い場合、マイコンOFFモード設定を行っている。   5. The microcomputer according to claim 4, wherein the microcomputer compares the newly received external input information with the external input information read from the non-volatile memory at the start of supply of operating power. The OFF mode is set.

したがって、外部入力情報のノイズ等の影響で電源部が誤って通常モード設定にしても、マイコンが再びマイコンOFFモード設定に戻すことができる。その結果、マイコンOFFモード後において、外部入力情報に上記起動要因変化が実際に発生したときのみ、マイコン1を通常モードで復帰動作させることができる。   Therefore, even if the power supply unit erroneously sets the normal mode due to the influence of noise or the like of the external input information, the microcomputer can return to the microcomputer OFF mode setting again. As a result, after the microcomputer OFF mode, the microcomputer 1 can be returned to the normal mode only when the activation factor change actually occurs in the external input information.

この発明の実施の形態1である車載用ECUの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of vehicle-mounted ECU which is Embodiment 1 of this invention. 実施の形態1の外部変化検出部の内部構成を示す回路図である。FIG. 3 is a circuit diagram showing an internal configuration of an external change detection unit according to the first embodiment. 実施の形態1の車載用ECUのマイコンOFFモードに移行する処理を示すフローチャートである。4 is a flowchart illustrating a process of shifting to a microcomputer OFF mode of the in-vehicle ECU according to the first embodiment. この発明の実施の形態2である車載用ECUの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of vehicle-mounted ECU which is Embodiment 2 of this invention. 図4で示した変換回路の内部構成を示す回路図である。FIG. 5 is a circuit diagram showing an internal configuration of a conversion circuit shown in FIG. 4. この発明の実施の形態3である車載用ECUの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of in-vehicle ECU which is Embodiment 3 of this invention. 実施の形態3の車載用ECUのマイコンOFFモードに移行する処理を示すフローチャートである。10 is a flowchart illustrating a process of shifting to a microcomputer OFF mode of the in-vehicle ECU according to the third embodiment. 電源ON直後のマイコン1Xの初期動作を示すフローチャートである。It is a flowchart which shows the initial operation of the microcomputer 1X immediately after power ON.

<実施の形態1>
図1はこの発明の実施の形態1である車載用ECUの内部構成を示すブロック図である。実施の形態1の車載用ECU10は、内部にマイコン1、外部変化検出部3、及び電源IC4(電源部)を有している。
<Embodiment 1>
FIG. 1 is a block diagram showing the internal configuration of an in-vehicle ECU that is Embodiment 1 of the present invention. The in-vehicle ECU 10 according to the first embodiment includes a microcomputer 1, an external change detection unit 3, and a power supply IC 4 (power supply unit).

マイコン1は内部に内部発振器11、CPU12及び不揮発性RAM15を有する。マイコン1は電源入力部VCCへの動作電源V4の供給時に動作状態となり、動作状態時に内部発振器11により発生されるクロックでCPU12が動作し、CPU12の制御下で図示しないスイッチ群で検出される車両に関する外部入力を監視し、当該スイッチ群のいずれかから外部入力(の発生)を検出すると、検出した外部入力内容に応じた所定の動作制御を行う。なお、スイッチ群は車両における環境変化を外部入力として取り込めれば良く、パワーウィンドウのスイッチ入力等、一般的なスイッチは勿論、センサ等を含む。   The microcomputer 1 has an internal oscillator 11, a CPU 12, and a nonvolatile RAM 15 inside. The microcomputer 1 is in an operating state when the operating power supply V4 is supplied to the power input unit VCC, and the CPU 12 operates with a clock generated by the internal oscillator 11 in the operating state, and is detected by a switch group (not shown) under the control of the CPU 12. When an external input is monitored and an external input is detected from any of the switch groups, predetermined operation control is performed according to the detected external input content. Note that the switch group only needs to capture environmental changes in the vehicle as an external input, and includes sensors as well as general switches such as power window switch inputs.

さらに、CPU12はマイコンOFFモード移行時における判別用データCDの不揮発性RAM15への書込み、電源ON復帰時における不揮発性RAM15から読み出した判別用データCDの内容チェック処理を行う。   Further, the CPU 12 performs a process of checking the contents of the discrimination data CD read from the nonvolatile RAM 15 when the discrimination data CD is transferred to the microcomputer OFF mode and when the power is turned on.

電源IC4は内部に内部発振器41、CPU42及び通信部46を有する。動作状態時に内部発振器41により発生されるクロックでCPU42が動作する。   The power supply IC 4 includes an internal oscillator 41, a CPU 42, and a communication unit 46 inside. The CPU 42 operates with a clock generated by the internal oscillator 41 in the operating state.

電源IC4は通常モード時に、電源入力部VIより電源線LVCから外部電源EVCを電圧変換して電源出力部VO1から動作電源V4をマイコン1の電源入力部VCCに供給する。このとき、電源出力部VO2からの外部変化検出部3の電源入力部VCCへの電源供給は行わない。   In the normal mode, the power supply IC 4 converts the external power supply EVC from the power supply line LVC from the power supply input section VI and supplies the operation power supply V4 from the power supply output section VO1 to the power supply input section VCC of the microcomputer 1. At this time, power supply from the power output unit VO2 to the power input unit VCC of the external change detecting unit 3 is not performed.

電源IC4は制御入力部VCにマイコン1の電源制御端子PVが接続され、制御入力部VCが“L”の時、通常動作モードからマイコンOFFモードに切り換え、電源出力部VO1からの動作電源V4の供給を停止する。このとき、電源出力部VO2からの外部変化検出部3の電源入力部VCCへの電源供給を行う。   The power supply IC 4 is connected to the control input section VC with the power control terminal PV of the microcomputer 1. When the control input section VC is “L”, the normal operation mode is switched to the microcomputer OFF mode, and the operation power supply V 4 from the power output section VO 1 is switched. Stop supplying. At this time, power is supplied from the power output unit VO2 to the power input unit VCC of the external change detecting unit 3.

電源IC4はマイコンOFFモード時において、外部変化検出部3より受ける検出信号S3をCPU42の入力端子PIに受け、CPU42の制御下で検出信号S3に基づき、マイコンOFFモードから通常動作モードに改める。   The power supply IC 4 receives the detection signal S3 received from the external change detection unit 3 at the input terminal PI of the CPU 42 in the microcomputer OFF mode, and changes from the microcomputer OFF mode to the normal operation mode based on the detection signal S3 under the control of the CPU 42.

通信部46は通信線9を介して外部の他の車載用ECU等と通信可能である。通信部46及び通信線9として、例えばCAN(Controller Area Network)IC及びCAN用の通信線(CAN−H,CAN−L)等が考えられる。この通信部46はマイコン1の通信用端子PTとの間でデータの送受信が可能である。   The communication unit 46 can communicate with other external vehicle-mounted ECUs and the like via the communication line 9. As the communication unit 46 and the communication line 9, for example, a CAN (Controller Area Network) IC and a CAN communication line (CAN-H, CAN-L) can be considered. The communication unit 46 can exchange data with the communication terminal PT of the microcomputer 1.

通信部46は「通信線9から所定期間信号入力が無い」等のスリープ条件の成立の有無を検知し、上記スリープ条件(第1の条件)の成立を検出するとスリープ条件成立を指示する通信部情報D46をマイコン1の通信用端子PTに出力する。   The communication unit 46 detects whether or not a sleep condition such as “there is no signal input from the communication line 9 for a predetermined period of time” is established, and instructs the establishment of the sleep condition when the establishment of the sleep condition (first condition) is detected. Information D46 is output to the communication terminal PT of the microcomputer 1.

さらに、通信部46は動作時において、マイコンOFFモード時に通信部起動要因を検出すると、CPU42の制御下で通常動作モードに改められる。   Furthermore, when the communication unit 46 detects a communication unit activation factor during operation in the microcomputer OFF mode, the communication unit 46 is changed to the normal operation mode under the control of the CPU 42.

外部変化検出部3はマイコンOFFモード時に電源IC4の電源出力部VO2より電源入力部VCCに電源供給を受けて動作状態となる。   In the microcomputer OFF mode, the external change detection unit 3 is supplied with power from the power output unit VO2 of the power supply IC 4 to the power input unit VCC and enters an operating state.

図2は外部変化検出部3の内部構成を示す回路図である。同図に示すように、外部変化検出部3は、複数のスイッチ群SW1〜SWnと論理回路35とから構成される。スイッチ群SW1〜SWnはマイコン1に用いられるスイッチ群と基本的に等価な構成を呈しており、車両における環境変化を示す外部入力内容に応じてON/OFF状態となる。例えば、スイッチSW1がドアスイッチの場合、ドア「開」/ドア「閉」状態でON/OFF状態となる。すなわち、スイッチ群SW1〜SWnのON/OFF状態が車両に関連する外部入力内容を示す外部入力情報となる。   FIG. 2 is a circuit diagram showing an internal configuration of the external change detection unit 3. As shown in the figure, the external change detection unit 3 includes a plurality of switch groups SW1 to SWn and a logic circuit 35. The switch groups SW1 to SWn have basically the same configuration as that of the switch group used in the microcomputer 1, and are turned on / off according to external input contents indicating environmental changes in the vehicle. For example, when the switch SW1 is a door switch, the door is in the “open” / door “closed” state and is in the ON / OFF state. That is, the ON / OFF state of the switch groups SW1 to SWn is external input information indicating the external input content related to the vehicle.

スイッチ群SW1〜SWnはそれぞれ一端が接地され、他端はそれぞれ電源入力部VCCにプルアップ抵抗R1〜Rnを介して共通接続される。スイッチ群SW1〜SWnの他端側の配線L1〜Lnは論理回路35の入力に接続される。   One end of each of the switch groups SW1 to SWn is grounded, and the other end is commonly connected to the power supply input unit VCC via the pull-up resistors R1 to Rn. The wirings L1 to Ln on the other end side of the switch groups SW1 to SWn are connected to the input of the logic circuit 35.

論理回路35は配線L1〜Lnの信号を受け、配線L1〜Lnの全てが“H”のとき、“L”となり、配線L1〜Lnのいずれかが“L”のとき(スイッチ群SW1〜SWnのいずれかがON状態のとき)“H”となる検出信号S3を出力する。したがって、検出信号S3の“L”から“H”への立ち上がりエッジを検出することにより、スイッチ群SW1〜SWnのいずれかのOFF状態からON状態への変化を検出することができる。   The logic circuit 35 receives signals from the wirings L1 to Ln. When all of the wirings L1 to Ln are “H”, the logic circuit 35 is “L”, and when any of the wirings L1 to Ln is “L” (switch groups SW1 to SWn). The detection signal S3 which becomes "H" is output. Therefore, by detecting the rising edge of the detection signal S3 from “L” to “H”, any of the switch groups SW1 to SWn can be detected from the OFF state to the ON state.

ここで、スイッチ群SW1〜SWnのいずれかがOFF状態からON状態への変化が、マイコンOFFモードで電源OFF状態のマイコン1の起動要因とすべき起動要因変化となるように設定している。   Here, any one of the switch groups SW1 to SWn is set so that a change from the OFF state to the ON state becomes a start factor change to be a start factor of the microcomputer 1 in the power OFF state in the microcomputer OFF mode.

このように、外部変化検出部3は、スイッチ群SW1〜SWnのいずれかがOFF状態からON状態に変化したとき、検出信号S3を“L”から“H”に変化させる“H”立ち上がり変化を呈することにより、検出信号S3によって、外部入力情報(スイッチ群SW1〜SWnのON/OFF状態)におけるマイコン1の起動要因とすべき起動要因変化を指示することができる。   As described above, the external change detection unit 3 performs the “H” rising change that changes the detection signal S3 from “L” to “H” when any of the switch groups SW1 to SWn changes from the OFF state to the ON state. By presenting, it is possible to instruct the activation factor change to be the activation factor of the microcomputer 1 in the external input information (ON / OFF state of the switch groups SW1 to SWn) by the detection signal S3.

図3は実施の形態1の車載用ECU10のマイコンOFFモードに移行する処理を示すフローチャートである。   FIG. 3 is a flowchart showing a process of shifting to the microcomputer OFF mode of the in-vehicle ECU 10 according to the first embodiment.

まず、ステップST21において、電源IC4の通信部46が通信線9上におけるスリープ条件(第1の条件)の成立を検出すると(Yes)、ステップST22に移行する。一方、スリープ条件が成立しない場合(No)、ステップST21が繰り返され、車載用ECU10は通常動作を続ける。   First, in step ST21, when the communication unit 46 of the power supply IC 4 detects that the sleep condition (first condition) on the communication line 9 is satisfied (Yes), the process proceeds to step ST22. On the other hand, when the sleep condition is not satisfied (No), step ST21 is repeated, and the vehicle-mounted ECU 10 continues normal operation.

ステップST21でYesの場合に実行されるステップST22において、通信部46はスリープ条件成立を指示する通信部情報D46をマイコン1の通信用端子PTに出力する。   In step ST22 executed when Yes in step ST21, the communication unit 46 outputs the communication unit information D46 instructing the establishment of the sleep condition to the communication terminal PT of the microcomputer 1.

そして、ステップST23においてマイコン1は、マイコン1の不要判定条件である所定の電源OFF条件(第2の条件)の成立を認識すると(Yes)、通常動作モードからマイコンOFFモードに移行すべく、ステップST24以降の処理に移行する。すなわち、上記第1及び第2の条件からなる組合せ条件が成立するとステップST24以降の処理に移行する。   In step ST23, when the microcomputer 1 recognizes that a predetermined power-off condition (second condition) that is an unnecessary determination condition of the microcomputer 1 is satisfied (Yes), the microcomputer 1 performs a step to shift from the normal operation mode to the microcomputer OFF mode. The process proceeds to ST24 and subsequent processes. That is, when the combination condition including the first and second conditions is satisfied, the process proceeds to step ST24 and subsequent steps.

一方、所定の電源OFF条件が成立しない場合(No)、ステップST21に戻り、車載用ECU10は通常動作を続行する。   On the other hand, when the predetermined power-off condition is not satisfied (No), the process returns to step ST21 and the vehicle-mounted ECU 10 continues the normal operation.

ステップST23でYesの場合に実行されるステップST24において、マイコン1は電源OFF状態に移る準備処理として不揮発性RAM15に書き込む判別用データCDをセット状態(マイコンOFFモードを指示)に設定する、判別用データCDの書込み処理を実行する。   In step ST24, which is executed in the case of Yes in step ST23, the microcomputer 1 sets the determination data CD to be written in the non-volatile RAM 15 to the set state (indicating the microcomputer OFF mode) as a preparation process for moving to the power OFF state. Data CD writing processing is executed.

次に、ステップST25において、マイコン1は電源制御端子PV(マイコン出力信号S1)を“L”にして、電源IC4に通常動作モードからマイコンOFFモードへの変更を指示する。   Next, in step ST25, the microcomputer 1 sets the power control terminal PV (microcomputer output signal S1) to "L" and instructs the power supply IC 4 to change from the normal operation mode to the microcomputer OFF mode.

その後、ステップST26において、電源IC4はマイコン1の動作電源V4の供給を停止し、マイコン1は電源OFF状態となる。   Thereafter, in step ST26, the power supply IC 4 stops supplying the operating power V4 of the microcomputer 1, and the microcomputer 1 is turned off.

以降、マイコン1は完全に動作を停止する。電源IC4は外部変化検出部3の検出信号S3を監視し、検出信号S3の“H”立ち上がり(スイッチ群SW1〜SWnによる外部入力情報における起動要因変化)を検知するまで、マイコンOFFモードも維持し、マイコン1は電源OFF状態である。   Thereafter, the microcomputer 1 completely stops operating. The power supply IC 4 monitors the detection signal S3 of the external change detection unit 3, and maintains the microcomputer OFF mode until detecting "H" rise of the detection signal S3 (change in activation factor in external input information by the switch groups SW1 to SWn). The microcomputer 1 is in a power OFF state.

そして、電源IC4は、検出信号S3の“H”立ち上がりを検知すると,マイコンOFFモードから通常動作モードに改め、マイコン1への動作電源V4の供給を再開し、マイコン1を動作状態に復帰させる。   Then, when the power supply IC 4 detects the “H” rising of the detection signal S3, the microcomputer OFF mode is changed to the normal operation mode, the supply of the operation power supply V4 to the microcomputer 1 is resumed, and the microcomputer 1 is returned to the operation state.

一方、電源IC4内の通信部46は単独で通信線9より得られる信号に基づき通信部起動要因の有無を判定している。   On the other hand, the communication unit 46 in the power supply IC 4 determines whether or not there is a communication unit activation factor based on a signal obtained from the communication line 9 alone.

したがって、マイコンOFFモード時において、通信部46が通信部起動要因を判定したとき、その判定結果をCPU42に通知することにより、CPU42の制御下で、通常動作モードに改め、マイコン1への動作電源V4の供給を再開することができる。   Therefore, when the communication unit 46 determines the communication unit activation factor in the microcomputer OFF mode, the determination result is notified to the CPU 42, so that the normal operation mode is changed under the control of the CPU 42, and the operation power to the microcomputer 1 is changed. The supply of V4 can be resumed.

なお、電源ON直後において、マイコン1は不揮発性RAM15から読み出した判別用データCDのセット状態の有/無かによって、リセットスタート(動作)の実行の無/有を選択して通常動作に復帰する。   Immediately after the power is turned on, the microcomputer 1 selects whether or not to execute the reset start (operation) depending on whether or not the determination data CD read from the nonvolatile RAM 15 is set and returns to the normal operation. .

このように、検出信号S3がスイッチ群SW1〜SWnによる外部入力情報の起動要因変化を指示するとき、あるいは通信部46が通信部起動要因を指示するとき、電源IC4はCPU42の制御下でマイコンOFFモードから通常動作モードに改める。   As described above, when the detection signal S3 instructs the activation factor change of the external input information by the switch groups SW1 to SWn, or when the communication unit 46 instructs the communication unit activation factor, the power supply IC 4 is turned off by the microcomputer under the control of the CPU 42. Change from mode to normal operation mode.

したがって、電源IC4は、マイコンOFFモード設定時においてマイコン1への動作電源V4の供給を完全に遮断するため、マイコンOFFモード設定時におけるマイコン1の消費電力を“0”に抑えることができる。そして、電源IC4は検出信号S3を監視することにより、車両に関連する外部入力内容を示す外部入力情報(スイッチ群SW1〜SWnのON/OFF状態)における起動要因とすべき起動要因変化を検出して、適切なタイミングでマイコンOFFモードから通常動作モードに改めることができる。   Accordingly, since the power supply IC 4 completely cuts off the supply of the operating power supply V4 to the microcomputer 1 when the microcomputer OFF mode is set, the power consumption of the microcomputer 1 when the microcomputer OFF mode is set can be suppressed to “0”. The power supply IC 4 monitors the detection signal S3 to detect a change in activation factor to be an activation factor in the external input information (ON / OFF state of the switch groups SW1 to SWn) indicating the external input content related to the vehicle. Therefore, the microcomputer OFF mode can be changed to the normal operation mode at an appropriate timing.

マイコン1のCPU12は、電源IC4のCPU42より回路構成が大きく、マイコン1の消費電力は車載用ECU10全体の消費電力における主要な割合を占めるため、マイコンOFFモード時に消費電力を“0”に抑えることにより、車載用ECU10全体の低消費電力化を効果的に図ることができる。   The CPU 12 of the microcomputer 1 has a larger circuit configuration than the CPU 42 of the power supply IC 4, and the power consumption of the microcomputer 1 occupies a major proportion of the power consumption of the entire in-vehicle ECU 10. Therefore, the power consumption is suppressed to “0” in the microcomputer OFF mode. As a result, it is possible to effectively reduce the power consumption of the in-vehicle ECU 10 as a whole.

加えて、実施の形態1の車載用ECU10の電源IC4は、マイコンOFFモード設定時において、検出信号S3に基づき起動要因変化を検知した場合、電源IC4単独でマイコンOFFモード設定から通常モード設定に復帰することができる。   In addition, when the power supply IC 4 of the on-vehicle ECU 10 of the first embodiment detects a change in activation factor based on the detection signal S3 when the microcomputer OFF mode is set, the power supply IC 4 alone returns from the microcomputer OFF mode setting to the normal mode setting. can do.

さらに、実施の形態1の車載用ECU10の電源IC4は、マイコン1の内部要因に加えて、通信部46によって通信線9より得られる外部情報によって、マイコンOFFモード設定を行うことができる。   Furthermore, the power supply IC 4 of the in-vehicle ECU 10 according to the first embodiment can set the microcomputer OFF mode based on external information obtained from the communication line 9 by the communication unit 46 in addition to the internal factors of the microcomputer 1.

加えて、通信部46による通信起動要因の判定時においても、マイコン1によらず電源IC46単独で通常動作モードに復帰させることができる効果を奏する。すなわち、通信部46は、CPU42に通信起動要因判定を通知することにより、マイコンOFFモードから通常動作モードに設定変更可能なモード変換機能を有している。   In addition, even when the communication activation factor is determined by the communication unit 46, the power IC 46 alone can return to the normal operation mode regardless of the microcomputer 1. That is, the communication unit 46 has a mode conversion function capable of changing the setting from the microcomputer OFF mode to the normal operation mode by notifying the CPU 42 of the communication activation factor determination.

すなわち、マイコン1の内部要因(第2の条件)に加えて、外部情報(第1の条件)によって、マイコンOFFモード設定を行うとともに、マイコンOFFモード設定から通常モード設定への解除設定を行うことができる。   That is, in addition to the internal factor of the microcomputer 1 (second condition), the microcomputer OFF mode is set according to external information (first condition), and the cancel setting from the microcomputer OFF mode setting to the normal mode setting is performed. Can do.

なお、外部変化検出部3はマイコンOFFモード時のみ、電源IC4より電源供給を受けたが、常時電源供給を受けるように構成しても良い。すなわち、外部変化検出部3は、少なくともマイコンOFFモード時に動作状態となればよい。   The external change detection unit 3 is supplied with power from the power supply IC 4 only in the microcomputer OFF mode, but may be configured to always receive power. That is, the external change detection unit 3 may be in an operating state at least in the microcomputer OFF mode.

<実施の形態2>
図4はこの発明の実施の形態2である車載用ECUの内部構成を示すブロック図である。実施の形態2の車載用ECU20は、内部にマイコン1、外部変化検出部3X、及び電源IC4を有している。マイコン1及び電源IC4の内部構成は実施の形態1と同様であるため、同一符号を付して説明を適宜省略する。また、車載用ECU20のマイコンOFFモードに移行する処理内容及びマイコンOFFモードから通常動作モードへの復帰内容は実施の形態1の車載用ECU10と同様である。但し、外部変化検出部3が後述する外部変化検出部3Xに置き換わった点が異なる。
<Embodiment 2>
FIG. 4 is a block diagram showing an internal configuration of an in-vehicle ECU according to Embodiment 2 of the present invention. The in-vehicle ECU 20 of the second embodiment has a microcomputer 1, an external change detection unit 3X, and a power supply IC 4 inside. Since the internal configurations of the microcomputer 1 and the power supply IC 4 are the same as those in the first embodiment, the same reference numerals are given and description thereof is omitted as appropriate. Further, the processing contents of the in-vehicle ECU 20 for shifting to the microcomputer OFF mode and the returning contents from the microcomputer OFF mode to the normal operation mode are the same as those in the in-vehicle ECU 10 of the first embodiment. However, the difference is that the external change detector 3 is replaced with an external change detector 3X described later.

外部変化検出部3Xは、部分外部変化検出部31〜33並びに変換回路51及び52(検出信号変換部)から構成されている。部分外部変化検出部31は内部のスイッチ(群)の起動要因変化時に“H”立ち上がり変化が現れる検出信号S31を出力する。部分外部変化検出部32は内部のスイッチ(群)の起動要因変化時に“L”立ち下がり変化が現れる検出信号S32を出力する。部分外部変化検出部33は内部のスイッチ(群)の起動要因変化時に“H”パルス(“H”立ち上がり後、所定期間径が後に“L”立ち下がり)が現れる検出信号S33を出力する。このように、部分外部変化検出部31〜33の検出信号S31〜S33間において、起動要因変化を指示する信号変化内容が互いに異なっている。   The external change detection unit 3X includes partial external change detection units 31 to 33 and conversion circuits 51 and 52 (detection signal conversion units). The partial external change detection unit 31 outputs a detection signal S31 in which “H” rising change appears when the activation factor of the internal switch (group) changes. The partial external change detection unit 32 outputs a detection signal S32 in which an “L” falling change appears when the activation factor of the internal switch (group) changes. The partial external change detection unit 33 outputs a detection signal S33 in which an “H” pulse (“H” rises, followed by a “L” fall after a predetermined period after the rise of “H”) appears when the activation factor of the internal switch (group) changes. Thus, the signal change contents instructing the activation factor change are different between the detection signals S31 to S33 of the partial external change detection units 31 to 33.

変換回路51は検出信号S31を受け、検出信号S31に対し信号変換処理を行い変換後検出信号S51を出力する。変換回路52は検出信号S32を受け、検出信号S32に対し信号変換処理を行い変換後検出信号S52を出力する。変換後検出信号S51及びS52は共に起動要因変化時に“H”パルスが現れる。   The conversion circuit 51 receives the detection signal S31, performs signal conversion processing on the detection signal S31, and outputs a converted detection signal S51. The conversion circuit 52 receives the detection signal S32, performs signal conversion processing on the detection signal S32, and outputs a converted detection signal S52. In the post-conversion detection signals S51 and S52, an “H” pulse appears when the activation factor changes.

図5は図4で示した変換回路51及び52の内部構成を示す回路図である。同図に示すように、変換回路51は、遅延回路53、インバータ54及びANDゲート55から構成される。ANDゲート55は一方入力に検出信号S31を受け、他方入力に検出信号S31が遅延回路53及びインバータ54を介して得られる信号を受ける。そして、ANDゲート55の出力信号が変換後検出信号S51となる。したがって、変換後検出信号S51は、検出信号S31の“H”立ち上がりから遅延回路53の遅延時間Δ53において“H”となる“H”パルスを発生する。すなわち、変換後検出信号S51は前述したように起動要因変化時に“H”パルスが現れる。   FIG. 5 is a circuit diagram showing the internal configuration of the conversion circuits 51 and 52 shown in FIG. As shown in the figure, the conversion circuit 51 includes a delay circuit 53, an inverter 54, and an AND gate 55. The AND gate 55 receives a detection signal S31 at one input, and receives a signal obtained from the detection signal S31 via the delay circuit 53 and the inverter 54 at the other input. The output signal of the AND gate 55 becomes the converted detection signal S51. Therefore, the post-conversion detection signal S51 generates an “H” pulse that becomes “H” in the delay time Δ53 of the delay circuit 53 from the “H” rise of the detection signal S31. That is, in the post-conversion detection signal S51, the “H” pulse appears when the activation factor changes as described above.

一方、変換回路52は、インバータ56、遅延回路57及びANDゲート58から構成される。ANDゲート58は一方入力に検出信号S32がインバータ56を介して得られる信号を受け、他方入力に検出信号S32が遅延回路57を介して得られる信号を受ける。そして、ANDゲート58の出力信号が変換後検出信号S52となる。したがって、変換後検出信号S52は、検出信号S32の“L”立ち下がりから遅延回路57の遅延時間Δ57において“H”となる“H”パルスを発生する。すなわち、変換後検出信号S52は前述したように起動要因変化時に“H”パルスが現れる。   On the other hand, the conversion circuit 52 includes an inverter 56, a delay circuit 57, and an AND gate 58. The AND gate 58 receives a signal obtained from the detection signal S32 via the inverter 56 at one input, and receives a signal obtained from the detection signal S32 via the delay circuit 57 at the other input. The output signal of the AND gate 58 becomes the post-conversion detection signal S52. Therefore, the post-conversion detection signal S52 generates an “H” pulse that becomes “H” in the delay time Δ57 of the delay circuit 57 from the “L” falling edge of the detection signal S32. That is, in the post-conversion detection signal S52, the “H” pulse appears when the activation factor changes as described above.

図4に戻って、変換後検出信号S51及びS52並びに検出信号S33を検出信号S3として共通に電源IC4のCPU42の入力端子PIに付与している。なお、図では、ワイヤードORを想定しているが、変換後検出信号S51及びS52並びに検出信号S33を3入力のORゲートで受け、ORゲートの出力を検出信号S3として入力端子PIに付与するようにしても良い。   Returning to FIG. 4, the post-conversion detection signals S51 and S52 and the detection signal S33 are commonly provided to the input terminal PI of the CPU 42 of the power supply IC 4 as the detection signal S3. In the figure, a wired OR is assumed, but the converted detection signals S51 and S52 and the detection signal S33 are received by a three-input OR gate, and the output of the OR gate is given to the input terminal PI as a detection signal S3. Anyway.

実施の形態2の車載用ECU20は、部分外部変化検出部31〜33の検出信号S31〜S33間で起動要因変化を指示する信号変化内容(“H”立ち上がり、“L”立ち下がり、“H”パルス)が互いに異なっていても、変換回路51及び52による信号変換処理後において、互いに共通する“H”パルス(所定の信号変化)により、対応する部分外部入力情報(内部のスイッチ(群)の状態)の起動要因変化を指示している。   The in-vehicle ECU 20 according to the second embodiment includes signal change contents (“H” rising, “L” falling, “H”) instructing a change in activation factor between the detection signals S31 to S33 of the partial external change detection units 31 to 33. Even if the pulses are different from each other, after the signal conversion processing by the conversion circuits 51 and 52, the corresponding partial external input information (internal switch (group) Status) activation factor change.

したがって、変換後検出信号S51及びS52並びに検出信号S33を電源IC4のCPU42の入力端子PIに共通入力するように構成しても、CPU42は入力端子より得られる信号の“H”パルスを検出することにより、部分外部変化検出部31〜33内のスイッチ(群)のいずれかにおける起動要因変化を確実に認識することができる。その結果、電電源IC4への変換後検出信号S51及びS52並びに検出信号S33用の入力端子数を“1”に抑えることができる効果を奏する。   Therefore, even if the post-conversion detection signals S51 and S52 and the detection signal S33 are configured to be commonly input to the input terminal PI of the CPU 42 of the power supply IC 4, the CPU 42 can detect the “H” pulse of the signal obtained from the input terminal. Thus, it is possible to reliably recognize the activation factor change in any of the switches (groups) in the partial external change detection units 31 to 33. As a result, there is an effect that the number of input terminals for the detection signals S51 and S52 and the detection signal S33 after conversion to the electric power source IC4 can be suppressed to “1”.

一般に、電源IC4の入力端子PIは1〜2本に制限されており、一種類の信号変化の検知に対応して1つの入力端子PIが必要となるため、部分外部変化検出部31〜33からの検出信号S31〜S33を直接受ける構成では、少なくとも3本の入力端子PIが必要となるが、実施の形態2の車載用ECU20では入力端子PIを1本に抑えることができる。   In general, the input terminal PI of the power supply IC 4 is limited to one or two, and one input terminal PI is required in response to detection of one type of signal change. In the configuration that directly receives the detection signals S31 to S33, at least three input terminals PI are required, but the in-vehicle ECU 20 of the second embodiment can suppress the number of input terminals PI to one.

<実施の形態3>
図6はこの発明の実施の形態3である車載用ECUの内部構成を示すブロック図である。実施の形態3の車載用ECU30は、内部にマイコン2、外部変化検出部3(3X)、及び電源IC4を有している。マイコン2の一部、外部変化検出部3(3X)及び電源IC4の内部構成は実施の形態1(実施の形態2)と同様であるため、同一符号を付して説明を適宜省略する。
<Embodiment 3>
FIG. 6 is a block diagram showing an internal configuration of an in-vehicle ECU according to Embodiment 3 of the present invention. The in-vehicle ECU 30 of the third embodiment includes a microcomputer 2, an external change detection unit 3 (3X), and a power supply IC 4 inside. Since the internal configuration of a part of the microcomputer 2, the external change detection unit 3 (3X), and the power supply IC 4 is the same as that of the first embodiment (second embodiment), the same reference numerals are given and description thereof is omitted as appropriate.

マイコン2は内部発振器11、CPU12及び不揮発性RAM15から構成される。CPU12は外部変化検出部3内のスイッチ(群)の状態である外部入力情報XJを受ける。CPU12はマイコンOFFモード移行時における判別用データCD及び外部入力情報XJの不揮発性RAM15への書込み、電源ON復帰時における判別用データCDの内容チェック処理、不揮発性RAM15から読み出した外部入力情報XJと、外部変化検出部3から取り込んだ外部入力情報XJとの比較に基づく処理を行う。   The microcomputer 2 includes an internal oscillator 11, a CPU 12 and a nonvolatile RAM 15. The CPU 12 receives external input information XJ which is the state of the switch (group) in the external change detection unit 3. The CPU 12 writes the discrimination data CD and the external input information XJ to the nonvolatile RAM 15 at the time of the microcomputer OFF mode transition, the content check processing of the discrimination data CD at the time of power-on return, and the external input information XJ read from the nonvolatile RAM 15 Then, processing based on comparison with the external input information XJ fetched from the external change detection unit 3 is performed.

図7は実施の形態3の車載用ECU30のマイコンOFFモードに移行する処理を示すフローチャートである。   FIG. 7 is a flowchart showing a process of shifting to the microcomputer OFF mode of the in-vehicle ECU 30 according to the third embodiment.

実施の形態1の車載用ECU10と同様、ステップST21,ST22を経た後、ステップST23においてマイコン2は、マイコン2の不要判定条件である所定の電源OFF条件の成立を認識すると(Yes)、通常動作モードからマイコンOFFモードに移行すべく、ステップST24X以降の処理に移行する。一方、所定の電源OFF条件が成立しない場合(No)、ステップST21に戻り、車載用ECU30は通常動作を続行する。   As in the vehicle-mounted ECU 10 of the first embodiment, after passing through steps ST21 and ST22, in step ST23, when the microcomputer 2 recognizes the establishment of a predetermined power-off condition that is an unnecessary determination condition of the microcomputer 2 (Yes), normal operation is performed. In order to shift from the mode to the microcomputer OFF mode, the process proceeds to step ST24X and subsequent steps. On the other hand, when the predetermined power-off condition is not satisfied (No), the process returns to step ST21 and the in-vehicle ECU 30 continues the normal operation.

ステップST23でYesの場合に実行されるステップST24Xにおいて、実施の形態1のステップST24と同様、判別用データCD(セット状態)と共に、外部入力情報XJの不揮発性RAM15への書込み処理を実行する。すなわち、マイコン2は判別用データCDに加えて、外部変化検出部3より得た外部入力情報XJを不揮発性RAM15に書き込む。   In step ST24X, which is executed in the case of Yes in step ST23, similarly to step ST24 of the first embodiment, a process of writing the external input information XJ to the nonvolatile RAM 15 together with the determination data CD (set state) is executed. That is, the microcomputer 2 writes the external input information XJ obtained from the external change detector 3 in the nonvolatile RAM 15 in addition to the discrimination data CD.

その後、実施の形態1と同様、ステップST25を経た後、ステップST26において、電源IC4はマイコン2の動作電源V4の供給を停止し、マイコン2は電源OFF状態となる。   Thereafter, similarly to the first embodiment, after passing through step ST25, in step ST26, the power supply IC4 stops the supply of the operating power supply V4 of the microcomputer 2, and the microcomputer 2 is turned off.

以降、マイコン2は完全に動作を停止する。電源IC4は外部変化検出部3の検出信号S3を監視し、検出信号S3に対する“H”立ち上がりを検知するまで、マイコンOFFモードも維持し、マイコン2は電源OFF状態である。   Thereafter, the microcomputer 2 completely stops operating. The power supply IC 4 monitors the detection signal S3 of the external change detection unit 3 and maintains the microcomputer OFF mode until the “H” rise with respect to the detection signal S3 is detected, and the microcomputer 2 is in the power OFF state.

そして、電源IC4は、検出信号S3の“H”立ち上がりを検知すると,マイコンOFFモードから通常動作モードに改め、動作電源V4の供給を再開し、マイコン2を動作状態に復帰させる。   Then, when the power supply IC 4 detects the “H” rising of the detection signal S3, the microcomputer OFF mode is changed to the normal operation mode, the supply of the operation power supply V4 is resumed, and the microcomputer 2 is returned to the operation state.

外部変化検出部3に代えて、実施の形態2の外部変化検出部3Xであっても良い。この場合、電源IC4は、外部変化検出部3Xの検出信号S3の“H”パルスを検出すると、マイコンOFFモードから通常動作モードに改める。   Instead of the external change detector 3, the external change detector 3X of the second embodiment may be used. In this case, the power supply IC 4 changes the microcomputer OFF mode to the normal operation mode when detecting the “H” pulse of the detection signal S3 of the external change detection unit 3X.

さらに、外部変化検出部3に代えて、外部変化検出部3Xのうち部分外部変化検出部31〜33の検出信号S31〜S33からなる簡易外部変化検出部であっても良い。外部変化検出部3に代えて簡易外部変化検出部を用いる場合、検出信号S31〜S33を共通に入力端子PIに接続し、電源IC4のCPU42は、入力端子PIに付与される信号の“H”立ち上がり、“L”立ち下がり及び“H”パルスのうち、いずれかの信号変化を検出しても、通常動作モードに復帰するように制御を行う。   Further, instead of the external change detection unit 3, a simple external change detection unit including the detection signals S31 to S33 of the partial external change detection units 31 to 33 in the external change detection unit 3X may be used. When a simple external change detection unit is used instead of the external change detection unit 3, the detection signals S31 to S33 are connected to the input terminal PI in common, and the CPU 42 of the power supply IC 4 has the signal “H” applied to the input terminal PI. Control is performed so as to return to the normal operation mode even if any signal change is detected among the rising, “L” falling and “H” pulses.

また、電源IC4内の通信部46は単独で通信線9より得られる信号に基づき通信部起動要因の有無を判定している。   Further, the communication unit 46 in the power supply IC 4 determines whether or not there is a communication unit activation factor based on a signal obtained from the communication line 9 alone.

したがって、マイコンOFFモード時において、通信部46が通信部起動要因を判定したとき、CPU42の制御下で、通常動作モードに改める。   Therefore, in the microcomputer OFF mode, when the communication unit 46 determines the communication unit activation factor, the mode is changed to the normal operation mode under the control of the CPU 42.

図8は電源ON直後のマイコン2の初期動作を示すフローチャートである。以下、同図を参照して、マイコン2の初期動作の処理手順を説明する。   FIG. 8 is a flowchart showing the initial operation of the microcomputer 2 immediately after the power is turned on. Hereinafter, the procedure of the initial operation of the microcomputer 2 will be described with reference to FIG.

まず、ステップST31において、マイコン2は判別用データCDがセット状態であるか否かをチェックする。すなわち、マイコン2は不揮発性RAM15の判別用データCDを読み出し、判別用データCDがセット状態である場合(Yes)、ステップST32以降の処理に移行する。一方、ステップST31において、判別用データCDがセット状態でない場合(No)、ステップST38で通常のリセットスタートを行う。すなわち、マイコン2は電源OFFから電源ONへ切り替わる電源ON復帰時において、不揮発性RAM15に格納された判別用データCDを参照することにより、リセットスタートを行うべきか否かを正確に認識することができる。   First, in step ST31, the microcomputer 2 checks whether or not the discrimination data CD is in a set state. That is, the microcomputer 2 reads the determination data CD in the nonvolatile RAM 15, and when the determination data CD is in the set state (Yes), the microcomputer 2 proceeds to the processing after step ST32. On the other hand, if the determination data CD is not in the set state in step ST31 (No), a normal reset start is performed in step ST38. That is, the microcomputer 2 can accurately recognize whether or not the reset start should be performed by referring to the determination data CD stored in the non-volatile RAM 15 at the time of the power-on return from the power-off to the power-on. it can.

なお、ステップST31,ST38の処理は実施の形態1及び実施の形態2のマイコン1においても行われる。ただし、実施の形態1及び実施の形態2ではステップST31でYesの場合、直ちに処理を終了する。   The processes in steps ST31 and ST38 are also performed in the microcomputer 1 of the first and second embodiments. However, in Embodiment 1 and Embodiment 2, if Yes in step ST31, the process is immediately terminated.

ステップST31でYesの場合に実行されるステップST32において、マイコン2は通信部情報D46を参照する等により、通信部46が通信部起動要因を判定して通常動作モードに戻したか(通信部起動要因があったか)否かを確認する。すなわち、ステップST32において、通信部起動要因であったと確認された場合(Yes)はステップST39で判別用データCDをクリア設定して終了し、通信部起動要因で無いと確認された場合(No)はステップST33以降の処理に移行する。   In step ST32 executed in the case of Yes in step ST31, the microcomputer 2 refers to the communication unit information D46 or the like so that the communication unit 46 determines the communication unit activation factor and returns to the normal operation mode (communication unit activation factor). Confirm whether or not. That is, if it is confirmed in step ST32 that the cause is a communication unit activation factor (Yes), the determination data CD is cleared in step ST39 and the process ends, and if it is confirmed that it is not a communication unit activation factor (No). Shifts to processing after step ST33.

ステップS32でNoの場合に実行されるステップST33において、マイコン2内のCPU12は不揮発性RAM15より外部入力情報XJを読み出す。   In step ST <b> 33 executed when No in step S <b> 32, the CPU 12 in the microcomputer 2 reads the external input information XJ from the nonvolatile RAM 15.

続いて、ステップST34において、外部変化検出部3より現在の外部入力情報XJを読み出す。   Subsequently, in step ST34, the current external input information XJ is read from the external change detection unit 3.

そして、ステップST35において、ステップST33及びST34で読み出した外部入力情報XJ及びXJ間で比較し、マイコンOFFモード設定前と通常動作モード復帰後における外部入力情報XJの経時変化の有無を判断し、外部入力情報XJの経時変化があった場合(Yes)、ステップST39で判別用データCDをクリア設定して処理を終了する。   In step ST35, the external input information XJ and XJ read in steps ST33 and ST34 are compared to determine whether the external input information XJ has changed over time before setting the microcomputer OFF mode and after returning to the normal operation mode. If the input information XJ has changed with time (Yes), the discrimination data CD is cleared in step ST39, and the process is terminated.

一方、ステップST35で外部入力情報XJの経時変化が無かった場合(No)、ステップST36で電源制御端子PVを“L”に設定し、ステップST37で再びマイコン2の電源OFFを行い、マイコンOFFモードに戻る。   On the other hand, if the external input information XJ has not changed with time in step ST35 (No), the power supply control terminal PV is set to “L” in step ST36, the microcomputer 2 is turned off again in step ST37, and the microcomputer OFF mode is set. Return to.

このように、実施の形態3の車載用ECU30において、マイコン2は、電源ON後の初期動作時に、ステップST33移行後の処理において、新たに受ける外部入力情報XJと、不揮発性RAM15から読み出した外部入力情報XJとを比較し、外部入力情報XJに経時変化が無い場合、マイコンOFFモード設定を行っている。   As described above, in the in-vehicle ECU 30 according to the third embodiment, the microcomputer 2 receives the external input information XJ newly received and the external read from the nonvolatile RAM 15 in the process after the transition to step ST33 during the initial operation after the power is turned on. When the input information XJ is compared and the external input information XJ does not change with time, the microcomputer OFF mode is set.

したがって、電源IC4の入力端子PIに入力される検出信号S3がノイズ等の影響で起動要因変化を指示した際に、電源IC4が誤って通常モード設定しマイコン2を電源ON状態にしても、マイコン2が外部入力情報XJに経時変化が無い場合は、実際には起動要因変化が発生していないと自己判断し、再びマイコンOFFモード設定に戻すことができる。   Accordingly, even when the detection signal S3 input to the input terminal PI of the power supply IC 4 instructs a change in activation factor due to the influence of noise or the like, the microcomputer IC is erroneously set to the normal mode and the microcomputer 2 is turned on. When the external input information XJ does not change with time, it can be determined that the activation factor has not actually changed, and the microcomputer OFF mode can be set again.

その結果、実施の形態3の車載用ECU30は、外部入力情報XJに起動要因変化が実際に発生したときのみ、マイコン2はマイコンOFFモードから完全復帰して通常動作モードで動作することができる。   As a result, the in-vehicle ECU 30 of the third embodiment can operate in the normal operation mode by completely returning from the microcomputer OFF mode only when the activation factor change actually occurs in the external input information XJ.

1,2 マイコン
3,3X 外部変化検出部
4 電源IC
10,20,30 車載用ECU
15 不揮発性RAM
31〜33 部分外部変化検出部
51,52 変換回路
1, 2 Microcomputer 3, 3X External change detector 4 Power supply IC
10, 20, 30 In-vehicle ECU
15 Nonvolatile RAM
31-33 Partial external change detection unit 51, 52 Conversion circuit

Claims (4)

動作電源の供給時に動作状態となり、動作中において所定条件成立時に、マイコンOFFモード設定を行うマイコンと、
通常モード設定時において前記マイコンに前記動作電源を供給し、前記マイコンOFFモード設定時において前記マイコンへの前記動作電源の供給を停止する電源部と、
前記マイコンOFFモード設定時において、車両に関連する外部入力内容を示す外部入力情報における前記マイコンの起動要因とすべき起動要因変化を検出して検出信号を出力する外部変化検出部と、
前記電源部は、前記マイコンOFFモード設定時において、前記検出信号が前記外部入力情報の前記起動要因変化を指示するとき、前記マイコンOFFモード設定から前記通常モード設定に改めることを特徴とする、
車載用ECU。
A microcomputer that is in an operating state when operating power is supplied, and that sets a microcomputer OFF mode when a predetermined condition is satisfied during operation;
A power supply unit for supplying the operating power to the microcomputer at the time of normal mode setting, and stopping the supply of the operating power to the microcomputer at the time of setting the microcomputer OFF mode;
At the time of setting the microcomputer OFF mode, an external change detection unit that detects a start factor change to be a start factor of the microcomputer in external input information indicating external input content related to the vehicle and outputs a detection signal;
The power supply unit is changed from the microcomputer OFF mode setting to the normal mode setting when the detection signal indicates the activation factor change of the external input information when the microcomputer OFF mode is set.
In-vehicle ECU.
請求項1記載の車載用ECUであって、
前記電源部は、
外部の通信線との送受信が可能な通信部を含み、
前記マイコンは前記通信部とデータの授受が可能であり、
前記所定条件は、前記通信部の受信内容に関する第1の条件と、前記マイコン内部における第2の条件との組合せ条件を含み、
前記通信部は前記マイコンOFFモードから前記通常動作モードに設定変更可能なモード変換機能を有する、
車載用ECU。
An in-vehicle ECU according to claim 1,
The power supply unit is
Includes a communication unit that can send and receive with external communication lines,
The microcomputer can exchange data with the communication unit,
The predetermined condition includes a combination condition of a first condition related to the received content of the communication unit and a second condition inside the microcomputer,
The communication unit has a mode conversion function capable of changing the setting from the microcomputer OFF mode to the normal operation mode.
In-vehicle ECU.
請求項1あるいは請求項2記載の車載用ECUであって、
前記外部入力情報は複数の部分外部入力情報を含み、
前記外部変化検出部は、
各々が動作状態時に対応する前記部分外部入力情報において前記起動要因変化を検出して部分検出信号を出力する複数の部分外部変化検出部と
各々が対応する前記部分検出信号に対し信号変換処理を行う少なくとも一つの検出信号変換部とを含み、
前記検出信号は、前記信号変換処理後の前記複数の部分検出信号を含み、
前記信号変換処理後の前記複数の部分検出信号は、それぞれ互いに共通する所定の信号変化により、対応する前記部分外部入力情報の前記起動要因変化を指示する、
車載用ECU。
An in-vehicle ECU according to claim 1 or claim 2,
The external input information includes a plurality of partial external input information,
The external change detector is
A plurality of partial external change detection units that detect the activation factor change in the partial external input information corresponding to each operating state and output a partial detection signal, and perform signal conversion processing on the corresponding partial detection signal Including at least one detection signal converter,
The detection signal includes the plurality of partial detection signals after the signal conversion processing,
The plurality of partial detection signals after the signal conversion processing indicate the activation factor change of the corresponding partial external input information by a predetermined signal change common to each other,
In-vehicle ECU.
請求項1ないし請求項3記載の車載ECUであって、
前記マイコンは内部に不揮発性メモリを有し、前記外部入力情報を受け、前記マイコンOFFモード設定時に前記不揮発性メモリに前記外部入力情報を書込み、
前記マイコンは、前記動作電源の供給開始時において、新たに受ける前記外部入力情報と、不揮発性メモリから読み出した前記外部入力情報とを比較し、内容に変化が無い場合、前記マイコンOFFモード設定を行う、
車載用ECU。
An on-vehicle ECU according to claim 1 to claim 3,
The microcomputer has a nonvolatile memory inside, receives the external input information, writes the external input information to the nonvolatile memory when the microcomputer OFF mode is set,
The microcomputer compares the newly received external input information with the external input information read from the non-volatile memory at the start of supply of the operating power, and if there is no change in content, the microcomputer OFF mode setting is performed. Do,
In-vehicle ECU.
JP2010161900A 2010-07-16 2010-07-16 In-vehicle ECU Expired - Fee Related JP5640518B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010161900A JP5640518B2 (en) 2010-07-16 2010-07-16 In-vehicle ECU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010161900A JP5640518B2 (en) 2010-07-16 2010-07-16 In-vehicle ECU

Publications (2)

Publication Number Publication Date
JP2012020710A true JP2012020710A (en) 2012-02-02
JP5640518B2 JP5640518B2 (en) 2014-12-17

Family

ID=45775329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010161900A Expired - Fee Related JP5640518B2 (en) 2010-07-16 2010-07-16 In-vehicle ECU

Country Status (1)

Country Link
JP (1) JP5640518B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015164382A (en) * 2014-02-28 2015-09-10 トヨタ自動車株式会社 Power management device for vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015164382A (en) * 2014-02-28 2015-09-10 トヨタ自動車株式会社 Power management device for vehicle
US9973035B2 (en) 2014-02-28 2018-05-15 Toyota Jidosha Kabushiki Kaisha Power management device for vehicle

Also Published As

Publication number Publication date
JP5640518B2 (en) 2014-12-17

Similar Documents

Publication Publication Date Title
US8281167B2 (en) Electronic control apparatus provided with plural microcomputers for electronically controlling electronic devices mounted in vehicle
US8996927B2 (en) Electronic control device with watchdog timer and processing unit to diagnose malfunction of watchdog timer
CN107428297B (en) Vehicle control device and control method thereof
JP5609810B2 (en) Electronic equipment, image forming device
US9817707B2 (en) Controller for reducing power
US9145100B2 (en) In-vehicle ECU
JP4151566B2 (en) Microcomputer
JP5281448B2 (en) Electronic control device, abnormality monitoring method
KR102119766B1 (en) Controller for vehicle and operating method thereof
JP5640518B2 (en) In-vehicle ECU
JP2011093389A (en) Control system, electronic devices, control device, and method for starting devices
JP2006290162A (en) Control unit for automobile
US20070203624A1 (en) Electronic control unit
JP2009132366A (en) Switch control device for vehicle
US20150377204A1 (en) Vehicular electronic control unit
US20100164559A1 (en) Power-on circuit
JP4254683B2 (en) Comparator switching circuit
JP5769403B2 (en) Monitoring device and electronic device
JP5640508B2 (en) In-vehicle ECU
JP4730356B2 (en) Power control device
JP2010049356A (en) Parallel/serial conversion device, parallel/serial conversion system, parallel/serial conversion control method, parallel/serial conversion control program, and recording medium
JP5617826B2 (en) Vehicle control device
JP2000276267A (en) Electronic control unit for vehicle
JP6402798B2 (en) Control device for vehicle power window device
JP2014024439A (en) Electronic control device for vehicle

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130322

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140304

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140428

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141013

R150 Certificate of patent or registration of utility model

Ref document number: 5640518

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees