A compensation network for an error amplifier is provided. During normal
operation, proportional-integral control is performed, and a capacitor of
the compensation network is coupled to the error current. During a fault
condition, the capacitor is de-coupled from the error current and
discharged, and proportional control is performed. After the fault
condition ends, the capacitor is re-connected to the error current.