The control circuit 9 generates a drive instruction for operating the switching elements of the inverter 7, and outputs the drive instruction to a drive circuit (driver), which is not shown. The control circuit 9 generates the drive instruction based on a torque request received from a higher-level ECU (not shown) or signals detected by various sensors.
The various sensors include a current sensor that detects a phase current flowing in the wiring of each phase of the motor generator 3, a rotation angle sensor that detects a rotation angle of the rotor of the motor generator 3, a voltage sensor that detects the voltage between the both ends of the smoothing capacitor C2, that is, the voltage of the VH line 12H. The electric power conversion device 5 has these sensors (not shown). Specifically, the control circuit 9 outputs a PWM signal as the drive instruction. The control circuit 9 includes, for example, a microcomputer.
The drive circuit generates the drive signal based on the drive instruction from the control circuit 9, and outputs the drive instruction to the gate electrodes of switching elements Q1 and Q2 of the corresponding upper and lower arm circuit 10. In this way, the drive circuit drives, that is, turns on and off the switching elements Q1 and Q2. In the present embodiment, the drive circuit is provided for each upper and lower arm circuit 10.
Next, prior to the description of the electric power conversion device 5, the semiconductor device 20 and the power module 110 including the semiconductor device 20 will be described. The semiconductor device 20 and the power module 110 are the components of the electric power conversion device 5.