A synchronous switching voltage regulator circuit is provided. After the
first PWM pulse or at the end of a soft-start, a gradual transition is
made from asynchronous rectification to fully synchronous rectification,
or vice versa. During the gradual transition, the error voltage is
level-shifted down to correct for error caused by reverse current through
the body diode of the main switch.