This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Use DMA triggered by timer to populate memory with ADC data

CPU: Tiva 129
CCS: Version: 6.1.2.00015
TIRTOS:tirtos_tivac_2_14_04_31
TivaWare_C_Series-2.1.2.111
xdctools_3_31_01_33_core

In the board we are designing there is a need to gather data from an ADC at a relatively high rate to
monitor how a device responds to being turned on.

I would like to be able to do this with DMA to minimize CPU overhead.

So basically we want to use a timer to trigger DMA readings from an ADC to gather say 1024 readings
to a contiguous region of memory and interrupt when done.

Can you point me to a similar example?

  • Hi Greg,

    Unfortunately, TI-RTOS does not have a DMA example for TivaC 1294 device.

    I would suggest you take a look at the udma_demo example in TivaWare.

    Also, you can check TI-RTOS SPI and UART driver implementation for Tiva which internally use DMA. These implementations can give you an idea of how to use in RTOS context. The driver implementations can be found in the path: <tirtos_dir>/packages/ti/drivers/spi and <tirtos_dir>/packages/ti/drivers/uart.

    Hope this helps,
    Vikram