Hi,
A simple way could be to count how many times you have read "1023" and reset the counter if other reading ... there might be something like a timed loop in your program ...
from your TMR1 example ...
IF counter > 3435 then AUTO_DESTRUCT_LAUNCHED ...
"on interrupt" might be more than enough to flag the TMR1 Overflows and increment counter ...
Alain
************************************************** ***********************
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