Arduino, 23K256 SRAM and 74LVC245 Bus Transceiver

74LVC245 DIP

As discussed in this post, when interfacing 3.3V devices with a 5V Arduino, the logic level needs to be shifted. Most 3.3V devices will be damaged if operated with 5V signals, while others will simply operate unreliably. The shifting can be accomplished with the careful selection of a few discrete components (see here and here), however in this post we will concentrate on a specialty IC. There is also a good bit of information available on the Arduino Playground about level shifting.

First, here are a few of the existing products that perform level shifting. Understand that these cost upwards of $8-10, were the 74LVC245 chip is about 30 cents! Some of these are unidirectional, while others are bi-directional:

  1. SparkFunF Logic Level Convertor
  2. SparkFun Level Translator Breakout
  3. NKC 5V to 3.3V logic level shifter board
  4. Adafruit 8-channel Bi-directional Logic Level Converter
  5. Adafruit 4-channel I2C-safe Bi-directional Logic Level Converter

This is where the inexpensive 74LVC245 comes in. It is designed to operate within -0.5 and 6.5V, which makes it perfect for the Arduino. It has 16 pins (8 pairs) for conversion in a 20-pin dip package. Unidirectional shifting can occur in either direction so it’s perfect for SPI, Serial, Parallel and other similar logic interfaces.

Using it is simple. Check out the 74LVC245 datasheet for details but essentially: connect VCC to your logic level to convert to (here: 3.3V), Wire Ground and OE (output enable) to ground. Depending on the logic level at the direction-control (DIR) pin, the device transmits data from the A pins to the B pins (DIR = Vcc), or from the B bus to the A bus (DIR = low). OE can be turned high to disable the device so the buses effectively are isolated.

74LVC245 Pinouts:

Arduino/74LVC245/23K256 Wire Routing:


Arduino with 74LVC245 and 23K256

About Jim Eli

µC experimenter
This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

5 Responses to Arduino, 23K256 SRAM and 74LVC245 Bus Transceiver

  1. camacho2004 says:

    I live in Brazil and I´m having a bad time trying to find this IC as DIP, because only HV comes as DIP. Could anyone recommend a website where it´s available?
    Thanks in advance.

  2. DevDavisNunez says:

    Hola buen dia!, Tienes algun diagrama de como conectar el 74lvc245 para comunicar arduino con otro dispositivo atravez de uart serial?, saludos

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s