Quote Originally Posted by AndrewC View Post
Hi Darrel,
Basically following Bruce's example in this thread:
http://www.picbasic.co.uk/forum/showthread.php?t=1770
Oh,OK.
According to that, it's running the PWM at the absolute minimum frequency, which gives exactly 10-bit resolution.

From you're last post I see that it's not continuously changing the dutycycle. So I don't need to talk about "glitch-free" either.

So it looks like your original idea from post #1 is the way to go, with 1 exception.
Subtract from 1023 instead of 1024.
<br>