5

I was looking into Millman's Microelectronics book, 2nd edition, pp. 245 - TTL NAND Gate.

I am a beginner in electronics and was looking into this book just because of an assignment problem about a TTL NAND gate.

I am also attaching a screenshot of the page of the book.

First of all, is it correct to think that the transistor Q1 is in common-base configuration?

I am also struggling to understand the biasing of transistor Q1. In the below screenshot, the book says, the transistor Q1 is in saturation mode. That would mean both collector-base and base-emitter junctions are forward-biased. Then why do some resources, like this video at 6:13 minutes, say the collector-base junction is in reverse bias?

Also, the book mentions, as in the screenshot, "for the collector junction of Q1 to be forward biased, the voltage at point P should be 0.7 + 0.7 = 1.4 V". How can this be justified ?

I know very elementary facts about transistors; where does my understanding have a caveat?

Please help, as I am really struggling to get the concepts behind this.

ttl nand

ocrdu
  • 8,705
  • 21
  • 30
  • 42
curious_mind
  • 153
  • 4
  • https://electronics.stackexchange.com/questions/304642/ttl-nand-gate-totem-pole-current-and-voltage-analysis/304722#304722 – G36 Mar 31 '23 at 08:43
  • I have already looked into this question, but there are still some questions I do not understand. Also explanation in this question is bit advanced for me. – curious_mind Mar 31 '23 at 08:49
  • For example, is Q1 in common base configuration ? Because, input is given from emitter and we are looking into collector current for output. Is this correct way of thinking ? – curious_mind Mar 31 '23 at 08:50
  • 1
    No, Q1 is not connected in a common-base configuration because its base is not fixed. – Circuit fantasist Mar 31 '23 at 08:55
  • 1
    No this is not the correct way. – G36 Mar 31 '23 at 08:55
  • In the above link, it is written that "If \$V_C=5V\$, then it roughly follows that \$V_{OUT} \le 5V−2⋅V_{BE}≈3.6V\$. So the inputs will probably not be much higher without an external resistor to help a pull-up on the input(s)." What is pull up in this context ? – curious_mind Mar 31 '23 at 09:01
  • Why base is not fixed ? A 5V supply us given to base, right ? Then in which configuration the transistor is in ? Thanks for your comments. – curious_mind Mar 31 '23 at 09:04
  • "A 5V supply us given to base, right" but through a 4 k resistor... – Circuit fantasist Mar 31 '23 at 09:32
  • Ok, so from that resistor, it is not common-base ? But cannot we think like multi transistors have their own configuration ? I mean what is true reason then ? – curious_mind Mar 31 '23 at 09:40
  • 1
    Does this answer your question? https://electronics.stackexchange.com/questions/542423/nand-gate-problem/651334#651334 – hacktastical Mar 31 '23 at 22:38
  • Does this answer your question? [TTL NAND gate (totem pole) current and voltage analysis](https://electronics.stackexchange.com/questions/304642/ttl-nand-gate-totem-pole-current-and-voltage-analysis) – RussellH Apr 03 '23 at 01:36

2 Answers2

5

If all inputs are HIGH (connected to Vcc). The \$Q_1\$ base is also pull-up to \$V_{cc}\$ via a \$4k\$ resistor. Therefore the base-emitter junction is reversed biased. In a "normal situation", \$Q_1\$ should be cut off. But in this case, we have \$Q_1\$ collector connected directly to \$Q_2\$ base. And this changes the situation completely.

There is a path for a \$Q_1\$ base current from \$Vcc\$ to \$GND\$.

The \$Q_1\$ base current can flow from:

Vcc--->4k--->Q1 Base-collector junction ---->Q2 Base-emitter junction--->R3---->GND.

Notice that the \$Q_1\$ base-collector junction is now forward-biased, and that is why the current can flow. So in this scenario, \$Q_1\$ is working in inverse mode also known as a reverse active region.

When the input is LOW. The \$Q_1\$ transistor's base-emitter junction is forward biased. And since \$Q_1\$ collector is connected to \$Q_2\$ base. So, the current cannot flow out of \$Q_1\$ collector into \$Q_2\$ bas, thus \$Q_2\$ is cut-off. And in this case, we can say that the Q1 transistor will be saturated. Because the collector will be "flooded" by electrons injected from the emitter.

The \$Q1\$ equivalent cicuit:

schematic

simulate this circuit – Schematic created using CircuitLab

G36
  • 13,642
  • 1
  • 18
  • 33
  • Thank you for your answer. But how collector of \$Q_1 \$ is directly connected to base of \$Q_2\$ ? Is it through transistor \$Q_2\$ as it looks like from the figure ? – curious_mind Mar 31 '23 at 09:11
  • I feel there is basically no cofiguration of \$Q_1\$ like common base, common emitter, common collector , right ? It is completely different situation, can we say that ? – curious_mind Mar 31 '23 at 09:12
  • Yes, Q1 is working here as four diodes. 3 x base-emitter diode, and one base-collector diode. – G36 Mar 31 '23 at 09:15
  • 1
    So you do not see that Q1 collector is directly connected to Q2 base? – G36 Mar 31 '23 at 09:16
  • Ok yes yes, I understood. :) it is clearly apparent. Sorry. – curious_mind Mar 31 '23 at 09:17
  • 1
    I added Q1 equivalent circuit. – G36 Mar 31 '23 at 09:25
  • Thank you. Regarding transistor configuration, I have one more question, if we have multiple transistors, then its cofiguration is completely different right ? We cannot exactly say either it is common base, common collector or common emitter , is it correct ? For example, here and I also know of Darlington Configuration. – curious_mind Mar 31 '23 at 09:37
  • 1
    The answer is YES and NO at the same time. This is a digital circuit. So all transistors will work in two stages ON/OFF manner. But in the transient (between cut-off and saturation) we can view it as an analog circuit. Thus w can view Q2 and Q3 as an emitter follower plus a common emitter. – G36 Mar 31 '23 at 10:10
  • I understood the case when all three inputs are HIGH. Lets one input to be LOW. As you mention in your answer, now base current will go to ground via base-emitter junction of Q1. So now, it will not go through Q2, right ? So, Q2 will be cut off. – curious_mind Mar 31 '23 at 10:17
  • But then why Q1 will be saturated ? I do not understand last statement in this case, "Because the collector will be "flooded" by electrons injected from the emitter." From where this collector current will come if current going through base emitter junction ? – curious_mind Mar 31 '23 at 10:19
  • 1
    @curious_mind Ordinarily, the forward-biased Q1 B-E junction would cause collector current to flow through Q1 (entering the Q1 collector). In this case, however, the collector current of Q,1 would have to flow "backward" through the base-emitter junction of Q2, which it cannot do. In consequence, Q1 is forced into saturation due to internal mechanisms. – G36 Mar 31 '23 at 11:36
  • Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/145002/discussion-between-curious-mind-and-g36). – curious_mind Mar 31 '23 at 12:10
  • 1
    @curious_mind But the Q2 base-collector junction is reversed-biased. So only a small leaking current will be flowing into the Q1 collector from Vcc --->-C-B junction. We can view it as if we would have a very large Rc resistor in the Q1 collector. And since Ib*beta is larger than Ic1 (leaking current) - Q1 must be saturated. Look here https://electronics.stackexchange.com/questions/311243/bjt-base-current-calculation/311306#311306 Do you see it? – G36 Mar 31 '23 at 16:02
  • Yes, thank you very much. I think mostly all of my questions are answered wit this one. I just want an advice, I am just not getting commonly understood things in electronics, and I also found books not mentioning it properly, how do I practice and deal with it ? – curious_mind Mar 31 '23 at 16:54
