Abstract:
A control circuit of a switching regulator includes a control pin for coupling with an external resistor; a resistor detecting circuit for detecting a resistance of the external resistor; a current generating module for generating a corresponding control current according to a detection result of the resistor detecting circuit; an oscillating circuit for generating a clock signal; and a mode-switching circuit. When the mode-switching circuit configures the oscillating circuit to operate in a resistor-controlled mode, the oscillating circuit generates the clock signal according to the control current so that the clock signal has a frequency corresponding to the resistance of the external resistor. When the mode-switching circuit configures the oscillating circuit to operate in a signal-controlled mode, the oscillating circuit generates the clock signal according to an external synchronous signal coupled with the control pin so that the clock signal is synchronized with the external synchronous signal.