Chapter 17. Using Low-Power Features in Programming

Overview

In Chapter 11, we covered how the Cortex-M0 processor provides low-power advantages over other processors and looked at an overview of the low-power features in the Cortex-M0. In this chapter, we discuss how these low-power features are used in programming. In the last part of this chapter, we briefly cover the low-power features in a Cortex-M0 microcontroller (NXP LPC111x) and demonstrate how to use sleep modes in this device.

Review of Sleep Modes in the Cortex-M0 Processor

The Cortex-M0 processor supports normal sleep and deep sleep modes. The sleep modes can be entered using WFE or WFI instructions, or using Sleep-on-Exit feature (Figure 17.1).
Figure 17.1
Normal sleep and deep sleep ...

Get The Definitive Guide to the ARM Cortex-M0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.