A slope compensation circuit that provides slope compensation in a
switching regulator is provided. The slope compensation circuit
preferably is adapted to receive an oscillator pulse train from a pulse
width modulator oscillator and a modulator pulse train from a pulse width
modulator. The circuit preferably includes a feedback loop that is
responsive to the oscillator pulse train. The circuit preferably provides
a slope compensation pulse train of ON and OFF states that is responsive
in part to the feedback loop and in part to the pulse width modulator
switch pulse train. The invention preferably achieves lower maximum slope
compensation current by incorporating an analog feedback loop in the PWM
system to start slope compensation preferably only slightly ahead of PWM
switch-OFF. This preferably occurs independent of the PWM duty cycle.