Introduction
This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the MDMA driver.
This example demonstrates how to use the MDMA driver.
- Step 1: Initialization of CPU clock, Usart, SDRAM and MDMA transfers.
- Step 2: Start the transfer a) It copies a buffer located in flash to external SDRAM (AVR32_EBI_CS1_0_ADDRESS). b) Then, it copies the content of the external SDRAM (AVR32_EBI_CS1_0_ADDRESS) to HSB Ram (AVR32_HRAMC0_ADDRESS). c) Then, it copies the content of the HSB Ram (AVR32_HRAMC0_ADDRESS) to CPU ram. d) Then, it copies the content of CPU ram to the HSB Ram (AVR32_HRAMC0_ADDRESS). e) Then, it copies the content of the HSB Ram (AVR32_HRAMC0_ADDRESS) to the external SDRAM (AVR32_EBI_CS1_0_ADDRESS).
- Step 3: Check the content of the external SDRAM a) If the transfer is successful, the content of the flash buffer has been correctly copied to external SDRAM, leds are blinking slowly b) If not, the leds are blinking rapidly
Main Files
- mdma.c: MDMA driver;
- mdma.h: MDMA driver header file;
- sdramc_example.c: MDMA example application.
Compilation Information
This software is written for GNU GCC for AVR32 and for IAR Embedded Workbench for Atmel AVR32. Other compilers may or may not work.
Device Information
All AVR32 devices with an MDMA, SDRAMC and a USART module can be used.
Configuration Information
This example has been tested with the following configuration:
- UC3C_EK evaluation kit;
- CPU clock: – 16 MHz : UC3C_EK evaluation kit;
- USART2 (on UC3C_EK) connected to a PC serial port abstracted with a USB CDC connection to a PC;
- PC terminal settings:
- 57600 bps,
- 8 data bits,
- no parity bit,
- 1 stop bit,
- no flow control.
Contact Information
For further information, visit Atmel AVR32.