The 18F family also allows one to set some interrupts as high priority and some as low priority. If a high priority interrupt occurs, it will complete the High ISR and exit before servicing additional interrupts (unless you are crafty like Jerson noted). If a low priority interrupt occurs, it will proceed to the Low ISR and exit before serving additional low level interrupts. However, if a high level interrupt occurs while your code is in the low level ISR, the low level interrupt will be interrupted. The high level interrupt will be serviced and then the code will jump back to the low level interrupt and finish its ISR before exiting. Clear as mud?
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Bookmarks