Interrupt block with different exit?


Results 1 to 14 of 14

Threaded View

  1. #1
    Join Date
    Jul 2024
    Posts
    28

    Default Interrupt block with different exit?

    Hi all,

    I'm troubleshooting an issue with an interrupt routine using RBC and Instant Interrupts where it's only detecting the first trigger and not any other following that.
    In my interrupt routine, when the interrupt is detected, the flag is cleared and there's a choice (IF...Then) that can lead the code to one of 2 options using GOTO.
    This means that after the interrupt, the code will not return to the point where the trigger was detected but somewhere else.
    That being said, I replaced the @ INT_RETURN with a couple of GOTOs.

    I found that replacing the @ INT_RETURN with GOTOs was causing the following triggers not being detected.
    If i replace the GOTOs with the @ INT_RETURN, the interrupts will work always.

    My question is...Is there a way i can do the jumps to where i want on the code and not being forced to return to where i was when the interrupt was triggered?

    Thanks
    Last edited by PaulMaker; - 5th February 2025 at 20:19.

Similar Threads

  1. Exit from an IF/ENDIF loop with a GOTO
    By aratti in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 17th February 2014, 13:05
  2. Capture loop exit
    By spcw1234 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2012, 20:29
  3. ASM block does not compile
    By efarook in forum mel PIC BASIC
    Replies: 2
    Last Post: - 31st May 2008, 21:42
  4. Timer Interrupt to exit a closed loop
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th December 2007, 16:45
  5. block comment?
    By eoasap in forum General
    Replies: 5
    Last Post: - 13th October 2005, 00:32

Members who have read this thread : 11

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