AnsweredAssumed Answered

Enabe DMA Chaining for SPORTs

Question asked by tanjack on Sep 23, 2015
Latest reply on Sep 28, 2015 by tanjack

Hi,

If I need to use six SPORTs,two for receiving data,four for transmitting data.

Enable DMA chaining for SPORTs.Is the following program right?

 

  // Enabling DMA Chaining for SPORT0/2/3/4 TX and SPORT1/5 RX

  // Block 1 will be filled first

    *pCPSP0A = (unsigned int)TCB_TxBlock_A0 - OFFSET + 3 + PCI;

    *pCPSP0B = (unsigned int)TCB_TxBlock_B0 - OFFSET + 3 + PCI;

    *pCPSP2A = (unsigned int)TCB_TxBlock_A0 - OFFSET + 3 + PCI;

    *pCPSP2B = (unsigned int)TCB_TxBlock_B0 - OFFSET + 3 + PCI;

    *pCPSP3A = (unsigned int)TCB_TxBlock_A0 - OFFSET + 3 + PCI;

    *pCPSP3B = (unsigned int)TCB_TxBlock_B0 - OFFSET + 3 + PCI;

    *pCPSP4A = (unsigned int)TCB_TxBlock_A0 - OFFSET + 3 + PCI;

    *pCPSP4B = (unsigned int)TCB_TxBlock_B0 - OFFSET + 3 + PCI;

    *pCPSP1A = (unsigned int)TCB_RxBlock_A0 - OFFSET + 3;

    *pCPSP5A = (unsigned int)TCB_RxBlock_A0 - OFFSET + 3;

 

 

Thanks,

Jack

Outcomes