Question: Q 4 . ( a ) Serial Peripheral Interface Bus ( SPI ) is a serial data protocol which operates with a master / slave

Q4.
(a) Serial Peripheral Interface Bus (SPI) is a serial data protocol which operates with a master/slave relationship over a short distance. In an embedded system, it allows microcontrollers or their equivalent to communicate with peripherals in a serial mode.
(i) For a system using an SPI bus, list the signals which are required for bus control and sketch a layout with three slave devices. You can choose either a three or four wire configuration.
(10 marks)
(ii)\(\quad \mathrm{I}^{2}\mathrm{C}\) protocol can also be used for serial data transmission and is often used instead of SPI. Compare the two protocols, highlighting the advantages and disadvantages of each.
(8 marks)
(b) An 8051 microcontroller has XTAL of 11.0592 MHz . Find the TH1 value (in both decimal and hexadecimal) to set the required baud rate by using following conditions:
(i)14400 if \( S M O D=0\)
(3 marks)
(ii)2400 if \(\mathrm{SMOD}=1\)
Q 4 . ( a ) Serial Peripheral Interface Bus ( SPI

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!