| CPC H05B 45/325 (2020.01) | 9 Claims |

|
1. A LED driver circuit comprising:
an input-adapted to receive a rectified mains input signal;
a storage capacitor, coupled to the input;
a first current source circuit adapted to set an output current, wherein the first current source circuit is controlled by pulse width modulation with on periods and off periods, and wherein the first current source circuit and the storage capacitor form a capacitor discharging loop;
a charging circuit adapted to charge the storage capacitor, comprising a second current source circuit, wherein the second current source circuit and the storage capacitor form a capacitor charging loop; and
a compensating arrangement adapted to increase the current delivered by the second current source circuit during off period times of the pulse width modulation, wherein the compensating arrangement comprises a coupling between the first and second current source circuits,
wherein the first current source circuit comprises a first control input adapted to set a current level, based on the voltage across a first resistor between a ground terminal and the first control input, and the second current source circuit comprises a second control input adapted to set a current level, based on the voltage across a second resistor between a virtual ground terminal and the second control input, wherein the compensating arrangement comprises a coupling between the virtual ground terminal and the first control input.
|