digital circuits

49
26.1 Neil Storey, Electronics: A Systems Approach, 5 th Edition © Pearson Education Limited 2013 Digital devices Introduction Gate characteristics Logic families TTL CMOS Interfacing Noise and EMC in digital systems Chapter 26

Upload: salman-haider-raja

Post on 31-Dec-2015

169 views

Category:

Documents


0 download

DESCRIPTION

electro physics for u baby like channel of discovery

TRANSCRIPT

Page 1: Digital Circuits

26.1 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Digital devices

Introduction Gate characteristics Logic families TTL CMOS Interfacing Noise and EMC in digital systems

Chapter 26

Page 2: Digital Circuits

26.2 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Introduction

Earlier we looked at a range of digital applications based on logic gates – at that time we treated the gates as ‘black boxes’

We will now consider the construction of such gates, and their characteristics

Many terms are used to describe integration level In this lecture we will concentrate on small- and

medium-scale integration circuits containing just a handful of gates

26.1

Page 3: Digital Circuits

26.3 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Integration level Number of transistors Zero scale integration (ZSI) 1 Small scale integration (SSI) 2–30 Medium scale integration (MSI) 30 - 103 Large scale integration (LSI) 103 - 105 Very large scale integration (VLSI) 105 – 107

Ultra large scale integration (ULSI) 107 – 109

Giga-scale integration (GSI) 109 – 1011 Tera-scale integration (TSI) 1011 – 1013

Page 4: Digital Circuits

26.4 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Typical logic device pin-outs

Page 5: Digital Circuits

26.5 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Gate characteristics

The inverter or NOT gate – consider the characteristics of a simple inverting

amplifier as shown below – we normally use only the linear region

26.2

Page 6: Digital Circuits

26.6 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

We can use an inverting amplifier as a logical inverter but using only the non-linear region

Page 7: Digital Circuits

26.7 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– We choose input values to ensure that we are always outside of the linear region – as in (a)

– Unlike linear amplifiers, we use circuits with a rapid transition between the non-linear regions – as in (b)

Page 8: Digital Circuits

26.8 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Logic levels – The voltage ranges representing ‘0’ and ‘1’ represent

the logic levels of the circuit – Often logic 0 is represented by a voltage close to 0 V

but the allowable voltage range varies considerably – The voltage used to represent logic 1 also varies

greatly. In some circuits it might be 2-4 V, while in others it might be 12-15 V

– In order for one gate to work with another the logic levels must be compatible

Page 9: Digital Circuits

26.9 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Noise immunity – Noise is present in all real systems – This adds random fluctuations to voltages representing

logic levels – To cope with noise, the voltage ranges defining the

logic levels are more tightly constrained at the output of a gate than at the input

– Thus small amounts of noise will not affect the circuit – The maximum noise voltage that can be tolerated by a

circuit is termed its noise immunity, VNI

Page 10: Digital Circuits

26.10 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

A graphical representation of noise immunity

Page 11: Digital Circuits

26.11 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Transistors as switches – Both FETs and bipolar transistors make good switches – Neither form produce ideal switches and their

characteristics are slightly different – Both forms of device take a finite time to switch and

this produces a slight delay in the operation of the gate – This is termed the propagation delay of the circuit

Video 26A

Page 12: Digital Circuits

26.12 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

The FET as a logical switch

Page 13: Digital Circuits

26.13 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Rise and fall times – because the waveforms are not perfectly square we

need a way of measuring switching times – we measure the rise time, tr and fall time, tf as

shown below

Page 14: Digital Circuits

26.14 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

The bipolar transistor as a logical switch

Page 15: Digital Circuits

26.15 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– When the input voltage to a bipolar transistor is high the transistor turns ON and the output voltage is driven down to its saturation voltage, which is about 0.1 V

– However, saturation of the transistor results in the storage of excess charge in the base region

– This increases the time taken to turn OFF the device – an effect known as storage time

– This makes the device faster to turn ON than OFF – Some switching circuits increase speed by preventing

the transistors from entering saturation

Page 16: Digital Circuits

