IOT Multiple Choice Questions on “SPI Protocol”.
1. Secure digital card application uses which protocol?
a) UART
b) SPI
c) I2C
d) USART
Answer: b
Clarification: The typical applications of SPI protocol are secure digital cards and liquid crystal displays.
2. SPI device communicates in _________
a) Simplex
b) Half duplex
c) Full duplex
d) Both half and full duplex
Answer: c
Clarification: SPI devices communicate in full duplex mode using master-slave architecture with a simple master.
3. Do SPI have/has a single master?
a) True
b) False
Answer: a
Clarification: The master device originates the frame for reading and writing. Multiple slave devices are supported through selection with individual slave select(SS) line.
4. SPI is described as Asynchronous serial interface.
a) True
b) False
Answer: b
Clarification: The SPI is accurately described as a synchronous interface, but it is different from the synchronous serial interface(SSI) protocol, which is also a employs differential signaling and provides only a single simplex communication channel.
5. How many logic signals are there in SPI?
a) 5 signals
b) 6 signals
c) 4 signals
d) 7 signals
Answer: a
Clarification: The SPI bus specifies five logic signals:
SCLK: Serial clock(output from master)
MOSI: Master Output Input, Master Out Slave In(data output from master)
MISO: Master Input Slave Output, or master In Slave Out( data output from master)
SDIO: Serial Data I/O(bidirectional I/O)
SS: Slave Select(often active low, output from master).
6. SPI uses how many lines?
a) 4 lines
b) 1 line
c) 3 lines
d) 2 lines
Answer: d
Clarification: SPI uses separate clock and data lines, along with a select line to choose the device we wish to talk to.
7. MOSI means __________
a) Line for master to send data to the slave
b) Line for the slave to send data to the master
c) Line for the clock signal
d) Line for the master to select which slave to send data to
Answer: a
Clarification: MOSI is the logic signal. The data will be sent to the slave from master.
8. MISO means _________
a) Line for master to send data to the slave
b) Line for the slave to send data to the master
c) Line for the clock signal
d) Line for the master to select which slave to send data to
Answer: b
Clarification: MISO is the logic signal. The data will be received by master from the slave.
9. Which of the following is an advantage of SPI?
a) No start and stop bits
b) Use 4 wires
c) Allows for single master
d) Error checking is not present
Answer: a
Clarification: As we don’t have start and stop bits, so the data can be streamed continuously without interruption.
10. Which of the following is the disadvantage in SPI?
a) Full duplex communication
b) Push pull drivers
c) Unidirectional signals
d) More pins
Answer: d
Clarification: Requires more pins on IC package than I2C, even in the three wire variant.
11. Which of the following is the type of SPI controller?
a) Queued SPI
b) Microwire
c) Microwire/plus
d) Quad SPI
Answer: a
Clarification: A Queued serial peripheral Interface is a type of SPI controller that uses a data queue to transfer data across the SPI bus.
12. __________ is a predecessor of SPI.
a) Queued SPI
b) Microwire
c) Microwire/plus
d) Quad SPI
Answer: b
Clarification: Microwire often spelled uwire, is essential a predecessor od SPI and a trademark of National Semiconductor. It is subset of SPI: half duplex, and using SPI mode 0.
13. Which has a half duplex communication?
a) Queued SPI
b) Microwire
c) Microwire/plus
d) Quad SPI
Answer: b
Clarification: Microwire often spelled uwire, is essential a predecessor od SPI and a trademark of National Semiconductor. It is subset of SPI: half duplex, and using SPI mode 0.
14. Do SPI have internal flash?
a) True
b) False
Answer: a
Clarification: eSPI slaves are allowed to use the eSPI master as a proxy to perform flash operations on a standard SPI flash memory slave on behalf of the requesting eSPI slave.
15. SMBUS stands for ___________
a) Serial Memory Bus
b) Serial Management Bus
c) System Management Bus
d) System Memory Bus
Answer: c
Clarification: All communications that were out of band of the LPC bus like general purpose input/output and System Management Bus are tunneled through the eSPI bus.