user3301460 user3301460 - 1 year ago 130
C Question

Microcontroller programming in C

What is the difference between the SPI and I²C protocols, used to program a microcontroller?

Please specify the pins used in each case.

Answer Source

SPI and I²C are bus protocols, and each is well defined:

They are very similar in how they work, but they aren't the same and the differences aren't minor.

Depending on the microcontroller, they may have either, both, multiple of each, or none. They may share pins, and they might not. Refer to the datasheet of your microcontroller.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download