logic gate circuity - milwaukee area technical collegeecampus.matc.edu/lokkenr/elctec-131/pp...

40
Logic Gate Circuity ELCTEC-131 Lecture 2

Upload: others

Post on 16-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Logic Gate Circuity

ELCTEC-131Lecture 2

Page 2: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Noise

Unwanted electrical signals.

Induced by electromagnetic fields by such sources as motors, fluorescent lights, high-frequency circuits, and cosmic rays.

Can cause erroneous operation of a digital circuit.

© 2009 Richard Lokken 2

Page 3: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Noise Margin

A certain amount of tolerance is built into digital devices to tolerate noise.

Noise margin is required for both LOW and HIGH inputs (See Figure 11.15 in the textbook).

© 2009 Richard Lokken 3

Page 4: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Noise Margin for 74LS04

HIGH state:

VNH = VOH – VIH = 3.0 V – 2.0 VVNH = 1.0 V.

LOW state:

VNL = VIL – VOL = 0.8 V – 0.5 VVNL = 0.3 V.

© 2009 Richard Lokken 4

Page 5: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Noise Margin for 74HC00A

HIGH state:

VNH = VOH – VIH = 3.98 V – 3.15 VVNH = 0.63 V.

LOW state:

VNL = VIL – VOL = 1.35 V – 0.26 VVNL = 1.09 V.

© 2009 Richard Lokken 5

Page 6: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

TTL Gates Internal Circuitry Uses the bipolar junction transistor.

The transistors used are in one of two modes: cutoff or saturation.

In cutoff mode, the transistor acts as an open switch.

In saturation, the transistor acts as a closed switch.

© 2009 Richard Lokken 6

Page 7: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

TTL Gates Internal Circuitry

© 2009 Richard Lokken 7

Page 8: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Bipolar Transistor Characteristics

© 2009 Richard Lokken 8

Cutoff Active SaturationI C 0

V CE Open cct. >0.8 V 0.2 V - 0.7 VV BE <0.6 V 0.6 V - 0.7 V

BβI= BβI<

v7.0≈

Page 9: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Open-Collector Outputs

A circuit that has LOW-state output circuitry, but no HIGH-state output circuitry.

Requires an external pull-up resistor to enable the output to produce a HIGH-state.

© 2009 Richard Lokken 9

Page 10: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Advantages of Open-Collector Outputs Allows the outputs of multiple gates to be

directly connected.

◦ – Called wired-AND.

Can produce voltage levels in excess of 5 Volts.

Can drive high-input current devices.

© 2009 Richard Lokken 10

Page 11: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Open-Collector Outputs

© 2009 Richard Lokken 11

Page 12: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Open-Collector Applications

Wired-AND – the outputs of logic gates are wired together.

The wired-AND logical equivalent of combining the outputs in an AND function.

© 2009 Richard Lokken 12

Page 13: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Open-Collector Applications

© 2009 Richard Lokken 13

Page 14: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Open-Collector Applications

© 2009 Richard Lokken 14

Page 15: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

TTL Inputs

LOW inputs allow current to flow from the gate VCC to the input.

HIGH inputs cause current to flow to the phase splitter transistor.

Open (floating) inputs act as a logic HIGH, but are unstable and vulnerable to noise.

© 2009 Richard Lokken 15

Page 16: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Totem Pole Outputs

The standard TTL output configuration with a HIGH output and a LOW output transistor, only one of which is active at any time.

A phase splitter transistor controls which transistor is active.

© 2009 Richard Lokken 16

Page 17: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Totem Pole Outputs

© 2009 Richard Lokken 17

Page 18: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Advantages of Totem Pole Configuration Changes state faster than open-collector

outputs.

No external components are required.

© 2009 Richard Lokken 18

Page 19: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Totem Pole Switching Noise

Caused by one output transistor turning off slower than the other turns on.

Briefly shorts VCC to ground.

Prevented with use of decoupling capacitors.

