
Originally Posted by
HankMcSpank
the number I'm seeing is 4500 (not 2500). Here's what I'm seeing withrt comparator 'counts' when feeding a 1Khz signal in...
Now in the light of your info Alain, I'm actually only looking for a count of 5000 (vs the 20,000 I'd erroneousy calculated @1khz incoming signal), this sheds new light on the situation.
.
Ok Hank ...
4500 looks fine ... and you won't get much better using such discrete interrupt.
remember ??? :
let's forget Interrupt duration for the moment
Aaaarghhhh ... time to care of it ...
PBP interrupt save and restore all the system vars ... and it takes TIME.
So, you have to compensate ...
or use TMR1 in " rolling mode " ...
Alain
Last edited by Acetronics2; - 13th September 2010 at 20:16.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks