CSE 2317 W1 · Class 2 Adding a transistor: RTL to DTL
Sakeef Sani ↗ ↓ PDF

CSE 2317Week 1Class 2Sunday · 11:00 AM – 12:20 PM80 min

Adding a transistor: RTL to DTL

Give diode logic an inverter and it becomes a real, cascadable logic family.

S present · L lecturer notes · → next step · F full screen · P presenter window
01 Cold open 0–5 min

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?

Pop culture

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.

Think deeper

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.

02 Live lab 5–15 min

The transistor as a switch (60-second refresher)

Transistor inverter Slide the input. A good switch lives in cutoff or saturation and dashes through the middle.
+5 VRc 1kQRb 10kVinVo5.00 V0.00 V
CUTOFFACTIVESAT012345012345Input voltage (V)Output voltage (V)
Cutoff · switch open

IB = 0.000 mA · IC = 0.00 mA

Cutoff

VBE < 0.5 V. IB ≈ IC ≈ 0. Switch open, output high.

Active

IC=βIBI_C=\beta I_B. Great for amplifiers, bad for logic.

Saturation

VCE(sat) ≈ 0.2 V. Needs IB≥IC(sat)/βminI_B \ge I_{C(sat)}/\beta_{min}.

03 Worked example 15–21 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.

04 Live lab 21–26 min

RTL: one transistor per input

RTL NOR: the Apollo gate Either input high saturates its transistor and pulls the shared collector low.
+5 VRc 1kRb 10kQ1Rb 10kQ2A0 VB0 VY5.0 V
ABY
001
010
100
110
IB (high input)0.43 mA
IC0.0 mA
Y=A+B‾Y = \overline{A + B}

Any high input saturates its own transistor and drags the shared collector low: NOR, the Apollo gate.

Gotcha

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.

05 Concept 26–30 min

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.

Pro tip

Every part has one job. Exam CQs love "state the function of D1, D2 and R2".

R1 + input diodesThe diode AND. Any low input steals R1's current.
D1, D2Level shifters: each adds 0.7 V to what P needs to turn the transistor on → higher threshold, bigger noise margin.
R2Drains stored base charge so the transistor turns off fast; stops the base floating.
Transistor + RCThe inverter: restores clean 0.2 V / 5 V and drives the next gates.
06 Live lab 30–36 min

DTL NAND, live

DTL NAND gate Flip A and B. Then pile on fan-out and lower β until the output low breaks.
+5 VR1 = 5 kΩA5 VB5 VDADBD1D2R2 = 5 kΩQRc = 2.2 kΩ4 gateinputsP 2.2 VY 0.20 V
I1 through R10.56 mA
I R20.16 mA
I B0.40 mA
Must sink5.46 mA
β·IB available12.00 mA
Max fan-out11
Y = 0. Both inputs high, the transistor saturates with 2.2× the base drive it needs.
07 Worked example 36–43 min

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.

08 Worked example 43–48 min

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.

Gotcha

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.

09 Concept 48–52 min

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.

Vth=VP,on−Vγ=1.9−0.7=1.2 V,NML=1.2−0.2=1.0 VV_{th} = V_{P,on} - V_\gamma = 1.9 - 0.7 = 1.2\ \text{V},\quad NM_L = 1.2 - 0.2 = 1.0\ \text{V}

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 diodesVP to turn onInput thresholdNML
0 (just the base)0.5 V≈ −0.2 V (fails!)none
11.2 V0.5 V0.3 V
2 (course DTL)1.9 V1.2 V1.0 V
10 Live lab 52–56 min

See a noise margin fail

Noise-margin scope Turn up the noise. Red ticks = the receiver read the wrong bit (or couldn't decide).
VOHVIHVILVOLNMLNMHreceiver errors ▲
NM low1.00 V
NM high3.50 V
Samples misread0 %

Errors start when the noise peak exceeds the smaller margin. A family is only as robust as its weaker side.

11 Your turn 56–60 min

Your turn · 1: cheap transistors

03:00
1 Exam CQ

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.

12 Your turn 60–63 min

Your turn · 2: a bigger R₂

2 Exam CQ

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.

13 Your turn 63–65 min

Your turn · 3: spot the wrong claim

3 Trap

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.

14 Think deeper 65–68 min

Critical thinking · design for fan-out 10

4 Design

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.

15 Think deeper 68–71 min

Critical thinking · then why not five level shifters?

5 Critical thinking

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.

16 Real world 71–74 min

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).

BME corner

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.

17 Pop quiz 74–78 min

Pop quiz

Score 0

Question 1 / 5

In a BJT switch, the saturated collector current is set mainly by:

18 Recap 78–80 min

Three things to remember

01

A logic transistor lives in cutoff or saturation. Saturation needs IB ≥ IC(sat)/βmin.

02

DTL = diode AND + level-shift diodes + transistor NOT = NAND. Level shifters buy noise margin; R2 buys speed.

03

Fan-out is set in the low state: 2.18 + 0.82N ≤ βminIB. Next week: switching speed and MOSFET gates.

HW Before next class

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.