Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why don my interrupts work after the PIC32 device awakes from sleep/idle mode?

0
Posted

Why don my interrupts work after the PIC32 device awakes from sleep/idle mode?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123