Choosing among I2C and SPI, the two fundamental sequential correspondence conventions, requires a decent comprehension of the benefits and limits of I2C, SPI, and your application. Every correspondence convention will enjoy unmistakable benefits that will generally separate itself as it applies to your application.
1. I2C requires just two wires, while SPI requires three or four.
2. SPI upholds higher speed full-duplex correspondence while I2C is more slow.
3. I2C draws more power than SPI.
4. I2C upholds various devices on similar transport without extra select sign lines through in-specialized device addressing while SPI requires extra sign lines to deal with numerous device on a similar transport.
5. I2C guarantees that information sent is gotten by the slave device while SPI doesn’t confirm that information is gotten accurately.
6. I2C can be secured by one device that neglects to deliver the correspondence transport.
7. SPI can’t send off the PCB while I2C can, though at low information transmission speeds.
8. I2C is less expensive to carry out than the SPI correspondence convention.
9. SPI just backings one master device on the transport while I2C upholds various master devices.
10. I2C is less helpless to noise than SPI.
11. SPI can just travel brief distances and seldom off of the PCB while I2C can send information over a lot more prominent distances, despite the fact that at low information rates.
12. The absence of a proper standard has brought about a few varieties of the SPI convention, varieties that have been to a great extent stayed away from with the I2C convention.
Generally speaking, SPI is better for rapid/faster speed and low power applications while I2C is more qualified for correspondence with an enormous number of peripherals and dynamic changing of the master devices work among the peripherals on the I2C transport. Both SPI and I2C are vigorous, stable correspondence conventions for inserted applications that are appropriate for the implanted world.