An object of this invention is to finely set the voltage at high speed
without decreasing the efficiency. In a power supply for switching
operation including a switching circuit, an output circuit, a control
table which stores data on the ON and OFF periods of the switching
circuit in correspondence with a set voltage, an arithmetic processing
unit which performs reading operation from the control table and PWM
operation, and a digital control unit which controls the switching
circuit by outputting a PWM signal, feedback control based on the output
voltage is performed in a case where the output voltage is not changed.
When changing the output voltage, the feedback control is switched over
to control based on data in the control table to change the output
voltage at high speed.