← all lessons
Assessment · Single-Ended Buses · SPI & I²C

Module 4: Single-Ended Buses: SPI & I²C

SPI modes and CS framing, I²C pull-up sizing, stuck-bus recovery, decode tooling.

  1. 1conceptAn SPI peripheral datasheet specifies CPOL=1, CPHA=1. What must the controller be set to, and what defines those four SPI modes?

  2. 2conceptThree SPI peripherals share MOSI, MISO, and SCLK. What keeps their MISO outputs from colliding on the shared line?

  3. 3calcAn I²C bus must meet a 300 ns rise-time limit and the bus capacitance is Cb = 200 pF. Using t_rise ≈ 0.85·R·Cb, what is the maximum pull-up resistance?

  4. 4conceptYou add several more I²C devices to a board and the bus stops working at the old pull-up value. Why, and what is the trade-off in shrinking the pull-up?

  5. 5scenarioAn I²C peripheral glitched mid-byte and now holds SDA low, so the controller cannot generate a START. What is the standard recovery?

← back to all lessons