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.

[C6722] SPI configured with dMAX

Hi

I am trying to use SPI as Dmax slave mode, i am concerned about  when the Dmax is running, at the same time i write date to the transfer buffer,   will it cause bus access conflict, if so, how can i avoid this. Thanks!

  • Hi,

    Thanks for your post.

    In general, the SPI on C672x will not generate Tx interrupts so dMAX will not have an interrupt trigger for subsequent transfers.  Given a known buffer size and bit frequency, I would recommend you to configure the RTI to generate a periodic interrupt to dMAX when it is time to transmit another word. By knowing the time interval of periodic interrupt for subsequent transfers, you could interleave the time to write data to the transfer buffer which would avoid bus access conflicts if any.

    Thanks & regards,

    Sivaraj K

    ----------------------------------------------------------------------------------------------------------------

    Please click the "Verify Answer" button on this post if it answers your question.

    ----------------------------------------------------------------------------------------------------------------

  • Hi

    Thanks for your reply, i fixed that problem,but when i read " TMS320C672x DSP Serial Peripheral Interface (SPI)"Reference Guide, i cant understand the part of 7,

    about DMA Interface content.  Note:"Remember, only a single DMA request is generated, and this should trigger a read ofSPIBUF followed by a write to SPIDAT0 or SPIDAT1 through dMAX configuration". whats mean of this note. Should i notice this note when i write code. forgive my poor english. i hope you can understand what i mean,  thanks again!