Maker Pro
Maker Pro

Significance of CPOL and CPHA in SPI communciation

Gergo

Jul 23, 2017
13
Joined
Jul 23, 2017
Messages
13
In an SPI communication, do I have to consider these settings. Are there certain situations where the polarity or phase settings are not irrevelant? Or am I free to choose any combination?
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
There are four setting combinations of CPOL and CPHA, so depending on your hardware and software SPI interface, you may have to choose one of the four for the master device. All the slave devices synchronize to the master, so it isn't necessary to set these two parameters for the slaves. More information can be found here, as well as on this Google search results page. Have you made Google your friend yet?
 

Gergo

Jul 23, 2017
13
Joined
Jul 23, 2017
Messages
13
Thank you! Sure I have searched on google. But maybe I wasnt clear enough.

If I have two chips both capable of any setting of the CPOL and CPHA, does it matter how I configure the communication. Any of the four combination is more reliable than others, and sort of differences what Im curious about.
 
Top