A buck converter LED driver circuit is provided. The driver circuit
includes a buck power stage, a rectified AC voltage source, a voltage
waveform sampler, and a control circuit. The buck power stage includes at
least one LED and provides a first signal directly proportional to the
current through the LED. The rectified AC voltage source is coupled to
the buck power stage for driving the buck power stage. The voltage
waveform sampler is coupled to the rectified AC voltage source for
providing a second signal directly proportional to the voltage provided
by the rectified AC voltage source. The control circuit is coupled to the
voltage waveform sampler and the buck power stage for turning on and
turning off the buck power stage according to a comparison between the
first signal and the second signal.