I am using Mikroc Pro Software, It has In built library.
Controller: PIC18F46k80.
I want to use 2 Masters and 1 Slave by using I2C communication.
Can anybody please help me ?
How to Start ? I have 1 Master & 1 Slave Code - Working Fine.
Looking for 2 Master and 1 Slave :-(
In theory a properly implemented I2C master will already support multi-master buses with no work on your part. Just hook up the second master and try talking to the slave. Bus collision should result in an error from the arbitration loser.
To be clear you want both masters to talk to the single slave? Or do you want the maters to talk to each other (this is less common)?
In theory a properly implemented I2C master will already support multi-master buses with no work on your part. Just hook up the second master and try talking to the slave. Bus collision should result in an error from the arbitration loser.
To be clear you want both masters to talk to the single slave? Or do you want the maters to talk to each other (this is less common)?