Currently, CodeWarrior supports two low power modes: normal WAIT and normal STOP. The Microcontrollers Software Analysis Tools component provides support for the normal WAIT state. This state allows peripherals to function, while allowing CPU to go to sleep reducing power.
The Wait For Interrupt (WFI) instruction is used to enter the low power WAIT state. When an interrupt request occurs, the CPU exits the WAIT mode and resumes processing, beginning with the stacking operations leading to the interrupt service routine.
When the hardware detects a WFI wake-up event, or earlier if the implementation chooses, the WFI instruction completes.
To activate low power mode monitoring and view results, you need to:
These steps are described in the following topics.