m2babaey
Junior Member level 2
- Joined
- Oct 18, 2012
- Messages
- 21
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,445
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: