Why don my interrupts work after the PIC32 device awakes from sleep/idle mode?
If the PIC32 device enters sleep mode and it is to be woken by the watch-dog timer (WDT) then this FAQ may explain why interrupts are disabled after waking. When the device is awoken from sleep mode using the WDT it triggers a non- maskable interrupt (NMI). These interrupts are hard-wired to vector the PC to the reset vector (i.e. 0xBFC0000 in KESG1 boot flash memory). The compiler generated startup code will test for a NMI and jump to a handling routine. The default routine is simply an ERET instruction which sets the PC to the instruction following the WAIT instruction in the program code which was used to enter sleep mode in the first place. After the NMI has been “serviced” in the above manner the system coprocessor (CP0) STATUS register will have undergone some changes.
Related Questions
- I need to remote control a device that is in the sleep /standby mode and is currently offline. How can I wake up the device and force it to connect to MobiControl?
- How do I prevent Civil Netizen from disconnecting from the network when my computer goes into sleep mode?
- How Can I get the PAP device and sleep apnea mask?