Hi there,
Lets say we have two micros and they have to talk to each other without the arbiter. So at this setup there is no slaves.
I am wondering what interface is more stable and reliable I2C or SPI and why?
Thanks.
Stan
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi there,
Lets say we have two micros and they have to talk to each other without the arbiter. So at this setup there is no slaves.
I am wondering what interface is more stable and reliable I2C or SPI and why?
Thanks.
Stan
The only question here what if both want to transfer data at the same time?
That problem does not arise on the I2C bus, since it has one dedicated master that initiates all transfers. Slaves cannot start transfers.
The same would be true for the SPI bus.
If that doesn't match your requirements, the UART/USART would be the better alternative.
Hi f.m., thanks for the reply.
Of course I2C slaves cannot initiate the transfer. But as I have said both devices are at the same level on hierarchy so accidentally they can re-configure themselves to be a master and attempt to send data.
So anyway I agree that UART is the simplest and the most reliable interface for this application.
Thanks guys for help.
**Attention** This is a public forum