How do you decide the value of the resistor?

  • Thread starter Thread starter likephysics
  • Start date Start date
  • Tags Tags
    Resistor Value
Click For Summary

Discussion Overview

The discussion revolves around the functioning and selection of pull-up resistors when interfacing TTL (Transistor-Transistor Logic) outputs with CMOS (Complementary Metal-Oxide-Semiconductor) inputs. Participants explore the voltage levels required for proper interfacing, the implications of using different output configurations, and the considerations for resistor values in various scenarios.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants express confusion about how a pull-up resistor allows a CMOS input to see 5V when connected to a 3.3V TTL output.
  • Others clarify that in open collector configurations, the output is either 'open' or low, and the pull-up resistor helps achieve the necessary voltage for CMOS inputs when the output is off.
  • One participant discusses the trade-offs in selecting pull-up resistor values, noting that smaller resistors waste more power while larger ones may not provide sufficient voltage levels.
  • Another participant suggests using active level translators instead of pull-up resistors for better performance at higher frequencies, citing issues with signal distortion due to input capacitance.
  • There is mention of the limitations of TTL outputs in reliably interfacing with CMOS inputs without additional components, such as transistors.
  • Some participants inquire about the output stage of TTL gates and the reasoning behind specific voltage outputs.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach for interfacing TTL and CMOS logic. Multiple competing views are presented regarding the use of pull-up resistors versus active level translators, as well as the implications of different output configurations.

Contextual Notes

Participants note that the examples provided in linked resources may not represent effective real-world techniques for interfacing logic families. There are also discussions about the impact of signal frequency on the effectiveness of pull-up resistors.

Who May Find This Useful

This discussion may be useful for electronics enthusiasts, students learning about digital logic interfacing, and professionals working with TTL and CMOS technologies.

likephysics
Messages
638
Reaction score
4
Dumb question.
Can't seem to understand how pull up resistor works when interfacing TTL to CMOS.

A TTL output connected to a CMOS input.
TTL output is 3.3V, but CMOS requires 5V.

When TTL output is high, one end of resistor is 3.3V and the other end is 5V.
The 3.3V end is connected to cmos input. How does the cmos input see 5V?
ckt diagram here -http://www.ecelab.com/interfacing-ttl-cmos.htm

Also, how do you decide the value of the resistor?
 
Engineering news on Phys.org
likephysics said:
Dumb question.
Can't seem to understand how pull up resistor works when interfacing TTL to CMOS.

A TTL output connected to a CMOS input.
TTL output is 3.3V, but CMOS requires 5V.

When TTL output is high, one end of resistor is 3.3V and the other end is 5V.
The 3.3V end is connected to cmos input. How does the cmos input see 5V?
ckt diagram here -http://www.ecelab.com/interfacing-ttl-cmos.htm

Also, how do you decide the value of the resistor?
The examples in your link show open collector TTL, so that the output is not 3.3V, but either 'open' or closed. That is, when the output transistor is off the collector is at high resistance, or 'open', relative to the pull up resistor only the micro amp collector leakage current flows so that their is little or no drop through the pull up and the collector voltage is nearly the same as the supply voltage Vcc, which is sufficient to drive the input of the high input resistance CMOS gate. When the output transistor is biased on, the collector voltage is forced to Vce-on (~.2-.3 V) above ground. Then the trade off for selecting Rpull-up is that it should be very small compared to the transistor off resistance, but the smaller the resistor the more power it wastes in heat. With a 5V supply a 1k ohm resistor would burn ~25mW.
 
mheslep said:
The examples in your link show open collector TTL, so that the output is not 3.3V, but either 'open' or closed. That is, when the output transistor is off the collector is at high resistance, or 'open', relative to the pull up resistor only the micro amp collector leakage current flows so that their is little or no drop through the pull up and the collector voltage is nearly the same as the supply voltage Vcc, which is sufficient to drive the input of the high input resistance CMOS gate. When the output transistor is biased on, the collector voltage is forced to Vce-on (~.2-.3 V) above ground. Then the trade off for selecting Rpull-up is that it should be very small compared to the transistor off resistance, but the smaller the resistor the more power it wastes in heat. With a 5V supply a 1k ohm resistor would burn ~25mW.

