JP6153815B2 - Electronic control unit for automobile - Google Patents

Electronic control unit for automobile Download PDF

Info

Publication number
JP6153815B2
JP6153815B2 JP2013172150A JP2013172150A JP6153815B2 JP 6153815 B2 JP6153815 B2 JP 6153815B2 JP 2013172150 A JP2013172150 A JP 2013172150A JP 2013172150 A JP2013172150 A JP 2013172150A JP 6153815 B2 JP6153815 B2 JP 6153815B2
Authority
JP
Japan
Prior art keywords
power supply
overvoltage
reset
control device
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.)
Expired - Fee Related
Application number
JP2013172150A
Other languages
Japanese (ja)
Other versions
JP2015042072A (en
JP2015042072A5 (en
Inventor
堅一 星野
堅一 星野
小山 克也
克也 小山
光彦 渡部
光彦 渡部
裕史 栗本
裕史 栗本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems 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 Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2013172150A priority Critical patent/JP6153815B2/en
Publication of JP2015042072A publication Critical patent/JP2015042072A/en
Publication of JP2015042072A5 publication Critical patent/JP2015042072A5/ja
Application granted granted Critical
Publication of JP6153815B2 publication Critical patent/JP6153815B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Dc-Dc Converters (AREA)

Description

本発明は電源装置とマイクロコンピュータを備えた電子制御装置に係り、特に自動車の制御に使用するのに好適な自動車用の電子制御装置に関するものである。   The present invention relates to an electronic control device including a power supply device and a microcomputer, and more particularly to an electronic control device for an automobile suitable for use in controlling an automobile.

自動車の制御に使用される代表的な電子制御装置としては、内燃機関に供給される燃料量を制御する燃料噴射弁、空気量を制御する電子スロットル弁等の制御機器を制御する内燃機関用電子制御装置や、変速トランスミッション装置のクラッチ、変速用油圧電磁弁等の制御機器を制御するトランスミッション用電子制御装置が知られている。   As a typical electronic control device used for automobile control, an internal combustion engine electronic for controlling a control device such as a fuel injection valve for controlling the amount of fuel supplied to the internal combustion engine and an electronic throttle valve for controlling the amount of air is used. 2. Description of the Related Art There is known a transmission electronic control device that controls a control device, a control device such as a clutch of a speed change transmission device, and a speed change hydraulic solenoid valve.

そして、これらの電子制御装置においては、各制御機器を制御するための制御量を演算する演算装置としてマイクロコンピュータ(以下、CPUという)が使用されており、このCPUには車載バッテリから電力が供給されている。この車載バッテリの電圧はCPUの駆動電圧としては高すぎるので、車載バッテリの電圧をCPUの駆動電圧に適合させる電源装置(以下、電源ICという)がCPUと車載バッテリの間に設けられている。また、この電源ICとCPUは同一の基盤に載置されて接続されている。   In these electronic control devices, a microcomputer (hereinafter referred to as a CPU) is used as an arithmetic device for calculating a control amount for controlling each control device, and electric power is supplied to the CPU from an in-vehicle battery. Has been. Since the voltage of the in-vehicle battery is too high as a driving voltage for the CPU, a power supply device (hereinafter referred to as a power supply IC) that adapts the in-vehicle battery voltage to the driving voltage of the CPU is provided between the CPU and the in-vehicle battery. The power supply IC and the CPU are mounted and connected on the same base.

ところで、電源ICはCPUに供給する電源電圧を電源IC内部に備えた電源電圧検出機能によって監視しており、電源電圧が大きく変動する異常時には電源ICに内蔵された遮断回路、或いは外部の遮断回路によって電源電圧をCPUに供給するのを停止する機能を備えている。また、電源ICは、電源電圧が安定後(電圧が一定値に達してから所定時間経過後)にCPUのリセット信号を解除(すなわち、CPUのウェークアップを制御)しており、逆に、電源ICに内蔵された保護機能によって異常が検出された場合にはCPUをシャットダウンすることができるようになっている。   By the way, the power supply IC monitors the power supply voltage supplied to the CPU by the power supply voltage detection function provided in the power supply IC, and when the power supply voltage fluctuates greatly, an interruption circuit built into the power supply IC or an external interruption circuit Has a function of stopping the supply of the power supply voltage to the CPU. Further, the power supply IC releases the CPU reset signal (that is, controls the wake-up of the CPU) after the power supply voltage is stabilized (after a predetermined time has elapsed since the voltage reached a certain value). When an abnormality is detected by a protection function built in the CPU, the CPU can be shut down.

このような電源ICとCPUからなる電子制御装置は、例えば特開2007−135347号公報(特許文献1)に記載されているようなものが知られている。この特許文献1によれば、過電圧状態になると作動する回路によって電源電圧を低下させ、この電源電圧が所定の低電圧(低電圧側閾値)になるとCPUをシャットダウンすることが記載されている。   As such an electronic control device including a power supply IC and a CPU, a device described in, for example, Japanese Patent Application Laid-Open No. 2007-135347 (Patent Document 1) is known. According to Patent Document 1, it is described that a power supply voltage is lowered by a circuit that operates when an overvoltage state occurs, and the CPU is shut down when the power supply voltage reaches a predetermined low voltage (low voltage side threshold).

特開2007−135347号公報JP 2007-135347 A

ところで、電源ICに内蔵されている電源回路は、MOS-FETをON/OFFすることによって、車載バッテリから入力されるバッテリ電圧から任意の電源電圧を得るようにしているが、このMOS-FETのゲート電圧を制御する内部素子が入力端子からのサージ電圧や静電気などで故障した場合には、電源ICの出力は過電圧(最大で入力電圧と同じ)となることが想定される。しかしながら、電源ICにより生成された電源電圧がCPUに入力されると、CPUはこの電圧をA/D入力のリファレンス(判別用の基準電圧)として使用するため、入力された電圧が異常電圧(過電圧、低電圧)であるかを自己診断できなかった。   By the way, the power supply circuit built in the power supply IC obtains an arbitrary power supply voltage from the battery voltage inputted from the vehicle-mounted battery by turning on / off the MOS-FET. When an internal element that controls the gate voltage fails due to a surge voltage or static electricity from the input terminal, it is assumed that the output of the power supply IC becomes an overvoltage (maximum same as the input voltage). However, when the power supply voltage generated by the power supply IC is input to the CPU, the CPU uses this voltage as a reference for A / D input (reference voltage for determination), and thus the input voltage is an abnormal voltage (overvoltage). , Low voltage) could not be self-diagnosis.

また、従来の電源ICは出力電圧を自己監視していたが、電源ICには過電圧状態が発生したことをCPUに伝える機能がないものがほとんどであった。したがって、電源ICは出力電圧が過電圧であった場合に電源電圧の出力を停止し、電源電圧が低電圧側リセット閾値を下回ったことを検出してリセット信号を発生させてCPUをシャットダウンしていた。   In addition, although the conventional power supply IC self-monitors the output voltage, most of the power supply ICs do not have a function of notifying the CPU that an overvoltage state has occurred. Therefore, when the output voltage is an overvoltage, the power supply IC stops outputting the power supply voltage, detects that the power supply voltage has fallen below the low voltage side reset threshold, generates a reset signal, and shuts down the CPU. .

正常な状態でのシャットダウン時には、CPUはRAMに残されているエラー情報や次回の起動時に必要な情報(学習係数等)をバックアップメモリや外部の記録媒体(EEPROM)に退避することができる。しかしながら、上述したように、従来の電源ICには過電圧という異常状態をCPUに伝える機能がないものであるため、CPUは電源ICの過電圧状態を事前に認識することなくシャットダウンされていた。このため、CPUはRAMに残されているエラー情報や次回の起動時に必要な情報(学習係数等)をバックアップメモリや外部の記録媒体(EEPROM)に退避することができなかった。   When shutting down in a normal state, the CPU can save error information remaining in the RAM and information (learning coefficient, etc.) necessary for the next startup to a backup memory or an external recording medium (EEPROM). However, as described above, since the conventional power supply IC does not have a function of transmitting an abnormal state of overvoltage to the CPU, the CPU is shut down without recognizing the overvoltage state of the power supply IC in advance. For this reason, the CPU cannot save the error information remaining in the RAM and information (learning coefficient, etc.) necessary for the next startup to the backup memory or an external recording medium (EEPROM).

更に、CPUのシャットダウンは電子制御装置の動作停止を意味しており、これによって電子制御装置が制御している外部の制御機器の駆動が停止されると、自動車はリンプホームモードと呼ばれるハードウェアフェイル状態に移行する。ハードウェアフェイル状態は電子制御装置による制御ではなく、ハード的に特定の動作を維持して自動車として走行可能な状態にする制御である。例えば、トランスミッションのハードウェアが故障を生じると3速相当の変速比でトランスミッションの変速比を固定するといった制御を行うようにしている。これによって、少なくとも退避走行を行うことができる。   Further, the shutdown of the CPU means that the operation of the electronic control device is stopped, and when the driving of the external control device controlled by the electronic control device is stopped by this, the automobile fails in a hardware failure called limp home mode. Transition to the state. The hardware failure state is not control by the electronic control unit, but control for maintaining a specific operation in hardware so that the vehicle can run. For example, when the transmission hardware fails, control is performed such that the transmission gear ratio is fixed at a gear ratio equivalent to the third speed. Thereby, at least evacuation traveling can be performed.

しかしながら、現在の自動車の動作状態とハードウェアフェイル時の動作状態が大きく異なるほど、ハードウェアフェイル状態に移行した時の動作量の変化度合は大きくなる。例えば、トランスミッションのハードウェアフェイル時の動作状態が3速相当の変速比で固定されるように設定されている場合、現在の変速比が5速相当の変速比、時速60km/hで走行中であれば、ハードウェアフェイル状態に移行した時に自動車は急減速されることになって極めて危険である。例えば、この時にブレーキペダルを踏んでいないと、ブレーキランプが点灯していないので、後続車の運転者は急減速されたことを素早く判断できず追突に至るという状況が発生する恐れがある。   However, the greater the difference between the current operation state of the automobile and the operation state at the time of hardware failure, the greater the degree of change in the operation amount when shifting to the hardware failure state. For example, when the operation state at the time of hardware failure of the transmission is set to be fixed at a gear ratio equivalent to the third speed, the current gear ratio is a gear ratio equivalent to the fifth speed and the vehicle is traveling at a speed of 60 km / h. If so, the car will be decelerated abruptly when entering the hardware failure state, which is extremely dangerous. For example, if the brake pedal is not depressed at this time, since the brake lamp is not lit, the driver of the succeeding vehicle may not be able to quickly determine that the vehicle has suddenly decelerated and may cause a rear-end collision.

本発明の目的は、電源ICで生成される電源電圧が過電圧状態になった場合に、CPUがリセットされる前に、CPUがリセットに対応した必要な処理を実行することができる電子制御装置を提供することにある。   An object of the present invention is to provide an electronic control device capable of executing necessary processing corresponding to a reset before the CPU is reset when the power supply voltage generated by the power supply IC is in an overvoltage state. It is to provide.

本発明の特徴は、電源ICが電源電圧を監視して過電圧状態が生じると過電圧状態信号を発生し、CPUはこの過電圧状態信号の発生を検出すると自身がリセットされる前にリセットに対応した必要な処理を実行する、ところにある。   The feature of the present invention is that the power supply IC monitors the power supply voltage and generates an overvoltage state signal when an overvoltage state occurs. When the CPU detects the occurrence of the overvoltage state signal, the CPU needs to cope with the reset before resetting itself. There is a place to execute the processing.

本発明によれば、電源ICの電源電圧が過電圧状態となった時に、CPUはこの状態を事前に認識できるので、リセットされる前にCPUはリセットに対応した必要な処理を実行することができる。 According to the present invention, when the power supply voltage of the power supply IC becomes an overvoltage state, the CPU can recognize this state in advance, so that the CPU can execute necessary processing corresponding to the reset before being reset. .

本発明の一実施例になる電源ICとCPUを備えた電子制御装置の基本構成を示す構成図である。It is a block diagram which shows the basic composition of the electronic controller provided with the power supply IC and CPU which become one Example of this invention. 電源ICとCPUの動作を説明する主な信号の変化状態を示すタイミングチャート図である。It is a timing chart figure which shows the change state of the main signal explaining operation | movement of a power supply IC and CPU. 本発明になる電子制御装置の過電圧状態の対応を示す制御フローチャート図である。It is a control flowchart figure which shows a response | compatibility of the overvoltage state of the electronic controller which becomes this invention.

以下、本発明の実施形態について図面を用いて詳細に説明するが、本発明は以下の実施形態に限定されることなく、本発明の技術的な概念の中で種々の変形例や応用例をもその範囲に含むものである。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, the present invention is not limited to the following embodiments, and various modifications and application examples are included in the technical concept of the present invention. Is also included in the range.

図1は自動車用の電子制御装置10の構成を示しており、電子制御装置10は同一基板上に載置された電源IC12とCPU14を備えている。ここで、この電源IC12はCPU14の電源電圧の供給やシャットダウンなどのコントロール機能のあるIC及びASICを使用している。尚、これ以外にも種々の回路要素が設けられるが、ここでは省略している。   FIG. 1 shows a configuration of an electronic control device 10 for an automobile, and the electronic control device 10 includes a power supply IC 12 and a CPU 14 mounted on the same substrate. Here, the power supply IC 12 uses an IC and an ASIC having a control function such as supply of power supply voltage of the CPU 14 and shutdown. Various circuit elements other than these are provided, but are omitted here.

電源IC12は車載バッテリ(図示せず)と接続されており、車載バッテリからのバッテリ電圧VBを基に5V電源を生成する電源回路の出力端子16、CPU14のコア駆動電源を生成する電源回路の出力端子18を備えている。これらの電源回路はスイッチングレギュレータとして良く知られているので詳細な構成は省略している。尚、本実施例では5V電源とCPU14のコア電源を備えているが、CPU14の種類によっては単一の電源が使用される場合もある。   The power supply IC 12 is connected to an in-vehicle battery (not shown), an output terminal 16 of a power supply circuit that generates a 5V power supply based on a battery voltage VB from the in-vehicle battery, and an output of a power supply circuit that generates a core driving power supply for the CPU 14. A terminal 18 is provided. Since these power supply circuits are well known as switching regulators, a detailed configuration is omitted. In this embodiment, a 5V power source and a core power source for the CPU 14 are provided. However, depending on the type of the CPU 14, a single power source may be used.

また、電源IC12には5V電源の電源電圧の変化状態をモニターするモニター回路20が備えられている。このモニター回路20で検出された5V電源の電源電圧は図2で詳細に説明するが、各種の電圧閾値と比較されて各種の制御に利用されるものである。このモニター回路20も良く知られているので詳細な構成は省略している。   Further, the power supply IC 12 is provided with a monitor circuit 20 for monitoring the change state of the power supply voltage of the 5V power supply. The power supply voltage of the 5V power supply detected by the monitor circuit 20 will be described in detail with reference to FIG. 2, but is compared with various voltage thresholds and used for various controls. Since this monitor circuit 20 is also well known, a detailed configuration is omitted.

更に、電源IC12はCPU14のシャットダウンをコントロールするためのSTBY信号(スタンバイ信号)出力端子22、リセット信号出力端子24、及び電源IC12で生成される5V電源の過電圧状態をCPU14に認識させるための過電圧状態信号、ここでは過電圧状態フラグ端子26が備えられている。これらの出力は上述したモニター回路20でモニターされた5V電源の電源電圧の変化状態を基に、図示しない論理回路、或いはソフトウェアプログラムによって生成されるものである。本実施例では上述した出力を発生する機能があれば良いので、論理回路やソフトウェアプログラムに限定されないものである。   Further, the power supply IC 12 has an STBY signal (standby signal) output terminal 22 for controlling the shutdown of the CPU 14, a reset signal output terminal 24, and an overvoltage state for causing the CPU 14 to recognize an overvoltage state of the 5 V power generated by the power supply IC 12. A signal, here an overvoltage state flag terminal 26 is provided. These outputs are generated by a logic circuit (not shown) or a software program based on the change state of the power supply voltage of the 5V power supply monitored by the monitor circuit 20 described above. In the present embodiment, it is only necessary to have a function for generating the output described above, and therefore, the present invention is not limited to a logic circuit or a software program.

電源IC12の5V電源の電源電圧、CPU14のコア駆動電源5の電源電圧、CPU14のシャットダウンをコントロールするためのSTBY信号、リセット信号、及び過電圧状態信号はCPU14に送られるように、電源IC12とCPU14は電源線及び信号線で接続されている。尚、本実施例では過電圧状態信号は過電圧フラグとして電源IC12の内部メモリに記憶されているので、CPU14から過電圧状態フラグ端子26を介して読み込むこともでき、更には、シリアル・ペリフェラル・インタフェース(SPI)を用いて、CPU14に過電圧状態信号を送ることもできる。CPU14はこの過電圧状態信号がくると、この過電圧状態を把握することができるようになる。   The power supply IC 12 and the CPU 14 are supplied with the power supply voltage of the 5V power supply of the power supply IC 12, the power supply voltage of the core drive power supply 5 of the CPU 14, the STBY signal for controlling the shutdown of the CPU 14, the reset signal, and the overvoltage state signal. They are connected by power lines and signal lines. In this embodiment, since the overvoltage state signal is stored as an overvoltage flag in the internal memory of the power supply IC 12, it can also be read from the CPU 14 via the overvoltage state flag terminal 26, and further, the serial peripheral interface (SPI). ) To send an overvoltage state signal to the CPU 14. When this overvoltage state signal is received, the CPU 14 can grasp this overvoltage state.

