Protocol description

The configuration of the SPI transceiver is very flexible. Usually a transceiver on a microcontroller is able to act as master as well as slave. A number of predefined settings must be known in advance and shared between the master and all the slaves on the same bus:

  • The clock polarity, indicating whether the clock tick corresponds to a raising or a falling edge of the clock
  • The clock phase, indicating whether the clock idle position is high or low
  • The length of the data packet, any value between 4 and 16 bits
  • The bit order, indicating whether the data is transmitted starting from the most significant bit or the least significant bit

Since the clock is synchronous and imposed by the master at all times, SPI does not ...

Get Embedded Systems Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.