DT-INTs What's legal in an INT handler?


Results 1 to 14 of 14

Threaded View

  1. #11
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I.E. if you GOSUB outside the interrupt routine, and don't re-enter it before your return, you might
    experience major problems.

    Code:
    ------------ DT Interrupt handler --------
    Get_Byte:
    
    do something here
    
    If black then gosub apples
    If withe then gosub peach
    
    @ return
    
    
    apples:
    do something
    return
    
    peach:
    do something
    return
    Bruce, can you please explain better your statement? from what you said, I understand that the above example code could give problems, while I am using this type of jump out of the interrupt handler, quite often and I never experienced any problem.

    Al.
    Last edited by aratti; - 29th January 2010 at 07:24.
    All progress began with an idea

Similar Threads

  1. DT instant int error
    By mel4853 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th January 2010, 16:12
  2. Quick thoughts: DT Ints with encoders
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 7th January 2010, 01:01
  3. DT Ints work around for IOCA Register?
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th January 2010, 01:20
  4. Problem with Dt Ints Interrupts
    By Quin in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th July 2008, 19:21
  5. Replies: 1
    Last Post: - 2nd November 2006, 23:24

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