Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q3. (a) The Inter-Integrated Circuit (12C) protocol was developed by Philips to

ID: 2249649 • Letter: Q

Question

Q3. (a) The Inter-Integrated Circuit (12C) protocol was developed by Philips to provide a serial communication standard to overcome some of the shortcomings of SPI. List three distinct differences between 12C and SPI [03 Marks (b) The timing diagram in Figure Q3(b) shows a 12C serial signal observed on the SDA and SCL. lines during a Read Cycle SDA SCL Figure Q3(b) (i) At which clock number do the START and STOP conditions occur? [02 Marks] [04 Marks) (ii) What is the 7-bit Address of the device? (c) MS580 is a high resolution MEMS pressure sensor that is both precise and robust. Its measurement range is from 0 to 14 bars (with a resolution of up to 0.2 mbars), but because of the stainless steel cap enclosure, the sensor can withstand up to 30 bars of pressure. MS580 communicates with the target board MCU either through SPI or 12C. With reference to the datasheet provided in Appendix 3, answer the following: (i) What is the 12C frequency range for this device? [03 Marks] (ii) How many addresses can this device have and how are they configured? [03 Marks] (iii) Write a C function to initiate an 12C conversion sequence and store the converted value into a variable. Clearly comment your code.[10 Marks] 3~

Explanation / Answer

q3,a

how about we initially express that they both are "Master/Slave" conventions, i.e. correspondence is constantly started by one Master.

- I2C just uses 2 wires, Clock and Data; Clock is unidirectional (generally, however there is a special case) and Data is bidirectional. More than 2 gadgets can exist on a similar transport, and they will at present utilize 2 wires by and large (tending to is programming based).

- SPI utilizes at least 4 wires, one Clock, one Data Out, one Data In, and one CS (chip select). In this way, Clock is dependably a yield going from Master to slave(s), Data In is an information, and Data Out is a yield. CS is a chip select flag, which permits one (among perhaps a few) slave gadgets. Along these lines, as should be obvious, tending to is done in equipment.

q3,b

clock no 2 start

clock no 14 stop

1110001