Interrupt Support

 

Both high and low priority interrupts are supported through special Sub Procedures.  Context saving is also handled automatically for WREG, STATUS, BSR, FSR0, and PROD.

One of the following keywords should be added to the end of a Sub definition to make it an interrupt service routine:

Notes

Example:

' Define the high priority ISR
Sub HighPriorityISR() intHigh
End Sub
' Define the low priority ISR
Sub LowPriorityISR() intLow
End Sub