26.16 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Timing considerations – all gates have a certain propagation delay time, tPD – this is the average of the two switching times

)t(tt PLHPHLPD += 21

Page 17: Digital Circuits

26.17 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Logic families

We have seen that different devices use different voltages ranges for their logic levels

They also differ in other characteristics In order to assure correct operation when gates are

interconnected they are normally produced in families We will look briefly at a range of logic families, then

concentrate on the most important ones, namely TTL and CMOS

Video 26B 26.3

Page 18: Digital Circuits

26.18 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Resistor-transistor logic (RTL) – an RTL NOR gate

Page 19: Digital Circuits

26.19 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Diode logic

Page 20: Digital Circuits

26.20 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Diode-transistor logic – A DTL NAND gate

Page 21: Digital Circuits

26.21 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Replacing the diodes of a DTL gate with transistors

Page 22: Digital Circuits

26.22 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Transistor-transistor logic (TTL) – a simple TTL NAND gate

Page 23: Digital Circuits

26.23 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Metal oxide semiconductor (MOS) logic – NMOS gates

Page 24: Digital Circuits

26.24 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– NMOS NAND and NOR gates

Page 25: Digital Circuits

26.25 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Complementary metal oxide semiconductor (CMOS) logic – a CMOS inverter

Page 26: Digital Circuits

26.26 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– two-input CMOS gates

Page 27: Digital Circuits

26.27 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

A comparison of logic families

1.5 – 200 1 – 4 1.5 – 33 TPD (ns)

Excellent Good Very good Noise immunity

1@1 MHz 4 – 55 1 – 22 Power per gate (mW)

>50 25 10 Fan-out

NAND-NOR OR/NOR NAND Basic gate

CMOS ECL TTL Parameter

Page 28: Digital Circuits

26.28 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

TTL

Standard TTL – part of a typical

TTL data sheet

Video 26C 26.4

Page 29: Digital Circuits

26.29 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

TTL

Page 30: Digital Circuits

26.30 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– input and output voltage levels for 74 family devices

– noise immunity in logic 1 (high) VNIH = VOH(min) - VIH(min)

= 2.4 – 2.0 = 0.4 V – noise immunity in logic 0 (low) VNIL = VIL(max) - VOL(max)

= 0.8 – 0.4 = 0.4 V

Minimum Typical Maximum VIL — — 0.8 VIH 2.0 — — VOL — 0.2 0.4 VOH 2.4 3.4 —

Page 31: Digital Circuits

26.31 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

A graphical representation of noise immunity

Page 32: Digital Circuits

26.32 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

TTL inputs – unused inputs, if left unconnected, will float to logical 1 – it is unadvisable to allow them to float since they are

then very susceptible to noise – unused inputs should be tied to ground (logic 0) or

through a resistor to the positive supply rail (logic 1) unused inputs to an AND or NAND gate should be tied high unused inputs to an OR or NOR gate should be tied low

Page 33: Digital Circuits

26.33 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Other TTL families

Low-power TTL (74L) – a 74L00 two-input NAND gate

Page 34: Digital Circuits

26.34 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

High-speed TTL (74H) – a 74H00 two-input NAND gate

Page 35: Digital Circuits

26.35 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Schottky TTL (74S) – Schottky diodes and transistors

Page 36: Digital Circuits

26.36 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– a 74S00 two-input NAND gate

Page 37: Digital Circuits

26.37 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Low-power Schottky TTL (74LS) – a 74LS00 two-input NAND gate

Page 38: Digital Circuits

26.38 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

A comparison of TTL families

Family Descriptor TPD (ns) Power per gate (mW)

Standard 74XX 9 10 Low-power 74LXX 33 1 High-speed 74HXX 6 22 Schottky 74SXX 3 19 Advanced Schottky 74ASXX 1.5 8.5 Low-power Schottky 74LSXX 9.5 2 Advanced low-power Schottky 74ALSXX 4 1 FAST 74FXX 2.7 4

Page 39: Digital Circuits

26.39 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

CMOS

CMOS – part of a typical

CMOS data sheet

Video 26D 26.5

Page 40: Digital Circuits

26.40 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– CMOS input and output voltage levels

– noise immunity in logic 1 (high) VNIH = VOH(min) - VIH(min)

= VDD – 0.7 × VDD = 0.3 × VDD – noise immunity in logic 0 (low) VNIL = VIL(max) - VOL(max)

= 0.3 × VDD - 0 = 0.3 × VDD

Page 41: Digital Circuits

26.41 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Power dissipation in digital systems

Power dissipation may be divided into two forms: – Static – Dynamic

In CMOS gates

– Static dissipation is almost

always negligible. Dynamic

dissipation is due to the

charging of capacitances.

Video 26G 26.7

Page 42: Digital Circuits

26.42 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Energy is dissipated when the capacitance is charged or discharged – When charging C, the energy dissipated in T1 is

E = ½CVDD2

– When discharging C, the energy dissipated in T2 is

E = ½CVDD2

– Therefore in a complete cycle the energy dissipated is CVDD2 and

PD = f CVDD2

Page 43: Digital Circuits

26.43 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Noise and EMC in digital systems

Digital noise sources – Electronic noise

– Interference

– Internal noise

– Power supply noise

– CMOS switching transients

26.8

Page 44: Digital Circuits

26.44 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

The effects of noise in digital systems

Steady logic voltages Slowly varying signals

Page 45: Digital Circuits

26.45 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Designing digital systems for EMC – backplane arrangements

Page 46: Digital Circuits

26.46 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– opto-isolation

Page 47: Digital Circuits

26.47 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

– Schmitt trigger inputs

Transfer characteristics

A simple Schmitt trigger circuit

Page 48: Digital Circuits

26.48 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Further Study

The Further Study section at the end of Chapter 26 is concerned with noise in digital systems.

It looks at a unit that takes inputs from two mechanical switches and provides outputs to control a heater and a motor.

Video 26H

Consider how the system could be designed to minimise the effects of noise on its operation, and then look at the treatment given in the video.

Further Study

Page 49: Digital Circuits

26.49 Neil Storey, Electronics: A Systems Approach, 5th Edition © Pearson Education Limited 2013

Key points

Physical gates are not ideal components Logic gates are manufactured in a range of logic families The ability of a gate to ignore noise is its ‘noise immunity’ Both MOSFETs and bipolar transistors are used in gates All logic gates exhibit a propagation delay The most widely used logic families are TTL and CMOS. Both TTL and CMOS gates are produced in a range of

versions, each optimised for a particular characteristic Interface circuitry may be needed to link devices of

different families Noise and EMC issues must be considered during design