Skip to main content
karol1dw
Visitor II
December 17, 2016
Question

I2C multimaster mode

  • December 17, 2016
  • 1 reply
  • 806 views
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
This topic has been closed for replies.

1 reply

Seb
ST Employee
December 17, 2016
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.