Just add a small delay as the | Microcontroller › 8051 › GENERATING VARIABLE PWM › Just add a small delay as the August 10, 2012 at 5:59 pm #8437 AJISH ALFREDParticipant Just add a small delay as the last statement of your infinite loop. like, MSDelay(1000);