CPU14には各種のスイッチ(SW)入力、回転センサのようなパルス入力、空気量センサのようなアナログセンサのセンサ入力、制御機器の出力モニター入力等が入力されている。アナログ入力はA/D変換されて取り込まれており、これらの信号を用いてCPU14は所定の制御プログラムに基づき制御量を演算する。演算された制御量は図示していない出力回路に送られ、制御機器を動作する動作量に変換されて制御機器を動作させる。   The CPU 14 receives various switch (SW) inputs, pulse inputs such as a rotation sensor, sensor inputs of an analog sensor such as an air amount sensor, and output monitor inputs of control devices. The analog input is A / D converted and taken in, and using these signals, the CPU 14 calculates a control amount based on a predetermined control program. The calculated control amount is sent to an output circuit (not shown) and is converted into an operation amount for operating the control device to operate the control device.

また、CPU14にはRAM28が内蔵されているか、或いは外付けの回路部品として実装されており、このRAM28は電子制御装置10の動作中に入力信号のモニター値や演算結果などを絶えず保持している。RAM28に記憶されているエラー情報や次回起動時に必要な学習係数等の各情報は、CPU14が正常にシャットダウンされた時にはバックアップメモリや外部記録媒体(EEPROM)に退避されるものである。   Further, the CPU 14 has a built-in RAM 28 or is mounted as an external circuit component, and the RAM 28 constantly holds a monitor value of the input signal and a calculation result during the operation of the electronic control unit 10. . Each information such as error information stored in the RAM 28 and a learning coefficient required at the next start-up is saved in a backup memory or an external recording medium (EEPROM) when the CPU 14 is normally shut down.

