Hi Dwight,
If you don't want to DISABLE the interrupt then you don't insert the DISABLE directive hence they does not need to be in matched pairs. You place the ENABLE directive prior to any code where you want the interrupt flag to be polled between statements and you place the DISABLE before any block of code where you don't want the flag to be polled. Since it's not a runtime command it doesn't matter if it's subroutines or whatnot.
You won't regret Learning how to use DT-INTS. It's more complicated than ON INTERRUPT but much more powerful.
/Henrik.




Bookmarks