1. (9pts) Compare SPI, I2C and UART in a table. Create a row/column for these items: number of wires, duplex/half-duplex, addressing method, master scheme, bit rate, number of devices connected, data rate.
2. (7pts) SPI: Draw the two possible configurations for one master device and 3 slave devices. Label all wire connections with their names.
3. (7pts) I2C: Draw the configuration for one master device and 3 slave devices. Label all wire connections with their names.
4. (7pts) I2C: Show the clock and data stream for a master device reading 1 data byte (0xE) from a thermometer slave device that has address (0x56).
Answer :- 1) The table has been shown below-
Protocol / Properties | No. of wires | Duplex/Half Duplex | Addressing Method | Master Scheme | Bit Rate | No. of devices | Data Rate |
SPI | 4 | Full Duplex | No | One Master | 9 Mbps | no. of SS lines | 25 Mbps |
I2C | 2 | Half Duplex | Yes | Multi Master | 3.4 Mbps | 127 | 3.4 Mbps |
UART | 2 | Half Duplex | No | One Master | 1 | 20 kbps |
Answer :- 2) The two different methods in SPI has been shown below-
Answer :- 3) The I2C system with one master and 3 salves has been shown below-
Get Answers For Free
Most questions answered within 1 hours.