Recall & Review
beginner
What does SPI stand for and what is its main purpose?
SPI stands for Serial Peripheral Interface. It is a communication protocol used to send data between a microcontroller and external devices like sensors or displays quickly and efficiently.
Click to reveal answer
beginner
Name the four main signals used in SPI communication.
The four main SPI signals are:<br>1. MOSI (Master Out Slave In) - data from master to slave<br>2. MISO (Master In Slave Out) - data from slave to master<br>3. SCLK (Serial Clock) - clock signal from master<br>4. SS (Slave Select) - selects which slave device to communicate with
Click to reveal answer
beginner
How does the master device control communication in SPI?
The master device controls communication by generating the clock signal (SCLK) and selecting the slave device using the Slave Select (SS) line. It sends data on MOSI and reads data on MISO.
Click to reveal answer
intermediate
Why is SPI preferred for connecting sensors and displays in embedded systems?
SPI is preferred because it is fast, simple, and supports full-duplex communication. It uses fewer wires than parallel interfaces and can connect multiple devices using separate SS lines.
Click to reveal answer
beginner
What is the role of the Slave Select (SS) line in SPI communication?
The Slave Select (SS) line tells a specific slave device to listen and respond to the master. When SS is low (active), the slave is selected; when high, the slave ignores the SPI bus.
Click to reveal answer
Which SPI signal carries data from the master to the slave?
✗ Incorrect
MOSI stands for Master Out Slave In, so it carries data from the master to the slave.
What does the master device generate in SPI communication?
✗ Incorrect
The master generates both the clock signal (SCLK) and the Slave Select (SS) to control communication.
In SPI, what happens when the Slave Select (SS) line is high?
✗ Incorrect
When SS is high, the slave device ignores the SPI bus and does not communicate.
Which of these is NOT a typical use of SPI?
✗ Incorrect
SPI is not used for internet connections; it is used for short-distance device communication like sensors and displays.
What type of communication does SPI support?
✗ Incorrect
SPI supports full-duplex communication, meaning data can be sent and received at the same time.
Explain how SPI communication works between a microcontroller and a sensor.
Think about who controls the clock and how data flows both ways.
You got /5 concepts.
Describe the role of each SPI signal line and why they are important.
Focus on what each wire does during communication.
You got /4 concepts.