A switching control circuit having detection terminal, input terminal,
ramp generator, program terminal, error amplifier, mix circuit, and delay
circuit for power factor control is provided. The detection terminal
generates a detection signal in response to the inductor discharge. An
input terminal is connected for detecting a switching current signal. The
program terminal determines the slew rate of the ramp signal and the
maximum on-time of the switching signal. An error amplifier generates an
error signal for regulating the output. A mix circuit generates a mixing
signal proportional to ramp signal and the switching current signal. The
switching signal is turned on in response to the detection signal, and is
turned off based on the error signal. The slew rate of the mixing signal
is increased in response to the increase of the input voltage. The
on-time of the switching signal is increased inversely proportional to
the input voltage.