yes....resolution and overhead
use ccp (capture/compare) module in capture mode....
count at 10MHZ,(Fosc/4 from 40MHZ) set for every 16th rise or fall edge to get counts directly, at 4000.0 hz, count is 40000
-at 3999 hz count is 40010
-at 4001 hz count is 39990
freq then = (40,000 +/- difference)/10 hz down to .1HZ
i think?
don
Bookmarks