Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6702145B2 - Processor - Google Patents
[go: Go Back, main page]

JP6702145B2 - Processor - Google Patents

Processor Download PDF

Info

Publication number
JP6702145B2
JP6702145B2 JP2016218043A JP2016218043A JP6702145B2 JP 6702145 B2 JP6702145 B2 JP 6702145B2 JP 2016218043 A JP2016218043 A JP 2016218043A JP 2016218043 A JP2016218043 A JP 2016218043A JP 6702145 B2 JP6702145 B2 JP 6702145B2
Authority
JP
Japan
Prior art keywords
control microcomputer
motor control
microcomputer
cycle
oscillation
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.)
Active
Application number
JP2016218043A
Other languages
Japanese (ja)
Other versions
JP2018077619A (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.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2016218043A priority Critical patent/JP6702145B2/en
Publication of JP2018077619A publication Critical patent/JP2018077619A/en
Application granted granted Critical
Publication of JP6702145B2 publication Critical patent/JP6702145B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Description

本発明は、処理装置に関し、詳しくは、マイクロコンピュータを備える処理装置に関する。   The present invention relates to a processing device, and more particularly to a processing device including a microcomputer.

従来、この種の処理装置としては、マイコンと、ICと、を備えるものが提案されている(例えば、特許文献1参照)。マイコンは、エンジンを制御するための設定情報と内部で生成した通信クロックとをICへ送信する。ICは、基準クロックカウンタと、診断用カウンタと、クロック診断処理回路と、を備えている。基準クロックカウンタは、通信クロックでカウントアップする。診断用カウンタは、内部で生成した内部クロックでカウントアップする。クロック診断処理回路は、基準クロックカウンタのカウント値が第1の値となるタイミングで診断用カウンタのカウント値を記憶し、基準クロックのカウント値が第2の値となるタイミングで診断用カウンタのカウント値を記憶し、記憶した2つのカウント値を比較する。そして、2つのカウント値が異なる値であるときには、内部クロックが正常であると判断し、2つのカウント値が同じ値であるときには、内部クロックが異常であると判断し、診断結果をマイコンに出力する。診断結果を受信したマイコンは、エンジンを停止するなど各種フェールセーフ処理を実行する。   Conventionally, as this type of processing device, a device including a microcomputer and an IC has been proposed (for example, see Patent Document 1). The microcomputer transmits to the IC the setting information for controlling the engine and the internally generated communication clock. The IC includes a reference clock counter, a diagnostic counter, and a clock diagnostic processing circuit. The reference clock counter counts up with the communication clock. The diagnostic counter counts up with an internal clock generated internally. The clock diagnostic processing circuit stores the count value of the diagnostic counter at the timing when the count value of the reference clock counter becomes the first value, and counts the diagnostic counter at the timing when the count value of the reference clock becomes the second value. The value is stored and the two stored count values are compared. When the two count values are different, it is determined that the internal clock is normal, and when the two count values are the same, it is determined that the internal clock is abnormal, and the diagnostic result is output to the microcomputer. To do. The microcomputer that received the diagnosis result executes various fail-safe processing such as stopping the engine.

特開2010−61470号公報JP, 2010-61470, A

しかしながら、上述の処理装置では、マイコンに何らかの異常が生じたときには、通信クロックに異常が生じてしまい、ICが適正な動作をできなくなる不都合が生じる。こうした不都合を回避する手法として、ICで、通信クロックに異常が生じているか否かを判断し、通信クロックに異常が生じているときには、マイコンをリセットする処理を実行することが考えられる。しかしながら、この手法では、通信クロックの異常がマイコンの一部の異常、例えば、通信クロックを生成する回路の異常に起因するものであり、マイコン全体をリセットをしなくとも復旧可能であるときでも、マイコン全体をリセットしてしまう。マイコン全体をリセットすると車両が走行できなくなるから、マイコン全体の不要なリセットは抑制されることが望ましい。   However, in the above-described processing device, when some abnormality occurs in the microcomputer, an abnormality occurs in the communication clock, which causes a problem that the IC cannot operate properly. As a method of avoiding such an inconvenience, it is conceivable that the IC determines whether or not there is an abnormality in the communication clock, and when the abnormality occurs in the communication clock, a process of resetting the microcomputer is executed. However, in this method, the abnormality of the communication clock is caused by some abnormality of the microcomputer, for example, the abnormality of the circuit that generates the communication clock, and even when it is possible to recover without resetting the entire microcomputer, It resets the entire microcomputer. If the entire microcomputer is reset, the vehicle cannot run, so it is desirable to suppress unnecessary resets of the entire microcomputer.

本発明の処理装置は、マイクロコンピュータの不要なリセットを抑制することを主目的とする。   The processing apparatus of the present invention mainly aims to suppress unnecessary reset of the microcomputer.

本発明の処理装置は、上述の主目的を達成するために以下の手段を採った。   The processing apparatus of the present invention employs the following means in order to achieve the above-mentioned main object.

本発明の処理装置は、
発振用電源からの電力で駆動し内部クロック信号を生成するクロック生成回路と、前記生成された内部クロック信号をカウントすると共に所定周期毎にカウント結果をクリアし前記カウント結果に応じた周期のタイマ信号を出力するウォッチドッグタイマと、を有するマイクロコンピュータ、
を備える処理装置であって、
前記発振用電源からの電力を瞬断可能な瞬断回路と、
前記マイクロコンピュータからのタイマ信号が入力され、前記入力されたタイマ信号の周期が前記所定周期を含む所定範囲外であるときには前記発振用電源が瞬断されるように前記瞬断回路を制御し、その後において、入力されたタイマ信号の周期が前記所定範囲外であるときには前記マイクロコンピュータをリセットし、入力されたタイマ信号の周期が前記所定範囲内であるときには前記マイクロコンピュータをリセットしない判定処理部と、
を備えることを要旨とする。
The processing device of the present invention is
A clock generation circuit that is driven by power from an oscillation power supply to generate an internal clock signal, and a timer signal that counts the generated internal clock signal and clears the count result at every predetermined cycle and has a cycle corresponding to the count result. A watchdog timer for outputting
A processing device comprising:
An instantaneous interruption circuit capable of instantaneously interrupting the power from the oscillation power supply,
A timer signal is input from the microcomputer, and the momentary interruption circuit is controlled so that the oscillation power supply is momentarily interrupted when the period of the input timer signal is out of a predetermined range including the predetermined period, After that, when the cycle of the input timer signal is out of the predetermined range, the microcomputer is reset, and when the cycle of the input timer signal is in the predetermined range, the microcomputer is not reset. ,
The main point is to provide.

この本発明の処理装置では、判定処理部は、マイクロコンピュータからのタイマ信号が入力され、入力されたタイマ信号の周期が所定周期を含む所定範囲外であるときには発振用電源が瞬断されるように瞬断回路を制御し、その後において、入力されたタイマ信号の周期が所定範囲外であるときにはマイクロコンピュータをリセットし、入力されたタイマ信号の周期が所定範囲内であるときにはマイクロコンピュータをリセットしない。タイマ信号の周期が所定周期を含む所定範囲外であるときには、内部クロック信号の生成に何らかの異常が生じていると考えられる。この異常としては、クロック生成回路の異常と、クロック生成回路の異常とは異なるマイクロコンピュータの何らかの異常とがある。クロック生成回路の異常は、供給される電力を瞬断させることにより解消される場合がある。したがって、タイマ信号の周期が所定範囲外であるときには発振用電源が瞬断されるように瞬断回路を制御し、その後において、入力されたタイマ信号の周期が所定範囲外であるとき、すなわち、クロック生成回路の異常とは異なるマイクロコンピュータの何らかの異常が生じているときには、マイクロコンピュータをリセットすることにより、異常に適正に対処することができる。また、タイマ信号の周期が所定範囲外であるときには発振用電源が瞬断されるように瞬断回路を制御し、その後において、入力されたタイマ信号の周期が所定範囲内であるとき、すなわち、タイマ信号が所定範囲外となったのがクロック生成回路の異常によるためであり発振用電源が瞬断させることによりクロック生成回路が正常に戻ったときには、マイクロコンピュータをリセットしないことにより、マイクロコンピュータの不要なリセットを抑制することができる。   In the processing device of the present invention, the determination processing unit receives the timer signal from the microcomputer, and when the cycle of the input timer signal is outside the predetermined range including the predetermined cycle, the oscillation power supply is momentarily cut off. Control the instantaneous interruption circuit, and thereafter reset the microcomputer when the cycle of the input timer signal is outside the predetermined range, and do not reset the microcomputer when the cycle of the input timer signal is within the predetermined range. . When the cycle of the timer signal is out of the predetermined range including the predetermined cycle, it is considered that some abnormality has occurred in the generation of the internal clock signal. The abnormality includes an abnormality of the clock generation circuit and some abnormality of the microcomputer different from the abnormality of the clock generation circuit. The abnormality of the clock generation circuit may be resolved by momentarily cutting off the supplied power. Therefore, when the cycle of the timer signal is out of the predetermined range, the instantaneous power interruption circuit is controlled so that the oscillation power supply is interrupted, and after that, when the cycle of the input timer signal is out of the predetermined range, that is, When some abnormality of the microcomputer different from the abnormality of the clock generation circuit occurs, the abnormality can be appropriately dealt with by resetting the microcomputer. Further, when the cycle of the timer signal is out of the predetermined range, the instantaneous power interruption circuit is controlled so that the oscillation power supply is interrupted, and after that, when the cycle of the input timer signal is within the predetermined range, that is, The reason why the timer signal is out of the predetermined range is due to an abnormality in the clock generation circuit.When the clock generation circuit returns to normal due to a momentary interruption of the oscillation power supply, the microcomputer is not reset, and the microcomputer Unnecessary reset can be suppressed.

本発明の実施例としての処理装置を搭載したハイブリッド自動車20の構成の概略を示す構成図である。It is a block diagram which shows the outline of a structure of the hybrid vehicle 20 carrying the processing apparatus as an Example of this invention. モータMG1,MG2を含む電機駆動系の構成の概略を示す構成図である。It is a block diagram which shows the outline of a structure of an electric machine drive system containing motors MG1 and MG2. モータECU40の構成の概略を説明するための説明図である。FIG. 4 is an explanatory diagram illustrating an outline of a configuration of a motor ECU 40. 昇圧制御マイコン40bにより実行される監視処理ルーチンの一例を示すフローチャートである。7 is a flowchart showing an example of a monitoring processing routine executed by the boost control microcomputer 40b. 変形例のモータECU140の構成の概略を説明するための説明図である。FIG. 8 is an explanatory diagram for explaining an outline of a configuration of a motor ECU 140 of a modified example. 変形例のモータECU140の監視IC40hにより実行される監視処理ルーチンの一例を示すフローチャートである。9 is a flowchart showing an example of a monitoring processing routine executed by a monitoring IC 40h of a motor ECU 140 of a modified example. 変形例のモータECU240の構成の概略を説明するための説明図である。FIG. 8 is an explanatory diagram for explaining an outline of a configuration of a motor ECU 240 of a modified example. 変形例のモータECU240のモータ制御マイコン40aにより実行される監視処理ルーチンの一例を示すフローチャートである。9 is a flowchart showing an example of a monitoring processing routine executed by a motor control microcomputer 40a of a motor ECU 240 of a modified example. 変形例の監視処理ルーチンの一例を示すフローチャートである。It is a flowchart which shows an example of the monitoring process routine of a modification.

次に、本発明を実施するための形態を実施例を用いて説明する。   Next, modes for carrying out the present invention will be described using examples.

図1は、本発明の実施例としての処理装置を搭載したハイブリッド自動車20の構成の概略を示す構成図である。図2は、モータMG1,MG2を含む電機駆動系の構成の概略を示す構成図である。図3は、モータECU40の構成の概略を説明するための説明図である。実施例のハイブリッド自動車20は、図1に示すように、エンジン22と、プラネタリギヤ30と、モータMG1,MG2と、インバータ41,42と、バッテリ50と、昇降圧コンバータ55と、システムメインリレー56と、ハイブリッド用電子制御ユニット(以下、「HVECU」という)70と、を備える。   FIG. 1 is a configuration diagram showing an outline of a configuration of a hybrid vehicle 20 equipped with a processing device as an embodiment of the present invention. FIG. 2 is a configuration diagram showing an outline of a configuration of an electric machine drive system including motors MG1 and MG2. FIG. 3 is an explanatory diagram for explaining an outline of the configuration of the motor ECU 40. As shown in FIG. 1, the hybrid vehicle 20 of the embodiment includes an engine 22, a planetary gear 30, motors MG1 and MG2, inverters 41 and 42, a battery 50, a step-up/down converter 55, and a system main relay 56. , A hybrid electronic control unit (hereinafter referred to as “HVECU”) 70.

エンジン22は、ガソリンや軽油などを燃料として動力を出力する内燃機関として構成されている。このエンジン22は、エンジン用電子制御ユニット(以下、「エンジンECU」という)24によって運転制御されている。   The engine 22 is configured as an internal combustion engine that outputs power using gasoline, light oil, or the like as fuel. The operation of the engine 22 is controlled by an engine electronic control unit (hereinafter referred to as “engine ECU”) 24.

エンジンECU24は、図示しないが、CPUを中心とするマイクロプロセッサとして構成されており、CPUの他に、処理プログラムを記憶するROM,データを一時的に記憶するRAM,入出力ポート,通信ポートを備える。   Although not shown, the engine ECU 24 is configured as a microprocessor centered on a CPU, and includes, in addition to the CPU, a ROM for storing a processing program, a RAM for temporarily storing data, an input/output port, and a communication port. ..

エンジンECU24には、エンジン22を運転制御するのに必要な各種センサからの信号、例えば、エンジン22のクランクシャフト26の回転位置を検出するクランクポジションセンサ23からのクランク角θcrなどが入力ポートから入力されている。   Signals from various sensors necessary for controlling the operation of the engine 22, for example, a crank angle θcr from a crank position sensor 23 that detects a rotational position of a crankshaft 26 of the engine 22 are input to the engine ECU 24 from an input port. Has been done.

エンジンECU24からは、エンジン22を運転制御するための各種制御信号が出力ポートを介して出力されている。エンジンECU24は、HVECU70と通信ポートを介して接続されている。エンジンECU24は、クランクポジションセンサ23からのクランク角θcrに基づいてエンジン22の回転数Neを演算している。   Various control signals for controlling the operation of the engine 22 are output from the engine ECU 24 through the output port. The engine ECU 24 is connected to the HVECU 70 via a communication port. The engine ECU 24 calculates the rotation speed Ne of the engine 22 based on the crank angle θcr from the crank position sensor 23.

プラネタリギヤ30は、シングルピニオン式の遊星歯車機構として構成されている。プラネタリギヤ30のサンギヤには、モータMG1の回転子が接続されている。プラネタリギヤ30のリングギヤには、駆動輪39a,39bにデファレンシャルギヤ38を介して連結された駆動軸36が接続されている。プラネタリギヤ30のキャリヤには、ダンパ28を介してエンジン22のクランクシャフト26が接続されている。   The planetary gear 30 is configured as a single pinion type planetary gear mechanism. The sun gear of the planetary gear 30 is connected to the rotor of the motor MG1. The ring gear of the planetary gear 30 is connected to a drive shaft 36 that is connected to the drive wheels 39a and 39b via a differential gear 38. The crankshaft 26 of the engine 22 is connected to the carrier of the planetary gear 30 via a damper 28.

モータMG1は、例えば同期発電電動機として構成されており、上述したように、回転子がプラネタリギヤ30のサンギヤに接続されている。モータMG2は、例えば同期発電電動機として構成されており、回転子が駆動軸36に接続されている。インバータ41,42は、モータMG1,MG2と接続されると共に高電圧側電力ライン54aに接続されている。モータMG1,MG2は、モータ用電子制御ユニット(以下、「モータECU」という)40によって、インバータ41,42の図示しない複数のスイッチング素子がスイッチング制御されることにより、回転駆動される。   The motor MG1 is configured as, for example, a synchronous generator motor, and the rotor is connected to the sun gear of the planetary gear 30 as described above. The motor MG2 is configured as, for example, a synchronous generator motor, and the rotor is connected to the drive shaft 36. The inverters 41 and 42 are connected to the motors MG1 and MG2 as well as to the high voltage side power line 54a. The motors MG1 and MG2 are rotationally driven by switching control of a plurality of switching elements (not shown) of the inverters 41 and 42 by an electronic control unit for motor (hereinafter referred to as “motor ECU”) 40.

昇降圧コンバータ55は、インバータ41,42が接続された高電圧側電力ライン54aと、バッテリ50が接続された低電圧側電力ライン54bと、に接続されている。この昇降圧コンバータ55は、2つのスイッチング素子S1,S2と、リアクトルLと、を有する。スイッチング素子S1は、トランジスタT31と、トランジスタT31に逆方向に並列接続されたダイオードD31と、を備えている。スイッチング素子S1は、高電圧側電力ライン54aの正極側ラインに接続されている。スイッチング素子S2は、トランジスタT32と、トランジスタT32に逆方向に並列接続されたダイオードD32と、を備えている。スイッチング素子S2は、スイッチング素子S1と、高電圧側電力ライン54aおよび低電圧側電力ライン54bの負極側ラインと、に接続されている。リアクトルLは、スイッチング素子S1,S2同士の接続点と、低電圧側電力ライン54bの正極側ラインと、に接続されている。昇降圧コンバータ55は、モータECU40によってトランジスタT31,T32のオン時間の割合が調節されることにより、低電圧側電力ライン54bの電力を昇圧して高電圧側電力ライン54aに供給したり、高電圧側電力ライン54aの電力を降圧して低電圧側電力ライン54bに供給したりする。高電圧側電力ライン54aの正極側ラインと負極側ラインとには、平滑用のコンデンサ57が取り付けられており、低電圧側電力ライン54bの正極側ラインと負極側ラインとには、平滑用のコンデンサ58が取り付けられている。   The step-up/down converter 55 is connected to a high voltage side power line 54a to which the inverters 41 and 42 are connected and a low voltage side power line 54b to which the battery 50 is connected. The step-up/step-down converter 55 has two switching elements S1 and S2 and a reactor L. The switching element S1 includes a transistor T31 and a diode D31 connected in parallel to the transistor T31 in the opposite direction. The switching element S1 is connected to the positive side line of the high voltage side power line 54a. The switching element S2 includes a transistor T32 and a diode D32 connected in parallel to the transistor T32 in the opposite direction. The switching element S2 is connected to the switching element S1 and the negative-side lines of the high-voltage side power line 54a and the low-voltage side power line 54b. The reactor L is connected to a connection point between the switching elements S1 and S2 and a positive side line of the low voltage side power line 54b. The step-up/step-down converter 55 boosts the power of the low-voltage side power line 54b and supplies it to the high-voltage side power line 54a or the high-voltage side by adjusting the ON time ratio of the transistors T31 and T32 by the motor ECU 40. The power of the side power line 54a is stepped down and supplied to the low voltage side power line 54b. A smoothing capacitor 57 is attached to the positive and negative lines of the high voltage side power line 54a, and the positive and negative lines of the low voltage side power line 54b are provided for smoothing. A capacitor 58 is attached.

モータECU40は、図3に示すように、モータ制御マイクロコンピュータ(以下、「モータ制御マイコン」という)40aと、昇圧制御マイクロコンピュータ(以下、「昇圧制御マイコン」という)40bと、水晶発振子40c,40fと、発振用電源40d,40eと、瞬断回路40gと、監視IC40hと、を備える。   As shown in FIG. 3, the motor ECU 40 includes a motor control microcomputer (hereinafter referred to as “motor control microcomputer”) 40a, a boost control microcomputer (hereinafter referred to as “boost control microcomputer”) 40b, a crystal oscillator 40c, 40f, power supplies 40d and 40e for oscillation, an instantaneous interruption circuit 40g, and a monitoring IC 40h.

モータ制御マイコン40aは、CPU(図示せず)を中心とするマイクロプロセッサとして構成されており、CPUの他に、処理プログラムを記憶するROM,データを一時的に記憶するRAM,入出力ポート,通信ポート(いずれも図示せず),発振回路OSC1,を備える。発振回路OSC1は、発振用電源40dからの電力V5D1で駆動する。発振回路OSC1は、水晶発振子40cが正常に発振しているときには、水晶発振子40cからの外部クロック信号CLK1を用いて周波数f1の内部クロック信号を生成する通常動作モードで動作し、水晶発振子40cに何らかの異常が発生しているときには、図示しない自励発振器からの発振信号を用いて周波数f1より遅い周波数f2の内部クロック信号を生成する自励発振モードで動作する。発振回路OSC1により生成された内部クロック信号は、図示しないCPUやROM,RAMなどに供給される。   The motor control microcomputer 40a is configured as a microprocessor centered on a CPU (not shown), and in addition to the CPU, a ROM that stores a processing program, a RAM that temporarily stores data, an input/output port, and a communication. A port (neither is shown) and an oscillator circuit OSC1 are provided. The oscillation circuit OSC1 is driven by the power V5D1 from the oscillation power supply 40d. The oscillator circuit OSC1 operates in a normal operation mode in which an external clock signal CLK1 from the crystal oscillator 40c is used to generate an internal clock signal of a frequency f1 when the crystal oscillator 40c is normally oscillating. When some abnormality occurs in 40c, it operates in a self-excited oscillation mode in which an oscillation signal from a self-excited oscillator (not shown) is used to generate an internal clock signal having a frequency f2 slower than the frequency f1. The internal clock signal generated by the oscillator circuit OSC1 is supplied to a CPU, a ROM, a RAM, and the like (not shown).

モータ制御マイコン40aには、モータMG1,MG2を駆動制御するのに必要な各種センサからの信号が入力ポートを介して入力されている。モータ制御マイコン40aに入力される信号としては、例えば、モータMG1,MG2の回転子の回転位置を検出する回転位置検出センサ43,44からの回転位置θm1,θm2を挙げることができる。また、監視IC40hからのリセット信号RESET1や後述する昇圧制御マイコン40bからのタイマ信号WDT3も挙げることができる。   Signals from various sensors necessary for driving and controlling the motors MG1 and MG2 are input to the motor control microcomputer 40a via input ports. The signals input to the motor control microcomputer 40a include, for example, rotational positions θm1 and θm2 from rotational position detection sensors 43 and 44 that detect rotational positions of rotors of the motors MG1 and MG2. Further, a reset signal RESET1 from the monitoring IC 40h and a timer signal WDT3 from a boost control microcomputer 40b described later can be cited.

モータ制御マイコン40aからは、インバータ41,42の図示しないスイッチング素子へのスイッチング制御信号などが出力ポートを介して出力されている。モータ制御マイコン40aは、昇圧制御マイコン40bやHVECU70と通信ポートを介して接続されている。モータ制御マイコン40aは、回転位置検出センサ43,44からのモータMG1,MG2の回転子の回転位置θm1,θm2に基づいてモータMG1,MG2の回転数Nm1,Nm2を演算している。モータ制御マイコン40aは、昇圧制御マイコン40bからのタイマ信号WDT3の周期T3を計測している。   From the motor control microcomputer 40a, switching control signals to switching elements (not shown) of the inverters 41 and 42 are output via output ports. The motor control microcomputer 40a is connected to the boost control microcomputer 40b and the HVECU 70 via a communication port. The motor control microcomputer 40a calculates the rotational speeds Nm1 and Nm2 of the motors MG1 and MG2 based on the rotational positions θm1 and θm2 of the rotors of the motors MG1 and MG2 from the rotational position detection sensors 43 and 44. The motor control microcomputer 40a measures the cycle T3 of the timer signal WDT3 from the boost control microcomputer 40b.

モータ制御マイコン40aは、内部クロック信号をカウントして、内部クロック信号のカウント値が所定値(例えば、値100,値200,値300など)となる毎にカウント値をクリアするウォッチドッグタイマとしても機能する。モータ制御マイコン40aは、ウォッチドッグタイマとして機能する際に、内部クロック信号をカウントしている間はハイとなり、カウント値がクリアされるとローとなり、クリアされた後に再びカウントを始めるとハイとなるタイマ信号WDT1,WDT2を出力ポートを介して出力している。   The motor control microcomputer 40a also functions as a watchdog timer that counts the internal clock signal and clears the count value every time the count value of the internal clock signal reaches a predetermined value (eg, value 100, value 200, value 300, etc.). Function. When the motor control microcomputer 40a functions as a watchdog timer, the motor control microcomputer 40a becomes high while counting the internal clock signal, becomes low when the count value is cleared, and becomes high when the count value is started again after being cleared. The timer signals WDT1 and WDT2 are output via the output port.

昇圧制御マイコン40bは、CPU(図示せず)を中心とするマイクロプロセッサとして構成されており、CPUの他に、処理ログラムを記憶するROM,データを一時的に記憶するRAM,入出力ポート,通信ポート(いずれも図示せず),発振回路OSC2を備える。発振回路OSC2は、発振用電源40eからの電力V5D2で駆動し、水晶発振子40fが正常に発振しているときには、水晶発振子40fからの外部クロック信号CLK2を用いて周波数f1の内部クロック信号を生成する通常動作モードで動作し、水晶発振子40fに何らかの異常が発生しているときには、図示しない自励発振器からの発振信号を用いて周波数f1より遅い周波数f2の内部クロック信号を生成する自励発振モードで動作する。発振回路OSC2により生成された内部クロック信号は、図示しないCPUやROM,RAMなどが動作する際のクロック信号として用いられる。   The boost control microcomputer 40b is configured as a microprocessor centered on a CPU (not shown), and in addition to the CPU, a ROM that stores a processing program, a RAM that temporarily stores data, an input/output port, and a communication. A port (neither is shown) and an oscillation circuit OSC2 are provided. The oscillator circuit OSC2 is driven by the electric power V5D2 from the oscillation power source 40e, and when the crystal oscillator 40f is normally oscillating, the internal clock signal of the frequency f1 is generated by using the external clock signal CLK2 from the crystal oscillator 40f. When the crystal oscillator 40f operates in the normal operation mode for generation and some abnormality occurs in the crystal oscillator 40f, a self-excited signal for generating an internal clock signal of a frequency f2 slower than the frequency f1 is generated using an oscillation signal from a self-excited oscillator (not shown). Operates in oscillation mode. The internal clock signal generated by the oscillator circuit OSC2 is used as a clock signal when the CPU, ROM, RAM, etc. (not shown) operate.

昇圧制御マイコン40bには、昇降圧コンバータ55を駆動制御するのに必要な各種センサからの信号が入力ポートを介して入力されている。昇圧制御マイコン40bに入力される信号としては、例えば、コンデンサ57の端子間に取り付けられた電圧センサ57aからのコンデンサ57の電圧(高電圧側電力ライン54aの電圧)VHやコンデンサ58の端子間に取り付けられた電圧センサ58aからのコンデンサ58の電圧(低電圧側電力ライン54bの電圧)VL,リアクトルLの電流を検出する電流センサ55aからのリアクトル電流ILも挙げることができる。昇圧制御マイコン40bに入力される信号としては、モータ制御マイコン40aからのタイマ信号WDT2も挙げることができる。   Signals from various sensors necessary for driving and controlling the step-up/down converter 55 are input to the boost control microcomputer 40b through input ports. As the signal input to the boost control microcomputer 40b, for example, the voltage of the capacitor 57 (voltage of the high voltage side power line 54a) VH from the voltage sensor 57a mounted between the terminals of the capacitor 57 or the terminals of the capacitor 58 is used. The voltage of the capacitor 58 (voltage of the low-voltage side power line 54b) VL from the attached voltage sensor 58a and the reactor current IL from the current sensor 55a which detects the current of the reactor L can also be mentioned. As the signal input to the boost control microcomputer 40b, the timer signal WDT2 from the motor control microcomputer 40a can also be mentioned.

昇圧制御マイコン40bからは、昇降圧コンバータ55のトランジスタT31,T32へのスイッチング制御信号やウォッチドッグタイマからのタイマ信号WDT3などが出力ポートを介して出力されている。昇圧制御マイコン40bは、モータ制御マイコン40aからのタイマ信号WDT2の周期T2を計測している。   From the step-up control microcomputer 40b, switching control signals to the transistors T31 and T32 of the step-up/step-down converter 55, a timer signal WDT3 from the watchdog timer, etc. are output via the output port. The boost control microcomputer 40b measures the cycle T2 of the timer signal WDT2 from the motor control microcomputer 40a.

昇圧制御マイコン40bは、内部クロック信号をカウントして、内部クロック信号のカウント値が所定値(例えば、値100,値200,値300など)となる毎にカウント値をクリアするウォッチドッグタイマとしても機能する。昇圧制御マイコン40bは、ウォッチドッグタイマとして機能する際に、内部クロック信号をカウントしている間はハイとなり、カウント値がクリアされるとローとなり、クリアされた後に再びカウントを始めるとハイとなるタイマ信号WDT3を出力ポートを介して出力している。   The boost control microcomputer 40b also functions as a watchdog timer that counts the internal clock signal and clears the count value each time the count value of the internal clock signal reaches a predetermined value (eg, value 100, value 200, value 300, etc.). Function. When the boost control microcomputer 40b functions as a watchdog timer, the boost control microcomputer 40b becomes high while counting the internal clock signal, becomes low when the count value is cleared, and becomes high when the count value is started again after being cleared. The timer signal WDT3 is output via the output port.

発振用電源40d,40eは、図示しない低電圧バッテリから供給される低圧電力による作動する電源用電子制御ユニット(以下、「電源ECU」という)からの所定電圧(例えば、3.3V,5Vなど)の電力をモータ制御マイコン40a,昇圧制御マイコン40bの発振回路OSC1,OSC2に供給している。なお、低電圧バッテリは、図示しないDC/DCコンバータを介してバッテリ50に接続されている。   The oscillation power supplies 40d and 40e are predetermined voltages (for example, 3.3V, 5V, etc.) from a power supply electronic control unit (hereinafter, referred to as "power supply ECU") that operates by low-voltage power supplied from a low-voltage battery (not shown). Is supplied to the oscillation circuits OSC1 and OSC2 of the motor control microcomputer 40a and the boost control microcomputer 40b. The low voltage battery is connected to the battery 50 via a DC/DC converter (not shown).

瞬断回路40gは、図示しない電源ECUから発振用電源40dへの電力ラインに取り付けられている。瞬断回路40gは、昇圧制御マイコン40bにより制御されることにより、発振用電源40dから発振回路OSC1への電力の供給および電力の供給の遮断を行なう。   The instantaneous interruption circuit 40g is attached to a power line from a power supply ECU (not shown) to the oscillation power supply 40d. The instantaneous cutoff circuit 40g is controlled by the boost control microcomputer 40b to supply and cut off power from the oscillation power supply 40d to the oscillation circuit OSC1.

監視IC40hは、モータ制御マイコン40aからのタイマ信号WDT1の周期T1を計測している。   The monitoring IC 40h measures the cycle T1 of the timer signal WDT1 from the motor control microcomputer 40a.

バッテリ50は、例えばリチウムイオン二次電池やニッケル水素二次電池として構成されており、低電圧側電力ライン54bに接続されている。このバッテリ50は、バッテリ用電子制御ユニット(以下、「バッテリECU」という)52によって管理されている。   The battery 50 is configured, for example, as a lithium ion secondary battery or a nickel hydrogen secondary battery, and is connected to the low voltage side power line 54b. The battery 50 is managed by a battery electronic control unit (hereinafter referred to as “battery ECU”) 52.

バッテリECU52は、図示しないが、CPUを中心とするマイクロプロセッサとして構成されており、CPUの他に、処理プログラムを記憶するROM,データを一時的に記憶するRAM,入出力ポート,通信ポートを備える。バッテリECU52には、バッテリ50を管理するのに必要な各種センサからの信号が入力ポートを介して入力されている。バッテリECU52に入力される信号としては、例えば、バッテリ50の端子間に設置された電圧センサからの電池電圧Vbやバッテリ50の出力端子に取り付けられた電流センサからの電池電流Ib,バッテリ50に取り付けられた温度センサからの電池温度Tbを挙げることができる。バッテリECU52は、HVECU70と通信ポートを介して接続されている。バッテリECU52は、電流センサからの電池電流Ibの積算値に基づいて蓄電割合SOCを演算している。蓄電割合SOCは、バッテリ50の全容量に対するバッテリ50から放電可能な電力の容量の割合である。   Although not shown, the battery ECU 52 is configured as a microprocessor centered on a CPU, and includes, in addition to the CPU, a ROM for storing a processing program, a RAM for temporarily storing data, an input/output port, and a communication port. .. Signals from various sensors necessary for managing the battery 50 are input to the battery ECU 52 via an input port. As the signal input to the battery ECU 52, for example, the battery voltage Vb from the voltage sensor installed between the terminals of the battery 50, the battery current Ib from the current sensor attached to the output terminal of the battery 50, the battery current Ib attached to the battery 50, etc. The battery temperature Tb from the provided temperature sensor can be mentioned. The battery ECU 52 is connected to the HVECU 70 via a communication port. The battery ECU 52 calculates the storage ratio SOC based on the integrated value of the battery current Ib from the current sensor. The charge ratio SOC is the ratio of the capacity of the electric power that can be discharged from the battery 50 to the total capacity of the battery 50.

システムメインリレー56は、低電圧側電力ライン54bにおけるコンデンサ58よりもバッテリ50側に設けられている。このシステムメインリレー56は、HVECU70によってオンオフ制御されることにより、バッテリ50と昇降圧コンバータ55側との接続および接続の解除を行なう。   The system main relay 56 is provided closer to the battery 50 than the capacitor 58 in the low voltage side power line 54b. The system main relay 56 is ON/OFF controlled by the HVECU 70 to connect and disconnect the battery 50 and the buck-boost converter 55 side.

HVECU70は、図示しないが、CPUを中心とするマイクロプロセッサとして構成されており、CPUの他に、処理プログラムを記憶するROM,データを一時的に記憶するRAM,入出力ポート,通信ポートを備える。   Although not shown, the HVECU 70 is configured as a microprocessor centered on a CPU, and includes, in addition to the CPU, a ROM that stores a processing program, a RAM that temporarily stores data, an input/output port, and a communication port.

HVECU70には、各種センサからの信号が入力ポートを介して入力されている。HVECU70に入力される信号としては、例えば、イグニッションスイッチ80からのイグニッション信号や、シフトレバー81の操作位置を検出するシフトポジションセンサ82からのシフトポジションSPを挙げることができる。また、アクセルペダル83の踏み込み量を検出するアクセルペダルポジションセンサ84からのアクセル開度Accや、ブレーキペダル85の踏み込み量を検出するブレーキペダルポジションセンサ86からのブレーキペダルポジションBP,車速センサ88からの車速Vも挙げることができる。   Signals from various sensors are input to the HVECU 70 via input ports. Examples of the signal input to the HVECU 70 include an ignition signal from the ignition switch 80 and a shift position SP from a shift position sensor 82 that detects the operation position of the shift lever 81. Further, an accelerator opening Acc from the accelerator pedal position sensor 84 that detects the depression amount of the accelerator pedal 83, a brake pedal position BP from the brake pedal position sensor 86 that detects the depression amount of the brake pedal 85, and a vehicle speed sensor 88 from the vehicle speed sensor 88. The vehicle speed V can also be mentioned.

HVECU70は、上述したように、エンジンECU24,モータECU40,バッテリECU52と通信ポートを介して接続されている。   As described above, the HVECU 70 is connected to the engine ECU 24, the motor ECU 40, and the battery ECU 52 via the communication port.

こうして構成された実施例のハイブリッド自動車20では、ハイブリッド走行モード(HV走行モード),電動走行モード(EV走行モード),フェールセーフ走行モードなどの走行モードで走行する。HV走行モードは、エンジン22の運転とモータMG1,MG2の駆動とを伴って走行する走行モードである。EV走行モードは、エンジン22を運転停止すると共にモータMG2を駆動して走行する走行モードである。フェールセーフ走行モードは、主として、車両に何らかの異常が生じたときの走行モードである。フェールセーフ走行モードとしては、モータドライブ走行モード(MD走行モード)と、昇圧レス走行モードと、がある。MD走行モードは、エンジン22の始動を禁止してモータMG2のみを駆動して走行する走行モードである。昇圧レス走行モードは、昇降圧コンバータ55のトランジスタT31,T32のうちトランジスタT31をオンで固定すると共にトランジスタT32をオフで固定して昇降圧コンバータ55による昇圧動作を行なわずにエンジン22やモータMG1,MG2を駆動して走行する走行モードである。   The hybrid vehicle 20 of the embodiment thus configured travels in a traveling mode such as a hybrid traveling mode (HV traveling mode), an electric traveling mode (EV traveling mode), and a fail-safe traveling mode. The HV traveling mode is a traveling mode in which the vehicle travels with the operation of the engine 22 and the driving of the motors MG1 and MG2. The EV travel mode is a travel mode in which the engine 22 is stopped and the motor MG2 is driven to travel. The fail-safe drive mode is mainly a drive mode when some abnormality occurs in the vehicle. The fail-safe traveling mode includes a motor drive traveling mode (MD traveling mode) and a boost-less traveling mode. The MD travel mode is a travel mode in which the engine 22 is prohibited from starting and only the motor MG2 is driven to travel. In the boost-less running mode, the transistor T31 of the transistors T31 and T32 of the step-up/step-down converter 55 is fixed to be on and the transistor T32 is set to be off so that the step-up/step-down converter 55 does not perform the step-up operation and the engine 22 and the motor MG1. This is a traveling mode in which the MG2 is driven to travel.

また、実施例のハイブリッド自動車20では、昇圧制御マイコン40bの動作をモータ制御マイコン40aで監視している。モータ制御マイコン40aは、昇圧制御マイコン40bからのタイマ信号WDT3の周期T3を計測し、周期T3が所定周期Trefを超えるときには、昇圧制御マイコン40bに何らかの異常が生じたと判断して、昇圧制御マイコン40bにリセット信号RESET2を出力する。リセット信号RESET2を受信した昇圧制御マイコン40bは、内部のRAMを初期状態に戻すと共に起動処理をやり直す(リセットする)処理を実行する。ハイブリッド自動車20は、昇圧制御マイコン40bのみがリセットされたときには、昇圧レス走行モードで走行する。   Further, in the hybrid vehicle 20 of the embodiment, the operation of the boost control microcomputer 40b is monitored by the motor control microcomputer 40a. The motor control microcomputer 40a measures the cycle T3 of the timer signal WDT3 from the boost control microcomputer 40b. When the cycle T3 exceeds a predetermined cycle Tref, it is determined that some abnormality has occurred in the boost control microcomputer 40b, and the boost control microcomputer 40b. The reset signal RESET2 is output to. Upon receiving the reset signal RESET2, the boost control microcomputer 40b restores the internal RAM to the initial state and executes the process of restarting (resetting) the startup process. The hybrid vehicle 20 runs in the boost-less running mode when only the boost control microcomputer 40b is reset.

さらに、実施例のハイブリッド自動車20では、モータECU40のモータ制御マイコン40aと昇圧制御マイコン40bとの間では、調歩同期式の通信でデータをやり取りしている。   Further, in the hybrid vehicle 20 of the embodiment, data is exchanged between the motor control microcomputer 40a and the boost control microcomputer 40b of the motor ECU 40 by the asynchronous communication.

次に、こうして構成された実施例のハイブリッド自動車20の動作、特に、昇圧制御マイコン40bでモータ制御マイコン40aの動作を監視する際の動作について説明する。図4は、昇圧制御マイコン40bにより実行される監視処理ルーチンの一例を示すフローチャートである。本ルーチンは、モータ制御マイコン40aから昇圧制御マイコン40bにタイマ信号WDT2が入力されたときに実行される。なお、監視IC40hからのリセット信号RESETは、計測したタイマ信号WDT1の周期T1が、モータ制御マイコン40aの発振回路OSC1が通常動作モードで動作しているときにおけるタイマ信号WDT1の周期と同一またはそれより若干長い所定周期Trefを超えたときに、すなわち、モータ制御マイコン40aに何らかの異常が生じたときに出力される。   Next, the operation of the hybrid vehicle 20 of the embodiment thus configured, particularly the operation when the operation of the motor control microcomputer 40a is monitored by the boost control microcomputer 40b will be described. FIG. 4 is a flowchart showing an example of a monitoring processing routine executed by the boost control microcomputer 40b. This routine is executed when the timer signal WDT2 is input from the motor control microcomputer 40a to the boost control microcomputer 40b. The reset signal RESET from the monitoring IC 40h has a cycle T1 of the measured timer signal WDT1 that is the same as or longer than the cycle of the timer signal WDT1 when the oscillation circuit OSC1 of the motor control microcomputer 40a operates in the normal operation mode. It is output when a slightly longer predetermined period Tref is exceeded, that is, when some abnormality occurs in the motor control microcomputer 40a.

本ルーチンが実行されると、昇圧制御マイコン40bは、モータ制御マイコン40aの発振回路OSC1が自励発振モードで動作しているか否かを判定する処理を実行する(ステップS100)。この処理では、モータ制御マイコン40aからのタイマ信号WDT2の周期T2が所定周期T2ref以上である第1条件と、モータ制御マイコン40aとの通信に異常が生じている第2条件と、の2つの条件が共に成立しているときに、発振回路OSC1が自励発振モードで動作していると判定する。所定周期T2refは、モータ制御マイコン40aの発振回路OSC1が自励発振モードで動作しているときにおけるタイマ信号WDT2の周期と同一またはそれより若干長い周期として予め定めれた値である。昇圧制御マイコン40bとモータ制御マイコン40aとの通信の異常は、データの受信側となったマイコンで演算したサム値と送信側のマイコンでの演算値とが一致していないときや、受信側となったマイコンで所定期間内にストップビットが受信できないオーバーランが発生したときに、異常が生じていると判定している。   When this routine is executed, the boost control microcomputer 40b executes a process of determining whether or not the oscillation circuit OSC1 of the motor control microcomputer 40a is operating in the self-excited oscillation mode (step S100). In this processing, there are two conditions: a first condition in which the cycle T2 of the timer signal WDT2 from the motor control microcomputer 40a is a predetermined cycle T2ref or more, and a second condition in which communication with the motor control microcomputer 40a is abnormal. When both are satisfied, it is determined that the oscillation circuit OSC1 is operating in the self-excited oscillation mode. The predetermined period T2ref is a predetermined value that is the same as or slightly longer than the period of the timer signal WDT2 when the oscillation circuit OSC1 of the motor control microcomputer 40a is operating in the self-excited oscillation mode. The abnormality in the communication between the boost control microcomputer 40b and the motor control microcomputer 40a is caused when the sum value calculated by the data receiving side microcomputer does not match the calculated value by the transmitting side microcomputer or when the data is received by the receiving side. If an overrun occurs in which the stop bit cannot be received within the specified period, the microcomputer determines that an abnormality has occurred.

ステップS100の処理で発振回路OSC1が自励発振モードで動作していないと判定されたときには、水晶発振子40cの異常とは異なる何らかの異常がモータ制御マイコン40aに発生していると判断して、モータ制御マイコン40aにリセット要求信号を出力し(ステップS110)、本ルーチンを終了する。モータ制御マイコン40aは、リセット要求信号RREQを入力すると、車両停止指令をHVECU70に送信し、内部の回路を初期状態に戻す(リセットする)処理を実行する。車両停止指令を受信したHVECU70は、車両を停止するための各種処理を実行する。こうした処理により、モータ制御マイコン40aをリセットすると共に車両を停止することができる。   When it is determined in step S100 that the oscillation circuit OSC1 is not operating in the self-excited oscillation mode, it is determined that some abnormality different from the abnormality of the crystal oscillator 40c has occurred in the motor control microcomputer 40a, A reset request signal is output to the motor control microcomputer 40a (step S110), and this routine ends. When the reset request signal RREQ is input, the motor control microcomputer 40a transmits a vehicle stop command to the HVECU 70 and executes a process of returning (resetting) the internal circuit to the initial state. The HVECU 70 that has received the vehicle stop command executes various processes for stopping the vehicle. Through such processing, the motor control microcomputer 40a can be reset and the vehicle can be stopped.

ステップS100の処理で発振回路OSC1が自励発振モードで動作していると判定されたときには、発振用電源40dから発振回路OSC1への電力V5D1の供給が瞬断されるように瞬断回路40gを制御する(ステップS120)。このとき、各種故障診断に用いるために、電圧センサ57aからのコンデンサ57の電圧(高電圧側電力ライン54aの電圧)VHをRAMなどに記憶してもよい。   When it is determined in the process of step S100 that the oscillation circuit OSC1 is operating in the self-excited oscillation mode, the instantaneous interruption circuit 40g is set so that the supply of the power V5D1 from the oscillation power supply 40d to the oscillation circuit OSC1 is interrupted. Control (step S120). At this time, the voltage of the capacitor 57 from the voltage sensor 57a (voltage of the high voltage side power line 54a) VH may be stored in the RAM or the like for use in various failure diagnosis.

続いて、モータ制御マイコン40aの発振回路OSC1が通常動作モードへ復帰したか否かを判定する(ステップS130)。この判定は、モータ制御マイコン40aからのタイマ信号WDT2の周期T2が所定周期T2refを中心とする所定範囲TA内の周期である第3条件が成立し、且つ、ステップS100の処理で用いた第2条件が成立しないときに、発振回路OSC1が自励発振モードから通常動作モードへ復帰したと判定する。所定範囲TAは、モータ制御マイコン40aの発振回路OSC1が通常動作モードと復帰したと判定できるタイマ信号WDT2の周期T2の範囲であり、例えば、周期(T2−0.1・T2)から周期(T2+0.1・T2)の範囲などとしてもよい。   Then, it is determined whether the oscillation circuit OSC1 of the motor control microcomputer 40a has returned to the normal operation mode (step S130). In this determination, the third condition that the cycle T2 of the timer signal WDT2 from the motor control microcomputer 40a is within the predetermined range TA centered on the predetermined cycle T2ref is satisfied, and the second step used in the process of step S100 is performed. When the condition is not satisfied, it is determined that the oscillation circuit OSC1 has returned from the self-excited oscillation mode to the normal operation mode. The predetermined range TA is a range of the cycle T2 of the timer signal WDT2 that can determine that the oscillation circuit OSC1 of the motor control microcomputer 40a has returned to the normal operation mode. For example, the cycle (T2-0.1·T2) to the cycle (T2+0). The range may be, for example, .1·T2).

