I have developed a PWM dimmable LED driver using TOP249. Circuit has single stage pfc. I'm switching the FET connected in series with LED to achieve dimming. Circuit is working fine when no dimming is applied. But when I apply dimming, peak current shoots up and LED starts flickering.
Since I'm working in a proprietary company, I am not at liberty to share the schematic of my circuit.
Can anybody suggest the reason and/or solution for this?