I'm fairly new to TTL logic. I have a PWM output 0-3.3V that I need to convert to a TTL 5V logic as the sensor only accepts a TTL signal.
Is there an IC that would do this or a circuit I can build?
I'm fairly new to TTL logic. I have a PWM output 0-3.3V that I need to convert to a TTL 5V logic as the sensor only accepts a TTL signal.
Is there an IC that would do this or a circuit I can build?
Check the specification of your 'TTL' input. Two items to look for:
If it is truly 5V TTL, it will have an input-high specification of just 2.0V. If there's no pull-up to 5V you're in luck: your 0-3.3V signal will just plug and play, without translation.
If however the input is 5V 'CMOS', it will have an input-high level of about 2/3 Vcc, or 3.3V. There's no margin left so your 3.3V swing input won't work. In this case you'll need a level translator.
In either case, if your 5V input has a pull up, even if it accepts 'TTL' level, there will be a leak path between the pull-up and your 3.3V supply. You'll need a translator to break the leak path.
The no-brainer way: use a buffer IC that accepts the smaller swing and makes a bigger one.
There's other solutions but I think these will be the most straightforward and robust.
I have a PWM output 0-3.3V and I need to convert it to a TTL 5V logic
Almost certainly your 3.3 volt signal will be just fine connected to TTL. The TTL lower voltage threshold for a logic 1 signal is around 2 volts and, the upper voltage threshold for logic 0 is about 0.8 volts.
Hence if your input signal goes from 0.5 volts to 2.5 volts (there or thereabouts) it will meet TTL input levels with some small clearance. Clearly, a 3.3 volt level and something close to 0 volts won't have a problem.