Abstract: In a LED driver, a dimming control circuit receives a PWM signal and a clock signal and outputs a dimming signal and a sampling signal. A turn-on time of sampling signal is shorter than a cycle of clock signal. A first error amplifier receives a feedback voltage, a reference voltage and a dimming signal and outputs a compensating voltage. A second error amplifier receives the compensating voltage and a ramp signal and outputs a pulse voltage. A driving controller receives the dimming signal and pulse voltage and outputs a control signal. An output stage receives the control signal and an input voltage and generates an output voltage to LED strings. A minimum voltage selecting unit selects a minimum LED voltage. The first error amplifier receives the minimum LED voltage through the selectively conducted switch unit controlled by the sampling signal.