I need to use MibSPI with DMA , I feel confuesd when I see Figure 16-6 ,Figure 16-7,Figure 16-8 of TRM of TMS570LS3137, Could you explain more detail about how to use DMA of TMS570LS3137?
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.
I need to use MibSPI with DMA , I feel confuesd when I see Figure 16-6 ,Figure 16-7,Figure 16-8 of TRM of TMS570LS3137, Could you explain more detail about how to use DMA of TMS570LS3137?
Jiaming,
Would you please provide more details about what you want to achieve with DMA as a system level function?Then we can discuss in detail about the implementation.
Thanks and regards,
Zhaohong
I want to write data to a region of RAM first ,then DMA move this region's data to MIbSPI's RAM ,then the MibSPI send this data out. Next time,I write other data to RAM ,then repeat the process .
I wrote data and tested, I use oscilloscope measuring the tx pin of MibSPI1 ,and I saw the signal square wave came out ,but the error pin of TMS570LS3137 is low ,this pin accounts for something wrong with TMS570, but why the MIbSPI seems work ?
Jiaming,
If you do not need to do multiple transfer groups, I would recommend you use SPI (MibSPI compatibility mode) with DMA. When you have different message size, all you need to be is to change the DMA block size. I am attaching some code snip. In this example, MibSPI operates in three modes: SPI with interrupt, SPI with DMA, and MibSPI. You should be able to see what is needed to set MibSPI for those operations.
Thanks and regards,
Zhaohong