A switching regulator is provided with: a comparator producing a
comparison signal by comparing a feedback voltage commensurate with an
output voltage with a predetermined reference voltage; an oscillator
producing a clock signal at a predetermined frequency; a latch circuit
producing a pulse width modulation signal with a desired duty factor
based on the comparison signal and the clock signal; an output transistor
for which switching control is performed based on the pulse width
modulation signal, the output transistor having one end from which a
switching voltage in the form of a rectangular wave is outputted; and a
phase compensation circuit connected between an output terminal of the
latch circuit and a feedback voltage input terminal of the comparator.