With global interrupts enabled it will wake up and jump to location 4 expecting an interrupt
handler.
Disable global interrupts. Interrupt on change will wake the PIC from sleep, then execute
the instruction after sleep without vectoring to location 4.
Read the section on Power-Down Mode (SLEEP) for details on why this happens.




Bookmarks