AnsweredAssumed Answered

STM32F407 dont stop SPI communication properly

Question asked by Osto on Jul 18, 2013
Latest reply on Jul 18, 2013 by Clive One

I have Problems with STM32F407VGT6 and SPI,
I read from SPI 2x 16-bit words from device. In documentation is written after the first word is read then wait for short period that th one clock cycle starte then disable the SPI and wait until the commnication is going to end. The communication is read only with Software managed chip select.

But this is not working. When I disable SPI, the communication stops immediatley and the cycle is incomplete. When  I disable all Interrupts and wait until the second word is complete then everything is working but I block the CPU for Long time. That couldnt be the solution!?

Do have anybody an idea how to stop the SPI clock exactly after end of second cycle. Using Interrupt is not a solution.

Thanks for your help.