Skip to content

Latest commit

 

History

History
42 lines (21 loc) · 826 Bytes

readme.md

File metadata and controls

42 lines (21 loc) · 826 Bytes

SPI modes

SPI communication knows much more variation than e.g. I2C. This "how to" looks at the four modes induced by CPOL (default clock state) and CPHA (data valid phase).

Arduino has the following table giving an overview of the modes.

SPI Modes table

The sketch is available. The traces are made with Saleae.

Mode 0

SPI mode0 trace

SPI mode0 settings

Mode 1

SPI mode1 trace

SPI mode1 settings

Mode 2

SPI mode2 trace

SPI mode2 settings

Mode 3

SPI mode3 trace

SPI mode3 settings

(end)