How does SPI word synchronization work?
- /RaspberryPi
- Corporate
- Posts: 2449
- Joined: Wed Jun 05, 2019 1:29 am
How does SPI word synchronization work?
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