-
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.
-
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,
-
Very efficient!
Thank you Darrel.
Al.