Skip to content

Search

Search courses, labs, notes, tools…

Guided lab · ECE 2

Serial protocols 3: SPI modes and chip select

Four wires, four modes: CPOL, CPHA, MOSI, MISO and CS

Time
45 min
Bench
Emona kit bench

Free. The lab opens after Google sign-in, which also keeps your progress.

Screenshot of the "Serial protocols 3: SPI modes and chip select" virtual lab running on the Emona kit bench, wired and measuring

What you do in this lab

You will send words over SPI in modes 0 to 3, decode MOSI and MISO at the same time, see what happens when the analyser uses the wrong mode, and change the word size and the bit order.

Objectives

  • State CPOL and CPHA for modes 0, 1, 2 and 3.
  • Find the sampling edge from the mode.
  • Explain the roles of CS, MOSI and MISO, including the one-word delay of MISO in this lab.
  • Predict what a mode mismatch does to the data.
  • Decode 16-bit words and LSB-first data.

Inside the lab

Step-by-step instructions with wiring checks, the readings you should get, questions with model answers and a short quiz. Sign in to open it.

Unofficial, free student project. Not affiliated with Emona Instruments or with any university. Emona and ETT-101 are trademarks of their owner.