Can not change variable while using DT_INT?


Results 1 to 7 of 7

Threaded View

  1. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default 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 " !!!
    *****************************************

Similar Threads

  1. Change a variable to the opposite?
    By Hylan in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 21st June 2012, 07:00
  2. Change variable allocation to save code space
    By aberco in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 5th September 2011, 01:28
  3. Question on DT_INT
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th July 2011, 15:04
  4. A little DT_INT confusion.
    By circuitpro in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th October 2010, 00:46
  5. Let a variable change from bin to dec.
    By Roy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th May 2004, 19:57

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts