This simple example shows how to use the Direct Memory Access controller (DMA).
All AVR XMEGA devices with a DMA controller can be used. This example have been tested with the following setup:
This example will start a DMA transfer between two internal memory areas, and upon completion it will verify this by comparing those areas.
During the progress of the application it will output some information to the LEDS, and these LEDS have the following assignment:
In a successful operation LED 0 will light up for a short time, then it will turn off and LED 1 will turn on to indicate transfer success. If LED 1 does not turn on after LED 0, a fault has occurred in the transfer.
This example depends on the following modules:
This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.
For further information, visit Microchip.