It relies upon the quantity of sequential gadgets or devices you need to interface and the rate at which you need to move information. Allow we to take both independently as:

For the most part SPI is quicker than I2C , upholds correspondence over longer distances and SPI upholds full duplex correspondence while I2C upholds half Duplex correspondence. Anyway as number of slaves increment equipment intricacy expands considerably more in SPI than in I2C. So for straightforward rationale I2C might get the job done yet for quick correspondence SPI would be suggested. Likewise the processor overhead is regularly more in I2C because of more programming association.

For I2C you can connect as many as 1023 devices using the same two physical connections for data and clock transfer the max data rate you can achieve is 5 MHz .

For SPI you can utilize similar the associations for information IO and clock. you really want to have a slave determination for every sequential device you associate, max information rates are 100 MHz . As I2C is half duplex while SPI is full duplex.

< Prodigy Community Forum – Click here