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.

TMS320F280039-Q1: How to use SCI_RX trigger DMA

Part Number: TMS320F280039-Q1

Hi team,

I ask this for my customer.

My customer want to use SCI_RX interrupt to trigger the DMA data transfer.

But it seems in f28, it isn't have direct connection between SCI_RX interrupt and DMA trigger.

So I suggest them use SCI_RX to generate the interrupt, and in the ISR, it use software trigger DMA

But they said the data is too large(255 byte), if use the method I mentioned, it would add a lot of CPU loading, so they want to check if we have any other solution to use DMA tranfer the SCI RX data?

BRs

Shuqing

  • Hi Shuqing,

    On newer devices, there is connection between DMA and UART which can be used to facilitate communication without CPU intervention. For F280039C, typically the approach we have taken with communication is to leverage ping-pong buffer and background task to store the data and send/receive when CPU is free.

    Regards,

    Peter

  • Hi peter,

    1, Until F29, it would have the connection between DMA and UART? I find this in F29 and F28P55, seems F28P55 still isn't have it.

    2. You mentioned we can use CLB to realize it? Is it use CLB to emulate the SCI and not use SCI module? and then use DMA int to trigger DMA?

    3. What's the meaning the ping-pong buffer? Is it same as the RX FIFO? Or other thing?

    BRs

    Shuqing

  • Hi Shuqing,

    Until F29, it would have the connection between DMA and UART? I find this in F29 and F28P55, seems F28P55 still isn't have it.

    I think you mean F28P65X? That and F29 would have DMA triggers from the UARTA_RX, UARTA_TX, etc. which can be used to communicate similarly to SCI. No SCI trigger in DMA for these devices though. 

    You mentioned we can use CLB to realize it? Is it use CLB to emulate the SCI and not use SCI module? and then use DMA int to trigger DMA?

    Yes I mean to use CLB to emulate SCI module for storing the incoming bits, CLB also has access to trigger DMA based on the CLB1_INT which is triggered by the CLB's high level controller.

    What's the meaning the ping-pong buffer? Is it same as the RX FIFO? Or other thing?

    Ping-pong is a software implemented buffer for storing the data to be transmitted and received. You can actually see this implemented in our C28x DMA Lab exercise found in TI Resource Explorer

    Regards,

    Peter