PicMultiCalc doesn't do TMR2,4,6 unless PR2=255 and you reload on every interrupt.
TMR2 counts up to the PR2 value + 1, then resets and interrupts.
So you were only getting 64 counts. (62.5Khz)
For 200 counts, set PR2 to 199.
PicMultiCalc doesn't do TMR2,4,6 unless PR2=255 and you reload on every interrupt.
TMR2 counts up to the PR2 value + 1, then resets and interrupts.
So you were only getting 64 counts. (62.5Khz)
For 200 counts, set PR2 to 199.
Last edited by Darrel Taylor; - 26th August 2011 at 05:13.
DT
Bookmarks