5

Understanding by explaining

There is a very interesting paradox in life that can be observed here very often: By asking interesting and unexpected questions, such curious young people make us think and rethink what we know about circuit phenomena. Thus explaining them, we understand these ideas even better... and continue explaining them:-)

How we should not teach

I first encountered this strange creation of human thought as a student in the late 1970s. Then TTL circuits were in their heyday and entire computers were made with them. I have kept the (unpleasant) memory of a laboratory exercise in Digital Circuits where the assistant made us do an experiment that was incomprehensible to me - to measure and plot the TTL transfer curve Vout = f(Rin)... not Vout = f(Vin) as I expected. It was indeed a virtuoso experiment, but not for a person seeing a TTL gate for the first time. I was tempted to reproduce it now (already with pleasure) after more than 40 years (see below).

Logic gate evolution

TTL gates are the successor of DTL gates; so the best way to explain TTL is through DTL as @G36 did in their answer. The common thing in both families is that the input logic variables control electronic switches - diodes in DTL, and transistors in TTL.

But there is a significant difference in the way the transistor Q2 is controlled - in diode circuits it is done by interrupting the base current, while in transistor circuits by shorting the base voltage. This allows Q2 to quickly turn off.

Operation

Let's consider the two implementations in parallel so we can compare them. For the purpose of understanding one input is sufficient (ie. we will explore the elementary logic NOT gate).

