Saturday, 2 June 2018

embedded - How does multimaster I2C work and its significance?


I am fine with I2C basic communication and implementation? Need info on Multimaster mode of I2C How does multi master I2C work? Advantages over I2C single Master? In what circumstances this multi master is preferred? Is it possible that a single slave can have multiple masters?



Answer



I2C Master is decided by who owns the bus meaning who provides the clock, in the give figure below you can see that 2 i2c masters try to access the slave device for information. Typical lythe slave could be an eeprom.



When Master1 needs the bus it polls the bus whether it is free or not (if the line is low than the I2C bus is taken by someone) if the line is high it pulls down and sends across the address (7 bit and 8 bit being R/W) each of the I2C device connected to the bus samples the same and responds with an ack if it is being addressed by pulling it low. once after the required communication the master releases the bus. An App note from renesas Microcontroller explaining multi master mode I2C


enter image description here


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...