Interfacing with TTL devices

RebelJD
Posts: 3
Joined: Wed Feb 08, 2023 1:13 pm

Interfacing with TTL devices

Postby RebelJD » Wed Feb 08, 2023 1:27 pm

Hello, I want to connect a quadrature encoder with 5v TTL outputs to ESP32 inputs. I realize I need some type of level shifter so I’m looking for options on how to do this. I’ll breadboard it first but ultimately want to make a pcb. I also need to connect ESP outputs to a Digital Read Out (DRO) which requires 5v TTL signals. Any help would be appreciated.

User avatar
gtjoseph
Posts: 81
Joined: Fri Oct 15, 2021 10:55 pm

Re: Interfacing with TTL devices

Postby gtjoseph » Thu Feb 09, 2023 1:05 pm

The TXS0108 series of level shifters are popular, cheap and dead simple to use.
https://www.ti.com/lit/ds/symlink/txs01 ... 5947678061

You can get just the chips themselves or get them pre-mounted to a carrier board with standard pin spacing.

RebelJD
Posts: 3
Joined: Wed Feb 08, 2023 1:13 pm

Re: Interfacing with TTL devices

Postby RebelJD » Sat Feb 18, 2023 9:05 pm

thanks, I'll give it a try.

MicroController
Posts: 1116
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Interfacing with TTL devices

Postby MicroController » Sun Feb 19, 2023 12:27 pm

For input of 5V digital signals into a 3.3V IO, a 1:2 voltage divider made from two resistors would be the most simple solution. Pro: cheap, easy, virtually unlimited bandwidth; con: lower input impedance, may be not suitable for high-impedance signal outputs.

You can find all kinds of solutions for 3.3V<->5V level shifting, from extremely cheap little boards with one transistor per signal line to more capable dedicated ICs. Another factor to consider here is the bandwidth required for the signal. Not every chip/circuit will be able to cleanly level-shift, say, a 1Mbps serial signal, while most will handle 100kHz well.

Who is online

Users browsing this forum: ESP_Sprite and 48 guests