2012-09-29 08:58 AM
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 #stm32f103xd2012-09-29 10:33 AM
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.