Hi Bruce,
you mentioned above that the equation used to calculate the PWM resolution is
log(20MHz/19.455kHz) 3.01
Resolution = ------------------ = ----------- = 10 bits
.301 .301
In the 18F2431 datasheet it says that Fosc must be divided by four, i.e.
log(5MHz/19.455kHz) 2.41
Resolution = ------------------ = ----------- = 8 bits
.301 .301
and in other microchip document (link below) it provides the same equation you used.
http://ww1.microchip.com/downloads/e...doc/31014a.pdf
I am confused here! Can you please tell me what you think of that?
Kind regards,
Bookmarks