2.1.1 Low-Power Mode

As mentioned, this is a pure hardware solution with no extra code required. Since both the timer and the CLCs can run in Sleep mode, the device can be configured to run in Sleep mode in order to suspend the CPU to minimize the power consumption. This can be done by inserting the following line of code in the main() function of the main.c file, after the system initialization function:

SLEEP();