Vin = 0 V

DTL. When the input voltage is zero, D1 diverts the R1 current through itself; both D2 and Q2 are cut off (the current is "steered" to D1). The problem is that there is no return path for discharging the charge accumulated in the base, the charged stray capacitance C, leakages, etc.

schematic

simulate this circuit – Schematic created using CircuitLab

Let's now see the transfer characteristic Vout = f(Vin) by the help of DC sweep simulation. As you can see, I have set the input voltage Vin to vary from 0 to 5 V.

DTL - Vout=f(Vin)

Improved DTL. So I would add an ideal diode D3 (with 100 mV forward voltage) in parallel to the network of two back-to-back diodes D1 and D2 to mimic the turned on transistor in the TTL gate below.

schematic

simulate this circuit

DTL modified - Vout=f(Vin)

The transfer characteristic Vout = f(Vin) is almost the same as above; there is only a small shift to right that should be explained...

TTL. Here, the Q1 base-emitter junction corresponds to D1 and the base-collector junction to D2. Since the Q1 emitter is grounded and its base is connected through R1 to Vcc, Q1 is turned on and can sink a collector current. So the capacitor C will be quickly discharged through the Q1 collector-emitter part and the Q2 base will be firmly grounded.

schematic

simulate this circuit

Mimicked "charged capacitor". Since I don't know how the initial conditions of the capacitor can be set in CircuitLab, I have imitated it with the "pull-up" resistor Rtest.

schematic

simulate this circuit

Vin = 5 V

DTL. Now D1 is backward-biased and the R1 current is steered to right through D2 and Q2 base-emitter junction. So the Q2 collector current is increased enough and Vout is almost zero.

schematic

simulate this circuit

TTL. Now Q1 works in a very strange "inverse active mode" because everything is upside down - the emitter is "pulled up" to 5V, the base is "lifted" to the middle, and the collector is at its lowest voltage. Indeed, Q1 works like a transistor but we don't want that because its emitter consumes some (although small) current from the previous stage. I had a great desire to observe this phenomenon, but apparently CircuitLab gets confused and gives wrong values ​​of the currents in the input circuit (you can check it to convince yourself).

schematic

simulate this circuit

Let's now see the transfer characteristic Vout = f(Vin) as above (the input voltage Vin varies from 0 to 5 V)...

TTL - Vout=f(Vin)

... and the input characteristic Iin=f(Vin).

TTL - Iin=f(Vin)

Mimicked inverse active mode. So to see it anyway, I decided to do the following trick - I "reversed" the transistor, with the collector out to 5V (as it works in "normal active mode") and reduced its beta a lot (below 1). So I was able to observe something close to my expectations.

schematic

simulate this circuit

The transfer characteristic Vout = f(Vin) is almost the same as above; there is only a very small shift to left...

TTL with 'inversed' Q1 - Vout=f(Vin)

... but the input characteristic Iin=f(Vin) is quite different.

TTL with 'inversed' Q1 - Iin=f(Vin)

My weird experiment of 70s

"Input resistor". Finally, I decided to reproduce the incomprehensible (to me) experiment from my student years. I used the DC sweep simulation by setting the resistance of the "input resistor" Rin to vary from 1.5 k to 2 k.

schematic

simulate this circuit

As you can see, the output voltage changes from 5 to 0 V as if there was an input voltage changing from 0 to 5 V like above. This is because the R1 current IR1 "creates" a voltage drop Vin = Rin.IR1 that gradually increases when Rin increases. You can also consider the two resistor (R1 and Rin) in series as a voltage divider with varying transfer ratio.

TTL - Vout=f(Rin)

"Input load". Now we know that many circuits (e.g. microcontrollers) with built-in "pull-up" resistors at the inputs have this strange behavior - they pass current out and can power input devices. If I could go back 40 years now, I would have my young assistant (now retired professor) drive and simultaneously indicate the TTL inputs with low current LEDs :-)

schematic

simulate this circuit

Circuit fantasist
  • 13,593
  • 1
  • 17
  • 48