cancel
Showing results for 
Search instead for 
Did you mean: 

I2C multimaster mode

karol1dw
Associate
Posted on December 17, 2016 at 19:28

Hi,

I would like to know if I can use one I2C bus for 3 devices, first is master, sencond is slave and third is master/slave (STM will siwtch between master and slave mode to communicate with this 2 devices). Is there anything unusual that I must take into account while designing that kind of system?

#i2c #stm32
1 REPLY 1
Seb
ST Employee
Posted on December 17, 2016 at 21:28

If all 3 devices are on the same I2C bus, the first device must be also multimaster.

If looking at old standard for multimaster, look at

https://en.wikipedia.org/wiki/ACCESS.bus

.

Multimaster increase complexity of development and bus monitoring/debug is tricky.

If it is feasible to use 2 I2C bus with STM32 in the middle (slave on one side, master on the other) it might be easier to get the job done.