+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Member level 3
    Points: 698, Level: 5

    Join Date
    Apr 2017
    Posts
    65
    Helped
    1 / 1
    Points
    698
    Level
    5

    [moved] Multimaster I2c with 1 Slave - PIC18f46k80

    Hello All,

    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

    Thanks in Advance!!

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 3
    Points: 5,188, Level: 17

    Join Date
    Feb 2014
    Posts
    717
    Helped
    244 / 244
    Points
    5,188
    Level
    17

    Re: Multimaster I2c with 1 Slave - PIC18f46k80

    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)?



    •   AltAdvertisement

        
       

  3. #3
    Member level 3
    Points: 698, Level: 5

    Join Date
    Apr 2017
    Posts
    65
    Helped
    1 / 1
    Points
    698
    Level
    5

    Re: Multimaster I2c with 1 Slave - PIC18f46k80

    Quote Originally Posted by asdf44 View Post
    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)?
    Thanks for your reply.
    Ya i want Each both masters to talk to the single slave.
    do you any example code for the same ?



--[[ ]]--