Skip to main content
MNapi
Senior II
June 11, 2023
Question

how to connect more than 2 chips over I2C ?

  • June 11, 2023
  • 2 replies
  • 881 views

I have custom board with 4 chips, communicating over I2C. The problem is that I cannot have 4 chips talking to each other.

I can only communicate between 2 chips. As soon as I enable I2C on third chips the communication stops.

One is setup as master transmit the rest as slave receive. My guess maybe it is something do to with CLK line as soon as the 3rd or 4th is enabled.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
June 11, 2023

The Slave drives the transaction and pacing.

Make sure that the pins are Open Collector/Drain.

Make sure the Slaves are NOT responding to the same addresses.

Perhaps use serial output to understand the behaviour/interactions of the slaves.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Foued_KH
ST Employee
June 12, 2023

Hello @MNapi​ ,

You may connect an Oscilloscope to see the SDA and SCL behavior.

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.