The present invention relates to controlling the refresh rate of the reference voltage on a sampling capacitor. The motor drive unit is coupled to a motor driving a load and is configured to selectively control the motor according to a torque control mode and a speed control mode. A metal gate electrode is then formed from the impurity containing metal layer. Unipolar generator can be used for power supply.