In a switching regulator circuit having a function of bypassing a power
supply and an output terminal, there is provided a switching regulator
that obtains a stable output voltage even if the operation of the bypass
function is changed over. A reference voltage that is inputted to an
error amplifier is set to a higher voltage value in a bypass state, and
is gradually decreased to a desired value when the bypass state is
canceled.