The invention pertains to a method for detecting and/or limiting short-circuit
or overcurrent states of a switching regulator, where the load current or a variable
proportional to the load current is measured and compared with a predetermined
maximum value, and where the result of this comparison is used to influence the
switching pulses. In this case, the result of the comparison between the load current
and the maximum value is only taken into consideration within at least one time
window during at least one timing period of the switching pulses.