A dimmable LED driver adapted to be operated with a dimmer that is configured to generate a predetermined conductive angle (θ), wherein the dimmable LED driver comprises: - a rectifier having an input coupled to the dimmer, the rectifier further having an output (V_ac), wherein the rectifier is configured to convert an AC voltage provided by the dimmer to a DC voltage and to provide the DC voltage at the output (V_ac) of the rectifier, - a buck PFC block having an input connected to the output (V_ac) of the rectifier, the buck PFC block further having an output (V_buck), wherein the buck PFC block is configured to adjust the DC voltage so as to provide a stable output voltage at the output (V_buck) of the buck PFC block, - a buck DC/DC block having an input connected to the output (V_buck) of the buck PFC block, the buck DC/DC block further having an output (LED+, LED-) coupled to an LED, wherein the buck DC/DC block is configured to provide a constant current from the stable output voltage in order to drive the LED, - a dimming block coupled to the output (V_ac) of the rectifier and further coupled to the buck DC/DC block, wherein the dimming block is configured to, after the constant current is provided by the buck DC/DC block, implement a dimming function jointly with the buck DC/DC block, and - a control block MCU connected to the output (V_ac) of the rectifier and connected and configured to control the buck PFC block, the buck DC/DC block and the dimming block, characterized in that the control block MCU comprises - a CPU having an input and a first output providing a PWM PFC signal (PWM_PFC), a second output providing a PWM buck signal (PWM_BUCK) and a third output providing a PWM dimming signal (PWM_DIM), - an ADC having a first input and a second input, the ADC further having an output connected to the input of the CPU, - a PWM PFC unit having an input adapted to receive the PWM PFC signal (PWM_PFC), the PWM PFC unit further having an output coupled to the buck PFC block, - a PWM buck unit having a first input adapted to receive the PWM buck signal (PWM_BUCK), the PWM buck unit further having an output coupled to the buck DC/DC block, - a PWM dimming unit having an input adapted to receive the PWM dimming signal (PWM_DIM), the PWM dimming unit further having an output coupled to the dimming block, and - a comparator unit having an output (V_out) connected to a second input of the PWM buck unit, the comparator unit further having an in-phase input end (V_A) coupled to the buck DC/DC block and a reversed-phase input end (V_B) connected to a reference voltage (Vref). - a rectifier having an input coupled to the dimmer, the rectifier further having an output (V_ac), wherein the rectifier is configured to convert an AC voltage provided by the dimmer to a DC voltage and to provide the DC voltage at the output (V_ac) of the rectifier, - a buck PFC block having an input connected to the output (V_ac) of the rectifier, the buck PFC block further having an output (V_buck), wherein the buck PFC block is configured to adjust the DC voltage so as to provide a stable output voltage at the output (V_buck) of the buck PFC block, - a buck DC/DC block having an input connected to the output (V_buck) of the buck PFC block, the buck DC/DC block further having an output (LED+, LED-) coupled to an LED, wherein the buck DC/DC block is configured to provide a constant current from the stable output voltage in order to drive the LED, - a dimming block coupled to the output (V_ac) of the rectifier and further coupled to the buck DC/DC block, wherein the dimming block is configured to, after the constant current is provided by the buck DC/DC block, implement a dimming function jointly with the buck DC/DC block, and - a control block MCU connected to the output (V_ac) of the rectifier and connected and configured to control the buck PFC block, the buck DC/DC block and the dimming block, characterized in that the control block MCU comprises - a CPU having an input and a first output providing a PWM PFC signal (PWM_PFC), a second output providing a PWM buck signal (PWM_BUCK) and a third output providing a PWM dimming signal (PWM_DIM), - an ADC having a first input and a second input, the ADC further having an output connected to the input of the CPU, - a PWM PFC unit having an input adapted to receive the PWM PFC signal (PWM_PFC), the PWM PFC unit further having an output coupled to the buck PFC block, - a PWM buck unit having a first input adapted to receive the PWM buck signal (PWM_BUCK), the PWM buck unit further having an output coupled to the buck DC/DC block, - a PWM dimming unit having an input adapted to receive the PWM dimming signal (PWM_DIM), the PWM dimming unit further having an output coupled to the dimming block, and - a comparator unit having an output (V_out) connected to a second input of the PWM buck unit, the comparator unit further having an in-phase input end (V_A) coupled to the buck DC/DC block and a reversed-phase input end (V_B) connected to a reference voltage (Vref).