How does SPI word synchronization work?

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

How does SPI word synchronization work?

Post by /RaspberryPi »


I'm asking myself how the word synchronization under Linux and some other component with SPI works.

My scenario is the following: I'm continuously data over SPI and I'm expecting an answer at some point. While no data is there the SPI will shift out zeros. So at some point the other device will have data in it's SPI buffer and begin to shift it out.

However on the linux side how can I be sure that the data is synchronized? How can I be sure that if the device is sending 0xA(1010) I'm not getting 0x28(00101000)?
submitted by /u/ukezi
[link] [comments]

Source: https://www.reddit.com/r/raspberry_pi/c ... tion_work/
/RaspberryPi
Post Reply

Return to “Raspberry Pi Forum”