Skip to main content
WKowo
Associate II
July 29, 2019
Solved

Recognizing SPI data reception in STM32F429

  • July 29, 2019
  • 2 replies
  • 773 views

I'd like to ask how the STM32F429 recognizes data reception in case of SPI while there is no any start bit? I know that there is RXNE bit in SPI_SR status register, but how SPI knows where is the first bit of the transmitted byte? Is it somehow synchronized with SPI data transmission? I mean the first transmitted bit is some kind of trigger for recognizing first received bit (using of course CLK)?

This topic has been closed for replies.
Best answer by waclawek.jan

If set as master, then it's in the control of clock (SCK). The first bit corresponds to the first transmitted clock.

If set as slave, then it's the first clock after NSS transitions from high to low.

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
July 29, 2019

If set as master, then it's in the control of clock (SCK). The first bit corresponds to the first transmitted clock.

If set as slave, then it's the first clock after NSS transitions from high to low.

JW

WKowo
WKowoAuthor
Associate II
July 29, 2019

Thank you for your answer.