Interrupt Quick Question


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79

    Default Interrupt Quick Question

    Does an on interupt statement actualy check for an interrupt after every line of code executed or only when It is written in the program. I would assume that it is after every line of code, or is it totaly independent of the code execution untill an interrupt is flagged. Confussing question sorry.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    it will check each and every time an statement is finish.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79

    Default

    Thanks Steve

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    And, of course,

    If you don't want it to check for an interrupt after every line, you can wrap any section of the code with a DISABLE / ENABLE combination.

    This allows it to work more like...

    or only when It is written in the program
    Darrel

Similar Threads

  1. Interrupt question
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th November 2009, 21:12
  2. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 03:35
  3. Help with Analog Interrupt
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 19:14
  4. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 02:07
  5. Interrupt question
    By stone in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th January 2005, 00:11

Posting Permissions

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