Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7700

General • Basic SPI question

$
0
0
Hi Guys,

I have a simple SPI program running between two devices which mostly works fine.

But I have found that sometimes when powering on the receiver, it is as though it loses the initial sync and receives the wrong value from the master (using a loop from the master just to send the number '90'). Like as if it has a few bits still in the buffer from an initial half communication.

Is there a flush command or something that needs to be done when CS goes high, to clear out random bits in the SPI receive buffer, to ensure we are working with a blank receive buffer?

Many thanks! :)

Statistics: Posted by Lonewolff — Wed Apr 16, 2025 10:19 pm



Viewing all articles
Browse latest Browse all 7700

Trending Articles