Skip to content

Communication Protocols — question 2 of 10

Write a real answer. It is graded against the question's rubric, and the mastery movement is computed by the same engine the product uses. Scoring here is deterministic rather than model-written, so this page costs nothing to run and nothing is saved. In a track built from your own posting, the same rubric is graded by the model, which is what produces feedback about your reasoning rather than about coverage.

You wire up a new SPI sensor exactly per its datasheet, which specifies SPI Mode 2 (CPOL=1, CPHA=0). Your microcontroller's SPI peripheral, however, is left at its default of Mode 0 (CPOL=0, CPHA=0). You power up and start reading continuously -- the clock and chip-select lines look completely clean on the scope, but every byte you read back is nonsense and doesn't correlate to any sensible sensor value. Walk me through, from the bus's point of view, why this happens.

How sure are you?

Being confidently wrong costs more mastery than admitting a guess — that is deliberate, and it is how misconceptions get found.

Neither is graded, and nothing here is recorded.