TTL Logic Gates Lecture Notes
TTL Logic Gates Lecture Notes
TTL Logic Gates Lecture Notes
The electrical circuits which perform logical operations are called gates. A C
0 1 A
All data manipulation is based on logic 1 0
Logic follows well defined rules, producing predictable digital output from certain input.
Main Logic gates are AND, OR, NOT, NAND, NOR and XOR
AND OR NAND NOR XOR
AB C AB C AB C AB C AB C
0 0 0 0 0 0 0 0 1 0 0 1 0 0 0
0 1 0 0 1 1 0 1 1 0 1 0 0 1 1
1 0 0 1 0 1 1 0 1 1 0 0 1 0 1
1 1 1 1 1 1 1 1 0 1 1 0 1 1 0
A A A. A A
B C B B. B B
Digital logic gates NAND and NOR are called universal logic gate because we can construct
all other logic gates using NAND gate or NOR gate alone.
OR
AND
AB C A
AB C
0 0 0 A 0 0 0 C
0 1 1 C 0 1 0
1 0 1 B
1 0 0 B
1 1 1 1 1 1
4
XOR –Logic Gates
A
B
C
5
Logic Family / Level Of Integration
IC logic gates fall under SSI, combinational logic circuits fall under MSI, and
Microprocessor system come under LSI and VLSI.
6
Digital Logic Family
Logic families can be classified broadly according tothe
technologies they are built with
The prefix of the part number represents the manufacturer code and the
suffix at the middle denotes the subfamily of the ICs and suffix at the end
denotes the packaging type.
For example: If the part number is S74F08N. The 7408 is the basic number
used by all manufacturer for quad AND gate. The S prefix is the
manufacture’s code for Signetics, F stands for FAST TTL subfamily, and the
N suffix at the end is used to specify the plastic dual in line packaging
OR
XY Z
0 0 0
0 1 1
1 0 1
1 1 1
Diode Logic suffers from voltage degradation from one stage to the next.
Diode Logic only permits OR and AND functions, cannot perform a NOT function.
NOR
A
XY Z B
0 0 1
0 1 0
1 0 0
1 1 0
When Vin equals 1 (+5V), the transistor is turned on (saturation) and Vout equals 0 (0V).
When Vin equals 0 (0V), the transistor is turned off and Vout equals 1 (5V), assuming RL > RC
RL +5V
Vout VCC
(R C R L )
IC RC
Thus level 1 of inverter output is very much
dependent on RL , which can typically vary Vout
IB C
by factor of 10. Thus we need very small RC
B
compared to RL i.e. RL > > RC .
RB E
But when transistor is saturated (Vout = 0V), Vin IE RL
IC will be very large if RC is very small. RE
IC 7400
Dual In Line package (DIP) is the most common pin layout for integrated circuits. The pins
are aligned in two straight lines, one on each side of the IC.
13
Transistor Transistor Logic - Dual In Line Packaging (DIP)
IC 7408 IC 7402
IC 7404
Some common digital ICs used in labs are: IC7400 (Quad NAND gate), IC 7404 ( hex
inverter), IC 7408 (quad AND gate) and IC7402 (quad NOR gates).
14
NAND gate using TTL logic / Static analysis
NAND
AB C
0 0 1
0 1 1
1 0 1
1 1 0
A
B
When one or both inputs low (connected to When inputs high, base-emitter junction of
GND), base-emitter junction of Q1 is forward Q1 is reverse bias so Q1 OFF and output at
bias so Q1 ON (saturated) and output at collector will be high making Q2 ON.
collector will be low making Q2 off. Q4 ON and Q3 & D1 OFF so output is LOW.
•Q4 off and Q3 & D1 on making output HIGH. •Power dissipation in R1, Q1, R2, Q2, R3, Q4.
•Power dissipation in R1, Q1, R2, R4, Q3, D1 15
Performance Parameters of logic families
• Fan-out
• Noise Margin
•Power Dissipation.
16
Input / Output Current and Fan-out
The fan-out of a subfamily is defined as the number
of gate inputs of the same subfamily that can be
connected to a single output without exceeding the
current ratings of the gate.
The output current capability for the HIGH condition is abbreviated IoH
and is called source current. IoH for the 7400 is -400uA maximum. (- sign
shows current is leaving the gate)
The input current required under HIGH condition is abbreviated IIH and for
74xx subfamily is equal to 40uA maximum. Fan-out = 400/40 = 10
For the LOW condition, the maximum output current for the 74xx
subfamily is 16mA, and the input requirement is -1.6mA maximum.
The fan-out is usually same for both the HIGH and LOW conditions for
74xx subfamily; if not, we use the lower of the two.
Because a LOW output level is close to 0V, the current actually flows into
the output terminal and sinks down to ground. This is called sink current.
18
Input / Output Voltage for TTL family
There is a limit on voltage until it is considered HIGH. As we draw more and
more current out of the HIGH level output, the output voltage drops lower and
lower, until finally it will not be recognized as a HIGH level anymore by the
other TTL gates that it is feeding.
19
Noise Margin for TTL family
Noise-Margin measures how much external electrical noise a gate can
withstand before producing an incorrect output. TTL will take anything
below about 0.8 volt as a 0, and anything above about 2 volts as a high.
The fall time (tf) is the length of time it takes for a pulse to fall from its 90%
point to its 10% point.
22
Estimation of propagation delay time
To calculate delay, we consider transistor as a switch
dV dV
IC
dV dt C RC
dt I V
For fall delay tphl, V0=Vcc, V1=Vcc/2 tphl = 0.69RnCL tplh = 0.69RPCL
23
Evolution of TTL Logic Family TTL 74H Series
Low power Schottky TTL. Low power, high speed Schottky TTL
Typical Pdis =2mW and t = 10ns logic-Innovations in IC design and
fabrication. Improvement in speed and
power dissipation. Popular.