ステップS130の処理でモータ制御マイコン40aの発振回路OSC1が通常動作モードへ復帰していないと判定されたときには、発振回路OSC1の電源を落としても水晶発振子40cの異常が解消されていないと判断して、ステップS110の処理へ進み、リセット要求信号RREQをモータ制御マイコン40aへ出力し(ステップS110)、本ルーチンを終了する。これにより、モータ制御マイコン40aをリセットすると共に車両を停止することができる。   When it is determined in step S130 that the oscillation circuit OSC1 of the motor control microcomputer 40a has not returned to the normal operation mode, it is determined that the abnormality of the crystal oscillator 40c has not been eliminated even when the power of the oscillation circuit OSC1 is turned off. Then, the process proceeds to step S110, the reset request signal RREQ is output to the motor control microcomputer 40a (step S110), and this routine is finished. As a result, the motor control microcomputer 40a can be reset and the vehicle can be stopped.

ステップS130の処理でモータ制御マイコン40aの発振回路OSC1が自励発振モードから通常動作モードへ復帰したと判定されたときには、ステップS120の処理を実行することにより水晶発振子40cの異常が解消されたと判断して、FS要求FSREQをモータ制御マイコン40aへ出力して(ステップS140)、本ルーチンを終了する。FS要求FSREQを入力したモータ制御マイコン40aは、FS走行指令をHVECU70に送信する。FS走行指令を受信したHVECU70は、上述したフェールセーフ走行で車両を走行させるための各種処理を実行する。これにより、モータ制御マイコン40aをリセットせずに車両を走行させることができるから、モータ制御マイコン40aの不要なリセットを抑制することができると共に、車両の走行を継続させることができる。   When it is determined in step S130 that the oscillator circuit OSC1 of the motor control microcomputer 40a has returned from the self-excited oscillation mode to the normal operation mode, it is determined that the abnormality of the crystal oscillator 40c has been resolved by executing the process of step S120. After making a determination, the FS request FSREQ is output to the motor control microcomputer 40a (step S140), and this routine is ended. The motor control microcomputer 40a that has input the FS request FSREQ transmits an FS traveling command to the HVECU 70. The HVECU 70 that has received the FS traveling command executes various processes for traveling the vehicle in the fail-safe traveling described above. As a result, the vehicle can be run without resetting the motor control microcomputer 40a, so that unnecessary resetting of the motor control microcomputer 40a can be suppressed and the vehicle can continue running.