ところが、上述したように従来の電源IC12には過電圧という異常状態をCPU14に伝える機能がないため、CPU14は電源IC12の過電圧状態を事前に認識することなくリセット信号によってシャットダウンされていた。このため、RAM28に残されているエラー情報や次回の起動時に必要な学習係数等の情報をバックアップメモリや外部の記録媒体(EEPROM)の不揮発性メモリに退避することができなかった。また、CPU14がリセットされると自動車はリンプホームモードと呼ばれるハードウェアフェイル状態に移行する。しかしながら、現在の動作状態とハードウェアフェイル時の動作状態が大きく異なると、ハードウェアフェイル状態に移行した時の動作量の変化が大きく、例えば、トランスミッションのハードウェアフェイル時の動作状態が3速相当の変速比で固定されている場合、現在の変速比が5速相当の変速比、時速60km/hで走行中であれば、ハードウェアフェイル状態に移行した時に自動車は急減速されることになって極めて危険である。   However, as described above, since the conventional power supply IC 12 does not have a function of transmitting the abnormal state of overvoltage to the CPU 14, the CPU 14 is shut down by a reset signal without recognizing the overvoltage state of the power supply IC 12 in advance. For this reason, error information remaining in the RAM 28 and information such as a learning coefficient required at the next start-up cannot be saved in a backup memory or a non-volatile memory of an external recording medium (EEPROM). Further, when the CPU 14 is reset, the automobile shifts to a hardware fail state called a limp home mode. However, if the current operating state and the operating state at the time of hardware failure are significantly different, the change in the amount of operation at the time of transition to the hardware fail state is large. For example, the operating state at the time of hardware failure of the transmission corresponds to the third speed If the current gear ratio is traveling at a gear ratio equivalent to the fifth speed and traveling at 60 km / h, the vehicle will be decelerated suddenly when shifting to the hardware fail state. It is extremely dangerous.

このような現象を回避するため、本実施例では電源IC12に設けられたモニター回路20によって過電圧状態を検出すると、電源IC12は過電圧状態信号である過電圧フラグを立て、これを電源IC12の所定メモリ領域に記憶するように動作する。電源IC12によって過電圧フラグが立つと、CPU14はリセット信号の発生する前にこれを認識することができる。したがって、電源IC12からリセット信号が到来する前に、CPU14はリセットに対応した必要な処理を実行することができる。   In order to avoid such a phenomenon, in this embodiment, when an overvoltage state is detected by the monitor circuit 20 provided in the power supply IC 12, the power supply IC12 sets an overvoltage flag which is an overvoltage state signal, and this is set in a predetermined memory area of the power supply IC12. Operates to memorize. When the overvoltage flag is set by the power supply IC 12, the CPU 14 can recognize this before the reset signal is generated. Therefore, before the reset signal arrives from the power supply IC 12, the CPU 14 can execute necessary processing corresponding to the reset.

このリセットに対応する処理とは、一つにはRAM28に残されているエラー情報や次回の起動時に必要な学習係数等の情報を不揮発性メモリであるバックアップメモリや外部の記録媒体(EEPROM)に退避することである。更には、ハードウェアフェイル状態の動作量に対して、現在の動作量が所定以上の大きさであれば、現在の動作量からハードウェアフェイル状態の動作量に向けて動作量を徐々に小さくしていくか、或いは段階的に小さくしていくソフトランディング制御処理制御を行うことである。例えば、トランスミッションであれば、ハードウェアフェイル状態の変速比を3速とすると、現在の変速比が5速で運転されている場合は直ぐに3速に移行せず、4速を経て3速に移行するようにして衝撃を緩和することができるようになる。また、内燃機関であれば、ハードウェアフェイル状態のスロットル弁の開度をアイドル開度とすると、現在のスロットル弁の開度が3/4スロットル開度(アイドル開度から全開開度までの3/4の開度)で運転されている場合は直ぐにアイドル開度に移行せず、徐々に、或いは段階的にスロットル開度を小さくしてアイドル開度に移行するようにして、急激にエンジンブレーキが発生するのを緩和することができるようになる。   The processing corresponding to this reset is, for example, error information remaining in the RAM 28 and information such as a learning coefficient necessary for the next start-up to a backup memory or an external recording medium (EEPROM) as a nonvolatile memory. It is to evacuate. Furthermore, if the current operation amount is greater than or equal to a predetermined amount with respect to the operation amount in the hardware fail state, the operation amount is gradually decreased from the current operation amount toward the operation amount in the hardware fail state. It is to perform soft landing control processing control that is reduced or gradually reduced. For example, in the case of a transmission, assuming that the gear ratio in the hardware failure state is 3rd speed, if the current gear ratio is operating at 5th speed, it does not immediately shift to 3rd speed but shifts to 4th speed to 3rd speed. As a result, the impact can be reduced. In the case of an internal combustion engine, if the opening degree of the throttle valve in the hardware failure state is an idle opening degree, the current opening degree of the throttle valve is 3/4 throttle opening degree (3 from the idling opening degree to the fully opened opening degree). If the engine is being operated at an opening of / 4, the engine does not immediately shift to the idle opening, but gradually or gradually reduces the throttle opening to shift to the idle opening so that the engine brakes suddenly. Can be mitigated.

