cancel
Showing results for 
Search instead for 
Did you mean: 

questions about the SPI communication of STM32F103xD

kerfullee
Associate
Posted on September 29, 2012 at 17:58

Hello,

   I am doing my project with STM32F103xD, I have a question about the SPI communication of STM32F103xD. When there are data in the receive buffer, but there are't any operation with these data, what will happen if there comes the new data on the SPI bus? (Will the receive buffer be rewrite or the new data will be throw away? )

  Thank you.

#spi #stm32f103xd
1 REPLY 1
frankmeyer9
Associate II
Posted on September 29, 2012 at 19:33

It's in the reference manual.

The previous data are lost. At least you have the OVR flag in the status register, so you know that one (or more) characters are lost.

Some other vendor's devices often use FIFOs for serial peripherals, but that does not help in every situation.