以上説明した実施例のハイブリッド自動車20によれば、タイマ信号WDT2の周期T2が所定周期T2ref以上であるときには、発振用電源40dが瞬断されるように瞬断回路40gを制御し、その後において、タイマ信号WDT2の周期が所定範囲TA外であるときにはモータ制御マイコン40aをリセットし、タイマ信号WDTの周期T2が所定範囲TA内であり且つモータ制御マイコン40aと昇圧制御マイコン40bとの通信に異常が生じていないときにはモータ制御マイコン40aをリセットしないから、モータ制御マイコン40aの不要なリセットを抑制することができる。   According to the hybrid vehicle 20 of the embodiment described above, when the cycle T2 of the timer signal WDT2 is equal to or longer than the predetermined cycle T2ref, the instantaneous power interruption circuit 40g is controlled so that the oscillation power supply 40d is momentarily disconnected, and thereafter, When the cycle of the timer signal WDT2 is outside the predetermined range TA, the motor control microcomputer 40a is reset so that the cycle T2 of the timer signal WDT is within the predetermined range TA and the communication between the motor control microcomputer 40a and the boost control microcomputer 40b is abnormal. Since the motor control microcomputer 40a is not reset when it does not occur, unnecessary reset of the motor control microcomputer 40a can be suppressed.