以上のような動作を行う電源IC12の詳細な動作タイミングチャートを図2に基づき説明する。尚、図2において、左側にCPU14の動作に関係する電圧を区分して示している。例えば、0V〜4.9Vは低電圧側でのリセットを行う電圧範囲であり、電源電圧がリセット解除閾値である4.9Vを下回るように低下してくるとCPU14のリセットを行うものである。また、4.9V〜5.1VはCPU14を正常に動作させる電圧範囲であり、この範囲に電源電圧があるとCPU14は通常の動作を行うようになっている。5.1V〜6Vは電源電圧を補償しない過電圧側でのリセットを行う電圧範囲であり、電源電圧が過電圧検知閾値である5.1Vを上回るように上昇してくるとCPU14のリセットを行うものである。尚、この場合は電源電圧が所定時間だけこの範囲に入った場合にリセット信号を発生するものである。更に、電源電圧が異常に高くなって過電圧保護閾値である6V以上の過電圧になると、CPU14の機能を保証できないので直ぐにCPU14にリセット信号を送ってCPU14をリセットするものである。   A detailed operation timing chart of the power supply IC 12 performing the above operation will be described with reference to FIG. In FIG. 2, the voltages related to the operation of the CPU 14 are shown separately on the left side. For example, 0V to 4.9V is a voltage range for resetting on the low voltage side, and the CPU 14 is reset when the power supply voltage falls below 4.9V which is a reset release threshold. Further, 4.9V to 5.1V is a voltage range in which the CPU 14 operates normally. When the power supply voltage is within this range, the CPU 14 performs normal operation. 5.1V to 6V is a voltage range for resetting on the overvoltage side that does not compensate for the power supply voltage. When the power supply voltage rises above the overvoltage detection threshold value of 5.1V, the CPU 14 is reset. is there. In this case, a reset signal is generated when the power supply voltage enters this range for a predetermined time. Further, if the power supply voltage becomes abnormally high and becomes an overvoltage of 6 V or more which is an overvoltage protection threshold, the function of the CPU 14 cannot be guaranteed, so a reset signal is immediately sent to the CPU 14 to reset the CPU 14.

図2において、電源IC12にバッテリ電圧VBが供給されると、電源IC12は内部の電源回路の動作を開始して電圧出力を発生し、この電圧はモニター回路20でモニターされる。モニターされた電圧出力は上記した電圧閾値と比較される。   In FIG. 2, when the battery voltage VB is supplied to the power supply IC 12, the power supply IC 12 starts the operation of the internal power supply circuit to generate a voltage output, and this voltage is monitored by the monitor circuit 20. The monitored voltage output is compared to the voltage threshold described above.

電源IC12の電源回路によって電圧出力が上昇していき『A』点に示すリセット解除閾値に達すると、これに応答してCPU3のSTBY信号が出力されてCPU14はウェークアップ状態とされ、その後にリセットを解除するリセット解除信号が出力される。ここで、リセット解除信号はリセット信号を反転させたものであり、解除状態を『1』、リセット状態を『0』とする2値信号である。本実施例ではリセット解除閾値に達してから、所定時間(パワーオンリセット時間)の経過後にCPU14のリセットを解除するものである。尚、このパワーオンリセット時間を設定しないで直ぐにCPU14のリセットを解除する場合もある。   When the voltage output rises by the power supply circuit of the power supply IC 12 and reaches the reset release threshold value indicated by the “A” point, the STBY signal of the CPU 3 is output in response to this, and the CPU 14 enters the wake-up state, and then resets. A reset release signal to be released is output. Here, the reset release signal is an inverted version of the reset signal, and is a binary signal having a release state of “1” and a reset state of “0”. In this embodiment, the reset of the CPU 14 is canceled after a predetermined time (power-on reset time) has elapsed since reaching the reset cancellation threshold. Note that the reset of the CPU 14 may be canceled immediately without setting the power-on reset time.

リセットが解除されると、CPU14は正常に動作されることになる。CPU14が正常に動作している状態で、何らかの原因で電圧出力が上昇していき『B』点に示す過電圧検知閾値に達すると、電源IC12は過電圧状態と判断して電源IC12に新たに設けた過電圧カウンタのカウントを開始すると同時に過電圧フラグを立てる。ただ、この時の過電圧フラグは直ちにCPU14によって使用されるものではなく、後述するように過電圧カウンタのオーバーフローによって過電圧フラグが正式に立って有効と認識されるようになっている。   When the reset is released, the CPU 14 operates normally. When the CPU 14 is operating normally and the voltage output rises for some reason and reaches the overvoltage detection threshold indicated by the “B” point, the power supply IC 12 is determined to be in an overvoltage state and is newly provided in the power supply IC12. The overvoltage flag is set simultaneously with the start of counting of the overvoltage counter. However, the overvoltage flag at this time is not immediately used by the CPU 14, but, as will be described later, the overvoltage flag is officially recognized as valid by the overflow of the overvoltage counter.

過電圧カウンタがカウントを継続している間に、電圧出力が過電圧検知閾値を下回って『C』点で正常状態に復帰すると、過電圧カウンタがオーバーフローしていないので過電圧カウンタのカウントが停止されて過電圧カウンタはクリアされる。これに応答して過電圧フラグもクリアされることになる。このため、CPU14は過電圧状態と認識しないでそのまま動作を継続する。   While the overvoltage counter continues counting, if the voltage output falls below the overvoltage detection threshold and returns to the normal state at the “C” point, the overvoltage counter is not overflowed, so the overvoltage counter is stopped and the overvoltage counter is stopped. Is cleared. In response to this, the overvoltage flag is also cleared. For this reason, the CPU 14 continues to operate without being recognized as an overvoltage state.

次に、再び、何らかの原因で電圧出力が上昇していき『D』点に示す過電圧検知閾値に達すると、電源IC12は過電圧状態と判断して再び過電圧カウンタのカウントを開始すると同時に過電圧フラグを立てる。この状態で電圧出力が出力補償しない電圧範囲に依然としてある場合は、過電圧カウンタは引き続きカウントを継続しており、所定の時間を経過して過電圧カウンタがオーバーフローすると過電圧フラグは有効として確定される。これと同時にSTBY信号を立ち下げ、この立ち下げ信号はCPU14に送られる。同時に『E』点に示すように電源IC12の電源回路はその動作を停止される。この時には過電圧カウンタはオーバーフローしているので、過電圧フラグは先の『C』点での説明とは逆にクリアされないで、有効と判断されてその状態を保っている。   Next, when the voltage output rises again for some reason and reaches the overvoltage detection threshold value indicated by the “D” point, the power supply IC 12 determines that it is in an overvoltage state, starts counting of the overvoltage counter again, and sets an overvoltage flag at the same time. . In this state, if the voltage output is still in the voltage range where output compensation is not performed, the overvoltage counter continues to count, and the overvoltage flag is determined to be valid when the overvoltage counter overflows after a predetermined time has elapsed. At the same time, the STBY signal is lowered, and this fall signal is sent to the CPU 14. At the same time, as indicated by the “E” point, the power supply circuit of the power supply IC 12 is stopped. At this time, since the overvoltage counter overflows, the overvoltage flag is not cleared contrary to the explanation at the point “C”, and is determined to be valid and maintains its state.

そして、CPU14は確定された過電圧フラグが立っていることを検出すると、CPU14は過電圧によるリセット信号が到来すると見做して、リセットに対応した必要な処理を実行する。実際にはSTBY信号の立ち下げによって、CPU14は正常終了(セルフシャット動作)と同じ動作を行うことができる。これによってリセットに対応する処理を行うことができる。例えば、RAM28に残されているエラー情報や次回の起動時に必要な学習係数等の情報をバックアップメモリや外部の記録媒体(EEPROM)に退避している。また、現在の動作量からハードウェアフェイル状態の動作量に向けて制御機器の動作量を少なくしていくソフトランディング制御処理制御を実行する。具体的には先に述べたように、トランスミッションであれば、現在の変速比が5速で運転されている場合は直ぐに3速に移行せず、4速を経て3速に移行するようにし、内燃機関であれば、現在のスロットル弁の開度が3/4スロットル開度で運転されている場合は徐々に、或いは段階的にスロットル開度を小さくしてアイドル開度に移行するようにしている。   When the CPU 14 detects that the confirmed overvoltage flag is set, the CPU 14 assumes that a reset signal due to the overvoltage has arrived, and executes necessary processing corresponding to the reset. Actually, the CPU 14 can perform the same operation as the normal termination (self-shut operation) by the fall of the STBY signal. As a result, processing corresponding to the reset can be performed. For example, error information remaining in the RAM 28 and information such as a learning coefficient necessary for the next activation are saved in a backup memory or an external recording medium (EEPROM). Also, soft landing control processing control is executed to reduce the operation amount of the control device from the current operation amount toward the operation amount in the hardware fail state. Specifically, as described above, in the case of a transmission, if the current gear ratio is being operated at the fifth speed, the gear shifts to the third speed via the fourth speed instead of immediately shifting to the third speed, In the case of an internal combustion engine, if the current throttle valve opening is operated at ¾ throttle opening, gradually or stepwise reduce the throttle opening to shift to the idle opening. Yes.

