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.

DMA-McBSP Interface problem.

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hi friends,

                  I am using using TMS320F28335 controller DMA channels.McBSP channels are interfaced with the DMA channels.Here McBSP channels A is configured as receiver and mapped to the DMA channel A.In this case we have fixed the DMA data transfer size as 5 words and McBSP will generate interrupt for every word transmission.In this case as the McBSP is interfaced with the DMA do we need to enable McBSP receiver interrupt (McbspaRegs.MFFINT.bit.RINT = 1;) or we have disable.Is DMA will take care of this interrupt inernally if we disable McBSP receiver interrupt.

Please suggest me which way we can interface DMA - McBSP to get proper data transfer.

Thanks & Regards

Vedant 

  • vedant chendake said:

    In this case as the McBSP is interfaced with the DMA do we need to enable McBSP receiver interrupt (McbspaRegs.MFFINT.bit.RINT = 1;) or we have disable.

    You would keep the McBSP interrupt disabled.  There is no need for the CPU to deal with the McBSP directly.  However, the CPU will need to handle the DMA interrupt.

     

    vedant chendake said:

    Is DMA will take care of this interrupt inernally if we disable McBSP receiver interrupt.

    Yes, the McBSP will be serviced properly by the DMA engine.  When the DMA engine reads DRR1, the RRDY bit in the SPCR1 register is automatically cleared.

     

    vedant chendake said:

    Please suggest me which way we can interface DMA - McBSP to get proper data transfer.

    I would suggest you download controlSUITE.  This is a software management package that has a number of examples for the TMS320F28335, one of which illustrates the use of the DMA and McBSP peripherals.

    Specifically the one in <CONTROLSUITE_INSTALL_DIR>\device_support\f2833x\v132\DSP2833x_examples_ccsv4\mcbsp_loopback_dma