実施例のハイブリッド自動車20では、ステップS130の処理で、モータ制御マイコン40aからのタイマ信号WDT2の周期T2が所定周期T2refを中心とする所定範囲TA内の周期である第3条件が成立し、且つ、ステップS100の処理で用いた第2条件が成立しないときに、発振回路OSC1が自励発振モードから通常動作モードへ復帰したと判定しているが、第3条件が成立したか否かのみを判定し、第3条件が成立したときに、発振回路OSC1が自励発振モードから通常動作モードへ復帰したと判定してもよい。   In the hybrid vehicle 20 of the embodiment, in the process of step S130, the third condition that the cycle T2 of the timer signal WDT2 from the motor control microcomputer 40a is within the predetermined range TA centered on the predetermined cycle T2ref is satisfied, and When the second condition used in the process of step S100 is not satisfied, it is determined that the oscillation circuit OSC1 has returned from the self-excited oscillation mode to the normal operation mode, but it is determined whether the third condition is satisfied. It may be determined that the oscillation circuit OSC1 has returned from the self-excited oscillation mode to the normal operation mode when the third condition is satisfied.

実施例のハイブリッド自動車20では、昇圧制御マイコン40bにより図4に例示した監視処理ルーチンを実行しているが、図5の変形例のモータECU140に例示するように、モータ制御マイコン40aでタイマ信号WDT2を生成しないものとすると共に、瞬断回路40gを監視ICで制御するものとし、監視IC40hにより監視処理ルーチンを実行してもよい。   In the hybrid vehicle 20 of the embodiment, the monitoring processing routine illustrated in FIG. 4 is executed by the boost control microcomputer 40b. However, as illustrated in the motor ECU 140 of the modification of FIG. 5, the timer control signal WDT2 is generated by the motor control microcomputer 40a. Alternatively, the instantaneous interruption circuit 40g may be controlled by the monitoring IC, and the monitoring processing routine may be executed by the monitoring IC 40h.