ここで、過電圧カウンタがオーバーフローすると電源IC12の電源回路はその動作を停止されるので、電圧出力が徐々に低下していくことになる。電圧出力が『F』点で低電圧リセット解除閾値を下回ることで、ここで初めてリセット解除信号が立下り、これによってCPU14をリセットすることになる。これによってCPU14はシャットダウン状態となり、電子制御装置10はハードウェアフェイル状態に移行してリンプホームモードを実行することになる。したがって、『E』点と『F』点の間の時間が、CPU14によってRAM28の情報退避処理や、ソフトランディング制御処理を実行する時間となる。   Here, when the overvoltage counter overflows, the operation of the power supply circuit of the power supply IC 12 is stopped, so that the voltage output gradually decreases. When the voltage output falls below the low voltage reset release threshold at the “F” point, the reset release signal falls for the first time here, thereby resetting the CPU 14. As a result, the CPU 14 enters a shutdown state, and the electronic control unit 10 shifts to a hardware failure state and executes a limp home mode. Therefore, the time between the “E” point and the “F” point is the time for the CPU 14 to execute the information saving process of the RAM 28 and the soft landing control process.

このように、過電圧カウンタを設けることによって、『B』点と『C』点の間で示した瞬間的な過電圧状態では不必要なリセットを回避することができ、『D』点と『F』点の間で示した長い過電圧状態を識別することでCPU14をリセットすることができるようになる。尚、過電圧カウンタのオーバーフロー時間は電源IC12やCPU14の仕様によって適切に決定されることが重要である。   Thus, by providing the overvoltage counter, unnecessary reset can be avoided in the instantaneous overvoltage state shown between the “B” point and the “C” point, and the “D” point and the “F” point can be avoided. The CPU 14 can be reset by identifying the long overvoltage condition indicated between the points. It is important that the overflow time of the overvoltage counter is appropriately determined according to the specifications of the power supply IC 12 and the CPU 14.

上述しているように過電圧フラグは電源IC12内部の過電圧カウンタにより時間管理されており、電圧出力が一定時間以内に正常範囲に復帰した場合には過電圧カウンタと共にクリアされる。また、過電圧カウンタがオーバーフローした場合では、リセット解除信号が立ち上がるとクリアされる。   As described above, the overvoltage flag is time-controlled by the overvoltage counter in the power supply IC 12 and is cleared together with the overvoltage counter when the voltage output returns to the normal range within a certain time. When the overvoltage counter overflows, it is cleared when the reset release signal rises.

尚、電源IC12とCPU14がSPI通信を行うような構成を採用している場合は、過電圧フラグをCPU14がSPI通信を介して受信してからCPU14の内部タイマで過電圧カウンタに変えてカウントすることが可能である。また、SPI通信を行っていることから、CPU14によるRAM28の情報退避処理や、ソフトランディング制御処理の実行完了を示す信号によって電源IC12は過電圧フラグをクリアするようにできる。   If the power supply IC 12 and the CPU 14 are configured to perform SPI communication, the CPU 14 may receive the overvoltage flag via the SPI communication and then count it by using the internal timer of the CPU 14 instead of the overvoltage counter. Is possible. Further, since the SPI communication is performed, the power supply IC 12 can clear the overvoltage flag by a signal indicating that the CPU 14 saves the information in the RAM 28 or the execution of the soft landing control process is completed.

次に、リトライ処理によって電源IC12の電源回路の電圧出力が『G』点で出始め、『H』点で低電圧リセット解除閾値に達すると、これに応答してCPU3のSTBY信号が再び出力されてCPU14はウェークアップ状態とされ、同様に所定時間後にリセット解除信号が出力される。リセットが解除されると、CPU14は正常に動作されることになる。   Next, the voltage output of the power supply circuit of the power supply IC 12 starts to be output at the “G” point by the retry process, and when the low voltage reset release threshold is reached at the “H” point, the STBY signal of the CPU 3 is output again in response. The CPU 14 is in a wake-up state, and similarly, a reset release signal is output after a predetermined time. When the reset is released, the CPU 14 operates normally.

このとき、電源IC12は過電圧フラグを立てた状態を維持しており、CPU14のリセット解除後の初期化動作で、CPU14はリセットの発生の事由として過電圧状態に陥ったというエラー情報をRAM28のエラーコードエリアに書き出すことになる。   At this time, the power supply IC 12 maintains the state in which the overvoltage flag is set. In the initialization operation after the reset of the CPU 14 is released, the CPU 14 indicates error information indicating that the CPU 14 has entered the overvoltage state as a reason for the occurrence of reset. Will be written to the area.

そして、CPU14が正常に動作している状態で、再び何らかの原因で電圧出力が上昇していき『I』点で過電圧検知閾値に達すると、電源IC12は過電圧状態と判断して過電圧カウンタのカウントを開始すると同時に過電圧フラグを立てる。ここまでは先の説明と同様である。   When the CPU 14 is operating normally and the voltage output rises again for some reason and reaches the overvoltage detection threshold at the “I” point, the power supply IC 12 determines that it is in an overvoltage state and counts the overvoltage counter. Set the overvoltage flag at the same time as starting. The process up to this point is the same as described above.

しかしながら、今回の異常状態は速い速度で電圧出力が上昇しているため、過電圧カウンタがオーバーフローする時間より前に、電圧出力が『J』点で過電圧保護閾値に達している。このため、直ぐに電源IC12の電源回路はその動作を停止される。このように過電圧カウンタがオーバーフローしていなくても電源IC12の電源回路の動作を停止するのはCPU14の保護を行うためである。   However, since the voltage output rises at a high speed in this abnormal state, the voltage output reaches the overvoltage protection threshold at the point “J” before the time when the overvoltage counter overflows. For this reason, the operation of the power supply circuit of the power supply IC 12 is immediately stopped. Even if the overvoltage counter does not overflow in this way, the operation of the power supply circuit of the power supply IC 12 is stopped in order to protect the CPU 14.

『J』点で電圧出力が過電圧保護閾値を越えると、これに応答してSTBY信号を立ち下げ、この立ち下げ信号はCPU14に送られる。同時に電源IC12の電源回路はその動作を停止され、過電圧カウンタはこれに応答してクリアされている。一方、過電圧保護閾値を越えていることを条件に過電圧フラグはクリアされないでその状態を保っている。そして、CPU14はこの過電圧フラグが立っていることを検出すると、CPU14は過電圧によるリセット信号が到来すると見做して、リセットに対応した必要な処理を実行する。この場合もSTBY信号がCPU14に送られるので、CPU14によってRAM28の情報退避処理や、ソフトランディング制御処理が実行されることになる。   When the voltage output exceeds the overvoltage protection threshold at the point “J”, the STBY signal is lowered in response to this, and this fall signal is sent to the CPU 14. At the same time, the operation of the power supply circuit of the power supply IC 12 is stopped, and the overvoltage counter is cleared in response. On the other hand, on the condition that the overvoltage protection threshold has been exceeded, the overvoltage flag is not cleared and remains in that state. When the CPU 14 detects that the overvoltage flag is set, the CPU 14 assumes that a reset signal due to the overvoltage has arrived, and executes necessary processing corresponding to the reset. Also in this case, since the STBY signal is sent to the CPU 14, the CPU 14 executes information saving processing in the RAM 28 and soft landing control processing.

