EasyManua.ls Logo

Microchip Technology dsPIC30F - Interrupts Coincident with Power Save Instructions

Microchip Technology dsPIC30F
738 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
© 2004 Microchip Technology Inc. DS70057C-page 10-5
Section 10. WDT and Power Saving Modes
WDT and Power
Saving Modes
10
10.4.1 Wake-up from Idle on Interrupt
Any source of interrupt that is individually enabled using the corresponding IE control bit in the
IECx register and exceeds the current CPU priority level, will be able to wake-up the processor
from Idle mode. When the device wakes from Idle mode, one of two options may occur:
If the assigned priority for the interrupt is less than or equal to the current CPU priority, the
device will wake-up and continue code execution from the instruction following the PWRSAV
instruction that initiated Idle mode.
If the assigned priority level for the interrupt source is greater than the current CPU priority,
the device will wake-up and the CPU exception process will begin. Code execution will
continue from the first instruction of the ISR.
The Idle status bit (RCON<2>) is set upon wake-up.
10.4.2 Wake-up from Idle on Reset
Any Reset, other than a POR, will wake the CPU from Idle mode. On any device Reset, except
a POR, the Idle status bit is set (RCON<2>) to indicate that the device was previously in Idle
mode. In a Power-on Reset, the Idle bit is cleared.
10.4.3 Wake-up from Idle on WDT Time-out
If the WDT is enabled, then the processor will wake from Idle mode on a WDT time-out and
continue code execution with the instruction following the PWRSAV instruction that initiated Idle
mode. Note that the WDT time-out does not reset the device in this case. The WDTO and Idle
status bits (RCON<4>, RCON<2>) will both be set.
10.4.4 Time Delays on Wake from Idle Mode
Unlike a wake-up from Sleep mode, there are no time delays associated with wake-up from Idle
mode. The system clock is running during Idle mode, therefore, no start-up times are required at
wake-up.
10.5 Interrupts Coincident with Power Save Instructions
Any interrupt that coincides with the execution of a PWRSAV instruction will be held off until entry
into Sleep or Idle mode has completed. The device will then wake-up from Sleep or Idle mode.

Table of Contents

Other manuals for Microchip Technology dsPIC30F