I have seen I2C and SPI interfaces being used with EEPROMs and other ICs.
From an Hardware Perspective, what interface should be selected when ?
One obvious reason I can find is that, I2C uses only 2 pins whereas SPI uses 4 pins. So, if we are short on IO pins, we can go for I2C or else SPI.
And I find that SPI has daisy chaining. So, any advantage with this?
And since I2C uses only 2 pins, what could the hardware issue that could possibly go wrong with the I2C interface?
Can someone please tell me which interface to use when? And what could be the hardware issue if we use I2C ?