そして、電源IC12の電源回路による電圧出力は徐々に低下しており、電圧出力が『K』点で低電圧リセット解除閾値を下回ることでリセット解除信号が立ち下り、これによってCPU14をリセットすることになる。これによってCPU14はシャットダウン状態となり、電子制御装置10はハードウェアフェイル状態に移行してリンプホームモードを実行することになる。したがって、上述したように、『J』点と『K』点の間の時間がCPU14によってRAM28の情報退避処理や、ソフトランディング制御処理を実行する時間となる。   Then, the voltage output by the power supply circuit of the power supply IC 12 is gradually decreased. When the voltage output falls below the low voltage reset release threshold at the “K” point, the reset release signal falls, thereby resetting the CPU 14. Become. As a result, the CPU 14 enters a shutdown state, and the electronic control unit 10 shifts to a hardware failure state and executes a limp home mode. Therefore, as described above, the time between the “J” point and the “K” point is the time for the CPU 14 to execute the information saving process of the RAM 28 and the soft landing control process.

次に、リトライ処理によって電源IC12の電源回路の電圧出力が『L』点で出始め、『M』点でリセット解除閾値に達すると、これに応答してCPU3のSTBY信号が再び出力されてCPU14はウェークアップ状態とされ、同様に所定時間後にリセット解除信号が出力される。リセットが解除されるとCPU14は正常に動作されることになる。このとき、先の説明と同様に電源IC12は過電圧フラグを立てた状態を維持しており、CPU14のリセット解除後の初期化動作で、CPU14はリセットの発生の事由として、過電圧保護閾値を越えた過電圧状態に陥ったというエラー情報をRAM28のエラーコードエリアに書き出すことになる。『E』点でのエラーコードと『J』点でのエラーコードはその発生事由が異なっていることから異なったエラーコードとなる。   Next, the voltage output of the power supply circuit of the power supply IC 12 starts to be output at the “L” point by the retry process, and when the reset release threshold is reached at the “M” point, the STBY signal of the CPU 3 is output again in response to this, and the CPU 14 Is in a wake-up state, and similarly, a reset release signal is output after a predetermined time. When the reset is released, the CPU 14 operates normally. At this time, the power supply IC 12 maintains the state in which the overvoltage flag is set as described above, and the CPU 14 exceeds the overvoltage protection threshold as a cause of the reset in the initialization operation after the reset release of the CPU 14. Error information indicating that an overvoltage state has occurred is written in the error code area of the RAM 28. The error code at the “E” point and the error code at the “J” point are different from each other because of their different reasons.

CPU14が正常に動作している状態で正規に電源遮断の信号が到来すると、電源IC12は電源回路の動作を停止して電圧出力が徐々に低下していくことになる。電圧出力が『N』点で低電圧リセット解除閾値を下回ることでリセット解除信号が立ち下り、これによってCPU14をリセットすることになる。これによってCPU14はシャットダウン状態となり、正常にその動作を終了することになる。   When the power supply cutoff signal arrives normally while the CPU 14 is operating normally, the power supply IC 12 stops the operation of the power supply circuit, and the voltage output gradually decreases. When the voltage output falls below the low voltage reset release threshold at the “N” point, the reset release signal falls, and thereby the CPU 14 is reset. As a result, the CPU 14 enters a shutdown state and normally ends its operation.

このように、本実施例によれば、電源IC12が電源電圧を監視して過電圧状態が所定時間以上継続して発生していると判断すると過電圧フラグを立て、CPU14はこの過電圧フラグによってリセットに対応した必要な処理を実行するように動作するので、RAM28の情報退避処理やソフトランディング制御処理を実行してシャットダウン状態に移行することができる。   As described above, according to this embodiment, when the power supply IC 12 monitors the power supply voltage and determines that the overvoltage state has continuously occurred for a predetermined time or more, the overvoltage flag is set, and the CPU 14 responds to the reset by the overvoltage flag. Therefore, the information saving process and the soft landing control process of the RAM 28 can be executed to shift to the shutdown state.

次に図3に示したフローチャートによって、動作タイミングチャートに示した動作とリセット回数によるハードウェアフェイル状態への移行方法とについて簡単に説明する。尚、本実施例ではこのフローチャートは電源IC12で所定時間毎に起動されるものである。   Next, the operation shown in the operation timing chart and the method for shifting to the hardware fail state depending on the number of resets will be briefly described with reference to the flowchart shown in FIG. In the present embodiment, this flowchart is activated by the power supply IC 12 at predetermined intervals.

≪ステップ300≫
ステップ300は、電源IC12の電圧出力をモニターするステップであり、図2の電圧モニター出力に相当するものである。したがって、起動周期毎にその時の電圧出力が検出されるようになる。
<< Step 300 >>
Step 300 is a step of monitoring the voltage output of the power supply IC 12 and corresponds to the voltage monitor output of FIG. Therefore, the voltage output at that time is detected every start cycle.

≪ステップ301≫
ステップ301は、現在のモニターされた電圧出力が図2の過電圧検知閾値を越えたかどうかを判断するものである。過電圧検知閾値を越えていないとステップ302に進み、過電圧検知閾値を越えているとステップ304に進む。
<< Step 301 >>
Step 301 determines whether the current monitored voltage output exceeds the overvoltage detection threshold of FIG. If the overvoltage detection threshold is not exceeded, the process proceeds to step 302. If the overvoltage detection threshold is exceeded, the process proceeds to step 304.

≪ステップ302≫、≪ステップ303≫
ステップ301で過電圧検知閾値を越えていないと判断されると、ステップ302で過電圧カウンタをクリアし、ステップ303で過電圧フラグをクリアする。例えば、この場合は図2の『C』点での動作に対応する。
<< Step 302 >>, << Step 303 >>
If it is determined in step 301 that the overvoltage detection threshold has not been exceeded, the overvoltage counter is cleared in step 302 and the overvoltage flag is cleared in step 303. For example, this case corresponds to the operation at the point “C” in FIG.

≪ステップ304≫
ステップ301で過電圧検知閾値を越えていると判断されると、過電圧カウンタを動作させてカウントを開始すると同時に過電圧フラグを立てる。例えば、この場合は図2の『D』点での動作に対応する。
<< Step 304 >>
If it is determined in step 301 that the overvoltage detection threshold has been exceeded, the overvoltage counter is operated to start counting, and at the same time an overvoltage flag is set. For example, this case corresponds to the operation at the point “D” in FIG.

≪ステップ305≫
このステップ305では電圧出力が過電圧保護閾値を越えたかどうかを判断する。越えていなければステップ306に進み、越えていればステップ309に進む。
<< Step 305 >>
In step 305, it is determined whether the voltage output exceeds the overvoltage protection threshold. If not, the process proceeds to step 306. If it exceeds, the process proceeds to step 309.

≪ステップ306≫
ステップ305で過電圧保護閾値を越えていないと判断されると、このステップ306では過電圧カウンタがオーバーフローしたかどうかが判断される。過電圧カウンタがオーバーフローしていないと判断されると、再びステップ300に戻って同じ処理を実行する。一方、過電圧カウンタがオーバーフローしていると判断されるとステップ307に進む。例えば、この場合は図2の『E』点での動作に対応する。
<< Step 306 >>
If it is determined in step 305 that the overvoltage protection threshold is not exceeded, it is determined in step 306 whether the overvoltage counter has overflowed. If it is determined that the overvoltage counter has not overflowed, the process returns to step 300 and the same processing is executed. On the other hand, if it is determined that the overvoltage counter has overflowed, the routine proceeds to step 307. For example, this case corresponds to the operation at the point “E” in FIG.

≪ステップ307≫
ステップ306で過電圧カウンタがオーバーフローしていると判断されると、電源IC12の電源回路の動作を停止する。例えば、この場合は図2の『E』点での動作に対応する。更にこの後にステップ308、ステップ309、ステップ310を実行する。
<< Step 307 >>
If it is determined in step 306 that the overvoltage counter has overflowed, the operation of the power supply circuit of the power supply IC 12 is stopped. For example, this case corresponds to the operation at the point “E” in FIG. Further, step 308, step 309, and step 310 are executed thereafter.

