15.2 Power Modes
To minimize power consumption, the PIC32CX-BZ2 incorporates a PMU that provides both DC-DC (Buck) and LDO power conversion. The input voltage range to the PMU is 1.9V to 3.6V – VDD (main). On power-up, the PIC32CX-BZ2 operates in LDO mode; the software must enable the DC-DC Buck converter.
See Electrical Characteristics from Related Links for detailed electrical information.
The power modes and power management features provided by the PMU are shown in the following table.
Functions | Device Power Modes | |||||
---|---|---|---|---|---|---|
Run | Idle | Dream1 | Sleep(Standby) | Deep Sleep(Backup) | eXtreme Deep Sleep(Off) | |
CPU | On | Clock Gated | Clock Gated | Clock Gated | Off | Off |
Peripherals | On | On | On Demand | Clock Gated | Off | Off |
Flash | On | On | On Demand | Clock Gated | Off | Off |
Core System Memory | On | On | On Demand | Retention Mode | Off | Off |
Radio | On | On | On Demand | Clock Gated | Off | Off |
DSWDT | On | On | On | On | On | Off |
RTCC | On | On | On | On | On | Off |
Backup RAM | On | On | On Demand | Retention Mode | Retention Mode | Off |
XTAL(16 MHz) | On | On | On | On | Off | Off |
SPLL | On | On | On Demand | Off | Off | Off |
ADC | On | On | On Demand | On Demand | Off | Off |
Analog Comp | On | On | On Demand | On Demand | Off | Off |
FRC | On | On | On Demand | Off | Off | Off |
LPRC | On | On | On | On | On | On |
- Dream (Sleep Walking) is not a mode by itself but is a companion mode to the Sleep mode. This mode cannot be entered directly through a software command.
Current consumption can be reduced on peripherals/modules in "On" state by clock gating and/or disabling the module, see Module Enable/Disable Controls in the Register Description from Related Links. All transitions from the Run state to any of the low power states is simply initiated by WFI command from the CPU. However, prior to initiating the WFI command.
- Disabling all interrupts
- Setting up the DSCON[DSEN], OSCCON[SLPEN], OSCCON[DRMEN] and Wireless Subsystem Sleep mode Controls
- Set the Wireless Subsystem into the Low Power mode
- Enable the appropriate wake-up events
- Checking for any pending interrupts and, if present, abort deep sleep and service the interrupt
- If no pending interrupts, then issue a SLEEP/WAIT command from the CPU to get into the appropriate Low Power mode
In the Run mode, the CPU is actively executing code. Run mode provides normal operation of the processor and all peripherals that are currently enabled.
In the Idle mode, all active peripherals can be clocked, but the CPU core is clock gated off and no code is executed.
In the Dream mode (or Sleep Walking mode), the CPU is clock gated but peripherals can be turned on on-demand by events related to those peripherals. No code is executed.
In the Sleep and Deep Sleep modes, the backup RAM is in retention mode, while the CPU and most peripherals are clock gated off and no code is executed.
1
; failure to do so would result in faulty configuration fault
indications.The low power mode entry and exit commands and wake up resources are shown in the following table.
Device Power Modes | Entry Commands | Wake-up Resources |
---|---|---|
Run | — | — |
Idle | WFI Instruction + ~OSCCON[SLPEN] | IRQ, Reset, Others(1) |
Dream | OSCCON[DREAM] + Event + Sleep mode | IRQ, Reset, Others |
Sleep | ~DSCON[DSEN]+OSCCON[SLPEN]+Wireless Sleep followed by WFI | IRQ, Reset, Others |
Deep Sleep | DSCON[DSEN]+ {RTCC (Enabled) or DSWDT (Enabled)} + Wireless Sleep followed by WFI | INT0, RTCC, DSWDT(2), Reset |
eXtreme Deep Sleep | DSCON[DSEN]+ {RTCC (Disabled) and DSWDT (Disabled)} + Wireless Sleep followed by WFI | INT0, Reset |
- Others = System Wake-up (Dream), WDT (Timeout Event), DMT (Timeout Event), PLVD Event, PMU Event, External NMI/INT, DSU/ICD Debug Event, CPU Debug Event.
- To enable the Deep Sleep Mode Watchdog Timer(DSWDT) in deep sleep mode, Configuration Control Register 4(CFGCON4). DSWDT is a separate timer from the device's watchdog timer that is used in run mode. The device Watchdog Timer (WDT) does not have to be enabled for the DSWDT to function.
- For more information, see DSCON register from Related Links.