A switching regulator (20) includes a sense resistor (Rs), a sense current
generating circuit (213) for generating a sense current (Isense)
commensurate with a sense voltage (Vsense), a slope current generating
circuit (214) for generating a slope current (Islope) with a ramped or
triangular waveform, a slope voltage generating circuit (215) for
generating a slope voltage (Vslope) commensurate with a summed current
(Isense plus Islope), an error amplifier (ERR) for generating an error
voltage (Verr) commensurate with an error of an output, a comparator
(CMP) for comparing the error voltage (Verr) with the slope voltage
(Vslope) to generate a PWM signal and a switching control section (CTRL)
for turning on and off an output transistor (N1) based on the PWM signal.