AnsweredAssumed Answered

STM32F407 Discovery board SPI, DMA

Question asked by DangAnhTung on Dec 8, 2011
Latest reply on Jun 18, 2012 by scott.gordon.001
Hi all,
I am getting some problems with using SPI peripheral.
In the sample code, I see that we have to wait until receiving the "response" data after each data transfer.  Why we must do that? I mean when we write data to slave LIS302, we do not need receive the "response" data.
And another question is why we must write a "dummy" byte before receiving data from slave ? Does it need to keep clock in CLK line ? It is not mentioned in the datasheet.

Does anyone use the DMA with SPI ? Would you help me show steps (transaction) to transmit & receive data from LIS302.
Thank all !

Outcomes