Electrical – I2C Voltage levels with difference

i2cpic16f

I have an I2C slave device in which the maximum input voltage to SCL & SDA is 3.6V.
And the I2C Master device is PIC16F877A operating at 20MHz which provides a 5V output on SCL & SDA.

Pls help me to interface these two devices.

Best Answer

This is a very simple level shifter that will allow you to interface the two devices. The levels shifter is perfect for I2C because it is bidirectional.

schematic

simulate this circuit – Schematic created using CircuitLab