7.3 Interrupts During Sleep
Interrupts can be used to wake from Sleep. To wake from Sleep, the peripheral must be able to operate without the system clock. The interrupt source must have the appropriate Interrupt Enable bit(s) set prior to entering Sleep.
On waking from Sleep, if the GIE bit is also set, the processor will branch
to the interrupt vector. Otherwise, the processor will continue executing instructions
after the SLEEP
instruction. The instruction directly after the
SLEEP
instruction will always be executed before branching to the
ISR.