図6は、変形例のモータECU140の監視IC40hにより実行される監視処理ルーチンの一例を示すフローチャートである。本ルーチンは、図4に例示した監視処理ルーチンのステップS100の処理を実行しない点、ステップS130の処理に代えてステップS130Bの処理を実行する点を除いて図4に例示した監視処理ルーチンと同様の処理となっている。図6に例示した監視処理ルーチンは、監視IC40hにより計測したタイマ信号WDT1の周期T1が所定周期T2refを超えたと判定されたとき、すなわち、モータ制御マイコン40aの発振回路OSC1が自励発振モードで動作を開始したことを検出したときに実行される。   FIG. 6 is a flowchart showing an example of a monitoring processing routine executed by the monitoring IC 40h of the motor ECU 140 of the modified example. This routine is the same as the monitoring processing routine illustrated in FIG. 4 except that the processing of step S100 of the monitoring processing routine illustrated in FIG. 4 is not executed and that the processing of step S130B is executed instead of the processing of step S130. Is processed. In the monitoring processing routine illustrated in FIG. 6, when it is determined that the cycle T1 of the timer signal WDT1 measured by the monitoring IC 40h exceeds the predetermined cycle T2ref, that is, the oscillation circuit OSC1 of the motor control microcomputer 40a operates in the self-excited oscillation mode. It is executed when it detects that the has started.

