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.

EDMA3 Transfer Time Calculation?

Guru 15580 points

Is there a way to determine the time consumed by an EDMA transfer? I am using the EDMA3 to transfer incoming audio from an AIC3204 codec which operates at 48000 samples per second, 16-bit samples, 2-channels (stereo), and 120 samples per transfer (2.5ms per "frame"). 

Thx,

MikeH

 

  • Can anyone provide guidance on this?

    Thx,

    MikeH

     

  • Mike

    Sorry for the delay. Not sure why you want to do this, as in case of serial ports usage like this, you will be able to get McBSP overrun/underrun if the EDMA is not able to keep up with the rates you want to accomplish. Typically I have only seen request to "time" EDMA memory to memory transfers.

    However, if you want, you could "time" the EDMA transfer completion, using TSCH/TSCL registers (assuming you have a DSP side test) by putting the sample code shown here

    http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/p/130928/472334.aspx#472334

    before starting the McBSP and after EDMA transfer completion. To minimize "software overheads" you could try to this over several 120 word transfers and take a long term average. Hope this helps.

    Regards

    Mukul

  • Mukul,

    Mukul Bhatnagar said:
    Not sure why you want to do this

    I am seeing some gaps in my SPI transfers which I suspect is caused by the EDMA transfer. I am just trying to verify that they are indeed a result of the EDMA transfer.

    Mukul Bhatnagar said:
    However, if you want, you could "time" the EDMA transfer completion, using TSCH/TSCL registers (assuming you have a DSP side test) by putting the sample code shown here

    Thanks for the suggestion. But doesn't this only provide the time from initially starting the McASP (not using McBSP) until the first transfer is completed? I guess if all subsequent transfers are identical, this would provide an accurate reading.

    Thanks again for the help.

    MIkeH