17.2 Sleep Mode
Sleep mode provides the greatest power savings because both the CPU and selected
peripherals cease to operate. However, some peripheral clocks continue to operate during
Sleep. The peripherals that use those clocks also continue to operate. Sleep mode is
entered by executing the SLEEP
instruction, while
the IDLEN bit is clear. Upon entering Sleep mode, the following conditions
exist:
- The WDT will be cleared but keeps running if enabled for operation during Sleep.
- The PD bit of the STATUS register is cleared.
- The TO bit of the STATUS register is set.
- The CPU clock is disabled.
- LFINTOSC, HFINTOSC and ADCRC are unaffected. Peripherals using them may continue operation during Sleep.
- I/O ports maintain the status they had before Sleep was executed (driving high, low, or high-impedance).
- Resets other than WDT are not affected by Sleep mode.
To minimize current consumption, consider the following conditions:
- I/O pins must not be floating
- External circuitry sinking current from I/O pins
- Internal circuitry sourcing current to I/O pins
- Current draw from pins with internal weak pull-ups
- Peripherals using clock source unaffected by Sleep
I/O pins that are high-impedance inputs need to be pulled to VDD or VSS externally to avoid switching currents caused by floating inputs. Examples of internal circuitry that might be consuming current include modules such as the DAC and FVR peripherals.