Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Sleep Manager unit tests on atmega128rfa1_stk600-rc128x_rfx Documentation

Introduction

This is the unit test for the MEGARF Sleep Manager. After setting the lock mode, the device is put into sleep and check whether the device has slept in the deepest allowable sleep mode. This is checked by enabling ADC and Timer/Counter2 and verify device is waked up by the interrupts. First the device is put to idle sleep and check whether ADC conversion complete interrupt is waking the device from sleep. Then the device is set into Power Save mode and check only Timer/Counter2 is only able to wake the device from sleep.

Main Files

Device Info

This example has been tested with the following setup(s):

  • atmega128rfa1_stk600-rc128x_rfx
  • atmega256rfr2_xplained_pro

Description of the unit tests

See the documentation for the individual unit test functions here for detailed descriptions of the tests.

Dependencies

This example depends directly on the following modules:

Compilation info

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

Contact Information

For further information, visit Microchip.