I understand the open collector pull up. But can you explain how it works when there is an external pullup resistor(like in fig1 in the link)?
 
Fig. 1 is a totem pole output. You should use the open collector output if avail because you get a higher level "1" voltage.. They show 10k resistor pullup, but I usually use about 2k (2.5 milliamps w/ collector low)
 
CMOS require less than 1.5 volts for a zero and more than 3.5 volts for a one.
TTL can't do this reliably (unless you use open collector gates) so you usually need to put an interfacing transistor into be switched by the TTL and give a reliable 0 to 5 volts out.

Putting a transistor in introduces an inversion though, so it may not suit the logic.

Fortunately TTL are not used much any more. The 74HC family are very nice to work with and use a fraction of the power that the old TTL monsters used to use.
 
likephysics said:
Dumb question.
Can't seem to understand how pull up resistor works when interfacing TTL to CMOS.

A TTL output connected to a CMOS input.
TTL output is 3.3V, but CMOS requires 5V.

When TTL output is high, one end of resistor is 3.3V and the other end is 5V.
The 3.3V end is connected to cmos input. How does the cmos input see 5V?
ckt diagram here -http://www.ecelab.com/interfacing-ttl-cmos.htm

Also, how do you decide the value of the resistor?

Not a dumb question at all. That link provides very poor information, so it's no wonder you are confused. If you drew that top circuit in response to my interview question about how to interface the different logic families, it would be a short interview.

Those are not real-world techniques for interfacing logic families. Quiz Question -- why? (not a QQ for the experienced folks here, let the students answer it...). Hint, how would you calculate the max signal BW that could be propagated across that boundary?

If you have a TTL signal (or a 3.3V CMOS signal) that needs to cross into 5V CMOS logic, you use ACT or HCT or some other XXT logic gate to do the job. QQ -- what does the "T" stand for in those logic family variants?

Or you use some other *active* level translator gate. There are even very cool bidir level translators that you can use on bidirectional busses with different voltage devices all sharing the same bus.
 
berkeman said:
Those are not real-world techniques for interfacing logic families. Quiz Question -- why? (not a QQ for the experienced folks here, let the students answer it...). Hint, how would you calculate the max signal BW that could be propagated across that boundary?

I had to think this over while having lunch so I'll take a stab at it - my guess is that the reason the pullup resistors would not be a good solution at high signal frequencies is that there's an input capacitance on the gate of the next IC, and when the open collector output transistor shuts off and the output goes high the capacitance of the next stage has to charge up through that pullup resistor, introducing a nasty time constant and distorting the signal.
 
bitrex said:
I had to think this over while having lunch so I'll take a stab at it - my guess is that the reason the pullup resistors would not be a good solution at high signal frequencies is that there's an input capacitance on the gate of the next IC, and when the open collector output transistor shuts off and the output goes high the capacitance of the next stage has to charge up through that pullup resistor, introducing a nasty time constant and distorting the signal.
That is exactly the problem. Sorry I should have mentioned this previously.
 
I guess no body really answered the question. Connecting a pullup is similar to connecting 2 resistors to the collector of a transistor. one is internal and the other connected to +5V, right?
Can somebody point me to a link where I can see the output stage of a TTL gate. I don't know why the output(Voh) is 3.3V
I am guessing the output stage is just like a NPN switch.
 
  • #10
I like this Fairchild application pdf for http://www.fairchildsemi.com/an/AN/AN-314.pdf" . Just thought I would share.
 
Last edited by a moderator:

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
5K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
46
Views
11K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
5K
  • · Replies 9 ·
Replies
9
Views
9K
Replies
2
Views
3K