Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Sleep manager example

Introduction

This simple example shows how to use the Sleep manager.

Main files:

Sleep manager API

The sleep manager API can be found here.

Device Info

All SAM series devices can be used. The example has been tested on the boards:

  • SAM4N Xplained Pro kit
  • SAMG53 Xplained Pro kit
  • SAMG55 Xplained Pro kit
  • SAM4C evaluation kit
  • SAMV71 Xplained Ultra kit
  • SAME70 Xplained Pro kit

Description of the example

The device is put to sleep in sleep modes with increasing "depth", and is periodically woken up by the RTT_ALARM. The RTT_ALARM wakes the CPU every 5 seconds. The device will remain in ACTIVE mode for approximately 3 seconds after wake- up, before it goes to sleep in the next mode.

A pin (LED_ACTIVITY_STATUS_PIN) with, e.g., a LED connected is driven low when the device is active and driven high when the device is sleeping.

Compilation Info

This software was written for the GNU GCC and IAR. Other compilers may or may not work.

Contact Information

For further information, visit Microchip.
Support and FAQ: https://www.microchip.com/support/