Question
STM32F407 Discovery board SPI, DMA
Posted on December 08, 2011 at 20:04
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 ! #spi-dma-receive-rx-tx-stm32f4