Patent ID: 8253406

Claim:
A switching regulator comprising: an input end, for receiving an input voltage; an output end, for outputting an output voltage; a sensing module, coupled to the input end, for sensing an input current of the switching regulator to generate a sensing current; a switch module, coupled to the sensing module, for determining whether the input end is electrically connected to the output end; an output module, coupled between the switch module and the output end, for generating the output voltage; a first comparator, coupled to the output end, for comparing a feedback signal of the switching regulator and a reference voltage to generate a first comparison result; a compensation module, for providing a compensation signal; a sawtooth wave generator, coupled to the sensing module, for generating a sawtooth wave signal according to the sensing current; a second comparator, coupled to the sawtooth wave generator and the compensation module, for comparing the sawtooth wave signal and the compensation signal to generate a second comparison result; a third comparator, coupled to the sawtooth wave generator and the first comparator, for comparing the sawtooth wave signal and the first comparison result to generate a third comparison result; and a logic module, coupled to the second comparator, the third comparator and the switch module, for generating a switching signal according to the second comparison result and the third comparison result.