I. Give two differences between the Asynchronous Communication Protocol and the
ID: 2265773 • Letter: I
Question
I. Give two differences between the Asynchronous Communication Protocol and the Serial Peripheral Protocol. II. What is the type of communication that can be established with the SPI protocol? (Simplex? Broadcasting? Half Duplex? Full Duplex?) Justify your answer. Just choosing one of those choices is not enough. Consider a bus frequency of 24 MHz, III. 1) Find the value of the SPI Baud Rate Register (SPIBR) for a Baud Rate of 1 MHz (Show the formula you used. Show your work step by step). 2) Determine the content of the SPI Control Register 1, if a) Interruptions of all kind are disabled; b) The SPI peripheral is enabled; c) The SPI peripheral is configured as Master d) Active High Clock is selected for the SPI Clock Polarity bit e) Data are transferred with Most Significant Bit first 3) Determine the content of the SPI Control Register 2 4) How do you clear the SPTEF flag of the SPI Status Register? (HINT: Read figure 16-10)Explanation / Answer
1)Asynchronous communcation –It is an old but still in use mode of serial communication uses only 2 lines. SPI -
Serial Peripheral Interface - It is a standard mode of communication between different ICs.
SPI is comparatively cheaper as compared to UART and is easily available in the market.
SPI connect more slaves devices than with UART.
UART is hardware while SPI is a communication protocol.
UART needs just 2 pins for communication and it is easy to handle while SPI requires at least 4 pins, possibly more for additional slaves. Thus, SPI is preferred only when there are additional free pins available.
SPI is very fast and it can be up to 3 times faster than UART.
2)SPI is full duplex.So you can transmit and receive data at the same time.SPI device use using a master-slave architecture out of which they have single master. The master device originates the frame for reading and writing. Multiple slave devices are supported through selection with individual slave select (SS) lines.
3)Baud Rate = BusClock / BaudRateDivisor
=24/1
=24
4)