Let's Make Robots!


What is the difference between spi and i2c, what are the benifits of each?
if possible can you please use basic terms..

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

SPI can run much faster (50MHz is more than doable, but devices vary so see their specification) than I2C as it has a dedicated clock line.

SPI is a simpler protocol than I2C but takes more pins since "addressing" using SPI is done using a single electrical line (typically low for enabled, high for disabled).

I2C uses data addressing and has a limited data rate (typically 400 kilobits per second but up to 3.4 megabits per second).

I2C only takes two data lines, even to communicate with four devices!  However, i2c is limited to adding many devices by the maximum bus capacitance (400 pF is in the specification but this is device specific).