To provide a technology of driving a switching element for driving a load in an appropriate temperature range.
In a normal control condition, an MCS (Motor Control System)20 makes an operation condition of a motor 60 transit to PWM (Pulse Width Modulation) drive, DC drive and output stop based on a power voltage, an instruction value or the like. When the MCS 20 determines that failure occurs as a result of monitoring of output of a self-diagnosis output circuit 40 and output of a temperature detection circuit 70, the MCS 20 makes a motor control condition of the motor 60 transit to fail-safe control I. In this case, the MCS 20 calculates the temperature of an IPS 30 based on the output of the temperature detection circuit 70 during PWM drive, and makes the drive form of the motor transit to DC drive from PWM drive when the temperature is determined to be a predetermined value or more, for instance, 110°C or more.
Yukihiko Maejima