Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I2C and SPI are both industry standard interfaces for data exchange.
SPI: This on the other hand as the name suggests -Serial programmable interface - transfers 8bytes of data and hence is faster. It can operate in full duplex i.e it can transmit and receive at the same time with a frequency of user_clk/2.
This will transmit a stream of 8bytes once it receives the clock and fulfills the requirements for the data to propagate.
Ithas modes like : continous transfer moe, burst mode etc.. which are configurable by the control registers.
Also an important diference, SPI uses 3 lines :
CLK
MOSI
MISO
So you need 3 pins, and I2C only uses 2 lines :
SDA
SCL
So SPI is faster then I2C.