PDA

View Full Version : Question on DT Int14



aratti
- 16th May 2009, 21:56
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.

Darrel Taylor
- 16th May 2009, 22:25
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,

aratti
- 16th May 2009, 22:54
Very efficient!

Thank you Darrel.

Al.