Atmel Evaluation Kit for ATxmega32E5, 8/16-bit AVR XMEGA Microcontroller Atmel ATXMEGAE5-XPLD ATXMEGAE5-XPLD データシート

製品コード
ATXMEGAE5-XPLD
ページ / 13
 
 
Atmel AT02657: XMEGA-E5 Xplained Software User Guide [APPLICATION NOTE] 
42085A
−AVR−04/2013 
3
1. 
Running Demo Application 
1.1 
Description 
The Atmel XMEGA-E5 Xplained kit comes with a demo application. However, it is available in ASF through Atmel 
Studio 6 by creating a new example from ASF, named “Demo for XMEGA-E5 Xplained”. 
At power up, demo shows introduction screens, with explanation how to use the buttons and quadrature encoder. Then, 
the application starts with continuous sensor acquisition task scheduled with the real time counter (RTC). Light sensor 
values are displayed on the OLED. These values are also simultaneously sent to the PC using the USART to USB CDC 
gateway with the UC3B1 board controller. 
The application benefits of the Low Power XMEGA architecture, and the CPU enters in sleep mode whenever possible. 
Thus, a task running in parallel to display CPU load which is the CPU time in active mode. 
The software includes two tasks: 
1. 
Light sensor sampling task, managing the acquisition of the sensor. 
2. 
CPU load task, displaying real time CPU activity (e.g. CPU time in active mode). 
 
About Quadrature Encoder management, the application uses the XMEGA Quadrature Decoder feature based on Timer 
Counter and Event System hardware resources. Also, the XMEGA E device allows the rotary mode which is enabled for 
this application. 
 
Sampling 
scheduler 
Light sensor 
acquisition 
Light sensor 
display 
Change sampling rate 0.5s to 
10.5s (+/- 0.5s) through 
Quadrature Encoder 
Sensors sampling task