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 LEDS 0, 1, 2 and 3 should light up in sequence, and on fault LEDS 5, 6 and 7 will light up.
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.