TXB0104 Level Shifter Hookup Guide a learn.sparkfun.com tutorial

Available online at: http://sfe.io/t128

Contents

Introduction

The TXB0104 is a bi-directional signal level shifter made by Texas Instruments. It features four channels of input/output signals and an output enable line that allows the signal lines to be placed in a high impedance mode when they are unneeded.

SparkFun Voltage-Level Translator Breakout - TXB0104

SparkFun Voltage-Level Translator Breakout - TXB0104

BOB-11771
$4.95
8

Depending on the high and low side voltages, the bandwidth on the individual signal channels can range from 20Mbps up to 100Mbps, making the TXB0104 suitable for higher speed signals such as SPI.

SparkFun's TXB0104 breakout board makes it easy to use this powerful chip in your projects.

Suggested Reading

Before going further with this guide, you should be familiar with the topics covered in these tutorials:

Serial Peripheral Interface (SPI)

SPI is commonly used to connect microcontrollers to peripherals such as sensors, shift registers, and SD cards.

Logic Levels

Learn the difference between 3.3V and 5V devices and logic levels.

TXB0104 BOB Overview

Labeled image of the TXB0104 BOB

The TXB0104 breakout board is pretty simple. There are two rows of pin headers, one down each side of the board; one side for the high voltage signals and one for the low voltage signals.

Example: Connecting ADXL345 to Arduino

Example hook-up diagram

The image above shows how to use the TXB01014 BOB to connect an Arduino Uno to SparkFun's ADXL345 breakout board. The ADXL345 board is a 3.3V system, and the Arduino Uno is a 5V system, so some level shifting is required.

In this case, we're leaving the OE pin tied high as it defaults; there's no real need to make the pins high impedance for this application.

There is no need for changes in software to support the TXB0104; the chip will automatically detect the signal direction and pass the data through accordingly.

Resources and Going Further

There you have it. The TXB0104 is a pretty simple board to use. Now, get out there and convert some logic levels. If you need more info, please check out the TXB0104 GitHub repository.

If you want more info on logic level converters, check out these other great hookup guides:


learn.sparkfun.com | CC BY-SA 3.0 | SparkFun Electronics | Niwot, Colorado