Modes: CPOL and CPHA

You will learn

What CPOL and CPHA mean, why there are four modes, and which one the spec configures.

CPOL picks the clock's idle level, CPHA picks which edge samples: four combinations, four modes, and devices that only speak one. The spec configures mode 0 -- SPI_CPOL 0, SPI_CPHA 0 -- and spi_mode_0_configuration is the test that pins it. The recording lowers the SPI spec to synthesizable Verilog.

Open the interactive lesson →