Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the SleepWalking example.

SleepWalking feature allows to reduce the power consumption of the peripherals in sleep modes It allows the UC3L Event System to handle asynchronous events in various sleep modes by requesting a module local clock for the duration of the Event processing. When the event processing is done, the clock request is disserted and the module goes back to sleep.

The given example demonstrates the use of ADC using SleepWalking feature. The ADCIFB interface once configured remains in the sleep mode. The AST (Asynchronous Timer) is configured to run at 32KHz oscillator and periodically generates an event which will be used by ADCIFB. Upon receiving the event ADCIFB module clock will be enabled and analog value on the selected channels will be sampled. The sampled value will be compared against a preset value and if it is greater than preset an interrupt will be generated by ADCIFB. This will wake up the CPU as well as rest of the system. The ISR will execute LED chaser sequence and system will back to sleep. In case the sampled value is less than preset ADCIFB will go back to sleep.

The example toggles PA21 (LED0), PB10 (LED1), PB02 (LED2) and PB03 (LED3)in a sequence in the same order.

Main Files

Compilation Info

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

Device Info

All AVR32 devices with GPIO/AST/ADCIFB modules can be used. This example has been tested with the following setup:

Setup Information

Contact Information

For further information, visit Atmel AVR32.
Support and FAQ: http://support.atmel.no/

 All Files Functions