10.01.2015 Views

Energy Modes - AN0007 - Application Note - Energy Micro

Energy Modes - AN0007 - Application Note - Energy Micro

Energy Modes - AN0007 - Application Note - Energy Micro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5 EM4 Wakeup Software Example<br />

...the world's most energy friendly microcontrollers<br />

This example shows how to do a wake up from EM4. It will also be shown how to make use of the 512<br />

bytes of available memory that can be retained in EM4.<br />

5.1 DK example<br />

This example is made for the EFM32GG-DK3750/EFM32GG-DK3650 Development Kit. The example<br />

will repeatedly enter EM4 and sleep for 5 seconds. A retention register is used to keep track of the<br />

number of times the MCU has woken up from a BURTC interrupt.<br />

It is also possible to wake up by connecting pin PF2 to GND. A separate register is used to keep track<br />

of how many times the MCU has woken up from a GPIO pin.<br />

Every time the MCU wakes up, the reset cause (reset pin, GPIO or BURTC) will be printed to the display.<br />

The number of times woken up (for either GPIO or BURTC) is also printed. Make sure the AEM mode<br />

is "EFM32" to enable the display (toggled with the AEM button).<br />

5.2 STK example<br />

This example is made for the EFM32GG-STK3700/EFM32GG-STK3600 Starter Kit. The example will<br />

repeatedly enter EM4 and sleep for 5 seconds. A retention register is used to keep track of the number<br />

of times the MCU has woken up from a BURTC interrupt.<br />

It is also possible to wake up by connecting pin PF2 to GND. A separate register is used to keep track<br />

of how many times the MCU has woken up from a GPIO pin. The PF2 pin is labelled SWO on the starter<br />

kit and is found near the bottom right corner.<br />

Every time the MCU wakes up, the reset cause (reset pin, GPIO or BURTC) will be printed to the LCD.<br />

The number of times woken up (for either GPIO or BURTC) is also printed.<br />

2013-05-08 - an0007_Rev1.07 10 www.energymicro.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!