When connecting 3.3V devices and 5V devices voltage level conversion is required. The following circuits do this bi-directionally...
The circuit on the right can be used when there is no easy access to the 3.3 volt supply. The voltage divider provides a source of 3.3v
When the low side (3.3V) device transmits a '1' (3.3V), the MOSFET is tied high (off), and the high side sees 5V through the R2 pull-up resistor. When the low side transmits a '0' (0V), the MOSFET source pin is grounded and the MOSFET is switched on and the high side is pulled down to 0V.
When the high side transmits a '0' (0V) the MOSFET substrate diode conducts pulling the lowside down to approx 0.7V, this is also low enough to turn the MOSFET on, further pulling the low side down. When the high side transmits a '1' (5V) the MOSFET source pin is pulled up to 3.3V and the MOSFET is OFF.
Note: This works with I2C and other open collector type gates.
Only use a schottky diode, because of its lower forward voltage drop.
This is a very simple way of providing bidirectional logic conversion, provided:
Note: This won't work for open collector buses like I2C or SPI
Jim Jackson <email@example.com> Wed Mar 27 19:20:58 GMT 2013
This document was generated using AFT v5.095