A method of controlling a switching regulator includes detecting current-limit events indicating a maximum current threshold has been exceeded. A compensation voltage is adjusted in response to the detected current-limit events, where the compensation voltage defines a duty cycle of the switching regulator. A time is detected for which no current-limit events have been detected and the value of the compensation voltage is adjusted to increase the duty cycle of the switching regulator in response to the detected time exceeding a time step threshold.
展开▼