≪ステップ308≫、≪ステップ309≫、≪ステップ310≫
ステップ308では過電圧カウンタのオーバーフローによってSTBY信号を立ち下げ、CPU14によってRAM28の情報退避処理や、ソフトランディング制御処理が実行され、その後にCPU14のリセットが行われる。更に、この間に電源IC12のリトライ処理が実行される。この場合は図2の『E』点〜『G』点での動作に対応する。
<< Step 308 >>, << Step 309 >>, << Step 310 >>
In step 308, the STBY signal is lowered due to the overflow of the overvoltage counter, the CPU 14 executes the information saving process of the RAM 28 and the soft landing control process, and then the CPU 14 is reset. Further, during this time, retry processing of the power supply IC 12 is executed. In this case, it corresponds to the operation at the points “E” to “G” in FIG.

一方、ステップ305で過電圧保護閾値を越えた場合は同様に、ステップ307で電源IC12の電源回路の動作を停止すると共に、ステップ308では直ちにSTBY信号を立ち下げてCPU14によってRAM28の情報退避処理や、ソフトランディング制御処理が実行され、その後にCPU14のリセットが行われる。更に、この間に電源IC12のリトライ処理が実行される。これらの処理が終了するとステップ311に進むことになる。この場合は図2の『J』点〜『L』点での動作に対応する。   On the other hand, if the overvoltage protection threshold is exceeded in step 305, the operation of the power supply circuit of the power supply IC 12 is stopped in step 307, and the STBY signal is immediately lowered in step 308. A soft landing control process is executed, and then the CPU 14 is reset. Further, during this time, retry processing of the power supply IC 12 is executed. When these processes are completed, the process proceeds to step 311. This case corresponds to the operations at the points “J” to “L” in FIG.

≪ステップ3011≫
ステップ311では電圧出力が過電圧状態になってリセットがかけられた回数を判断しており、規定回数、例えば10回リセットがかかった場合はステップ312に進み、リセットが10回以下ではステップ303に進んで同じ処理を実行する。
<< Step 3011 >>
In step 311, the number of times the voltage output is overvoltage and reset is determined. If the reset is applied a specified number of times, for example, 10 times, the process proceeds to step 312. The same process is executed with.

≪ステップ3012≫
ステップ311でリセットが10回以上かかったと判断されると、ステップ312では電源IC12が故障、或いは異常を生じる可能性が高いとしてハードウェアフェイル状態に移行する。具体的にはCPU12をスリープモードに移行させて処理を終了することで、ハードウェアフェイル状態に移行することができる。尚、ハードウェアフェイル状態に移行するためにはCPU12をスリープモードにする以外の方法を採用しても良い。要は、リセットが10回以上かかったと判断されると、電源IC12が故障、或いは異常を生じる可能性が高いとしてハードウェアフェイル状態に移行すれば良いものである。
<< Step 3012 >>
If it is determined in step 311 that the reset has taken 10 times or more, in step 312, the power supply IC 12 is considered to have a high possibility of failure or abnormality, and the hardware failure state is entered. Specifically, it is possible to shift to the hardware fail state by shifting the CPU 12 to the sleep mode and ending the processing. In order to shift to the hardware fail state, a method other than setting the CPU 12 to the sleep mode may be adopted. In short, if it is determined that the reset has occurred 10 times or more, it is only necessary to shift to the hardware fail state because the power supply IC 12 is likely to fail or malfunction.

以上のリセット回数の積算は電源IC12でおこなっているが、リセット回数はCPU14でも計数できるのでCPU14で行って、自身をスリープモードに移行させても良いものである。   The integration of the number of resets is performed by the power supply IC 12. However, since the number of resets can also be counted by the CPU 14, it may be performed by the CPU 14 to shift itself to the sleep mode.

このようにリセットが多くかかるにようになった場合は、電源IC12自体に重大な故障要因が存在している可能性が高いと見做される。つまり、電源IC12の出力は高精度にフィードバックされているため、外部でのハード的な接触等によりフィードバック範囲を超えているか、内部のフィードバック演算機能の障害が懸念されるからである。更に、CPU14の動作保証外の電圧においては、CPU4の出力値(演算結果)は保証されないと考えられるからである。したがって、上述のようなハードウェアフェイル状態に移行して対応するものである。   In this way, when many resets are required, it is considered that there is a high possibility that a serious failure factor exists in the power supply IC 12 itself. That is, since the output of the power supply IC 12 is fed back with high accuracy, there is a concern that the feedback range may be exceeded due to external hardware contact or the internal feedback calculation function may be impaired. Further, it is considered that the output value (calculation result) of the CPU 4 is not guaranteed at a voltage outside the operation guarantee of the CPU 14. Therefore, it corresponds to the hardware failure state as described above.

以上述べたように、本発明によれば、電源ICが電源電圧を監視して過電圧状態が生じると過電圧状態信号を発生し、CPUはこの過電圧状態信号の発生を検出すると自身がリセットされる前にリセットに対応したRAMの情報退避処理や、ソフトランディング制御処理といったリセットに必要な処理を実行することができるようになる。   As described above, according to the present invention, when the power supply IC monitors the power supply voltage and an overvoltage state occurs, an overvoltage state signal is generated, and when the CPU detects the occurrence of the overvoltage state signal, it resets itself. In addition, it becomes possible to execute processing necessary for reset such as information saving processing of RAM corresponding to reset and soft landing control processing.

10…電子制御装置、12…電源IC、14…CPU、16…5V電源端子、18…CPUコア電源、20…モニター回路、22…STBY信号出力端子、24…リセット信号出力端子、26…過電圧信号出力端子、28…RAM。   DESCRIPTION OF SYMBOLS 10 ... Electronic control device, 12 ... Power supply IC, 14 ... CPU, 16 ... 5V power supply terminal, 18 ... CPU core power supply, 20 ... Monitor circuit, 22 ... STBY signal output terminal, 24 ... Reset signal output terminal, 26 ... Overvoltage signal Output terminal, 28... RAM.

Claims (10)

