Hi, slot
If your processor runs @ 20 Mhz ... the pulsin step is 2µS ...with 16 bits of count
you want to measure from 0.006 to 0.12 s ...
65535 * 2µS = 0.131070s ... ok for lo speed
3000 * 2µS = 0.006 s .... ok for hi speed
so, the max error is 1/ 3000 counts ...
is this enough for you ...and do not forget you will have to read something stable ...a mean value over 100 samples will give you 0.6s between each result.
seems correct with pulsin !!!
... except if you want to count AND run calculations at the same time. The CCP module will there be compulsory ...
Alain
Bookmarks