本ルーチンが実行されると、監視IC40hは、ステップS120の処理を実行して発振用電源40dから発振回路OSC1への電力の供給を遮断し、続いて、モータ制御マイコン40aの発振回路OSC1が通常動作モードへ復帰したか否かを判定する(ステップS130B)。この判定では、モータ制御マイコン40aからのタイマ信号WDT1の周期が所定周期T2refであるときに、通常動作モードへ復帰していると判定する。通常動作モードへ復帰していないときには、ステップS110の処理に進み、リセット要求信号RREQをモータ制御マイコン40aへ出力して、本ルーチンを終了する。これにより、モータ制御マイコン40aをリセットすると共に車両を停止することができる。ステップS130Bの処理で、通常動作モードへ復帰していると判定されたときには、ステップS140の処理へ進み、FS要求FSREQをモータ制御マイコン40aへ出力して、本ルーチンを終了する。これにより、モータ制御マイコン40aをリセットせずに車両を走行させることができるから、モータ制御マイコン40aの不要なリセットを抑制することができると共に、車両の走行を継続することができる。   When this routine is executed, the monitoring IC 40h executes the process of step S120 to cut off the power supply from the oscillation power supply 40d to the oscillation circuit OSC1, and then the oscillation circuit OSC1 of the motor control microcomputer 40a normally operates. It is determined whether or not the operation mode has been restored (step S130B). In this determination, when the cycle of the timer signal WDT1 from the motor control microcomputer 40a is the predetermined cycle T2ref, it is determined that the normal operation mode is restored. When not returning to the normal operation mode, the process proceeds to step S110, the reset request signal RREQ is output to the motor control microcomputer 40a, and this routine ends. As a result, the motor control microcomputer 40a can be reset and the vehicle can be stopped. When it is determined in step S130B that the operation mode has returned to the normal operation mode, the process proceeds to step S140, the FS request FSREQ is output to the motor control microcomputer 40a, and the routine ends. As a result, the vehicle can be run without resetting the motor control microcomputer 40a, so that unnecessary resetting of the motor control microcomputer 40a can be suppressed and the vehicle can continue running.