電源回路を備えた電源装置と、前記電源装置から電源を供給され所定の動作を行うマイクロコンピュータを備えた自動車用の電子制御装置において、
前記電源装置は、前記マイクロコンピュータを制御するためのスタンバイ信号及びリセット信号を出力し、また前記電源回路の電圧出力が過電圧状態になるとこの状態を表す過電圧状態信号を生成して前記マイクロコンピュータに送信すると共に前記電源回路の動作を停止し、更に動作を停止された前記電源回路の電圧出力が所定のリセット解除電圧より低い低電圧状態になると前記リセット信号を前記マイクロコンピュータに送信し、前記マイクロコンピュータは、前記過電圧状態信号を検出して前記リセット信号を検出するまでの間に、リセットに対応した必要な処理を実行することを特徴とする自動車用の電子制御装置。
A power supply device including a power supply circuit, the electronic control device for a motor vehicle with a microcomputer that performs a predetermined operation is supplied with power from said power supply device,
The power supply sends the outputs standby signal and a reset signal for controlling a microcomputer, also in the microcomputer generates an overvoltage state signal representing this state when the voltage output of the power supply circuit is an overvoltage condition And the operation of the power supply circuit is stopped, and the reset signal is transmitted to the microcomputer when the voltage output of the power supply circuit that has been further stopped is in a low voltage state lower than a predetermined reset release voltage. The electronic control device for an automobile, wherein necessary processing corresponding to reset is executed between detection of the overvoltage state signal and detection of the reset signal .
請求項1に記載の自動車用の電子制御装置において、
前記電源装置は前記電源回路の電圧出力が第1の過電圧状態になるとカウントを開始する過電圧カウンタを備えており、前記過電圧カウンタがオーバーフローした際に前記過電圧状態信号が有効と判断され、これによって前記マイクロコンピュータは有効とされた前記過電圧状態信号を検出すると、自身がリセットされる前にリセットに対応した必要な処理を実行することを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to claim 1,
The power supply device includes an overvoltage counter that starts counting when the voltage output of the power supply circuit enters a first overvoltage state, and the overvoltage state signal is determined to be valid when the overvoltage counter overflows, thereby When the microcomputer detects the valid overvoltage state signal, the microcomputer executes necessary processing corresponding to the reset before the microcomputer is reset.
請求項2に記載の自動車用の電子制御装置において、
前記電源装置は前記電源回路の電圧出力が前記第1の過電圧状態より高い第2の過電圧状態になると前記過電圧状態信号が有効と判断され、これによって前記マイクロコンピュータは有効とされた前記過電圧状態信号を検出すると、自身がリセットされる前にリセットに対応した必要な処理を実行することを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to claim 2,
The power supply apparatus determines that the overvoltage state signal is valid when the voltage output of the power supply circuit is in a second overvoltage state that is higher than the first overvoltage state. When the vehicle is detected, an electronic control device for an automobile, which performs necessary processing corresponding to the reset before the device itself is reset.
請求項1乃至請求項3のいずれか1項に記載の自動車用の電子制御装置において、
前記過電圧状態信号は過電圧フラグであり、前記電源装置は前記過電圧フラグを記憶するメモリを備えており、前記マイクロコンピュータは前記過電圧フラグが確定していることを条件に、自身がリセットされる前にリセットに対応した必要な処理を実行することを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to any one of claims 1 to 3,
The overvoltage state signal is an overvoltage flag, and the power supply device includes a memory for storing the overvoltage flag, and the microcomputer is reset before it is reset on the condition that the overvoltage flag is established. An electronic control device for an automobile, which performs a necessary process corresponding to a reset.
請求項1乃至請求項4のいずれか1項に記載の自動車用の電子制御装置において、
前記マイクロコンピュータが実行するリセットに対応した必要な処理は、前記マイクロコンピュータのRAMに格納された情報を別の不揮発性メモリに退避させる退避処理であることを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to any one of claims 1 to 4,
An electronic control apparatus for an automobile, wherein the necessary processing corresponding to the reset executed by the microcomputer is a saving process for saving information stored in the RAM of the microcomputer to another nonvolatile memory.
請求項1乃至請求項4のいずれか1項に記載の自動車用の電子制御装置において、
前記マイクロコンピュータが実行するリセットに対応した必要な処理は、自動車の制御機器の動作量を、現在の動作量からハードウェアフェイル状態の動作量に段階的或いは徐々に近づくように制御するソフトランディング制御処理であることを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to any one of claims 1 to 4,
The necessary processing corresponding to the reset executed by the microcomputer is a soft landing control for controlling the operation amount of the control device of the vehicle so as to gradually or gradually approach the operation amount of the hardware failure state from the current operation amount. An electronic control device for an automobile characterized by being a process.
請求項1乃至請求項5のいずれか1項に記載の自動車用の電子制御装置において、
前記過電圧状態信号が有効となると、前記電源装置は前記スタンバイ信号を立ち下げて前記マイクロコンピュータのリセットまでの時間の間にリセットに対応した必要な処理を実行させることを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to any one of claims 1 to 5,
When the overvoltage state signal becomes valid, the power supply device causes the standby signal to fall and executes a necessary process corresponding to the reset during a time period until the microcomputer is reset. Control device.
請求項1乃至請求項6のいずれか1項に記載の自動車用の電子制御装置において、
前記マイクロコンピュータはリセット後の初期動作時にリセットの発生の事由として過電圧状態に陥ったというエラー情報を前記マイクロコンピュータのメモリのエラーコードエリアに書き出すことを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to any one of claims 1 to 6,
An electronic control device for an automobile, wherein the microcomputer writes error information indicating that the microcomputer has fallen into an overvoltage state as a cause of the occurrence of reset during an initial operation after resetting into an error code area of a memory of the microcomputer.
請求項1乃至請求項7のいずれか1項に記載の自動車用の電子制御装置において、
前記電源装置或いは前記マイクロコンピュータはリセットの回数が所定の回数を越えるとハードウェアフェイル状態へ移行させることを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to any one of claims 1 to 7,
An electronic control device for an automobile , wherein the power supply device or the microcomputer shifts to a hardware failure state when the number of resets exceeds a predetermined number.
請求項9に記載の自動車用の電子制御装置において、
前記マイクロコンピュータはスリープモードに移行することによってハードウェアフェイル状態へ移行することを特徴とする自動車用の電子制御装置。
The electronic control device for an automobile according to claim 9,
An electronic controller for an automobile, wherein the microcomputer shifts to a hardware fail state by shifting to a sleep mode.
JP2013172150A 2013-08-22 2013-08-22 Electronic control unit for automobile Expired - Fee Related JP6153815B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013172150A JP6153815B2 (en) 2013-08-22 2013-08-22 Electronic control unit for automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013172150A JP6153815B2 (en) 2013-08-22 2013-08-22 Electronic control unit for automobile

Publications (3)

Publication Number Publication Date
JP2015042072A JP2015042072A (en) 2015-03-02
JP2015042072A5 JP2015042072A5 (en) 2016-04-21
JP6153815B2 true JP6153815B2 (en) 2017-06-28

Family

ID=52695945

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013172150A Expired - Fee Related JP6153815B2 (en) 2013-08-22 2013-08-22 Electronic control unit for automobile

Country Status (1)

Country Link
JP (1) JP6153815B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018025929A (en) * 2016-08-09 2018-02-15 東芝メモリ株式会社 Semiconductor device and control method thereof
KR101826777B1 (en) * 2016-09-12 2018-03-22 현대오트론 주식회사 Apparatus and method for monitoring Microcontroller Unit
KR101977955B1 (en) * 2016-12-12 2019-05-13 현대오트론 주식회사 Apparatus and method for monitoring Microcontroller Unit
JP6684745B2 (en) * 2017-03-29 2020-04-22 キオクシア株式会社 Semiconductor device
JP6407366B1 (en) * 2017-07-04 2018-10-17 三菱電機株式会社 Power converter

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63297139A (en) * 1987-05-29 1988-12-05 Japan Electronic Control Syst Co Ltd Backup ram memory protection device for automobile control device
JPH02285925A (en) * 1989-04-26 1990-11-26 Fanuc Ltd Monitoring system for supply voltage
JPH0738146B2 (en) * 1989-09-20 1995-04-26 株式会社富士通ゼネラル Power failure detection / recovery circuit
JP3151532B2 (en) * 1991-06-19 2001-04-03 沖電気工業株式会社 Power seat control unit
JPH05308714A (en) * 1992-05-01 1993-11-19 Funai Denki Kenkyusho:Kk Method of monitoring supply voltage
JP4034506B2 (en) * 2000-09-22 2008-01-16 株式会社藤商事 Game machine
JP2002229688A (en) * 2001-02-01 2002-08-16 Sanyo Electric Co Ltd Battery driven information terminal device and data backup method
JP4397621B2 (en) * 2003-04-28 2010-01-13 富士通テン株式会社 Abnormality monitoring device
JP4584118B2 (en) * 2005-11-11 2010-11-17 三菱電機株式会社 Power supply device and sequencer system using the same
JP4942143B2 (en) * 2005-12-15 2012-05-30 東芝三菱電機産業システム株式会社 Inverter device and overvoltage protection method thereof
JP5133609B2 (en) * 2007-06-13 2013-01-30 トヨタ自動車株式会社 Vehicle and control method thereof

Also Published As

Publication number Publication date
JP2015042072A (en) 2015-03-02

Similar Documents

Publication Publication Date Title
JP6153815B2 (en) Electronic control unit for automobile
US7251551B2 (en) On-vehicle electronic control device
US20160161367A1 (en) Device and method for detecting vehicle engine state
US8996927B2 (en) Electronic control device with watchdog timer and processing unit to diagnose malfunction of watchdog timer
JP2014105857A (en) Method and system for diagnosing failure of oil pressure sensor
US9477542B2 (en) Electronic control unit
JP6416718B2 (en) Fail-safe circuit
JP2015042072A5 (en)
WO2015190421A1 (en) Electronic control device
JP6683104B2 (en) Electronic control unit
JP5297685B2 (en) Solenoid drive
JP2009086878A (en) Vehicle load backup circuit
JP5769403B2 (en) Monitoring device and electronic device
JP6742192B2 (en) Electronic control unit
JP6443202B2 (en) Electronic control device for vehicle
JP4538852B2 (en) Vehicle control device
JP5942963B2 (en) Microcomputer monitoring equipment
JP6181011B2 (en) Control device for internal combustion engine
JP6522550B2 (en) Electronic control unit
JP2007255254A (en) Engine starting system
JP2020153253A (en) Control device for vehicle
JP6404073B2 (en) Driving force control device
JP2018161927A (en) Automobile electronic control device
JP5764043B2 (en) Vehicle control system
JP4375105B2 (en) Microcomputer monitoring device failure diagnosis method and vehicle electronic control device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160301

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170131

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170324

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170531

R150 Certificate of patent or registration of utility model

Ref document number: 6153815

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees