各位大侠,
我用cc3200 spi 做master使用dma输出时,发现时钟间有间隔,比如我设置dma为8bit ,发现每8个时钟脉冲之间有间隔,而不是连续的,请问这个正常吗,如何消除这个间隔。谢谢
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.
看看这个例子,或者你在本论坛搜索CC3200 SPI DMA关键字,能找到不少。
您可以看一下
给出的说明
The SPI driver operates on some key definitions and assumptions:
The driver operates transparent from the chip select. Some SPI controllers feature a hardware chip select to assert SPI slave peripherals. See the specific peripheral implementations on chip select requirements.
The SPI protocol does not account for a built-in handshaking mechanism and neither does this SPI driver. Therefore, when operating in SPI_SLAVE mode, the application must provide such a mechanism to ensure that the SPI slave is ready for the SPI master. The SPI slave must call SPI_transfer() before the SPI master starts transmitting. Some example application mechanisms could include:
Timed delays on the SPI master to guarantee the SPI slave is be ready for a SPI transaction.
A form of GPIO flow control from the slave to the SPI master to notify the master when ready.