Fade PWM in (almost) realtime.

I can use a For loop, but i run the danger of the loop taking longer to complete than the clock takes to cycle if i only increment by one. I could do larger increments but loose resolution.