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>





Bookmarks