© 2009 Richard Lokken 19

Page 20: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Decoupling Capacitors

Usually about 0.1 µF placed between VCCand ground on the chips to be decoupled.

Acts as a low-impedance path to ground for high frequency noise.

Usually require one per chip.

© 2009 Richard Lokken 20

Page 21: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Decoupling Capacitors

© 2009 Richard Lokken 21

Page 22: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Decoupling Capacitors

© 2009 Richard Lokken 22

Page 23: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Decoupling Capacitors

© 2009 Richard Lokken 23

Page 24: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Connecting Totem Pole Outputs

Outputs must never be connected together.

Connecting outputs causes excessively high currents to flow.

Outputs will eventually be damaged.

© 2009 Richard Lokken 24

Page 25: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Connecting Totem Pole Outputs

© 2009 Richard Lokken 25

Page 26: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Tristate Outputs

A configuration where there are three possible output states: logic HIGH, logic LOW, and a high-impedance state (Z).

Created with circuitry to cut off both totem pole output transistors.

© 2009 Richard Lokken 26

Page 27: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Tristate Inverter Truth Table

© 2009 Richard Lokken 27

G A Y A Y0 0 Hi-Z 0 0 10 1 Hi-Z 0 1 01 0 1 1 0 Hi-Z1 1 0 1 1 Hi-Z

G

Page 28: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Other Basic TTL Gates

NOR gates require an individual transistor for each input.

AND and OR gates are based on NAND and NOR gates and require an extra inverter stage.

© 2009 Richard Lokken 28

Page 29: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

MOSFET Types Depletion-mode.

Enhancement-mode:

◦ n-channel

◦ p-channel

CMOS (complementary) constructed from both n- and p-channel transistors.

© 2009 Richard Lokken 29

Page 30: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

MOSFET Types

© 2009 Richard Lokken 30

Page 31: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

MOSFET BIAS Requirements

Operates in two modes:

Cutoff – acts as a very high impedance between the drain and the source.

Ohmic – equivalent of saturation. Acts like a relatively low resistance between the drain and the source.

© 2009 Richard Lokken 31

Page 32: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

MOSFET BIAS Requirements

© 2009 Richard Lokken 32

Page 33: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

MOSFET BIAS Requirements

© 2009 Richard Lokken 33

Page 34: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

CMOS Inverter

Depends on the biasing of the complementary transistors Q1 and Q2.

Q1 and Q2 are always in opposite states.

When Q1 is ON, Q2 is OFF.

© 2009 Richard Lokken 34

Page 35: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

CMOS Inverter

© 2009 Richard Lokken 35

Page 36: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

CMOS Transmission Gate Behaves like an analog switch.

Conducts in both directions.

Used to enable or inhibit time-varying analog signals.

◦ When CONTROL = 1, conduction occurs

◦ When CONTROL = 0, conduction is inhibited

© 2009 Richard Lokken 36

Page 37: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

CMOS Transmission Gate

© 2009 Richard Lokken 37

Page 38: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Schottky Family TTL

Uses a Schottky barrier diode to create a Schottky transistor.

Allows transistors to avoid deep saturation and to switch faster.

Uses less power than standard TTL.

© 2009 Richard Lokken 38

Page 39: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

Speed-Power Product

One measure of logic circuit efficiency.

Uses worst-case values of propagation delay and power dissipation per gate.

Expressed in picojoules (pJ).

See Table 11.15 in the textbook.

© 2009 Richard Lokken 39

Page 40: Logic Gate Circuity - Milwaukee Area Technical Collegeecampus.matc.edu/lokkenr/elctec-131/pp lectures... · TTL Inputs LOW inputs allow current to flow from the gate . V. CC. to the

CMOS Logic Families Metal-Gate CMOS (rarely used).

High-Speed CMOS.

Advanced High-Speed CMOS.

Low-Voltage CMOS.

See Table 11.16 in the textbook.

© 2009 Richard Lokken 40