I'm making a High Bright LED driver using a TOP223. I need it to be dimmable with a PWM signal. I was thinking of using a Shunt resistor to sense de LED current and compare it with the PWM signal, filtered with a simple RC filter. Is this possible? any ideas?