Low Power Operating Modes of PIC24 MCUs dsPIC® DSCs

PIC24F MCUs and dsPIC® Digital Signal Controllers (DSCs) support several operating modes for reducing power consumption. These modes include Idle, Doze, Sleep, and for devices with eXtreme Low Power (XLP) technology: Deep Sleep. Some devices can be configured to keep the most critical subsystems running in the event of a Vdd failure (Vbat mode).

On most 16-bit MCUs and DSCs, the clock source may also be switched at run-time.

Basic Oscillator for 16-bit MCUs and DSCs

The primary mechanism for saving power is the manipulation of the system clock. The following is a simplified illustration of the oscillator system for a 16-bit device. A more detailed description of the oscillator is presented on the 16-bit Oscillator Page.

A device's system clock (Fosc) is set when exiting reset by the configuration bit settings.

Power Saving Modes

  • Doze mode slows down Fcy, leaving the Fp unchanged.
  • Idle mode turns off the clock to the CPU (Fcy) but the peripheral clock (Fp) is kept running.
  • Sleep mode turns off most of the system oscillator circuit. The Watchdog Timer (WDT) may be left on in Sleep mode if it is running from Low Power RC oscillator (LPRC). The content of the memory and all registers are maintained in Sleep mode. This mode has a low voltage option.
  • Low Voltage Sleep mode turns off the same oscillator circuits as does the Sleep mode. Low-Voltage Sleep mode retains the memory contents using a low power voltage regulator. It will take longer to wake-up from this mode than it does to wake up from Sleep mode.
  • Deep Sleep mode turns of the oscillator circuit driving the CPU and the peripherals. If enabled, the Deep Sleep Watchdog Timer (DSWDT) and the Real Timer Clock Calendar (RTCC) are kept running from their dedicated ultra-low power oscillators. Deep Sleep mode can be entered with or without the retention option. Without the retention option, only the contents of two 16-bit registers are retained; all other memory and registers including the Program Counter are lost. With retention option, all registers and memory values are preserved. The Deep Sleep mode allows fewer peripherals to initiate a wake up than do the two other Sleep modes.
  • Vbat mode is a hardware-based backup system which runs important peripherals in the event of a failure on Vdd. Vbat does require the installation of a power source ( i.e. a battery) on a specific I/O pin.
  • Program controlled Clock Switching mode allows the system clock source to be changed at runtime. Clock Switching mode will temporarily override the configuration bit settings, allowing another (lower speed) clock source to generate Fosc. Upon each reset, the clock source reverts to the one determined in the configuration bits.

Summary of Power Saving Modes

Mode CPU Clock Peripheral Clock Memory Contents Exit Location
Doze Slow Running Retained Next Instruction
Idle Stopped Running Retained Next Instruction
Sleep Stopped Stopped Retained Next Instruction
Low Voltage Sleep Stopped Stopped Retained Next Instruction
Deep Sleep
(with retention)
Stopped Stopped Retained Next Instruction
Deep Sleep
(w/o retention)
Stopped Stopped Two Registers
Retained
Reset Vector
Vbat Stopped Stopped Two Registers
Retained
Reset Vector
Clock Switching scaleed down by equal amounts Retained Next Instruction

 Learn More

Doze, Idle and Sleep Modes
Deep Sleep
Clock Switching
Battery Backup (Vbat)

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.