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.

TMS320F28379D: Writing to parallel GPIO from RAM using DMA

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Hello,

I'm trying to find some documentation on how to use DMA to transfer data from RAM (either on chip or SDRAM via EMIF) to a GPIO port (so 8 or 16 bit data is mapped to 8 or 16 pins). The DMA would be triggered by an external pin.

I know that DMA can be triggered from an external pin (XINTx) and the source can be memory mapped SDRAM but I haven't come across documentation or examples on how to set the destination of DMA transfers to be a set of pins. Can this be done by setting the DMA destination to be a GPIO port base register?

If I can at least know that this is possible, that would be very useful so I'm not spending time doing something that's not possible. If someone can point me to docs or examples for this, that would be very much appreciated.

Thanks,

Aditya

  • Aditya,

    As you know, the DMA is used to transfer data between peripherals and/or memory without intervention from the CPU. This includes the GSx memory blocks, but does not include the memory mapped registers (for the GPIO pins). As a reference please see module 8 in the F2837xD workshop at:

    processors.wiki.ti.com/.../C2000_Multi-Day_Workshop

    For example code, please see the lab exercise and C2000Ware:

    C:\ti\c2000\C2000Ware_<version>\device_support\f2837xd\examples\cpu1\dma_gsram_transfer

    Also, see the block diagram figure 5-1 on page 621 in the F2837xD TRM:

    www.ti.com/lit/spruhm8

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken
  • Aditya,

    It's been a while since I have heard from you last. Therefore, I am assuming that my last reply resolve your issue and I will close this thread. Thank you.

    - Ken