A bleeding resistor is required to discharge EMI filter of the power
converter for the safety purpose. In order to save power and reduce
device count, the present invention further uses this bleeding resistor
for both start-up and feedforward compensation. It includes an input
terminal for connecting the bleeding resistor. A voltage divider is
connected to the input terminal. A sample-and-hold circuit samples and
holds a voltage signal from the voltage divider. After that, a low-pass
filter is connected to the sample-and-hold circuit to generate an offset
signal in accordance with the voltage signal. The offset signal is
connected to a limit circuit to generate a limit signal that limits the
switching current of the power converter.