The moon computer ran on one gate
The Apollo Guidance Computer (1969) was built from about 2,800 identical chips, each holding two 3-input NOR gates made of resistors and transistors.
One gate type. Every function. How?
The Lego approach: one brick shape, stacked cleverly, builds the whole Millennium Falcon. NOR is a brick that can build any logic function. Last class's diodes could not even make a NOT.
Draw a NOT gate using only one 2-input NOR. Then an OR.
Argue it in pairs for two minutes. There may be more than one defensible answer.
The transistor as a switch (60-second refresher)
IB = 0.000 mA · IC = 0.00 mA
Cutoff
VBE < 0.5 V. IB ≈ IC ≈ 0. Switch open, output high.
Active
IC=βIB. Great for amplifiers, bad for logic.
Saturation
VCE(sat) ≈ 0.2 V. Needs IB≥IC(sat)/βmin.
Worked example: design the inverter
Given
VCC = 5 V, RC = 1 kΩ, RB = 10 kΩ, βmin = 50, VBE = 0.7 V, VCE(sat) = 0.2 V.
Find
The minimum input voltage that saturates the transistor, and the overdrive factor at Vin = 5 V.
Method: Millman & Taub, transistor switch; Boylestad, BJT switching networks
Solution
Predict the answer first. Then reveal one step at a time.
RTL: one transistor per input
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
Any high input saturates its own transistor and drags the shared collector low: NOR, the Apollo gate.
RTL's weak spot: an input only needs ≈ 0.5–0.7 V to start turning on, and a real "0" is already 0.2 V. Tiny low noise margin. DTL raises that threshold.
DTL NAND = diode AND + transistor NOT
Take last class's diode AND. Instead of using its output directly, feed it through two level-shifting diodes into a transistor inverter.
Every part has one job. Exam CQs love "state the function of D1, D2 and R2".
| R1 + input diodes | The diode AND. Any low input steals R1's current. |
|---|---|
| D1, D2 | Level shifters: each adds 0.7 V to what P needs to turn the transistor on → higher threshold, bigger noise margin. |
| R2 | Drains stored base charge so the transistor turns off fast; stops the base floating. |
| Transistor + RC | The inverter: restores clean 0.2 V / 5 V and drives the next gates. |
DTL NAND, live
Worked example: analyse the DTL NAND
Given
VCC = 5 V, R1 = R2 = 5 kΩ, RC = 2.2 kΩ, Vγ = 0.7 V, VBE(sat) = 0.8 V, VCE(sat) = 0.2 V, VBE(cut-in) = 0.5 V, βmin = 30. Logic levels 0.2 V / 5 V.
Find
The output for (a) any input low and (b) all inputs high; check saturation.
Method: Millman & Taub / Taub & Schilling, DTL gate analysis
Solution
Predict the answer first. Then reveal one step at a time.
Worked example: how many gates can it drive?
Given
The same gate, output low (Y = 0.2 V), driving N identical DTL gates.
Find
Maximum fan-out N.
Fan-out is decided in the low output state. When Y is high the driven gates' input diodes are reverse-biased and draw almost nothing.
Solution
Predict the answer first. Then reveal one step at a time.
Noise margin: why two level-shift diodes?
Noise margin = how much garbage a signal can pick up and still be read correctly. Low state: the input must stay below the voltage that starts turning the transistor on.
High state, roughly: input diodes stay off while Vin > VP − Vγ = 1.5 V, so NMH ≈ 5 − 1.5 = 3.5 V (unloaded).
| Level-shift diodes | VP to turn on | Input threshold | NML |
|---|---|---|---|
| 0 (just the base) | 0.5 V | ≈ −0.2 V (fails!) | none |
| 1 | 1.2 V | 0.5 V | 0.3 V |
| 2 (course DTL) | 1.9 V | 1.2 V | 1.0 V |
See a noise margin fail
Errors start when the noise peak exceeds the smaller margin. A family is only as robust as its weaker side.
Your turn · 1: cheap transistors
In the course DTL NAND, replace the transistor with one whose βmin = 20. Everything else is unchanged.
What is the new fan-out?
Work it out first.
Press Solve when the class has an answer.
Your turn · 2: a bigger R₂
Change R2 to 10 kΩ (βmin = 30). Find IB and the fan-out.
What do you lose?
Work it out first.
Press Solve when the class has an answer.
Your turn · 3: spot the wrong claim
A classmate says: "Fan-out is limited when the output is high, because the output must supply current to all the loads."
Is that right for DTL? Explain which state limits fan-out and why.
Work it out first.
Press Solve when the class has an answer.
Critical thinking · design for fan-out 10
A customer needs the course DTL gate to drive 10 loads with βmin = 30. You may change only RC.
What is the smallest RC that works? Pick a standard value and state the trade-off.
Work it out first.
Press Solve when the class has an answer.
Critical thinking · then why not five level shifters?
Two level-shift diodes gave NML = 1.0 V. A student proposes five diodes for an even bigger margin.
Analyse n = 3, 4, 5 (all else as the course DTL, βmin = 30). What goes wrong?
Work it out first.
Press Solve when the class has an answer.
Fan-out lives on in every board you build
An Arduino or Raspberry Pi pin has a current limit, exactly like our DTL collector. Hang too many LEDs or chip inputs on one pin and the "low" stops being low, or the pin is damaged. Datasheets still list the IOL/IIL currents fan-out is computed from (TTL version in Week 3).
In a patient monitor one sensor signal may feed an ADC, a display driver and an alarm comparator at once. Every extra input loads the source and the reading drifts. The fix is DTL's idea: a buffer stage, so the fragile source drives only one input. The op-amp version (voltage follower) comes in Week 8.
Pop quiz
Question 1 / 5
In a BJT switch, the saturated collector current is set mainly by:
Three things to remember
A logic transistor lives in cutoff or saturation. Saturation needs IB ≥ IC(sat)/βmin.
DTL = diode AND + level-shift diodes + transistor NOT = NAND. Level shifters buy noise margin; R2 buys speed.
Fan-out is set in the low state: 2.18 + 0.82N ≤ βminIB. Next week: switching speed and MOSFET gates.
Same DTL gate but RC = 4.7 kΩ (βmin = 30). Find the fan-out. Does a bigger RC help or hurt when driving capacitive loads?
Work it out first.
Press Solve when the class has an answer.