実施例のハイブリッド自動車20では、図4に例示した監視処理ルーチンではモータ制御マイコン40aの動作を監視しているが、昇圧制御マイコン40bの動作を監視してもよい。この場合、図7の変形例のモータECU240に例示するように、モータ制御マイコン40aでタイマ信号WDT2を生成しないものとすればよい。そして、瞬断回路40gは、図示しない電源ECUから発振用電源40eへの電力ラインに取り付けられており、モータ制御マイコン40aにより制御されることにより、発振用電源40eから発振回路OSC2への電力の供給および電力の供給の遮断を行なうものとすればよい。   In the hybrid vehicle 20 of the embodiment, the operation of the motor control microcomputer 40a is monitored in the monitoring processing routine illustrated in FIG. 4, but the operation of the boost control microcomputer 40b may be monitored. In this case, the motor control microcomputer 40a may not generate the timer signal WDT2 as illustrated in the modified motor ECU 240 of FIG. The instantaneous interruption circuit 40g is attached to the power line from the power supply ECU (not shown) to the oscillation power supply 40e, and is controlled by the motor control microcomputer 40a, so that the power from the oscillation power supply 40e to the oscillation circuit OSC2 is transmitted. The supply and the supply of electric power may be cut off.

図8は、変形例のモータECU240のモータ制御マイコン40aにより実行される監視処理ルーチンの一例を示すフローチャートである。本ルーチンでは、図4に例示した監視処理ルーチンにおいて、モータ制御マイコン40aを昇圧制御マイコン40bとし、昇圧制御マイコン40bをモータ制御マイコン40aとし、モータ制御マイコン40aの発振回路OSC1を昇圧制御マイコン40bの発振回路OSC2とし、タイマ信号WDT3をタイマ信号WDT2とし、発振用電源40dを発振用電源40eとして、ステップS110〜S140の処理を実行する。なお、図4に例示した監視処理ルーチンにおいてステップS100の処理については実行しないものとし、図8に例示した監視処理ルーチンを、モータ制御マイコン40aにより計測したタイマ信号WDT2の周期T2が所定周期Trefを超えたと判定されたときに実行する。こうした監視処理ルーチンを実行することにより、昇圧制御マイコン40bの不要なリセットを抑制することができると共に、車両の走行を継続することができる。この場合、ステップS110の処理で、昇圧制御マイコン40bにリセット要求信号RREQを出力したモータ制御マイコン40aは、昇圧レス走行指令をHVECU70に送信し、車両を昇圧レス走行モードにより走行させてもよい。こうすれば、車両の停止が抑制され、走行をより長く継続することができる。   FIG. 8 is a flowchart showing an example of a monitoring processing routine executed by the motor control microcomputer 40a of the motor ECU 240 of the modified example. In this routine, in the monitoring processing routine illustrated in FIG. 4, the motor control microcomputer 40a is the boost control microcomputer 40b, the boost control microcomputer 40b is the motor control microcomputer 40a, and the oscillation circuit OSC1 of the motor control microcomputer 40a is the boost control microcomputer 40b. The oscillator circuit OSC2 is used, the timer signal WDT3 is used as the timer signal WDT2, and the oscillation power supply 40d is used as the oscillation power supply 40e, and the processes of steps S110 to S140 are executed. It is assumed that the processing of step S100 is not executed in the monitoring processing routine illustrated in FIG. 4, and the monitoring processing routine illustrated in FIG. 8 is performed by setting the cycle T2 of the timer signal WDT2 measured by the motor control microcomputer 40a to the predetermined cycle Tref. Executes when it is determined that the number has been exceeded. By executing such a monitoring processing routine, unnecessary resetting of the boost control microcomputer 40b can be suppressed, and the traveling of the vehicle can be continued. In this case, the motor control microcomputer 40a that has output the reset request signal RREQ to the step-up control microcomputer 40b in the process of step S110 may send a step-upless travel command to the HVECU 70 to drive the vehicle in the step-upless travel mode. In this way, the stopping of the vehicle can be suppressed and the running can be continued for a longer time.

実施例のハイブリッド自動車20では、監視IC40hを備えているが、監視IC40hを備えていないものとしてもよい。この場合、図4に例示した監視処理ルーチンに代えて、図9に例示する監視処理ルーチンを実行すればよい。図9に例示した監視処理ルーチンは、図4に例示した監視処理ルーチンのステップS100の処理でモータ制御マイコン40aの発振回路OSC1が自励発振モードで動作していないと判定されたときには、ステップS110の処理に進まずステップS100の処理を実行する点を除いて、図4に例示した監視処理ルーチンと同一の処理を実行する。   The hybrid vehicle 20 of the embodiment includes the monitoring IC 40h, but may not include the monitoring IC 40h. In this case, the monitoring processing routine illustrated in FIG. 9 may be executed instead of the monitoring processing routine illustrated in FIG. The monitoring processing routine illustrated in FIG. 9 is executed in step S110 when it is determined in the processing in step S100 of the monitoring processing routine illustrated in FIG. 4 that the oscillation circuit OSC1 of the motor control microcomputer 40a is not operating in the self-excited oscillation mode. The same process as the monitoring process routine illustrated in FIG. 4 is executed, except that the process of step S100 is not executed before proceeding to the process of FIG.

図9に例示した監視処理ルーチンは、イグニッションオンされてから所定の時間が経過したときに実行される。本ルーチンでは、ステップS100の処理でモータ制御マイコン40aの発振回路OSC1が自励発振モードで動作していないと判定されたときには、モータ制御マイコン40aが正常であると判断して、発振回路OSC1が自励発振モードで動作していると判定されるまでステップS100の処理を繰り返し実行する。こうすれば、監視IC40hを備えていない構成でも、昇圧制御マイコン40bでモータ制御マイコン40aの動作を関しすることができ、モータ制御マイコン40aの不要なリセットを抑制することができると共に、車両の走行を継続することができる。   The monitoring processing routine illustrated in FIG. 9 is executed when a predetermined time has elapsed since the ignition was turned on. In this routine, when it is determined in step S100 that the oscillation circuit OSC1 of the motor control microcomputer 40a is not operating in the self-excited oscillation mode, it is determined that the motor control microcomputer 40a is normal and the oscillation circuit OSC1 The process of step S100 is repeatedly executed until it is determined that the operation is in the self-oscillation mode. With this configuration, even if the monitoring IC 40h is not provided, the operation of the motor control microcomputer 40a can be related to the step-up control microcomputer 40b, unnecessary reset of the motor control microcomputer 40a can be suppressed, and the vehicle travels. Can continue.

実施例では、本発明をハイブリッド自動車20に適用する場合について例示しているが、クロック生成回路と、ウォッチドッグタイマと、を有するマイクロコンピュータを備える処理装置であれば如何なるものに適用しても構わない。   In the embodiment, the case where the present invention is applied to the hybrid vehicle 20 is illustrated, but the present invention may be applied to any processing device provided with a microcomputer having a clock generation circuit and a watchdog timer. Absent.

実施例の主要な要素と課題を解決するための手段の欄に記載した発明の主要な要素との対応関係について説明する。実施例では、発振回路OSC1が「クロック生成回路」に相当し、ウォッチドッグタイマが「ウォッチドッグタイマ」に相当し、モータ制御マイコン40aが「マイクロコンピュータ」に相当し、瞬断回路40gが「瞬断回路」に相当し、昇圧制御マイコン40bが「判定処理部」に相当する。   Correspondence between the main elements of the embodiment and the main elements of the invention described in the column of means for solving the problem will be described. In the embodiment, the oscillation circuit OSC1 corresponds to the “clock generation circuit”, the watchdog timer corresponds to the “watchdog timer”, the motor control microcomputer 40a corresponds to the “microcomputer”, and the instantaneous interruption circuit 40g performs the “instantaneous interruption”. This corresponds to the "break circuit", and the boost control microcomputer 40b corresponds to the "determination processing unit".

