MTX1
Manual
XMEGA Demo Program
XMEGA Demo Program
Note: This page describes the preinstalled demo program. This program is primarily meant for testing. While the
source code is available, it is not intended to be reused. The code is a collection of many code fragments. It is
disorganized and complicated. It is recommended to use the Atmel Studio 6 ASF (Atmel Software Framework)
template to get started (see Using Atmel Studio (AVR Studio)). The following relates to the preinstalled demo.
XMEGA uses serial bridge to display menu system on ANSI compatible terminal emulator screen. Remove the jumper and
boot the board without pressing the button (remember that the terminal must be disconnected while resetting). Press any key,
and the main demo menu will appear. Now, all interaction is with the XMEGA via the USB serial bridge.
MicroSD Card Demo: The SD card demo makes use of the FatFS module from ChaN. FAT12, FAT16, and FAT32 are
supported. Press 'h' for a help menu.
Audio Demo: You can load wav files from the SD card and play them over an ~8 ohm speaker connected to the audio
amplifier. You will need to use an audio program (like sox), to encode music or sound to 8bit or 16bit (recommended),
44.1KHz or less, mono uncompressed PCM. Then, in the audio demo, select the file chooser and pick a file. You can use the
slider to adjust volume.
When using the sleep demo, current measurements can be made using the external power header. Disconnect J2 to allow
voltages above 5.5V. Supply 6.0V – 7.5V to this header so that current is drawn from this connector rather than from USB.
Running the demo will put the XMEGA to sleep with the RTC running and waking the cpu every second to update the time.
Most current consumption will then be from the USB AVR. Now unplug USB. The current consumption will drop further.
Currently, ~75uA is consumed by the board in this state (without MicroSD card installed). Not all low power features are
used, so this number can be lowered further. But note that a minimum load of 100uA should be present on the regulator
output. The measured current at the external connector includes the regulator ground current, which will add to the 100uA
minimum load.
June 2, 2015
25