Connect with us

Which is better I2C or SPI

Discussion in 'Microcontrollers, Programming and IoT' started by champ1, Jul 16, 2020.

Scroll to continue with content
  1. champ1


    Jul 17, 2018
    I have seen that many sensors work on both I2C and SPI protocols. Which protocol do you use in this case?


    Dec 19, 2019
    I personally use SPI but have seen datasheets for devices using I2C stating less connections are needed.
  3. MicroMe


    May 18, 2014
    I use both depending what I have available but prefer SPI especially if a driver is available.
    The best brief summary I have seen is "A few years after Philips released I2C, Motorola introduced the SPI bus. It was much simpler both in hardware and software and a whole lot faster. The end user often has to create custom drivers for a particular application and it’s less robust. But it is fast." from obviously someones opinion, but I tend to agree....
  4. Nanren888


    Nov 8, 2015
    Another point to note is that when it comes to interfacing there is not just one thing in one configuration called SPI. Different devices will otften have variants. Many modules are designed with mutliple options or registers to allow them to interface flexibly, which increass versatility, but also the need for configuration.
    Generally ease comes with things known to be compatible and a driver being available. Not unknown though to have to modify the driver a little to get a particular module/device to work. and I2C were both,the 3.3 or 5V range.
    appears to say
    I2C simplicity
    SPI: full-duplex, speed,
    MicroMe likes this.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day