3
\$\begingroup\$

I've been teaching myself the basics of circuits for the last few months and have been enjoying going into chip schematics. I'm trying to understand why the resistor values are as they are. For instance, for this NAND gate:

TTL NAND gate

Source: Big Code - Discrete TTL NAND Gate

How would one decide, if making this from scratch, to use 4kΩ, 1.6kΩ, and 130Ω resistors? I've noticed 130Ω to be common in the output stage of TTL and would love to understand why.

Please share any information or good book links for me, as well as offer any feedback on how I can improve my posts here. Thanks!

\$\endgroup\$
9
  • 1
    \$\begingroup\$ @chillcoolcat I think I've analyzed that too many times here already. Just a sec and I'll find a few. Try here and here and here for starters. I'm sure I'm not the only one, though. Probably been done and done and done dozens of times here. Better than I have, I'm sure. I discuss the \$130\:\Omega\$ resistor itself in at least one of those. \$\endgroup\$
    – jonk
    Commented Jan 11, 2020 at 4:15
  • \$\begingroup\$ @chillcoolcat If you have more specific questions I didn't already answer, I'll be happy to attempt an answer to those, as well. But I think the above covers most of the important stuff. Let me know. For grins, you can also observe how one might approach a single-supply RTL design here. Old RTL used a negative rail, for better performance. But the above link provides a way to attempt it without that advantage. \$\endgroup\$
    – jonk
    Commented Jan 11, 2020 at 4:21
  • \$\begingroup\$ The purpose of that Rc is to protect the device with Pd max and temp rise from a short circuit to ground with output set to "1" while maintaining 1:10 fanout of inputs from same family. < 1/4 W for 1 gate ground short set to "1" @ 5.5V \$\endgroup\$ Commented Jan 11, 2020 at 4:28
  • 1
    \$\begingroup\$ @Tony Yes. I write, "With low sourcing currents, the output impedance given \$\beta=40\$ is about \$40\:\Omega\$ as shown in the first equation. But as \$Q_3\$ goes into satuation, \$\beta\$ starts rapidly declining towards a lower value and the impedance rises upward. At some point, at \$\beta=\frac{1600\:\Omega}{130\:\Omega}\approx 12.3\$, \$Q_3\$ is sufficiently saturated and \$R_3\$ takes over and the second equation describes the output voltage under higher loads." (And I provide the quantitative equations, too.) \$\endgroup\$
    – jonk
    Commented Jan 11, 2020 at 4:34
  • 2
    \$\begingroup\$ @Tony I really, really hate Falstad. I mean... I really hate it. \$\endgroup\$
    – jonk
    Commented Jan 11, 2020 at 4:58

1 Answer 1

2
\$\begingroup\$

How would one decide, if making this from scratch, to use 4kΩ, 1.6kΩ, and 130Ω resistors?

The resistance values determine how much current can flow in the associated parts of the gate circuit. This then determines the input and output currents and operating speed of the gate.

R1 limits the current sourced by an input when pulled low. The previous gate must have enough strength to sink at least this much current (preferably a lot more to get a reasonable fanout). When all inputs are high R1 supplies current to the Base of Q2. This current must be sufficient to tun Q2 fully on.

R2 sets the current supplied to the Base of Q4 when Q2 is turned on, and also limits the current going into the Base of Q3 when Q2 is off.

R3 limits the current that can be drawn from the output when high.

R4 shunts some current away from Q4's Base to ensure that it turns off quickly when Q2 turns off.

Once you have chosen the desired input and output currents, the required resistor values can easily be calculated using Ohm's law and transistor characteristics (Vbe, Hfe etc.). However (as you might suspect) the values interact to some extent.

Choosing a higher value of R1 to get lower input current will require that the other resistances also be higher, so the maximum output current will be lower. With smaller currents flowing the internal parasitic capacitances of the transistors will take longer to charge and discharge, so the gate will have longer delays and a lower maximum operating speed.

\$\endgroup\$
4
  • \$\begingroup\$ Thanks for the answers and links. I've learned a lot from them. I'm still trying to figure out what the relevant equations are though. If I replace the 130 Ohm with a 1K resistor, for instance, how can I, from a theoretical perspective, explain that that would be a good/bad modification? Or said another way, if I knew I needed a resistor in the spot of the 130 Ohm one but I wasn't sure what value to use, what calculations could I do that would result in 130? Thanks! \$\endgroup\$ Commented Jan 25, 2020 at 17:16
  • \$\begingroup\$ For a rough calculation, assume that Q3 drops about 0.3V and D3 drops 0.7V. With a 5V supply that leaves 4V across R3 when the output is shorted to ground. 4V / 130 Ohms = ~31mA . To be more accurate you should also add Q3's Base current (~2mA with R2 = 1.6k). Due to process variations the actual 'resistor' values can vary significantly. SN7400 short circuit output current ranges from a possible minimum of 18mA to a maximum of 55mA. \$\endgroup\$ Commented Jan 26, 2020 at 7:32
  • \$\begingroup\$ That's really helpful and just made a number of things all click at once for me. If you don't mind, any similar insight into the other two resistors would be greatly helpful, thanks! \$\endgroup\$ Commented Jan 28, 2020 at 7:30
  • \$\begingroup\$ If it's been really helpful then perhaps you could mark the answer as accepted? \$\endgroup\$ Commented Jan 28, 2020 at 8:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.