In regenerative braking mode, an inverter converts, according to PWMC
signal from a control unit, an AC voltage generated by a motor into a DC
voltage to supply the converted DC voltage to an up-converter which
down-converts the DC voltage to charge a DC power supply. The control
unit receives voltage V2 from a voltage sensor to stop the up-converter
if voltage V2 is higher than a predetermined value. The control unit
further receives voltage Vf from a voltage sensor that is applied to a
DC/DC converter and stops the up-converter if voltage Vf is higher than a
predetermined value. Moreover, the control unit receives voltage V1 of
the DC power supply from a voltage sensor to stop the up-converter if
voltage V1 does not match voltage V2.