An improved method of canceling a RHPZ of a switching regulator can
include detecting a predetermined error signal provided to a pulse width
modulation (PWM) circuit, wherein the predetermined error signal is
associated with the RHPZ. Once a RHPZ is detected, a ramp waveform
provided to the PWM circuit can be temporarily lengthened, thereby
canceling the RHPZ. Notably, temporarily lengthening the ramp waveform
can be based on adjusting an RZ*CZ time constant. In one embodiment, the
ramp waveform can be lengthened to create a left half-plane zero (LHPZ),
which improves stability.