0
0
Embedded Cprogramming~5 mins

SPI master-slave architecture in Embedded C - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the role of the SPI master in SPI master-slave architecture?
The SPI master controls the clock signal and initiates communication with the slave devices. It sends data and receives data from the slaves.
Click to reveal answer
beginner
What does the SPI slave do in the SPI master-slave architecture?
The SPI slave waits for the master to provide the clock and data signals. It responds to the master's commands by sending or receiving data.
Click to reveal answer
beginner
Name the four main signals used in SPI communication.
The four main signals are: SCLK (Serial Clock), MOSI (Master Out Slave In), MISO (Master In Slave Out), and SS (Slave Select).
Click to reveal answer
beginner
Why is the Slave Select (SS) line important in SPI?
The SS line tells the slave device when it should listen and respond. When SS is active (usually low), the slave is selected and communicates with the master.
Click to reveal answer
intermediate
How does SPI achieve full-duplex communication?
SPI uses separate lines for sending (MOSI) and receiving (MISO) data, allowing the master and slave to send and receive data simultaneously.
Click to reveal answer
Which SPI signal is controlled by the master to synchronize data transfer?
AMOSI
BSCLK
CMISO
DSS
What happens when the Slave Select (SS) line is inactive (high)?
AThe master stops sending clock
BThe slave listens and responds
CThe slave ignores communication
DData is sent on MISO only
In SPI, which line carries data from the master to the slave?
AMISO
BSCLK
CSS
DMOSI
Which of the following is true about SPI communication?
AIt is full-duplex
BIt uses a single data line
CIt does not use a clock
DIt is half-duplex
Who generates the clock signal in SPI communication?
AMaster
BSlave
CBoth master and slave
DExternal oscillator
Explain the roles of master and slave in SPI master-slave architecture.
Think about who starts communication and who follows.
You got /4 concepts.
    Describe how SPI achieves simultaneous sending and receiving of data.
    Consider the data lines and clock signal.
    You got /3 concepts.