Question on DT Int14


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825

    Default Question on DT Int14

    Hi Darrel, I have a question regarding your interrupt routine:


    If you have two interrupt handlers, in the same program, and both are triggered at the same time


    A) which one is executed first?

    B) what happen to the second?


    Thank you for preciuos help

    Al.
    All progress began with an idea

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


    Did you find this post helpful? Yes | No

    Default

    Hi Al,

    The handlers are executed in the order they are listed in the INT_LIST macro.
    The one with the highest priority should be listed first.

    The next handler will execute immediately after the first one has finished.
    At the end of the list, if any handlers were serviced, it will loop back around to the beginning of the list to see if there's been another interrupt or another byte in the USART etc. before actually exiting the ISR.

    hth,
    DT

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Very efficient!

    Thank you Darrel.

    Al.
    All progress began with an idea

Similar Threads

  1. Replies: 4
    Last Post: - 17th December 2009, 00:29
  2. Tachometer with DT Interrupts?
    By DanPBP in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2009, 19:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 09:45
  5. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49

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