m2babaey
Junior Member level 2
Hi
I have a microcontroller and 2 devices that supports I2C (ADE7878 (energy metering IC) and EEPROM)
I want to connect SDA and SCL in these 2 devices to my Micro with optocouplers for more protection
I think SCL is output for Micro and input for EEPROM and ADE7878 so I may connect SCL of Micro to LED side of optocoupler, right?
And I think SDA is sometimes input and sometimes output, which device pins I should connect to LED side? Micro or ADE7878 and EEPROM?
Any suggestions?
Here is a simple schematic
I have a microcontroller and 2 devices that supports I2C (ADE7878 (energy metering IC) and EEPROM)
I want to connect SDA and SCL in these 2 devices to my Micro with optocouplers for more protection
I think SCL is output for Micro and input for EEPROM and ADE7878 so I may connect SCL of Micro to LED side of optocoupler, right?
And I think SDA is sometimes input and sometimes output, which device pins I should connect to LED side? Micro or ADE7878 and EEPROM?
Any suggestions?
Here is a simple schematic
Last edited: