AnsweredAssumed Answered

Detecting the end of a SPI/DMA transmission on BF533

Question asked by Mathieu on Jan 4, 2010
Latest reply on Jan 4, 2010 by Mathieu

Hi all, and happy new year

 

I would like to use SPI with DMA on BF533, in slave mode.
In the ADSP-BF533 Blackfin Processor Hardware Reference Manual", it is stated pp10-32 that when transmitting to SPI via DMA : "when using DMA for SPI transmit (...) software needs to poll TXS in the SPI_STAT register until it goes low for 2 successive reads, at which point the SPI DMA FIFO will be empty."
It is not clear to me what " until it goes low for 2 successive reads" means : Does it mean that software must detect two falling edge transitions, or just two consecutive reads at zero ?
Could someone provide me with a verified code example, in C or in assembly ?
Thanks in advance.

 

-mathieu

Outcomes