Embedded Systems & Firmware

What is a characteristic of SPI communication?

  1. AIt is asynchronous without a clock, using only two wires
  2. BIt is synchronous with the master driving the clock, sends and receives simultaneously, and selects devices with chip-select lines
  3. CIt selects devices by address, so two wires suffice for any number of devices
Show answer and explanation

Answer: B. It is synchronous with the master driving the clock, sends and receives simultaneously, and selects devices with chip-select lines

SPI is synchronous communication in which, on the clock driven by the master, data flows simultaneously on a master-to-slave line and a slave-to-master line. Each device gets its own chip-select (CS) line, and only the device whose CS is pulled low communicates. Its simplicity allows clocks of tens of MHz, so it often connects fast parts such as flash memory, displays and ADCs.

  • A. That is closer to a UART.
  • B. Correct. It is simple and fast.
  • C. That describes I2C.
Practice this topic Back to topic

More Embedded Systems & Firmware questions

  1. Which set of four signals is generally used by SPI?
  2. When an SPI part is connected but correct data cannot be read, which setting is most worth checking?
  3. What is a characteristic of I2C communication?
  4. In I2C, how does the receiver of a data byte acknowledge it?
  5. You want to connect two identical I2C temperature sensors to the same I2C bus, but both have the same address. Which is a correct solution?