なお、実施例の主要な要素と課題を解決するための手段の欄に記載した発明の主要な要素との対応関係は、実施例が課題を解決するための手段の欄に記載した発明を実施するための形態を具体的に説明するための一例であることから、課題を解決するための手段の欄に記載した発明の要素を限定するものではない。即ち、課題を解決するための手段の欄に記載した発明についての解釈はその欄の記載に基づいて行なわれるべきものであり、実施例は課題を解決するための手段の欄に記載した発明の具体的な一例に過ぎないものである。   The correspondence between the main elements of the embodiment and the main elements of the invention described in the column of means for solving the problem is the same as that of the embodiment described in the section of means for solving the problem. This is an example for specifically explaining the mode for carrying out the invention, and does not limit the elements of the invention described in the column of means for solving the problem. That is, the interpretation of the invention described in the column of means for solving the problem should be made based on the description in that column, and the embodiment is the invention of the invention described in the column of means for solving the problem. This is just a specific example.

以上、本発明を実施するための形態について実施例を用いて説明したが、本発明はこうした実施例に何等限定されるものではなく、本発明の要旨を逸脱しない範囲内において、種々なる形態で実施し得ることは勿論である。   Although the embodiments for carrying out the present invention have been described above with reference to the embodiments, the present invention is not limited to these embodiments, and various embodiments are possible within a range not departing from the gist of the present invention. Of course, it can be implemented.

本発明は、処理装置の製造産業などに利用可能である。   INDUSTRIAL APPLICABILITY The present invention can be used in the processing device manufacturing industry and the like.

20 ハイブリッド自動車、22 エンジン、23 クランクポジションセンサ、24 エンジン用電子制御ユニット(エンジンECU)、26 クランクシャフト、28 ダンパ、30 プラネタリギヤ、36 駆動軸、38 デファレンシャルギヤ、39a,39b 駆動輪、40,140,240 モータ用電子制御ユニット(モータECU)、40a モータ制御用マイクロコンピュータ(モータ制御マイコン)、40b 昇圧制御用マイクロコンピュータ(昇圧制御マイコン)、40d,40e 発振用電源、40c,40f 水晶発振子、40g 瞬断回路、40h 監視IC、41,42 インバータ、43,44 回転位置検出センサ、50 バッテリ、52 バッテリ用電子制御ユニット(バッテリECU)、54a 高電圧側電力ライン、54b 低電圧側電力ライン、55 昇降圧コンバータ、56 システムメインリレー、57,58 コンデンサ、57a,58a 電圧センサ、70 ハイブリッド用電子制御ユニット(HVECU)、80 イグニッションスイッチ、81 シフトレバー、82 シフトポジションセンサ、83 アクセルペダル、84 アクセルペダルポジションセンサ、85 ブレーキペダル、86 ブレーキペダルポジションセンサ、88 車速センサ、D31,D32 ダイオード、L リアクトル、MG1,MG2,モータ、OSC1,OSC2 発振回路、S1,S2 スイッチング素子、T31,T32 トランジスタ。   20 hybrid vehicle, 22 engine, 23 crank position sensor, 24 engine electronic control unit (engine ECU), 26 crankshaft, 28 damper, 30 planetary gear, 36 drive shaft, 38 differential gear, 39a, 39b drive wheel, 40, 140 , 240 motor electronic control unit (motor ECU), 40a motor control microcomputer (motor control microcomputer), 40b step-up control microcomputer (step-up control microcomputer), 40d, 40e oscillation power supply, 40c, 40f crystal oscillator, 40g instantaneous interruption circuit, 40h monitoring IC, 41,42 inverter, 43,44 rotational position detection sensor, 50 battery, 52 battery electronic control unit (battery ECU), 54a high voltage side power line, 54b low voltage side power line, 55 buck-boost converter, 56 system main relay, 57, 58 condenser, 57a, 58a voltage sensor, 70 hybrid electronic control unit (HVECU), 80 ignition switch, 81 shift lever, 82 shift position sensor, 83 accelerator pedal, 84 accelerator Pedal position sensor, 85 brake pedal, 86 brake pedal position sensor, 88 vehicle speed sensor, D31, D32 diode, L reactor, MG1, MG2, motor, OSC1, OSC2 oscillation circuit, S1, S2 switching element, T31, T32 transistor.

Claims (1)

発振用電源からの電力で駆動し内部クロック信号を生成するクロック生成回路と、前記生成された内部クロック信号をカウントすると共に所定周期毎にカウント結果をクリアし前記カウント結果に応じた周期のタイマ信号を出力するウォッチドッグタイマと、を有するマイクロコンピュータ、
を備える処理装置であって、
前記発振用電源からの電力を瞬断可能な瞬断回路と、
前記マイクロコンピュータからのタイマ信号が入力され、前記入力されたタイマ信号の周期が前記所定周期を含む所定範囲外であるときには前記発振用電源が瞬断されるように前記瞬断回路を制御し、その後において、入力されたタイマ信号の周期が前記所定範囲外であるときには前記マイクロコンピュータをリセットし、入力されたタイマ信号の周期が前記所定範囲内であるときには前記マイクロコンピュータをリセットしない判定処理部と、
を備える処理装置。
A clock generation circuit that is driven by power from an oscillation power supply to generate an internal clock signal, and a timer signal that counts the generated internal clock signal and clears the count result at every predetermined cycle and has a cycle corresponding to the count result. A watchdog timer for outputting
A processing device comprising:
An instantaneous interruption circuit capable of instantaneously interrupting the power from the oscillation power supply,
A timer signal is input from the microcomputer, and the momentary interruption circuit is controlled so that the oscillation power supply is momentarily interrupted when the period of the input timer signal is out of a predetermined range including the predetermined period, After that, when the cycle of the input timer signal is out of the predetermined range, the microcomputer is reset, and when the cycle of the input timer signal is in the predetermined range, the microcomputer is not reset. ,
A processing device comprising.
JP2016218043A 2016-11-08 2016-11-08 Processor Active JP6702145B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016218043A JP6702145B2 (en) 2016-11-08 2016-11-08 Processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016218043A JP6702145B2 (en) 2016-11-08 2016-11-08 Processor

Publications (2)

Publication Number Publication Date
JP2018077619A JP2018077619A (en) 2018-05-17
JP6702145B2 true JP6702145B2 (en) 2020-05-27

Family

ID=62150366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016218043A Active JP6702145B2 (en) 2016-11-08 2016-11-08 Processor

Country Status (1)

Country Link
JP (1) JP6702145B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04117534A (en) * 1990-09-07 1992-04-17 Sharp Corp Supervisory unit for operating abnormality of computer equipment
JP2837609B2 (en) * 1993-06-18 1998-12-16 株式会社ピーエフユー Power control method
JP3523225B2 (en) * 2001-09-18 2004-04-26 Necマイクロシステム株式会社 Clock monitoring apparatus and monitoring method
JP5402964B2 (en) * 2011-03-11 2014-01-29 オムロン株式会社 Mutual monitoring system, management device and system
JP5719744B2 (en) * 2011-10-11 2015-05-20 株式会社日立製作所 Multi-system controller
JP2014102662A (en) * 2012-11-19 2014-06-05 Nikki Co Ltd Microcomputer run-away monitoring device
JP6224545B2 (en) * 2014-08-05 2017-11-01 日立オートモティブシステムズ株式会社 Electronic control unit

Also Published As

Publication number Publication date
JP2018077619A (en) 2018-05-17

Similar Documents

Publication Publication Date Title
JP4245624B2 (en) Power supply control device and power supply control method for hybrid vehicle
CN107089143B (en) vehicle
US9969269B2 (en) Hybrid vehicle and control method of hybrid vehicle
CN103958243A (en) Vehicle and control method for vehicle
US9688132B2 (en) Hybrid vehicle
JP6341238B2 (en) Automobile
JP2010178595A (en) Device for controlling vehicle
JP3617407B2 (en) Abnormality monitoring of CPU in control device of moving body using prime mover
JP6708562B2 (en) Automobile
JP5999024B2 (en) Hybrid vehicle control system
JP2017144836A (en) Hybrid vehicle
EP3141445B1 (en) Control system for hybrid vehicle
US8814749B2 (en) Vehicle and control method for vehicle
JP2015067225A (en) Hybrid system
JP2017043306A (en) Hybrid vehicle
JP6476936B2 (en) Drive control device
JP6702145B2 (en) Processor
JP2015107765A (en) Vehicle failure determination device
JP2013180647A (en) Vehicle
JP6107565B2 (en) Hybrid vehicle control device
JP5024892B2 (en) Vehicle and vehicle control method
JP4239949B2 (en) Hybrid control system
JP6848806B2 (en) Hybrid car
JP2007210413A (en) POWER OUTPUT DEVICE, VEHICLE MOUNTING THE SAME, AND METHOD FOR CONTROLLING POWER OUTPUT DEVICE
JP2017061183A (en) Vehicle control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190617

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200323

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200420

R151 Written notification of patent or utility model registration

Ref document number: 6702145

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151