O'Reilly logo

Embedded Systems Architecture by Daniele Lacamera

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required