Re: Can not change variable while using DT_INT?
Hi,
Difficult to give a precise answer with such a " code scheme " ...
the thing is ... with DTinterruptions, you save vars BEFORE interrrupt and restore them when returning ...
so, considering this detail, what happens looks obvious.
May be you should have a look here http://darreltaylor.com/DT_INTS-14/elapsed.html to see how button changes are held ...
Alain
Last edited by Acetronics2; - 28th March 2013 at 09:37.
************************************************** ***********************
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