Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.
CC3200 uDMA Application
The µDMA controller is a flexible and highly configurable DMA controller designed to work efficiently with the microcontroller's Cortex-M4 processor core. It supports multiple data sizes and address increment schemes, multiple levels of priority among DMA channels, and several transfer modes to allow for sophisticated programmed data transfers.
Different transfer modes supported are:
- Basic mode: In Basic mode, the µDMA controller performs transfers as long as there are more items to transfer,and a transfer request is present. This mode is used with peripherals that assert a µDMA request signal whenever the peripheral is ready for a data transfer.
- Auto Mode: Auto mode is similar to Basic mode, except that once a transfer request is received, the transfer runs to completion, even if the µDMA request is removed. This mode is suitable for software-triggered transfers. Generally, Auto mode is not used with a peripheral.
- Ping-pong Mode: Ping-Pong mode is used to support a continuous data flow to or from a peripheral. To use Ping-Pong mode, both the primary and alternate data structures must be implemented. Both structures are set up by the processor for data transfer between memory and a peripheral. The transfer is started using the primary control structure. When the transfer using the primary control structure is complete,the µDMA controller reads the alternate control structure for that channel to continue the transfer.Each time this happens, an interrupt is generated, and the processor can reload the control structure for the just-completed transfer.
- Scatter-gather Mode: Memory Scatter-Gather mode is a complex mode used when data must be transferred to or from varied locations in memory instead of a set of contiguous locations in a memory buffer.
The objective of this application is to showcase different DMA modes of transfer. Demonstrates the use of the uDMA controller to transfer data between memory buffers using Auto Mode and Scatter Gather Mode, and to transfer data to and from UART using Ping Pong Mode.In Auto and Scatter Gather mode correctness of Data transfer is verified once the transfer is complete. In Ping Pong mode transfer rate is calculated and displayed.
Source Files briefly explained
- pinmux - Pinmux configurations as required by the application.
- main - Main file that showcases different DMA modes of Transfer
- uart_if - To display status information over the UART
- udma_if - Initialize and Setup the uDMA controller
- Setup a serial communication application (HyperTerminal/TeraTerm)on the host PC. The settings are
- Port: Enumerated COM port
- Baud rate rate: 115200
- Data: 8 bit
- Parity: None
- Stop: 1 bit
- Flow control: None
- Port: Enumerated COM port
2. Run the reference application (Flashing the bin/IAR/CCS).
3. Observe the status messages on the host over serial port to understand the sequence of operations performed by the application.