C o u g h lin , R o b e rt F.
O p e ra tio n a l a m p lifie rs and lin e a r in te g ra te d c irc u its / R o b e rt F. C o u g h lin ,
F re d e ric k F. D risc o ll. — 6th ed.
p. cm .
In c lu d e s b ib lio g ra p h ic a l re fe re n c e s and index.
ISB N 0 -1 3 -0 1 4 9 9 1 -8
1. O p e ra tio n a l am p lifie rs. 2. L in e a r in te g ra te d c irc u its.
I. D risc o ll, F re d e ric k F., II. T itle.
T K 7 8 7 1.5 8 .0 6 C 6 8 2001
6 2 1 .3 8 1 5 — dc21 0 0 -0 4 0 6 3 3
C IP
T his book was set in Times Roman by York Graphic Services, Inc. It was printed and bound by R. R. Donnelley
& Sons Company. The cover was printed by Phoenix Color Corp.
Copyright © 2001, 1998, 1991, 1987, 1982, 1977 by Prentice-Hall, Inc., Upper Saddle River, New
Jersey 07458. All rights reserved. Printed in the United States of America. This publication is pro
tected by Copyright and permission should be obtained from the publisher prior to any prohibited re
production, storage in a retrieval system, or transmission in any form or by any means, electronic,
mechanical, photocopying, recording, or likewise. For information regarding permission(s), write to:
Rights and Permissions Department.
Prentice
IIall
To O ur Partners in Ballroom Dane
and
O ur L ifetim e Partners,
B arbara and Jean
As
We Grow O lder
We Grow C loser
Contents
PREFACE XXV
INTRODUCTION TO OP AMPS
Learning Objectives 1
1-0 Introduction 2
Problems 12
Learning Objectives 13
2-0 Introduction 14
2-1 Op Amp Terminals 14
2-1.1 Power Supply Terminals, 15
2-1.2 Output Terminal, 16
2-1.3 Input Terminals, 16
2-1.4 Input Bias Currents and Offset Voltage, 17
Problems 41
Learning Objectives 44
3-0 Introduction 45
3-1 The Inverting Amplifier 45
3-1.1 Introduction, 45
3-1.2 Positive Voltage Applied to the Inverting Input, 45
3-1.3 Load and Output Currents, 47
3-1.4 Negative Voltage Applied to the Inverting Input, 48
3-1.5 Voltage Applied to the Inverting Input, 49
3-1.6 Design Procedure, 51
3-1.7 Analysis Procedure, 51
Problems 80
Learning Objectives 84
4-0 Introduction 85
4-1 Effect of Noise on Comparator Circuits
Contents
Problems 215
Problems 249
Problems 292
Contents
ACTIVE FILTERS
Learning Objectives 294
11-0 Introduction 295
11-1 Basic Low-Pass Filter 296
11-1.1 Introduction, 296
11-1.2 Designing the Filter, 297
11-1.3 Filter Response, 299
Problems 328
Problem s 361
INTEGRATED-CIRCUIT TIMERS
Problems 399
DIGITAL-TO-ANALOG CONVERTERS
Learning Objectives 400
14-0 Introduction 401
14-1 DAC Characteristics 401
Contents ix
Problems 115
SIGNAL GENERATORS
Learning Objectives 151
6-0 Introduction 152
6-1 Free-Running Multivibrator 152
6-1.1 Multivibrator Action, 152
6-1.2 Frequency o f Oscillation, 154
Problems 185
Contents
Problems 428
ANALOG-TOtDIGITAL co n verters
Problems 451
Contents
POWER SUPPLIES
Learning Objectives 453
16-0 Introduction 454
16-1 Introduction to the Unregulated Power Supply 454
16-L l Power Transformer, 454
16-L2 Rectifier Diodes, 456
16-1.3 Positive versus Negative Supplies, 456
I6-J.4 Filter Capacitor, 457
16-1.5 Load, 457
BIBLIOGRAPHY 518
INDEX 521
Preface
1 A detailed procedure on how to design circuits that interface between the physical world and m icrocon
trollers is presented in Data Acquisition and Process Control with the M68HCH Microcontroller, 2nd Edition.
by F. Driscoll, R. Coughlin, and R. Villanucci, published by Prentice Hall (2000).
XXV
XXVi Preface
this sixth edition.2 It includes both detailed hardw are and sim ulation exercises. Som e ex
ercises are step-by-step; others are design projects. The exercises follow the text material.
C hapters 1 through 6 provide the reader with a logical progression from op am p
fundam entals to a variety of practical applications w ithout having to w orry about op am p
lim itations. C hapter 7 show s how op am ps com bined w ith diodes can be used to design
ideal rectifier circuits as w ell as clam ping and clipping circuits. PSpice m odels and sim
ulations are included in these chapters.
C hapter 8 shows applications that require m easuring a physical variable such as
tem perature, force, pressure, or w eight and then having the signal conditioned by an in
stru m e n ta tio n am p lifier b efore b ein g in p u t into a m ic ro c o n tro lle r’s A /D converter.
Instrum entation am plifiers are required w hen a designer has to m easure a differential sig
nal, especially in the presence o f a larger noise signal.
As previously m entioned, in order not to obscure the inherent sim plicity and o ver
w helm ing advantages o f using op am ps, their lim itations have been left for C hapters 9
and 10. Dc lim itations are studied in C hapter 9 and ac lim itations are covered in C hapter
10. A n expanded discussion on com m on-m ode rejection ratio has been included in this
edition. M any lim itations have been m ade negligible by the latest generations of op am ps,
as pointed out in these chapters.
A ctive filters, low -pass, h ig h -p ass, b an d -p a ss, and b an d -reje ct, are covered in
C hapter 11. B utterw orth-type filters w ere selected because they are easy to design and
produce a m axim ally flat response in the pass band. C hapter 1 I show s the reader how to
design a variety of filters easily and quickly.
C hapter 12 introduces a linear integrated circuit known as the m ultiplier. T he d e
vice m akes analysis and design o f AM com m unication circuits sim pler than using discrete
com ponents. M odulators, dem odulators, frequency shifters, a universal A M radio receiver,
and analog divider circuits all use a m ultiplier IC as the sy stem ’s basic building block.
T his chapter has been retained because instructors have w ritten to say that the principles
of single-side band suppressed carrier and standard am plitude-m odulation transm ission
and detection are clearly explained and quite useful for their courses.
T he inexpensive 555 IC tim er is covered in C hapter 13. T his chapter show s the ba
sic operation of the device as well as many practical applications. The chapter also in
cludes a tim er/counter unit.
In previous editions, analog-to-digital and digital-to-analog converters have been
covered in a single chapter. T his edition separates these topics into tw o chapters so that
m ore device specifications can be included as well as practical applications. C hapter 14
deals only w ith analog-to-digital converters, w hile the new C hapter 15 covers digital-to-
analog converters. A serial A D C connected to a M otorola m icroprocessor is show n (with
assem bly language code) in C hapter 14.
C hapter 16 shows how to design a regulated linear pow er supply. T his chapter be
gins w ith the fundam entals of unregulated supplies and proceeds to regulated supplies. It
show s how IC regulators are used for building low -cost 5 V and ± 15 V bench supplies.
2
Laboratory M anual to Accom pany Operational Amplifiers and Linear Integrated Circuits, 6th Edition, by
R. Coughlin, F. Driscoll, and R. Villanucci published by Prentice Hall (2001).
Preface X X V ii
T his edition has m ore than enough m aterial for a single-sem ester course. A fter the
first three chapters, instructors often take chapters out o f sequence depending on the class
interest, need to com plem ent another course (such as a design course), or availability o f
lab equipm ent or class time. Therefore, C hapters 4 through 16 have been w ritten as stand
alone chapters for this very reason. The circuits have been tested in the laboratory by the
authors and the m aterial is presented in a form useful to students or as a reference to p rac
ticing engineers and technologists. Each chapter includes learning objectives and p ro b
lem s, and m ost chapters have PSpice sim ulations. T he reader should refer to the accom
panying laboratory m anual for lab exercises and additional sim ulation exercises.
We acknow ledge with gratitude the advice of Professor R obert V illanucci, w ho is also a
co-author o f the laboratory m anual, and two highly respected engineers, Dan Sheingold
of A nalog Devices and Bob Pease o f N ational Sem iconductor. A special thanks goes to
Libby D riscoll for assisting in the preparation of the m anuscript. We thank the follow ing
review ers o f the m anuscript: W arren H ioki, C om m unity C ollege of Southern N evada;
G regory M . R asm u ssen , St. Paul T echnical S chool; M ichael W. R ud isill, N o rth ern
M ichigan University; Rod Schein, Edm onds C om m unity College, ATTC; and A ndrew C.
W oodson.
Finally, we thank our students for their insistence on relevant instruction that is im
m ediately useful and our readers for their enthusiastic reception of previous editions and
their perceptive suggestions for this edition.
CHAPTER 1
Introduction to Op Amps
U pon com pleting this introductory chapter on op am ps, you will be able to:
1
Chapter 1
1-0 INTRODUCTION
O ne o f the m ost versatile and w idely used electronic devices in linear applications is the
operational am plifier, m ost often referred to as the op amp. Op am ps are popular because
they are low in cost, easy to use, and fun to w ork with. They allow you to build useful
circuits w ithout needing to know about their com plex internal circuitry. O p am ps are usu
ally very forgiving of w iring errors because of their self-protecting internal circuitry.
T he w ord operational in operational am plifiers originally stood for m athem atical
operations. Early op am ps w ere used in circuits that could add, subtract, m ultiply, and
even solve differential equations. T hese operations have given way to digital com puters
because o f their speed, accuracy, and versatility. However, digital com puters w ere not the
dem ise of the op amp.
You often hear an expression sim ilar to ‘‘It is a digital w orld.” This usually is follow ed by
a statem ent such as “Is there a reason for studying analog circuitry, including op am ps
and other linear integrated circuits, when so many applications use a co m p u ter?” It is true
that m ore and m ore functions are being done and problem s are being solved by m icro
com puters, m icrocontrollers, or digital signal processing chips and system s today than
ever before. This trend o f going digital will continue at an even faster pace because so ft
w are packages are better and easier to use, com puters are faster and m ore accurate, and
data can be stored and transferred over networks. However, as m ore digital system s are
created for data acquisition and process control, m ore interface circuits using op am ps and
other linear integrated circuits are also required. T hese integrated system s now require d e
signers to understand the principles of both the analog and the digital w orld in order to
obtain the best perform ance o f a system at a reasonable cost.
In the past, op am ps w ere studied as separate entities and entire analog system s
w ere developed using only analog circuitry. In som e specialized real-tim e applications,
this is still true but m ost system s that find their way to the m arketplace are a co m b in a
tion o f analog and digital. A typical data acquisition system block diagram is show n in
c Sensor
Converts
Signal
conditioning
circuit
J
A/D
CPU
and
memory
Output
port
Output
interface
Provides isolation
Load
(ac or dc)
Typical loads
a physical
between a are motors,
param eter to Input interface M icrocontroller
m icrocontroller heaters, pumps,
an electrical using op amps
and high-voltage air conditioning
quantity and other TCs
loads. SCRs triacs, units, etc.
and power transistors
are typical output
interface devices.
O p am ps designed w ith bipolar inputs and com plem entary M O S outputs, appropri
ately nam ed B iM O S, are faster and have a higher frequency response than the general-
purpose op am ps. M anufacturers have also designed dual (2) and quad (4) op am p p ack
ages. H ence, the package that once housed a single op am p can now contain tw o or four
op am ps. In the quad package, all four op am ps share the sam e pow er supply and ground
You need only to look at linear data books to appreciate their variety. O nly a few
4 Chapter 1
G eneral-purpose op am ps will be around for a long tim e. H ow ever, m ore com plex in te
grated circuits on a single chip are being developed. T hese devices com bine analog with
digital circuitry. In fact, w ith im proved very large scale integrated (V L SI) technology, en
tire system s are being fabricated on a single large chip.
A single-chip com puter is today's reality. A single-chip TV set w ill happen eventu
ally. B efore learning how to use op am ps, it is w ise to learn w hat they look like and how
to buy them . As previously stated, the op am p 's greatest use w ill be as a part in a system
that interfaces the real w orld o f analog voltage w ith the digital w orld o f the com puter, as
w ill be show n throughout this text. If you w ant to understand the system , you m ust un
derstand the w orkings o f one o f its m ost im portant com ponents.
T he 741 op am p has been “around” for a num ber o f years. However, it still is a great d e
vice to begin with because it is inexpensive, rugged, and easy to obtain. T he op-am p sy m
bol in Fig. 1-2 is a triangle that points in the direction o f signal flow. T his com ponent has
Pin or terminal
Positive supply
number
terminal
Inverting input 2
terminal a
-o Output terminal
N oninverting input
terminal Part identification num ber (PIN)
Negative supply
terminal
FIGURE 1-2 Circuit symbol for the general-purpose op amp. Pin num
bering is for an 8-pin mini-DIP package.
a part identification num ber (PIN ) placed w ithin the triangular sym bol. T he PIN refers to
a p articular op am p w ith specific characteristics. T he 741C op am p illustrated here is a
general-purpose op am p that is used throughout the book for illustrative purposes.
The op amp may also be coded on a circuit schem atic with a reference designator such
as U7, IC14, and so on. Its PIN is then placed beside the reference designator in the parts
list of the circuit schematic. All op amps have at least five terminals: (1) The positive pow er
supply term inal Vc c or 4- V at pin 7, (2) the negative power supply term inal VEE or —V at pin
4, (3) output pin 6 , (4) the inverting ( —) input terminal at pin 2, and (5) the noninverting ( + )
input term inal at pin 3. Som e general-purpose op am ps have additional specialized terminals.
(The pins above refer to the 8-pin m ini-D IP case discussed in the following section.)
Positive
power supply
FIG U RE l-3(b)
T he input stage o f the op am p in Fig. l-3 (a ) is called a differential am plifier. It has very
high input im pedance as well as a large voltage gain. W hen input signals V(+) and V(_)
are applied, the difference voltage, Ech is am plified by this stage and appears as the o u t
put voltage Vj. (Exam ples of how Ed is calculated are given in C hapter 2.)
1-3.1 Packaging
The op am p is fabricated on a tiny silicon chip and packaged in a suitable case. Fine-gage
w ires connect the chip to external leads extending from a m etal, plastic, or ceram ic pack
age. C om m on op am p packages are show n in Figs. I-4(a) to (d).
The metal can package show n in Fig. I-4(a) is available w ith 3, 5, 8, 10, and 12
leads. T he silicon chip is bonded to the bottom metaJ sealing plane to expedite the d issi
pation of heat. In Fig. l-4 (a) the tab identifies pin 8 , and the pins are num bered co u n ter
clockw ise w hen you view the m etal can from the top.
T he popular 14-pin and 8-pin dual-in-line packages (DIPs) are show n in Figs. l-4 (b )
and (c). Either plastic or ceram ic cases are available. As view ed from the top, a notch or
dot identifies pin 1 and term inals are num bered counterclockw ise.
C om plex integrated circuits involving m any op am ps and other ICs can now be fab
ricated on a single large chip or by interconnecting many chips and placing them in a sin
gle package. For ease o f m anufacture and assem bly, pads replace the leads. T he resulting
FIG U RE 1-4 The three most popular op amp packages are the metal can in
(a) and the 14- and 8-pin dual-in-line packages in (b) and (c), respectively. For
systems requiring high density, surface-mounted technology (SMT) packages
are used as shown in (d).
Introduction to Op Am ps 9
the num bering schem es are identical for an 8-pin can and an 8-pin DIP. A notch or dot
identifies pin 1 on the D IPs, and a tab identifies pin 8 on the TO -5 (or the sim ilar TO -99)
package. From a top view, the pin count proceeds counterclockw ise.
The final tasks in this chapter are to learn how to buy a specific type o f op am p and
to present advice on basic breadboarding techniques.
Each type of op am p has a le tte r-n u m b e r identification code. T his code answ ers four
questions:
N ot all m anufacturers use precisely the sam e code, but most use an identification code
that consists of four parts w ritten in the follow ing order: ( 1) letter prefix, (2) circuit d es
ignator, (3) letter suffix, and (4) m ilitary specification code.
Letter prefix. T he letter prefix code usually consists o f tw o or three letters that
identify the m anufacturer. T he follow ing exam ples list som e o f the codes used by a m an
ufacturer. You may w ish to visit their Web site to obtain data sheets and application notes
about a particular product. T heir m ain Web site address is given.
324C
Part n u m b e r-------^ ^ ------- “C ” identifies com m ercial
tem perature range
10 Chapter 1
A 74J general-purpose op am p w ould be com pletely identified in the follow ing way
i
LM
i
7 4 IC
i
N (8-pin)
i
National
i
General-purpose
i
Plastic package
op amp, com m ercial
tem perature range
Som e op am ps are so w idely used that they are m ade by m ore than one m anufacturer.
This is called second sourcing. The com pany (Fairchild) w ho designed and m ade the o rig
inal 741 contracted for licenses w ith other m anufacturers to m ake 741s in exchange for a
license to m ake op am ps or other devices.
As time went on, the original 741 design was modified and improved by all m anufac
turers. The present 741 has evolved over several generations. Thus, if you order a 741 8-pin
D IP from a supplier, it may have been built by Texas Instruments (TL741), Analog Devices
(AD741), National Sem iconductor (LM 741), or others. Therefore, always check the m anu
facturer’s data sheets that correspond to the device you have. You will then have inform ation
on its exact perform ance and a key to the identification codes on the device.
Introduction to Op Amps 11
Power supplies for general-purpose op am ps are bipolar As shown in Fig. l - 6(a), the typical
com mercially available power supply outputs ± 15 V. The com m on point between the + 1 5 V
supply and —15 V is called the pow er supply com m on. It is shown with a com m on symbol
for two reasons. First, all voltage measurem ents are made with respect to this point. Second,
the power supply com m on is usually wired to the third wire of the line cord that extends
ground (usually from a water pipe in the basement) to the chassis containing the supply.
T he schem atic draw ing of a portable supply is show n in Fig. I -6 (b). T his is offered
to reinforce the idea that a bipolar supply contains tw o separate pow er supplies connected
in series aiding.
It should be possible to breadboard and test the perform ance o f all circuits presented in
this text. A few circuits require printed circuit board construction. B efore w e proceed to
learn how to use an op am p, it is prudent to give som e tim e-tested advice on b rea d
boarding a circuit:
+ 9- + 9- +V
- 6- - 1/ - o- -► -V
(a) Schem atic of a (b) Power supply
com mercial bipolar for portable
power supply. operation.
6 . C onnect signal voltages to the circuit only after the op am p is pow ered.
7. Take all m easurem ents with respect to com mon. For example, if a resistor is connected
between two term inals of an IC, do not connect either a m eter or an oscilloscope across
the resistor; instead, m easure the voltage on one side o f the resistor w ith respect
to com m on, then the voltage on the other side, and calculate the voltage across the
resistor.
8. Avoid using am m eters, if possible. M easure the voltage as in step 7 and calculate
current.
9. D isconnect the input signal before the dc pow er is rem oved. O therw ise, the IC may
be destroyed.
10. T hese ICs will stand m uch abuse. B ut never:
a. Reverse the polarity of the pow er supplies,
b. Drive the op am p ’s input pins above or below the potentials at the + V and —V
term inal, or
c. Leave an input signal connected w ith no pow er on the IC.
11 - If unwanted oscillations appear at the output and the circuit connections seem correct:
a. C onnect a 0.1 -julF capacitor betw een the op a m p ’s + V pin and ground and an
other 0 . 1-fxF capacitor betw een the op a m p ’s —V pin and ground.
b. Shorten your leads, and
c. C heck the test instrum ent, signal generator, load, and pow er supply ground leads.
They should com e together at one point.
I 2. T he sam e principles apply to all other linear ICs.
P ROBL E MS _____________________________________________________________________
1-1. In the term operational amplifier, what does the word operational stand for?
1-2. Is the LM324 op amp a single op amp housed in one package, a dual op amp in one pack
age, or a quad op amp in one package?
1-3. With respect to an op amp, what does the abbreviation PIN stand for?
1-4. Does the letter prefix of a PIN identify the manufacturer or the package style?
1-5. Does the letter suffix of a PIN identify the manufacturer or the package style?
1-6. Which manufacturer makes the AD741CN?
1-7. Does the tab on a metal can package identify pin 1 or pin 8?
1-8. Which pin is identified by the dot on an 8-pin mini-DIP?
1-9. (a) How do you identify power supply common on a circuit schematic?
(b) Why do you need to do so?
1-10. When breadboarding an op amp circuit, should you use a ground bus or star grounding?
1-11. Search a manufacturer’s Web site and download a 741 data sheet.
(a) What is the manufacturer’s identification code?
(b) What package styles are available?
(c) List three applications that the 741 op amp can be used in.
CHAPTER 2
First Experiences
with an Op Amp
Upon com pleting this chapter on first experiences w ith an op am p, you will be able to:
• Briefly describe the task perform ed by the pow er supply and input and output term inals
o f an op amp.
• Show how the single-ended output voltage o f an op am p depends on its open-loop gain
and differential input voltage.
■ C alculate the differentia] input voltage Ed, and the resulting output voltage VQ.
• D raw the circuit schem atic for an inverting or noninverting zero-crossing detector.
• Draw the output voltage w aveshape o f a zero-crossing detector if you are given the in
put voltage waveshape.
• Draw the o u tp u t-in p u t voltage characteristics of a zero-crossing detector.
• Sketch the schem atic o f a noninverting or inverting voltage-level detector.
13
14 Chapter 2
2-0 INTRODUCTION
T he nam e operational am plifier was originally given to early high-gain vacuum -tube am
plifiers designed to perform m athem atical operations o f addition, subtraction, m ultiplica
tion, division, differentiation, and integration. They could also be interconnected to solve
differential equations.
T he m odern successor of those am plifiers is the linear integrated-circuit op amp. It
inherits the nam e, w orks at low er voltages, and is available in a variety o f specialized
form s. T oday's op am p is so low in cost that m illions are now used annually. T heir low
cost, versatility, and dependability have expanded their use far beyond applications envi
sioned by early designers. Som e present-day uses for op am ps are in the fields o f signal
conditioning, process control, com m unications, com puters, pow er and signal sources, d is
plays, and testing or m easuring system s. T he op am p is still basically a very good high-
gain dc am plifier.
O n e ’s first experience w ith a linear IC op am p should concentrate on its m ost im
portant and fundam ental properties. A ccordingly, our objectives in this chapter will be to
identify each term inal of the op am p and to learn its purpose, som e o f its electrical lim i
tations, and how to apply it usefully.
2-1 OP AM P TERMINALS
R em em ber from Fig. 1-2 that the circuit sym bol for an op am p is an arrow head that sy m
bolizes high gain and points from input to output in the direction o f signal flow. O p am ps
have five basic term inals: two for supply power, two for input signals, and one for o u t
put. Internally they are com plex, as was show n by the schem atic diagram in Fig. l-3(a).
It is not necessary to know much about the internal operation of the op am p in order
to use it. We will refer to certain internal circuitry, w hen appropriate. T he people who
Ideal
op amp
:o n
design and build op am ps have done such an outstanding jo b that external com ponents
connected to the op am p determ ine w hat the overall system will do.
The ideal op amp of Fig. 2-1 has infinite gain and infinite frequency response. The in
put terminals draw no signal or bias currents and exhibit infinite input resistance. O utput im
pedance is zero ohms, and the powrer supply voltages are without limit. We now exam ine the
function of each op amp terminal to learn som ething about the lim itations of a real op amp.
(+) terminal
( - ) terminal
+V
T he pow er supply in Fig. 2-2 is called a bipolar or split supply and has typical val
ues o f ± 1 5 V. Som e op am ps are now designed to operate from a single-polarity supply
such as + 5 or + 1 5 V and ground. N ote that the com m on is not w ired to the op am p in
Fig. 2-2. C urrents returning to the supply from the op am p m ust return through external
circuit elem ents such as the load resistor RL. T he m axim um supply voltage that can be
applied betw een + V and — V is typically 36 V or ± 1 8 V.
In Fig. 2-3 there are tw o input term inals, labeled — and + . They are called differential in
pu t term inals because output voltage Va depends on the difference in voltage betw een
them , Ech and the gain o f the am plifier, A OL. As show n in Fig. 2-3(a), the output term inal
is positive with respect to ground w hen the ( + ) input is positive w ith respect to, or above,
the ( —) input. W hen Ed is reversed in Fig. 2-3(b) to m ake the ( + ) input negative w ith re
spect to, or below, the ( —) input, V0 becom es negative w ith respect to ground.
We conclude from Fig. 2-3 that the polarity o f the output term inal is the sam e as
the polarity of ( + ) input term inal w ith respect to the ( —) input term inal. M oreover, the
polarity of the output term inal is opposite or inverted from the polarity o f the ( —) input
term inal. For these reasons, the ( —) input is designated the inverting input and the ( + )
input the noninverting input (see A ppendix 1).
It is im portant to em phasize that the polarity o f VQ depends only on the difference in
voltage between inverting and noninverting inputs. This difference voltage can be found by
First Experiences with an Op Amp 17
V0 = A OLEd = +V,
Both input voltages are m easured with respect to ground . T he sign o f E d tells us (I) the
polarity o f the ( + ) input w ith respect to the ( - ) input and (2 ) the polarity o f the output
term inal w ith respect to ground. This equation holds if the inverting input is grounded, if
the noninverting input is grounded, and even if both inputs are above or below ground p o
tential. Thus, if the polarity o f Ed m atches the op a m p ’s sym bol, the output voltage goes
to + V sal. W hen the polarity of Ed is opposite the op a m p ’s sym bol, the output voltage
goes to - Vsat.
Review. We have chosen the w ords in Fig. 2-3 very carefully. T hey sim plify
analysis o f open-loop operation (no conn ectio n from o u tp u t to eith er input). A n o th er
m em ory aid is this: If the ( + ) input is above the ( —) input, the output is above ground
and at + Vsal. If the ( + ) input is below the ( —) input, the output is below ground at —Vsal.
T he input term inals o f real op am ps draw tiny bias currents and signal currents to acti
vate the internal transistors. T he input term inals also have a sm all im balance called input
18 Chapter 2
offset voltage, Vio. It is m odeled as a voltage source Vio in series w ith the ( + ) input. In
C hapter 9, the effects of Vio are explained in detail.
We must learn m uch m ore about op am p circuit operation, particularly involving
negative feedback, before we can m easure bias currents and offset voltage. For this rea
son, in these introductory chapters we will assum e that both are negligible.
2-2.1 Definition
R efer to Fig. 2-3. O utput voltage V0 is determ ined by Ed and the open-loop voltage g a in ,
A o u A o l is called open-loop voltage gain because possible feedback connections from
output term inal to input term inals are left open. A ccordingly, VQ is expressed by the rela
tionship
T he value of A OL is extrem ely large, often 200,000 or more. R ecall from Section 2-1.2
that V0 can never exceed the positive or negative saturation voltages + Vsat and - Vsal. For
a ± 15-V supply, the saturation voltages are approxim ately ± 1 3 V. T hus, for the op am p
to act as an am plifier, Ed m ust be lim ited to a m axim um voltage o f ± 6 5 jxV. T his co n
clusion is reached by rearranging Eq. (2-2).
+ V^sa« 13 V
-’d m ax = 65 |ulV
Aol 200,000
-V sat -1 3 V
m ax = -6 5 jjiV
- 'd
Aql 200,000
In the laboratory or shop it is difficult to m easure 65 (ulV, because induced noise,
60-H z hum , and leakage currents on the typical test setup can easily generate a m illivolt
(1000 jjiV). Furtherm ore, it is difficult and inconvenient to m easure very high gains. The
op am p also has tiny internal unbalances that act as a small voltage that m ay exceed Ed.
As m entioned in Section 2-1.4, this sm all voltage is called an offset voltage and is dis
cussed in C hapter 9.
2-2.3 Conclusions
T here are three conclusions to be draw n from these brief com m ents. First, V0 in the cir
cuit o f Fig. 2-3 either will be at one of the lim its + Vsa, or —Vsat or will be oscillating b e
tw een these limits. D o n ’t be disturbed, because this behavior is w hat a high-gain am pli
fier usually does. Second, to m aintain VQ betw een these lim its we m ust go to a feedback
First Experiences with an Op Am p 19
type of circuit that forces V0 to depend on stable, precision elem ents such as resistors and
capacitors. Feedback circuits are introduced in C hapter 3.
W ithout learning any m ore about the op am p, it is possible to understand basic co m
parator applications. In a com parator application, the op am p perform s not as an am p li
fier but as a device that tells w hen an unknow n voltage is below, above, or ju s t equal to
a know n reference voltage. B efore introducing the op am p as a com parator in the next
section, E xam ple 2 - 1 is given to illustrate ideas presented thus far.
Example 2-1
In Fig. 2-3, + V = 15 V, - V = - 1 5 V, + Vsal - + 13 V, - V sat = - 1 3 V, and gain A OL =
200,000. A ssum ing ideal conditions, find the m agnitude and polarity o f for each o f the
follow ing input voltages. These input voltages are given w ith respect to ground.
Voltage at Voltage at
( - ) input ( + ) input
Solution T he polarity o f Va is the sam e as the polarity of the ( + ) input w ith respect to
the ( - ) input. T he ( + ) input is m ore negative than the ( - ) input in (a), (d), and (e). This
is show n by Eq. (2-1), and therefore VQ will go negative. From Eq. (2-2), the m agnitude of
Vo ^ A o l tim es the difference, Ed, between voltages at the ( + ) and ( —) inputs, but if A OL
X Ed exceeds + V or —V} then Va m ust stop at + Vsal or —Vsat- C alculations are sum m arized
as follows:
Polarity of
( + ) input with Theoretical
respect to Vo
[using Eq. (2-1)] ( - ) input [from Eq. (2-2)] Actual V„
FIG U RE 2-4 Zero-crossing detectors, noninverting in (a) and inverting in (b). If the sig
nal Ej is applied to the ( + ) input, the circuit action is noninverting. If the signal £, is ap
plied to the ( - ) input, the circuit action is inverting.
ICs are available to set p recise voltage references. T hese referen ce chips w ill be in tro
duced in the next section. In this section a resistive divider netw ork is used to set Vref.
F igure 2-7 show s how to m ake an adjustable reference voltage. Two iO -kH resistors and
22 Chapter 2
+v +K, +vQ
a 10-kfi potentiom eter are connected in series to m ake a 1-mA voltage divider. Each
kilohm o f resistance corresponds to a voltage drop o f 1 V. Vref can be set to any value
betw een - 5 and + 5 V. R em ove the — V connection to the bottom 10-kf2 resistor and
substitute a ground. You now have a 0.5-m A divider, and Vref can be adjusted from 5 to
10 V.
Sonalert + 15 V
alarm or
+ 15 V lamp
+V
0 tn m n m V
A
No. 1893
SCR
-6
5 kn
C106B
0 to +10 V
o - io k n
}
Reset
} Ej I
-V
switch
v
M icrophone
1. O pen the reset sw itch to turn off both SCR and alarm.
2. In a quiet environm ent, adjust the sensitivity control until Va ju st sw ings to ~ V SM.
3. C lose the reset sw itch. The alarm should rem ain off.
A ny noise signal w ill now generate an ac voltage and be picked up by the m icro
phone as an input. T he first positive sw ing o f E t above Vrel drives Va to + Vsat. T he diode
now conducts a current pulse of about 1 mA into the gate, G, o f the silicon-controlled
rectifier (SCR). Norm ally, the S C R ’s anode, A , and cathode, K, term inals act like an open
sw itch. How ever, the gate current pulse m akes the SCR turn on, and now the anode and
cathode term inals act like a closed sw itch. The audible or visual alarm is now activated.
Furtherm ore, the alarm stays on because once an SCR has been turned on, it stays on u n
til its an o d e -cath o d e circuit is opened.
T he circuit of Fig. 2-8 can be m odified to photograph high-speed events such as a
bullet penetrating a glass bulb. Som e cam eras have m echanical sw itch contacts that close
to activate a stroboscopic flash. To build this sound-activated flash circuit, rem ove the
alarm and connect anode and cathode term inals to the strobe input in place o f the cam
era sw itch. Turn off the room lights. O pen the cam era shutter and fire the rifle at the glass
bulb. T he rifle ’s sound activates the sw itch. T he strobe does the w ork o f apparently sto p
ping the bullet in midair. C lose the shutter. T he position o f the bullet in relation to the
bulb in the picture can be adjusted experim entally by m oving the m icrophone closer to or
farther aw ay from the rifle.
A light-colum n voltm eter displays a colum n o f light w hose height is proportional to volt
age. M anufacturers o f audio and m edical eq u ip m en t m ay replace analog m eter panels
with light-colum n voltm eters because they are easier to read at a distance.
First Exp eriences with an Op Am p 25
A light-colum n voltm eter is constructed in the circuit o f Fig. 2-9. R cal is adjusted
so that 1 m A flow s through the equal resistor divider netw ork to R ]0. Ten separate ref
erence voltages are established in 1-V steps from 1 V to 10 V.
W hen Ei = 0 V or is less than 1 V, the outputs o f all op am ps are at - Vsat. T he sil
icon diodes protect the light-em itting diodes against excessive reverse bias voltage. W hen
+ 15 V = +V
A
Ej is increased to a value betw een I and 2 V, only the output o f op am p 1 goes positive
to light L E D I. Note that the op am p ’s output current is autom atically lim ited by the op
am p to its short-circuit value approxim ately 20 to 25 mA. T he 220-H output resistors d i
vert heat away from the op amp.
As Ei is increased, the L ED s light in num erical order. This circuit can also be built
using tw o-an d -o n e-h alf L M 324 quad op am ps; som e m anufacturers have designed IC
packages for this particular application, such as N ational S em ico n d u cto r’s LM 3914.
Smoke particles
• Photoconductor
FIGURE 2-10 With no smoke or dust present the 10-kH sensitivity control
is adjusted until the alarm stops. Light reflected off any smoke or dust particles
causes the alarm to sound.
Any particles entering the cham ber cause light to reflect off the particles and strike
the photoconductor. This, in turn, causes the photoconductor’s resistance to decrease and
the voltage across R i to increase. As Ei increases above Vref, V0 sw itches from —Vsat to
+ y sat, causing the alarm to sound. The alarm circuit o f Fig. 2-10 does not include an SCR.
T herefore, w hen the particles leave the cham ber, the photoconductor’s resistance increases
and the alarm turns off. If you w ant the alarm to stay on, use the SCR alarm circuit show n
in Fig. 2-8. The lam p and photoresistor m ust be m ounted in a flat black, lightproof box
that adm its smoke. A m bient (room ) light prevents proper operation. T he resistive netw ork
First Experiences with an Op Am p 27
at the input of the op am p form s a W heatstone bridge. This circuit can be used to m onitor
the level of dust particles in a clean room environm ent.
2-6.1 Introduction
V oltage reference ICs are used to provide a precise voltage for circuit and system de
signers, especially w hen setting the reference voltage for com parator circuits as well as
A/D or D/A converters. Any fluctuation on the reference pin(s) o f converter devices pro
duces an inaccuracy in the conversion. Fluctuations on the reference input to a com para
tor can result in data being lost or erroneous data being sent to a com puter system . In
Figs. 2-7 and 2-8, we needed a reference voltage, Vref, and used a resistor divider netw ork
connected between the supply voltages or the positive supply and ground. A lthough this
circuit may be adequate for som e quick-testing or low -cost designs, a better solution is to
use a precision voltage reference chip. M any o f these chips are inexpensive (less than a
dollar), set a constant output voltage independent o f tem perature, and can be operated
from a w ide range of input pow er supply voltages. Variations in pow er supply voltages
do not affect their output reference voltage. Som e o f these chips use the bandgap diode
principle to produce a constant voltage o f 1.2 V. This tem perature-independent voltage is
followed by an am plifier and buffer (am plifiers and buffers are topics covered in C hapter
3) to provide standard output voltages such as 2.5 V, 5 V, or 10 V. O ther reference chips
use a Z ener diode as the reference follow ed by a buffer and am plifier to provide output
voltages such as + 5 V and - 1 0 V, as well as ± 5 V and ± 1 0 V tracking outputs. Som e
of the m ost com m only used IC voltage reference chips are the REF-01 (4- 10 V), REF-02
(5 V), and REF-03 (2.5 V). W e’ll use the REF-02 IC as an introduction to precision volt
age reference devices.
2-6.2 REF-02
The R EF-02 IC outputs a stable + 5 .0 V, w hich can be adjusted by ± 6 % ( ± 3 0 0 mV) u s
ing one external potentiom eter as show n in Fig. 2 - 11(a). The 1 0 -k fl potentiom eter al
lows the actual output voltage to be adjusted from 4.7 to 5.3 V. T hus for an 8-bit A/D
converter the reference voltage can be set to 5.12 V, creating a resolution o f 20 m V /bit.
(R esolution of A/D converters is discussed in detail in C hapter 14.) T he R EF-02 can o p
erate from an input supply voltage o f from 7 to 40 V, m aking it an ideal voltage refer
ence device for a w ide range o f applications. Two com m on package styles are show n in
Figs. 2 - 1 1(b) and (c).
Figure 2 -1 1(d) shows how the REF-02 can be connected to an op am p com parator to set
the reference voltage at 5.0 V. In this circuit, the adjustm ent potentiom eter is not used and
the REF-02 is used in its basic configuration. In this application, Vref for the com parator
First Experiences with an Op Am p 29
If your application requires a stable but variable reference voltage o f 0 to 5.0 V you
still may use the R E F-02 w ith a potentiom eter connected betw een the R E F -0 2 ’s output
term inal and com m on, as show n in Fig. 2 -1 1(e). {Note: T he 5-kH potentiom eter in this
figure allow s us to vary for the com parator.) T his po ten tio m eter is not being used to
adjust the output voltage o f the R EF-02 but rather the input reference to the com parator
so that Vref can be varied from 0 to 5.0 V. You still may use the circuit o f Fig. 2 -1 1(a) if
you need to set the R E F -0 2 ’s m axim um output voltage to 5.0 V ± 3 0 0 mV. T he tem p er
ature pin (pin 3) is used if the R E F-02 is being used as a tem perature sensor. For an ex
am ple, refer to A nalog D evices’ Web Site, specifically the R E F -0 2 ’s data sheet, to see this
device as a sensor in a tem perature controller application.
2-7.1 Introduction
Arm ed with only the know ledge gained thus far, we will m ake a sine-to-square w ave co n
verter, an analog-to-digital converter, and a pulse-w idth m odulator out o f the versatile op
amp. T hese open-loop com parator (or voltage-level detector) applications are offered to
show how easy it is to use op am ps.
The zero-crossing detector o f Fig. 2-4 will convert the output o f a sine-w ave from a func
tion generator into a variable-frequency square wave. If E t is a sine wave, triangular wave,
or a wave o f any other shape that is sym m etrical around zero, the zero-crossing d etecto r’s
output will be square. T he frequency of £ , should be below 100 Hz, for reasons that are
explained in C hapter 10.
Zener Diode Method: The voltage level detector circuits o f Section 2-4 can be
used to convert a saw tooth wave to a pulse w ave provided that the output o f the op am p
is modified to create only a positive pulse. T his m odification is show n in Fig. 2.12(a) and
consists o f a silicon diode, a resistor, and a zener diode in series. W hen the output volt
age o f the op am p is at + V sa!, the resistor lim its the current to appro x im ately 5 mA,
enough current to cause zener breakdow n. For this condition the output voltage o f the cir
cuit, V09 equals the zener voltage. Vz 5 4.7 V in Fig. 2.12(a). W hen the op a m p ’s output
voltage is at —Vsal, diode D1 is reversed biased and the op a m p ’s output current is zero,
hence V0 = 0 V. This circuit is a quick way o f converting a saw tooth-to-pulse wave that
is T T L com patible. T he input and output w aveform s are show n in Figs. 2.12(b) and (c),
respectively. For this application, however, a better m ethod is to use an integrated circuit
called a com parator because we can get V0 to sw ing betw een 0 and 5 V w ithout the ex
ternal diodes.
First Experiences with an Op Am p 31
o 14
lOo
o 13
Il o FIG U RE 2-13 Connection diagram
for the LM339 quad comparator. Four
voltage comparators are contained in
- V or gnd one 14-pin dual-in-line package.
Power supply terminals. Pins 3 and 12 are positive and negative supply volt
age term inals, respectively, for all four com parators. M axim um supply voltage betw een
pins 3 and 12 is ± 1 8 V. In m ost applications, the negative supply term inal, pin 12, is
grounded. T hen pin 3 can be any voltage from 2 to 36 V dc. T he L M 339 is used p rim ar
ily for single-supply operation.
Input terminals. T he input term inals are differential. Use Eq. (2-1) to determ ine
the sign for Ed. If Ed is p ositive, the output sw itch is o pen, as in Fig. 2 - 14(a). If Ed is neg
ative, the output sw itch is closed, as in Fig. 2 - 14(b). U nlike many other op am ps, the in
put term inals can be brought dow n to ground potential w hen pin 12 is grounded.
146 Chapter 5
1
*,■ = = 1.59 kft
277(1 X 103 Hz)(0.1 X 10-6 F)
20
= 31.8 kH
Rf 277(1 X 103 H z)(0.1 X 10~ 6 F)
1
= 0.005 /jlF
C/ 277(1 X 103 H z )(3 1 .8 k fi)
d etn
= -R /C r
dt
T hen,
Note: W ith large values o f Rf , the output o f the op am p may go into saturation because it
is m ultiplied by the input sig n al’s peak value, frequency, and the constant 2 tt.
Ln this section, we w ill use PSpice and sim ulate the perform ance o f the differential volt
age-to-current converter w ith a grounded load as show n in Fig. 5-5. U se an IPROBE to
m easure IL. Place the follow ing parts on the right-hand side o f the w ork area:
Selected Applications of Op Am ps 147
A rrange the parts as show n in the schem atic o f Fig. 5-5 but include the IPROBE to m ea
sure IL. Set the four resistors labeled R as /?, = R 2 = R 3 = #4 = 10 k f l, E x = 5 V, E 2 =
3 V, and R L = 1 k fl. N ow select Analysis = > Setup = > DC Sweep. O pen DC Sweep
and select
Now set
Name = > V I, Start Value = > 5V, End Value = > 5V, Increment = > IV
Select
N ow set
Name = > V2, Start Value = > 3V, End Value = > 3V, Increment = > IV
In this sim ulation you do not w ant to run Probe. Rem ove Probe execution by
Click
Save the file w ith an .SCH extension and click Analysis = > Simulate. T he com pleted
circuit w ith current value l L is show n in Fig. 5-18.
148 Chapter 5
15 V - 7
Vo
15 V
VO
PROBLEMS
5-1. Refer to Example 5-1 and Fig. 5-1. Assume that 1FS = 1 mA and meter winding resistance
Rm = 1 k f l If Ei = ~ 1.0 V and /?, = Ik ft, find (a) (b) V0.
5-2. A 1-mA movement, with R„, = 1 kfl, is to be substituted in thecircuit inFig. 5-2. Redesign
the R; resistors for full-scale meter deflection when (a) Ej = ± 6 V dc; (b) Et =
6 V rms; (c) E, = 6 V p-p; (d) E, = 6 V peak.
5-3. In Fig. P5-3 complete the schematic wiring between op amp,diodes, and milliammeter.The
current through the meter must be steered from right to left.
5-4. Calculate a value for Ridc in Fig. P5-3 so that the meter readsfull scale whenEt—5Vand
the range switch is on the 5-V position.
5-5. Consider that the range switch is in the 5-V position in Fig. P5-3.Calculatevalues for the
following resistors to give a full-scale meter deflection of 5 V: (a)Rirms for Et= 5 Vrms; (b)
Rj p-p for Ej = 5 V p-p; (c) R, peak for E, = 5 V peak.
5-6. With the circuit conditions shown in Problem 5-4, (a) which diodes are conducting? (b) Find
Va. Assume that diode drops are 0.6 V.
5-7. For the constant-current source shown in Fig. P5-7, (a) draw the current direction, the emit
ter arrow, and state if the transistor is npn or pnp\ (b) find /; (c) find VL.
5-8. If V0 = 11 V and Et = 5 V in Fig. 5-3, find Vz.
5-9. / 1 must equal 20 mA in Fig. 5-4 when £ f- = - 10 V. Find Rh
5-10. Define a floating load.
5-11. In Fig. 5-5, E2 = 0 V, R = 10 kH, and RL = 5 k i l Find lL> VL, and V0 for (a) Et = - 2 V;
(b) £, = + 2 V.
150 Chapter 5
5-12. In Fig. 5-5, E ] = 0 V, R = 10 kft, and R L = 1 kCl. Find l u VLt and V0 for (a) E2 = - 2 V;
(b) E2 = +2 V.
5-13. In Fig. 5-5, E, = E2 = - 5 V, and R = RL = 5 k f l Find IL, VL, and V*.
5-14. Replace Vz in Fig. 5-6 with a 900-H resistor. Find lL.
5-15. Sketch an op amp circuit that will draw short-circuit current from a signal source and con
vert the short-circuit current to a voltage.
5-16. A CL5M9M photocell has a resistance of about 10 k il under an illumination of 2 fc. If Et -
—10 V in Fig. 5-9, calculate Rf for an output Va of 0.2 V when the photoconductive cell is
illuminated by 2 fc.
5-17. Change multiplier resistor mR in Fig. 5-10 to 49 kfi. Find lL.
5-18. A solar cell that has a maximum short-circuit current of 0.1 A = ISc is installed in the cir
cuit in Fig. 5-12. (a) Select RF to give Va = 10 V when Isc = 0.1 A. (b) A 50-[xA meter
movement is to indicate full scale when Isc = 0.1 A. Find /?scaie if RM = 5 kfl.
5-19. Resistor Rj is changed to 10 kfl in Example 5-14. Find the phase angle 6.
5-20. Design a phase shifter to give a —90° shift at 1 Hz. Choose C, from 0.001, 0.01, 0 .1, or 1.0
/ j F . R, must lie between 2 and 100 kfl.
5-21. Design a -9 0 ° phase shift at 1590 Hz. Then for your design, calculate (a) 6 at 15 Hz; (b) 6 at
15 kHz.
5-22. Calculate the net current through Rf in Fig. 5 -14(a) if the AD590 temperature is 100°C. Then
find V..
5-23. Calculate the net current through Rf in Fig. 5 -14(b) when the temperature is 100°F. Find V0.
5-24. Calculate the value of fl/in Fig. 5 -14(a) to design a signal conditioning circuit that interfaces
with a microcontroller’s A/D converter. The voltage range of the converter is 0 to 5 V.
5-25. Use a simulation program and design an integrating circuit. The input sugnal is
ein = t sin 20007rt V
5-26. Use a simulation program and design a differentiating circuit. The input signal is (a) sine
wave of 500 Hz and a peak value of 0.2 V; (b) square wave of 500 Hz and a peak value of
0.2 V; (c) cosine wave of 500 Hz and a peak value of 0.2 V.
CHAPTER 6
Signal Generators
U pon com pletion o f this chapter on signal generators, you w ill be able to:
• E xplain the operation o f a m ultivibrator circuit, sketch its output voltage w aveshapes,
and calculate its frequency of oscillation.
• M ake a one-shot m ultivibrator and explain the purpose o f this circuit.
• Show how tw o op am ps, three resistors, and one capacitor can be connected to form an
inexpensive triangle/square-w ave generator.
• Predict the frequency o f oscillation and am plitude o f the voltages in a bipolar or unipo
lar triangle-w ave generator and identify its disadvantages.
• Build a saw tooth wave generator and tell how it can be used as a voltage-to-frequency
converter, frequency m odulator, or frequency shift key circuit.
• C on n ect an A D 630 balanced m o d u la to r/d em o d u lato r to o p erate as a sw itch ed gain
am plifier.
151
152 Chapter 6
6-0 INTRODUCTION
Up to now our m ain concern has been to use the op am p in circuits that process signals.
In this chapter w e concentrate on op am p circuits that generate signals. Four o f the m ost
com m on and useful signals are described by their shape w hen viewed on an oscilloscope.
T hey are the square wave, triangular wave, saw tooth wave, and sine wave. A ccordingly,
the signal generator is classified by the shape o f the wave it generates. Som e circuits are
so w idely used that they have been assigned a special name. For exam ple, the first circuit
presented in Section 6-1 is a m ultivibrator that generates prim arily square waves and ex
ponential waves. Som e ICs that generate these w aveform s from a single IC are available.
How ever, you may need a w aveform quickly and not have on hand one o f these function
generator ICs.
V,rr = ( + y sa|)
lished except that C now has an initial charge equal to VLT. T he cap acito r w ill discharge
from VLT to 0 V and then recharge to VUT> and the process is repeating. F ree-running m ul
tivibrator action is sum m arized as follow s:
T he tim e needed for C to charge and discharge determ ines the frequency o f the m ultivi
brator.
T he capacitor and output-voltage w aveform s for the free-running m ultivibrator are show n
in Fig. 6-2. R esistor R 2 is chosen to equal 0 .86/?i to sim plify calculation o f cap acito r
charge time. Tim e intervals /] and t2 show how Vc and VD change w ith tim e for Figs.
6 - 1(a) and (b), respectively. Tim e intervals t x and t2 are equal to the product o f /fy-and C.
T he period o f oscillation, T, is the tim e needed for one com plete cycle. S ince T is
the sum o f t, and t2,
v»
(volts)
A
V
vo
= ^+vv sai
10 T=2RC=y
Tim e
10 /, - RjC
15
(6-3b)
Example 6-1
In Fig. 6-1, if R { = 100 k fl, R 2 = 86 k fl, + V sat = + 1 5 V, and - V sat = - 1 5 V, find (a)
VuT>' (b) V l t -
Example 6-2
Find the period o f the m ultivibrator in E xam ple 6-1 if Rf = 100 k f i and C = 0.1 fxF.
Example 6-3
Find the frequency o f oscillation for the m ultivibrator o f E xam ple 6-2.
Example 6-4
Solution T he tim e required for a capacitor C to charge through a resistor Rf from som e
starting capacitor voltage toward som e aim ing voltage to a stop voltage is expressed g en
erally as
aim — start
aim — stop
156 Chapter 6
+ V/sat ~ VLT
11 = Rf C In
+ Vsat - V u r
If the m agnitudes of + V sat and — VsiLX are equal, the term in parentheses sim plifies to
In
R| 2R 2
----- —------= 2.718 or R 2 = 0.86/?,
6-2.1 Introduction
In Fig. 6-4(a), VQ is at + Vsat. Voltage divider /?, and R2 feeds back VUT to the ( + ) input.
V u r is given by Eq. (6-1). The diode D x clam ps the ( —) input at approxim ately + 0 .5 V.
T he ( + ) input is positive with respect to the ( —) input, and the high open-loop gain tim es
the differential input voltage (Ed = 2.1 - 0.5 = 1.6 V) holds V0 at + K sat.
Chapter 6
O,
Dt
Next we select and C. B egin by m aking a trial choice for C = 0.05 /xF. T hen ca l
culate a value for /?, to see if R t is greater than 10 k fl. F rom Eq. (6-6),
2.8
= 14 k a
4/C 4(1000 H z)(0.05 jjlF)
T he bipolar triangle-w ave generator circuit o f Fig. 6-6 can be changed to produce a u nipo
lar triangle w ave output. S im ply add a diode in series w ith p R as show n in Fig. 6-7.
C ircuit operation is studied by reference to the w aveshapes in Fig. 6-7(b).
W hen VB is at + Vsal, the diode stops current flow through p R and sets V lt at 0 V.
W hen VB is at —ysat, the diode allow s current flow through p R and sets VUT at a value o f
(6-7b)
2 R,C
Example 6-7
Find the approxim ate peak voltage and frequency for the unipolar triangle-w ave g enerator
in Fig. 6-7.
Solution C alculate
_ p R _ 28 k f l _
P ~ R ~ 10 k f l _
Find the peak value of VA from Eq. (6-7a):
-1/ t + 0 .6 V - 1 3 .8 V + 0.6 V
VUT ~ - 4.7 V
2.8
From Eq. (6-7b),
2.8
f = = 1000 Hz
2R £ 2(28 kH )(0.05 jjlF )
FIGURE 6-7 Diode D in (a) converts the bipolar triangle-wave generator into
a unipolar triangle-wave generator. Waveshapes are shown in (b). (a) Basic
unipolar triangle-wave generator; oscillating frequency is 1000 Hz. (b) Output-
voltage waveshapes.
Signal G enerators 165
A low -parts-count saw tooth-w ave generator circuit is show n in Fig. 6-8(a). Op am p A is
a ram p generator. Since E t is negative, Voramp can only ram p up. T he rate o f rise of the
ram p voltage is constant at
(6- 8)
t R tC
The ram p voltage is m onitored by the ( + ) input o f com parator 301B. If Voramp is
below Vref, the com parator’s output is negative. D iodes protect the transistors against ex
cessive reverse bias.
W hen Voramp rises to ju st exceed Vref, the output Vocomp goes to positive saturation.
This forward biases “dum p’' transistor Q D into saturation. T he saturated transistor acts as
a short circuit across the integrating capacitor C. C discharges quickly through QD to es
sentially 0 V. W hen Vocomp goes positive, it turns on Q x to short-circuit the lO-kO p o
tentiom eter. This drops Vref to alm ost zero volts.
As C discharges toward 0 V, it drives Vorarnp rapidly toward 0 V. Voramp drops be
low Vref, causing l^ocomp to go negative and turn off Q D. C begins charging linearly, and
generation o f a new saw tooth wave begins.
The ram p voltage rises at a rate of 1 V per m illisecond in Fig. 6-8(b). M eanw hile, Vocomp
is shown to be negative. W hen the ram p crosses Vref, VOCOmp snaps positive to drive the
ram p voltage quickly toward 0 V. As Voramp snaps to 0 V, the co m p arator’s output is re
set to negative saturation. R am p operation is sum m arized in Fig. 6-8(c).
T he tim e for one saw tooth-w ave period can be derived m ost efficiently by analogy with
a fam iliar experience.
(6-9b)
(6-9c)
Signal G enerators 167
Design Procedure
1. D esign a voltage divider to give a reference voltage Vref = + 1 0 V for op am p B in
Fig. 6-8(a).
2. L e t’s select a ram p rate rise o f 1 V /m s. P ick any R tC com b in atio n to give 1.0 ms.
T herefore, let’s select /?,* = 10 k f I and C = 0.1 fiF. ■
3. T he resulting circuit is show n in Fig. 6-8(a).
4. Ei may be m ade from a voltage divider and voltage follow er to m ake an ideal voltage
source (see Section 3.7).
5. A lternatively, you could pick a trial value for R tC and solve for £ , in Eq. (6-9b)
6. C heck the design values in Eq. 6-9c.
T here are tw o w ays to change or m odulate the o scillating frequency o f Fig. 6-8. We see
from Eq. (6-9c) that the frequency is directly pro p o rtio n al to E L and inversely p ro p o r
tional to Vref. T he advantages and disadvantages o f each m ethod are exam ined w ith an
exam ple.
T his type o f frequency m odulation by Vref has tw o disadvantages w ith respect to
control o f frequency by E t. First, the relationship betw een input voltage Vrcf and output
frequency is not linear. Second, the saw too th ’s peak output voltage is not constant, since
it varies directly w ith Vref.
E xam ples 6-9 and 6-10 indicate one way o f achieving fre q u en c y m odulation (FM ). T hus,
if the am plitude o f Ei varies, the frequency o f the saw tooth oscillator w ill be changed or
m odulated. If E { is keyed betw een tw o voltage levels, the saw tooth oscillator changes fre
quencies. T his type o f application is called fre q u en c y shift keying (FSK ) and is used for
data transm ission. T hese tw o preset frequencies correspond to “0 ” and “ 1” states (co m
m only called space and m ark) in binary.
168 Chapter 6
Example 6-9
1
(10 X 103 n x o . l X 10“ 6 F) 10 V
---------1 = ^ = M00Hz\
1.0 X 10-3 s 10 V I V
Example 6-10
K eep E h and C at their value show n in Fig. 6-8(a). R educe Vref by o n e-h alf to 5 V. Is
the frequency doubled or halved?
1V _ (1000 H z)/V
f (ms) Vref Kef
For Vrei = 10 V , / = 100 Hz. For Vref = 5 V the frequency is doubled to 200 Hz. As Vref is
reduced from 10 V to 0 V, the frequency is increased from 100 H z to a very high value.
6-4.6 Disadvantages
T he triangle-w ave generators o f Section 6-3 are inexpensive and reliable. However, they
have tw o disadvantages. T he rates o f rise and fall o f the triangle w ave are unequal. A lso,
the peak values o f both triangle-w ave and square-w ave outputs are unequal, because the
m agnitudes o f + V sat and - V sat are unequal.
In the next section w e substitute an A D 630 for the com parator. T his will give the
equivalent o f precisely equal square-w ave ± voltages that w ill a lso be equal to the ±
peak values o f triangle-w ave voltage. O nce we have m ade a precision triangle-w ave g en
erator, we w ill use it to drive a new state-of-the-art trigonom etric function g enerator to
make a precision sine-w ave generator.
170 Chapter 6
6-5.1 Introduction
T he A D 630 is an advanced integrated circuit. It has 20 pins, w hich allow s this versatile
sw itched voltage gain IC to act as a m odulator, dem odulator, phase detector, and m ulti
plexer, as well as perform other signal conditioning tasks. We connect the A D 630, as in
Fig. 6-9(a), as a controlled sw itched gain ( + 1 or —1) am plifier. T his p articu lar applica
tion w ill be exam ined by discussing the role perform ed by the d om inant term inals.
T he input signal Vref is connected to m odulation pins 16 and 17 in Fig. 6-9, and thus to the
inputs of two am plifiers, A and B. The gain o f A is program m ed for —1 and B for + 1 by
shorting term inals (1) 13 to 14, (2) 15 to 19 to 20, (3) 16 to 17, and (4) grounding pin 1.
T he carrier input term inal, pin 9 (in this application), determ ines w hich am plifier,
A or B , is connected to the o u tp u t term in al. If pin 9 is a b o ve the v o ltag e at pin 10
(ground), am plifier B is selected. Voltage at output pin 13 then equals Vref tim es (4-1).
If pin 9 voltage is below ground (negative), am plifier A is selected and output pin 13
equals l/ref times ( —1). (Note that in com m unication circuits, Vref is called the analog data
or signal voltage, Vc is called a chopper or carrier voltage, and VQ is the m odulated output.
T hat is, the am plitude o f the low -frequency signal voltage is impressed upon the higher-
frequency carrier wave— hence the names selected for the A D 630’s input and output terminals.)
Vrcf is a dc voltage of 5.0 V in Fig. 6-9(b). Vc is a 100-Hz square w ave w ith peak am
plitudes that m ust exceed ± 1 mV. O utput voltage V0 is show n in Fig. 6-9(c) to sw itch
synchronously with Vc from + l/ref to —\/ref> and vice versa. We are going to replace the
unpredictable ± Vsat o f the 301 com parator in Fig. 6-6 with precisely + or —Vref. M oreover,
Vref can be adjusted easily to any required value. As show n in the next sectio n , Vref
w ill set the positive and negative peak values o f both triangle-w ave and square-w ave
generators.
O nly six parts plus a voltage source, Vref, m ake up the versatile precision triangle- and square-
wave generator in Fig. 6 -10(a). Circuit operation is explained by referencing the waveshapes
in Fig. 6 - 10(b). We begin at time zero. Square-wave output Vos begins at —Vref or —5 V. This
forces the triangle wave Vot to go positive from a starting point of — = —5 V. D uring this
time, pin 9 is below ground to select an AD630 gain o f —1 and holds Vos at —5 V.
172 Chapter 6
T he easiest way to find the frequency o f oscillation is to begin w ith the rate o f rise o f the
triangle wave, Vol/ t y in volts per second. T he rate o f rise o f the triangle wave, from 0 to
0.5 ms in Fig. 6-10(b), is found from
v„
t R,C (6- ,0 )
T he tim e t for a half-cycle is 772, and during this tim e, Vol changes by 2Vref. S ubstituting
these for t and Vot into Eq. (6-10), w e obtain
2 V re f = Vn f
(6-11)
772 R tC
and solve for both period T and frequency o f o sc illa tio n /:
N ote that Vref cancels out in Eqs. (6-11) and (6-12). This is a very im portant ad
vantage. T he peak output voltages of both square- and triangle-w ave signals are set by
+ Vref. As Vref is adjusted, the frequency o f oscillation does not change.
Example 6-11
M ake a triangle/square-w ave generator that has peak voltages o f ± 5 V and oscillates at a
frequency o f 1.0 kHz.
Solution C hoose Vref = 5.0 V. For low im pedance, Vref should be the output o f an op am p.
A rbitrarily choose C = 0.01 /xF. F rom Eq. (6-12),
1 1
*/ =
4 /C 4(1000)(0.01 jjlF)
For a fine adjustm ent of the output frequency, m ake /?; from a 2 2 -k fl resistor in series w ith
a 5- or 10-kH variable resistor.
C om m ercial function generators produce triangular, square, and sinusoidal signals w hose
frequency and am plitude can be changed by the user. To obtain a sine-w ave output, the
triangle w ave is passed through a shaping netw ork m ade o f carefully selected resistors
Signal Generators 173
and diodes (see Fig. 7-19). T he sine waves thus produced are reasonably good. H owever,
there is inevitably som e distortion, particularly at the peaks o f the sine wave. A nother so
lution is to use an IC function generator chip such as M A X IM ’s M A X 038, w hich is ca
pable of producing sine, square, and triangle w aveform s fro m 1 H z to 20 M Hz.
W hen an application requires a single-frequency sine wave, conventional oscillators
use phase-shifting techniques that usually em ploy (1) tw o R C tuning netw orks, and (2)
com plex am plitude lim iting circuitry. To m inim ize distortion, the lim it circuit m ust usu
ally be custom -adjusted for each oscillator. T he frequency o f this oscillator is difficult to
vary because tw o R C netw orks m ust be varied and their values m ust track w ithin ± 1%.
W aveform s m ay also be generated by using the A D 630 w ith a universal trig o n o
metric function generator, the A D 639. The A D 630 has already been used to generate a
precision triangle wave w hose frequency and am plitudes are precise and easy to adjust.
We w ill co n n ect the triangle-w ave outp u t Vol o f Fig. 6-10(a) to an A D 639 universal
trigonom etric function generator. The resulting circuit w ill have the best qualities o f a p re
cision sine-w ave generator whose fre q u en c y will be easily a djustable.
6-8.1 Introduction
T he A D 639 is a state -o f-th e-art trig o n o m etric fu n ctio n generator. It w ill perfo rm all
trigonom etric functions in real tim e, including sin, cos, tan, cosec, sec, and cotan. W hen
a calculator perform s a trig function, the operator punches in a num ber corresponding to
the num ber of angular degrees and punches SIN. T he calculator pauses, then displays a
num ber indicating the sine o f the angle. T hat is, a num ber for angle 0 is entered and the
calculator produces a num ber for sin 0.
T he A D 639 accepts an input voltage that represents the angle. It is called the angle
voltage, Vang. For the A D 639, the angle voltage is found from
(6-13)
F our input term inals are available. However, we shall look at only the single active
input that generates sin functions. T he output voltage will equal sin 0 or 10 sin 0, d e
pending how the internal gain control is pin program m ed.
T he A D 639 is w ired to output VQ = 1 sin 0 in Fig. 6-11. T here are four input term inals:
1, 2, 7, and 8. W ired as show n, the chip perform s a sine function. Pins 3, 4, and 10 co n
trol gain. N orm ally, 3 and 4 are grounded so that pin 10 can activate the internal gain co n
trol. A gain o f 1 results w hen pin 10 is w ired to — Vs or pin 9. W ire pin 10 to + Vs or pin
174 Chapter 6
-v, +V*
-15 V + 15 V
9 10 16
Angle
voltage Vn = 1 sin 0
AJ3639A
5 7
12 8
T
(a)
(a) °a
,(V)
FIG U RE 6-11 The AD639 is pin-programmed in (a) to act as a sine function genera
tor. Each ± 20 mV of input angle voltage corresponds to an input angle of 0 = ±1°.
Output Va equals 1 X sin 0. (a) The AD639A is pin-programmed to output the sine of the
angle voltage; (b) output voltage V0 equals the sine of 8 if 9 is represented by an angle
voltage of 20 mV per angular degree.
Signal G enerators 175
Example 6-12
C a lc u late the req u ired in p u t angle voltage and resu ltan t o u tp u t v o ltag e fo r an g les o f
(a) ± 4 5 °; (b) ± 9 0 °; (c) ± 2 2 5 °; (d) ± 4 0 5 °.
E xam ple 6-12 clearly illustrates that the A D 639, rem arkable as it is, cannot output
the sine of, for exam ple, 36,000°. This w ould require an angle voltage o f 720 V T he nor
mal ± 1 5 -V supply lim its the guaranteed usable input angle to ± 5 0 0 ° , or ± 1 0 .0 0 0 V. We
extend the results o f E xam ple 6-12 to sum m arize briefly the perform ance o f the sine fu n c
tion generator in Table 6-1 and Fig. 6 -1 1(b).
In Fig. 6 -1 1(b), VQ is plotted against both Vang and 0. A study o f this figure shows
that if Vang could be varied linearly by a triangle wave, VD w ould vary sinusoidally. Further,
if the frequency o f the triangle wave could be varied easily, the sine-w ave frequency could
easily be tuned, adjusted, or varied. We pursue this observation in the next section.
C onnect the precision triangle-w ave oscillator in Fig. 6-10 to the sine function generator
in Fig. 6-11 to construct the precision sine-w ave generator in Fig. 6-12. As a bonus, we
also have precision triangle-w ave and square-w ave outputs. The 1.80-V reference voltage
o f the A D 639 is connected to m odulation inputs 16 and 17 o f the A D 630 m odulator (Fig.
6-9). C ircuit operation is now exam ined by reference to Fig. 6-12.
176 Chapter 6
1. A D 63 0
a. Pin 13 is at —Vref = —1.8 V, causing
b. Pin 9 to select gain = - 1 to hold 13 at - 1 . 8 V and
c. O p am p output voltage to ram p up.
2. Op am p
a. Pin 6 ram ps from —Vref = —1.8 V tow ard + V ref = 1.8 V to
b. H old pin 9 of the A D 630 negative and
c. D rive input 1 o f the A D 639 w ith an angle voltage linearly from - 1 . 8 to 1.8 V.
3. A D 639
a. Pin l ’s input angle voltage corresponds to an input angle that varies linearly
from - 9 0 ° to + 9 0 °.
b. Pin 13 outputs VQ — 10 sin 6 from —10 to + 1 0 V.
2. Op am p: A pplies an angle voltage to input pin 1 o f the A D 639 that varies linearly
from + 1 .8 to ~ 1 .8 V.
3. A D 639: Its input angle voltage corresponds to an input angle o f 0 = + 9 0 ° to - 9 0 ° .
Pin 13 outputs a sine w ave that varies from + 1 0 to —10 V.
T he frequency of o s c illa tio n ,/ is determ ined by R if C, and the op am p in Fig. 6 - 12(a) from
( 6 - | 4 )
Peak am plitudes of the triangle wave and square w ave are precisely equal to ± 1 .8 V. T he
sine w ave has peak am plitude o f ± 1 0 V and is synchronized to the triangle wave (for the
± 1-V peak, change the A D 639 pin 10 connection to —Vs).
E x a m p le 6-13
Let C = 0.025 |jlF in Fig. 6 - 12(a) (two 0.05-fjiF capacitors in series). How does frequency
change as Ri is changed from 10 k f l to 100 k fl?
E xam ple 6-13 show s the overw helm ing superiority o f this m ulti w ave generator.
Frequency is tuned easily an d with precision. A lthough we have used the A D 639 to gen
erate a sine wave, this chip is a universal trigonom etric function g enerator and could be
rew ired to produce other trigonom etric w aveform s.
In this section, we will use PSpice to m odel and sim ulate the perform ance o f four signal
generator circuits studied in this chapter: the free-running m ultivibrator, the one-shot m ul
tivibrator, the bipolar triangle-w ave generator, and the unipolar triangle-w ave generator.
R efer to Fig. 6-1 and create the PSpice model o f the circuit. Set the resistor and capacitor
values as given in E xam ples 6-1 and 6-2. Use the 741 op am p if you are using the evalu
ation softw are package o f PSpice. O btain a plot o f Vc and VQ versus tim e. For the circuit
to begin oscillating in a sim ulation it is necessary to provide a sudden im pulse at the be
ginning of the sim ulation. This stim ulus can be generated by using tw o pulse sources in
stead o f two dc sources to pow er the op amp. T he pulse w idth will be set to a m uch longer
tim e interval than the period o f oscillation and will have a fast rise tim e to sim ulate sud
denly applying pow er to the circuit. To begin, place the follow ing parts in the w ork area.
Draw = > Get New Part
{Note: We are using VPULSE instead o f VDC for the op am p supplies.) A rrange the parts
and w ire the circuit as show n in Fig. 6-1. C hange the attributes o f the parts as given in
E xam ples 6-1 and 6-2. Set up each o f the VPULSE attributes by double-clicking on the
sym bol. In the pop-up box, set the values for VI (m inim um input voltage), V2 (m axim um
input voltage), TD (tim e delay), TR (rise tim e), TF (fall tim e), PW (pulse w idth), and
PER (period):
VI = > OV = > Save Attr
V2 = > 15 V = > Save Attr = > Change Display = > Both name and value
TD = > 0 = > Save Attr
TR = > Ins = > Save Attr
TF = > Ins = > Save Attr
PW = > 50s = > Save Attr
PER = > 51s = > Save Attr
E ach pulse attribute pop-up box is set up the sam e because the —V supply has been ro
tated 180 degrees, as we have done w ith the dc supplies connected to pin 4 o f other op
am ps. D ouble-click on the lead from the capacitor and label it Vc. D ouble-click on the
lead from the output term inal of the op am p and label it Vo (see Fig. 6-13).
182 Chapter 6
In order to obtain a plot o f E , and V0 versus tim e, w e m ust initialize the transient menu.
Save the circuit as a file w ith the .SCH extension. Run the sim ulation
15 v r
10 v ^ V0
Input
5V _ pulse,
0 V
/
-5 V
-10 V
Period -►
-1 5 V 1 1---------------1
- 1 ------------1 FIGURE 6-16 Waveforms for the
Os 2 ms 4 ms 6 ms 8.ms 10 ms one-shot multivibrator modeled in
Tim e PSpice in Fig. 6-15.
C reate the P Spice m odel o f the bipolar triangle-w ave generator show n in Fig. 6-6. Use
tw o 741 op am ps. O btain a plot o f VA and V0 versus tim e. Place the follow ing parts in the
w ork area.
Draw => Qet New Part
A rrange the parts, change the attributes, and w ire the circuit as show n in Fig. 6-6. T he
VPULSE attributes are set the sam e as they are in Section 6-10.1 (see Fig. 6-17).
In order to obtain a plot of VA and VQ versus tim e, set the transient m enu.
M odify the P S pice m odel o f Fig. 6-17 to create the un ip o lar trian g le-w av e g en erato r
show n in Fig. 6-7. From the P Spice parts list, obtain a 1N4002 diode and place it in se
ries w ith pR (see Fig. 6-19). Save the circuit w ith the .SCH extension.
Signal Generators 185
15 V
10 V
5V
0V
-5 V
-10 V
-1 5 V
Os 0.5 ms 1.0 ms 1.5 ms 2.0 ms 2.5 ms 3.0 ms
Tim e
FIGURE 6-20 Waveforms VA and V(, for the unipolar triangle-wave genera
tor of Fig. 6-19.
PROBLEMS __________________________________________________________________________
6-1. Make two drawings of a multivibrator circuit with R\ = 100 kH, R2 = 86 kfl, Rf = 10 kfl,
and C = 0.01 /xF. Show the direction of current through C and calculate both VUT and VLT
for (a) = +Ksa( = 15 V; (b) V, = - V sa( = - 1 5 V.
6-2. Calculate the frequency of oscillation for the multivibrator circuit in Problem 6-1.
6-3. In Problem 6-1, if C is changed to 0.1 ^F, do you expect the output frequency to oscillate at
500 Hz? (See Example 6-3.) What could you do to Rf to increase frequency to 1000 Hz?
6-4. The monostable multivibrator of Figs. 6-4 and 6-5 generates a negative output pulse in re
sponse to a negative-going input signal. How would you change these circuits to get a posi
tive output pulse for a positive-going input edge?
6-5. Explain what is meant by monostable recovery time.
6-6. Sketch a one-shot multivibrator circuit whose output will deliver a negative pulse lasting
1 ms with a recovery time of about 0.1 ms.
6 -7 . Assume for simplicity that saturation voltages in the triangle-wave oscillator of Fig. 6-6 are
± 15 V, Rj = R = 10 kH, C = 0.1 fiF, and pR = 50 kfl. Find the peak triangle-wave voltages
and oscillating frequency.
6-8. Refer to the triangular-wave oscillator circuit of Fig. 6-6. What happens to peak output volt
ages and oscillating frequency if you (a) double pR only; (b) double R, only; (c) double ca
pacitor C only?
6-9. Change pR to 14 kfl and C to 0.1 jjlF in the unipolar triangle-wave generator of Fig. 6-7.
Find the resulting peak output voltage and frequency of oscillation. (See Example 6-7.)
186 Chapter 6
6-10. In the sawtooth-wave generator of Fig. 6-8(a), let Vref = 1 V, R, = 10 kfl, and C = 0.1 jjlF.
(a) Find an expression for frequency / i n terms of Ev
(b) C alculate/for Et = I V and E, = 2 V.
6-11. These questions refer to the AD630 balanced modulator circuit in Fig. 6-9.
(a) Name the application for which the A.D630 is wired.
(b) When pin 9 is at a positive voltage, which amplifier is selected, and what is the value of
\/»o?•
(c) Suppose that Vrcl. is a ± l-V-peak sine wave and pin 9 is at 1 V; what happens at V0 when
pin 9 is changed to - 1 V?
6-12. Figure 6-10 shows a precision triangle/square-wave oscillator.Threecomponentscontrol
peak output voltages and oscillating frequency, R h C, and Vref.
(a) Which does what?
(b) Can the oscillating frequency be adjusted independent of peak outputs, and vice versa?
(c) What must be done to change the frequency from 100 to 500 Hz and the peak voltages
from ±5 V to ±1 V?
6-13. V0 ~ 0.866 V in the sine function generator circuit of Fig. 6-11.
(a) What angle does this represent?
(b) What is the value of the input angle voltage?
6-14. Calculate V0 in Fig. 6-11 when the input angle is 30° and pin 10 is wired to (a) pin 9;
(b) pin 16.
6-15. Design a sine-wave oscillator whose frequency can be varied from 0.5 Hz to 50 Hz with just
a single variable resistor.
CHAPTER 7
U pon com pleting this chapter on op am ps w ith diodes, you w ill be able to:
- D raw the circuit for a precision (or linear) half-w ave rectifier.
• Show current flow and circuit voltages in a precision half-w ave rectifier for either p o s
itive or negative inputs.
• D o the sam e for precision full-w ave rectifiers.
• Sketch tw o types o f precision full-w ave rectifier circuits.
• E xplain the operation o f a peak detector circuit.
• A dd one cap acito r to a p rec isio n half-w ave rectifier to m ake an ac-to -d c co n v erter
(m ean-average-value) circuit.
• Explain the operation o f dead-zone circuits.
• D raw the circuit for and explain the operation o f precision clipper circuits.
187
diode can be designed using an op am p and tw o ordinary diodes. T he result is a pow er
ful circuit capable o f rectifying input signals o f only a few m illivolts.
T he low cost o f this equivalent ideal diode circuit allow s it to be used routinely for
many applications. They can be grouped loosely into the follow ing classifications: linear
half-w ave rectifiers and precision full-w ave rectifiers.
1. L inear half-w ave rectifiers. T he linear half-w ave rectifier circuit delivers an output
that depends on the m agnitude and p o la rity o f the input voltage. It w ill be show n
that the linear half-w ave rectifier circuit can be m odified to perform a variety o f sig
nal-processing applications. T he linear half-w ave rectifier is also called a precision
half-w ave rectifier and acts as an ideal diode.
2. P recision fu ll-w a v e rectifiers. T he precision full-w ave rectifier circuit delivers an
output proportional to the m agnitude but not the polarity o f the input. For exam ple,
the output can be positive at 2 V for inputs o f either + 2 V or - 2 V. Since the ab
solute value o f + 2 V and —2 V is equal to + 2 V, the precision full-w ave rectifier is
also called an absolute-value circuit.
A pplications for both linear half-w ave and precision full-w ave rectifiers includes:
T he functions listed are often necessary to condition signals before they are applied to an
input of a m icrocontroller.
7-1.1 Introduction
L inear half-w ave rectifier circuits transm it only one-half cycle o f a signal and elim inate
the other by bounding the output to 0 V. The input half-cycle that is transm itted can be
either inverted or noninverted. It can also experience gain or attenuation, or rem ain un
changed in m agnitude, depending on the choice o f resistors and placem ent o f diodes in
the op am p circuit.
In Fig. 7-2(b), negative input E t forces the op am p output VOA to go positive. This
causes D 2 to conduct. T he circ u it then acts like an inverter, since Rf = /?, and VD =
- ( - £ , ) = + £ ,. Since the ( - ) input is at ground potential, diode D , is reverse biased.
Input current is set by £,//?, and gain by - R f /Ri. R em em ber that this gain equation ap
plies only for negative inputs, and V0 can only be positive or zero.
C ircuit operation is sum m arized by the w aveshapes in Fig. 7-3. V0 can only go p o s
itive in a linear response to negative inputs. The m ost im portant property o f this linear
half-w ave rectifier w ill now be exam ined. An ordinary silicon diode or even a hot-carrier
diode requires a few tenths o f volts to becom e forw ard biased. A ny signal voltage below
this threshold voltage cannot be rectified. However, by connecting the diode in the feed
back loop o f an op am p, the threshold voltage o f the diode is essentially elim inated. For
exam ple, in Fig. 7-2(b) let £, be a low voltage o f - 0 .1 V. E i and /?, convert this low v o lt
age to a current that is conducted through D 2. VOA goes to w hatever voltage is required
to supply the necessary diode drop plus the voltage drop across Rf . T hus m illivolts o f in
put voltage can be rectified, since the d io d e’s forw ard bias is supplied autom atically by
the negative feedback action o f the op amp.
and V0A
£ , and V
FIGURE 7-6 Input and output voltages for the polarity separator of Fig. 7-5
7-2.1 Introduction
The precision full-w ave rectifier transm its one polarity o f the input signal and inverts the
other. T hus both half-cycles o f an alternating voltage are transm itted but are converted to
a single polarity o f the circu it’s output. T he precision full-w ave rectifier can rectify input
voltages with m illivolt am plitudes.
T his type o f circuit is useful to prepare signals for m ultiplication, averaging, or d e
m odulation. T he characteristics o f an ideal precision rectifier are show n in Fig. 7-7.
T he precision rectifier is also called an absolute-value circuit. The absolute value of
a num ber (or voltage) is equal to its m agnitude regardless o f sign. For exam ple, the absolute
values of | +2 | and |—2 | are +2. T he sym bol 11 m eans “absolute value of.” Figure 1-1 shows
that the output equals the absolute value of the input. In a precision rectifier circuit the o ut
put is either negative or positive, depending on how the diodes are installed.
198 Chapter 7
T he w aveshapes in Fig. 7-8(c) show that V0 is alw ays o f positive polarity and equal
to the absolute value of the input voltage. To obtain negative outputs fo r either polarity
o f E h sim ply reverse the diodes.
T he peak follow er-and-hold circuit is shown in Fig. 7-10. It consists o f tw o op am ps, two
diodes, a resistor, a hold capacitor, and a reset switch. Op am p A is a precision half-wave
rectifier that charges C only when input voltage E t exceeds capacitor voltage Vc . Op am p
B is a voltage follow er w hose output signal is equal to Vc . The follow er's high input im
pedance does not allow the capacitor to discharge appreciably.
To analyze circuit operation, let us begin with Fig. 7 - 10(a). W hen E t exceeds Vc,
diode D P is forw ard biased to charge hold capacitor C. As long as Et is greater than Vc ,
C charges tow ard £ :. Consequently, Vc follow s £, as long as E t exceeds Vc . W hen E {
drops below Vc , diode D N turns on as show n in Fig. 7 - 10(b). D iode D P turns off and d is
connects C from the output o f op am p A. D iode D P m ust be a low -leakage-type diode or
the capacitor voltage will discharge (droop). To m inim ize droop, op am p B should require
Op Am ps with Diodes 203
A large-value low -leakage capacitor (10-/xF tantalum ) is added to the absolute-value cir
cuit of Fig. 7-13. The resultant circuit is the MAV am plifier or ac-to-dc converter show n
in Fig. 7-14. C apacitor C does the averaging o f the rectified output o f op am p B. It takes
about 50 to 500 cycles of input voltage before the capacitor voltage settles dow n to its fi
nal reading. If the w aveshapes of Fig. 7-12 are applied to the ac-to-dc converter, its o u t
put will be the MAV o f each input signal.
FIGURE 7-14 Add one capacitor to the absolute-value amplifier of Fig. 7-13
to get this ac-to-dc converter or mean-absolute-value amplifier.
7-5.1 Introduction
A nalysis of a dead-zone circuit begins w ith the circuit o f Fig. 7-15. A convenient regulated
supply voltage + V and resistor m R establish a reference voltage Uref. Vre( is found from
the equation Vrc{ — + V /m . As will be shown, the negative o f Vref, —Vref, will establish the
dead zone. In Fig. 7-15(a), current I is determ ined by + V and resistor m R at / = + V /m R
D iode D n will conduct for all positive values o f E h clam ping VOA and V qb t0 0 V.
T herefore, all positive inputs are elim inated from affecting the output. In order to get any
Op A m ps with Diodes 205
output at VOA, Ei m ust go negative, as show n in Fig. 7 - 15(b). D iode D P will conduct when
the loop current E t/R through £, exceeds the loop current V/mR through resistor mR.
T he value o f Ei necessary to turn on D P in Fig. 7-15(b) is equal to - Vref. T his co n
clusion is found by equating the currents
= +v
R mR
+V
E i = ---------- = - V ref (7 -la )
m
w here
+ \/
^ re f= ------ ( 7 - lb)
m
T hus all values o f E t above - Vref will lie in a dead zone w here they will not be tran s
m itted [see Fig. 7-1 5(c)]. O utputs VOA and VOB will be zero.
W hen Ei is below Vref, £, and VTCf are added and their sum is inverted at output VOA.
VOA is reinverted by op am p B. T hus VOB only has an output w hen E, goes below Vref.
VOB tells you by how many volts £, lies below Vref.
Circuit operation is sum m arized by the w aveshapes o f Fig. 7 - 15(c) and illustrated
by an exam ple.
E x a m p le 7-1
S o lu tio n (a) From Eq. (7 -lb ), Vref = + 1 5 V/3 = 5 V. (b) VOA and VOB will equal zero for
all values o f E { above —Vref = - 5 V, from Eq. (7 -la ). T h erefo re, VOA = - E j - Vr&f =
- ( - 1 0 V) - 5 V = + 5 V. (c) Op am p B inverts the output o f VOA so that VOB = - 5 V.
T hus, VOB indicates how m uch E { goes below —Vref. All input signals above — Vref fall in a
dead zone and are elim inated from the output.
If the diodes in Fig. 7-15 are reversed, the result is a positive-output dead-zone circuit as
show n in Fig. 7-16. R eference voltage Vref is found from Eq. (7 -lb ): Vrer = —15 V/3 =
—5 V. W henever Ej goes above —Vref = - ( - 5 V) = + 5 V, the output VOB tells by how
m uch Ei exceeds —Vref. T he dead zone exists for all values o f below — Vrcf.
2R
+ +V0
FIGURE 7-18 A precision clipper is made from a bipolar dead-zone circuit plus an
added resistor Rc.
208 Chapter 7
T he positive and negative output dead-zone circuits can be com bined as show n in Fig.
7-17 and discussed in Fig. 7-18. The VOA outputs from Figs. 7-15 and 7-16 are connected
to an inverting adder. The adder output VOB tells how much Ej goes above one positive ref
erence voltage and also how m uch E( goes below a different negative reference voltage.
A clipper or am plitude lim iter circuit clips off all signals above a positive reference volt
age and all signals below a negative reference voltage. The reference voltages can be
m ade sym m etrical or nonsym m etrical around zero. C onstruction o f a precision clipper cir
cuit is accom plished by adding a single resistor, R c, to a bipolar output dead-zone circuit
as show n in Fig. 7-18. The outputs o f op am ps A and B are each connected to the input
o f the inverting adder. Input signal £, is connected to a third input o f the inverting adder,
via resistor R c . If R c is rem oved, the circuit would act as a dead-zone circuit. However,
w hen R c is present, input voltage Et is subtracted from the dead-zone circu it’s output and
the result is an inverting precision clipper.
C ircuit operation is sum m arized by the w aveshapes in Fig. 7 - 18(b). O utputs VQa
and VOB are inverted and added to ~ E r The plot of V0 versus tim e show s by solid lines
how the clipped output appears. The dashed lines show how the circuit acts as a dead-
zone circuit if R c is removed.
V ariable-frequency sine-w ave oscillators are m uch harder to build than variable-frequency
triangular-w ave generators. The circuit of Fig. 7-19 converts the output o f a triangular-
wave generator into a sine wave that can be adjusted for less than 5% distortion. The
triangle-to-sine-w ave converter is an am plifier w hose gain varies inversely with am plitude
o f the output voltage.
R { and R3 set the slope of V0 at low am plitudes near the zero crossings. As V0 in
creases, the voltage across R 3 increases to begin forw ard biasing D, and Z)3 for positive
outputs, or D 2 and D 4 for negative outputs. W hen these diodes conduct, they shunt feed
back resistance /?3, lowering the gain. This tends to shape the triangular output above about
0.4 V into a sine wave. In order to get rounded tops for the sine-wave output, R 2 and diodes
D5 and D 6 are adjusted to make am plifier gain approach zero at the peaks o f V0.
T he circu it is adjusted by co m paring a 1-kHz sine wave and the o u tp ut o f the
triangle/sine-w ave converter on a dual-trace CRO. /?,, R 2, R 3, and the peak am plitude of
Ej are adjusted in sequence for best sinusoidal shape. The adjustm ents interact, so they
should be repeated as necessary. {Note: A lthough the circuit of Fig. 7-19 will shape a tri
angular wave to a sine wave, the parts count is high, but you may need to generate such
a w aveform with readily available parts. A better solution is to purchase an IC chip that
generates triangle, square, and sine waves in a single package.)
210 Chapter 7
A rrange the parts as show n and change the attributes o f the parts as given in Fig. 7-2. Set
up the sine-w ave attributes by double-clicking the sym bol. In the pop-up w indow change
VOFF, VAMPL, and FREQ
VOFF = > 0 = > Save Attr
VAMPL = > 2V = > Save Attr —> Change Display —> Both name and value
FREQ = > 1kHz = > Save Attr = > Change Display = > Both name and value
C lose the pop-up box. D ouble-click on the lead from the sine wave to R x and label it E h
D ouble-click on the lead from the cathode term inal of diode D 2 and label it V0 (see Fig.
7-20).
_y2
15V
VO
-V
Vam pl = 2V
freq = lk
“ l5V
Vo
In order to obtain a plot o f E, and VG versus tim e, w e m ust initialize the T ransient menu.
FIG U RE 7-25 Plot of Vr, versus time for the mean-absolute-value amplifier
in Fig. 7-24.
PROBLEMS _____________________________________________________________________
7-1. What is the absolute value of +3 V and - 3 V?
7-2. If the peak value of E{ — 0.5 V in Fig. 7-1, sketch the waveshapes of VQ vs. t and Va vs. £,
for both a silicon and an ideal diode.
7-3. If E{ is a sine wave with a peak value of 1 V in Figs. 7-2 and 7-3, sketch the waveshapes of
V0 vs. l and VQ vs. Er
7-4. If diodes D\ and D2 are reversed in Fig. 7-2, sketch V0 vs. £, and Va vs. t.
7-5. Sketch the circuit for a signal polarity separator.
7-6. Let both diodes be reversed in Fig. 7-8. What is the value of Vn if £,• = +1 V or E, - - 1 V?
7-7. What is the name of a circuit that follows the voltage peaks of a signal and stores the highest
value?
7-8. How do you reset the hold capacitor’s voltage to zero in a peak follower-and-hold circuit?
7-9. How do you convert the absolute-value amplifier of Fig. 7-13 to an ac-to-dc converter?
7-10. If resistor mR is changed to 50 kH in Example 7-1, find (a) Vref; (b) VOA when E, = 10 V;
(c) when Et = 10 V.
7 - 11. If resistor Rc is removed in Fig. 7-18, sketch Va vs. Et.
CHAPTER 8
Differential,
Instrumentation, and
Bridge Amplifiers
W hen you com plete this chapter on differential, instrum entation, and bridge am plifiers,
you w ill be able to:
• D raw the circuit for a basic differential am plifier, state its o u tp u t-in p u t equation, and ex
plain why it is superior to a single-input am plifier.
•D e fin e com m on-m ode and differential input voltage.
•D raw the circuit for a differential input to differential output voltage am plifier and add
a differential am plifier to m ake a three-op-am p instrum entation am plifier (IA).
• C alculate the output voltage o f a three-op-am p instrum entation am plifier if you are given
the input voltages and resistance values.
• U se com m ercially available instrum entation am plifiers.
• Explain how the sense and reference term inals o f an IA allow you to (1) elim inate the
effects o f connecting-w ire resistance on load voltage, (2) obtain load current boost, or
(3) m ake a differential voltage-to-current converter (ac current source).
Differential, Instrumentation, and Bridge Amplifiers 217
• E xplain how a strain gage converts tension or com pression forces into a change in re
sistance.
• C onnect strain gages into a passive bridge resistance netw ork to convert gage resistance
change into an output voltage.
•A m p lify the strain gage b rid g e’s differential output w ith an instrum entation am plifier.
• M easure pressure, force, or weight.
• Draw the circuit for a bridge am plifier and show how it converts a change in transducer
resistance to an output voltage.
• U se the bridge am plifier to m ake a tem perature-to-voltage converter.
The m ost useful am plifier for m easurem ent, instrum entation, or control is the in stru m en
tation amplifier. It is designed w ith several op am ps and precision resistors, w hich m ake
the circuit extrem ely stable and useful w here accuracy is im portant. T here are now many
integrated circuits available in single packages. A lthough these packages are m ore ex
pensive than a single op am p, w hen perform ance and precision are required, the in stru
m entation am plifier is well w orth the price, because its perform ance cannot be m atched
by the average op amp.
A first cousin and basic block w ithin the instrum entation am plifier is the differen
tial amplifier, also referred to as a subtractor circu it T his chapter begins with the differ
ential am plifier, show ing the applications in w hich it is superior to the ordinary inverting
or noninverting am plifier. T he differential am plifier, w ith som e additions, leads into the
instrum entation am plifier, w hich is discussed in the second part o f this chapter. T he final
sections consider bridge am plifiers, w hich involve both instrum entation and basic differ
ential am plifiers.
8-1.1 Introduction
T he differential am plifier can m easure as well as am plify sm all signals that are buried in
m uch larger signals. How the differential am plifier accom plishes this task w ill be studied
in Section 8-2, but first, let us build and analyze the circuit perform ance o f the basic d if
ferential am plifier.
Four precision (1% ) resistors and an op am p m ake up a differential am plifier, as
show n in Fig. 8-1. T here are two input term inals, labeled ( - ) input and ( + ) input, co r
responding to the closest op am p term inal. If E v is replaced by a short circuit, E 2 sees an
inverting am plifier w ith a gain o f —m. T herefore, the output voltage due to E 2 is —m E 2.
N ow Jet E 2 be short-circuited; £ , divides betw'een R and m R to apply a voltage o f E xm!
(1 + m) at the op a m p ’s ( + ) input. This divided voltage sees a noninverting am plifier with
a gain of {m + 1). T he output voltage due to E\ is the divided voltage, E vm!{ 1 + m), tim es
the noninverting am plifier gain, (1 + m), w hich yields m E x. T herefore, E { is am plified at
Differential, Instrum entation, and Bridge A m plifiers 219
mR = 100 k£2
------------V W -------------
+v
(a)
+ 10V
*4
(b)
FIG U RE 8-2 (a) The common-mode voltage gain should be zero, (b) Basic
differential amplifier connected to a Wheatstone bridge.
220 Chapter 8
larger noise voltage. It may be possible to arrange the circuit so that the larger undesired
signal is the com m on-m ode input voltage and the sm all signal is the differential input
voltage. T hen the differential am plifier’s output voltage will contain only an am plified
version o f the differential input voltage.
O perational am plifier circuits, as w ell as op am ps, have com m on m ode error, and
the com m on m ode voltage is different for the circuit and the op am p. In this section, we
will introduce com m on m ode voltage and com m on m ode rejection for a basic differential
am plifier circuit, w hich is the fundam ental building block for the instrum entation am pli
fier. In C hapter 10, com m on m ode rejection is revisited, but for the op am p only.
R efer to the basic differential am plifier circuit in Fig. 8-2(b). T he difference v o lt
age, £ , - E2, may be defined as input difference signal voltage, Eds, and the average o f
the tw o inputs, ( E l + E 2)/2 , is defined as the com m on m ode voltage, E cm. In this circuit,
the differential am plifier is being used to m easure the voltage difference betw een the two
output nodes o f a W heatstone bridge.
E x a m p le 8-2
For the circuit o f Fig. 8-2(b), the bridge is slightly unbalanced and the input voltages with
respect to ground are £ , = 5 V 4- 2 mV and E2 = 5 V — 2 mV. D eterm ine (a) the input
signal voltage and (b) the com m on m ode voltage.
£ ds = E x - E 2 = (5 V + 2 m V) - (5 V - 2 mV) = 4 mV
Ideally, the circuit design is to reject the com m on m ode voltage and am plify the input
signal voltage.
Introduction
C ircuits or op am ps are com pared to one another by their com m on-m ode rejection (CM R )
or com m on m ode rejection ratio (CM R R). C M R is a m easure o f the change in output
voltage w hen both inputs are changed by an equal am ount. CMR_R is a ratio expression,
Differential, Instrum entation, and Bridge A m plifiers 221
w hile com m on-m ode rejection is a logarithm o f that ratio. For exam ple, if C M R R is
10,000, the C M R is calculated by
C M R = 20 log jo CM R R ( 8- 2 )
R? 7?3 + R4
Vn = E> (8-3)
Ri + R 2
For this circuit to w ork properly all resistors have to be carefully ratio-m atched to
m aintain excellent com m on-m ode rejection. For exam ple, if all the resistors are equal,
then the output voltage is the difference o f the input signals, V0 = E\ ~ E 2>and if the in
put voltages are equal, then VQ is 0. T his results in an infinite com m on-m ode rejection.
How ever, let's consider the situation w here one resistor is m ism atched and the circu it val
ues are E y — E 2 — E and R x = R 3 — R4 = R. T he m ism atched resisto r is R 2 w here R 2 =
R + 0A % R . A pplying Eq. (8.3) yields
1.0017?\ / 2R
Vn = X E = 0.0005 X E
2.001 R ) \ R
A lthough this expression shows the input voltage is reduced by 2000 (1/0.0005),
the com m on-m ode rejection o f the circuit has been degraded to
CM R = 20 log jo (2000) = 66 dB
In this application, we have discussed only the com m on-m ode rejection o f the cir
cuit and considered the op am p to be ideal. A disadvantage w ith the basic differential am
plifier circuit in Fig. 8.2(b) is that a slight m ism atch o f the resistors causes a degradation
of the CM R. In this exam ple, the m ism atch was R2, but a m ore com m on m ism atch is the
input resistors R\ or R 3 because o f loading effect(s). A solution to this problem will be
covered in Section 8-3.
A sim plified w iring diagram o f an inverting am plifier is show n in Fig. 8-3. T he pow er
com m on term inal is show n connected to earth ground. Earth ground com es from a co n
nection to a w ater pipe on the street side o f the w ater meter. G round is extended via co n
duit or a bare Rom ex w ire to the third (green) w ire o f the instrum ent line cord and finally
to the chassis o f the am plifier. T his equipm ent or chassis ground is m ade to ensure the
Am plifier
ground ground
FIGURE 8-3 Noise voltages act as if they are in series with the input signal
Consequently, both are amplified equally. This arrangement is unworkable
if En is equal or greater than £,.
safety o f hum an operators. It also helps to drain off static charges or any capacitive co u
pled noise currents to earth.
T he signal source is also show n in Fig. 8-3 to be connected to earth ground. Even
if it w ere not grounded, there would be a leakage resistance or capacitance coupling to
earth, to com plete a ground loop.
Inevitably, noise currents and noise voltages abound from a variety o f sources that
are often not easily identifiable. T he net effect o f all this noise is m odeled by noise volt
age source En in Fig. 8-3. U sing the pow er supply com m on as the reference, it is evident
that E n is in series with signal voltage E h so that both are am plified by a factor o f - 1 0 0
due to the inverting am plifier. En may be m uch larger than For exam ple, the skin sig
nal voltage due to heart beats is less than 1 mV, w hereas the bod y ’s noise voltage m ay be
tenths o f volts or m ore; it w ould be im possible to m ake an EK G m easu rem en t w ith a sin
gle-input am plifier. W hat is needed is an am plifier that can distinguish betw een Et and E n
and am plify only E h Such a circuit is the differential am plifier.
A differential am plifier is used to measure only the signal voltage (see Fig. 8-4). The signal
voltage Ej is connected across the ( + ) and ( —) inputs of the differential amplifier. Therefore,
Ei is am plified by a gain o f —100. Noise voltage En becom es the com m on-m ode voltage in
put voltage to the differential am plifier as shown in Fig. 8-2. (Note: Apply superposition.)
Therefore, the noise voltage is not am plified and has been effectively elim inated from hav
ing any significant effect on the output Vot as long as the resistors are matched as shown.
Differential, Instrum entation, and Bridge A m p lifiers 223
A m plifier
Third line
' cord wire
FIGURE 8-4 The differential amplifier is connected so that noise voltage be
comes the common-mode voltage and is not amplified. Only the signal voltage
Ej is amplified because it has been connected as the differential input voltage.
T here are tw o disadvantages to the basic differential am plifier studied thus far: It has low
input resistance, and changing gain is difficult because the resistor ratios m ust be closely
m atched. T he first disadvantage is elim inated by buffering or isolating the inputs with volt
age followers. This is accom plished w ith two op am ps connected as voltage follow ers in
Fig. 8-5(a). The output o f op am p A, with respect to ground is E u and the output o f op
am p A 2 w ith respect to ground is E2. The differential output voltage V0 is developed across
the load resistor R L. V0 equals the difference between E\ and E 2 (V0 = E x — E 2). N ote that
the output o f the basic differential am plifier of Fig. 8-1 is a single-ended output; that is,
one side o f R L is connected to ground, and V0 is m easured from the output pin o f the op
am p to ground. The buffered differentia] am plifier o f Fig. 8-5(a) is a differential output;
that is, neither side of R L is connected to ground, and V0 is m easured only across R L.
T he second disadvantage o f the basic differential am plifier is the lack o f adjustable gain.
T his problem is elim inated by adding three m ore resistors to the buffered am plifier. T he
resulting buffered, differential-input to differential-output am plifier w ith adjustable gain
is show n in Fig. 8-5(b). T he high input resistance is preserved by the voltage follow ers.
(a) B u ffered d iffer en tia l-in p u t to d iffe r e n tia l-o u tp u l a m p lifier.
+V
T he instrum entation am plifier (IA ) is one o f the m ost useful, precise, and versatile am
plifiers available today. Youwill find at least one in every data acquisition unit. The b a
sic IA is m ade from three op am ps and seven resistors, as show n in Fig. 8-6. To sim plify
circuit analysis, note that the instrum entation am plifier is actually m ade by connecting a
buffered am plifier [Fig. 8-5(b)] to a basic differential am plifier (Fig. 8-1). O p am p A 3 and
its four equal resistors, R, form a differential am plifier w ith a gain o f 1. O nly the A 3 re
sistors have to be m atched. T he prim ed resistor, R \ can be m ade variable to balance out
any com m on-m ode voltage, as show n in Fig. 8-2. O nly one resistor, aR, is used to set the
gain according to Eq. (8-6), repeated here for convenience:
V 2
^ — = 1+ - (8-6)
E ]- E2 a
w here a = aR /R .
£ ] is applied to the ( + ) input and E2 to the ( —) input. V0 is proportional to the dif
ference betw een input voltages. C haracteristics o f the instrum entation am plifier are su m
m arized as follow s:
E x a m p le 8-3
aR 50 1
= a
R 25,000 500
1+ - = 1+ = 1 + (2 X 500) = 1001
£, ~ E 7 a 1/500
E x a m p le 8-4
S o lu tio n a = «>, so
1/ 2
= 1+ — = 1
e {- e2
E x a m p le 8-5
In Fig. 8-6, the follow ing voltages are applied to the inputs. E ach voltage polarity is given
w ith respect to ground. A ssum ing the gain o f 1001 from E xam ple 8-3, find V0 fo r (a)
E } = 5.001 V and E 2 = 5.002 V; (b) £ , = 5.001 V and E 2 = 5.000 V; (c) E x = - 1 .0 0 1 V,
E 2 = - 1 .0 0 2 V.
S o lu tio n (a)
- lO O l(-O .O O l) V = —1.001 V
T he versatility and perform ance o f the instrum entation am plifier in Fig. 8-6 can be im
proved by breaking the negative feedback loop around op am p A3 and bringing out three
term inals. As show n in Fig. 8-8, these term inals are output term inal 0, sense term inal Sf
and reference term inal R. If long w ires or a current-boost transistor are required betw een
the instrum entation am plifier and load, there will be voltage drops across the connecting
w ires. To elim inate these voltage drops, the sense term inal and reference term inal are
w ired directly to the load. Now, w ire resistance is added equally to resistors in series w ith
the sense and reference term inals to m inim ize any m ism atch. Even m ore im portant, by
sensing voltage at the load term inals and not at the am p lifier’s output term inal, feedback
acts to hold load voltage constant. If only the basic differential am plifier is used, the out-
+v
A
R Sense
R
AAA---- o
2
Connecting wire
resistance
FIGURE 8-8 Extending the sense and reference terminals to the load termi
nals makes Va depend on the amplifier gain and the input voltages, not on the
load current or load resistance.
Differential, Instrum entation, and Bridge A m p lifiers 231
49,400 \
G ain = 1 + (8-7)
Rc I
For gain values of 1, 10, 100, and 1000, a table listing the R G values is given in Fig. 8-9(b).
The usual w ay to m easure VCE o f a w orking com m on-em itter am plifier circuit is to
(1) m easure collector voltage (w ith respect to ground), (2) m easure em itter voltage (w ith
respect to ground), and (3) calculate the difference. The IA allow s you to m ake the m ea
surem ent in one step, as show n in Fig. 8-9(b). Since £ , = Vcolleclor and E 2 = Vemi(ter,
Example 8-6
5 V = (£ , - E 2) =
Example 8-7
E xtend E xam ple 8-6 as follows. C onnect + In to the em itter and - In to ground, assum e
V0 m easures 1.2 V, and calculate (a) em itter current Z£ ; (b) the voltage across R L or VRL.
/£ = ^ = i ^ = 1.2 mA
Re i kn
(b)
V,c o l l e c t o r = V « + V „ = 5 V + 1 .2 V = 6 .2 V
Vrl = Vrr - V,c o l l e c t o r = 15 V - 6.2 V = 8.8 V
C C v
Part (a) o f this exam ple show s how to m easure current in a w orking circuit by m easuring
the voltage drop across a know n resistor.
T he A D 620 instrum entation am plifier does not have a sense term inal. T herefore, if your
application requires this term inal, choose another IA such as the A D 524 or A D 624. Figure
8-10 show s how to m ake an excellent current source that can sink or source dc current
into a grounded load. It can also be an ac current source.
232 Chapter 8
+ 15 V -1 5 V
To understand how this circuit operates, one m ust understand that the IA’s output
voltage at pin 9 depends on load current, / L, load resistor, R Ly and current set resistor, R s.
In equation form
V9 = K ef + g a ln (£ | - E 2) (8-9b)
T he A D 547 voltage follow er forces the reference voltage to equal load voltage or VrCf =
I l R l . Since the IA’s gain is set for 10 in Fig. 8-10, we can rew rite Eq. (8-9b) as
V9 = l LR L + 10(£, - E 2) (8-9c)
E quate Eqs. (8-9a) and (8-9c) to solve for 1L, w hich yields
E quation (8-9d) indicates that load resistor, R L , does not control load current; this
is true as long as neither am plifier is forced to saturation. 1L is controlled by R , and the
difference betw een £ , and E 2.
Example 8-8
In the circuit o f Fig. 8-10, Rs = 1 kH , E\ = 100 mV, E 2 = 0 V, and R L = 5 kCl. Find (a)
(b) VR - (c) Vref; (d) V9.
Differential, Instrum entation, and Bridge A m plifiers 233
4 = 10
IlRs = (1 m A )(l
(b) VRr = k ft) = 1 V
(c)vj= IlRl (1 m A )(5
= k ft) = 5 V
(d) From Eq. (8-9a) or (8-9c),
V9 = I l R s + I l R l = 1 V + 5 V = 6 V
or
In C hapter 3, we m entioned that som e sensor circuits are designed with a differential o u t
put. However, the input voltage to a m icrocontroller is w ith respect to ground and hence
is single ended. T herefore we need a signal conditioning circuit (SC C) that has a differ
ential input and a single-ended output— the instrum entation am plifier. We begin by intro
ducing a sensor circuit with a differential output.
A strain gage is a conducting w ire w hose resistance changes by a sm all am ount w hen it
is lengthened or shortened. T he change in length is sm all, a few m illionths o f an inch.
T he strain gage is bonded to a structure so that the percent change in length o f the strain
gage and structure are identical.
A foil-type gage is show n in Fig. 8 -1 1(a). T he active length o f the gage lies along
the transverse axis. T he strain gage m ust be m ounted so that its transverse axis lies in the
sam e direction as the structure m otion that is to be m easured [see Figs. 8 -1 1(b) and (c)].
L engthening the bar by tension lengthens the strain gage conductor and increases its re
sistance. C om pression reduces the g ag e’s resistan ce b ecause the norm al length o f the
strain gage is reduced.
S train gages are m ade from m etal alloy such as co n stan tan , N ich ro m e V, D ynaloy,
Stabiloy, or platinum alloy. For high-tem perature w ork they are m ade o f wire. For m od
erate tem perature, strain gages are m ade by form ing the m etal alloy into very thin sheets
by a photoetching process. The resultant product is called a foil-type strain gage and a
typical exam ple is show n in Fig. 8 -1 1(a).
No. 30 insulated Lateral axis
instrument wire ^
I _______ A c tiv e __
length
(a) Metal foil-type strain gage.
Hi AD 1kor
In the next section, we show that our instrum entation m easures only the g ag e’s change in
resistance AR. The m anufacturer specifies the unstrained g ag e’s resistance R. O nce AR has
been m easured, the ratio AR /R can be calculated. The m anufacturer also furnishes a spec
ified gage fa c to r (GF) for each gage. T he gage factor is the ratio o f the percent change in
resistance of a gage to its percent change in length. T hese percent changes m ay also be ex
pressed as decim als. If the ratio AR /R is divided by gage factor G, the result is the ratio o f
the change in length o f the gage AL to its original length L O f course the structure w here
the gage is m ounted has the sam e AL /L An exam ple will show how gage factor is used.
E x a m p le 8-9
A 1 2 0 strain gage w ith a gage factor o f 2 is affixed to a m etal bar. T he bar is stretched
and causes a A R o f 0.001 Cl. Find A L/L.
234
Differential, Instrum entation, and Bridge A m p lifiers 235
Solution
T he ratio AL/L has a nam e. It is cal led unit strain. It is the unit strain data (we have
developed from a m easurem ent o f AR) that m echanical engineers need. They can use this
unit strain data together w ith know n characteristics o f the structural m aterial (m odulus o f
elasticity) to find the stress on the beam. Stress is the am ount o f fo rc e acting on a unit
area. T he unit for stress is pounds per square inch (psi). If the bar in E xam ple 8-9 w ere
m ade of m ild steel, its stress w ould be about 125 psi. Strain is the deform ation o f a ma~
B efore m ounting a strain gage the surface o f the m ounting beam m ust be cleaned, sanded,
and rinsed w ith alcohol, Freon, or m ethyl ethyl ketone (M EK ). The gage is then fastened
perm anently to the cleaned surface by E astm an 910, epoxy, polym ide adhesive, or ce
ram ic cem ent. T he m anufacturer’s procedures should be follow ed carefully.
It is the change o f resistance in a strain gage AR that m ust be m easured and this change
is small. AJ? has values of a few m illiohm s. T he technique em ployed to m easure small re-
To m easure resistance, w e m ust first find a technique to convert the resistance change to
a current or voltage for display on an am m eter or voltm eter. If we m ust m easure a sm all
change of resistance, we will obtain a very sm all voltage change. For exam ple, if we
passed 5 m A of current through a 1 2 0 -0 strain gage, the voltage across the gage w ould
be 0.600 V. If the resistance changed by 1 m ft, the voltage change w ould be 5 fiV . To
display the 5-/llV change, w e w ould need to am plify it by a factor of, for exam ple, 1000
to 5 mV. H ow ever, we w ould also am plify the 0.6 V by 1000 to obtain 600 V plus 5 mV.
It is difficult to detect a 5-m V difference in a 600-V signal. T herefore, we need a circuit
that allow s us to am plify only the difference in voltage across the strain gage caused by
a change in resistance. T he solution is found in the W heatstone bridge circuit.
238 Chapter 8
S uppose that you had a w orking gage and tem perature-com pensation gage in Fig. 8-14
that are equal to w ithin 1 m ft. To com plete the bridge, you install two 1%, 1 2 0 -ft resis
tors. O ne is high by 1% at 121.200 f t and one is low by 1% at 118.800 ft. T hey m ust be
equalized to balance the bridge. To do so, a 5 -ft, 20-turn balancing pot is installed, as
show n in Fig. 8-14. Theoretically, the pot should be set as show n to equalize resistances
in the top branches of the bridge at 122.500 ft.
F urther assum e that an instrum entation am plifier w ith a gain o f 1000 is connected
to the bridge of Fig. 8-14. F rom E xam ple 8-10, the o u t p u t o f the instrum entation am pli
fier (IA ) w ill be about 22 mV per m illiohm o f unbalance. This m eans th at the 5 -fl pot
m ust be adjusted to w ithin 1 m ft o f the values show n, so that E x — E2 and consequently
VQ o f the IA will equal 0 V ± 22 mV.
U nfortunately, it is very difficult in practice to adjust for balance. T his is because each
turn o f the pot is worth 5 ft/2 0 turns = 250 m ft. W hen you adjust the pot it is normal to
expect a backlash o f o f a turn. Therefore, your best efforts result in an unbalance at the
pot o f about ± 5 m ft. You observe this unbalance at the IA’s output, w here V0 changes by
± 0.1 V on either side of zero as you fine-tune the 20-tum pot. It turns out there is a better
technique that uses an ordinary linear potentiom eter ( | turn) and a single resistor.
£=10 V
Set for Set for
3.700 Cl ^ y 1.300 a
R2 - *3 =
118.800 Cl 121.200 Cl
120.000 Cl J 20.000 Cl
tem perature w orking gage
com pensation
gage
To analyze operation of the balance netw ork in Fig. 8-15, assum e that the R 2 and R 3
bridge resistors are reasonably equal, to w ithin ± I %. The strain g ag e’s resistance should
have equal resistances w ithin several m illiohm s if the w orking gage is not under strain.
Differential, Instrum entation, and Bridge A m plifiers 239
E= 10 V
Balance
I
network
f= 1.0$
v
FIGURE 8-15 Improved balance network. <RBi and RB, allow easy adjustment
of V0 to 0 V.
R esistor R B i is an ordinary 3/4-turn linear pot. Its resistance should be about 1/10
or less than resistor R Bl so that the voltage f E depends only on E and the decim al frac
t i o n / Values o f / v a r y from 0 to 1.0 as the pot is adjusted from one lim it to the other. R B]
should be 10 or m ore tim es the gage resistance.
Resistor R Bl is chosen to be greater than 10 or more times R B]. U nder these conditions
RB2 does not load down the voltage-divider action of RB]. Also, the size o f R B2 determ ines
the m axim um balancing current that can be injected into, or extracted from, the E2 node. The
pot setting /d e te rm in e s how much of that m axim um current is injected or extracted.
B alancing action is sum m arized by observing that i f / > 0.5, a sm all current is in
jected into the E 2 node and flows through the tem perature gage to ground, this m akes E 2
m ore positive. If / < 0.5 current is extracted from the E 2 node, this increases current
through R 2 to m ake E 2 less positive.
In a real bridge setup, begin with R Bl = 100 k fl and R B] = 10 k fl. M onitor VQ o f
the IA and check the balancing action. If the variation in VQ is larger than you w ant, in
crease R Bl to 1000 k f l and recheck the balance action. T he final value o f RB7 is selected
by experim ent and depends on the m agnitude o f unbalance betw een R2 and R 3.
A single w orking gage and a tem perature-com pensation gage w ere show n to give a d if
ferential bridge output in Fig. 8-12 o f
( 8 - 11)
This bridge circuit and placem ent o f the gages is show n again in Fig. 8 - 16(a).
Differential, Instrum entation, and Bridge A m p lifiers 241
T he bridge output voltage E x — E2 can be doubled by doubling the num ber o f w ork
ing gages, as in Fig. 8-16(b). G ages 1-2 and 5 -6 are the w orking gages and w ill increase
resistance (tension) if force is applied as shown. By arranging the w orking gages in oppo
site arm s of the bridge and the tem perature gages in the other arm s, the bridge output is
AR AR
£, - E? = E - E ( 8 - 12 )
2 R + AR 2R
If the structural m em ber experiences bending as show n in Fig. 8 - 16(c), even greater
bridge sensitivity can be obtained. T he upper side o f the bar will lengthen (tension) to in
crease the resistance of the w orking strain gages by + A R. The low er side o f the bar will
shorten (com pression) to decrease the w orking strain gages by —A/?.
T he te n sio n gages 1 -2 and 5 - 6 are co n n ected in o p p o site arm s o f the bridge.
C om pression gages 3 - 4 and 7 -8 are connected in the rem aining opposite arm s o f the
bridge. T he gages also tem perature-com pensate one another. T he output o f the four-strain-
gage arrangem ent in Fig. 8 -16(c) is quadrupled over the single-gage bridge to
AR
E| ~Ey = E (8-13)
R
O f course, each bridge arrangem ent in Fig. 8-16 should be connected to a balance
netw ork (w hich, for clarity, was not show n) (see Fig. 8-15 and Section 8-8). N ote that the
output o f the four-gage bridge is linear.
As show n in Fig. 8-17, an A D 620 (A nalog D evices) instrum entation am plifier (IA ) is co n
nected to a bridge arrangem ent of four strain gages. T he gages are 1 2 0 -0 , SR4, foil-type
strain gages. T hey are m ounted on a steel bar in accordance w ith Fig. 8 -16(c). A lso the
balance netw ork o f Fig. 8-15 is connected to the strain-gage bridge. R&2 w as selected, af
ter experim ent, as 100 k fl. Strain gages w ere m ounted in strict accordance w ith the m an
u facturer’s instructions (BLH Electronics, Inc.). From the table in Fig. 8-9(b) R c is se
lected for a gain o f 1000.
E x a m p le 8-11
T he SCC o f Fig. 8-17 is used to m easure the strain resulting from deflection o f a steel
bar. V0 is m easured to be 100 mV. C alculate (a) AR \ (b) AR /R \ (c) AL/L. The gain is
1000. The gage factor is 2.0.
100 mV
Et -Eo = = 0.1 mV
1000
Differential, Instrum entation, and Bridge A m p lifiers 243
8-12.1 Introduction
Som e transducers can be connected into a low er-parts-count signal conditioning circuit
called a bridge am plifier. A n op am p, four resistors, and a tran sd u cer form the basic
bridge am plifier in Fig. 8-1 8(b). The transducer in this case is any device that converts
an environm ental change to a resistance change. For exam ple, a therm istor is a tran s
ducer w hose resistance decreases as tem perature increases. A p h o to co n d u ctive cell is a
transducer w hose resistance decreases as light intensity increases. For circuit analysis,
the transducer is represented by a resistor R plus a change in resistance AR. R is the re
sistance value at the desired reference, and AR is the am ount of change in R. For ex am
ple, a UUA 41J1 therm istor has a resistance of 10,000 f l at a reference o f 25°C . A tem
perature change o f +1 ° to 26°C results in a therm istor resistance o f 9573 f l. AR is found
to be negative from
^ tra n sd u c e r ^ re fe re n c e
9573 n = 10,000 n + AR
AR = -4 2 1 n
Since we have defined 25°C to be the reference tem perature, w e define the reference re
sistance to be R vef — 10,000-ft. O ur definitions force AR to have a negative sign if the
transducer’s resistance is less than R ref.
To operate the bridge, we need a stable bridge voltage E y w hich may be either ac
' or dc. E should have an internal resistance that is sm all with respect to R. T he sim plest
way to generate E is to use a voltage divider across the stable supply voltages as show n
in Fig. 8-18(a). Then connect a sim ple voltage follow er to the divider. For the resistor val
ues shown, E can be adjusted between + 1 0 and —10 V.
Differential, Instrum entation, and Bridge A m p lifiers 245
V. - ~ E = - / AR (8-14)
Zeroing procedure
1. Place the transducer in the reference environm ent: for exam ple, 25°C.
2. A djust R ref until V0 = 0 V.
N orm ally, it is too costly to control an environm ent fo r test or calibration o f a single cir
cuit. Therefore, (1) replace the transducer, R trans, w ith a resistor equal to R ref; (2) now, AR
equals zero; (3) from Eq. (8-14), V0 should also be equal to zero.
S uppose that V0 is close to, but not equal to, zero. You w ant to adjust VQto pre
cisely zero volts.
In this section we show how to design a low -parts-count tem perature-m easuring system
to illustrate a design procedure.
D esign a tem perature-to-voltage converter that w ill m easure tem peratures betw een 25°
and 50°C.
Design Procedure
1. Select any therm istor on a trial basis. T he therm istor converts a tem perature change to
a resistance change. Select the F enw al U U A 41J1 and list its corresponding tem p era
ture versus resistance as in Table 8-1. (N ote the nonlinearity betw een tem perature and
resistance.)
2. Select the reference tem perature. A t the reference tem perature, V0 m ust equal zero.
S elect either the low lim it of 25°C or the high lim it o f 50°C. We shall select the low
lim it o f 25°C for this exam ple. We have ju s t defined R ref. R Tet- is equal to the tran s
d u ce r’s resistance at the reference tem perature. Specifically, 7 ref = 25°C ; therefore,
ftref = 10,000 H . Now calculate AR for each tem perature from
Mrans iVrer
At 50°C,
3603 f t = 10,000 f t + ar
AR = - 6 3 9 7 ft
Temp. (°C) * ,r
25 10,000 1983
30 8,057 Ohmic change for 5°C change
35 6,530
nonlinear
5,327
/
40
45 4,370
767
50 3,603 Ohm ic change for 5°C change
3. P redict the voltage-tem perature characteristics. We shall select the bridge circuit o f
Fig. 8-18 because it converts a resistance change AR into an output voltage [see Eq.
(8-14)].
a. S elect resistors R\ to equal 10 k ft, 1%.
b. M ake a trial choice for E = 1.0 V.
If you are w ondering w hy we should m ake these particular choices, the answ er is
that (1) 10-k ft resistor sizes are readily available, and (2) a 1-V selection w ill give us
an idea o f the size of V0. If later you w ant to double or triple Voy sim ply double or
triple E.
c. C alculate / from Eq. (8-14).
1V
I = = 0.050 mA
io kft + 10 kn
d. C alculate VQ for each value of R and tabulate the results (see Table 8-2). From Eq.
(8-14),
= - / AR
For 50°C,
4. D ocum ent p erfo rm a n ce. VQ is plotted against tem perature in Fig. 8-19, w here the d e
sign circuit is also draw n.
248 Chapter 8
Summary review and comments. E xam ple 8-12 show s how a bridge circuit
converts the resistance change of a transducer into a voltage change. The circuit output
voltage is linear w ith respect to AR [see Eq. (8-14)]. However, AR is not linear with re
spect to tem perature (see Table 8-1 and Fig. 8-19). Therefore, Va is not linear with respect
to tem perature. The bridge sim ply transm its the nonlinearity o f the therm istor.
T he sensitivity of the tem perature-to-voltage converter can be increased easily by
increasing E. T he m axim um value of E is set by the m axim um therm istor current to avoid
self-heating, typically 1 mA. T herefore, E has a m axim um value of
If we w ant to increase the 319-m V output span (E = 1 V) to a 5 .0-V span for the input
to a m icrocontroller, sim ply increase E by 15.67 to 15.67 V [(5.0 V /0.319 V = 15.67)].
In som e applications it is necessary to have one term inal o f the transducer connected to
ground. T he standard technique is show n in Fig. 8-20(a). N ote that current I depends on
transducer resistance (in Figs. 8 - 18 and 8-19, the current w as constant). N ote also that V0
is not linear with AR because AR appears in the denom inator o f the equation for V0 ver
sus AR. Finally, in contrast w ith D esign E xam ple 8-10, if £ , is positive and 7 ref is at the
low end o f the scale, V0 goes negative for negative values o f AR. T hat is, if /?lrans is a ther
m istor, V0 goes m ore negative as tem perature increases.
If the current required by the transducer is higher than the current capability o f the op
am p (5 m A ), use the circuit o f Fig. 8-20(b). T ran sd u cer cu rren t is fu rn ish ed from E.
Resistors m R are chosen to hold their currents to about 1 to 4 mA. T ransducer current and
output voltage may be found from the equation in Fig. 8-20(b). If the transducer current
250 Chapter 8
8-4. For the differential amplifier circuit of Fig. 8-2(b), all the resistors are equal to 10 kfl except
R2, which is mismatched by 5 H (R2 = 10 kCl + 5 Cl). What is the common mode rejection
of the circuit?
8-5. Design the differential amplifier circuit of Fig. 8-2(b) for a gain of 4. The input resistors R ,
and R3 are equal to 25 kfl.
8 - 6 . A circuit has a common-mode rejection ratio of 100,000. What is the common-mode rejec
tion?
8-7. A circuit has a CMR of 75 dB. What is the common-mode rejection ratio?
8 - 8 . In Fig. 8-3, E, — 2 mV and En = 50 mV. What is the output voltage due to (a) (b)£„?
8-9. In Fig. 8-4, Ej = 2 mV and En - 50 mV. What is the output voltage due to (a) £,■; (b)Enl
8 - 10. What is the main advantage of a differential amplifier over an inverting amplifier with re
spect to an input noise signal voltage?
8 - 11. Find VQ in Fig. 8-5(b) if £, = - 5 V and E2 = - 3 V.
8 - 12, In Fig. 8-5(b), R = 10 kH and aR = 2 kH. If Ex = 1.5 V and E2 = 0.5 V, find V0.
8-13. In Fig. 8-6 the overall gain is 21 and VQ = 3 V. Determine (a) E x — E2, (b) a.
8-14. In Fig. 8-6, R = 25 kCly aR = 100 Cty E {= 1.01 V, and £ 2 = 1.02 V. Find V0.
8-15. If Ker - 5.0 V in Fig. 8-7, find (a) V0\ (b) the voltage at the ( + ) input with respect to ground.
8-16. Refer to the circuit of Fig. P8-16. Complete the table below for each input condition.
(a) -2 -2 0
(b) -2 -2 2
(c) 2 -2 -2
(d) 2 0 2
10 k O
-A /W -
10 kQ
-AAAr-
10 k a
-AAyV-
S y
io k a ; -
10 kO •
FIGURE P8-16
8-17. Refer to the voltage-to-current converter of Fig. 8-10. Assume that the AD524 is wired for a
gain of 1 [no wires on pins 13 and 3]. The load current is now IL = (£| — E2)!RS. Let Rs =
1 kCl, E2 = 0 V or ground, and E\ = 1 V. (a) Will the direction of IL be up or down in Fig.
8-10? (b) Find IL. (c) Find the voltage across RL \ f RL = 100 fl. (d) Find the output voltage
of the IA (V9) if RL = 3 kCL.
Differential, Instrum entation, and Bridge A m p lifiers 251
8-18. Repeat Problem 8-17 except change E2 = ground and E , = 1 V. (Note that Section 8-5.3 tells
you how to make an ac voltage-controlled current source for a grounded load.)
8-19. Change E\ to —1 V in Problem 8-17. (a) Would V0 be positive or negative withrespect to
ground? (b) Would V0 decrease or increase in magnitude as temperature increased?
8-20. In Fig. 8-16, the value for/? = 120.00 H, AR = 1.2 raO, and E = 10.0 V. Find (£, - E2) for
the strain-gage arrangement of (a) Fig. 8-16(a); (b) Fig. 8- 16(b); (c) Fig. 8-16(c).
8-21. Assume that an IA with a gain of 1000 is wired to the bridges of Problem 8-20. Find V0 for
each of the three bridge arrangements.
8-22. Consider a gage factor of 2 in Problems 8-20 and 8-21 and calculate AL/L for each bridge
arrangement.
8-23. Refer to Section 8-12.3. To gain experience with this type of bridge circuit, repeat Design
Example 8-13 (except change only your reference temperature to 50°C. R\ remains at 10 kfi
and E — 1 V). Present your solution in the same format as shown in Table 8-2 and Fig. 8-19.
Redraw the new design schematic like that of Fig. 8-19. [Remember that Rmf will now be
3603 ft so that / = 1 V /(l0,000 + 3603) f t = 73.51 //A.]
8-24. You want a circuit that has an increasing magnitude of output voltage as temperature of a
thermistor increases. You put the thermistor in the feedback loop [see Fig. 8-18(b)]. Would
you choose Rret- at the low or the high end of the temperature scale? (Hint: Compare VQ vs.
VT of Design Example 8-13 with the solution of Problem 8-23.) This problem forces you to
face briefly the issue of “human engineering.” People want to see an increasing voltage as
temperature increases.
CHAPTER 9
DC Performance: Bias,
Offsets, and Drift
U pon com pletion of this chapter on dc perform ance, you will be able to:
e N am e the op amp characteristics that add dc error com ponents to the output voltage.
■ Show how an op am p requires a small bias current at both ( —) and ( + ) inputs to acti
vate its internal transistors.
° Give the definition for input offset voltage and show how it is m odeled in an op am p
circuit.
3 W rite the equation for input offset current in term s o f the bias currents.
• C alculate the effect o f input offset voltage on the output voltage o f eith er an inverting
or noninverting am plifier.
• C alculate the effects of bias currents on the output voltage o f an inverting or n o n in
verting am plifier.
• C alculate the value o f and install a com pensating resistor to m inim ize the errors in o u t
put voltage caused by bias currents.
252
DC Performance: Bias, Offsets, and Drift 253
• C onnect a nulling circuit to null out any errors due to bias currents and input offset
voltage.
• M easure offset voltage and bias currents.
• U nderstand the dc characteristics of present-day op am ps versus earlier versions.
• U nderstand the difference betw een C M R R o f an op am p and an op am p circuit.
• C alculate pow er supply rejection ratio.
9 0 INTRODUCTION ___________________________________________________________________________
5. Frequency response
6. Slew rate
Frequency response refers to how voltage gain varies as frequency changes. T he m ost
convenient way to display such data is by a plot o f voltage gain versus frequency. O p am p
m anufacturers give such a plot for open-loop gain versus frequency. A glance at the plot
quickly show s how m uch gain is obtainable at a particular frequency.
If the op am p has sufficient gain at a p articu la r frequency, th ere is still a p o ssi
bility o f an erro r being in troduced in V0. T his is b ecau se there is a fu n d am en tal lim it
im posed by the op am p (and certain circ u it cap acito rs) on h ow fa s t the o u tp u t voltage
can change. If the input signal “te lls” the op am p o u tp u t to ch an g e faster than it can,
d isto rtio n is intro d u ced in the o u tp u t voltage. T h e op am p ch aracteristic resp o n sib le
for this type o f erro r is its internal capacitan ce. T his type o f erro r is called siew -ra te
lim iting.
254 Chapter 9
Op am p characteristics and the circuit applications that each type o f error m ay af
fect are sum m arized in Table 9-1. The first four characteristics can lim it dc perform ance;
the last tw o can lim it ac perform ance.
O p am p characteristics that cause errors prim arily in dc perform ance are studied in
this chapter. T hose that cause errors in ac perform ance are studied in C hapter 10. We be
gin w ith input bias currents and w ays in w hich they cause errors in the dc output voltage
o f an op am p circuit.
Op amp application
Dc am plifier Ac amplifier
Op amp characteristic
that may affect Small Large Small Large
perform ance output output output output
In addition to these characteristics the user m ay need to consider com m on-m ode
and pow er supply rejection ratios. T hese values may be specified under static test but vary
dynam ically.
T ransistors w ithin the op am p m ust be biased correctly before any signal voltage is ap
plied. B iasing correctly m eans that the transistor has the right value o f base and collector
current as w ell as collector-to-em itter voltage. Until now, we have considered that the in
put term inals of the op am p conduct no signal or bias current. T his is the ideal condition.
Practically, however, the input term inals do conduct a sm all value o f dc current to bias
the op am p s’ transistors (see A ppendix 1). A sim plified diagram o f the op am p is show n
in Fig. 9 - 1(a). To discuss the effect o f input bias currents, it is convenient to m odel them
as current sources in series w ith each input term inal, as show n in Fig. 9 - 1(b).
T he ( - ) input's bias current, /# _ , will usually not be c;;acUy equal to the ( + ) in
p u t’s bias current, l B+. M anufacturers specify an average b.put bias current IB> w hich is
found by adding the m agnitudes of / fl+ and IB- and dividing this sum by 2. In equation
form ,
Ib (9-1)
w here | IB+ | is the m agnitude o f IB+ and | /# _ | is the m agnitude o f IB- . T he range of
IB is from 1 /j l A or m ore for general-purpose op am ps to 1 pA or less for op am ps that
256 Chapter 9
Example 9-1
C onsider a 741 op am p that has IB+ = 0.4 /xA and IB- — 0.3 Find (a) the average
bias current JB\ (b) the offset current l os.
9-3.1 Simplification
In this section it is assum ed that bias currents are the only op am p characteristic that will
cause an undesired com ponent in the output voltage. T he effects o f other op am p ch arac
teristics on VQ will be dealt w ith individually.
O utput voltage should ideally equal 0 V in each circuit o f Fig. 9-2, because input voltage
E, is 0 V. T he fact that a voltage com po n en t w ill be m easured is due strictly to IB —
(A ssum e for sim plicity that Vio, input offset voltage, is zero. Vio is discussed in Section
9-5.) In Fig. 9-2(a), the bias current is furnished from the output term inal. Since negative
feedback forces the differential input voltage to 0 V, VQ m ust rise to supply the voltage
drop across Rf . Thus, the output voltage error due to / fl_ is found from V0 = Rf IB_. IB+
flow s through 0 f 2, so it causes no voltage error. Signal source E , m ust contain a dc path
to ground.
The circuit o f Fig. 9-2(b) has the sam e output-voltage error expression, V0 = Rf IB- .
No current flow s through R h because there is 0 V on each side o f T hus all o f IB_ flows
through Rf. [Recall that an ideal am plifier w ith negative feedback has 0 voltage betw een
the ( + ) and ( - ) inputs.]
260 Chapter 9
age drop across Rf of Rf IB— If R / = R g and h + = h - , their voltage drops will cancel
each other and V0 w ill equal 0 V w hen = 0 V. U nfortunately, l B+ is seldom equal to
/fl_. V0 w ill then be equal to R c tim es the difference betw een IB+ and IB - (IB+ — / s _ =
Ios). T herefore, by m aking Rf = R G, w e have reduced the error in VQ from R GI B+ in Fig.
9-3 to —R(jIos in Fig. 9-4(a). R ecall that Ios is typically 25% o f IB. If the value o f l os is
too large, an op am p w ith a sm aller value o f l os is needed.
To m inim ize errors in V0 due to bias currents for either inverting or noninverting am pli
fiers, resistor R as show n in Fig. 9-4(b) m ust be added to the circuit. W ith no input sig
nal applied, V0 depends on Rf tim es Ios [w here Ios is given by Eq. (9-2)]. R esistor R is
called the current-com pensating resistor and is equal to the parallel com bination o f R t and
R f, or
R = R i \\Rf = (9-3)
Ri + Rf
Ri and R should include any signal generator resistance. By inserting resistor /?, the error
voltage in V0 will be reduced m ore than 25% , from Rf IB~ in Fig. 9-2(b) to - R f Ios in Fig.
9-4(b). In the event that l B_ = IB+ , then Ios = 0 and Va = 0.
A lw ays a d d a bias-current com pensating resistor R in series with the ( + ) input term inal
(except for FET input op am ps). T he value o f R should equal the parallel com bination o f
all resistance branches connected to the ( —) term inal. Any internal resistance in the sig
nal source should also be included in the calculations.
In circuits w here m ore than a single resistor is connected to the ( + ) input, bias-
current com pensation is accom plished by observing the following principle. The dc resis
tance seen from the ( + ) input to ground should equal the dc resistance seen fro m the ( —) in
p u t to ground. In applying this principle, signal sources are replaced by their internal dc re
sistance and the op amp output term inal is considered to be at ground potential.
E x a m p le 9-4
(a) In Fig. 9-4(b), Rf = 100 k f t and /?, = 10 k fl. Find R. (b) If Rf = 100 k l i and
Ri = 100 k ft, find R.
Vio is show n in series w ith the ( + ) input term inal o f the op am p. It m akes no difference
w hether Vio is m odeled in series w ith the ( —) input or the ( + ) input. B ut it is easier to
determ ine the polarity o f Vio if it is placed in series w ith the ( + ) input. For exam ple, if
the output term inal is positive (w ith respect to ground) in Fig. 9-5(b), Vio should be draw n
w ith its ( + ) battery term inal connected to the ideal op am p ’s ( + ) input.
Fig. 9-6(a) shows that Vio and the large value o f the open-loop gain o f the op am p act to
drive V0 to negative saturation. C ontrast the polarity o f Vio in Figs. 9-5(b) and 9-6(a). If
you buy several op am ps and plug them into the test circuit o f Fig. 9-6(a), som e w ill drive
V0 to + V sal and the rem ainder w ill drive V() to —Vsat. T herefore, the m agnitude and p o
larity o f Vio varies from op am p to op am p. To learn how Vio affects am plifiers w ith neg
ative feedback, we study how to m easure Vio.
F or sim plicity, the effects o f bias cu rren ts are n eglected in the fo llo w in g d iscu ssio n .
F igure 9-6(b) shows how to m easure Vio. It also show s how to predict the m agnitude o f
eiTor that Vio w ill cause in the output voltage. Since E L = 0 V, V0 should equal 0 V, but
Vio acts exactly as w ould a signal in series w ith the noninverting input. T herefore, Vio is
am plified exactly as any signal applied to the ( + ) input o f a noninverting am plifier (see
Section 3 -5 ). The error in V0 due to Vio is given by
(9-4)
T he output error voltage in Fig. 9-6(b) is given by Eq. (9-4) w hether the circuit is used
as an inverting or as a noninverting amplifier. That is, Et could be inserted in series with /?,
(inverting amplifier) for a gain of —(Rf/Ri) or in series with the ( + ) input (noninverting am
plifier) for a gain of 1 4- {Rf/Rt). A bias-current com pensating resistor (a resistor in series
with the ( + ) input) has no effect on this type o f error in the output voltage due to Vio.
Conclusion. To m easure Vi0, set up the circuit o f Fig. 9-6(b). T he cap acito r is
installed across Rf to m inim ize noise in V0. M easure V0, Rfj and R h C alculate Vio from
N ote that Rt is m ade sm all to m inim ize the effect o f input bias current.
E x a m p le 9-5
For exam ple, in Fig. 9-7(a) signals £ , and E 2 are each larger than Vio but £ , is m u l
tiplied by - R j / R i = - 1 and develops a com ponent o f - 5 m V in V0. E2 is likew ise m u l
tiplied by - 1 and adds a —5-m V com ponent to Va. T hus the correct value o f V0 should
be —10 mV. Since E 3 is 0 its contribution to Va is 0 (see Section 3-2).
If we tem porarily let E x and E2 = 0 V in Fig. 9-7(a), the ( —) input sees three equal
resistors form ing parallel paths to ground. The single equivalent series resistance, R h is
show n in Fig. 9-7(b). For three equal 10-kH resistors in parallel, the equivalent resistance
Rj is found by 10 kO /3 = 3.33 k fi. Vio is am plified ju st as in Fig. 9-6(b) to give an output
error of + 1 0 mV. Therefore, the total output voltage in Fig. 9-7(a) is 0 instead o f - 1 0 mV.
One m ight be tem pted to add an adder input such as E 3 in Fig. 9-7(a) to balance out the
effect of Vio. For exam ple, if E 3 is m ade equal to 10 mV, then £ 3, /?3, and Rf will add a
- 1 0 m V com ponent to VQ and balance out the + 1 0 mV due to Vio. There are two disad
vantages to this approach. First, such a small value o f E 3 w ould have to be obtained from
a resistor-divider netw ork betw een the pow er supply term inals o f + V and —V. The second
disadvantage is that any resistance added betw een the ( —) input and ground raises the noise
gain. This situation is treated in Sections 10-4.3 and 10-4.4. In Section 9-7 we show how
to m inim ize the output voltage errors caused by both bias currents and input offset voltage.
To m inim ize dc error voltages in the output voltage, follow this sequence:
1. Select a b ias-current com pensating resistor in accordance w ith the principles set
forth in Section 9-4.3.
2 . Get a circuit for m inim izing effects o f the input offset voltage from the op am p m an
ufacturer’s data sheet. T his principle is treated in m ore detail in Section 9-7.2 and in
A ppendix 1.
3. Go through the output-voltage nulling procedure given in Section 9-7.3.
+V +V
(c) 301 or 748 offset voltage (d) 537 offset voltage adjustment,
adjustment (TO-99 case).
FIG U RE 9-8 Typical circuits to minimize errors in output voltage due to in
put offset voltage and offset current (see also Appendix 1).
It is possible to im agine a fairly com plex resistor-divider netw ork that w ould inject a
sm all variable voltage into the ( + ) or ( - ) input term inal. T his w ould com pensate for the
effects o f both input offset voltage and offset current. However, the extra com ponents are
m ore costly and bulky than necessary. It is far better to go to the op am p m anufacturer
for guidance. The data sheet for your op am p will have a voltage offset n u ll circuit rec
om m ended by the m anufacturer. T he op am p will have null term inals brought out for co n
nection to the null circuit. E xperts have designed the null circuit to m inim ize offset errors
at the low est cost to the user (see A ppendix 1).
S om e typical output-voltage null circuits are show n in Fig. 9-8. In Fig. 9-8(a), one
variable resistor is connected betw een the + V supply and a trim term inal. For an expen-
DC Perform ance: Bias, Offsets, and Drift 267
1. B uild the circuit. Include (a) the current-com pensating resistor (see Section 9-4.3)
and (b) the voltage offset null circuit (see Section 9-7.2).
2. R educe all generator signals to 0. If their output cannot be set to 0, replace them
w ith resistors equal to their internal resistance. T his step is unnecessary if their in
ternal resistance is negligible w ith respect to (m ore than about 1% o f ) any series re
sistor Ri connected to the generator.
3. C onnect the load to the output term inal.
4. Turn on the pow er and w ait a few m inutes for things to settle down.
5. Connect a dc voltm eter or an oscilloscope (dc coupled) across the load to m easure V0.
(The voltage sensitivity should be capable o f reading down to less than a few millivolts.)
6. Vary the offset voltage adjustm ent resistor until VG reads 0 V. N ote that output volt
age errors due to both input offset voltage and input offset current are now m inim ized.
7. Install the signal sources and do not touch the offset-voltage adjustm ent resistor again.
It has been show n in this chapter that dc error com ponents in V0 can be m inim ized by in
stalling a current-com pensating resistor in series w ith the ( + ) input and by trim m ing the
offset-voltage adjustm ent resistor. It m ust also be em phasized that the zeroing procedure
holds only at one tem perature and at one tim e.
The offset current and offset voltage change with tim e because o f aging o f com po
nents. The offsets w ill also be changed by tem perature changes in the op am p. In addition,
if the supply voltage changes, bias currents, and consequently the offset current, change. By
use o f a w ell-regulated pow er supply, the output changes that depend on supply voltage can
be elim inated. However, the offset changes w ith tem perature can only be m inim ized by ( I )
holding the tem perature surrounding the circuit constant, or (2) selecting op am ps w ith off
set current and offset voltage ratings that change very little w ith tem perature changes.
T he changes in offset current and offset voltage due to tem perature are described
by the term drift. D rift is specified for offset current in nA /°C (nanoam peres per degree
Celsius). For offset voltage, drift is specified in /xV/°C (m icrovolts per degree Celsius).
D rift rates m ay differ at different tem peratures and m ay even reverse; that is, at low tem
p eratu res Vio m ay d rift by + 2 0 fxV I°C (in crease), and at high te m p eratu re s Vio m ay
change by —10 /xV/°C (decrease). For this reason, m anufacturers m ay specify eith er an
average or m axim um drift betw een tw o tem perature lim its. Even b etter is to have a plot
o f drift vs. tem perature. An exam ple is show n to calculate the effects o f drift.
268
270 Chapter 9
2. To m easure l B set up the circuit o f Fig. 9 - 10(b). M easure Va. U sing the value o f
Vio found in step 1, calculate IB from
V —V
/it- = — Rf — ( 9 ' 7)
E x a m p le 9-7
T he circu its o f Fig. 9-10 are used w ith the resistan ce values show n for a 741 op am p.
R esults are Va = + 0 .4 2 1 V fo r Fig. 9-10(a), V0 = 0.097 V for Fig. 9- 10(b), and Va =
--0.082 V for Fig. 9 - 10(c). Find (a) Vio\ (b) /* _ ; (c) IB+.
0.421 V
V-lO = j QJ = 4 1 JmV
111V
( 9 7 - 4 . 1 ) mV
h = ------ -------------- = 93 nA
I M fi
r ( - 8 2 - 4 .1 ) m V _ A
'»* = --------- T m S ------ = 86 nA
N ote that Ios is found to be IB+ - IR_ = - 7 nA.
9 ’ 10 C O M M O N -M O D E R E J E C T IO N R A T IO
First rem em ber that an ideal op am p is a pure differential am plifier and is insensi
tive to the absolute voltages on the inputs w ith respect to ground. T he feedback co n n ec
tion for inverting and noninverting am plifiers m aintains the differential voltage, E(h near
0 V. In som e applications, such as com parators or in am plifier circuits w here the input
voltages exceed the level required to saturate the output, the differential voltage may ex
ceed a m axim um value. In order not to cause perm anent dam age to the device, this d if
ferential voltage m ust be w ithin the range bounded by the supply voltages.
For differential am plifiers, the voltage at both inputs can be g reater than or less than
ground potential but m ust be w ithin the supply voltage lim its. C om m on-m ode voltage,
E cm, is defined as the sam e voltage being applied to both inputs sim ultaneously. An ideal
operational am plifier responds only to the difference betw een the inputs {F.' — E ) and
produces zero output for a com m on-m ode v o ltag e— both inputs at the sam e potential.
However, due to slight differences betw een the input transistors that m ake up the input
differential pair o f an operational am plifier, the com m on-m ode voltage is not subtracted
entirely. H ence a com m on-m ode output voltage exists.
The com m on-m ode rejection ratio (C M R R ) is defined as the ratio o f the change in
com m on-m ode voltage to the resulting change in input offset voltage. It is often conve
nient to specify this param eter logarithm ically in dB:
CM R = 20 lo g l() (C M R R ) (9-9)
For exam ple, consider a com m on-m ode voltage o f 10 V results in a 10 fxV change
in input offset voltage. For this application, the C M R R is 10 V/IO fxV = 10^: l o r 120 dB.
T his expression m eans that a 10 V com m on-m ode voltage passes through the device as if
it w ere a 10 |jlV differential input signal.
C M R R is specified at dc but it is frequency dependent. T herefore, som e m anufac
turers will supply curves o f C M R R vs. frequency and you w ill see that it is a nonlinear
curve.
Note: C om m on-m ode rejection is som etim es defined as the ratio o f the open loop
gain to the com m on-m ode gain, w here com m on-m ode gain is the ratio o f the output volt
age to the com m on-m ode voltage. In equation form .
C M R = 20 l o g , o 4 ^ (9-10)
w here A OL is the op am p ’s open loop gain and A cm is the com m on-m ode gain and equals
the ratio o f the output voltage due to the input com m on-m ode voltage.
Pow er supplies connected to the op am p should have low noise and be well regulated b e
cause all o f the op a m p ’s internal circuitry is sensitive to changes in supply voltages. The
m axim um offset versus supply value is a m easure o f this sensitivity. T he reciprocal o f the
sensitivity is the pow er supply rejection ratio (PSRR). T his param eter is conveniently ex
pressed logarithm ically as
PSR = 20 lo g 10 (PSR R ) ( 9 -I D
272 Chapter 9
Consider that an op amp has an offset change of 10 jxV per volt. This results in a
PSRR o f 100,000 (1 V/10 |xV) and a power supply rejection o f 100 dB. As a compari
son, the typical value of power supply rejection for the OP-177 op amp is 125 dB, and
for the 741 the sensitivity is only 30 jxV/V or a PSR of 90.5 dB.
PROBLEMS ______________________________________________________________________
9-1. Which op amp characteristics normally have the most effect on (a) dc amplifier performance;
(b) ac amplifier performance?
9-2. If IB+ = 0.2 jxA and IB- = 0.1 /jA , find (a) the average bias current 1B\ (b) the offset cur
rent Ios.
9-3. In Example 9-2, V0 = 0.2 V. Find /*_.
9-4. In Example 9-3, V0 = - 0 .2 V. Find IB+.
9-5. /*_ is 0.2 /LtA in Fig. 9-2(c). Find Va.
9-6. In Fig. 9-4(a), Rf = RG = 100 kCi. IB+ = 0.3 fiA and IB_ = 0.2 ijlA. Find Va.
9-7. In Fig. 9-4(b), Rf = R( = 25 kH and R = 12.5 kO. If Ios = 0.1 /iA, find Va.
9-8. In Fig. 9-4(b), = 25 k ft and /? = 12.5 kft. If Ios = -0 .1 /iA, find V0.
9-9. In Fig. 9-6(b), = 200 mV. Find Vio.
9-10. Resistors R u R2, # 3, and /?/all equal 20 k fi in Fig. 9-7(a). = E2 = £3 = = 2 mV. Find
(a) the actual value of V0\ (b) V0 assuming that Vio = 0.
9-11. What value of current-compensating resistor should be added in Problem 9-10?
9-12. What is the general procedure to null the dc output voltage of an op amp to 0 V?
9-13. In Fig. 9-9, Vio changes by ±0.5 mV when the temperature changes by 50°C. What is the
change in V0 due to the change in Viol
9-14. Ios changes by ± 2 nA in Fig. 9-9 for a temperature change of 50°C. What is the resulting
change in V01
9-15. V0 = 101 mV in the circuit in Fig. 9-10(a), VQ = 201 mV in Fig. 9-10(b), and V0 = - 9 9 mV
in Fig. 9-10(c). Find (a) (b) IB (c) IB+.
9-16. Refer to Fig. P9-16. Vio = 3 mV, IB- = 0.4 /xA, and IB+ = 0.1 fiA. (a) What is the best value
for resistor R1 Calculate the individual error in the output voltage, Va, due to (b) Vio only;
(c) IB+ only; (d) lB- only; (e) Ios only. The ideal value of V0 should be 1.00 V because of Et.
(f) What is the actual value of VQwhen both input offset voltage and current are present along
with Et?
50 k n
AA/V
+V
E: - - 0 .2 0 V
FIG U RE P9-16
DC Performance: Bias, Offsets, and Drift 273
9-17. An op amp’s typical common-mode rejection is 110 dB for the change in common-mode volt
age of 12 V. What is the change of input offset voltage?
9-18. Refer to Maxim Integrated Products’ Web site and compare their MAX4281 op amp CMRR
and PSRR with the OP-177 device.
CHAPTER 10
AC Performance:
Bandwidth, Slew Rate,
and Noise
Upon completion of this chapter on ac performance of an op amp, you will be able to:
274
AC Performance: Bandwidth, Slew Rate, and Noise 275
• Predict the bandwidth or upper cutoff frequency for an inverting amplifier if you know
the external resistor values and the op amp’s small-signal unity.
• Calculate the maximum sinusoidal frequency that can be obtained from an op amp at a
given peak output voltage if you know its slew rate.
• Calculate the maximum peak output voltage at any given sine frequency if the op amp’s
slew rate is known.
• Calculate noise gain.
• Understand the difference between open loop, closed loop, and loop gain.
When the op amp is used in a circuit that amplifies only ac signals, we must consider
whether ac output voltages will be small signals (below about 1 V peak) or large signals
(above 1 V peak). If only small ac output signals are present, the important op amp char
acteristics that limit performance are noise and frequency response. If large ac output sig
nals are expected, then an op amp characteristic called slew-rate limiting determines
whether distortion will be introduced by the op amp, and may further limit frequency re
sponse.
Bias currents and offset voltages affect dc performance and usually do not have to
be considered with respect to ac performance. This is especially true if a coupling ca
pacitor is in the circuit to pass ac signals and block dc currents and voltages. We begin
with an introduction to the frequency response of an op amp.
General-purpose op amps and specialized op amps are internally compensated; that is,
the manufacturer has installed within such op amps a small capacitor, usually 30 pF. This
internal frequency compensation capacitor prevents the op amp from oscillating at high
frequencies. Oscillations are prevented by decreasing the op amp’s gain as frequency in
creases. Otherwise, there would be sufficient gain and phase shift at some high frequency
where enough output signal could be fed back to the input and cause oscillations (see
Appendix 1).
From basic circuit theory it is known that the reactance o f a capacitor goes down
as frequency goes up: Xc = 1/(2 77/C). For example, if the frequency is increased by 10,
the capacitor reactance decreases by 10. Thus, it is no accident that the voltage gain o f
an op amp goes down by 10 as the frequency of the input signal is increased by 10. A
change in frequency of 10 is called a decade. Manufacturers show how the open-loop gain
o f the op amp is related to the frequency of the differential input signal by a curve called
open-loop voltage gain versus frequency. The curve may also be called small-signal
response.
276 Chapter 10
A typical curve is shown in Fig. 10-1 for internally compensated op amps such as the 741.
At low frequencies (below 0.1 Hz), the open-loop voltage gain is very high. A typical
value is 200,000 (106 dB), and it is this value that is specified on data sheets where a
curve is not given. See “Large-Signal Voltage Gain” equals 200,000 in Appendix 1. In
comparison, the open-loop gain for the OP-177 is greater than 140 dB or 10,000,000.
Point A in Fig. 10-1 locates the break frequency at which the open-loop voltage
gain o f the op amp is 0.707 times its value at very low frequencies. Therefore, the volt
age gain at point A (where the frequency of Ed is 5 Hz) is about 140,000, or 0.707 X
200,000.
Points C and D show how gain drops by a factor of 10 as frequency rises by a fac
tor o f 10. Changing frequency or gain by a factor of 10 is expressed more efficiently by
the term per decade (“decade” signifies 10). The right-hand vertical axis of Fig. 10-1 is
a plot o f voltage gain in decibels (dB). The voltage gain decreases by 20 dB for an in
crease in frequency of 1 decade. This explains why the frequency-response curve from A
Frequency (Hz)
When an amplifier is made from an op amp and a few resistors, the frequency response
o f the amplifier depends on the frequency response o f the op amp. The key op amp char
acteristic is defined as that frequency where the op amp’s gain equals unity. We will use
the symbol B for this op amp characteristic, which is called small-signal unity-gain band
width. Later in this chapter we will need a value for B o f the op amp to predict the high-
frequency response o f an amplifier constructed with this op amp.
Three ways to obtain B from a manufacturer’s data sheet are presented in this sec
tion. First, if you have the manufacturer’s plot o f A ql versus frequency, look for that fre
quency where Aql = 1 (see point B in Fig. 10-1, B = 1 MHz). Second, some data sheets
may not give a specification called unity-gain bandwidth or a curve like Fig. 10-1. Instead,
they give a specification called transient response rise time (unity gain). For a 741 op amp
it is typically 0.25 jms and 0.8 |xs at maximum. The bandwidth B is calculated from the
rise-time specification by
rise time
where B is in hertz and rise time is in seconds. Rise time is defined in Section 10-1.4.
(See the “Electrical Characteristics” tables in Appendix 1, ‘Transient Response (Unity
Gain)” = 0.3 jjus typical.)
Example 10-1
A 741 op amp has a rise time o f 0.35 /is. Find the small-signal or unity-gain bandwidth.
0 35
B= = 1 MHz
0.35 p,s
Example 10-2
What is the open-loop voltage gain for the op amp of Example 10-1 at 1 MHz?
Example 10-3
What is the open-loop voltage gain at 100 kHz for the op amp in Examples 10-1 and 10-2?
278 Chapter 10
Solution By inspection o f Fig. 10-1, if the frequency goes down by 10, the gain goes up
by 10. Therefore, since the frequency goes down by a decade (from 1 MHz to 100 kHz),
the gain must go up by a decade from 1 at 1 MHz to 10 at 100 kHz.
Example 10-3 leads to the conclusion that if you divide the frequency o f the signal,
/ into the unity-gain bandwidth, B, the result is the op amp’s gain at the signal frequency.
Expressed mathematically,
What is the open-loop gain o f an op amp that has a unity-gain bandwidth o f 1.5 MHz for
a signal o f 1 kHz?
1 kHz
Equation (10-2) gives a third way to find B. If you know the op amp’s open-loop
gain at one frequency (in the roll-off region), simply multiply the two values to obtain B.
Let’s consider Example 10-4 again. If A Ql = 1000 at a frequency of 1500 Hz, then B =
1500 X 1000 = 1.5 MHz.
The data shown in Fig. 10-1 are useful for learning but probably do not apply to
your op amp. For example, while 200,000 is a specified typical open-loop gain for the
741, the manufacturer guarantees only a minimum gain o f 20,000 for general-purpose
op amps. Still, 20,000 may be enough to do the job. Section 10-2 deals with this ques
tion.
Assume that the input voltage E t of a unity-gain amplifier is changed very rapidly by a
square wave or pulse signal. Ideally, E t should be changed from 0 V + 20 mV in 0 time;
practically, a few nanoseconds are required to make this change (see Appendix 1,
‘Transient Response” in the “Typical Performance Curves”). At unity gain, the output
should change from 0 to + 2 0 mV in the same few nanoseconds. However, it takes time
for the signal to propagate through all the transistors in the op amp. It also takes time for
the output voltage to rise to its final value. Rise time is defined as the time required for
the output voltage to rise from 10% o f its final value to 90% o f its final value. From
Section 10-1.3, the rise time o f a 741 is 0.35 /ts. Therefore, it would take 0.35 /is for the
output voltage to change from 2 mV to 18 mV.
AC Performance: Bandwidth, Slew Rate, and Noise 279
It is necessary to leam how open-loop gain AOL affects the actual closed-loop gain o f an
amplifier with dc signal voltages (zero frequency). First, we must define ideal closed-loop
gain o f an amplifier as that gain which should be determined only by external resistors.
However, the actual dc closed loop o f an amplifier is determined by both the external re
sistors and open-loop gain o f an op amp.
The actual dc closed-loop gain o f a noninverting amplifier is
_ (Rf+Rd/R,
actual ACl /Rf + R i\ (10-3a)
i+ ± h n
where
Rf + Rt
= ideal ACL for noninverting amplifiers (10-3b)
If A0 l is very large, the denominator o f Eq. (10-3a) approaches unity. Then the amplifier
gain will not depend on the open-loop gain of the op amp but rather only on the external
resistors and can be calculated from Eq. (10-3b).
The actual dc gain o f an inverting amplifier depends on Aql according to
A /tfllA l A ^
- Rf /R,
____________________ —________
(10-3c)
where
-R f
—— = ideal ACL for inverting amplifiers (10-3d)
R i
Find the actual gain for a dc noninverting amplifier if ideal ACl — 100 and AOL is (a)
10,000; (b) 1000; (c) 100; (d) 10; (e) 1. Repeat for a dc inverting amplifier with an ideal
gain o f —100.
Solution (a) For the noninverting amplifier: (Rf + Ri)/Ri = 100 = ideal gain. From
Eq. (10-3a),
280 Chapter 10
100
actual A cl = = 99.0099
1 + — -— 1100
10,0 0 0 ,/
For the inverting amplifier, Rf/Ri = Iideal gain| = 1 0 0 . Therefore, (Rf + Ri)/Ri = 1 0 1 .
From Eq. (10-3c),
actual ACL =
-100
= -9 9 .0 0 0 0
1 +
io,ooo )101
If these steps are repeated for parts (b) through (e), the results may be tabulated as
follows:
Aql
The results o f Example 10-5 are shown by plot ACl versus A ql in Fig. 10-2.
There are two important lessons to be learned from Example 10-5 and Fig. 10-2. First
the actual gains o f both noninverting and inverting amplifiers are o f approximately the
same magnitudes for the same value o f open-loop gain. Second, we would like the ac
tual closed-loop gain to be equal to the ideal closed-loop gain. An examination o f Eqs.
(10-3a) and (10-3c) shows that this w ill be true i/t h e open-loop gain o f the op amp
Aol is large with respect to the ideal closed-loop gain o f the op amp. Practically, we
would like AGl to be 100 or more tim es the ideal ACL, so that the
external precision resistors and not the op amp’s AOL determine the actual gain, to
within 1%.
We already learned in Section 10-1.2 that AOL depends on frequency. Since AOL o f
the op amp also determines ACL o f an amplifier, then ACL o f the amplifier will also de
pend on frequency. But before we look at the amplifier’s frequency response we must de
fine it and also define bandwidth.
fi Ih
FIG URE 10-3 Small-signal bandwidth.
282 Chapter 10
You can learn a lot about frequency response by learning how to measure frequency re
sponse at a test bench.
1. Adjust the input voltage Eto f an op amp to some convenient value, let’s say
30 mV rms.
2. Set the sinusoidal frequency o f Etto some convenient midband value, let’s say
1000 Hz.
3. Measure the midband output voltage; assume that it equals 3.0 V.
4. Calculate the midband voltage gain ACL = 3 V/0.030 V = 100.
5. Calculate the expected value o f VQat fL and fH>VQ= (0.707) (V0 midband). Thus VQ=
(0.707) 3 V = 2.1 V rms where ACL = 70.7.
6. Hold Ei constant in magnitude at 30 mV. Reduce the oscillator frequency until
V0 = 2.1 V. Read the oscillator dial frequency to obtain the lower cutoff fre
quency f L.
7. Hold Ei constant in amplitude at 30 mV. Increase the oscillator frequency (beyond 1
kHz) until VQagain drops to 2.1 V. Read f H from the oscillator dial.
8. Calculate bandwidth B from B = f H —f L.
Note: For dc amplifiers, / = 0; therefore, B = f H.
The low and high cutoff frequencies are also called the comer frequencies, the
3-dB frequencies, the 0.707 frequencies, or simply the cutoff frequencies.
In this section let’s stipulate that all amplifiers are direct coupled. Next, observe that both
inverting and noninverting amplifiers are made from exactly the same structure. They
have an op amp, a feedback resistor Rf , and an input resistor Rs. An amplifier only as
sumes an identity when you choose which input will experience the input signal. If you
connect Exvia Rt to the ( —) input and ground the (+ ) input, you define the amplifier to
be inverting. If E{is wired to ( + ) input and ground to Rh the same structure becomes a
noninverting amplifier.
In view o f the observation above, it is perhaps not surprising that the upper cutoff
frequency f Hfor both inverting and noninverting amplifiers is given by
AC Performance: Bandwidth, Slew Rate, and Noise 283
h = ~ (10-4)
(Rf+Rd/R,
where B = op amp small-signal bandwidth
Rf = feedback resistance
Rt = input resistor
Given that Rf = /?, = lO k fi for an inverting amplifier and also for a noninverting amplifier,
find the gain and bandwidth o f (a) the inverting amplifier; (b) the noninverting amplifier, (c)
What are the gain and bandwidth o f a voltage follower? The op amp is a 741 with a small-
signal gain-bandwidth product o f B = 1 MHz.
Solution (a) From Eq. (3-2b) or (10-3d), A Cl ~ ~R /!R i = —1. From Eq. (10-4),
There is a graphical technique for obtaining the frequency response o f a noninverting am
plifier. An example is shown in Fig. 10-4. Let the amplifier gain equal 1000 at low and
middle frequencies. From Eq. (1 0 -4 ),/# = 999 Hz =* 1 kHz. At f H, the amplifier gain is ap
proximately 700 (0.707 X 1000 — 700). For all frequencies above f H, the frequency re
sponse o f the amplifier and op amp coincide. For another example, use Fig. 10-4 and draw
a horizontal line starting at A Cl = 100. The ending point where it intercepts the curve o f
A0l versus /s h o w s the amplifier’s bandwidth. For this c a se ,/# — 10 kHz. The conclusion
is that the gain-bandwidth product o f a noninverting amplifier is equal to B o f the op amp.
There is a direct trade-off. If you want more closed-loop gain, you must sacrifice band
width.
284 Chapter 10
Rj= 999 kO
t
f H = bandwidth of amplifier
Frequency (Hz)
FIGURE 10-4 Op amp small-signal bandwidth and amplified closed-loop
bandwidth.
The slew rate o f an op amp tells how fast its output voltage can change. For a general-
purpose op amp such as the 741, the maximum slew rate is 0.5 V //is. This means that the
output voltage can change a maximum o f { V in 1 /is. Slew rate depends on many fac
tors: the amplifier gain, compensating capacitors, and even whether the output voltage is
going positive or negative. The worst case, or slowest slew rate, occurs at unity gain.
Therefore, slew rate is usually specified at unity gain (see Appendix 1).
AC Performance: Bandwidth, Slew Rate, and Noise 285
0.5 V 10 V lO V X ^ s
-------- = —------ . time = — T-z-rr^ = 2 0 as
l*s time 0.5 V
In the voltage follower o f Fig. 10-5, Et is a sine wave with peak amplitude Ep. The
maximum rate o f change o f depends on both its frequency / and the peak ampli
tude. It is given by 2TtfEp. If this rate o f change is larger than the op amp’s slew rate,
the output V0 w ill be distorted. That is, output V0 tries to follow Et but cannot do so
because o f slew-rate limiting. The result is distortion, as shown by the triangular shape
o f V„ in Fig. 10-5. The maximum frequency / max at which we can obtain an undistorted
output voltage with a peak value o f Vop is determined by the slew rate in accordance
286 Chapter 10
with
slew rate
/m ax (10-6a)
6.28 X Vtop
where / max is the maximum frequency in Hz, Vop is the maximum undistorted output volt
age in volts, and the slew rate is in volts per microsecond.
The maximum peak sinusoidal output voltage Vop max that can be obtained at a
given frequency / i s found from
slew rate
r op max (10-6b)
6.28 X /
Example 10-8
The slew rate for a 741 is 0.5 V//xs. At what maximum frequency can you get an undis
torted sine-wave output voltage o f (a) 10-V peak; (b) 1-V peak?
f = 1 V M I _ o k„ 7
/max 6.28 X 10 V MS
AC Performance: Bandwidth, Slew Rate, and Noise 287
/m a x = 80 kHz
In the next example, we leam that the slew rate and bandwidth must both be con
sidered before we can predict the highest frequency at which we can obtain an undistorted
output voltage.
Example 10-9
In Example 10-6, the small-signal bandwidth was 500 kHz for both an inverting amplifier
with a gain o f —1 and a noninverting amplifier with a gain o f 2. Find (a) the maximum peak
and undistorted sine wave output voltage at f H = 500 kHz; (b) the maximum frequency at
which you can obtain a peak output voltage o f 10 V.
Solution Since the op amp is a 741, its maximum slew rate is 0.5 V / jis. (a) From Eq.
(10-6b),
(Section 10-2.3) must be calculated. The smaller value determines the actual upper-
frequency limit. In general, the slew rate is a large-signal frequency limitation and small-
signal frequency response is a small-signal frequency limitation.
Figure 10-6 simplifies the problem of finding / max at any peak output voltage for slew
rates between 0.5 and 5 V/fjus. For example, to do part (b) of Example 10-8, locate where
the horizontal line Vop = 10 V intersects the slew-rate line 0.5 V / j l l s . Below the intersec
tion, read / max = 8 kHz.
FIGURE 10-6 Slew rate made easy. Any point on a slew-rate line shows the
maximum sinusoidal frequency allowed for the corresponding peak output
voltage.
AC Performance: Bandwidth, Slew Rate, and Noise 289
10-4.1 Introduction
Undesired electrical signals present in the output voltage are classified as noise. Drift (see
Chapter 9) and offsets can be considered as very-low-frequency noise. If you view the
output voltage o f an op amp amplifier with a sensitive oscilloscope setting (1 mV/cm),
you will see a random display o f noise voltages called hash. The frequencies o f these
noise voltages range from 0.01 Hz to megahertz.
Noise is generated in any material that is above absolute zero (-2 7 3 °C ). Noise is
also generated by all electrical devices and their controls. For example, in an automobile
the spark plugs, voltage regulator, fan motor, air conditioner, and generator all generate
noise. Even when headlights are switched on (or off), there is a sudden change in current
that generates noise. This type o f noise is external to the op amp. Effects o f external noise
can be minimized by proper construction techniques and circuit selection (see Sections
10-4.3 to 10-4.5).
Even if there was no external noise, there would still be noise in the output voltage caused
by the op amp. This internal op amp noise is modeled most simply by a noise voltage
source En. As shown in Fig. 10-7, En is placed in series with the ( + ) input. On data sheets,
noise voltage is specified in microvolts or nanovolts (rms) for different values o f source
resistance over a particular frequency range. For example, the 741 op amp has 2 /xV of to
tal noise over a frequency o f 10 Hz to 10 kHz. This noise voltage is valid for source
C/ = 3pF
---- W v ----
Rf = 100 kft
k+V
resistors (Ri) between 100 f l and 20 kfl. The noise voltage goes up directly with /?, once
Ri exceeds 20 kft. Thus Rt should be kept below 20 k fl to minimize noise in the output
(see Appendix 1). Data sheets may also specify an input current value over the same fre
quency range.
Noise voltage is amplified just as offset voltage is. That is, noise voltage gain is the same
as the gain o f a noninverting amplifier:
What can you do about minimizing output voltage errors due to noise? First, avoid, if pos
sible, large values o f and Rf. Install a small capacitor (3-pF) across Rf to shunt it at
high noise frequencies. Then the higher noise frequencies will not be amplified as much.
Next, do not shunt Rt with a capacitor; otherwise, the RtC combination will have a smaller
impedance at higher noise frequencies than Rt alone, and gain will increase with fre
quency and aggravate the situation. Finally, try to keep Rt at about 10 k fl or below.
N oise currents, like bias currents, are also present at each op amp input terminal. If
a bias-current compensation resistor is installed (see Chapter 9), the effect of noise cur
rents on output voltage will be reduced. As with offset current, the effects o f noise cur
rents also depend on the feedback resistor. So if possible, reduce the size o f Rf to mini
mize the effects of noise currents.
In the inverting adder (see Section 3-2), each signal input voltage has a gain o f 1. However,
the noise gain will be 1 plus the number of inputs; for example, a four-input adder would
have a noise gain o f 5. Thus noise voltage has five times as much gain as each input signal.
Therefore, low-amplitude signals should be preamplified before connecting them to an adder.
10-4.5 Summary
Loop gain (A(3) is defined as the ratio o f open-loop gain to closed-loop gain.
( 10- 8)
See Fig. 10-8. Loop gain determines circuit performance. For 1% gain accuracy, the loop
gain must be 100 times the closed-loop gain. This is the same conclusion stated in Section
10-2. Hence the greater the loop gain at a particular frequency, the closer the closed-loop
gain depends only on external circuit values.
0 is that fraction o f the output fed back to the input
1 Rj + R f
(10-9)
P R,
Figure 10-9 shows that the noise gain may peak in the vicinity o f the frequency at
which A|$ = 1 even if the signal gain (the normal closed-loop gain) rolls off at a much
lower frequency. This is because the loop gain may have more than 90° phase shift and
the amplifier is lightly damped at this frequency.
Gain
A
Open loop gain A0L
■w
PROBLEMS __________________________________________________________________________
10-1. What is the typical open-loop gain of a 741 op amp at very low frequencies?
10-2. The dc open-loop gain of an op amp is 100,000. Find the open-loop gain at its break fre
quency. V
10-3. The transient response rise time (unity gain) of an op amp is 0.07 /as. Find the small-signal
bandwidth.
10-4. An op amp has a small signal unity-gain bandwidth of 2 MHz. Find its open-loop gain at
200 kHz.
10-5. What is the difference between the open-loop and closed-loop gain of an op amp?
10-6. What is the open-loop gain for the op amp of Problem 10-4 at 2 MHz?
10-7. What is rise time?
10-8. An op amp has a dc open-loop gain of 100,000. It is used in an inverting amplifier circuit
with Rf = 100 kH, Ri = 10 kft. Find the actual dc closed-loop gain.
10-9. The op amp of Problem 10-8 is used in a noninverting amplifier with the same Rf and Rh
Find the amplifier’s actual dc closed-loop gain.
10-10. What is the small-signal bandwidth of the op amp whose frequency response is given in Fig.
10- 1?
10-11. The unity-gain bandwidth of an op amp is 10 MHz. It is used to make a noninverting am
plifier with an ideal closed-loop gain of 100. Find the amplifier’s (a) small-signal band
width; (b) Ac l at///.
10-12. How fast can the output of an op amp change by 10 V if its slew rate is 1 V//as?
AC Performance: Bandwidth, Slew Rate, and Noise 293
10-13. Find the maximum frequency for a sine-wave output voltage of 10-V peak with an op amp
whose slew rate is 1 V//is.
10-14. Find the noise gain for an inverting amplifier with a gain of /?///?, = -1 0 .
10-15. What is the noise gain for a five-input inverting adder?
10-16. The op amp in Example 10-9 is changed to one with a slew rate of 1 V//xs. Find its maxi
mum full-power output frequency. Assume that V0 max = 10-V peak.
10-17. Use the Internet and compare the slew rate of an OP-177 op amp with a MAX4281.
CHAPTER 11
Active Filters
-----------------------------------------------------------------------------------------------------------------------------
LEARNING O B J E C T I V E S
Upon completion o f this chapter on active filters, you will be able to:
• Name the four general classifications o f filters and sketch a frequency-response cur^fe
that shows the band o f frequencies that they pass and stop. *
• Design or analyze circuits for three types o f low-pass filters: —20 dB/decade, —40 dB/
decade, or - 6 0 dB/decade roll-off.
• Design or analyze circuits for three types of high-pass filters: + 2 0 dB, + 4 0 dB, and
+ 6 0 dB per decade o f roll-off.
• Cascade a low-pass filter with a high-pass filter to make a wide bandpass filter.
• Calculate the lower and upper cutoff frequencies of either a bandpass or a notch filter
if you are given (1) bandwidth and resonant frequency, (2) bandwidth and quality fac
tor, or (3) resonant frequency and quality factor.
294
Active Filters 295
• Calculate the quality factor, bandwidth, and resonant frequency of a bandpass or notch
filter for a given lower and upper cutoff frequency.
• Design a bandpass filter that uses only one op amp.
• Make a notch filter by (1) designing a bandpass filter circuit with the same bandwidth
and a resonant frequency equal to the notch frequency, and (2) properly connecting the
bandpass circuit to an inverting adder.
• Explain the operation o f a stereo equalizer circuit.
• Use PSpice to simulate the performance o f filter circuits.
A filter is a circuit that is designed to pass a specified band o f frequencies while attenu
ating all signals outside this band. Filter networks may be either active or passive. Passive
filter networks contain only resistors, inductors, and capacitors. Active filters, which are
the only type covered in this text, employ transistors or op amps plus resistors, inductors,
and capacitors. Inductors are not often used in active filters, because they are bulky and
costly and may have large internal resistive components.
There are four types o f filters: low-pass, high-pass, bandpass, and band-elimination
(also referred to as band-reject or notch) filters. Figure 11-1 illustrates frequency-
Wo\ Wo\
A A
\
X
\
\
\ /
\ Stop /
\ /
‘ Passband ' band t Passband
I I
i L i --------------------------►
/,
fr A Frequency
(c) Bandpass filter. (d) Band-elimination filter.
FIGURE 11-1 Frequency response for four categories of filters.
296 Chapter 11
response plots for the four types of filters. A low-pass filter is a circuit that has a constant
output voltage from dc up to a cutofffrequency /<*. As the frequency increases above f c,
the output voltage is attenuated (decreases). Figure 11-1(a) is a plot of the magnitude of
the output voltage o f a low-pass filter versus frequency. The solid line is a plot for the
ideal low-pass filter, while the dashed lines indicate the curves for practical low-pass fil
ters. The range o f frequencies that are transmitted is known as the passband. The range
o f frequencies that are attenuated is known as the stop band. The cutoff frequency, f C9 is
also called the 0.707 frequency, the -3 -d B frequency, the comer frequency, or the break
frequency.
High-pass filters attenuate the output voltage for all frequencies below the cutoff
frequency / c. Above f c> the magnitude o f the output voltage is constant. Figure 11-1(b) is
the plot for ideal and practical high-pass filters. The solid line is the ideal curve, the
dashed curves show how practical high-pass filters deviate from the ideal.
Bandpass filters pass only a band of frequencies while attenuating all frequencies
outside the band. Band-elimination filters perform in an exactly opposite way; that is,
band-elimination filters reject a specified band o f frequencies while passing all frequen
cies outside the band. Typical frequency-response plots for bandpass and band-elimina-
tion filters are shown in Figs. l l - l ( c ) and (d). Once again, the solid line represents the
ideal plot, while dashed lines show the practical curves.
Filters are an integral part of electronic networks and are used in applications from
audio circuits to digital signal processing systems.
11-1.1 Introduction
The circuit of Fig. 1 l-2(a) is a commonly used low-pass active filter. The filtering is done
by the RC network, and the op amp is used as a unity-gain amplifier. The resistor Rf is
equal to R and is included for dc offset. [At dc, the capacitive reactance is infinite and the
dc resistance path to ground for both input terminals should be equal (see Section 9-4).]
The differential voltage between pins 2 and 3 is essentially 0 V. Therefore, the volt
age across capacitor C equals output voltage VQ, because this circuit is a voltage follower.
Et divides between R and C. The capacitor voltage equals VQand is
V° = R +\/ja>C X E‘ (1 M a )
where <o is the frequency of £ , in radians per second (o> = 2 irf) and j is equal to V ^ T .
Rewriting Eq. (11-la) to obtain the closed-loop voltage gain A CL, we have
To show that the circuit of Fig. 1 l-2(a) is a low-pass filter, consider how A CL in Eq. (1 1-lb)
varies as frequency is varied. At very low frequencies, that is, as a>approaches 0 ,1 ACL | =
1, and at very high frequencies, as cdapproaches infinity, | A Cl I = 0. (The absolute value
sign, | • | , indicates magnitude.)
Active Filters 297
Figure 1 l-2(b) is a plot of | ACl I versus a>and shows that for frequencies greater than
the cutoff frequency \ a Cl I decreases at a rate o f 20 dB/decade*. This is the same as say
ing that the voltage gain is divided by 10 when the frequency o f <o is increased by 10.
where a>c is the cutoff frequency in radians per second, fc is the cutoff frequency in hertz,
R is in ohms, and C is in farads. Equation (1 l-2a) may be rearranged to solve for R:
= 2 ^ C ( 1 ' - 2b)
Let R = 10 k fl and C = 0.001 /iF in Fig. 1 l-2(a); what is the cutoff frequency?
6.28 6.28
Exam ple 11-2
For the low-pass filter in Fig. 11-2(a), calculate R for a cutoff frequency o f 2 kHz and
C = 0.005 nF.
Calculate R in Fig. 1 l-2(a) for a cutoff frequency of 30 krad/s and C = 0.01 fjF.
lAcz.1 = = 0.707 = - 3 dB
0A<oc 1.0 —6
0.25<oc 0.97 -1 4
0.5<yc 0.89 -2 7
0.707 -4 5
2(t>c 0.445 -6 3
4a>c 0.25 -7 6
\0a>c 0.1 -8 4
In many low-pass filter applications, it is necessary for the closed-loop gain to be as close
to 1 as possible within the passband. The Butterworth filter is best suited for this type o f
application. The Butterworth filter is also called a maximally flat or flat-flat filter, and all
filters in this chapter will be o f the Butterworth type. Figure 11-3 shows the ideal (solid
line) and the practical (dashed lines) frequency response for three types o f Butterworth
filters. As the roll-offs become steeper, they approach the ideal filter more closely.
Two active filters similar to Fig. 11-2(a) could be coupled together to give a roll
off o f - 4 0 dB/decade. This would not be the most economical design, because it would
require two op amps. In Section 11-3.1, it is shown how one op amp can be used to build
a Butterworth filter with a single op amp to give a -40-d B /d ecad e roll-off. Then in
Section 11-4, a —40-dB/decade filter is cascaded with a —20-dB/decade filter to produce
a -60-dB /decade filter.
300 Chapter 11
Butterworth filters are not designed to keep a constant phase angle at the cutoff fre
quency. A basic low-pass filter of —20 dB/decade has a phase angle of —45° at (oc. A
-40-dB /decade Butterworth filter has a phase angle of -90° at <oc, and a “ 60-dB/decade
filter has a phase angle of —135° at a)c. Therefore, for each increase of —20 dB/decade,
the phase angle will increase by —45° at a>c. We now proceed to a Butterworth filter that
has a roll-off steeper than —20 dB/decade.
The circuit o f Fig. 1 l-4(a) is one o f the most commonly used low-pass filters. It produces
a roll-off o f —40 dB/decade; that is, after the cutoff frequency, the magnitude o f ACl de
creases by 40 dB as <o increases to 10<oc. The solid line in Fig. ll-4 (b ) shows the actual
frequency-response plot, which is explained in more detail in Section 11-3.2. The op amp
is connected for dc unity gain. Resistor Rf is included for dc offset, as explained in Section
9-4. Since the op amp circuit is basically a voltage follower (unity-gain amplifier), the
voltage across Cy equals output voltage, V0.
The design o f the low-pass filter o f Fig. 1 l-4(a) is greatly simplified by making re
sistors R{ = R2 = R. Then there are only five steps in the design procedure.
Design procedure
1. Choose the cutoff frequency, <oc or f c.
2. Pick C\\ choose a convenient value between 100 pF and 0.1 fiF.
3. Make C2 — 2C i.
4. Calculate
O _ 0.707
A — — (11-3)
(Oc Cl
5. Choose Rf = 2R.
c2
Example 11-4
Determine Ri and R2 in Fig. ll-4 (a ) for a cutoff frequency of 1 kHz. Let Cx = 0.01 /iF.
Solution Pick C2 = = 2(0.01 /xF) = 0.02 /iF. Select R\ = R2 = R from Eq. (11.3):
and
Rf = 2(11,258 ft) = 22,516 ft
301
302 Chapter 11
The solid curve in Fig. 11-4(b) shows that the filter o f Fig. 11-4(a) not only has a steeper
roll-off after <oc than does Fig. 11-2(a), but also remains at 0 dB almost up to about
0.25 <oc. The phase angles for the circuit of Fig. 1 l-4(a) range from 0° at a> = 0 rad/s (dc
condition) to -1 8 0 ° as co approaches °o (infinity). Table 11-2 compares magnitude and
phase angle for the low-pass filters o f Figs. 11 -2(a) and ll-4 (a ) from 0.1 to 10<uc.
The next low-pass filter cascades the filter of Fig. 1 l-2(a) with the filter o f Fig. 11-
4(a) to form a roll-off o f —60 dB/decade. As will be shown, the resistors are the only val
ues that have to be calculated.
TABLE 11-2 MAGNITUDE AND PHASE ANGLE FOR FIGS. 11-2<a) AND 11-4(a)
“ 20 dB/decade; “ 40 dB/decade;
0> Fig. 11-2(a) Fig. ll-4(a) Fig. 11-2(a) Fig. ll-4(a)
The low-pass filter o f Fig. 1 l-5(a) is built using one low-pass filter o f —40 dB/decade
cascaded with another o f —20 dB/decade to give an overall roll-off o f - 6 0 dB/decade.
The overall closed-loop gain A Cl is the gain o f the first filter times the gain o f the sec
ond filter, or
For a Butterworth filter, the magnitude o f A CL must be 0.707 at <oc. To guarantee that the
frequency response is flat in the passband, use the following design steps.
Design procedure
1. Choose the cutoff frequency, <oc or fc.
2. Pick C3; choose a convenient value between 0.001 and 0.1 /xF.
3. Make
—^ 3 and C2 — 2 C3 (11-5)
Active Filters 303
B#
4)
9
I
0.001
0.1 CDc C0c 10 G>c
(b) Plot of frequency response for the circuit of part (a).
FIGURE 11-5 Low-pass filter designed for a roll-off of —60 dB/decade and
corresponding frequency-response plot.
4. Calculate
R= ( 11-6)
0)c C3
5. Make Ri — R2 R3 — A.
6. Rfx = 2R and Rfl = R. For best results the value o f R should be between 10 and 100 kft.
If the value o f R is outside this range, you should go back and pick a new value of C3.
304 Chapter 11
For the — 60-dB/decade low-pass filter o f Fig. ll-5 (a ), determine the values o f Cj, C2,
and R for a cutoff frequency o f 1 kHz. Let C3 = 0.01 juF.
Example 11-5 shows that the value o f R in Fig. ll-5 (a ) is different from those o f
Fig. 11-4(a), although the cutoff frequency is the same. This is necessary so that | A cl I
remains at 0 dB in the passband until the cutoff frequency is nearly reached; then \a Cl I =
0.707 at (oc.
The solid line in Fig. 1 l-5(b) is the actual plot o f the frequency response for Fig. 1 l-5(a).
The dashed curve in the vicinity shows the straight-line approximation. Table 11-3 com
pares the magnitudes o f ACl for the three low-pass filters presented in this chapter. Note
that the | ACL | for Fig. 1 l-5(a) remains quite close to 1 (0 dB) until the cutoff frequency,
<oc; then the steep roll-off occurs.
The phase angles for the low-pass filter of Fig. 1 l-5(a) range from 0° at <o = 0 (dB
condition) to —270° as <o approaches Table 11-4 compares the phase angles for the
three low-pass filters.
All digital signal processing systems use a low-pass filter at the front end to atten
uate frequencies above the Nyquist frequency, which is one-half the sampling rate.
0A<tic -6 ° -8 ° -12°
0.25<oc -4 ° -21° -29°
0.5 <oc -27° -43° -60°
*>c -45° -90° -135°
2a>c -63° -137° -210°
4 ojc -76° -143° -226°
I0<oc -84° -172° -256°
11-5.1 Introduction
A high-pass filter is a circuit that attenuates all signals below a specified cutoff frequency
<t)c and passes all signals whose frequency is above the cutoff frequency. Thus a high-pass
filter performs the opposite function o f the low-pass filter.
Figure 11-6 is a plot o f the magnitude of the closed-loop gain versus <o for three
types o f Butterworth filters. The phase angle for a circuit o f 20 dB/decade is + 45° at <wc.
Phase angles at <oc increase by + 4 5 ° for each increase of 20 dB/decade. The phase an
gles for these three types o f high-pass filters are compared in Section 11-5.5.
In this book the design o f high-pass filters will be similar to that o f the low-pass fil
ters. In fact, the only difference will be the position o f the filtering capacitors and resistors.
Compare the high-pass filter o f Fig. ll-7 (a ) with the low-pass filter o f Fig. ll-2 (a ) and
note that C and R are interchanged. The feedback resistor Rf is included to minimize dc
offset. Since the op amp is connected as a unity-gain follower in Fig. 1 l-7(a), the output
voltage V0 equals the voltage across R and is expressed by
V- = W ( L rO XE- <>'-7>
Rf = R
or
I k IS3S0D /Of solving for R and not CinEq. (ll-8b) is that it is easier to adjust R
than it is C. The steps needed in designing Fig. 11-7(a) are as M ow s:
= _____________ 1 .__________ = g
(6.28)(10 X 103)(0.002 X 10"6)
Exam ple 11-7
In Fig ll-7 (a ) if R = 22 kft and C = 0.01 /xF, calculate (a) cdc; (b) f c.
1
<*>c = = 4.54 krad/s
(22 X 103)(0.01 X 10“ 6)
(b)
The circuit o f Fig. 11-8(a) is to be designed as a high-pass Butterworth filter with a roll
o ff o f 40 dB/decade below the cutoff frequency, o>c. To satisfy the Butterworth criteria,
the frequency response must be 0.707 at o>c and be 0 dB in the pass band. These condi
tions will be met if the following design procedure is followed:
3. Calculate R\ from
1.414
= -L±7T (H -9 )
a>c C
4. Select
R2 = \Ri (11-10)
5. To minimize dc offset, let Rf = R\.
In Fig. 1 l-8(a), let C\ = C2 = 0.01 fiF. Calculate (a) R\ and (b) R2 for a cutoff frequency
o f 1 kHz.
Calculate (a) Ri and (b) R2 in Fig. 11 -8(a) for a cutoff frequency o f 80 krad/s. Ci = C2 =
125 pF.
(b)
r 2 = i( i4 0 kft) = 70 m .
As with the low-pass filter o f Fig. 11-5, a high-pass filter o f + 6 0 dB/decade can be con
structed by cascading a +40-dB/decade filter with a +20-dB/decade filter. This circuit
(like the other high- and low-pass filters) is designed as a Butterworth filter to have the
frequency response in Fig. ll-9 (b ). The design steps for Fig. 11 -9(a) are as follows:
Design procedure for 60-dB/decade high-pass
1. Choose the cutoff frequency, wc or fc.
2. Let Ci = C2 = C3 = C and choose a convenient value between 100 pF and 0.1 /iF.
40 dB/decade 20 dB/decade
1^1 lirl
E,
3. Calculate R3 from
<*>n C
4. Select
Rx = 2 R 3 ( 11- 12)
310
312 Chapter 11
A bandpass filter is a frequency selector. It allow s one to select or pass only one p artic
ular band o f frequencies from all other frequencies that may be present in a circuit. Its
norm alized frequency response is show n in Fig. 11-10. T his type o f filter has a m axim um
gain at a resonant frequency f r. In this chapter all bandpass filters will have a gain o f 1.
or 0 dB at/,.. T here is one frequency b elow /,, w here the gain falls to 0.707. It is the low er
c u to ff frequency, f h At the higher cutofffrequency, f h the gain also equals 0.707, as in Fig.
11 - 1 0 .
Active Filters 313
Resonant frequency f r
1.0
— Bandwidth
A « = /* - //
0.707
11-6.2 Bandwidth
B = fh ~ ft (I I -14)
T he bandw idth is not exactly centered on the resonant frequency. (It is for this reason that
we use the historical nam e “ resonant frequency” rather than “center frequency” to de
s c rib e /..)
If you know the values for / and / /7, the resonant frequency can be found from
fr = 'S J J h (11-15)
If you know the resonant frequency, f r >and bandw idth, B, cutoff frequencies can be found
from
(I I-16a)
L = f i + B (I I -16b)
Example 11-12
A bandpass voice filter has low er and upper cutoff frequencies o f 300 and 3000 Hz. Find
(a) the bandw idth; (b) the resonant frequency.
314 Chapter 11
f r = y /J J h = V (3 0 0 )(3 0 0 0 ) = 948.7 H z
Note: f r is alw ays below the center frequency o f (3000 + 300)/2 = 1650 Hz.
Example 11-13
A bandpass filter has a resonant frequency o f 950 Hz and a bandw idth o f 2700 Hz. Find its
low er and upper cutoff frequencies.
( 11- 1 7 )
Q is a m easure o f the bandpass filter's selectivity. A high Q indicates that a filter selects
a sm aller band of frequencies (m ore selective).
A w ideband filter has a bandw idth that is tw o or m ore tim es the resonant frequency. T hat
is, Q < 0.5 for w ideband filters. In general, w ideband filters are m ade by cascading a low-
pass filter circuit with a high-pass filter circuit. T his topic is covered in the next section,
A narrow band filter (Q > 0.5) can usually be m ade w ith a single stage. T his type o f fil
ter is presented in Section 11-8.
Example 11-14
Find the quality factor o f a voice filter that has a bandw idth o f 2700 H z and a resonant fre
quency o f 950 H z (see E xam ples 11-12 and 11-13).
Active Filters 315
£> = — = = 0.35
“ B 2700
11-7.1 Cascading
W hen the output of one circuit is connected in series w ith the input o f a second circuit,
the process is called cascading gain stages. In Fig. 11-11, the first stage is a 3000-H z low-
pass filter (Section 11-3). Its output is connected to the input o f a 300-H z high-pass fil
ter (Section 11-5.3). The cascaded pair o f active filters now form a bandpass filter from
input Et to output Va. N ote that it m akes no difference if the high-pass is connected to the
low -pass, or vice versa. Note: Each op am p circuit in Fig. 11-11 has unity gain.
In general, a w ideband filter (Q < 0.5) is m ade by cascading a low- and a high-pass fil
ter (see Fig. 11-11). C utoff frequencies o f the low- and high-pass sections m ust n o t over
lap, and each m ust have the sam e passband gain. F urtherm ore, the low -pass filter's cu t
off frequency m ust be 10 or m ore tim es the high-pass filter’s cutoff frequency.
For cascaded low- and high-pass filters, the resulting w ideband filter will have the
follow ing characteristics:
1. T he low er cutoff frequency,//, will be determ ined only by the high-pass filter.
2. The high cutoff frequency,/*, will be set only by the low -pass filter.
3. G ain will be m axim um at resonant fre q u e n c y ,/,, and equal to the passband gain o f
either filter.
In Fig. 11-11 the frequency response o f a basic —40-dB /decade 3000-H z low -pass filter
is plotted as a dashed line. T he frequency response o f a 300-H z high-pass filter is plotted
as a solid line. T he 40-dB /decade roll-off o f the high-pass filter is seen to d e te r m in e /.
T he -4 0 -d B /d e c a d e roll-off of the low -pass s e ts /,. B oth roll-off curves m ake up the fre
quency response o f the bandpass filter, V0 versus / O bserve that the resonant, low, and
high c u to ff fre q u en c ies plus b an d w id th agree ex actly w ith the v alues ca lc u lated in
320 Chapter 11
As show n in Fig. 11-14, a notch filter is m ade by subtracting the output o f a bandpass fil
ter from the original signal. For frequencies in the notch filter’s passband, the output o f
the bandpass filter section approaches zero. T herefore, input £, is transm itted via adder
input resistor /?, to drive V0 to a value equal to —E h Thus VQ = in both low er and
upper passbands of the notch filte r
Suppose that the frequency of E-, is adjusted to resonant frequency f r o f the narrow
bandpass filter com ponent. (Note: f r o f the bandpass sets the notch frequency.) £, will exit
from the bandpass as — £, and then is inverted by R x and R to drive V0 to + E t. However,
E t is transm itted via R 2 to drive V0 to —E {. T hus VQ responds to both inputs o f the adder
and becom es Va = - E t = 0 V at f n
In practice, VG approaches zero only a t / r . T he depth o f the notch depends on how
closely the resistors and capacitors are m atched in the bandpass filter and ju d icio u s fine
adjustm ent o f resistor /?, at the inverting ad d er’s onput. T his procedure is explained in
Section 11-10.3.
R
AAAt
Fig. 11-12
Narrow
bandpass
filter
V
FIGURE 11-14 A notch filter is made by a circuit that subtracts the output
of a bandpass filter from the original signal.
In applications w here low -level signals m ust be am plified, there may be present one or
m ore o f an assortm ent o f unw anted noise signals. E xam ples are 50-, 60-, or 400-H z fre
quencies from pow er lines, 120-Hz ripple from full-w ave rectifiers, or even higher fre
quencies from regulated sw itching-type pow er supplies or clock oscillators. If both sig
nals and a signal-frequency noise com ponent are passed through a notch filter, only the
desired signals will exit from the filter. T he noise frequency is “notched out.” As an ex
am ple, let us m ake a notch filter to elim inate 120-Hz hum.
Active Filters 321
This high value of Q m eans that (1) the notch and com ponent bandpass filter w ill have
narrow bands with very sharp frequency -resp o n se curves, and (2) the bandw idth is es
sentially centered on the resonant frequency. A ccordingly, this filter will transm it all fre
quencies from 0 to (120 - 6) = 114 Hz and all frequencies above (120 + 6) = 126 Hz.
The notch filter will stop all frequencies betw een 114 and 126 Hz.
1. M ake a bandpass filter that has the sam e resonant frequency, bandw idth, and conse
quently Q as the notch filter.
2. C o n n e ct the in v e rtin g ad d e r o f Fig. 11-15 by se le c tin g eq u al re sis to rs for R .
U sually, R — 10 k fl. (A practical fine-tuning p ro ced u re is p resented in the next
section.)
T he first step in m aking a 120-Hz notch filter is best illustrated by an exam ple (see Fig.
11-15).
D esign E x a m p le 11-17
D esign a bandpass filter w ith a resonant frequency o f f r = 120 Hz and a bandw idth o f
12 H z so that 2 = 1 0 . T hus gain of the bandpass section will be 1 at f r and approach zero
at the output o f the notch labeled V0.
0.1591
= 40.2 k f l
(12)(0.33 X 10“ 6)
Active Filters 323
R efer to Fig. ll- 4 ( a ) and create the PSpice m odel o f the circuit using a 741 op am p if
you are using the evaluation softw are package. The input voltage source will be VAC and
w ill be set for a 1-V m agnitude. We w ant a plot o f V0 versus frequency. To begin, place
the follow ing parts in the w ork area.
Note: We are using VAC as the input source instead o f VSIN as we have in previ
ous chapters. The VAC sym bol requires only that m agnitude and phase be set. T he fre
quency range will be set in the A nalysis Setup m enu. A rrange the parts as show n in Fig.
11-4(a). C hange the attributes o f the parts to those values given in Exam ple 11-4. Set up
the VAC sine w ave attributes by d o u b le-click in g the sym bol; in the p o p-up w indow
change phase and m agnitude.
Save the circuit as a file with the .SCH extension. Run the sim ulation
In the Probe window, we need to select both P lot and Trace options from the m enu bar.
T he procedure for m odeling and sim ulating a high-pass filter is sim ilar to that for the low-
pass filter previously described. R efer to Fig. ll- 8 ( a ) and create the PSpice m odel o f the
circuit using a 741 op amp. T he input voltage source w ill be VAC and will be set for a
1-V m agnitude. O btain a plot o f V0 versus frequency. To begin, place the follow ing parts
in the w ork area.
As previously m entioned w e are using VAC as the input source instead o f VSIN so that
we may vary frequency through a range, because the VAC sym bol requires only m agni
tude and phase to be set. T he frequency range is set in the A nalysis Setup m enu. A rrange
the parts as show n in Fig. 1 l-8(a). Change the attributes o f the parts to those values given
in Exam ple 11-8. Set up the VAC sine wave attributes by double-clicking the sym bol; in
the pop-up w indow change phase and m agnitude.
D ouble-click on the lead from the output term inal o f the op am p and label it Vo
(see Fig. 11-18). To obtain a plot o f V0 versus frequency, we m ust initialize the AC Sw eep
menu.
Save the circuit as a file w ith the .SCH extension. Run the sim ulation
PROBLEMS _____________________________________________________________________
11-1. List the four types of filters.
11-2. What type of filter has a constant output voltage from dc up to the cutoff frequency?
11-3. What is a filter called that passes a band of frequencies while attenuating all frequencies
outside the band?
11-4. In Fig. 11-2(a), if R = 100 kO and C = 0.02 /zF, what is the cutoff frequency?
11-5. The low-pass filter of Fig. 11 -2(a) is to be designed for a cutoff frequency of 4.5 kHz. If
C = 0.005 /aF, calculate R.
11-6. Calculate the cutoff frequency for each value of C in Fig. PI 1-6.
Rf = 10 kQ
AAAr
FIG U RE PI 1-6
11-14. In Fig. 1 l-7(a) calculate (a) a)c and (b) f c if R = 10 k ft and C = 0.01 /xF
11-15. Design a 40-dB/decade high-pass filter for o)c = 5 krad/s. G = C2 = 0.02 jjlF.
11-16. Calculate (a) R ] and (b) /?2 in Fig. 11 -8(a) for a cutoff frequency of 40 krad/s. CA = C2 =
250 pF.
11-17. For Fig. I I-9(a), let C{ = C2 = C3 = 0.05 /xF. Determine (a) /?3, (b) /?,, and (c) R2 for a
cutoff frequency of 500 Hz.
11-18. The circuit of Fig. 11-9(a) is designed with thevalues CA = C2 = C3 = 400 pF, =
100 kH, /?2 = 25 kH, and /?3 = 50 kfi. Calculate the cutoff frequency/,.
11-19. Find the (a) bandwidth, (b) resonant frequency, and (c) quality factor of a bandpass filter
with lower and upper cutoff frequencies of 55 and 65 Hz.
11-20. A bandpass filter has a resonant frequency of 1000 Hz and a bandwidth of 2500Hz.Find
the lower and upper cutoff frequencies.
11-21. Use the capacitor and resistor values of the high-pass filter in Fig. 11-11 to prove f c =
3000 Hz.
11-22. Use the capacitor and resistor values of the high-pass filter in Fig. 11-11 to prove that
f c = 300 Hz.
11-23. Find Q for the bandpass filter of Fig. 11-11.
11-24. Design a narrow bandpass filter using one op amp.The resonantfrequency is 128Hz and
Q = 1.5. Select C = 0.1 /jlF in Fig. 10-12.
11-25. (a) How would you convert the bandpass filter of Problem 11-24 into a notchfilter with the
same resonant frequency and Q1 (b) Calculate / and f h for the notch filter.
CHAPTER 12
Modulating, Demodulating,
and Frequency Changing
with the Multiplier
LEARNING O B J E C T I V E S _____________________________________________________
U pon com pletion o f this chapter on m ultiplier ICs, you will be able to:
• W rite the output-input equation of a m ultiplier IC and state the value o f its scale factor.
• M ultiply tw o dc voltages or divide one dc voltage by another.
• Square the value of a dc voltage or take its square root.
• D ouble the frequency o f any sine wave.
• M easure the phase angle betw een tw o sine w aves o f equal frequency.
• Show that am plitude m odulation is actually a m ultiplication process.
• M ultiply a carrier sine w ave by a m odulating sine wave and express the output voltage
either by a product term or by a term containing sum and difference frequencies.
• C alculate the am plitude and frequency o f each output frequency term.
• M ake either a balanced am plitude m odulator or a standard am plitude m odulator.
• Show how a m ultiplier can be used to shift frequencies.
Modulating, Demodulating, and Frequency Changing with the Multiplier 331
A nalog m ultipliers are arrangem ents o f op am ps and other circuit elem ents available as
an integrated circuit. M ultipliers are easy to use; som e o f their applications are (1) m ea
surem ent o f power, (2) frequency doubling and shifting, (3) detecting phase-angle differ
ence betw een two signals o f equal frequency, (4) m ultiplying tw o signals, (5) dividing
one signal by another, (6) taking the square root o f a signal, (7) squaring a signal, and (8)
designing nonlinear signal conditioning circuits. A nother use for m ultipliers is to dem on
strate the principles o f am plitude m odulation and dem odulation. T he schem atic o f an
A D 633 m ultiplier is show n in Fig. 12-l(a). The device is a four-quadrant analog m ulti
plier. It has high input im pedance, w hich makes signal source loading negligible. Pow er
supply voltages can range from ± 8 V to ± 1 8 V. No external com ponents or user calibra
tion are required. T he output voltage is a scaled version o f the x and y inputs. T he scale
fa c to r is explained in Section 12-1.
T he 8-pin m ini-D IP housing and internal schem atic o f the A D 633 m ultiplier is show n in
Fig. 12-1(a). In general term s, the output voltage V0 is expressed by,
V0 = — ~ ~ + ; (12-1)
w here V0 is the output voltage m easured at term inal W w ith respect to ground. T he fac
tor of is called a scale fa c to r and is typical o f m ultipliers, because m ultipliers are d e
signed for the sam e type o f pow er supplies used for op am ps, nam ely ± 1 5 V. For best re
sults, the voltages applied to either x or y inputs should not exceed + 1 0 V or —10 V w ith
respect to ground. T his ± 1 0 -V lim it also holds for the output, so the scale factor is u su
ally the reciprocal o f the voltage lim it, or 1/10 V. If both input voltages are at their posi
tive lim its o f + 1 0 V, the output w ill be at its positive lim it o f 10 V.
332 Chapter 12
M ultipliers are classified by quadrants; for exam ple, there are one-quadrant, tw o-quadrant,
and four-quadrant m ultipliers. T he classification is explained in tw o w ays in Fig. 12-2. In
Fig. 12-2(a), the input voltages can have four possible polarity com binations. C onsider
*2 ~ )>2 = z = 0 , then both x v and y x are positive and operation is in quadrant 1, since x,
is the horizontal and y x the vertical axis. If x x is positive and y ] is negative, quadrant 4 o p
eration results, and so forth.
Example 12-1
(c) V0 = ^ = - 1 0 V, quadrant 4
In Fig. 12-2(b), V0 is plotted on the vertical axis and x, on the horizontal axis. If
w e apply 10 V to the y input and vary jc from - 1 0 V to + 1 0 V, we plot the line ab, la
beled y = 10 V. If y x is changed to - 1 0 V, the line cdy labeled 3^1 = —10 V, results. T hese
lines can be seen on an oscilloscope by connecting V0 o f the m ultiplier to the y x input o f
the oscilloscope and X\ of the m ultiplier to the + x x input o f the oscilloscope. F or accu
racy, V0 should be 0 V w hen either m ultiplier input is 0 V. M ultiplier errors are prim ar
ily due to input and output offsets, scale factor error, and/or nonlinearity o f the core m ul
tiplying unit. T hese errors are only fractions o f a percen t error, and if they need to be
elim inated refer to the m anufacturer’s data sheet.
Modulating, Demodulating, and Frequency Changing with the Multiplier 337
If two sine w aves o f the sam e frequency are applied to the m ultiplier inputs in Fig. 12-
5(a), the output voltage V0 has a dc voltage com ponent and an ac com ponent w hose fre
quency is tw ice that o f the input frequency. This conclusion was developed in Section 12
3.2. T he dc voltage is actually proportional to the difference in phase angle 0 betw een EX]
and Eyx. For exam ple, in Fig. 12-5, 0 = 0°, because there was no phase difference be
tw een EXi and Eyr Figure 12-5(b) shows two sine waves o f identical frequency but a phase
difference o f 90°; therefore, 0 = 90°.
If one input sine w ave differs in phase angle from the other, it is possible to calcu
late or m easure the phase-angle difference from the dc voltage com ponent in VD. This dc
com ponent VQ dc is given by*
( 12-4a)
w here Exp and Eyp are peak am plitudes o f EX] and Eyr For exam ple, if Exp = 10 V, Eyp =
5 V, and they are in p h a se, then Va dc would indicate 2.5 V on a dc voltm eter. This volt
m eter point w ould be m arked as a phase angle o f 0° (cos 0° = 1). If 0 = 45° (cos 45°
= 0.707), the dc m eter w ould read 0.707 X 2.5 V — 1.75 V. O ur dc voltm eter can be cal
ibrated as a phase-angle m eter 0° at 2.5 V, 45° at 1.75 V, and 90° at 0 V.
E quation (12-4a) m ay also be expressed by*
( 12-4b)
•xp L *yp
If we could arrange for the product Exp Eyp to equal 20, we could use a 0 -to -l-V dc
voltm eter to read cos 0 directly from the m eter face and calibrate the m eter face in d e
grees from a cosine table. T hat is, Eq. (12-4b) reduces to
^Trigonometric identity:
Therefore,
x2 = y2 = z = 0
(a) Phase-angle m easurem ent.
VQ— -s in 2rc2000/
(The last tw o rows of this table com e from E xam ples 12-5 and 12-6.)
T he 0 -to -l-V voltm eter scale can now be calibrated in degrees, 0 V for a 90° phase
angle and 1.0 V for 0° phase angle. A t 0.866 V, 0 = 30°, and so forth. T he phase-angle
m eter does not indicate w hether 0 is a leading or lagging phase angle but only the phase
difference betw een EXx and Eyr
Example 12-8
0
O
OO
o
+1
vodc 0V - 0 .5 V - 0 .7 0 V - 0 .8 6 6 V -1 V
F rom the results o f E xam ples 12-7 and 12-8, a ± 1-V voltm eter can be calibrated to
read from 0 to ± 1 8 0 °.
A n analog divider gives the ratio o f two signals or provides gain control. It is constructed
as show n in Fig. 12-6 by inserting a m ultiplier in the feedback loop o f an op am p. Since
the op a m p ’s ( - ) input draw s negligible current, the sam e value o f current I flow s through
Modulating, Demodulating, and Frequency Changing with the Multiplier 341
resistors R. Therefore, the output voltage o f the m ultiplier Vm is equal in m agnitude but
opposite in polarity (with respect to ground) to E in or
£ in = - V m ( 12-5a)
B ut Vm is also equal to one-tenth (scale factor) o f the product o f input Ex and output of
the op am p V0. Substituting for Vm yields
V E
3 " = -“ U 2-5b)
A divider can be m ade to find square roots by connecting both inputs o f the m ultiplier to
the output o f the op am p (see Fig. 12-7). E quation (l2 -5 a ) also pertains to Fig. 12-7. But
now Vm is one-tenth (scale factor) o f V0 X V0 or
V2
~E-m = V m = - £ ( 12-6a)
Vc = V l O l E j (12-6b)
Equation (12-6b) states that V0 equals the square root o f 10 tim es the m agnitude o f £ in.
E in m ust be a negative voltage, or else the op am p saturates. T he range o f E m is betw een
— 1 and —10 V. Voltages sm aller than —1 V w ill cause inaccuracies. T he diode prevents
( - ) saturation for positive E m. If E [n has positive values, reverse the diode.
L ow -frequency audio or data signals cannot be transm itted from antennas o f reasonable
size. A udio signals can be transm itted by changing or m odulating som e characteristic o f
a higher-frequency carrier wave. If the am plitude o f the carrier w ave is changed in pro-
First Experiences with an Op Am p 33
Input =
tem perature 115 to output
0 to 50 °C 323 (iA Current-to- 0 to 5 V
■N
■> W
W’ — Transducer w voltage
W W C
converter
0 10 20 30 40 50
Tem perature (°C)
(b) In put-output characteristic of a
tem perature-to-voltage converter.
A ssum e that you have available a circu it that gives 0 to 5 V out fo r a ro o m -tem -
p erature change o f 0° to 50°C (see Fig. 2-15). T he o u tput, Vtemp, can now be used as
a m easu rem en t o f tem perature, or it can be used to co n tro l tem p eratu re. S u p p o se that
you w ant to send this te m p eratu re in fo rm atio n to a co m p u ter so th at the co m p u te r
could m onitor, control, or chan g e room tem p eratu re. A voltag e-lev el d etec to r can a c
com plish this task. To u nderstand how this can be done, w e p resen t a p u lse -w id th m o d
ula to r using the L M 339 com parator.
r H= r -
FIGURE 2-16 V,emp is defined as the input signal in (a). As V'(emp increases from 0 to 5 V, the
high time of output voltage V0 increases from 0 to 10 ms. The circuit is called a noninverting pulse-
width modulator
First Experiences with an Op Am p 35
Exam ple 2-2 shows that the pulse-w idth m odulator can also be called a duty-cycle
controller.
Example 2-2
A 10-V, 50-H z saw tooth wave is pulse-w idth m odulated by a 4-V signal. Find the o u tp u t’s
(a) high tim e; (b) duty cycle.
T = ~ = = 20 ms
f 50 Hz
(b) D uty cycle is defined as the ratio o f high tim e to the period and is expressed in
percent:
8 ms
X 100
20 ms
F igure 2-17 show s the difference betw een noninverting and inverting pulse-w idth m odu
lators. If signal Vlemp is applied to the ( + ) input, the circuit is defined as noninverting [see
Figs. 2 - 17(a), (b), and (c)]. T he slope of TH versus Vlemp rises to the right and is p o sitive
or noninverting.
(a) N o n i n v e r t i n g P W M . (d) Inve rting P W M .
(A )°3
(A) °A
(b) Input and output wave forms for Vref = I V. (e) Input and output wave forms for Vref = I V.
lemp V v t
FIGURE 2-17 Output high time increases as input Vlemp increases in a noninverting pulse-width modulator
[see (a), (b), and (c)]. Output high time decreases as Vicmp increases in an inverting pulse-width modulator
First Experiences with an Op Am p 37
(2-5)
Example 2-3
Either circuit of Fig. 2-17 can be used to transm it tem perature inform ation as a pulse-w idth
m odulated signal to a com puter. The advantage o f such an analog interface circuit is to
elim inate a voltage drop over distances o f several hundred feet. Thus the pulse-w idth m od
ulator can interface an analog signal with an input port o f a m icrocontroller (see Fig. 2
18). T he tem perature is first converted to a voltage by the sensor. A noninverting pulse-
w idth m odulator then converts this analog voltage to an output that is digital in nature; that
is, its output is either high or low and the high tim e is directly proportional to tem perature.
Noninverting Internal
w Tem perature-to-
W pulse- counter of a
voltage converter
width m odulator m icrocontroller
T he com puter program m er can perform the analog-to-digital conversion o f the high
tim e to a digital code. T his may be done by using a 1-ms tim ing loop and counting the
num ber o f tim es that the loop is executed. A nother and m ore efficient m ethod is to use
the internal counter designed into m ost m icrocontrollers. T he O-to-5-V transition o f V0 is
38 Chapter 2
used to start the m icrocontroller’s counter and the 5-to-O-V transition stops the co u n ter
T he count, w hich is autom atically stored in one o f the m icro co n tro ller’s internal registers,
is directly proportional to the tem perature.
2-10.1 Introduction
PSpice is a softw are package for analog and digital design analysis. S tudents w ho are
studying op am ps usually have aLready used PSpice in previous courses, so all the PSpice
fundam entals are not introduced; however, enough introduction steps are included th ro u g h
out this text to allow first-tim e users to create and analyze their circuits.
L et us create and analyze the noninverting positive-level detector circuit show n in Fig.
2-5(a). We will use a sine wave for the input signal because it is easy to obtain from the
basic parts list. (Note: T he parts list does not contain a triangular w aveform although one
can be created, w hich we w ill do in a later chapter.) To create and sim ulate Fig. 2-5(a),
open a new w orksheet either by clicking on File = > New, or if the PSpice w indow is not
open, double-click on the Schem atics icon in the window, [f necessary, enlarge the w ork
area to fill the entire screen.
The basic parts list browser may be obtained by clicking Draw from the Menu bar and
then clicking Get New Part from the drop-down menu. These steps will be represented by
A shortcut for obtaining the parts list is to click the icon on the toolbar. (Note: T he
icon sym bol is different for different versions o f PSpice.) E ith er m ethod produces a p o p
up m enu that contains the Parts Browser’s basic list. Click Advanced > > and the b a
sic m enu expands to include a w indow to show you the part before you place it in the
w ork area. O ther libraries o f parts can be obtained by clicking on the Libraries button.
The general guidelines for creating and sim ulating a circuit in P Spice are:
Let us create the noninverting positive-level detector circuit o f Fig. 2-5(a) by call
ing up the follow ing parts and placing them in the w ork area. It is easier if you get all the
parts at once and place them in the right section o f the w ork area, close the parts list, and
then arrange the parts as they appear in the circuit schem atic. For this application, w e will
use three dc supplies for + V, - V, and Vref.
Draw => Get New Part
=> UA741 pins 1 and 5 are shown but not used eval. sib
=> VDC place three for + V, - Vr and Vre( source.slb
=> VSIN sine wave source.slb
=> GLOBAL place six portslb
=> AGND analog ground, place five port.slb
=> R resistor for RL analog.slb
Close the parts list and arrange the parts as in Fig. 2-5(a). (Note: T he op am p PSpice
m odel com es from the parts list w ith the inverting term inal at the bottom and the nonin
verting term inal at the top o f the diagram . For now w e will leave it w ith this orientation.
T he term inals can be sw itched if the op am p is rotated tw ice and then flipped. In this new
orientation, however, + V is at the bottom and - V is at the top.) To interconnect the parts,
click D ra w = > W ire or click the thin Pencil icon in the toolbar. F igure 2-19 show s how
the parts can be interconnected.
ref
+V
v2 — V4
6V - 15V - 15V
+V
VO Vo Vo
. 5
VampJ = 10 V
Freq = 100 Hz Rl =
uA741 10 k
V
The parts in this circuit that require setting new values (attributes) are the three dc
supply voltages; the six globals; the sine w ave’s am plitude, frequency, and offset; and the
value o f R l . C hanging a p art’s attributes is done by first double-clicking on the part or
value to be changed and then entering the new value. D ouble-clicking highlights the part
or value in red and then opens an attribute box that allow s you to en ter the new value.
40 Chapter 2
+ V = 15 V
—V = 15 V (N ote the orientation o f this supply.)
V ref = 6 V
Sim ilarly the label o f the resistor and its value can be changed to R L and 10 k fl, re
spectively. To change the attributes of the input sine-w ave signal, double-click the sym
bol and a VS1N attribute box appears. O ne at a time, change each attribute by dou b le
clicking the attribute and setting the new value in the window. For this circuit, am plitude,
frequency, and offset values have to be changed as show n:
AM PL = to 10 V = > Save Attr = > Change Display = > Both name and value
FREQ - to 100 Hz = > Save Attr = > Change Display = > Both name and value
VOFF = to O V = > Save Attr (not necessary to change display for this application)
In this application, we w ant a plot o f E n Vref, and VQ versus tim e sim ilar to w hat is
show n in Fig. 2-5(a). In order to do this, we first m ust add the location o f Et and VDto
the op a m p ’s inverting and output term inals, respectively. T he location o f Vref is already
show n on the circuit diagram . This step is done by double-clicking the “w ire” connection
at the point o f interest and entering the label in the w indow o f the pop-up box. Figure 2
19 show s the com pleted schem atic ready for analysis. To obtain these plots, open Analysis
= > Probe Setup and click A u to m a tic ally Run P robe A fter S im u la tio n . N ow open
Analysis = > Setup and click the box next to Transient. An x appears indicating it has
been selected. Now click on Transient and set Print Step to 0.05 ms and Final T im e to
20 ms. This will allow P robe to display tw o com plete cycles o f a 100-H z sine wave.
Save the file by File = > Save or by clicking the Disk icon in the toolbar. You may
use any file nam e but be sure to use extension .SCH. A check o f the w iring corrections
is done by creating a netlist— Analysis = > Create Netlist. A w arning appears if there
are any w iring errors. C lick O K and a list o f the error location(s) is obtained. If there are
no errors, then the circuit is ready to run the sim ulation program . T his step is done by
Analysis = > Simulate or using the hot key FI 1. T he Probe window (a b lack screen) ap
pears. To plot the graphs, use Trace = > Add and click V[Ei], V[Vref], and V[Vo] and
then OK. T he three w aveform s should now be plotted as show n in Fig. 2-20. To add la
bels to the graphs, use Tools = > Label = > Text and a text box appears. Type in the la
bel you w ish to place on the graph and then click OK. Use the m ouse to place the label
w here you w ant it and repeat the procedure for any new labels. To add arrow s, use Tools
= > Label = > Arrow. Use the m ouse to place the tail o f the arrow at the starting point
and draw out the arrow. C lick the left m ouse button to stop and the com pleted arrow is
draw n.
42 Chapter 2
2-7. Ej is applied to the ( - ) input and ground to the ( + ) input of a 741 in Fig. P2-7. Sketch ac
curately (a) Va vs. / and (b) V0 vs. E-r
FIGURE P2-7
2-8. Swap the input connections to E, and ground in Fig. P2-7. Sketch (a) Vn vs. t and (b) V0 vs.
E,
2-9. Refer to Problems 2-7 and 2-8. Which circuit is the noninverting zero-crossing detector, and
which is the inverting zero-crossing detector?
2-10. To which input would you connect a reference voltage to make an inverting level detector?
2-11. You need a 741 noninverting voltage-level detector, (a) Will the output be at +V sa, or ~ V sM
when the signal voltage is above the reference voltage? (b) To which input do you connect
the signal?
2-12. Design a reference voltage that can be varied from 0 to - 5 V. Assume that the negative sup
ply voltage is - 1 5 V.
2-13. Design a 0 to +50 mV adjustable reference voltage. Derive it from the + 15-V supply.
2-14. The frequency of carrier wave Ec is constant at 50 Hz in Fig. P2-14. If Vlemp = 5 V, (a) cal
culate high time TH\ (b) plot V0 vs. time.
FIGURE P2-14
2-15. Assume that Vtemp is varied from 0 V to + 10 V in Problem 2-14. Plot TH vs. Vlemp
First Experiences with an Op Am p 43
2-16. In Fig. P2-16, £ in is a triangle wave. The amplitude is - 5 V to + 5 V and the frequency is
100 Hz. Sketch accurately the graphs of (a) Va vs. £ in; (b) V0 vs. /.
+ 15 V
A +5 V
FIGURE P2-16
2-17. Draw the schematic of a circuit whose output voltage will go positive to + Vsa„ when the in
put signal crosses +5 V in the positive direction.
2-18. Is the solution of Problem 2 -1 7 classified as an inverting or noninverting comparator?
2-19. Draw a circuit whose output goes to + Vsat when the input signal is below - 4 V. The output
should be at —Vsa, when the input is above - 4 V.
2-20. Does the solution circuit for Problem 2-19 represent an (a) inverting or noninverting, (b) pos
itive- or negative-voltage-level detector?
CHAPTER 3
U pon com pleting this chapter on inverting and noninverting am plifiers, you will be able
to:
• D raw the circuit for an inverting am plifier and calculate all voltages and currents for a
given input signal.
• Draw the circuit for a noninverting am plifier and calculate all voltages and currents.
• Plot the output voltage w aveshape and o u tp u t-in p u t characteristics o f eith er an invert
ing or a noninverting am plifier for any input voltage w aveshape.
• D esign an am plifier to m eet a gain and input resistance specification.
• Build an inverting or noninverting adder and audio mixer.
• U se a voltage follow er to m ake an ideal voltage source.
• C reate a negative output voltage from a positive reference voltage.
• Add a dc offset voltage to an ac signal voltage.
Inverting and Noninverting A m plifiers 45
This chapter uses the op am p in one of its m ost im portant applications— m aking an am
plifier. An am plifier is a circuit that receives a signal at its input and delivers an undis
torted larger version o f the signal at its output. All circuits in this chapter have one fea
ture in com m on: An external feedback resistor is connected betw een the output term inal
and ( —) input term inal. T his type of circuit is called a negative fe ed b a c k circuit.
T here are many advantages obtained with negative feedback, all based on the fact
that circuit perform ance no longer depends on the open-loop gain o f the op am p, A OL. By
adding the feedback resistor, we form a loop from output to ( —) input. T he resulting cir
cuit now has a closed-loop gain or am plifier gain, A CL, w hich is independent o f A OL (pro
vided that A 0 l is m uch larger than ACL).
As will be shown, the closed-loop gain, A CL, depends only on external resistors. For
best results 1% resistors should be used, and A CL will be know n within 1%. N ote that
adding external resistors does not change the open-loop gain A OL. A OL still varies from
op am p to op am p, so adding negative feedback will allow us to ignore changes in A o L
as long as A OL is large. We begin with the inverting am plifier to show that A CL depends
sim ply on the ratio o f two resistors.
3-1.1 Introduction
In Fig. 3-1, positive voltage E, is applied through input resistor R t to the op am p ’s ( —) in
put. N egative feedback is provided by feedback resistor Rf . T he voltage betw een the ( + )
and ( - ) inputs is essentially equal to 0 V. T herefore, the ( - ) input term inal is also at
46 Chapter 3
Voltage across
R f equals V(>.
—
Rf = 100 kft
Voltage across +V
Rj equals Et
— W v -----------
R; = 10 kQ -0V
0 V, so ground potential is at the ( —) input. For this reason, the ( - ) input is said to be at
virtual ground.
S ince one side of /?, is at E, and the other is at 0 V, the voltage drop across /?, is E h
T he current I through /?, is found from O h m 's law:
(3 -la )
Rj includes the resistance of the signal generator. This point is discussed further in Section
3-5.2.
All of the input current I flow s through Rf> since a negligible am ount is draw n by
the ( —) input term inal. N ote that the current through Rf is set by /?, and not by Rft V0,
or the op amp.
T he voltage drop across R f is sim ply I (Rf), or
(3 -lb )
As shown in Fig. 3-1, one side of R f and one side o f load R L are connected. The voltage from
this connection to ground is V0. The other sides o f R f and o f R L are at ground potential.
Therefore, V0 equals VRj (the voltage across RJ). To obtain the polarity o f VQ, note that the
left side of R f is at ground potential. The current direction established by Ef forces the right
side of R f to go negative. Therefore, VQ is negative when Et is positive. Equating V0 with VRj
and adding a minus sign to signify that VG goes negative when Ex goes positive, we have
Inverting and Noninverting A m plifiers 47
(3-2a)
0 '/?,■
Now, introducing the definition that the closed-loop gain o f the am plifier is A cL, we
rew rite Eq. (3-2a) as
A C L — (3-2b)
R,
T he m inus sign in Eq. (3-2b) show s that the polarity o f the output Va is inverted
w ith respect to E h For this reason, the circuit o f Fig. 3-1 is called an inverting amplifier.
The load current 1L that flow s through R L is determ ined only by R L and V0 and is fu r
nished from the op am p ’s output term inal. T hus 1L = V J R L. The current / through Rf m ust
also be furnished by the output term inal. T herefore, the op am p output current l0 is
(3-3)
E x a m p le 3-1
For Fig. 3-1, let Rf = 100 k fl, R, = 10 k fl, and £, = 1 V. C alculate (a) /; (b) V*; (c) A b
F 1V
I = — = “4 ^ 7 7 = 0.1 mA
/?, io k n
(b) From Eq. (3-2a),
Rr
v’ = - % x e >- (iv»- - |ov
(c) U sing Eq. (3-2b), we obtain
R>r _ 100 k f l
= -10
Ri 10 k f l
AcL = ^ = ^ y - = - l0
C E, 1V
E x a m p le 3-2
U sing the values given in Exam ple 3-1 and R L = 25 k fl, determ ine (a) IL\ (b) the total cu r
rent into the output pin of the op amp.
Inverting and Noninverting A m plifiers 49
E x a m p le 3-3
For Fig. 3-2, let R j = 250 k R t = 10 kCl, and = - 0 . 5 V. C alculate (a) /; (b) the volt
age across R /y (c) V0.
Ej_ = 0.5 V
1= = 50 /jlA = 0.05 mA
R, 10 k a
(b) From Eq. (3 -lb ),
VR f = I X R f
= 12.5 V
Rr 250 kH
( - 0 . 5 V) = + 1 2 .5 V
io k n
Thus the m agnitude of the output voltage does equal the voltage across Rf, and A C L = —25.
E x a m p le 3-4
U sing the values in Exam ple 3-3, determ ine (a) R L for a load current o f 2 mA; (b) I0\ (c)
the circu it’s input resistance.
Vn 12.5 V
IL 2 mA
IQ = 1 + IL = 0.05 mA + 2 mA = 2.05 mA
(c) The circu it’s input resistance, or the resistance seen by , is /?, = 10 kH.
A PSpice model and sim ulation results are given in Section 3-13.
Figure 3-3(a) shows an ac signal voltage E t applied via R , to the inverting input. For the
positive half-cycle, the voltage polarities and the direction o f currents axe the sam e as in
Fig. 3-1. For the negative half-cycle voltage, the polarities and direction o f currents are the
sam e as in Fig. 3-2. T he output waveform is the negative (or 180° out o f phase) o f the
Inverting and Noninverting Amplifiers 51
E x a m p le 3-6
If the input voltage in Exam ple 3-5 is - 5 V, determ ine the output voltage.
V, = — X E, = A cl E, = ( —2 )(—5 V) = 10 V
See tim e 0 in Figs. 3-3(b) and (c). T he frequency o f the output and input signals is the
same.
A P Spice m odel and sim ulation are given in Section 3-13. The sim ulation uses a 5-V-
peak sine w ave w ith a frequency set at 500 H z as the input signal.
Follow ing is an exam ple o f the design procedure for an inverting am plifier.
D esign E x a m p le 3-7
D esign an am plifier w ith a gain of —25. The input resistance R {n should equal or exceed
10 m .
D esign P ro c e d u re
You are interview ing for a jo b in the electronics field. T he technical interview er asks you
to analyze the circuit. A ssum e that you recognize the circuit as that o f an inverting am
plifier. Then,
1. Look at R h State that the input resistance o f the circuit equals the resistance o f R
2. D ivide the value of R f by the value o f R h State that the m agnitude o f gain equals
R f/R h A lso, the output voltage will be negative w hen the input voltage is positive.
Inverting and Noninverting A m plifiers 53
Example 3-9
If the polarity of E 3 is reversed in Fig. 3-4 but the values are the sam e as in E xam ple 3-8,
find V0.
If only two input signals, E x and E 2, are needed, sim ply replace E 3 w ith a short cir
cuit to ground. If four signals m ust be added, sim ply add another equal resistor R betw een
the fourth signal and the sum m ing point S . E quation (3-4) can be changed to include any
num ber o f input voltages.
In the adder of Fig. 3-4, all the input currents flow through feedback resistor Rf . T his
m eans that /, does not affect / 2 or / 3. M ore generally, the input currents do not affect one
another because each “sees” ground potential at the sum m ing node. T herefore, the input
currents— and consequently the input voltages £ ], E 2, and E 3— do not interact.
T his feature is especially desirable in an audio mixer. For exam ple, let E u E2, and
E 3 be replaced by m icrophones. The ac voltages from each m icrophone w ill be added or
m ixed at every instant. Then if one m icrophone is carrying guitar m usic, it will not com e
out of a second m icrophone facing the singer. If a lOO-kfl volum e control is installed be
tw een each m icrophone and associated input resistor, their relative volum es can be ad
justed and added. A w eak singer can then be heard above a very loud guitar.
Example 3-10
Solution S elect a tw o-channel adder circuit as in Fig. 3-5(a). A variable dc offset voltage
Edc, is connected to one channel. The ac signal, £ ac, is connected to the other.
56 Chapter 3
Rf Rr Rr
E 1\„n + E2
D-7T + E 3 -Z-D (3-7a)
A1 A2 A3
E quation (3-7a) shows that the gain of each channel can be changed independently o f the
others by sim ply changing its input resistor.
Rf_
CL-S (3-7b)
/?>’ R?
or
V0 — E ]A Cl } + E 2A CL2 + E?A c L)
Follow ing is an exam ple of the design procedure for a m ultichannel am plifier.
D esign E x a m p le 3-11
D esign P ro c e d u re
1. S elect a 10-kfi resistor for the input resistance o f the channel with the highest gain.
C hoose /?! = 10 k f l since A CLi is the largest.
2. C alculate feedback resistor Rf from Eq. (3-7b):
A = _K l R,
C L , . 10 = R f = 100 k n
10 k f l ’
3. C alculate the rem aining input resistors from Eq. (3-7b) to get R 2 — 20 k H and R 3 =
50 kfl.
Suppose that you had to m easure the average tem perature at three locations in a dw elling.
First m ake three tem perature-to-voltage converters (shown in Section 5-14). T hen connect
their outputs to an averaging amplifier. An averaging am plifier gives an output voltage
Inverting and Noninverting A m plifiers 57
proportional to the average o f ail the input voltages. If there are three input voltages, the
averager should add the input voltages and divide the sum by 3. The averager is the sam e
circuit arrangem ent as the inverting adder in Fig. 3-4 or the inverting adder w ith gain in
Fig. 3-6. T he difference is that the input resistors are m ade equal to som e convenient value
R and the feedback resistor is made equal to R divided by the num ber of inputs. Let n equal
the num ber of inputs. Then for a three-input averager, n = 3 and Rf = R!3. Proof is found
by substituting into Eq. (3-7a), for Rf = R!3 and R x = R 2 — R^ = R to show that
(3-8)
E x a m p le 3-12
S o lu tio n Since R f = R B y the am plifier is an averager, and from Eq. (3-8) with n — 3, we
have
5 V + 5 V + ( - 1 V)
3
Up to now we have dealt w ith am plifiers w hose input signals were applied via R{
to the op am p ’s inverting input. We turn our attention next to am plifiers in w hich E-, is ap
plied directly to the op am p ’s noninverting input.
Figure 3-7 is a noninverting am plifier; that is, the output voltage, VD, is the sam e polar
ity as the input voltage, T he input resistance o f the inverting am plifier (Section 3-1)
is R h but the input resistance o f the noninverting am plifier is extrem ely large, typically
exceeding 100 M fl. Since there is practically 0 voltage between the ( + ) and ( - ) pins of
the op am p, both pins are at the sam e potential E r Therefore, Et appears across R\>
causes current I to flow as given by
(3-9a)
T he direction o f / depends on the polarity of E r C om pare Figs. 3-7(a) and (b). The input
current to the op am p ’s ( —) term inal is negligible. T herefore, I flows through f y a n d the
voltage drop across Rf is represented by VR and expressed as
Inverting and Noninverting A m plifiers 59
Rf
Va = Ei + - ^ - E,
R\
or
Vo ~ [ 1 + E,- (3-IOa)
Ri
R earranging Eq. (3 -10a) to express voltage gain, we get
V Rf R f + R]
A cl = - ^ = I+ ~ J ~ = / p (3-IOb)
Ej R\ Ri
E quation ( 3 - 10b) shows that the voltage gain o f anoninverting am plifier is alw ays greater
than 1.
The load current 1L is given by V0/R l and therefore depends only on V0 and R L. I0
is the op am p ’s output current and is given by Eq. (3-3).
Example 3-13
(a) Find the voltage gain for the noninverting am plifier o f Fig. 3-8. If E , is a 100-Hz trian
gle w ave w ith a 2-V peak, plot (b) V0 vs. t\ (c) VD vs. E h
R f+ R t ( 4 0 + 1 0 ) k fl
CL~ R] ~ 10 kH “
(b) See Fig. 3-8(b). T hese are the w aveshapes that w ould be seen on a dc-coupled, d u al
trace oscilloscope.
(c) See Fig. 3-8(c). S et an oscillo sco p e for an x - y display, vertical 5 V /div, h o rizo n tal
1 V/div. N ote that the slope rises to the right and is positive. R ise over run gives you the
gain m agnitude of + 5 .
Follow ing is an exam ple o f the design procedure for a noninverting am plifier.
R/+ R \
■E, = 5E:
K>(V)
(A) !3
(A) '3 PU« °A
(b) W aveshape of
VQ and £ , vs. /.
Design Procedure
1. Since the gain is positive, select a noninverting am plifier. T hat is, we apply E, to the
op a m p ’s ( + ) input.
2. Choose R { = 10 kft.
3. C alculate Rf from Eq. (3-10b).
3-6.1 Introduction
The circuit o f Fig. 3-9 is called a voltage follow er, but it is also referred to as a source
follower, unity-gain amplifier, buffer amplifier, or isolation amplifier. It is a special case
o f the noninverting amplifier. The input voltage, £, , is applied directly to the ( + ) input.
Since the voltage betw een ( + ) and ( —) pins of the op am p can be considered 0,
( 3 - II a)
Note that the output voltage equals the input voltage in both m agnitude and sign. T herefore,
as the nam e o f the circuit im plies, the output voltage fo llo w s the input or source voltage.
The voltage gain is 1 (or unity), as shown by
(3-1 lb)
Now let us consider the sam e signal source connected to an inverting am p lifier
w hose gain is - 1 [see Fig. 3 - 1 1(b)]. As stated in Section 3-1.3, the input resistan ce to
an inverting am plifier is R,. T his causes the g en erato r voltage £ gen to divide betw een
R ini and /?,. U sing the voltage division law to find the g en erato r term inal voltage E {
yields
R, io k n
E ,= X Earn = x (1.0 V) = 0.1 V
R\nl + Ri 10 k n + 90 k.Q
T hus it is this 0.1 V that becom es the input voltage to the inverting am plifier. If the in
verting am plifier has a gain of only —1, the output voltage V0 is —0.1 V.
In conclusion, if a high-im pedance source is connected to an inverting am plifier, the
voltage gain from V0 to Egen is not set by /fy-and R , as given in Eq. (3-2b). T he actual gain
m ust include R inl, as
R71 io kn
o .i
Ri + R \, ioo k n
If you m ust am plify and invert a signal from a high-im pedance source and w ish to
draw no signal current, first buffer the source w ith a voltage follower. Then feed the fo l
low er’s output into an inverter. If you need buffering and do not w ant to invert the input
signal, use the noninverting amplifier.
T he ideal voltage source is first encountered in textbooks concerned w ith fundam entals.
By definition, the voltage does not vary regardless o f how m uch current is draw n from it.
You m ay not be aw are of the fact that you create a perfect voltage source w hen you m e a
sure the frequency response o f an am plifier or filter. We explain how this apparently per
fect perform ance com es about in the next section.
The lab or field procedure typically goes like this: Set the input signal am plitude at 0.2 V
rm s and frequency at the low est lim it. M easure output V0. Hold E in at 0.2 V rm s for each
m easurem ent. Plot VQ or V0/E [u versus frequency. As you dial higher frequencies, E m b e
gins to decrease (because of input capacitance loading). You autom atically increase the
function g en erato r’s volum e control to hold E lu at 0.2 V. You have ju st, by definition, cre
ated an “ideal” voltage source. £ in never varied throughout the test sequence no m atter
how m uch current was draw n from it. This is an exam ple o f the unrecognized ideal volt
age source.
66 Chapter 3
To preserve the value of any reference voltage, sim ply buffer it with a voltage fol
lower. T he 7.5-V reference voltage is connected to a voltage follow er in Fig. 3-12(c). The
output of the follow er equals K e f - You can extract up to 5 mA from the fo llo w er's output
w ith no change in Vref.
T he buffer m akes an excellent clandestine bug. You can m onitor w hat is going on
at any circuit point. Since a follow er has a high input im pedance, it draw s negligible cu r
rent from the circuit. T herefore, it is nearly im possible to detect.
Section 2-6 introduced precision voltage reference ICs such as the R E F -02 (a precision
+ 5-V reference chip). You can use these voltage reference chips w ith an inverting am
plifier to create precise negative voltages as well as positive and negative voltages. The
circuit o f F igure 3 - 13(a) show s how a negative voltage o f —5 V can be created using the
R E F -02 and an inverting am plifier. T his circu it has a low er parts count and m ore p reci
sion than the circuit o f Figure 3-12(c). T he parts co u n t is obvious, and the precision is
obtained by the R E F -02 in place o f /?, and Rf . C onsider R t and Rjr to be 1% resistors.
T hen there is a possibility that one resistor could be + 1 % w hile the other is —1%. T his
w ill produce an o utput voltage w ith a 2% error, w hich may not be acceptable for your
design.
A n o th er ap p licatio n using the R E F -02 w ith an inverting am p lifier is show n in
F igure 3 - 13(b). T his circuit creates a ± 5 -V source from a single R E F-02 chip and an in
verting am plifier.
Rf = R ( n - 1) (3-12)
+ 15 V
1
2
V -1 5 V SJ
(b)
Som e am plifier designs require battery-pow ered operation and output voltage sw ings to
w ithin m illivolts o f the supply voltages. Thus, you w ant an op am p described by m anu
facturers as a device capable o f single-supply and rail-to-rail operation. Two such devices
are the A D 820 and the O P-90 from A nalog D evices. T h ese op am ps can operate from
either a single or dual supply. For exam ple, the A D 820 can operate from a dual supply
. sources, simply buffer each one with
a voltage follower.
FIG U RE 3-14 All resistors of an n-input noninverting adder are equal except
the feedback resistor; choose R = 10 kfl and RA = 10 kfl. Then /^eq u als R
times the number of inputs minus one: Rf = R(n — I).
Rf = 90 k Q
---------W V --------
+5 V
A
gages or therm ocouples. Figure 3 -15(a) show s the A D 820 w ired as a noninverting am
plifier w ith a gain o f 10. If you are operating the A D 820 from a single supply and w ant
to am plify an ac signal, then the input ac signal has to have a dc offset or be com bined
w ith a dc voltage as show n in F igure 3 -15(b). (Note: T his circuit is sim ilar to the invert
ing adder studied in F igure 3-5(a) but now operated from a single supply.)
T he differential am plifier and its more pow erful relative, the instrum entation am plifier,
will be studied in C hapter 8. However, as other applications of inverting and noninvert
ing am plifiers, we offer two exam ples o f the difference am plifier in this section and the
design o f a signal conditioning circuit for a tem perature sensor in the next.
70 Chapter 3
A circuit that takes the difference betw een tw o signals is called a su b tra cto r [see Fig. 3-
16(a)]. It is m ade by connecting an inverting am plifier to a tw o-input inverting averager.
To analyze this circuit, note that E, is transm itted through op am p A w ith a gain o f — 1
and appears as V0] = —E x. VDi is then inverted (tim es - 1 ) by the top channel o f the in
verting am plifier B. Thus E { is inverted once by op am p A and again by op am p B to ap
pear at VQ as E ,.
E 2 is inverted by the bottom channel o f op am p B and drives V0 to —E 2. T hus V0
responds to the difference betw een E { and E2, or
V0 = E l - E 2 (3-13a)
10 kO
J5 V
(a) An inverting am plifier and a two-input inverting
adder make a subtractor. VQ= E { - £ 2-
Rr= JOkft
------- ^A/V---------
15 V
(b) Both am plifier inputs are used to make an am plifier
that calculates the difference between 2E, and E 2.
FIG U RE 3-16 Two examples of difference amplifiers are the subtractor in (a) and us
ing the op amp as both an inverting and a noninverting amplifier in (b).
Inverting and Noninverting A m plifiers 71
In Fig. 3-16(b), signal E\ is applied to the am p lifier’s noninverting input and signal E2 is
applied to the inverting input. We w ill use superposition to analyze this circuit. First re
m ove E2 and replace it by a ground. E { sees a noninverting am plifier w ith a gain o f (Rf
+ Ri)IRit or 2. T hus E x alone drives V0 to 2E {. N ext reconnect E2 and replace E } by a
ground. E2 sees an inverting am plifier with a gain o f - 1 . E2 drives V0 to —E2. W hen both
E x and E2 are connected, V0 is given by
V„ = 2E[ - E2 (3-14)
A nother way of viewing the circuit in Fig. 3-5(a) (redraw n in Figure 3-17 for convenience)
is that it allows us to design a signal conditioning circuit (SCC) for a m icrocontroller ap
plication that satisfies the equation of a straight line, y = mx + b. This equation occurs quite
often w hen designing SCCs. Com paring the equation o f y = mx + b to the circuit o f Fig.
3-17, the y term is the output voltage, V0; the x term is the input signal voltage, E the m
term is the gain o f the circuit, R f/R {\ and the b term is Rf /R2 tim es Edc. Therefore, if your
application uses a sensor that generates an output signal m easured with respect to ground,
w hich m ust be am plified and offset, then an SCC sim ilar to Fig. 3-17 may be used. (Note:
T he outputs o f som e sensors generate a differential output, and these devices require an SCC
capable o f m easuring a differential voltage. Such circuits are studied in C hapter 8.) The de
sign of any SCC unit requires obtaining the equation o f the circuit. This equation is obtained
from w hat y o u ’ve got (the output conditions o f the sensor) to what you w ant (the input con
ditions o f the m icrocontroller’s A /D converter). Let us study this topic.
* For more exam ples of the linear circuil design procedure refer to D ata Acquisition and Process Control
with the M 6 8 H C I1 Microcontroller, 2nd Ed. by F. Driscoll, R. Coughin, and R. Villanucci, Prentice Hall (2000).
72 Chapter 3
AA/V
R
+ 15 V
A
FIGURE 3-17 The inverting summer can be designed to satisfy the equation
of a straight line, y = mx + b
ture range to be m easured is 0° to 50°C, and the range o f the A /D converter is from 0 to
5 V. You w ant the output o f the SCC to be linear; that is, w hen the sensor is m easuring
0°C , the output o f the SCC is 0 V; w hen the sensor is m easuring 10°C, the S C C ’s output
is to be 1 V; and so forth up to 50°C, at w hich tem perature the SC C outputs 5 V.
Solution. A lthough our goal is to design the SCC, w hich is an op amp circuit, our
starting point is the sensor and w riting an equation for it, because the output o f the sensor
is the input to the SCC. Therefore, once the sensor is picked, this is w hat y o u ’ve got. W hat
you want is the output o f the SCC to fit the range o f the m icrocontroller’s A/D converter.
Therefore, the SCC design is being squeezed between w hat y o u ’ve got and w hat you want.
L et’s first learn about one type of tem perature sensor and how to w rite the equation for it.
Writing an equation that describes the sensor. A plot o f the output volt
age of the JLM335 versus tem perature is given in Figure 3-18(c). The slope o f the line is
the d ev ice’s sensitivity— 10 m V /°K . T herefore, in term s o f °K the output voltage is
w here T is the tem perature in °K. At 273°K (0°C), the sen so r’s output voltage is
Model
of the
LM335
Voltage (VT)
(c)
FIGURE 3-18 The LM335 (a) package styles, (b) model, and (c) voltage ver
sus temperature characteristic.
w here T is the tem perature in degrees Celsius. For our application, at 0°C VT = 2.73 V
and at 50°C VT = 3.23 V. This is the input voltage range for the SCC. T he output range
o f the SC C is the input range o f the A /D converter, w hich is 0 V to 5 V. F igure 3-19 show s
a block diagram o f this data acquisition system for m easuring tem perature.
Writing an equation that describes the SCC. F rom the inform ation we
know about the sensor and the A /D converter, we can plot the output/input characteristics
o f the SCC. F igure 3-19 includes such a plot. T he output values o f the SCC are plotted
on the y-axis. R em em ber, these values are the voltage range o f the A /D converter— 0 V
to 5 V. T he input values to the SCC are plotted on the je-axis. T hese values are the volt
age range o f the sensor— 2.73 V to 3.23 V for this application.
74 Chapter 3
VV(V)
FIGURE 3-19 Block diagram of a temperature measuring system and the de
sired output-input characteristics of the SCC.
(5 ~ 0) V
10 (3-17)
(3.23 - 2.73) V A vy
T his value of 10 is the gain that VT m ust be m ultiplied by. T he dc offset is found from
ch o o sin g a point on the line and su b stitu tin g into the eq u atio n o f a stra ig h t lin e—
y = m x + b. C hoosing the coordinate pair (2.73, 0), we obtain
0 = (10) (2.73) + b
b = - 2 7 .3 V
Note: A lthough the dc offset is - 2 7 .3 V, the output voltage, Vot never goes to this value be
cause the range of VT is from 2.73 V to 3.23 V. This range o f VT limits V0 from 0 to 5 V.
R efer to Fig. 3-3 and create the PSpice model o f the circuit. Set the input voltage to a
sine w ave with a peak value o f 5 V and a frequency o f 500 Hz. O btain a plot o f £, and
V0 versus tim e. To begin, place the follow ing parts in the w ork area.
N ote that we are using a sine wave as the input signal instead o f a triangular wave as
show n in Fig. 3-3. A rrange the parts as shown in Fig. 3-3. C hange the attributes o f the
parts as given in Fig. 3-3. Set up the sine-w ave attributes by double-clicking on the sym
bol. In the pop-up w indow change VOFF, VAMPL, and FREQ.
D ouble-click on the lead from the sine w ave generator to Ri and label it Ei. D ouble-click
on the lead from the output term inal o f the op am p and label it Vo. See Fig. 3-22.
*/
- A /W -
20 kQ.
In order to obtain a plot o f E, and V0 versus tim e, we m ust initialize the T ransient m enu
Inverting and Noninverting A m plifiers 79
A rrange and w ire the parts as show in Fig. 3-4. Place the IP R O B E s to m easure /,, / 2, / 3,
and If, and place the V IE W P O IN T S to m easure the voltage at the sum m ing point, S , and
V0. C hange the parts attributes to correspond to Fig. 3-4. Save the circuit in a file and run
the sim ulation A n aly sis = > S im u la te . T he results are show n in Fig. 3-24.
2.000E-03
Jo
FIGURE 3-24 PSpice model of Fig. 3-4— the inverting adder.
C reate a P S pice m odel o f the noninverting am p lifier show n in Fig. 3-7(a) w ith Rf =
20 k fl, /?, = 10 k f l, and £,■ = 2 V. U se IP R O B E to m easure l 0, If , ILy and / ( - ) . Use
V IE W P O I N T to m easure VL and the v o ltag e at the ( - ) input. If you are using the
80 Chapter 3
evaluation softw are package, build the circuit with a 741 op am p instead o f the O P - 177
as show n in Fig. 3-7(a). Place the follow ing parts in the w ork area.
A rrange the parts and include the IP R O B E s and V IE W P O IN T S . Save the file and run
the sim ulation A nalysis = > S im u la te. The results are show n in Fig. 3-25.
FIGURE 3-25 PSpice model for the noninverting amplifier of Fig. 3-7(a).
portion to the audio signal, the process is called am plitude m odulation (A M ). C hanging
the frequency or the phase angle of the carrier wave results in freq u en cy m odulation (FM )
and p hase-angle m odulation (PM ), respectively.
O f course, the original audio signal m u st eventually be recovered by a pro cess
called dem odulation or detection. T he rem ainder o f this section concentrates on using the
m ultiplier for am plitude m odulation. (“M o d u late” is from the ancient G reek language
m eaning to “change.” Curiously, it is the Latin prefix “d e” that converts the m eaning to
“change back.” )
F rom S ection 12-7.2 and Fig. 12-8(b), V0 equals E c m ultiplied by A. T h erefo re, am p li
tude m odulation is a m ultiplication p ro c ess. As show n in Fig. 12-8(c), E c is applied to
a m u ltip lie r’s x input. E m [having the sam e shape as A in Fig. 12-8(b)] is applied to the
m u ltip lier’s y input. E c is m ultiplied by a voltage th at varies from 0 th rough a m ax i
m um and back to 0. So VQ has the sam e envelope as Em. T he m u ltip lier can be co n sid
ered a voltage-controlled gain device as w ell as an am plitude m odulator. T he w aveshape
show n is th a t o f a b a la n c e d m odulator. T h e reaso n fo r th is nam e w ill be given in
S ection 12-8.3.
N ote carefully in Fig. 12-8(c) that VQ is not a sine wave; that is, the peak values o f
successive half-cycles are different. This principle is used in Section 12-12 to show how
a frequen cy-sh ifter (heterodyne) circuit w orks, but first, w e exam ine am plitude m odula
tion in greater detail.
w here E mp is the peak value of the m odulating wave and f m is the m odulating frequency.
Now let the carrier voltage Ec be applied to the x input o f a m ultiplier as Ex, and
let the m odulating voltage E m be applied to the y input o f a m ultiplier as Ey. The m ulti
p lier’s output voltage VD is expressed as a product term from Eq. (12-16) as
Equation (12-8) is called the product term , because it represents the product of two sine
waves w ith different frequencies. However, it is not in the form used by ham radio o per
ators or com m unications personnel. They prefer the form obtained by applying to Eq. (12
8) the trigonom etric identity
Substituting Eq. (12-9) into Eq. (12-8), w here A - E c and B - Ern, we have
R ecall from Section 12-7.3 that E cis a sine w ave and E,„ is a sine w ave, but no part
o f V0 is a sine wave. V0in Fig. 12-8(c) is expressed m athem atically by either Eq. (12-8)
or (12-10). B ut Eq. (12-10) show s that VD is m ade up o f tw o cosine w aves w ith fre
q uencies d ifferent from either E m or E c. T hey are the sum fre q u e n c y f c -I- f m and the
d iffe re n c e fr e q u e n c y f c —f m. T he sum and d iffe re n c e fre q u e n c ie s are ev a lu a ted in
E xam ple 12-9.
Example 12-9
In Fig. 12-9, carrier signal Ec has a peak voltage o f Ecp = 5 V and a frequency o f f c =
10,000 Hz. The m odulating signal Em has a peak voltage o f Em = 5 V and a frequency of
f m = 1000 Hz. C alculate the peak voltage and frequency o f (a) the sum frequency; (b) the
difference frequency.
S o lu tio n From Eq. (12-10), the peak value o f both sum and difference voltages is
Emp ECp _ 5 V X 5 V — | 25 V
20 _ 20 ~ *
Modulating, Dem odulating, and Frequency Changing with the M ultiplier 347
This result can be verified by connecting a wave or spectrum analyzer to the m ulti
p lier’s output; a 1.25-V deflection occurs at 11,000 Hz and at 9000 Hz. T he original input
signals o f 1 kH z and 10 kH z do not exist at the output.
An oscilloscope can be used to show input and output voltages o f the m ultiplier o f
E xam ple 12-9. The product term for VQ is found from Eq. (12-8):
2.5 X Ec X Em
VQ is show n w ith Em in the top draw ing and with E c in the bottom draw ing o f Fig. 12-9.
O bserve that Em and E c have peak voltages o f 5 V. The peak value o f VD is 2.5 V. N ote
that the upper and low er envelopes o f V0 are not the sam e shape as Em. T herefore, w e
cannot rectify and filter Va to recover Em. T his characteristic distinguishes the balance
moduJator.
A nother way o f displaying the output o f a m odulator is by a graph show ing the peak am
plitude as a vertical line for each frequency. T he resulting fre q u en c y spectrum is show n
in Fig. 12-10(a). The sum and difference frequencies in V0 are called upper and low er
side frequencies because they are above and below the carrier frequency on the graph.
W hen m ore than one m odulating signal is applied to the m odulator ( y input) in Fig. 12
9, each generates a sum and difference frequency in the output. Thus, there will be tw o
side frequencies for each y input frequency, placed sym m etrically on either side o f the
carrier. If the expected range of m odulating frequencies is known, the resulting range o f
side frequencies can be predicted. For exam ple, if the m odulating frequencies range b e
tw een 1 and 4 kHz, the low er side frequencies fall in a band betw een (10 — 4) kH z =
6 kH z and ( 1 0 — 1) kH z = 9 kHz. The band betw een 6 and 9 kH z is called the low er
sid e b a n d . F or this sam e exam ple, the u p p er sid e b a n d ran g es from ( 1 0 + 1 ) k Hz =
11 kH z to (10 + 4) kH z = 14 kHz. Both upper and low er sidebands are show n in Fig
1 2-10(b).
M odulating, Dem odulating, and Frequency Changing with the M ultiplier 349
standard am plitude m odulator (A M ) adds the carrier term to the output. The A M car ra
dio uses standard AM . O ne way of adding the carrier term to generate a standard AM out
put is show n in Fig. 12-11(a). The m odulating signal is fed into one input o f an adder. A
dc voltage equal to the peak value o f the carrier voltage E cp is fed into the other input.
The output of the adder is then fed into the y input o f a m ultiplier, as show n in Fig. 12-
11(b). T he carrier signal is fed into the x input. T he m ultiplier m ultiplies Ex by Ey, and
its output voltage is the standard AM voltage given by either o f the follow ing equations:
' E2
sin 27jfct (carrier term )
10
+ ( 12- 1
E E
—^ — — (sin 277/c/)(sin 2 ttf mt) (product term )
10
or
E 2cp ■
sin 2.'nfct (carrier term )
10
+
E mp
cos 2 ir{fc + f m) l (upper side frequency)
20
The output voltage V0 is shown in Fig. 1 2 -1 1(b). T he voltage levels are w orked out in the
follow ing exam ple.
Example 12-10
(5 V)(5 V)
= 2.5 V
10
M odulating, Dem odulating, and Frequency Changing with the M ultiplier 351
(5V X5 V) = 2_5 v
10
T he side frequencies peak voltages are
( 5 V X 5 V ) = i 25 v
20
T he w aveshape o f V0 is show n in Fig. 1 2 -1 1(b). O bserve that the upper and low er
envelopes o f V0 are the sam e shape as Em. This is characteristic o f a standard am plitude
m odulator (A M ), not of the balanced modulator. It allow s easy recovery o f audio signal E m
by a half-w ave rectifier and suitable filter capacitor.
T he signal frequencies present in V0 for the standard AM output o f Fig. 12-11 are found
from Eq. (12-11). U sing the voltage values in E xam ple 12-10, we have
T hese frequencies are plotted in Fig. 12-12 and should be com pared w ith the balanced
m odulator of Fig. 12-10.
Dc term
/( k H z )
0 5 10
5V Carrier
Output
0
F IG U R E 12-12 Frequency spectrum for a standard AM modulator,
f c = 10 kH z,/m = 1 kHz.
352 Chapter 12
If the sw itch in Fig. 1 2 -1 1(a) is position ed to A M , V0 w ill co n tain three fre q u en c ies—
fc> f c + fnv a n d / c — f m— carrier, plus sum and d ifference frequencies. O b serv e that the
envelopes o f VQ have the sam e shape as the in tellig en ce signal E m. T h is observ atio n can
be used to recover Em from the AM signal, as stated in E xam ple 12-JO. N ote that if
there is no signal frequency, the station still transm its carrier f c. R adio receivers use this
fact to activate sig n a l-stre n g th m eters, tu n in g lights, and a u to m atic v o lu m e co n tro l
(AVC).
If the sw itch in Fig. 12-11(a) is positioned to “B alanced,” V0 will contain only the
product term with only tw o frequencies, f c + / m and f c — f m. T he envelope o f V0 does not
follow Em. Since VQ does not contain f ct this type o f m odulation is called balanced m o d
ulation in the sense that the carrier has been balanced out. It is also called suppressed ca r
rier m odulation, since the carrier is suppressed in the output. If no m odulating frequency
is present, the radio station does not transm it. This is a good system for clandestine o p
eration. For a com parison o f balanced and standard AM m odulation, both outputs are
show n together in Fig. 12-13.
M odulating
5 V at 1 kHz
Carrier
5 V a t 10 kHz
m%mwm
MM 4- M t H- I I M M MM MM MM MM MM I in
Balanced V.. 0
AM V„ 0
— ;A / \ /
M odulating signal E m is recovered from a balanced m odulator by means o f the same tech
nique em ployed in Fig. 12-14 and Section 12-9. The only difference is the absent carrier fre
quency of 10 kHz at the dem odulator’s y input. This missing 10 kH z also elim inates both the
dc and 20-kHz term in V^. The circuit arrangem ent in Fig. 12-16 was built to dem onstrate
the dem odulating technique and show the resulting waveshapes. The dem odulated Em is not
a pure sine wave because only a sim ple filter was used. I f f c is increased to 100 kHz, Em will
be closer to being a pure sine wave. The carrier’s frequency fed into the dem odulator should
be exactly equal to the carrier frequency driving the modulator.
In the balanced m odulator o f Figs. 12-9 and 12-10, we could add a high-pass filter (see
C hapter 11) to the m o dulator’s output. If the filter rem oves all the low er side frequencies,
the output is single sideband (SSB). If the filter only attenuates the low er side freq u en
cies (to leave a vestige of the low er sideband), we have a vestigial sideband m odulator.
A ssum e that only one m odulating frequency f m is applied to our single-sideband
m odulator together with carrier f c. Its output is a single, upper side frequency f c + f m. To
dem odulate this signal and recover f m, all we have to do is connect the SSB signal f c +
f m to one m ultiplier input a n d / c to the other input. A ccording to the principles set forth
in Section 12-7.4, the dem odulator’s output w ould have a sum frequency o f ( f c + / m) +
f c and a difference frequency o f ( f c + f m) — f c = f n- A low -pass filter w ould recover the
m odulating signal f m and easily elim inate the high-frequency signal, w hose frequency is
2 f c + fm-
In radio com m unication circuits, it is often necessary to shift a carrier frequency f c with
its accom panying side frequencies dow n to a low er interm ediate frequency f lF. T his shift
o f each frequency is accom plished w ith the m ultiplier connections o f Fig. 1 2 -17(a). T he
m odulated carrier signals are applied to the y input. A local oscillator is adjusted to a fre
quency f Q equal to the sum o f the carrier and desired interm ediate frequency and applied
to the x input. The frequencies present in the output o f the m ultiplier are calculated in the
follow ing exam ple.
Example 12-11
In Fig. 12-17(a) am plitudes and frequencies o f an AM m odulated wave are present at each
input as follow s:
Modulating, Demodulating, and Frequency Changing with the Multiplier 357
y input:
( f c + f „ ) = 1005
4 fc
= 1000
(/C- / J = 995
w here f c is the broadcasting station’s carrier frequency and ( f c + / m) and ( f c - f m) are the
upper and low er side frequencies due to a 5-kH z m odulating frequency, and 1000-kH z car
rier frequency.
jt input: T he local oscillator is set for a 5-V-peak sine wave at 1445 kHz, because the
desired interm ediate frequency is 455 kHz.
Find the peak value and frequency of each signal com ponent in the output o f the
m ultiplier.
S olution From Eq. (12-12), the peak am plitude o f each y input frequency is m ultiplied by
the peak am plitude of the local oscillator frequency. This product is m ultiplied by ^ ( ^ for
the scale factor X { from the trigonom etric identity) to obtain the peak am plitude o f the re
sulting sum and difference frequencies at the m ultiplier’s output. T he results are tabulated
in Fig. 12-17.
All frequencies present in the m ultiplier’s output are plotted on the frequency spectrum
o f Fig. 12- 17(c). A low -pass filter or band-pass filter is used to pass only the three low er in
term ediate frequencies o f 450, 455, and 460 kHz. The upper interm ediate frequencies o f
2450, 2455, and 2460 kH z may be used if desired, but they are usually filtered out.
We conclude from E xam ple 12-11 that each frequency present at the y input is shifted
down and up to new interm ediate frequencies. The low er set o f interm ediate frequencies
can be extracted by a filter. Thus, the inform ation contained in the carrier f c has been pre
served and shifted to another subcarrier or interm ediate frequency. T he process o f fre
quency shifting is also called heterodyne. The heterodyne principle will be used in Section
12-13 to construct a universal AM receiver that will dem odulate standard A M , and bal
ance m odulator and single-sideband signals.
M odulated
S ee(b)
Local oscillator
(a) Circuit for a frequency shifter.
Multiplier output
Frequency at Frequency
Peak (V) (kHz)
y input (kHz)
o
>
tN I <N
l _L_ 1 1 1 1 1 > /(kHz)
-fr
flF fo
y input
(c) The y input frequencies are shifted to the intermediate frequency.
FIG U RE 12-17 {com.)
T he ordinary autom obile or household AM radio can receive only standard A M signals
that occupy the AM broadcast band, about 500 to 1500 kH z. This type o f radio receiver
cannot extract the audio or data signals from single-sideband (CB) or suppressed carrier
transm ission.
F igure 12-18 shows a receiver that will receive any type o f AM transm ission, ca r
rier plus sidebands, sidebands w ithout carrier, or a single sideband (either up p er o r lower).
To understand its operation, assum e that a station is transm itting a 5-kH z audio signal that
m odulates a 1005-kHz carrier wave. The station transm its a standard AM frequency sp ec
trum of the 1005-kHz carrier and both low er and upper side frequencies o f 1000 kH z and
1010 kH z [see Fig. 12- 18(a)].
Station 1005-k H z transmitter
AM band (a) Standard AM station broadcasting a 5-kHz signal on a carrier of 1005 kHz.
500 to
1600 kHz
K
1005 kHz
1010 kHz
x 460 kHz LSF
455 kHz IF A 455 kHz IF
450 kHz USF
-----
>
v Bandwidth
10 kHz
USF T
1005 +455 kHz =
450 kHz USF Bandwidth
10 kHz IF = 45'
A 915 kHz LSF
1460 kHz 910 kHz IF,
Low-pass
Filter 905 kHz USF
5 kHz LSF
Audio 1 V at 5 kHz LSF
5 kHz
{ 0 Hz
1 V at 5 kHz USF 0-5 kHz
0 CxR
5 kHz USF
(b) Universal AM receiver frequency distribution.
FIGURE 12-18 The superheterodyne receiver in (b) can demodulate or detect audio
signals from the standard AM transmission in (a) and also single-sideband or suppressed
359
carrier AM.
360 Chapter 12
In Fig. 12-18(b) the receiver’s tuner is tuned to select this one sta tio n ’s 10-kHz band
o f frequencies out of the entire broadcast band o f frequencies that are present on the re
ceiver’s antenna. A local oscillator in the radio is designed to produce a signal that tracks
the tuner and is alw ays 455 kH z higher than the tuner frequency. T he oscillato r and tuner
output frequencies are m ultiplied by the IF mixer. T he IF m ixer acts as a frequency shifter
to shift the incom ing radio-frequency carrier down to an interm ediate-frequency (IF) car
rier o f 455 kHz.
T he o utput o f the IF m ixer contains both sum frequencies (2465-kH z IF2 carrier) and d if
ference frequencies (455-kH z IF carrier). O nly the difference frequencies are am plified
by the tuned high-gain IF amplifier. T his first frequency shift (heterodyning) is perform ed
so that m ost o f the signal am plification is done by a single narrow band tuned-IF am pli
fier that usually has three stages o f gain. A n y station carrier that is selected by the tuner
is shifted by the local oscillator and m ixer m ultiplier dow n to the IF frequency for am
plification. T his frequency dow nshift schem e is used because it is m uch easier to build a
reliable narrow band IF am plifier (10-kH z bandw idth centered on a 4 5 5-kH z carrier) than
it is to build an am plifier that can provide equal am plification of, a n d select 10-kHz band-
w idths over, the entire AM broadcast band.
The output o f the IF am plifier is m ultiplied by the IF frequency in the audio d etecto r m u l
tiplier. T he term detection m eans that we are going to detect or dem odulate the audio sig
nal from the 455-kH z IF carrier. T he audio detector shifts the incom ing IF carrier and side
frequ en cies up and dow n as sum and d ifference frequencies. O nly the d ifference fre
quencies are transm itted through the low -pass filter in Fig. 12-18(b). T he astute reader
w ill note that the low -pass filte r output frequencies are not labeled ( + ) 5 kH z for the up
per side frequency and ( —) 5 kH z for the low er side frequency. If you w ork the m ath e
m atics out using sine waves for audio, carrier, local oscillator, and IF signals, it turns out
that both audio 5-kH z signals are in phase (as negative cosine w aves). T he output o f the
low -pass filter is applied to an audio am plifier and finally to a speaker.
W hy w ill this receiver do w hat m ost other receivers cannot do? T he previous sections
dealt w ith a standard AM transm ission carrier plus both upper and low er side frequencies.
Suppose that you elim inated the 1005-kH z carrier at the transm itter in Fig. 12-18(a). N ote
how the carrier is identified by enclosure in a rectangle as it progresses through the re
ceiver in Fig. 1 2 -18(b). If no carrier enters the receiver, but only the side frequencies, both
audio signals (U SF and LSF) w ill still enter the audio am plifier. T hus this receiver can
recover audio inform ation from either standard AM or balanced A M m odulation. An AM
car radio w ill not recover the audio signal from balanced AM transm issions.
Modulating, Dem odulating, and Frequency Changing with the M ultiplier 361
N ext suppose that you elim inated (by filters) the carrier and upper side frequency
from the transm itter in Fig. 12-18(a); only the low er side frequency o f 1000 kH z would
be broadcast. T he entire low er sideband would occupy 1000 to 1005 kHz. This is sin g le
sideband transm ission. A t the receiver, the tuner w ould select 1000 kH z (to 1005 kHz).
The IF am plifier would output 460 kH z (to 455 kHz). Finally, the low -pass filter would
output 5 kH z (to 0 kH z); thus this receiver can also receive single-sideband transm ission.
The versatility o f this type o f receiver is inherent in the design. It requires no sw itches to
activate circuit changes for different types o f AM m odulation.
PROBLEMS _________________________________________________________________________
12-1. Find V0 in Fig. 12-1 for the following combination of inputs: (a) x = 5 V, y = 5 V; (b)
x = - 5 V, y = 5 V; (c) x - 5 V, y = - 5 V; (d) x = - 5 V, y = - 5 V.
12-2. State the operating point quadrant for each combination in Problem 12-1 [see Fig. 12-2(a)].
12-3. What is the name of the procedure used to make VQ = 0 when both x and y inputs are at 0 V?
12-4. Find V0 in Fig. 12-3 if E, = - 3 V.
12-5. The peak value of £, in Fig. 12-4 is 8 V, and its frequency is 400 Hz. Evaluate the output’s
(a) dc terms; (b) ac term.
12-6, In Fig. 12-5, Exp = 10 V, Eyp = 10 V, and 0 = 30°. Find V0.
12-7. Repeat Problem 12-6 for 0 = - 30°.
12-8. Ex = 10 V and £ in = - 1 V in Fig. 12-6. Find V0.
12-9. In the balanced modulator of Fig. 12-9, Ex is a 15-kHz sine wave at 8-V peak and Ey is a
3-kHz sine wave at 5-V peak. Find the peak voltage of each frequency in the output.
12-10. In Fig. 12-9, the carrier frequency is 15 kHz. The modulating frequencies range between 1
and 2 kHz. Find the upper and lower side bands.
12-11. The switch is on AM in Fig. 12-11. The modulating frequency is 10 kHz at 5-V peak. The
carrier is 100 kHz at 8-V peak. Identify the peak value and each frequency contained in the
output.
12-12. If the switch is thrown to “Balanced’’ in Problem 12-11, what changes result in the output?
12-13. The x input of Fig. 12-14 is three sine waves of 5 V at 20 kHz, 2.0 V at 21 kHz, and 2.0 V at
19 kHz. The y input is 5 V at 20 kHz. What are the output signal frequency components?
12-14* You need to shift a 550-kHz signal to a 455-kHz intermediate frequency. What frequency
should be generated by the local oscillator?
CHAPTER 13
Integrated-Circuit Timers
U pon com pletion of this chapter on integrated-circuit tim ers, you w ill be able to:
■ N am e three operating states of a 555 tim er and tell how they are con tro lled by the trig
ger and threshold term inals.
• D raw circuits that produce a tim e delay or an initializing pulse upon application o f power.
• C onnect the 555 to m ake an oscillator for any desired frequency.
• U se 555 oscillators to make a tone-burst oscillator or voltage-controlled frequency shifter.
• Explain the operation o f a 555 w hen it is w ired to perform as a one-shot or m onostable
multivibrator.
• U se the 555 one-shot as a touch sw itch, frequency divider, or m issing pulse detector.
• D escribe the operation o f an X R 2240 program m able tim er/counter.
• C onnect the X R 2240 as a long-interval tim er, free-running oscillator, binary p attern
generator, or frequency synthesizer.
362
A long with the 555 tim er, there are also available counter tim ers such as E x ar’s
X R 2240. T he 2240 contains a 555 tim er plus a program m able binary counter in a single
16-pin package. A single 555 has a m axim um tim ing range o f approxim ately 15 m inutes.
C ounter tim ers have a m axim um tim ing range o f days. The tim ing range o f both can be
extended to m onths or even years by cascading. O ur study o f tim ers will begin with the
555 and its applications and then proceed to the counter tim ers.
T he 555 IC tim er has two m odes of operation, either as an astable (free-running) m ulti
vibrator or as a m onostable (one-shot) m u ltiv ib rato r F ree-running operation o f the 555 is
show n in Fig. 13-2(a). T he output voltage sw itches from a high to a low state and back
again. T he tim e the output is either high or low is determ ined by a resisto r-cap acito r n et
w ork connected externally to the 555 tim er (see Section 13-2). T he value o f the high o u t
put voltage is slightly less than Vc c . The value o f the output voltage in the low state is
approxim ately O.l V.
W hen the tim er is operated as a one-shot m ultivibrator, the output voltage is low
until a negative-going trigger pulse is applied to the tim er; then the output sw itches high.
T he tim e the output is high is determ ined by a resistor and cap acito r connected to the IC
timer. At the end o f the tim ing interval, the output returns to the low state. M onostable
operation is exam ined further in Sections 13-5 and 13-6. To understand how a 555 tim er
operates, a brief description o f each term inal is given in Section 13-2.
366 Chapter 13
A s show n in Figs. l3-3(b) and (c), the output term inal, pin 3, can either source or sink
current. A flo a tin g supply load is on w hen the output is low, and o ff w hen the output is
high. A grounded load is on w hen the output is h ig h and o ff w hen the output is low. In
norm al operation either a supply load or a grounded load is connected to pin 3. M ost ap
plications do not require both types of loads at the sam e tim e.
T he m axim um sink or source current is technically 200 mA, but m ore realistically
is 40 mA. T he high output voltage [Fig. 13-3(c)] is about 0.5 V below Vc c , a°d the low
output voltage [Fig. 13-3(b)] is about 0.1 V above ground, fo r load currents below 25 mA.
T he reset term inal, pin 4, allow s the 555 to be disabled and override com m and signals on
the trigger input. W hen not used, the reset term inal should be w ired to + V CC. If the re
set term inal is grounded or its potential reduced below 0.4 V, both the output term inal,
pin 3, and the discharge term inal, pin 7, are at approxim ately ground potential. In other
w ords, the output is held low. If the output was high, a ground on the reset term inal im
m ediately forces the output low.
The discharge term inal, pin 7, is usually used to discharge an external tim ing capacitor
during the tim e the output is low. W hen the output is high, pin 7 acts as an open circuit
and allow s the capacitor to charge at a rate determ ined by an external resistor or resistors
and capacitor. Figure 13-4 show s a m odel o f the discharge term inal fo r w hen C is d is
charging and for w hen C is charging.
A 0.01 - j j l F filter capacitor is usually connected from the control voltage term inal, pin 5,
to ground. The capacitor bypasses noise and/or ripple voltages from the pow er supply to
m inim ize their effect on threshold voltage. The control voltage term inal m ay also be used
to change both the threshold and trigger voltage levels. For exam ple, co nnecting a 1 0-kfl
resistor betw een pins 5 and 8 changes threshold voltage to 0.5 VCc and the trigger volt
age to 0.25 Vc c . An external voltage applied to pin 5 will change both threshold and trig
ger voltages and can also be used to m odulate the output w aveform.
T he 555 has tw o possible operating states and one m em ory state. They are determ ined by
both the trigger input, pin 2, and the threshold input, pin 6. T he trigger input is com pared
by com parator 1 in Fig. 13-1, w ith a low er threshold voltage VLT that is equal to Vc c /3.
T he threshold input is com pared by com parator 2 w ith a higher threshold voltage VUT that
368 Chapter 13
A visual aid in understanding how these operating states occur is presented in Fig.
13-5. An input voltage Et is applied to both trigger and threshold input term inals. W hen
Ei is below VLT during time intervals A - B and E-F, state A operation results, so that out
put VDy is high. W hen £, lies above VLT but below VUT> w ithin tim e B -C , the 555 enters
state C and rem em bers its last A state. W hen Et exceeds VUTy state D operation sends the
output low. W hen E t drops betw een Vu r and VLT during tim e D -E , the 555 rem em bers
the last D state and its output stays low. Finally, w hen £, drops below VLT during tim e
E-F, the A state sends the output high.
By plotting output V03 against E t in Fig. 13-5, w e see a hysteresis characteristic.
Recall from C hapter 4 that a hysteresis loop m eans that the circuit has memory. This also
m eans that if the inputs are in one of the m em ory states, you cannot tell w hat state the
output is now in, unless you know the previous state. Two pow er-on applications will now
be given to show how to analyze circuit operation from Table 13-1.
There are tw o types o f tim ing events that may be required during a pow er-on application.
You may wish to apply pow er to one part of a system and w ait for a short interval before
starting som e other part of a system . For exam ple, you may need to reset all counters to
zero before starting a personal com puter at the beginning o f a business day. A circuit that
solves this problem is show n in Fig. 13-6(a). W hen the pow er sw itch is throw n to on at
t = 0, the initial capacitor voltage is zero. T herefore, both pins 2 and 6 are above their re
spective thresholds and the output stays low in operating state D. As capacitor C charges,
the threshold drops below VUT w hile the trigger is still above VLT> forcing the 555 into
m em ory state C. Finally, both trigger and threshold drop ju st below VLTf w here the 555
enters state A and forces the output high at tim e T.
T he net result is that an output from pin 3 o f the 555 is delayed for a tim e interval
7 after the sw itch closure at / = 0. The tim e delay is found from 7 = 1 . 1 RAC.
By interchanging RA and C, a tim e delay with a high output can be generated. In the
circuit of Fig. 13-6(b), pow er is applied to a system when the sw itch is closed. The 5 5 5 ’s
output goes high for a period o f time 7 and then goes low. 7 is found from Eq. (13-9). This
type of startup pulse is typically used to reset counters and initialize com puter sequences
after a power failure. It also can allow tim e before arm ing an alarm system so that an op
erator can exit after the system has been turned on.
Integrated-Circuit Tim ers
+15 V
state state
FIGURE 13-5 Three of the four operating states of a 555 timer are shown by a test cir
cuit to measure E, and V0y versus time and V0x versus Eh
Integrated-Circuit Tim ers 371
The 555 is connected as a free-running m ultivibrator in Fig. 13-7(a). R efer to the w ave
shapes in Fig. 13-7(b) to follow the circu it’s operation. At tim e A both pins 2 and 6 go
just below VLT = { Vc c and output pin 3 goes high (state A). Pin 7 also becom es an open,
so capacitor C charges through RA + R B. D uring output high tim e A - B , the 555 is in
m em ory state C, rem em bering the previous A state. W hen Vc goes ju st above VUT =
f Vc c at tim e B} the 555 enters state D and sends the output low. Pin 7 also goes low and
capacitor C discharges through resistor RB. D uring output low tim e B -C , the 555 is in
m em ory state C, rem em bering the previous state D. W hen Vc drops ju st below VLT, the
sequence repeats.
The output stays high during the tim e interval that C charges from y Vc c to j Vc c as
show n in Fig. 13-7(b). T his tim e interval is given by
T he output is low during the tim e interval that C discharges from f Vc c to { VCc an ^ is
given by
1 1 44
f = ~ = ------------------- (13-4)
J T (Ra -h 2R b)C K J
Figure 13-7(c) is a plot of Eq. (13-4) for different values o f (RA + 2R B)and quickly shows
w hat com binations o f resistance and capacitance are needed to design an astable m ultivi
brator.
E x a m p le 13-1
C alculate (a) /high, (b) /]OW, and (c) the free-running frequency for the tim er circuit o f Fig.
13-7(a).
A low -cost, low -freq u en cy v o lta g e-co n tro lled freq u en cy sh ifte r is p resen ted in Fig.
13-10(a). Since the 555 tim er is pow ered by Vc c = 5 V, VUT = 5 V (f) and VLT = 5 V({).
C apacitor voltage Vc will charge to VUT at w hich tim e the 555 will ground pin 7 to rapidly
discharge C to VLT. Then the discharge path for C is disconnected. T he voltage w aveshape
described for C is show n in Fig. 13 -10(c).
C apacitor C is charged by a constant current I. I is set by the voltage across R E and
the value of R E. T he voltage across R E is determ ined by the difference betw een the 15-V
supply and the voltage at pin 2 (10 V — E) o f voltage follow er 7415. T hus VRE = 15 -
(10 — E) = 5 V + E. Pin 2 follow s pin 3 o f op am p B, or VoA. The inverting adder, 741A,
has an output voltage of VoA = 10 - E.
T he charge lost by C for each cycle equals C(AVc ) w here AVC = 5 V(f) - 5 V(^) =
5 V/3. C harge stored by C equals charge current I tim es period T (the charge tim e). For
equilibrium
IT = C A V 3-8b)
13-8c)
w here
f c — —- — w hen E = 0 V ( I 3-8e)
Re C
and
± f = 0 . 2 f cE ( 13-80
E x a m p le 13-3
For the frequency shifter of Fig. J3-10 calculate (a) the charge current / for E = 0 V; (b)
the center frequency f c w hen E — 0 V; (c) the frequency shift for E = ± 1 V and / out. (d)
Point out the positive and negative lim its for Eh
S o lu tio n (a)
378 Chapter 13
fe Re C (3 k f l)( l X 10-6 F)
T herefore, / out = 1 kH z w hen E — 0.
(c) From Eq. (13-8f),
/out = / c + A / = 1000 + 200 H z = 1200 Hz [see Fig. 13-10(b), point A]. For E = - 1 V,
then, A / = - 2 0 0 Hz and f oul - 800 Hz [see Fig. 13-10(b), point £ ].
(d) Pin 2 of 741B cannot go closer to the 15-V supply voltage than about 1 V. This re
stricts the low er lim it o f E to about - 4 V and / out to 200 Hz. o f the transistor
needs about 2 V headroom above VUT = 3.3 V, so the upper lim it o f E is about + 4 V,
w here
In sum m ary, the 555 oscillates at a center frequency f c determ ined by Eq. (13-8e).
E increases or decreases this center frequency by an am ount o f 0.2 f c per volt for positive
and negative values of E , respectively.
13-5.1 Introduction
N ot all applications require a continuous repetitive wave such as that obtained from a free-
running m ultivibrator. M any applications need to operate only for a specified length o f
tim e. T hese circuits require a one-shot or m onostable m ultivibrator. F igure 1 3 -11(a) is a
circuit diagram using the 555 for m onostable operation. W hen a negative-going pulse is
applied to pin 2, the output goes high and term inal 7 rem oves a short circuit from capac
itor C. T he voltage across C rises from 0 volts at a rate determ ined by RA and C. W hen
capacitor voltage reaches \ Vc & com parator 1 in Fig. 13-1 causes the output to sw itch
from high to low. The input and output voltage w aveform s are show n in Fig. 1 3 -1 1(a).
T he output is high for a tim e given by
(13-9)
Figure 13-11(b) is a plot of Eq. (13-9) and quickly show s the w ide range o f output pulses
that are obtainable and the required values o f R A and C. Figure 1 3 -11(a) gives the idea o f
a one-shot. In practice we m ust add m ore parts to m ake a w orkable circuit (see Section
13-5.2).
Integrated-Circuit Tim ers 373
T he answ er to part (c) agrees w ith results obtainable from Fig. 13-7(c).
The ratio of tim e w hen the output is low, /)ow, to the total period T is called the duty c y
cle D. In equation form,*
Q _ ^low _ ( l 3-5)
r ra + 2rb
The next section presents an inexpensive way o f extending the duty cycle.
E x am p le 13-2
C alculate the duty cycle for the values given in Fig. 13-7(a).
*The original literature published by Signetics (the maker of the 555) defined duty cycle as shown. We
go along with the originator in this chapter. In most other texts and papers, duty cycle is expressed, in percent,
as the ratio of high time to period.
Integrated-Circuit Tim ers 375
E quations (13-7a) and (13-7b) show that if RA = /?#, then the duty cycle is 50% , as shown
in Figs. 13-8(b) and (c).
With the sw itch in Fig. 13-9 set to the “continuous” position, the B 555 tim er functions
as a free-ru n n in g m ultivibrator. T he frequency can be varied from ab o u t 1.3 kH z to
14 kH z by the 10-kH potentiom eter. If the potentiom eter is replaced by a therm istor or
photoconductive cell, the oscillating frequency will be proportional to tem perature or light
intensity, respectively.
The A 555 tim er oscillates at a slower frequency. T h e 1-MH potentiom eter sets the
lowest frequency at about 1.5 Hz. Lower frequencies are possible by replacing the l-^uF ca
pacitor with a larger value. W hen the connecting switch is thrown to the “burst” position,
output pin 3 of the A tim er alternately places a ground or high voltage on reset pin 4 o f the
B 555 timer. W hen pin 4 of the B tim er is grounded, it cannot oscillate, and when ungrounded
the tim er oscillates. This causes the B tim er to oscillate in bursts. The output o f the tone-burst
generator is V0 and is taken from pin 3 of tim er B . V0 can drive either an audio am plifier or
a stepdown transform er directly to a speaker. The 556 IC tim er contains two 555 timers in a
single 14-pin dual-in-line package. Thus the tone-burst generator can be made with one 556.
This circuit is modeled and its perform ance is sim ulated in Section 13-11.
cc
A
l kD. io kn
7 4 8 8 7
Continuous
555 . 555
l MO : 6 a 3 4 B 6
burst 2
2 l 1 3
1 |iF
V
F IG U R E 13-9 Tone-burst oscillator.
!ntegrated-Circuit Tim ers 381
mally low. Cz is charged to (Vc c - Ez) until the negative-going trigger pulse occurs. The time
constant of R , and C, should be small with respect to the output timing interval rhigh. Diode
D prevents the 555 tim er from triggering on positive-going edges o f £,. W aveforms for the
input pulse, Eh the pulse at pin 2, V2, and the output pulse, VOJ are all shown in Fig. 13-12.
E x a m p le 13-5
(a) If Ra = 10 and C = 0.2 jjlF in Fig. 13-12, find rhigh. (b) W hat is the tim e constant
o f Rj and C, in Fig. 13-12?
In Fig. 13-13(a), the start sw itch is closed and the output o f the 555 is low. W hen the start
sw itch is opened, the output goes high to actuate the pump. T he output is high for a tim e
interval given by Eq. (13-9). U pon com pletion o f the tim ing interval, the output o f the
555 returns to its low state, turning the pum p off. T he height o f the w ater level is set by
the tim ing interval, w hich is set by R a and C. In the event o f a potential overflow, the
overfill sw itch m ust place a ground on reset pin 4, w hich causes the tim er’s output to go
low and stops the pum p.
The 555 is w ired as a one-shot m ultivibrator in Fig. 13-13(b) to perform as a touch switch.
A 22-M O resistor to pin 2 holds the 555 in its idle state. If you scuff your feet to build
up a static charge, the 555 will produce a single-shot output pulse w hen you touch the
finger plate. If the electrical noise level is high (due, for exam ple, to fluorescent lights)
the 555 may oscillate w hen you touch the finger plate. R eliable and consistent triggering
Integrated-Circuit Timers 383
terval given by Eq. (13-9) is rhigh = 1 . 1 ms. T herefore, the one shot w ill be triggered by
the first negative-going pulse o f E h but the output w ill still be high w hen the second neg
ative-going pulse occurs. T he one-shot will, however, be re-triggered on the third nega
tive-going pulse. In this exam ple, the one-shot triggers on every other pulse o f E h so there
is only one output for every two input pulses; thus E, is divided by 2.
Example 13-6
(a) C alculate the tim ing interval in Fig. 13-12 if R A = 10 k f l and C = 0.1 fuF.
(b) W hat value o f RA should be installed to divide a 1-kHz input signal by 3?
S o lu tio n (a) By Eq. (13-9), /high = 1.1(10 X 103)(0.1 X 1 (T 6) = 1.1 ms. (b) /high should
exceed tw o periods o f E h or 2 ms, and be less than three periods (3 ms). C hoose /high = 2.2
ms; then 2.2 ms = 1 . 1 ^ X 0.1 X 10-6 F; R A = 20 k fl.
Transistor Q is added to the 555 one-shot in Fig. 13-14(a) to m ake a m issing pulse detec
tor. W hen Ei is at ground potential (0 V), the em itter diode of transistor Q clam ps capaci
tor voltage Vc to a few tenths of a volt above ground. The 555 is forced into its idle state
Missing pulse
4 V-
/
5 V-
5 V-
w ith a high output voltage V0 at pin 3. W hen £, goes high, the transistor cuts off and ca
pacitor C begins to charge. This action is show n by the waveshapes in Fig. 13-14(b). If E {
again goes low before the 555 com pletes its tim ing cycle, the voltage across C is reset to
about 0 V. If, however, E t does not go low before the 555 com pletes its tim ing cycle, the
555 enters its norm al state and output VQ goes low. This is exactly w hat happens if the
R a C tim ing interval is slightly longer than the period o f E t and E t suddenly m isses a pulse.
T his type o f circuit can detect a m issing heartbeat. If E t pulses are generated from a ro tat
ing w heel, this circuit tells w hen the wheel speed drops below a predeterm ined value. T hus
the m issing pulse detector circuit also perform s speed control and m easurem ent.
W hen a tim er circuit is connected as an oscillator and is used to drive a counter, the re
sultant circuit is a counter timer. Typically, the counter has m any separate output term i
nals. O ne output term inal gives one pulse for each period T o f the oscillator. A second
output term inal gives one output pulse for every two periods (27) o f the oscillator. A third
output term inal gives one output pulse fo r every four oscillator periods (47), and so on,
depending on the design of the counter. Thus each output term inal is rated in term s of the
basic oscillator period 7
S om e counters are designed so that their outputs can be connected together. T he re
sultant output pulse is the sum o f the individual output pulses. For exam ple, if the first,
second, and third output term inals are w ired together, the result is one output pulse for
every 17 + 2 7 -f 4 7 = 7 7 oscillator periods. A counter w ith this capability is said to be
program m able, because the user can program the counter to give one output pulse for any
com bination o f tim er outputs. O ne such program m able tim er/counter is E x ar's X R 2240.
Integrated-Circuit Tim ers 385
This integrated-circuit device is representative o f the tim er/counter family, and som e o f
its features will be studied next. A nother tim er/counter is E x ar’s X R 2242 or its pin re
placem ent from Harris Sem iconductor, the ICM 7242. This device is a long-range fixed
timer. The tim ing can be set from m icroseconds to days and is cascadable. The device is
housed in an 8-pin m ini-D IR
As shown in Fig. 13-15, the X R 2240 consists o f one modified 555 timer, one 8-bit binary
counter, and a control circuit. They are all contained in a single 16-pin dual-in-line package.
A positive-going pulse applied to trigger input 11 starts the 555 tim e base oscilla
tor. A positive-going pulse on reset pin 10 stops the 555 tim e base oscillator. T he thresh
old voltage for both trigger and reset term inals is about + 1 .4 V.
The tim e base period T for one cycle o f the 555 oscillator is set by an external R C
netw ork connected to the tim ing pin 13. T is calculated from
T = RC (13-10)
w here R is in ohm s, C in farads, and T in seconds. R can range from 1 kCi to 10 M Cl and
C from 0.05 to 1000 / j F . Thus the period o f the 555 can range from m icroseconds to hours.
Reset
T= R x C
ground w hile the other side is w ired to a 2 0 -k fl pull-up resistor. A regulated positive volt
age is available at pin 15. Each negative-going edge from the 555 steps the 8-bit counter
up by one count.
N orm ally, the 2240 is in its reset position. T hat is, all 8 output pins (pins 1 to 8)
act like open circuits, as shown by the output sw itch m odels in Fig. 13-16. P ull-up resis
tors (10 k f I) should be installed, as shown, to those term inals that are going to be used.
O utputs 1 and 4 w ill then be high in the reset condition.
W hen the 2240 is triggered (pulse applied to pin 1.1), all output sw itches o f the
counter are closed by the control circuit and outputs 1 to 8 go low. T hus the counter b e
gins its count w ith all outputs essentially grounded. A t the end o f every tim e base period,
the 555 steps the counter once. T he co u n ter’s T sw itch on term inal 1 opens after the first
tim e base period (output 1 goes high) and closes after the second tim e base period. This
counting action o f the tim er is show n in Fig. 13-16(b).
O utput pin 2 is labeled 2 T in Fig. 13-16(a). It is seen from Fig. 13-16(b) that the
output on pin 2 has stayed low for tw o tim e base periods (.2T). T hus the second output
stays low for tw ice the tim e interval of the first output. This conclusion may be g eneral
ized to all outputs o f the binary counter; that is, each output stays low for tw ice the tim e
interval o f the preceding output. T im e intervals for pins 1 to 5 are show n in Fig. 1 3 -16(b)
and are given for all outputs in Table 13-2.
I 7
2 IT
3 4T
4 87
5 167
6 32 7
7 647
8 1287
E x a m p le 13-7
A fter triggering, how long will the follow ing output term inals stay low? (a) pin 3; (b) pin
4; (c) pin 7; (d) pin 8. R = 100 kH and C = 0.01 /jlF.
is low, V0 w ill be low. O nly w hen both outputs go high (output sw itches open) w ill the
output go high. T hus the tim ing cycle for the output bus is found sim ply by calculating
the sum 7 sum o f the individual outputs.
Example 13-8
C alculate the tim ing cycle for (a) Fig. 13-17(a); (b) a circuit w here pins 3, 6, and 7 are
jum pered to a com m on bus. Let 7 = I s .
The 2240 is w ired for m onostable operation in the program m able tim er application in Fig.
13-18. W hen the trigger input goes high, the output bus goes low for a tim ing cycle p e
riod equal to 7 siim (see Section 13-8.3). At the end o f the tim ing cycle, the output bus goes
high. T he connection from output bus via a 51-kH resistor to reset pin 10 forces the tim er
to reset itself w hen the output bus goes high. T hus after each trigger pulse, the 2240 gen
erates a tim ing interval selected by the program sw itches.
E x a m p le 13-9
In Fig.13-18, C = 1.0 /xF and R = 5 M H to establish a tim e base period given by Eq.(13
10) to be 5 s. W hat is (a) the tim ing cycle for switch positions shown in Fig. 13-18; (b) the
m inim um program m able tim ing cycle; (c) the m axim um program m able tim ing cycle?
7 SUm = 7 + 2 7 + 4 7 + 8 7 4- 1 6 7 + 3 2 7 + 6 4 7 + 1 2 8 7 - 2 5 5 7
pow er is applied, R r and CR couple a positive-going pulse into trigger input 11 to start
the internal tim e base oscillator running.
Each output is w ired through an external control sw itch to an individual pull-up re
sistor. A square-w ave output voltage is available at each counter output. T heir frequencies
have a binary relationship. T hat is, the frequency available at each pin is o n e-h alf the fre
quency present at the preceding pin. T he w aveshapes are identical to those in Fig. 13-
16(b). O bserve that the p erio d o f t h e / L frequency at pin 1 is tw ice the tim e base period
rating 7 or 2(7). T h u s /! = 1/271 A t pin 4, the period is 2(87) and f 4 = 1/167!
E x a m p le 13-10
In Fig. 13-19, 7 = 2.5 ms; w hat frequencies are present at (a) output 1; (b) output 2; (c)
output 3; (d) output 4?
1 7 27 - 5 ms 200
2 IT 4T= 10 ms 100
3 47 8T = 20 ms 50
4 87- 167 = 40 ms 25
Pulse patterns sim ilar to those show n in Fig. 13-20 are generated by a m odified version
of Fig. 13-19. The m odification requires the eight output resistors to be replaced by p ro
gram sw itches and a single 10-kfl resistor sim ilar to that show n in Fig. 13-18, and it elim
inates the 5 1 -k fl resistor betw een the output bus and the self-reset term inal.
T he output is a train o f pulses that depends on w hich program sw itches are closed.
T he period of the pulse pattern is set by the highest program sw itch that is closed, and
the pulse w idth is set by the lowest program sw itch that is closed. For exam ple, if the 4 7
(pin 3) and 17 (pin 1) sw itches are closed, the pulse pattern is repeated every 2 X 4 7 =
8 7 seconds (see Fig. 13-20). The m inim um pulse width is 17 To determ ine the actual
pulse pattern, refer to the tim ing chart in Fig. 13-16(b). If sw itches 1 7 and 4 7 are closed,
392 Chapter 13
Set minimum
pulse width
/
nriTTnnnnnn .
+V
Pin I output
0
A Period of output 8 7 = 2 x 4 7
--------- ''--------------- -
47 47
> Pin 3 output
Pulse pattern
on output bus
FIGURE 13-20 Binary pattern signal generator with outputs T and 4T con
nected to output bus.
there is an output pulse only w hen there are high output pulses from each line. T he re
peating pulse patterns are show n in Fig. 13-20.
T he output bus in Fig. 13 -2 1(a) is capable o f generating any one o f 255 related frequen
cies. E ach frequency is selected by closing the desired program sw itches to program a
particular frequency at output V0.
To understand circuit operation, assum e that the output bus goes high. T his will
drive reset pin 10 high and couple a positive-going pulse into trigger pin 11. The reset
term inal going positive resets the 2240 (all outputs low). The positive pulse on pin 10 re
triggers the 2240 tim e base oscillator, to begin generation o f a tim e period that depends
on w hich program sw itches are closed. For exam ple, assum e that sw itches T and 4 T are
closed in Fig. 13-21(a). T he tim ing for these sw itches is show n in Fig. 1 3 -2 1(b). The o u t
put bus stays low for AT from pin 3 plus I T from pin 1 before going high (to initiate a
rese t-re trig g er sequence as noted above). The tim e period and frequency o f the output
signal VD are thus expressed by
and
1
/ = (13-1 lb )
period
w here 7 sum is found by adding the tim e base rating for each output term inal connected to
the output bus.
394 Chapter 13
1
= 166 Hz
6 X 10“ 3 s
We close this chapter with a useful program m able timer. In the version o f Fig. 13-22, the
basic tim ing interval is adjusted for 7 = 5.0 s by tim ing capacitor C and tim ing resistor R.
A 16-pin, eight-circuit D IP sw itch is used to select the desired tim e interval, as show n in
E xam ple 13-9. C lose sw itch I for a 5-s timer. C losing S 2 adds 10 s, S 3 adds 20 s, and so
on. W ith all sw itches closed, the m axim um tim e interval is 2 8 X 5 s = 1280 s or 21 min
20 s. T he basic tim ing interval can be changed by picking new values for R and/or C.
S tart sw itch Ss is opened m om entarily, driving the trigger pin high to start the tim er. All
outputs o f the X R 2240 go low. T his low is extended by any closed select sw itch(es) 5]
through S%, to ( —) pin 2 o f the 301 com parator. T he 30 1 ’s output goes high to light LE D
D y and turn on transistor Q j. T he on-transistor energizes the relay, thus sw itching the co n
tacts from the N C position to the NO position. T his com pletes the pow er circuit to turn
on any appliance for the tim ing interval.
To turn o ff an appliance during the tim ing interval, sim ply m ove the ac com m on
w ire from term inal A o f the relay to term inal C. T he supply voltage m u st be regulated to
obtain repeatable results.
In this section, we will use PSpice and sim ulate the perform ance o f two tim ing circuits— the
astable m ultivibrator shown in Fig. 13-7(a) and the tone-burst circuit shown in Fig. 13-9.
R efer to Fig. 13-7(a) and create the PSpice m odel o f the 555 tim ing circuit. P lace the fo l
low ing parts on the right-hand side o f the w ork area.
FIGURE 13-22 Switch programmable timer. A basic time interval is set to T = 5 s by
R and C. Time select switches S\ through S8 determine how long the appliance load will
be turned on after momentary-open start switch Ss is depressed. Si = 5 s. S2 adds 10 s.
The remaining switches extend the time interval as shown above.
Integrated-Circuit Tim ers 399
PROBLEMS __________________________________________________________________________
13-1. What are the operating modes of the 555 timer?
13-2. In Fig. 13-6(a), RA = RB = 10 kfl and C = 0.1 fiF. Find (a) ;high; (b) ;,ow; (c) frequency of
oscillation.
13-3. Using the graph of Fig. 13-7, estimate the free-running frequency of oscillation / i f (RA +
2Rb) = 1 MH and C = 0.02 fiF.
13-4. What is the duty cycle in Problem 13-2?
13-5. In Example 13-1 y RA and RB are increased by a factor of 10 to 68 kf) and 33 kCl. Find the
new frequency of oscillation.
13-6. In Fig. 13-8, RA and RB are each reduced to 5 kfl. What is the effect on (a) the duty cycle;
(b) the period T of the output?
13-7. In Fig. 13-9, at what value should the 10-kfl resistor be set for a 2-kHz output from the B
555?
13-8. Capacitor C is changed to 0.1 fiF in Fig. 13-10. Calculate (a) the center frequency f c when
E = 0 V; (b) the frequency shift for E = ± 2 V.
13-9. In Fig. 13-11 (a), RA = 100 kH and C = 0.1 f i ¥ .Find /high.
13-10. Ra is changed to 20 kfl in Example 13-5. Find /high.
13-11. In Example 13-6(b), what value of RA is required to divide a 1-kHz signal by 2?
13-12, Refer to Example 13-7. How long will the following output terminals stay low? (a) pin 1;
(b) pin 2; (c) pin 5; (d) pin 6.
13-13. In Fig. 13-16(a), T is set for 1 ms and pins 2, 4, 6, and 8 are connected to the output bus.
Find the timing interval.
13-14. In Problem 13-13, the odd-numbered pins, 1, 3, 5, and 7, are connected to the output bus.
Find the timing interval.
13-15. In Example 13-9, C is changed to 0.1 fiF and R to 500 k f l Find (a) the time base period; (b)
the timing cycle for switch positions shown in Fig. 13-18; (c) the maximum timing cycle.
13-16. In Example 13-10, what frequencies are present at pins (a) 5; (b) 6; (c) 7; (d) 8?
13-17. In Fig. 13-21, only switches to pins 1, 2, 3, and 4 are closed. Find the output frequency.
CHAPTER 14
Digital-to-Analog
Converters
U pon com pletion o f this chapter on digital-to-analog converters, you will be able to:
• W rite the general in p u t-o u tp u t equation for a digital-to-analog converter (DAC) and
calculate the output for any given input.
• U nderstand basic DAC specifications.
• D istinguish betw een a DAC and an M DAC.
• Tell w hat features m ust be present to m ake a DAC com patible w ith a m icroprocessor.
• E xplain how a m icroprocessor selects only one DAC out o f all peripheral devices and
sends data to it.
• D ynam ically test a m icroprocessor-com patible DAC, the A D 558.
• E xplain the operation o f a serial DAC and how to program a m icroprocessor to send
data to it.
400
Digital-to-Analog Converters 401
R eal-w orld processes produce analog signals that vary continuously. T he rate m ay be very
slow, such as a change in tem perature variations, or very fast, such as in an audio system .
A nalog processes are best described by decim al num bers and letters o f the alphabet.
M icroprocessors and com puters, however, use binary patterns to represent num bers, let
ters, or sym bols.
It is not easy to store, m anipulate, com pare, calculate, or retrieve data w ith accuracy
using analog technology. However, com puters can perform these tasks quickly and on an
alm ost unlim ited m ass o f data w ith precision, using digital techniques. Thus the need for
converters to interface betw een the analog and digital w orlds em erged. A nalog-to-digital
converters (A D Cs) allow the analog world to com m unicate w ith com puters. C om puters
com m unicate with people and physical processes via digital-to-analog converters (DACs).
T his chapter and the next study this interconnection betw een the analog and digital w orlds.
T his chapter concentrates on digital-to-analog converters w hile C hapter 15 covers the ana
log-to-digital interface. The reason for studying digital-to-analog converters first is that
som e analog-to-digital converters use DAC circuitry as you will see in C hapter 15.
14-1.1 Resolution
T he circuit sym bol and the in p u t-o u tp u t ch aracteristics o f a 3-bit DAC are show n in
Figure 14-l(a). Each digital input requires an electrical signal representing either a logic
1 or a logic 0. D 0 is the least significant bit, LSB, and for this exam ple, D 2 is the most
significant bit, M SB.
R esolution is the num ber o f distinct analog outputs (voltage or current) that can be
produced by a DAC. For an n-bit DAC,
resolution = 2n (14-1)
w here n is the num ber of digital inputs. T herefore, for the 3-input DAC o f Fig. 14-1(a),
there are 23 = 8 distinct outputs. Figure 14-1 (b) is a plot o f the discrete analog outputs
for the corresponding digital input codes. T his plot is referred to as the D A C ’s transfer
Digital-to-Analog Converters 403
function. Figure 14-1(b) is a plot for unipolar operation (all ouput values are positive).
Figure 14-1(c) is a plot o f a transfer function for a 3-bit DAC w ired for bipolar operation.
T he digital input code for bipolar operation may be either offset binary or tw o ’s com ple
ment. Both codes are show n in Fig. 14-1(c).
The resolution value is used to determ ine the change in analog output voltage,
resulting from a change o f 1 LSB at the digital input. See Figs. 14-1 (b) and (c). In o r
der to determ ine this change, we need to know the D A C ’s full-scale output range and its
resolution. In equation form,
full-scale range
(14-2)
C onsider the 3-bit DAC of Fig. 14-1(a) w ith the input reference set at 1.2 V. Then
from Eq. (14-2), the change o f the output voltage for a change o f 1 LSB is 150 m V /bit
(1.2 V/8).
Note: A digital code equal to the full-scale range (FSR) does not exist. However,
the industry standard positive full scale is the full-scale range less 1 LSB and is given by
(14-3)
w here Vfs is the ideal full-scale output voltage w hen the digital inputs are all Is. Vref is
the output reference value, w hich is usually equal to a m ultiple o f the input reference. For
our applications, Vref equals the input reference voltage. This value may be set by a volt
age reference IC as described in Section 2-6.
Example 14-1
An 8-bit DAC w ired for unipolar operation has a full-scale voltage range from 0 to
5.12 V. W hat is (a) the D A C ’s resolution, (b) the output voltage change per bit, and
(c) the ideal full-scale output voltage w hen all logic Is are applied at the input?
Solution
resolution = 2 8 = 256
(b) T he output change per bit is the output full-scale range (the reference value) di
vided by the resolution as given by Eq. (14-2).
5 12 V
= 20 mV/bit
256
404 Chapter 14
Note: T he full-scale output is alw ays 1 LSB less than the m axim um full-scale voltage-
range (the reference value).
E x a m p le 14-2
An 8-bit DAC has a resolution of 20 mV /bit. W hat is the analog output voltage for the
follow ing digital input codes (the M SB is the leftm ost bit)?
(a) 00010110
(b) 10000000
S o lu tio n O ne m ethod is to obtain the decim al equivalent value o f the binary pattern and
then m ultiply the decim al value by 20 m V /b it T he binary w eighted code for unipolar o p
eration is
T hen
V0 = 22 X 20 m V /bit = 0.44 V
D = (1)27 + 0 + 0 + 0 .+ 0 + 0 4 - 0 + 0 = 128
T hen
Example 14-3
If the DAC o f E xam ple 14-1 is w ired for bipolar operation, w hat is the change in output
voltage per bit?
Digital-to-Analog Converters 405
S o lu tio n For bipolar operation, the full-scale output voltage range is tw ice the unipolar
reference value. Hence,
For bipolar operation, each bit change causes tw ice the output change as unipolar operation.
C om pare Fig. 14-1 (c) w ith Fig. 1 4-i(b).
Typical DAC resolutions are 8 ,1 0 ,1 2 , 14, 16, 18, 20 bits. However, DACs with higher
resolutions are available. A D A C ’s digital input circuitry is designed for TTL, ECL, or
CM OS voltage levels and this specification should be checked to m atch your application.
T he transfer functions o f Fig. 14-1 are ideal. They do not show errors that occur in prac
tical devices. Figure 14-2 show s a plot o f a transfer function due to an offset error o f one
L SB . A lthough this plot is for a positive offset error, the error could have been negative.
F or m ost devices, the offset error is usually m easured by applying an input digital code
o f all logic Os and m easuring the analog output— the deviation from zero output is the
offset error. Note: A n offset error does not always occur ju st at zero. T he reason that the
offset erro r is m easured at zero is because th ere usually are no o th er erro rs at zero.
H owever, in som e DAC this is not so, and the user should check w ith the m anufacturer’s
data sheet to see if other techniques have been used. Figure 14-2(b) show s an offset er
ror range, positive and negative, for a DAC w ired for bipolar operation.
E x a m p le 14-4
A 12-bit unipolar DAC has a m axim um offset error specified as 0.05% o f FSR. The input
reference voltage is set at 10.24 V. (a) W hat is the offset voltage? (b) W hat is the offset
value in term s o f least significant bit(s)?
S o lu tio n (a)
Optional
current output
Digitally Analog
controlled 1,-to-Vo • output
converter
switches
MSB LSB
DigiLaJ input
D
(a)
DAC Output
Digital inputs
(b)
sw itches (one for each bit) connected to the resistance network. T he output o f the resis
tance netw ork is in the form of a current. This current may then be converted to a volt
age. As previously m entioned, both current and voltage outputs are analog representations
of the digital input code.
The actual digital-to-analog conversion takes place w ithin the resistance network.
A ccordingly, we begin our study of DAC circuitry by looking next at the standard resis
tance netw ork, called an R -2 R ladder network.
A 4-bit R -2 R ladder netw ork is draw n in Fig. 14-6. Each digital input controls the posi
tion o f its corresponding current sw itch. A current sw itch steers its ladder current either
into a real ground (position 0) or a virtual ground (position 1). T hus the w iper o f each
sw itch is alw ays at ground potential, so that the rung currents are constant except for the
brief transition tim e of each sw itch.
In Fig. 14-6, rail currents flow horizontally; rung currents flow dow n through the
bit sw itches. The rail current /, enters node 0, w here it sees a resistance R 0. R0 is the
equivalent resistance of a 2R resistor via sw itch D 0 to ground in parallel w ith a 2R ter
m inate resistor. Thus R 0 = 2R || 2R = R. As rail current /, leaves node 1, it sees R in se
ries w ith R q = R or 2R. If we w ork our way back from the term ination end to the volt
age source, the value o f resistance “ looking” into a node is R. As show n in Fig. 14-6,
412 Chapter 14
A s show n in Fig. 14-7, the output ladder current can be converted into a voltage by adding
an op am p and a feedback resistor. O utput voltage VQ is given by
Vo ~ Jout Rf ( 1 4 - 10a)
V0 = - (c u rr e n t resolution X D) X Rf ( 1 4 - 1Ob)
V0 = - (c u rr e n t resolution X Rf ) X D ( 14 -10c)
Vo = -
R
x 2
xD (14-11)
E x a m p le 14-7
For the voltage output DAC o f Fig. 14-7, find (a) its v o ltag e reso lu tio n o f 1 LSB and
(b) VQ w hen the digital input is 1111.
S o lu tio n (a) From Exam ple 14-6, the value o f / 0 - 62.5 \xA- From Eq. (14-1 Od),
10 V
vn = - X x 10 k f i 1 X D = - 0 .6 2 5 V X D
lO k f l 2“
For a digital input o f 1111, D = 15. T herefore,
Va = - 0 .6 2 5 V X 15 = - 9 .3 7 5 V
R= l O k f t 10 kQ R= 10 kQ
>•" o
FIGURE 14-7 /oul of the R-2R ladder is converted into a voltage by the op amp and
feedback resistor Rf.
414 Chapter 14
E quation (14-11) can be rew ritten to show how an M DAC or m ultiplying DAC operates
w here
constant = -
2n R
E quation (14-12) shows that V0 is the product o f tw o input signals, Vref and D y and both
signals can be variables. O ne exam ple for M DAC use is the volum e control o f an audio
signal controlled by a m icroprocessor
S uppose that Vref is an audio signal that varies from 0 to 10 V in Fig. 14-7. From
E xam ple 14-7, if D = 0001, V0 w ould vary from 0 to 0.625 V. If the digital input is 1000,
D = 8 and the volum e o f V0 w ould increase from 0 to 8 X 0.625 V = 5 V. M axim um vol
um e o f 15 X 0.625 V = 9.375 V w ill occur w hen the digital input w ord is 1111, D = 15.
T hus the M DAC perform s as a digitally operated volum e control.
T he D A C -08 is a low -cost, fast M D A C , housed in a 16-pin DIP. Its o p era tin g p rin c i
ples are e x a m in e d by re fe re n c e to th e task p erfo rm ed by ea ch o f its te rm in a ls in
Fig. 14-8.
Pins 13 and 3 are the positive and negative supply term inals, respectively, and can have
any value from ± 4 .5 to ± 1 8 V. They should be bypassed with 0.1-/xF and 0.01-/i,F ca
pacitors, as show n in Fig. 14-8a.
F lexibility o f the DAC-08 is enhanced by having two rather than one reference input. Pins
14 and 15 allow positive or negative reference voltages, respectively. A positive reference
voltage input is shown in Fig. 14-8a.
T he user can adjust the D A C -08’s input ladder current /ref quite easily from 4 fiA
to 4 m A w ith a typical value o f 2 mA.
(14-13)
-1 5 V +15 V
V
TTL or CMOS
compatible
(a) DAC-08 wired for positive output voltages.
FIGURE 14-8 An 8-bit DAC-08 is wired for unipolar voltage in (a). /out has values
given in (b) for three digital input words. The op amp converts /oul to voltage VQ.
416 Chapter 14
Pins 5 through 12 identify the digital input term inals. Pin 5 is the m ost significant bit
(M SB ), D 7>Pin 12 is the LSB, D 0. T he term inals are T T L or C M O S com patible. Logic
input “0” is 0.8 V or less. L ogic 441” is 2.0 V or greater, regardless o f the pow er supply
voltages. U sually, pin 1, VLC, is grounded. H ow ever, it can be used to adjust the logic in
p u t threshold voltage VTH according to VTH = VLC + 1.4 V. T hese digital inputs control
eight internal current sw itches. ,
Two current output term inals are provided in Fig. 14-8 to increase the D A C -08’s versa
tility. Pin 4 conducts output current / out and pin 2 conducts its com plem ent, /out. If an in
ternal sw itch is positioned to “ 1,” its ladder rung current flows in the Iout bus. If p o si
tioned to “0,” ladder rung current flow s in the / out bus.
T he current value of 1 LSB (resolution) is found from
V 1
current resolution = (value o f 1 LSB ) = — — X — ( 1 4-1 4a)
w here D is the decim al value o f the digital input word. The full-scale output current in
the pin 4 output bus occurs w hen the digital input is 111 11111, so that D = 255. L e t’s
define this current as Ifs, w here
T he sum o f all ladder rung currents in the DAC-08 equals Ifs. Since this sum alw ays di
vides betw een the / out and /out, the value o f / ou{ is given by
(14-15b)
Example 14-8
C alculate (a) the ladder input current / ref o f the DAC-08 in Fig. 14-8; (b) the current value
of 1 LSB.
E x a m p le 14-9
For the DAC-08 circuit in Fig. 14-8, find the values o f / out and / out w hen the digital input
w ords are (a) 00000001; (b) 10000000; (c) 1 1 1 1 1 1 11.
S o lu tio n Exam ple 14-8 showed that current output resolution is 7.812 /xA/bit. From Eq.
(1 4 -15a), evaluate lfs.
T he value of D is 1 for (a), 128 for (b), and 255 for (c). / out can now be found from Eq.
(14-14b):
(a) A>ut - 7.812 /xA X 1 = 7.812 /xA for 00000001 input
(b) /out = 7.812 /jlA X 128 = 1.000 m A for 10000000 input
(c) /out = 7.812 A X 255 = 1.992 mA for 11111111
jjl input
F rom Eq. (14-15b),
(a) 4 u, = 1.992 mA - 7.812 /xA = 1.984 mA
(b) /out - 1-992 m A - 1.0 m A = 0.992 mA
(c) / out = 1.992 m A - 1.992 m A = 0
T he results of E xam ples 14-8 and 14-9 are tabulated in Fig. 14-8(b).
In Fig. 14-8(a), the D A C -08’s current output / oul is converted to an output voltage V0 by
an external op am p and resistor /?/. The voltage output has a resolution o f
Example 14-10
F or the D A C-08 circu it o f Fig. 14-8(a), find V0 for d ig ital inputs o f (a) 00 0 0 0 0 0 1 ; (b)
11111111 . -
418 Chapter 14
1 4 -5 .6 B ip o la r A n a l o g O u t p u t V o lta g e
T he versatility o f the DAC-08 is show n by w iring it to give a bipolar analog output volt
age in response to a digital input w ord [Fig. 14-9(a)]. T he op am p and tw o resistors co n
vert the difference betw een 7out and 7out into a voltage VQ:
Vo = (/out - l ^ ) R f (14-17)
7out drives VQ positive and 7out drives V0 negative. If the digital input w ord increases
by 1 bit, 7out increases by 1 L SB . H ow ever, 7out m ust th erefo re d ecrea se by 1 LSB .
T herefore, the differential output current changes by 2 L SB s; thus w e w ould expect the
bipolar output voltage span to be tw ice that o f a unipolar output (see E xam ple 14-3).
Vref has been increased slightly in Fig. 14-9(a) so that 7ref increases to 2.048 mA
[Eq. (14-13)]. T his increases the current value o f 1 LSB to an even 8 /xA [Eq. (1 4 -14a)].
We show how the output voltage responds to digital inputs by an exam ple.
E x a m p le 14-11
F or the circuit o f Fig. 14-9(a), calculate VDfor digital inputs o f (a) 00000000; (b) 01111111;
(c) 10000000; (d) 11111111.
S olution The current value o f 1 LSB equals 8 /xA. From Eq. (1 4 -15a), ifs = (8 jjlA )255 =
2.040 mA. ___
(a) From Eq. (1 4 -14b), 7out = (8 jj,A) X 0 = 0. Then from Eq. (14-15b), 7out =
2.040 m A - 0 = 2.04 mA. Find V0 from Eq. (14-17):
T he values o f 7out, 7out, and VQ are calculated for (b), (c), and (d) and are sum m arized in
Fig. 14-9(b).
-15 V +1 5 V
8 digital inputs
(a) DAC-08 wired for bipolar output voltage.
FIGURE 14-9 The op amp converts complementary output currents of the DAC-08 into
bipolar output voltages. The op amp is wired as a differential current-to-voltage converter.
420 Chapter 14
N ote that full-scale negative output voltage o f —10.20 V occurs for an all-zero d ig
ital input. A ll ones give a positive full-scale output o f plus 10.20 V. N ote also that V0 never
goes to precisely zero volts. W hen 7out is less than 7oul by 8 /jlA (01111111), V0 equals
—40 mV. Since this is the closest that V0 approaches to 0 V from negative full-scale,
V0 = —40 m V is called negative zero.
M any DACs m ust operate under the control o f a m icroprocessor or com puter. We
therefore next present a m icroprocessor-com patible DAC.
“Read only” or “w rite only” registers have tw o operating states: transparent and latching.
An idle register always rem em bers (latches) the last digital w ord w ritten into it, and the
register can be disconnected from the data bus. M ore specifically, the interface betw een
data bus and register can be in the high-Z state, or essentially an open circuit.
W hen a register is transparent, it is connected to the data bus. F o r exam ple, an 8-
bit register in a DAC w ould allow its 8 data bits, D 7 through D0, to “read ” the logic Is
and/or 0s present on each corresponding w ire o f the data bus placed there by the m icro
processor (see Fig. 14-10).
How does the m icroprocessor locate one DAC, out o f all other peripherals or m em
ory addresses, that it is selected? T his question is answ ered next.
Every DAC register has an address ju st like any m em ory location o f the m icroprocessor.
To w rite to one particular DAC, the m icroprocessor places the address o f that DAC on
the address bus (see Fig. 14-10). O ne output o f a local decoder goes low to enable a chip
select, C S, term inal on the selected DAC. T he D A C’s digital input buffer registers do not
yet becom e transparent. T he DAC is only partially selected.
To fully select the DAC, the m icroprocessor places a low on a line to the chip e n
a ble>CE, term inal. T his line is controlled by the_m icroprocessor’s read/w rite line, w hich
m ay also be referred to as MRW, M EM W , or R/W . W hen both the CS and C E term inals
are low, only one DAC can com m unicate w ith the m icroprocessor. Its internal reg ister
Digital-to-Analog Converters 423
Pin 11 is the pow er supply term inal Vc c in Fig. 14-11(a). It requires a m inim um + 4 .5 V
and has a m axim um rating of + 1 6 .5 V. Pins 12 and 13 are the digital and analog grounds,
resp ectiv ely . T his allow s the u ser to m ain tain se p a ra te an alo g and d ig ital g ro u n d s
throughout a system , jo in in g them at only one point. U sually, pins 12 and 13 are w ired
to g e th er and a 0 .1 - ^ F bypass ca p ac ito r m u st be co n n ected b etw een Vc c and pin 12
or 13.
Pins 1 through 8 are the digital inputs D 0 to D 7, w ith D 0 the LSB and D 7 the M SB. They
are com patible with standard T T L or low -voltage CM O S. Logic 1 is 2.0 V m inim um for
a “ 1” bit. Logic 0 is 0.8 V m axim um for a “0 ” bit.
T he digital input pins connect the data bus to the A D 5 5 8 ’s internal m em o ry la tch
ing register, w hen the A D 558 is selected. T his co n d itio n is called tra n sp a ren t. W hen
u nselected, the latching reg ister is essen tially d isco n n ected from the data bus and re
m e m b ers th e la st w ord w ritte n in to the la tc h in g reg ister. T h is c o n d itio n is ca lle d
“ latching.”
T he m icroprocessor executes a write com m and over the address bus via an address d e
coder and w rite line to the A D 558’s logic control pins 9 and 10. They are called chip se
lect (C S ) and chip enable (CE), respectively.
If a “ 1” is present on either CS or CE, the digital inputs are in the “latching’" mode.
They are disconnected from the data bus. T he input latches rem em ber the last w ord w rit
ten by the m icroprocessor over the data bus. If both CS and C E are “0,” the A D 5 5 8 ’s in
puts are “transparent” and connect the input m em ory latch register to the data bus. The
m icroprocessor can now w rite data into the DAC. D igital-to-analog conversion takes place
im m ediately and is com pleted in about 200 ns.
As show n in Fig. 14-11, the analog o u tp u t vo ltag e ( VQ) ap p ears b etw een pins 16 and
13 (analog ground), Pin 14 is called “ se lec t” ( V0 gain). It is w ired to pins 15 and 16
to set the o utput voltage range at 0 to 2.56 V, as in Fig. 1 4 -1 1(b). T he actual analog
output range is 0 to 2.55 V, or 10 m V /b it for a d ig ital input o f 0 0 0 0 0 0 0 0 to 11111111.
A 0-to -1 0 -V o utput range con n ectio n is show n in Fig. 14-1 la . T he actual ran g e is 0 to
9.961 V or 38.9 m V /b it (p o w e r su p p ly v o lta g e m u st e x c e e d m ax im u m V0 by 2 V
424
£>3 d2 D\ D0 D7 D6 Ds D4
11 ■+5 V
*CT Clock AD558
OiF) frequency (Hz)
cs CE 12 13 14 15 16
0.001 10,000
10
0.01 1,000
0.10 100
1.00 10 V
FIGURE 14-12 The 555 clock drives an 8-bit binary counter made from two CD4049
ICs. The outputs count in binary from 00000000 to 11111111 and then repeat. The digi
tal count is converted by the DAC into an analog voltage that resembles a staircase.
Digital-to-Analog Converters 425
m inim um ). S ense term inal 15 allow s rem o te lo ad -v o ltag e sensing to elim in ate the e f
fects o f IR drops in long leads to the Joad. It can also be used for cu rren t b o o st as in
Fig. 1 4 -1 1(c).
A single A D 558 can be tested dynam ically without a m icroprocessor by the stand-alone,
low -parts-count test circuit o f Fig. 14-12. Pins 9 and 10 o f the A D 558 are grounded. This
connects the A D 558’s input register (transparent) to an 8-bit synchronous counter that
sim ulates a data bus.
The test circuit consists o f three ICs. O ne 555 tim er is wired as a 1-kHz clock. It
steps an 8-bit synchronous binary counter m ade from two CD 4029s. T he co u n ter’s o u t
puts are w ired to the digital inputs of the DAC. An oscilloscope is connected (dc coupled)
to display V0. It should be externally triggered from the negative edge o f the M SB (pin 8
o f the A D 558 or pin 2 o f the right C D 4029 in Fig. 14-12). T he analog voltage w aveshape
appearing at V0 will resem ble a staircase.
Each clock pulse steps the counter up by one count and increases V0 by 10 mV.
Thus the risers will equal 10 mV and the staircase will have 256 treads from 0 to 2.55 V.
T he tread on each step will occupy about 1 ms. Thus one staircase w aveshape is gener
ated every 256 ms. Any glitch, nonlinearity, or other abnorm ality will be quite apparent.
T he capacitor CT can be changed to give faster or slow er clock frequencies, as indicated
in Fig. 14-12. Any visible glitches can be m inim ized but not elim inated from V0. However,
a sam ple-and-hold or follo w -a n d - ho Id am plifier can be connected to VQ. It w aits until the
glitch settles dow n, sam ples V0, and holds this correct value. The principle o f sam ple-and-
hold is presented in C hapter 15.
14-8.0 Introduction
T his section describes a 12-bit serial D /A converter. T he data is shifted into the DAC one
bit at a tim e usually from a m icroprocessor or a m icrocontroller. T he authors selected the
DA C-8043 from A nalog D evices to show typical operation o f serial DACs. This DAC is
housed in an 8-pin mini-DIP. Figure 14-13 shows the pin designation as w ell as the func
tional block diagram . T he device consists o f a 12-bit seriaJ-in to parallel-out shift regis
ter, a 12-bit DAC register, and a 12-bit digital-to-analog converter. It also contains the nec
essary control logic. Serial data is clocked into the input shift register, one bit on each
rising edge of a clock signal. A fter 12 bits have been shifted in, the data is transferred to
the DAC register by an active low state on the LD pin. D ata in the DAC register is co n
verted to an output current by the D /A converter. Since this particular device produces an
output current, an external op am p m ust be connected to the D A C s output as show n in
Fig. 14-14.
428 Chapter 14
Memory
address t--------D ata---------*
1 -
D000 X XXX 1 1 1 1
-----------r -M SB
D 00 1 i j i i i i i i
-------------------E -LSB FIGURE 14-16 Data to be sent is stored in memory.
D 000 so that the M SB will be sent first. T he follow ing assem bly language code is w rit
ten as a subroutine that is called to send the data one bit at a tim e to the DAC on data bus
line D 7.
Subroutine Code
LDAB #04 Initialize
LD AA $D 000 accum ulators A and B
LOOP L SL A
Shift d o n ’t care data, Xs,
DECB
out o f the way
BNE LOOP
LD AB #08
R einitialize to send
LDAA $D001
next 8 bits
BSR SH IFT
The 74138 IC in Fig. 14-15 could be used to interface three m ore serial DACs to the m i
croprocessor.
PROBLEMS
14-1. What is the resolution for (a) 10-bit DAC and (b) 14-bit DAC?
14-2. If the input reference voltage is 10 V for each of the DACs of Problem 14-1, what is the
equivalent least significant voltage value?
Digital-to-Analog Converters 429
14-3. What is the maximum output voltage for a 10-bit DAC if the reference voltage is set at
10.24 V?
14-4. A 12-bit DAC has a least significant bit resolution of 2.5 mV/bit, what is the output volt
age if the input binary patterns are:
(a) 100011001000 "
(b) 001100100101
The most significant bit is the leftmost bit,
14-5. The output voltage of an 8-bit DAC is 1.9 V. What is the input digital code if the refer
ence voltage is 5.12 V?
14-6. A 12-bit DAC has an offset error of - 1 /2 LSB and a gain error of - 1 /2 LSB. If the input
reference voltage is 10.24 V, what is the output voltage when the input digital code is all
Is?
14-7. Refer to the R-2R ladder network of Fig. 14-7. Let Vref = 10 V, Rf = 5 kH, R = 5 kO,
and 2R = 10 kCl. Find (a) characteristic ladder resistance, (b) 70; (c) voltage resolution;
(d) output-input equation; (e) V0.
14-8. What is the voltage at pins 2 and 3 of the op amp in Fig. 14-9(a) when the digital inputs
are 1000000? Also calculate the voltage across the feedback resistor to get V0.
14-9. A basic DAC consists of a reference voltage, ladder network, current switches, and op
amp. Name two additional features required to make the DACmicroprocessorcompatible.
14-10. Can the AD558 and DAC-08 be used as multiplying DACs?
14-11. These questions refer to the AD558. (a) Name the terminals that allow this DAC to be se
lected. (b) Describe the digital input register’s latching mode and (c) transparent mode of
operation.
14-12. (a) What is the output-input equation for an AD558 DAC?
(b) Find VQ for an input code of 10000000.
14-13. If the 74138 decoder chip shown in Fig. 14-15 is used to interface three more serial
DACs, at what address would their registers be located?
CHAPTER 15
Analog-to-Digital
Converters
U pon com pletion of this chapter on analog-to-digital converters, you w ill be able to:
430
Analog-to-Digital Converters 431
The previous chapter dealt with converting digital patterns of logic Is and Os to an ana
log signal— digital-to-analog converters (DACs). T hese devices are part o f the output in
terface circuitry of a m icroprocessor-based system. They transform stored data or the re
sults o f digital processing back to real-w orld signals for control applications, for sound
system s, or further analog processing, and so forth. In this chapter, we shall study part of
a com puter’s input interface circuitry— analog-to-digital converters. ADCs are required to
convert real-w orld signals produced by sensors and their signal-conditioning circuits to a
digital pattern used by a com puter. D igital data is easily stored, processed, and transm it
ted; hence, m ost m odern control system s use som e form o f digital processing. R eal-w orld
param eters such as tem perature, pressure, humidity, and so on are first converted by a sen
sor to an electrical quantity and then signal-conditioned analog circuitry before being ap
plied to an A/D converter. T hese analog signals may vary slowly with tim e (for exam ple,
tem perature m easurem ents) or quickly with tim e (for exam ple, audio recording). The lat
ter system s require sam ple-and-hold circuitry before the signal can be applied to an AID
converter.
15-1.1 Resolution
The digital output of an ideal 3-bit ADC is plotted against a norm alized analog input in
Fig. 15-1. Sim ilar to a DAC, the resolution of an ADC is defined as
resolution = T (15-1)
w here n is the num ber o f digital outputs. Since the input is an analog voltage and assum ed
to be continuous, resolution refers to num ber of discrete outputs. The ratio o f the device’s
full-scale input voltage range, FSR, to the resolution gives the m inim um change o f input
voltage to cause a change of one digital count at the output. In equation form
FSR
AVf- for 1 LSB = (15-2)
w here FSR is the full-scale input voltage range specified on the m anufacturer’s data sheet
and n is the num ber of digital outputs. The ratio of Eq. (15-2) is sim ply referred to as
1 LSB as shown in Fig. 15-1. Note: For an A /D converter 1 LSB is a voltage value as we
will see in Exam ple 15-1.
Since the digital count begins at 0, then the m axim um full-scale input voltage to
cause the output to be all logic Is is 1 LSB less than the full-scale range value.
w here V,fS is the m axim um input voltage to cause all logic Is at the A D C ’s output. In gen
eral, the o u tp u t-in p u t equation of an ADC for any input voltage is given by
3-16. A 5-V peak-to-peak sine wave, Eh is applied to ( + ) In of Fig. P3-15. Plot V0 vs. Et if the
3-17. Design a three-channel inverting amplifier. Gains are to be - 1 for channel 1, - 3 for chan-
3-18. Design a two op amp circuit to subtract I V from 3 V. Show the output voltage present at
3-19. Design a circuit to amplify the difference between E x and E2 by 5. The inputs E x and E2
3-20. Redesign the system of Fig. 3-20 to measure a temperature range from 0° to 100°C.
3-21. Obtain the data sheet of the LM 135/335 temperature sensor from National Semiconductor’s
CHAPTER 4
U pon com pletion of this chapter on com parators and controls, you will be able to:
• D raw the circuit for a zero-crossing detector and plot its o u tp u t-in p u t characteristic.
• Identify the upper and lower threshold voltages on an o u tp u t-in p u t characteristic.
• C alculate hysteresis voltage if you know the threshold voltages.
• E xplain how hysteresis gives a m easure o f noise im m unity to com parator circuits.
• Explain why hysteresis m ust be present in all o n -o ff control circuitry, using the fam il
iar wall therm ostat as an exam ple.
• M ake a battery-charger control circuit.
- B uild and calibrate an independently adjustable setpoint co n tro ller
• D escribe the operation of an LM 311 precision com parator.
• Know how to control the strobe term inal o f a com parator with a m icrocontroller signal
Com parators and Controls 85
A co m p arato r com pares a signal voltage on one input w ith a referen ce v oltage on the
o ther input. V oltage-level-detector circu its are also co m p arato rs and w ere in troduced
in C h ap ter 2 to show how easy it is to use op am ps to solve som e types o f sig n al co m
parison ap p licatio n s w ith o u t the need to know m uch ab o u t the op am p itself. T he g en
era l-p u rp o se op am p w as used as a su b stitu te fo r IC s d esig n ed only fo r co m p arato r
applicatio n s.
U nfortunately, the general-purpose op am p ’s output voltage does not change very
rapidly. A lso, its output changes betw een lim its fixed by the saturation voltages + Vsa( and
—Vsat that are typically about ± 1 3 V. T herefore, the output cannot drive devices that re
quire voltage levels betw een 0 and -I-5, such as T T L digital logic ICs or input port lines
of a m icrocontroller. T hese disadvantages are elim inated by ICs that have been specifi
cally designed to act as com parators. O ne such device is the 311 com parator. It will be
introduced at the end of this ch a p te r
N either the g eneral-purpose op am p nor the co m p arato r can operate properly if
noise is present at either input. To solve this problem , w e w ill learn how the addition o f
p o sitive fe e d b a c k overcom es the noise problem . N ote that positive feed b ack does not
elim inate the noise but m akes the op am p less responsive to it. T hese circuits will show
how to m ake better voltage-level detecto rs and also build a foundation to understand
square-w ave generators (m ultivibrators) and single-pulse generators (one-shots), w hich
are covered in C hapter 6.
Input signal £, is applied to the ( —) input of a 741 op am p in Fig. 4-1 (the 741 is a g en
eral-purpose op am p). If no noise is present, the circuit operates as an inverting zero-
crossing detector because Vrcf = 0.
N oise voltage is shown, for sim plicity, as a square wave in series w ith E r To show
the effect o f noise voltage, the op am p ’s input signal voltage is draw n both w ith and w ith
out noise in Fig. 4-2. T he w aveshape of Va vs. tim e shows clearly how the addition of
noise causes false output signals. V(, should indicate only the crossings o f E n not the
crossings o f £, plus noise voltage.
If Ei approaches Vref very slowly or actually hovers close to Vref, Va can either fo l
low all the noise voltage oscillations or burst into high-frequency oscillation. T hese false
crossings can be elim inated by positive feedback.
Chapter 4
+v
iput
/
The addition of noise voltage at the
input causes false zero crossings.
4-2.7 Introduction
+v
+v
In Fig. 4-3(a), output voltage V0 divides betw een R x and 7?2- A fraction o f V0 is fed back
to the ( + ) input. W hen Vt) = + Vsat, the fed-back voltage is called the upper-threshold
voltage, VUT. VUT is expressed from the voltage divider as
V//T — (4-1)
For E t values below VUT, the voltage at the ( + ) input is above the voltage at the ( -) in-
put. T herefore, VQ is locked at + V sat.
If E, is m ade slightly m ore positive than VUT, the polarity o f E dy as show n, reverses
and V0 begins to drop in value. Now the fraction o f VQ fed back to the positive input is
sm aller, so Ed becom es larger. VQ then drops even faster and is driven quickly to —Vsal.
T he circuit is then stable at the condition show n in Fig. 4-3(b).
W hen VQ is at —Vsal, the voltage fed back to the ( + ) input is called low er-threshold volt-
age, VLT> and is given by
V,t = (4-2)
R\ + Rr
N ote that VLT is negative with respect to ground. T herefore, Va will stay at —Vsal as long
as Ei is above, or positive with respect to, VLT. V0 will sw itch back to 4- Vsar if E t goes
m ore negative than, or below, VLT.
We conclude that positive feedback induces a snap action to sw itch V0 faster from
one lim it to the other. O nce V0 begins to change, it causes a regenerative action that m akes
VQ change even faster. If the threshold voltages are larger than the peak noise voltages,
positive feedback w ill elim inate false output transitions. T his principle is investigated in
the follow ing exam ples.
E x a m p le 4-1
V / jt ~ (14 V) ~ 14 mV
UT 100,100 n
E x a m p le 4-2
If Ej has a value that lies betw een V l t and VUT, it is im possible to predict the value o f V0
unless you already know the value o f V0. For exam ple, suppose that you substitute ground
for E, (Ej = 0 V) in Fig. 4-3 and turn on the power. T he op am p w ill go to eith er + Vsat
or - Vsal, depending on the inevitable presence o f noise. If the op am p goes to + Vsat, Et
m ust then go above Vur in order to change the output. If V0 had gone to - Vsal, then E,
w ould have to go below VLT to change V0.
T hus the com parator w ith hysteresis exhibits the property o f m em ory. T h at is, if £ ,
lies betw een VUT and VLT (w ithin the hysteresis voltage), the op am p rem em bers w hether
the last sw itching value o f was above VUT or below VLT.
4-4.1 Introduction
In the zero-crossing detectors o f Sections 4-2 and 4-3, the hysteresis voltage VH is cen
tered on the zero reference voltage Vref. It is also desirable to have a collection o f circuits
that exhibit hysteresis about a center voltage that is either positive or negative. For ex
am ple, an application may require a positive output, V0> w hen an input £ , goes above an
upper-threshold voltage o f VUT = 12 V. A lso, we m ay w ish V0 to go negative w hen E t
goes below a low er threshold voltage of, for exam ple, VLT = 8 V. T hese requirem ents are
sum m arized on the plot of VD vs. E t in Fig. 4-6. VH is evaluated from Eq. (4-3) as
V h = VUT ~ VLT = 12 V - 8 V = 4 V
T he hysteresis voltage VH should be centered on the average o f VUT and VLT. This aver
age is called center voltage, Vctrt w here
V n T + V ,T 12V + 8V
VVClT— = 10 V
W hen w e try to build this type o f voltage-level detector, it is desirable to have four
features: (1) an adjustable resistor to set the value o f VH\ (2) a separate adjustable resis
tor to set the value of Vctr; (3) the setting o f VH and Vcn. should not interact; and (4) the
center voltage Vclr should equal or be sim ply related to an external reference voltage Vref.
For the low est possible parts count, the op am p ’s regulated supply voltage and a resistor
netw ork can be used for selecting V r e f -
S ections 4-4.2 and 4-4.3 deal w ith circuits that do not have all these features but
are low in parts count and consequently cost. Section 4-5 presents a circuit that has all
four features but at the cost o f a higher parts count.
T he positive feedback resistor from output to ( + ) input indicates the presence o f hys
teresis in the circuit o f Fig. 4-7. Ez is applied via R to the ( + ) input, so the circuit is non
inverting. (N ote that £, m ust be a low -im pedance source or the output o f either a voltage
follow er or op am p am plifier.) The reference voltage Vref is applied to the op am p ’s ( - )
input.
T he upper- and low er-threshold voltages can be found from the follow ing equations:
+
1 -Vv s a t
V„ t = V„ (4-4a)
n
r (4-4b)
Vlt = Vref|
ref I + -1 -
n,
H ysteresis voltage VH is expressed by
_ ( + V / Sa t) - ( - V /sat)
L T (4-5)
Vctr =
Vur±V±r = v /, +1 (4-6)
C om pare the locations o f Vctr and Vret in Fig. 4-6. A lso com pare Eqs. (4-5) and
(4-6) to see that n appears in both equations. This m eans that any adjustm ent in resistor
nR affects both Vctr and VH.
94 Chapter 4
D esign E x a m p le 4-4
D esign the circuit of Fig. 4-7 to have VUT = 12 V and VLT - 8 V. A ssum e that ± Vsat
± 1 5 V.
D esign P ro c e d u re
+Vsat - ( - V sJ = +15 y - ( - 1 5 V ) =
T/ A
VH 4
3. Find Vref from Eq. (4-6):
VW = Vclr = — 10 V = 8.82 V
1 + 1In 1 + 1/7.5
4. S elect R = 10 k H and nR = 7.5 X 10 k f t = 75 kH . T he relationships betw een £ , and
are show n in Figs. 4-7(b) and (c).
If Ej and Vref are interchanged in Fig. 4-7(a), the result is the inverting voltage-level d e
tector with hysteresis (see Fig. 4-8). The expressions for VUT and VLT are
-(Vref) + (4-7b)
n + r ,CI/ n + 1
Vctr and are then found to be
( + V s a » ) - ( - V s ,» )
(4-9)
n + 1
N ote that Vctr and Vh both depend on n and therefore are not independently ad
justable.
+v
11.53 V -
+V„
C om plete a design for Fig. 4-8 that has VUT = 12 V and VLT = 8 V. To m ake this exam ple
com parable w ith E xam ple 4-4, assum e that ± V sal = ± 1 5 V. T herefore, Vc{r = 10 V and
VH = 4 V.
98 Chapter 4
T he general equation for Vclr seem s com plex. However, if the m agnitudes o f +Vsal and
- V sat are nearly equal, then Vctr is expressed sim ply by
Vc, r = - — ( 4 - 12b)
m
So Vc(r depends only on m and VH depends only on n .
T he follow ing exam ple show s how easy it is to design a battery-charger control cir
cuit using the principles studied in this section.
Follow ing is an exam ple o f the design procedure for a battery-charger control circuit.
D esign E x a m p le 4-6
A ssum e that you w ant to m onitor a 12-V battery. W hen the b attery ’s voltage drops below
10.5 V, you w ant to connect it to a charger. W hen the battery voltage reaches 13.5 V, you
w ant the charger to be disconnected. T herefore, VLT = 10.5 V and VUT = 13.5 V. Let us use
the —V supply voltage for VTef and assum e that it equals - 15.0 V. Further, let us assum e
that ± Vsal = ± 13.0 V. Find (a) VH and l7ctr; (b) resistor m R\ (c) resistor nR.
D esign P ro c e d u re
N ote that the center voltage is the battery ’s nom inal voltage.
2. A rb itra rily ch o o se resisto r R to be a read ily av ailab le value o f 10 k f l. F ro m Eq.
( 4 -12b), choose Vref as —15 V to m ake the sign o f m positive:
Vm l \ 12 V
+ V iM - ( - V sai) _ 13 V - ( - 1 3 V)
vu - 5 “ 8 '66
T herefore, nR = 86.6 kH .
Com parators and Controls 99
T he final circuit is shown in Fig. 4-10. W hen E f drops below 10.5 V, VQ goes neg
ative, releasing the relay to its norm ally closed position. T he relay ’s norm ally closed (NC)
contacts connect the charger to battery E r D iode D \ protects the transistor against exces
sive reverse bias w hen V0 = — W hen the battery charges to 13.5 V, VD sw itches to
+ y sat> w hich turns on the transistor and operates the relay, w hose NC contacts open to
disconnect the charger. D iode D2 protects both op am p and transistor against transients
developed by the rela y ’s collapsing m agnetic field.
O ne final note. Suppose that the application requires an inverting voltage-level d e
tector w ith hysteresis. T hat is, V0 m ust go low w hen E , goes above V UT and V0 m ust go
high w hen £, drops below VLT. For this application, do not change the circuit or design
procedure for the noninverting voltage-level detectors, sim ply add an inverting am plifier,
or inverting com parator, to the output VQ.
+12 or +15
V V V
-15
FIG U RE 4-10 Battery-charge control for solution to Example 4-6. Adjust mR
for Vclr = 12 V in the test circuit of Fig. 4-9 and adjust nR for VH = 3 V cen
tered on Vc(r.
D esign Exam ple 4-6 illustrates one o f the m ost im portant applications o f positive feed
back circuits w ith hysteresis. They make excellent low -cost o n -o ff controls. T he circuit
o f Fig. 4-10 turns a charger on when battery voltage is below 10.5 V. It also turns the
charger off when battery voltage exceeds 13.5 V. N ote that the 10.5-to-13.5-V area is the
m em ory or hysteresis range. If the battery voltage is 12.0 V, it can be either in the process
o f charging or discharging, depending on the last com m and.
100 Chapter 4
The tem perature control in a room is a fam iliar exam ple o f o n -o ff control. L et’s draw an
analogy to our com parator circuits. You adjust the tem perature pointer to 65°F. This co r
responds to Vctr. The m anufacturer builds in the hysteresis. Turn heat on if the tem pera
ture is below 63°F. Turn heat o ff if the tem perature is above 67°F. If the tem perature is in
the m em ory range (63° to 67°F), rem em ber the last com m and. T he m em ory range co rre
sponds to VH.
C ontrols that are to be operated by the general public all share com m on characteristics with
the com parators of Sections 4-4 and 4-5. The custom er can only adjust VclT. VH is present
or, in som e applications, the VH control is brought out for the customer. These types of con
trol circuits are fail safe. If tem perature is set to 50°F, the room sim ply gets colder. They do
not contain the possibility of catastrophic failure. T hat is, they w o n ’t mix up VUT and VLT.
T he control circuit o f the next section gives high-precision adjustm ents for the u p
per and low er setpoints for process control applications. It contains the possibility o f ru n
aw ay operation. C ontrols for VUT and VLT m ust be available only to a know ledgeable p er
son and never to the general public.
T he circuit to be presented will allow both upper setpoint voltage VUT and low er setpoint
voltage VLT to be adjusted independently and with precision. The principle o f operation
is straightforw ard. Set up a voltage with one fixed resistor and two adjustable resistors as
in Fig. 4-11.
W hen a sin g le-p o le do u b le-th ro w (S P D T ) sw itch is throw n to o n e p o sitio n , it
grounds the upper setpoint adjust pot. A djust R u r so that the upper setpoint voltage VUT
appears at the setpoint voltage output, Vset [see Fig. 4 - 1 1(a)]. Then throw the sw itch to its
rem aining position as in Fig. 4 - 1 1(b). A djust R LT so that VLT appears on the Vset line.
B efore we design and analyze the hardw are to m ake an electronically controlled
S PD T sw itch, let us define the required o u tp u t-in p u t characteristics.
Two outputs are required from our basic controller. T he first is shown in Fig. 4 - 12(a). T he
setpoint voltage output Vset is needed for two reasons. First, it will be applied to one in
put o f the in -o u t com parator (num ber I in Fig. 4-13). Second, it m ust be available for
system test or calibration to trained test persons (not the public).
102 Chapter 4
15 V
10V -
5V -
**E:
VLT VUT
(a) Controller setpoint output vs. Er (b) Controller input-output characteristic.
We only have to add tw o m ore parts to the basic voltage divider o f Fig. 4-11. O ne is a
1 0 -k fi resistor and the other is three-fourths o f an LM 339 open -co llecto r com parator.
R ecall from C h ap ter 2 that the L M 3 3 9 usually w orks sin g le su p p ly w ith a g ro u n d
at pin 12 on its negative rail. If d ifferential input v oltage E d is n eg ativ e for any one o f
its fo u r com p arato rs, the co rresp o n d in g o u tp u t sw itch is closed. T h is g ro u n d s the c o m
p a ra to r’s o u tp u t term inal (and, incidentally , a setp o in t pot). If E d is p ositive [( + ) In
above ( —) In] the ou tp u t sw itch is open (and, in cidentally, d isc o n n ec ts an ad ju stm en t
pot).
T he control circuit is finally presented in Fig. 4 - 13(a). The alignm ent procedure is
presented as a flow chart show ing the cause-and-effect sequence in Fig. 4 - 13(b). Study the
alignm ent procedure carefully. It explains how the circuit works.
You will probably draw the follow ing conclusions from your study.
In practice, VQ[ will usually drive a relay or optocoupler with triac output. T herefore,
V0] should be buffered or use the rem aining L M 339 co m p arato r to (a) invert the o u t
p u t-in p u t characteristic, or (b) avoid loading R PU below either setpoint voltages.
104 Chapter 4
4-7.5 Precautions
One last tim e, suppose that VUT is adjusted to a value below VLT. U pon pow er up, one o f
tw o events w ill occur: (1) the system will not start up, or (2) the system will turn on and
rem ain on until destruction occurs.
4-8.1 Introduction
T he 111 (military) or 311 (comm ercial) com parator is an IC that has been designed and op
timized for superior perform ance in voltage-level-detector applications. A com parator should
be fast. That is, its output should respond quickly to changes at its inputs. The 311 com
parator is much faster than the 741 op amp but not as fast as many of today’s high-speed
com parators. The subject of speed is discussed in Section 4-11, “Propagation D elay ”
T he 311 is an excellent choice for a low -cost com parator because o f its versatility.
Its output is designed not to bounce betw een ± V sat but can be changed quite easily. As a
m atter of fact, if you are interfacing to a system w ith a different supply voltage, you sim
ply connect the output to the new supply voltage via a pull-up resistor. We begin by ex
am ining the operation o f the output term inal.
A sim plified model of the 311 in Fig. 4 - 14(a) shows that its output behaves like a sw itch
connected betw een output pin 7 and pin 1. Pin 7 can be w ired to any voltage with
m agnitudes up to 40 V m ore positive than the — V supply term inal (pin 4). W hen ( + ) in
put pin 2 is m ore positive than ( —) input pin 3, the 31 l ’s equivalent output sw itch is open.
V0 is then determ ined by V*~+ and is + 5 V.
W hen the ( + ) input is less positive than (below ) the ( —) input, the 31 T s equivalent
output sw itch closes and extends the ground at pin I to output pin 7. H ere is one im por
tant difference betw een the 311 and the 339. T he 339 has no equivalent to pin 1. T here
is no separate sw itch return term inal on the 339 as there is on the 311.
/?/-and Rf add about 50 mV of hysteresis to m inim ize noise effects so that pin 2 is es
sentially at 0 V. W aveshapes for V0 and £, are shown in Fig. 4-14(b). VQis 0 V (switch closed)
for positive half-cycles of E t. V(, is + 5 V (switch open) for negative half-cycles of Er This is
a typical interface circuit; that is, voltages may vary between levels of + 1 5 V and —15 V, but
V0 is restrained between + 5 V and 0 V, which are typical digital signal levels, so the 311 can
be used for converting analog voltage levels to digital voltage levels for interfacing applications.
T he strobe term inal of the 311 is pin 6 (see also A ppendix 3). T his strobe feature allow s
the com parator output either to respond to input signals or to be independent o f input sig
nals. Fig. 4-15 uses the 311 com parator as a zero-crossing detector. A 10-kIl resistor is
108 Chapter 4
tal or a doctor’s office the electrocardiogram w aveform is obtained from a person through
sensors and passes through an isolation/instrum entation am plifier and then to the analog-
to-digital signal conditioning circuit. T hus the patient is alw ays isolated from any ac
pow er source. In the laboratory, function/arbitrary w aveform generators such as H ew lett-
P ack ard ’s H P33120A output an EK G w aveform so that you may design and test b io
m edical equipm ent w ithout having to m onitor a patient.
4-10.1 Introduction
The circuit of Fig. 4 - 17 is designed to m onitor an input voltage and indicate when this volt
age goes either above or below prescribed limits. For exam ple, IC logic power supplies for
T TL m ust be regulated to 5.0 V. If the supply voltage should exceed 5.5 V, the logic may
be dam aged, and if the supply voltage should drop below 4.5 V, the logic may exhibit m ar
ginal operation. Therefore, the lim its for T T L pow er supplies are 4.5 V and 5.5 V. The
pow er supply should be looking through a window w hose lim its are 4.5 V and 5.5 V, hence
the nam e window detector. This circuit is som etim es called a double-ended limit detector.
In Fig. 4-17 input voltage is connected to the ( —) input of com parator A and the
( + ) input of com parator B. U pper lim it VUT is applied to the ( + ) input o f A, w hile lower
l i mit VLT is ap p lied to the ( —) in p u t o f B. W hen E t lies betw een VLT and VUTf the
light/alarm is off, but w hen £, drops below V/T or goes above VUT, the light/alarm goes
on to signify that E, is not betw een the prescribed limits.
C ircuit operation is as follows. A ssum e that E = 5 V. Since E , is greater than VLT and
less than VUT> the o utput voltage of both com parators is at V++ because both output
sw itches are open. The lam p/alarm is off. N ext, assum e that £, = 6.0 V or E, > VUT. The
input at pin 3 o f A is m ore positive than at pin 2, so the A output is at the potential of pin
1 or ground. This ground lights the lamp, and V0 = 0 V. Now assum e that E t drops to
4.0 V or Ej < VLT. The ( + ) input o f B is less than its ( - ) input, so the B output goes to
0 V (the voltage at its pin 1). O nce again, this ground causes the lam p/alarm to light. Note
that this application shows that output pins of 311 can be connected together and the out
put is at V * + only when the output o f each com parator is at V* +.
4-11.1 Definition
S uppose that a signal £, is applied to the input o f a com parator as in Fig. 4-18. There will
be a m easurable tim e interval for the signal to propagate through all the transistors within
the com parator. A fter this tim e interval the output begins to change. T his tim e interval is
called response tim e, transit tim ey or propagation delay.
Com parators and Controls 111
will not sw itch. However, if is brought up quickly to 100 mV plus a sm all am ount o f
overdrive, the overdrive signal will propagate through the com parator. A fter a p ropaga
tion delay the output com es out of saturation and rises to a specified voltage. T his volt
age is typically 1.5 V.
As show n in Fig. 4 -1 8(b), a 5-m V o v erd riv e resu lts in a p ro p ag a tio n d elay o f
4.5 ns for an A D 9696 co m p arato r Typical response tim es for the 311, 522, and 710 co m
parators and the 301 general-purpose op am p are
In this section, we wiU use PSpice and sim ulate the perform ance o f two com parator cir
cuits— the zero-crossing detector with hysteresis and the w indow detector. In the labora
tory, you can test the perform ance o f each and com pare it to the sim ulation so that you can
draw conclusions about both. Your version o f PSpice m ay not have the 301 op am p or the
311 com parator listed, so we will use the 741 op am p and the LM 111 ICs in their place.
T he input signal to these circuits will be a triangle wave, and you will learn how to set the
attributes o f a pulse wave to create a triangle w ave as well as how to plot V0 versus Er
R efer to Fig. 4-3 and create the PSpice m odel o f the circuit. We will set the input volt
age o f the triangular w ave to a peak value o f 1 V and a frequency o f 500 Hz. We w ish to
obtain a plot o f VQ versus E h To begin, place the follow ing parts in the w ork area.
A rrange the parts as show n in Fig. 4-3. C hange the attributes o f the parts as given in Fig.
4-3. Now we are going to set the attributes o f a pulse wave to generate a trian g u lar wave.
Set up the triangular-w ave attributes by double-clicking the pulse sym bol. In the pop-up
box, we need to set values for DC (dc offset value), VI (m inim um input voltage), V2
(m axim um input voltage), TD (tim e delay), TR (rise tim e), TF (fall tim e), PW (pulse
w idth), and PER (period) as given:
C lose the attribute box. D ouble-click on the lead from the triangle w ave to the op am p
and label it Ei. D ouble-click on the lead from the output term inal o f the op am p and la
bel it Vo. See Figure 4-19.
+v
v* ~
15 V - 15 V
5 VO Vo
v, UA.
+V
Vo
Plot = > X Axis Settings = > User Defined = > —IV to IV = > Axis Variable = > V[Ei]
PJot = > Y Axis Settings = > User Defined = > —15V to 15V
N ow select
15v r
iov -
5 V -
0V -
-5 V -
-1 0 V -
- 1 5 V __________________i____________ l l = l
- J .0 V - 0 .5 V 0V 0.5 V 1.0 V
In this section, we w ish to m odel and sim ulate the operation o f the w indow detector cir
cuit show n in Fig. 4 - 17(a). T he input signal is a triangular w ave with a peak value o f
10 V and a frequency of 500 Hz. O btain a plot o f V0 and E t versus tim e as show n in Fig.
4 - 17(b). R efer to Fig. 4-17(a) and create the PSpice m odel o f the circuit. To begin, place
the follow ing parts in the w ork area.
+v -
^3
15 V
VO
15 V +
Vo
V++
1-- +
10 V
Vo
4.5 V
FIGURE 4-21 PSpice model of the window detector circuit of Fig. 4 -17(a).
A rran g e the parts as show n in Fig. 4-21. C h an g e the attrib u tes o f the p arts as given in
Fig. 4 -1 7 (a) w ith a load resisto r set at 10 k f l. N ow w e are going to set the attrib u tes
o f a pulse w ave to gen erate a positive tria n g u lar w ave. T h e trian g u lar-w av e attrib u tes
are set by d o u b le-click in g the pulse sym bol. In the p o p -u p box, the attrib u tes DC (dc
o ffset value), V I (m inim um input v oltag e), V2 (m ax im u m in p u t v o ltag e), TD (tim e
d e la y ), TR (rise tim e), TF (fall tim e), PW (p u lse w id th ), and PER (p erio d ) m u st
be set.
Selected Applications
of Op Amps
U pon com pleting this chapter on selected applications o f op am ps, you w ill be able to:
• A ppreciate how one or tw o op am ps plus a few com ponents can give an inexpensive so
lution to a num ber o f practical applications.
• M ake a universal high-resistance voltm eter.
• T est diodes, LED s, IRED s, and low -voltage zeners w ith a constant current.
• Build a circuit that interfaces a 4-to-20 mA transm itter to a m icrocom puter.
• M easure the pow er received by a solar cell, photodiode, or photoresistor.
• E xplain how to m easure solar energy.
• Shift the phase angle o f a fixed-frequency sine wave by a precise am ount and in d ep en
dent o f its am plitude.
118
Selected Applications of Op A m ps 119
W hy is the op am p such a popular device? This chapter attem pts to answ er that question
by presenting a w ide selection o f applications. They w ere selected to show that the op am p
can perform as a very nearly ideal device. M oreover, the diversity o f operations that the
op am p can perform is alm ost w ithout limit. In fact, applications that are norm ally very
difficult, such as m easuring short-circuit current, are rendered easy by the op amp. Together
with a few resistors and a pow er supply, the op am p can, for exam ple, m easure the output
from photodetectors, give audio tone control, equalize tones o f different am plitudes, con
trol high currents, and allow m atching o f sem iconductor device characteristics. We begin
w ith selecting an op am p circuit to make a high-resistance dc and ac voltm eter.
Figure 5-1 show s a sim ple but very effective high-input-resistance dc voltm eter. T he volt
age to be m easured, E h is applied to the ( + ) input term inal. Since the differential input
voltage is 0 V, E t is developed across The m eter current 1m is set by Ej and Rj ju st as
in the noninverting am p lifier
(5-1)
If R( is 1 k a then 1 mA o f m eter current w ill flow for £, = I V dc. T herefore, the mil-
liam m eter can be calibrated directly in volts. As show n, this circuit can m easure any dc
voltage from - 1 V to + I. V.
Example 5-1
Solution From Eq. (5-1), 1m = 0.5 V /l k f l = 0.5 mA. T he needle is deflected halfw ay
betw een 0 and + 1 mA.
O ne advantage o f Fig. 5-1 is that E t sees the very high input im pedance o f the ( + )
input. Since the ( + ) input draw s negligible current, it will not load down or change the
voltage being m easured. A nother advantage o f placing the m eter in the feedback loop is
that if the m eter resistance should vary, it will have no effect on m eter current. Even if
we added a resistor in series w ith the meter, w ithin the feedback loop, it w ould not affect
/„„ because l m is set only by E, and /?,. T he output voltage will change if m eter resistance
changes, but in this circuit we are not concerned w ith VQ. T his circuit is som etim es called
a voltage-to-current converter.
Since the input voltage in Fig. 5 - 1 m ust be less than the pow er supply voltages ( ± 15 V),
a convenient m axim um lim it to im pose on £, is ± 1 0 V. T he sim plest way to convert Fig.
5-1 from a ± 1 -V voltm eter to a ± 1 0 -V voltm eter is to change /?, to 10 kH . In other
w ords, pick Rj so that the full-scale input voltage E FS equals Rt tim es the full-scale m e
ter current IFS or
R, = 7^
*F S
(5-2)
Example 5-2
A m icroam m eter w ith 50 juA = 1FS is to be used in Fig. 5-1. C alculate R t for E FS = 5 V.
To m easure higher input voltages, use a voltage-divider circuit. The output o f the
divider is applied to the ( + ) input.
The voltage-to-current converter o f Fig. 5-2 can be used as a universal voltm eter. That is,
it can be used to m easure positive or negative dc voltage or the rms, peak, or peak-to-
peak (p-p) value o f a sine wave. To change from one type o f voltm eter to another, it is
necessary to change only a single resistor. T he voltage to be m easured, Eh is applied to
the op am p ’s ( + ) input. Therefore, the m eter circuit has a high input resistance.
W hen Ei is positive, current flows through the m eter m ovem ent and diodes D 3 and
D4. W hen £, is negative, current flows in the sam e direction through the m eter and diodes
D | and D2. Thus m eter current direction is the sam e w hether Ei is positive or negative.
A dc m eter m ovem ent m easures the average value o f current. S uppose that a basic
m eter m ovem ent is rated to give fu ll-scale d eflectio n w hen co n d u ctin g a cu rren t o f
50 ijlA. A voltm eter circuit containing the basic m eter m ovem ent is to indicate at full scale
w hen Ej is a sine wave w ith a peak voltage of 5 V. The m eter fa c e should be calibrated
linearly from 0 to + 5 V instead o f 0 to 50 {xh. The circuit and m eter m ovem ent w ould
then be called a pea k reading voltm eter (for sine waves only) w ith a full-scale deflection
for Eip = 5 V. The follow ing section shows how easy it is to design a universal voltm eter.
From S ections 5-1 and 5-2 we learned not ju st how to m ake a voltm eter but that current
in the feedback loop depends on the input voltage and T here are applications w here
we need to pass a constant current through a load and hold it constant despite any changes
in load resistance or load voltage. If the load does not have to be grounded, we sim ply
place the load in the feedback loop and control both input and load current by the p rin
ciple developed in Section 5-1.
S uppose that w e have to test the breakdow n voltage o f a num ber o f zener diodes at a cu r
rent o f precisely 5 mA. If w e connect the zener in the feedback loop as in Fig. 5-3(a), our
voltm eter circuit of Fig. 5-1 becom es a zener diode tester. T hat is, E, and /?, set the load
or zener current at a constant value. E t forces V0 to go negative until the zener breaks
dow n and clam ps the zener voltage at Vz. R t converts to a current, and as long as R x
and E, are constant, the load current will be constant regardless o f the value o f the zener
voltage. Z ener breakdow n voltage can be calculated from V0 and E t as Vz = V0 -
Example 5-4
In the circuit o f Fig. 5-3(a), VD — 10.3 V, = 5 V, and /?, = 1 kH . Find (a) the zener cu r
rent; (b) the zener voltage.
Solution (a) From Eq. (3-1), / = E JRj or / = 5 V /l kCt = 5 mA. (b) From Fig. 5-3(a),
rew rite the equation for V0.
S uppose that we needed to select diodes from a pro d u ctio n b atch and find pairs w ith
m atching voltage drops at a particular value o f diode current. P lace the diode in the
feedback loop as show n in Fig. 5-3(b). E l and R { w ill set the value o f I. T he ( —) input
draw s negligible current, so / passes through the diode. As long as E, and /?,- are c o n
stant, current through any diode I w ill be co n stan t at I = £;//?;. V0 w ill equal the dio d e
voltage for the sam e reasons that V0 was equal to VR in the inverting am p lifier (see
S ection 3-1).
Selected Applications of Op Am ps 125
T here is one disadvantage with the circuit o f Fig. 5-3(b): E, m ust be able to furnish
the current. B oth circuits in Fig. 5-3 can only furnish currents up to 10 mA because of
the op a m p ’s output current lim itation. H igher-load currents can be furnished from the
pow er supply term inal and a current boost transistor as show n in Fig. 5-4.
The circuit of Fig. 5-4 converts E { to a 20-m A load current based on the sam e principles
discussed in Sections 5-1 to 5-3. Since the 7 4 T s output term inal can only supply about
5 to 10 mA, we cannot use the circuits o f Figs. 5-1 to 5-3 for higher load currents, but if
we add a transistor as in Fig. 5-4, load current is furnished from the negative supply volt
age. The op am p ’s output term inal is required to furnish only base current, w hich is typ
ically 1/100 of the load current. T he factor 1/100 com es from assum ing that the tran sis
to r’s beta equals 100. Since the op am p can furnish an output current o f up to 5 mA into
the transistor’s base, this circuit can supply a m axim um load current o f 5 m A X 100 =
0.5 A.
A light-em itting diode such as the M L E D 50 is specified to have a typical brightness
o f 750 fL (foot lam berts) provided that the forw ard diode current is 20 mA. E-t and R t will
set the diode current IL equal to EJRi - 2 V /100 f l = 20 mA. N ow brightness o f LED s
can be m easured easily one after another for test or m atching purposes, because the cur
rent through each diode will be exactly 20 mA regardless o f the L E D ’s forw ard voltage.
It is w orthw hile to note that a load o f tw o L E D s can be connected in series with
the feedback loop and both w ould conduct 20 mA. T he load could also be connected in
Fig. 5-4 betw een points A A ' (w hich is in series with the tran sisto r’s collector) and still
conduct about 20 mA. This is because the collector and em itter currents o f a transistor
are essentially equal. A load in the feedback loop is called a flo a tin g load. If one side o f
the load is grounded, it is a grounded load. To supply a constant current to a grounded
load, another type o f circuit m ust be selected, as show n in Section 5-5.
128 Chapter 5
+V = +15 V
A
ential input voltage is 0 V, the zener voltage is developed across R s. Rs and Vz set the em it
ter current, IE, constant at Vz/R s. T he em itter and collector currents o f a bipolar ju n ctio n
transistor are essentially equal. Since the collector current is load current IL and I L ~ IE>
the load current 1L is set by Vz and Rs.
If the op am p can furnish a base current drive o f over 5 m A and if the beta o f the
transistor is greater than 100, then IL can exceed 5 mA X 100 = 500 mA. The voltage
across the load m ust not exceed the difference betw een the supply and the zener voltage;
otherw ise, the transistor and the op am p will go into saturation. (If oscillations occur, in
stall a 10 0 -fl resistor betw een term inals 6 and B.)
In the circuit o f Fig. 5-7(a), resistors R i and R 2 form an unloaded voltage divider. Since
E d o f the op am p is zero volts, the 2-V drop alw ays appears betw een the positive rail and
em itter o f the current boost transistor QB. O peration o f the circuit is sum m arized in Fig.
5-7(b).
If the 4 0 0 - d resistor is not shorted out, the current through em itter resistor R E (and
collector or loop current /) equals 2 V /500 (1 = 4 mA. If the 4 0 0 -H resistor is shorted out
by Q 2> the loop current I equals 2 V /100 H = 20 mA.
The selection of either 4 or 20 m A is determ ined by E-m. E m can be (I) a T T L or
(other logic fam ily) open-collector gate circuit output, (2) an output port from a m icro
controller, or (3) a discrete (Q x) bipolar junction transistor. (For a stand-alone circuit add
a 2.2-kH resistor in series with the base.)
+15V
(a)
(b)
FIGURE 5-7 Digitally controlled 4-to-20-mA current source
130 Chapter 5
W hen E m is high, Q { saturates and 1Ce 1 equals about 1.4 mA. T he co llecto r c u r
rent o f Q { is the base cu rrent o f Q 2> and Q2 saturates. W hen Q2 saturates, it effectively
shorts out the 4 0 0 -f! resistor and fixes Q q s em itter cu rren t and thus the loop cu rren t
to 20 mA.
W hen £ in is low, Q x is cut off, w hich in turn cuts off Q 2. Q2 then appears as an open
circuit to the 4 0 0 -fl resistor, and the loop current, /, is clam ped at 2 V /500 f i = 4 mA.
T he com pliance voltage of this circuit is 12 V. A llow 12 V for VRI plus 1 V to keep Q B
out o f saturation [15 — (2 + 1) = 12 V].
5-6.7 Introduction
Transducers such as m icrophone pickups and solar cells convert som e physical quantity
into electrical signals. For convenience, the transducers may be m odeled by a signal g en
erator as in Fig. 5-8(a). It is often desirable to m easure their m axim um output current un
der short-circuit conditions; that is, we should place a short circuit across the output ter
m inals and m easure current through the short circuit. This technique is particularly suited
to signal sources with very high internal resistance. For exam ple, in Fig. 5-8(a), the short-
circuit current Isc should be 2.5 V/50 k H = 50 fiA. However, if we place a m icroam m e
ter across the output term inals o f the generator, w e no longer have a short circuit but a
5 0 0 0 -fl resistance. The m eter indication is
50 k a + 5 k a = 45 mA
The op am p circuit o f Fig. 5-8(c) effectively places a short circuit around the current
source. The ( —) input is at virtual ground because the differential input voltage is alm ost
0 V. The current source “sees” ground potential at both o f its term inals, or the equivalent
o f a short circuit. A ll o f Isc flows toward the ( —) input and on through Rf. /^ c o n v e rts ISc
to an output voltage, revealing the basic nature of this circuit to be a current-to-voltcige
converter.
Selected Applications of Op Amps 133
5-7.2 Photodiode
W hen the sw itch is in position 2 in Fig. 5-9, E t is on one side o f the photodiode and vir
tual ground on the other. T he photodiode is reverse biased, as it m ust be for norm al op
eration. In darkness the photodiode con d u cts a sm all leak ag e cu rren t on the ord er o f
nanoam peres, but depending on the rad ian t energy striking the diode, it will co n d u ct
50 fjuA or more. T herefore, current I depends only on the energy striking the photodiode
and not on E h This current is converted to a voltage by Rf .
Example 5-10
W ith the sw itch in position 2 in Fig. 5-9 and Rf = 100 k£l, find VQ as the light changes pho
todiode current from (a) 1 /jlA to (b) 50 /jlA.
1L = ( 1 + m ) / 5C (5-7)
Selected Applications of Op Amps 135
short-circuit current l s c that ranges from 0 to 0.5 A as sunlight varies from com plete d ark
ness to m axim um brightness.
O ne problem facing users o f these devices is to convert the 0 to 0.5-A solar cell o ut
put current from 0 to 10 V so that its perform ance can be m onitored w ith a strip-chart
recorder. A nother problem is to m easure 1/2 A o f current w ith a low -current m eter m ove
m ent (0 to 0.1 m A ). To solve this problem , Is c m ust be divided so that it can be m easured
on site w ith an inexpensive basic m eter m ovem ent. T he final p roblem is that the value o f
Isc is too large to be used w ith the op am p circuits studied thus far in this chapter.
The circuit o f Fig. 5-11 solves several problem s. First, the solar cell sees the ( - ) input o f
the op am p as a virtual ground. T herefore, it can deliver its short-circuit current Is c . A
second problem is solved w hen Is c is converted by Rf to a voltage VQ. To obtain a 0- to
10-V output for a 0- to 0.5-A input, Rf should have a value o f
VQ (full scale) , 10 V
Rf =
ls c (m ax) 0.5 A
V0 should be buffered by a voltage follower. T he solar cell current o f 0.5 A is too large
to be handled by the op amp. This problem is solved by adding an npn current boost tran
sistor.
The solar cell current flow s through the em itter and collector o f the boost tran sis
tor to + V C urrent gain o f the transistor should exceed fi = 100 to ensure that the op am p
has to furnish no m ore than 0.5 A /100 = 5 mA, w hen Is c = 0.5 A.
T he output V0 has the sam e frequency and am plitude but lags E, by 90°. T h at is, VQ goes
through 0 V / 9 0 ° after £ , goes through 0 V. M athem atically, V0 can be expressed by
V0 = Ej / —9 0 °. A general expression for the output voltage o f the phase-shifter circuit
in Fig. 5 - 13(b) is given by
V, - Ei (5-9)
w here 9 is the phase angle and will be found from Eq. (5 -10a).
As show n in Fig. 5 -13(b) one op am p, three resistors, and one capacitor are all that is re
quired to m ake an excellent phase shifter. T he resistors R m ust be equal, and any conve
nient value from 10 to 220 k 17 may be used. Phase angle 6 depends only on R h C„ and
the frequency / of T he relationship is
6 = 2 arctan In fR iC i ( 5 - 10a)
w here 6 is in d e g r e e s ,/in hertz, R, Ln ohm s, and Ct in farads. E quation (5 -10a) is useful
to find the phase angle if / R h and C, are know n. If the desired phase angle is know n,
choose a value for C, and solve for R
tan (6/2)
R; = (5-10b)
2irfCi
D esign E x a m p le 5-13
Find Ri in Fig. 5-1 3(b) so that VQ w ill lag E t by 90°. The frequency o f £ , is 1 kH z.
D esign P ro c e d u re Since 6 = 90°, tan (90°/2) = tan (45°) = 1; from Eq. (5 -10b),
1
2 tt X 1000 X 0.01 x 10 --6— = 15.9 k fi
W ith Ri = 15.9 kCl, VQ will have the phase angle show n in Fig. 5- 13(a). T his w aveform
is a negative cosine wave.
= 2 arctan 6.28
= 2 X 8 1 ° = 162° and VD = E, / - 1 6 2 °
140 Chapter 5
source that depends on tem perature. If, however, w e need a voltage reading to indicate
tem perature, such as 10 m V /°C or 10 mV/°F, a current-to-voltage converter circuit is re
quired.
The circuit sym bol for an A D 590 is the sam e as a current source, as show n in Figs.
5-14(a) and (b). A lso, the A D 590 requires a supply voltage exceeding 4 V to bias its in
ternal tran sisto r circuitry. L e t’s use this device to build a C elsiu s or F ah ren h eit th e r
m om eter.
In the C elsius therm om eter o f Fig. 5 - 14(a), all o f the A D 5 9 0 ’s current is steered into the
virtual ground at pin 2 and flow s through the 1 0 -k fl feedback resistor, producing a volt
age drop equal to V0. Each m icroam pere o f current thus causes VQto go positive by 1 fjuA
X 10 k f l = 10 mV. A change of l°C causes I T to change by 1 /wA and consequently pro
duces a change in VQ o f 10 mV. T he tem perature-to-voltage converter thus has a conver
sion gain o f 10 m V /°C.
At 0°C , IT = 273 \xA. But we w ant V0 to equal zero volts. For this reason, an equal
and opposite current o f 273 jjlA through the 15-V supply and 5 4 .9 -k fl resistor is required.
This results in the net current through R f to be zero and thus V0 is zero volts. For every
increase o f 1 jnA/°C above 0°C, the net current through /fy increases by 1 f i A and V 0 in
creases by 10 mV.
c f
(a)
A eJ 0
---------------------------------------------- ►/
(b)
A vo 0 )
(C)
FIGURE 5-15 (a) An integrator circuit. The output voltage ramps negative
in (c) for a positive input step function in (b).
design o f signal generators and signal processing circuits. C hapter 6 describes signal g en
erating circuits, but the basics of an integrator and asignal processing application are de
scribed here. In Fig. 5 - 15(a), the current that charges the capacitor is set by e [n and R t and
is given by
*(0 = - ^ (5-11)
R em em ber that Eq. (5-1 1) assum es that the differentia] voltage o f the op am p, E&
is 0 V. The equation for voltage across a capacitor is
Vc = j ; j i d t (5-12)
142 Chapter 5
From C hapter 3, we learned that for an inverting circuit the output voltage is neg
ative o f the input voltage. Therefore, substituting Eq. (5-11) into Eq. (5-12) and know ing
that the output is negative o f the input yields
(5-13)
E quation (5-13) states that the ouput voltage is directly proportional to the negative
o f the integral o f the input voltage and indirectly proportional to the tim e constant R tCj.
If the input wave is a sine wave, the output is a negative cosine wave. T he period o f the
input w ave should be greater than the tim e constant /?,C/.
If e m is constant, then the cu rrent i(t) is co n stan t and C ch arg es at a co n stan t rate.
In Fig. 5 - 15(b), the input voltage is a po sitiv e step function. For this in p u t signal, V0
aim s to w ard - V sat as C c h a rg e s. S ee F ig. 5 -1 5 (c ). If a n e g a tiv e ste p fu n c tio n is
applied, C charges in the o p p o site directio n and the o u tp u t voltage, V0, aim s tow ard
+ y sa(.
T he conclusion is: If the input voltage is a step function, the output voltage is a
ram p function. Thus the ouput voltage is the integral o f the input voltage. In C hapter 6,
w e w ill alternately apply a positive and a negative voltage at the input o f an integrator to
design a circuit that generates a triangular w aveform . We will now use the integrator fol
low ed by an inverting am plifier to design a servoam plifier.
5-12.2 Servoamplifier
Introduction
A servoam plifier is a circuit w hose output is a delayed response to its input. An ap p lica
tion may be ground-follow ing radar signals by a cruise m issile or the positioning o f an
xy table in a m anufacturing process. In both applications, we may need a circuit that d e
lays the output response due to clutter or noise at the input. Such a circu it is a servoam
plifier as show n in Fig. 5-16. We proceed to answ er two questions about this circu it’s
operation.
1. E; = 2 V, forcing to 2 V.
2. VF forces V0 to 2V F = 4 V.
3. V0 forces VR to - 4 V.
4. V^p stabilizes at 3E, = 6 V.
Example 5-16
Solution
1. Ei = 4 V forces VF to 4 V, forcing to 8 V.
2. decreases toward - 8 V.
3. Vcap m ust charge to 12 V.
Delay Action
E xam ples 5-15 and 5-L6 show that Va m ust servo from 4 to 8 V w hen E t is stepped from
2 to 4 V. A delay w ill occur (as Va servos tow ard 8 V) because the cap acito r m ust charge
from 6 to 12 V. Any noise (clutter) as E,- changes from 2 to 4 V will be zeroed out. T he
tim e constant for the capacitor charge is
T = 3 R tC ( 5 - 15a)
A ssum e that we need 5 tim e constants for the capacitor to fully charge. T hus, equilibrium
will be achieved in
Example 5-17
How long does it take for V0 to reach equilibrium in the servoam plifier o f Fig. 5-16?
5-12.3 Differentiators
5.2 V
D = — — t t = 132.99 = 133
39.1 mV
F igure 15-1 show s the graph for an ideal 3-bit A /D converter. Since there are only 8 d is
crete outputs for this A D C, the analog input range from 0 to full scale m ust be quantized
into these 8 digital outputs. H ence, voltages w ithin the sam e range have the sam e digital
code. T he ideal transition from one digital code to the next is taken to be at the m id-range
value as shown. A /D converters like DACs, have offset, gain, and linearity errors but they
also have a quantization error.
Figure 15-1 shows that the digital output is 100 for all values o f \ FSR ± \ LSB. H ence,
there is an unavoidable uncertainty about the exact value o f Vln w hen the output is 100.
T his uncertainty is specified as quantization error. Its value is ± \ LSB. Increasing the
num ber o f bits results in a finer resolution and therefore there is a sm aller quantization
error.
converter's o u tp u t-in p u t plot can be view ed w ith an offset error. T his offset error m odi
fies Eq. (15-3) as show n in the next exam ple.
Example 15-2
C onsider that the 8-bit A /D converter o f P roblem 15-1 has an offset error o f ± { LSB .
W hat analog input voltage w ill cause a digital output code o f all Is?
S o lu tio n F rom the solution o f Problem 15-1, 1 LSB is 39.1 mV. T herefore, \ LSB is
19.5 mV. M odifying Eq. (15-3) by the offset error yields
R efer to Fig. 15-1. In the ideal in p u t-o u tp u t relationship the difference betw een the first
transition and the last transition is FSR — 2 LSB. If this expression is not true, there is a
gain error. See Fig. 15-3 to com pare the ideal relationship w ith an A /D converter that has
a gain error. M a n u fa ctu rers specify gain erro r as a p erc en ta g e o f fu ll-sc a le v o ltag e
(% FSR).
000
0 1 1 3 1 5 3 7 FS
8 4 8 2 8 4 8
A nalog input FIGURE 15-3 Gain error.
436 Chapter 15
varying dc voltages. T he faster successive approxim ation A D C 's conversion tim e is a few
m icroseconds and can digitize audio signals. F astest o f all are the m ore costly fla s h co n
verters, w hich can digitize video signals.
The control logic unit of Fig. 15-5(b) connects Vin to an integrator to begin phase T\. T he
integrator or ram p g enerator's output V0 ram ps up or dow n depending on the polarity o f
Vin and at a rate set by Vin, R mtJ and C int. If Vlu is negative, V0 ram ps up, as show n in Fig.
15-5(a). Tim e T x is set by the logic unit for 1000 clock pulses. Since the 12-kH z clock
has a period o f 83.3 ^ts per count, T x lasts 83.33 ms.
If Vin = - 100 mV, V0 w ill ram p from 0 V to 833 mV. The m axim um allow ed full-
scale value o f Vin is ± 2 0 0 mV. W hen Vin = —200 mV, VQwill rise to a m axim um 1666 mV.
Clearly, V0 is directly proportional to Vin. At the end o f 1000 counts, the logic unit d is
connects Vin and connects Vref to the integrator. T his action ends T x and begins 7 2.
D uring phase 7 \, the logic unit determ ined the polarity o f Vin and charged a reference ca
pacitor, Cref (not show n), to a reference voltage Vref = 100 mV. A t the beginning o f phase
T2>the logic unit connects C ref to the integrator so that Vref has a polarity opposite to Vin.
C onsequently, Vref w ill ram p the integrator back tow ard zero. Since Vref is constant, the
integrator’s output VD will ram p dow n at a constant rate, as show n in Fig. 15-5a.
W hen VQ reaches zero, a com parator “tells” the logic unit to term inate phase T2 and
begin the next auto-zero phase. T z is thus proportional to V0 and consequently, Vin. The
exact relationship is
( 15-6a)
(15-6b)
Vo
Auto-zero
438 Chapter 15
E x a m p le 15-4
For the A D C o f Fig. 15-5, calculate T2 if (a) Vin = ± 100 mV; (b) Vin = ± 2 0 0 mV.
T2 = \ (100 m V) = 83.33 ms
(b)
Ti = \ | (200 m V ) = 166.6 ms
T he actual conversion o f analog voltage V[n into a digital count occurs during T2 as fo l
lows. T he control unit connects the clock to an internal binary-coded-decim al counter at
the beginning o f phase T2. T he clock is disconnected from the counter at the end o f T2.
T hus the co u n ter’s content becom es the digital output. This digital output is set by T2 and
the clock frequency:
=s)<r>>fe)
Since clock frequency is 12 kH z for the 7106/7107 A D C, 7, = 83.33 m s, and Vref
100 mV, the o u tp u t-in p u t equation is
counts \ / 83.33 ms
digital output = (12,000 Vin
second \ 100 mV
or
, - counts \ ..
digital output = 1 0 -----r— 1 Vin (!5-7c)
mV )
Example 15-5
Vin equals + 100 m V in the A D C o f Fig. 15-5. Find the digital output.
E xam ple 15-5 shows the need for som e hum an engineering. T he display reads 1000,
but it m eans that Vin equals 100 mV. You m ust w ire in a decim al point to display 100.0
and paste an “m V ” sign beside the display.
15-2.6 Auto-Zero
The block diagram of Fig. 15-5(b) contains a section labeled “A uto-zero.” D uring the
third and final phase of conversion, TZi the logic unit activates several analog sw itches and
connects an auto-zero capacitor CAZ (not shown).
The auto-zero capacitor is connected across the integrating capacitor, Cint, and any
input offset voltages of both integrating and com parator op am ps. CAZ charges to a volt
age approxim ately equal to the average error voltage due to Cim and the offset voltages.
D uring the follow ing phases, T x and T2, the error voltage stored on CAZ is connected to
cancel any error voltage on Cref. T hus the A D C is autom atically zeroed for every co n
version.
15-2.7 Summary
R efer to the tim ing diagram in Fig. 15-5(a). The logic unit allocates 4000 counts for one
conversion. A t 83.33 fxs per count, the conversion takes 333 ms. The control unit always
allocates 1000 counts or 83.3 ms to phase T x.
The num ber of counts required for T2 depends on Vjn. Zero counts are used for V[n =
0 V and a m axim um o f 2000 counts, or 166.7 ms are used w hen Vin is at its m axim um
lim it of ± 2 0 0 mV.
T2 and Tz alw ays share a total of 3000 counts for a total o f 250 ms. For Vin 0 V,
T2 = 0 counts and Tz = 3000 counts. For Vin = ± 2 0 0 mV, T2 = 2000 counts and Tz =
1000 counts.
Som e m anufacturers of A D C s m arket a com plete 3y-digit digital voltm eter kit. T he
kit contains a 40-pin dual-slope integrating A/D converter, all necessary parts, printed cir
cuit board, and instructions. T he instructions make it easy to construct and easy to use,
and form an excellent tutorial on integrating ADCs.
440 Chapter 15
R efer to Fig. 15-6. An input start conversion com m and initiates one analog-to-digital co n
version cycle. The successive approxim ation register (SA R) connects a sequence o f d ig
ital num bers, one num ber for each bit to the inputs o f a DAC. T his process was explained
in C hapter 14.
T he DAC converts each digital num ber into an analog output V0. A nalog input volt
age, Vin, is com pared to VG by a com parator. T he co m parator tells the SA R w hether Vin
is greater or less than DAC output VQi once for each bit. For a 3-bit output, three co m
parisons w ould be made.
C om parisons are m ade beginning w ith the M SB and ending w ith the LSB , as will
be explained. A t the end o f the LSB com parison, the SA R sends an end-of-conversion
signal. T he digital equivalent o f Vin is now present at the S A R ’s digital output.
Vm analog in ----
Successive
approximation Serial output
register (SAR)
Suppose that you had 1-, 2-, and 4-lb w eights (SA R) plus a balance scale (com parator
and DAC). T hink o f the 1-lb w eight as 1 LSB and the m ost significant 4-lb w eight as 4
LSB. R efer to Figs. 15-6 and 15-7. Vin corresponds to an unknow n weight.
L et us convert Vin = 6.5 V to a digital o u tp u t (unknow n w eig h t = 6.5 lb). You
w ould place the unknow n w eight on one platform o f the balance, the 4-lb w eight on the
other, and com pare if the unknow n w eight (Vin) exceeded the 4-lb w eight. T he S A R uses
one clock pulse to apply the M SB 100 to the DAC in Fig. 15-7. Its output, VQ — 4 V, is
com pared w ith V-m. T he M SB (D 2) is set to 1 if V[n > VQ. T his is analogous to your leav
ing the 4-lb w eight on the scale.
The SAR then applies 110 (add a 2-lb w eight) to the DAC, Dj is set to 1 since Vin =
6.5 V is greater than V0 = 6 V. Finally, the SA R applies 111 to the DAC (add 1 lb). Since
Vin = 6.5 V is less than 7 V, D 0 is set to zero (1-lb w eight rem oved).
F igure 15-7 show s that one clock pulse is required fo r the SA R to co m pare each bit.
H ow ever, an additional clock pulse is usually required to reset the SA R p rio r to p e r
form ing a conversion. T he tim e for one analog-to-digital conversion m ust depend on both
the clo ck ’s period T and num ber o f bits n. The relationship is
Tc = T(n + 1) (15-8)
E x a m p le 15-6
A n 8-bit successive approxim ation A D C is driven by a 1-M Hz clock. Find its conversion
tim e.
S o lu tio n T he tim e for one clock pulse is 1 /xs. From Eq. (15-8),
T c — 1 f i s(8 + 1) = 9 /ms
Digital
out
Tristate
memory buffer
— fX Digital out
DAC
register — i / to data bus
K
T he m icroprocessor uses the address bus and decoders to select one A D C out o f all
the others by bringing its chip select term inal low. A low on the chip select term inal in
Fig. 15-8 tells the A D C that a com m and is com ing to its read /w rite term inal. If read /w rite
is brought low by the m icroprocessor, the A D C converts V-in into a digital code and loads
or w rites it into its own M BR. W hen read /w rite is high a nd chip select is low, the A D C ’s
m em ory buffer register is connected (transparent) to the data bus.
It is im portant to look at this operation from the m icroprocessor’s viewpoint. A read
com m and m eans that the m icroprocessor is going to read data stored in the A D C ’s m em
ory buffer register. T he A D C ’s digital tristate outputs m ust go from high-Z (high im ped
ance) to transparent and connect the digital w ord to the data bus. A write com m and is a c
tually a start conversion com m and to the ADC. T he m icroprocessor thus tells the ADC:
(1) perform a conversion; (2) store (and write) it in your m em ory; and (3) d o n ’t tell me
the result until I w ant to read it.
Finally, the m icroprocessor-com patible A D C m ust tell the m icroprocessor via its
status line w hen a conversion is in progress; the status line goes high. If a conversion is
com pleted, the status line goes low to signal the m icroprocessor that data is valid and
ready for reading. We select the A nalog D evices A D 670 to learn how all the foregoing
features are available in a single 20-pin integrated circuit.
Four analog input term inals are pins 16, 17, 18, and 19 in Fig. 15-9. They are inputs to
an instrum entation am plifier configured to handle unipolar or bipolar analog input volt
ages. They are also pin-program m able to m ake it easy for the user to select resolution.
F ig u re l5 -9 (a ) show s operatio n for an analog input o f 0 to 2.55 V, reso lu tio n =
10 m V /LSB. F igure 15-9(b) shows operation for 0 to 255 mV or 1 m V /LSB.
P ins 1 through 8 are tristate, buffered, latching digital outputs for the data bus digits, D 0
through Z)7, respectively. W hen a m icroprocessor tells the A D 670 to perform a conver
sion (w rite), the result is latched into its m em ory buffer register. Tristate output sw itches
are held in the high-im pedance (high-Z) state until the m icroprocessor sends a read co m
m and. T hus the A D C ’s m em ory register is norm ally disconnected from the data bus.
Pin 11 is called BPO /U PO and allow s the m icroprocessor to tell the A D 670 w hether to
accept a bipolar analog input voltage range or a unipolar input range. A low on pin 11 se
lects unipolar operation. A range of 0 to 2.55 V or 0 to 255 mV is set by the user as in
Figs. 15-9(a) and (b). A high sent to pin 11 selects bipolar operation. T he Vin range is
then ± 1 .2 8 V [Fig. 15-9(a)] or ± 1 2 8 mV [Fig. 15-9(b)].
In Fig. 15-9, pin 12 is labeled “2 ’s/B IN .” It allows the m icroprocessor to tell the A D 670
to present an output fo rm a t in either 2 ’s-com plem ent code or binary code. A binary out
put code form at w ill be straight binary if Vin is unipolar (pin 11 = low) or offset binary
if Vin is bipolar (pin 11 = high). The four possible options are show n in Fig. 15-10(a).
The digital output responses to analog input Vin are show n in Figs. 15-10(b) and
(c). Vin is the differential input voltage and is defined by
v in = ( + v in) - ( - v in)
w here + Vin and - V in are m easured w ith respect to ground.
As show n in Fig. 15-9, pins 13, 14, and 15 are used by a m icroprocessor to control the
A D 670. Term inal 14 is called chip select (CS) and term inal 15 is called chip enable (CE).
Pin 13 is called rea d /w rite (R/W ).
If CS, CE, and R/W are all brought low, the A D C converts continuously. It perform s
one conversion every 10 jjls or less. T he result o f each conversion is latched into the o ut
put buffer register. H ow ever, the digital output code is not co nnected to the data bus
446 Chapter 15
Pin 11 Pin 12
Input range Output format
BPO /U PO 2 ’s/BIN
(a)
Differential Unipolar/straight binary, Differential Bipolar/offset binary, Bipolar/2’s com plem ent,
pin 1 1 = 0 , 12 = 0 ^in pin 11 = 1, 12 = 0 pin 11 = 1 ,1 2 = 1
(b) (c)
FIGURE 15-10 Input ranges are unipolar or bipolar, and output formats are determined
by pins 11 and 12 in (a). Output codes are given for unipolar inputs in (b) and for bipo
lar inputs in (c). (a) Input range and output format are controlled by pins 12 and 11, re
spectively; (b) digital output codes for unipolar Vin inputs wired as in Fig. I5-9a; (c) dig
ital output codes for bipolar Vin inputs wired as in Fig. 15-9b.
because the outputs are high im pedance. This condition is called a write an d convert co m
m and; that is, the m icroprocessor tells the A D 670 to w rite converted data into its own
buffer register. If CS or R/W or CE is high, the A D 670 is unselected (high im pedance)
and retains the last conversion in its register.
T he status term inal, pin 9, stays high during a conversion. W hen a conversion is
co m pleted, pin 9 outputs a low to ' ‘te ll” the m icro p ro cesso r th at d ata is valid in the
A D 6 7 0 ’s buffer register. To read data out o f the A D 670, the m icroprocessor brings R/W
high w hile status and CS and C E are low. T his is a read co m m and fro m the m icro
processor.
T he A D 670’s buffer becom es transparent and connects the eight digital outputs (D 7
through D 0) to the data bus. D ata will rem ain on the bus until the A D 670 is disconnected
by bringing CS high, C E high, or R /W low.
Summary
1. A lou^on C E and CS selects the A D 670. W hat happens next depends on R/W .
2. If R/W is low (for at least 0.3 jus), a conversion is perform ed and the result is written
into the buffer register. Outputs are high impedance. The conversion requires 10 jjls.
Analog-to-Digital Converters 447
3. If R /W is high, the last conversion is stored in the buffer and the outputs are trans
parent. N o further conversions are perform ed. T he contents o f the register can now
be read by the m icroprocessor via the data bus.
4 . Status tells the m icroprocessor w hat is going on w ithin the A D 670. Status = high
m eans that conversion is being perform ed. Status = low tells the m icroprocessor that
data are valid. The m icroprocessor is free to read the selected A D 6 7 0 ’s data by plac
ing a high to R/W .
F igure 15-11 shows how to w ire an A D 670 to perform continuous conversions without a
m icroprocessor. This circuit can be used as a laboratory exercise to gain experience op
erating A DCs. Each data output, D 0 through D 7, is connected to an inverter, resistor, and
LED. These com ponents sim ulate a data bus. An LED lights to signify that a logic 1 is
present on its associated data bus w ire.__
Pins 14 and 15 are w ired so_that C S and C E are low. This causes continuous^con
version. The 555 tim er drives R/W low for 5 /xs to sim ulate a w rite com m and. R /W thus
returns high before a conversion is com pleted in the 10-/xs conversion tim e. At the end
o f 10 jJLs, the high on R /W sim ulates a read com m and and data are displayed on the LEDs.
If R r = 1.5 M t h e A D 670 m akes one conversion and one readout 1000 tim es per sec
ond. R educe R r to 120 k f l for convert/reads o f 10,000 tim es per second.
Fastest o f all A/D converters is the fla s h converter, shown in Fig. 15-12(a). A reference
voltage and resistor divider netw ork establishes a resolution o f 1 V/LSB. A nalog input
voltage V[n is applied to the + inputs o f all com parators. T heir outputs drive an 8-line-to-
3-line priority encoder. T he encoder logic outputs a binary code that represents the ana
log input.
For exam ple, suppose that Vin = 5.0 V. The outputs of com parators 1 through 5
w ould go high and 6 through 8 w ould go low. As shown in Fig. 15-12(b), the digital ou t
put w ould be 101.
The conversion tim e o f the flash converter is lim ited only by the response tim es o f com
parators and logic gates. They can digitize video or radar signals. T he flash converter’s
high speed becom es more expensive as resolution is increased. Figure 15-12 shows that
the flash converter requires seven com parators (or 2 3 — 1) to perform a 3-bit conversion.
The num ber o f com parators required for n-blt resolution is
R ^in
io k n 0 -4 4 0 mV
10 kQ II820 a 0 -2 .6 0 V
Conversions +5 V
Rr
per second
+5 V +5 V
{
1.5 M Q. 1,000
20
120 k a 10(000
+High
+Low
Do
-H igh D,
-L ow D2
AD670
D*
BPO/UPO
2’s/BIN
R/W
6.8 kQ
D4
Ds
CE
CT - CS D7
0.001 fiF
10
Simulates
data bus
All 270 Q
or 330 Q
1 of 8 LEDs
FIGURE 15-11 The operation of the AD670 can be studied without the need for a mi
croprocessor. Pins 14 and 15 can be grounded to simulate a microprocessor selection via
on a H r l r d c c V in e o im n h tp c m n tin n m ie P A m m a n rlc fro m 3 m irrr * -
450 Chapter 15
F or exam ple, an 8-bit flash converter requires (28 — 1) or 255 com parators. E ncoder logic
w ould be m ore com plex, requiring a 256-line-to-8-line priority encoder.
D uring conversion tim e, T c , the analog in p u t voltage m ust not change by m ore than
± 7 LSB (total 1 LSB), or the conversion w ill be incorrect. T his type o f inaccuracy is
called aperture error. The rate of change o f Vin w ith respect to tim e is called slew rate.
If V-m is a sine wave, its slew rate is m axim um at its zero crossings. T he sine w ave’s slew
rate is determ ined by both its peak voltage and frequency.
For an A /D converter, the m axim um frequency for a sine w ave Vin to be digitized
w ithin an accuracy of LSB is
1
/m ax (15-11)
2 tt (T c )2n
Example 15-7
T he A D 670 is an 8-bit A D C w ith a conversion tim e o f 10 jjls. Find the m axim um frequency
o f an input sine wave that can be digitized w ithout aperture error.
1 1
frrn = 62 Hz
2ir (2 )10 fis 2rr (256)10 X 10“ 6 s
E xam ple 15-7 shows that the frequency response o f even a fast A D C is surprisingly
low. For a 10-bit integrating A D C w ith a conversion tim e o f j s, the highest sine frequency
is about 0.5 m Hz, or 1 cycle per 2000 s.
T he sam ple-and-hold (S/H ) or follow -and-hold am plifier o f Fig. 15-13 is m ade from two
op am ps, a hold capacitor (CH), and a high-speed analog sw itch. This am plifier is co n
nected betw een an analog input signal and the input to an ADC.
Analog-to-Digital Converters 451
VinO-
-1 5 V
Sample/hold
control
FIGURE 15-13 Sample-and-hold amplifier.
W hen the S/H am plifier is in the sam ple m ode, the sw itch is closed and hold ca
pacitor (C H) voltage fo llo w s Vin. A h old com m and opens the sw itch and CH retains a
charge equal to Vin at the m om ent of sw itching. The S/H am plifier thus acts to hold Vin
(stored on CH) constant, w hile the A D C perform s a conversion.
C onversion tim e o f the A D C no longer lim its frequency response. Instead, the lim it
is the aperture tim e of the S/H am plifier, w hich can be m ade m uch less than the conver
sion tim e. A perture tim e is the tim e elapsed betw een a hold com m and and a sw itch o pen
ing. If the hold com m and is advanced by a tim e equal to the aperture tim e, CH will hold
the desired sam ple o f Vin. T hen the only rem aining error is aperture tim e uncertainty, the
sw itch jitte r variation for each hold com m and.
C om m ercial S/H am plifiers have aperture tim e uncertainties low er than 50 ns. An
exam ple show s the im provem ent in frequency response due to an added S/H am plifier.
Example 15-8
1
/m ax = 12.4 kH z
2 tt (2 8)50 X 10“ 9 s
PROBLEMS
15-1. A 10-bit A/D converter is capable of accepting an input voltage 0 to 5.12 V. What is the
digital output code if the input voltage is 2.4 V?
452 Chapter 15
15-2. If the 8-bit A/D converter of Example 15-2 has an offset error of —\ LSB, what analog
input voltage will cause the digital output to be all Is?
15-3. Note that the A/D converter of Example 15-1 has an offset error of LSB and a gain
error of —0.4% of FSR. What is the analog input voltage needed to cause the digital out
put to be all Is?
15-4. Name three types of ADCs and indicate their relative conversion speeds (slow or fast).
15-5. Vjn = 50 mV in the integrating ADC circuit of Fig. 15-5.
(a) What is the duration for integrating phase T{ and the value of VD1
(b) What is the name of phase T2, the value of Vref, and the duration of T21
(c) Find the circuit output.
15-6. Name the three components of a successive approximation 8-bit ADC.
15-7. A microprocessor issues a write command to an ADC. Does the ADC send data to the
microprocessor or perform a conversion?
15-8. An input voltage with a range of 0 to 2.55 V is applied to pin 16 of an AD670 and pin 18
is grounded. Which other input pins should be jumpered or grounded to select this range?
15-9. How do you pin-program the AD670 for straight binary output?
15-10. How does a microprocessor “tell” an AD670 to (a) perform a conversion; (b) place the re
sult on the data bus? (c) How does the microprocessor know when the AD670 has finished
a conversion and its data are valid?
15-11. (a) What is the conversion time for an AD670?
(b) How many conversions can it perform per second?
(c) What is the maximum sine wave frequency that it can convert without adding a sample-
and-hold amplifier?
15-12. If the sample-and-hold amplifier of an 8-bit ADC has an aperture uncertainty time of 10 ns,
what maximum sine wave frequency can it convert within ±{ LSB?
15-13. How many comparators are required to make an 8-bit flash converter?
CHAPTER 16
Power Supplies
U pon com pletion o f this chapter on pow er supplies, you will be able to:
• Draw the schem atic for a full-w ave bridge (FW B) rectifier unregulated pow er supply.
• Identify the com ponents o f an FW B and tell w hat each com ponent does in the circuit.
• D esign an FW B rectifier; choose the specifications for the transform er, diodes, and ca
pacitor; purchase these com ponents from standard stock; build the rectifier; test it; and
docum ent its perform ance.
• M easure the percent regulation and percent ripple, draw the load voltage w aveshapes at
no load or full load, and plot the regulation curve for an FW B unregulated pow er supply.
• D esign or analyze a bipolar or tw o-value unregulated pow er supply.
• Explain the need for voltage regulators.
° C on n ect an IC voltage regulator to an unreg u lated FW B rectifier circu it to m ake a
voltage-regulated pow er supply.
453
454 Chapter 16
• D esign, build, and test a ± 1 5 -V regulated pow er supply for analog ICs.
• Build a regulated 5-V supply for T T L logic.
• C onnect an LM 317 to an unregulated supply to obtain a laboratory-type voltage regula
tor that can be adjusted precisely to a required voltage.
M ost electronic devices require dc voltages to operate. B atteries are useful in low -pow er
or portable devices, but operating tim e is lim ited unless the batteries are recharged or re
placed. T he m ost readily available source o f pow er is the 60-H z 1 10-V ac wall outlet. T he
circuit that converts this ac voltage to a dc voltage is called a dc p o w e r supply.
T he m ost econom ical dc pow er supply is som e type o f rectifier circuit. U nfortunately,
som e ac ripple voltage rides on the dc voltage, so the rectifier circuit does not deliver pure
dc. An equally undesirable characteristic is a reduction in dc voltage as m ore load current
is draw n from the supply. Since dc voltage is not regulated (that is, constant w ith ch an g
ing load current), this type o f pow er supply is classified as unregulated. U n reg u lated
pow er supplies are introduced in Sections 16-1 and 16-2. It is necessary to know their
lim itations before such lim itations can be m inim ized or overcom e by adding regulation.
It is also necessary to build an unregulated supply before you connect a voltage regulator
to it.
W ithout a good regulated voltage supply, none o f the circuits in this text (or any
other text for that m atter) will work. T herefore, this chapter shows the sim plest w ay to
analyze or design pow er supplies for linear or digital ICs.
It is possible to m ake a good voltage regulator w ith an op am p plus a zener diode,
resistors, and a few transistors. However, it is w iser to use a m odern integrated circuit
voltage regulator. The types of superb regulators are so vast there is no problem in find
ing one that will suit your needs.
We will present an op am p regulator to illustrate the w orkings o f a few o f the fea
tures w ithin an IC regulator. Then we will proceed to a representative sam pling o f som e
o f the w idely used IC voltage regulators. B ut we begin w ith the unregulated supply.
A transform er is required for reducing the nom inally 115-V ac wall outlet voltage to the
low er ac value required by transistors, ICs, and other electronic devices. T ransform er volt
ages are given in term s o f rm s values. In Fig. 16-1, the transform er is rated as 115 to
24 V center tap. W ith the 115-V rm s connected to the prim ary, 24-V rm s is developed b e
tw een secondary term inals 1 and 2. A third lead, brought out from the center o f the sec
ondary, is called a center tap, CT. Betw een term inals C T and 1 or C T and 2, the rm s volt
age is 12 V.
Power Supplies 457
nated positive or negative. It is &flo a tin g supply. If you w ant a “ positive” supply, you
m ust "earth ground” the negative term inal.
The third w ire (green) o f the line cord extends earth ground from the “U ”-shaped
term inal of the wall outlet, usually to the metal chassis. This connection is to protect the
user. Sim ply extend the green w ire term inal to the negative term inal and call this term i
nal p o w er supply com m on. All voltage m easurem ents are w ith respect to pow er supply
com m on, and it is designated in a schem atic by a ground sym bol. To m ake a negative sup
ply, sim ply earth ground the positive term inal of the bridge.
T he pulsating dc voltage in Fig. 16-2(a) is not pure dc, so a filter capacitor is placed across
the dc output term inals of the bridge rectifier [see Fig. 16-2(b)]. This capacitor sm ooths
out the dc pulsations and gives an alm ost pure dc output load voltage, VL, w hich is the
unregulated voltage that supplies pow er to the load. The filter capacitor is typically a large
electrolytic capacitor, 500 p F or more.
76-7.5 Load
In Fig. 16-2(b), nothing other than the filter capacitor is connected across the dc output ter
minals. The unregulated pow er supply is said to have no load. This means that the no-load
current, or 0-load current, 1L> is drawn from the output term inals. Usually, the m axim um ex
pected load current, or full-load current, to be furnished by the supply is known. The load
is m odeled by resistor R L as shown in Fig. 16-3(a). As stated in Section 16-0, the load volt
age changes as the load current changes in an unregulated pow er supply. The m anner in
which this occurs is examined next. But the key idea to pow er supply analysis now becom es
clear. The peak value of secondary ac voltage Em determ ines the dc no-load voltage o f VL.
A dc voltm eter connected across the output term inals in Fig. 16-2(b) m easures the dc no
load voltage of VL, or
F rom E xam ple 16-1, Vdc no load is 34 V. An oscilloscope w ould also show the sam e value
w ith no ac ripple voltage, as in Fig. 16-3(b). N ow suppose that a load RL was connected
to draw a full-load dc current of lL = 1 A, as in Fig. 16-3(a). An oscilloscope now shows
that the load voltage VL has a low er average, or dc value Vdc. M oreover, the load voltage
has an ac ripple com ponent, AV0, superim posed on the dc value. The average value m ea
sured by a dc voltm eter is 24 V and is called Vdc full load. T he peak-to-peak ripple volt
age is called AV0 and m easures 5 V in Fig. 16-3(b).
458 Chapter 16
Dc output
terminal
To bridge Vl
rectifier ^ Full-load
(Fig. 16-2) 1000 n F ' voltage
VL (V)
A
40 ' VL at no load = Vdc no load
30
B C
■/ (ms)
0 8.3 16.6
(b) Load voltage changes from 34 V at no load to 24 V plus ripple at full load.
FIG U RE 16-3 Variation of dc load voltage and ac ripple voltage from no-load
current to full-load current.
T here are two conclusions to be draw n from Fig. 16-3(b). First, the dc load voltage
goes dow n as dc load current goes up\ how m uch the load voltage drops can be estim ated
by a technique explained in Section 16-2.2. Second, the ac ripple voltage increases from
0 V at no-load current to a large value at full-load current. As a m atter o f fact, the ac rip
ple voltage increases directly w ith an increase in load current. The am ount o f ripple volt
age can also be estim ated, by a technique explained in Section 16-3.
In the unregulated pow er supply circuit Fig. 16-4(a), the load R L is varied so that we can
record corresponding values of dc load current and dc load voltage. T he dc m eters re
spond only to the average (dc) load current or voltage. If corresponding values o f current
and voltage are plotted, the result is the dc voltage regulation curve o f Fig. 16-4(b). For
exam ple, point O represents the no-load condition, IL = 0 and Vdc no load = E m = 34 V.
P oint A represents the full-load condition, IL = 1 A and Vdc full load = 24 V.
Power Supplies 461
Example 16-3
Find percent regulation for the dc pow er supply data in Figs. 16-4 and 16-5.
Solution From the data, Vdc NL = 34 V and Vdc FL = 24 V. From Eq. (16-4),
P ercent regulation tells you by what percen t the fu ll-lo a d voltage will rise w hen you
rem ove the load.
Figure 16-6(b) show s how to m easure both ac and dc perform ance o f a pow er supply. Dc
m easurem ents (average values) are m ade w ith dc m eters. T heir m easured dc values, IL
and Vdc, arc sum m arized and plotted as the (dc) voltage regulation curve o f Fig. l6-4(b).
T he peak-to-peak ac ripple voltage &V0 is centered on Vdc. AV0 can be estim ated
from
AV - II
(l6 -5 a )
200C
w here k V 0 is in volts, IL in am peres, and C is the size o f the filter capacitor in farads. If
load voltage VL is m easured with an ordinary ac voltm eter, it will indicate the rms value
o f the ripple voltage Vrms. A coupling capacitor w ithin the m eter elim inates the dc co m
ponent. Vrms is related to A V 0 by the approxim ation
We need one other characteristic o f the pow er supply that will be used later in the
chapter. It tells us how to design a pow er supply for a voltage regulator. It is called m in
im um instantaneous load voltage and it occurs at full load. As seen in Fig. l6 -6 (b ),
466 Chapter 16
Design Summary We end up w ith an FW B rectifier that has the follow ing parts:
1. T ransform er: 115 V/18 V at 2.0 A
2. Four diodes: each 1 A at PIV = 25 V (or m ore)
3. T hree capacitors: 500 /xF connected in parallel, W V D C = 25 V (or m ore)
We do not have a satisfactory design, but that is often the nature o f practical solu
tions for unregulated pow er supplies. H ow ever, let us use this design to analyze and p re
dict perform ance of an FW B rectifier.
Given the pow er supply design schem atic of Fig. 16-7(a), (a) predict its dc perform ance by
plo ttin g a dc reg u la tio n curve and ca lc u latin g p erc en t reg u latio n . A ssu m e: R 0 — 7 f l,
1l f l = 1-0 A; (b) plot the no-load and full-load instantaneous voltage VL that you w ould
expect to see on an oscilloscope. A lso calculate percent ripple.
Solution (a) Since E ^ = 1 8 Vm s, calculate Em and Vdc NL from Eqs. (16-1) and (16-2)
1A
AV0 =* ^ ------------- = 5 V
200C 200(1000 X 10“ 6 F)
If the center tap o f the pow er supply o f Fig. 16-8 is grounded, we have a bip o la r p o
w er supply. It is show n schem atically in Fig. 16-8(b). If term inal 2 is grounded as in
Fig. I6-8(c), we have a tw o-value positive supply. Finally, by grounding term inal 1 in
Fig. 16-8(d), w e get a tw o-value negative pow er supply. This indicates the versatility of
the center-tapped transform er.
Previous sections have show n that the unregulated pow er supply has tw o und esirab le
characteristics: the dc voltage decreases and the ac ripple voltage increases as load cu r
rent increases. B oth disadvantages can be m inim ized by adding a voltage-regulator sec
tion to the unregulated supply as in Fig. 16-9. The resulting pow er supply is classified as
a voltage-regulated supply.
Voltage-regulated supply
A
An excellent dc voltage regulator can be built from an op am p, zener diode, two resistors
or one potentiom eter, and one or m ore transistors. In 1968, F airch ild S em ico n d u cto r
Division integrated all of these com ponents (plus others) into a single IC and called it the
/xA723 m onolithic voltage regulator. B ecause o f its flexibility, it has survived to the p res
ent day. It does, however, require a num ber o f support com ponents, has m inim al internal
protection circuitry, and requires the user to add boost transistors for m ore current cap a
bility and a resistor for lim iting short-circuit current.
T he race w as on to m ake a th ree -term in a l fix ed -v o ltag e regulator. N atio n al
S em iconductor won w ith the LM 309, in a close finish w ith F airch ild ’s 7800 series. The
LM 309 and /iA 7805 have three term inals. To use one, all you have to do is connect an
u n reg u lated supply betw een its input and com m on term in als. T h en co n n ect a load
470 Chapter 16
betw een the output and com m on and the design is com plete. (C onnect a decoupling ca
pacitor across both input term inals and output term inals to im prove perform ance.) T hese
devices have internal protection circuitry that w ill be discussed later.
The success of the + 5-V regulators changed the philosophy of many system designers. There
was no need to have a central regulator supplying current to each circuit board in the system
and suffering the large I2R loss. Now each printed circuit card could have its own on-board
local regulator. T he local regulator also protected its ICs against line voltage transients.
T he + 5-V regulator’s success spaw ned an array o f three-term inal regulators o f 6,
8, 9, 12, 15, 18, and 24 V and their negative counterparts. Now, if you need a 15-V reg
ulator to furnish 1 A, you sim ply buy one.
L in ear IC regulators w ere so p opular that they created serious p ro b lem s fo r o riginal
equipm ent m anufacturers (O EM s). How do you stock all these sizes, and how do you
m ake enough to suit the grow ing num ber o f voltage requirem ents?
T he L M 117 was the first successful superior-perform ance adjustable positive IC
voltage regulator. It w as follow ed by the LM 137 adjustable negative regulator. We will
present only a few o f the bew ildering array o f linear IC regulators. Space does not per
mit presentation o f the sw itching regulators.
16-8.1 Classification
The instantaneous voltage at the input of an IC regulator m ust always exceed the dc output
voltage by a value that is typically equal to 0.5 to 3 V. This requirem ent is called m inim um
instantaneous input-output voltage, dropout voltage>or simply headroom. As shown in Fig.
16-10(a), the LM 340-15 voltage regulator has an output voltage of 15 V at a load o f 1 A.
472 Chapter 16
S uppose that the unregulated pow er supply that feeds the regulator has a 1000-^iF
capacitor and thus a ripple voltage o f = 5 V. As show n in Fig. 16-10(a), you need a
m inim um input voltage of
V l min = Vo reg + headroom (16-8)
or
Vz.m in= 15 V + 3 V = 18 V
This m eans that Vdc FL m ust be 20.5 V at the very least [see Eq. (16-5c)]. A lthough you
m ight be tem pted to m ake Vdc FL high to give plenty o f headroom , you m ust rem em ber
that the w orst regulator heat pow er is IL f l( K jc FL — VQreg). So there is your trade-off. A
higher Vdc w astes m ore heat in the regulator.
The internal circuitry of these devices senses the load current. If the load current exceeds
a specified value, the output current is autom atically lim ited until the overload is rem oved.
They also m easure both their in p u t-o u tp u t difference voltage and load current to be sure
that no disallow ed com bination occurs. If it does, the regulator shuts down. T his feature
is called safe area protection.
Finally, these regulators even m easure their own tem perature to see if you heat-
sinked them properly. If the internal die tem perature exceeds 150° to 175°C, they shut
down. If you rem ove the fault, the regulator goes back to work.
D espite the w ell-designed internal protection circuitry, regulators can still be dam aged by
m isuse, sabotage, or certain failures o f external circuits. The m easures you can take to
safeguard against these eventualities are given in the data sheets o f a particular regulator.
M anufacturers of linear IC regulators specify their ac perform ance by a p aram eter called
ripple rejection. It is the ratio o f the peak-to-peak input ripple voltage \ V 0 unreg to the
peak-to-peak output ripple voltage AVC reg. It is typically 60 dB or more. T h at is a re
duction in ripple voltage o f at least 1000:1. For exam ple, if 5 V o f ripple is at the reg u
lator’s input, less than 5 mV appears across the load. We now turn our attention to spe
cific applications for IC regulators.
for a case-to-am bient therm al resistance o f a 6°CAV or less. This m eans that you should
use a 0.002-in.-thick insulating therm al w asher w ith therm al jo in t com pound betw een the
TO -3 case and its heat sink (or use the chassis as a heat sink).
The L M 340K -05 can furnish up to 1.5 A. It has internal current lim it at 2.1 A for
pulse operation. It also has safe area protection that protects its output transistor. It has
therm al shutdow n protection at a junction tem perature o f 150°C to prevent burnout. T he
added diode protects the regulator against short circuits occurring at its input term inals.
IN4002
To
unregulated To load,
supply ' 0.22 (j.F <?2Gnd o.l |iF ' up to 1.5 A
V, mi n — 8 V
Figure 16-12(a) presents a bipolar ± 15 V supply that can furnish 1 A from either ( + ) or
( —) term inal. T he L M 340K -15 is a + 1 5 -V regulator w ith load current capability up to
1.5 A. To use it as a stand-alone + 15-V supply, (1) rem ove the diodes, R 2, CN, and the
LM 320-15; and (2) replace R x w ith a short circuit.
T he LM 320K -15 is a - 15-V regulator with current capability up to 1.5 A. B oth reg
ulators have current lim it, safe area, and therm al shutdow n protection. They should be
heat-sinked as directed in Section 16-10.2.
Power Supplies 475
package that can furnish ± 1 0 0 mA. It has internal current lim iting and therm al overload
protection. (Buy a clip-on heat sink, or epoxy about a 2-in. X 2-in. piece o f alum inum to
the top surface.)
N ote that the LM 325 has tw o excellent voltage regulators packed into a single IC.
The output capacitors provide energy storage to im prove transient response. The input ca
pacitors are needed if the unregulated supply is m ore than 4 in. from the LM 325.
T here is a need for ( l) regulated load voltages that are variable for laboratory supplies,
(2) supply voltages that are not available as standard fixed-voltage regulators, (3) a very
precisely adjustable supply voltage, or (4) providing a price-break low er cost for users
w ho w ould like to stock a large quantity o f one IC regulator type to furnish a variety of
regulated output voltages.
The L M 1 17 and LM 137 fam ilies o f adjustable three-term inal positive and negative
voltage regulators, respectively, w ere developed. They are superb regulators with all the
internal protection circuitry listed for the regulators in Sections 16-9 and 16-10. Since
they are so versatile, they will encounter a variety o f hostile applications, so it is prudent
to add the external protection circuitry presented in Section 16-12.4.
The LM 317H V adjustable positive voltage regulator has only three term inals as shown in
Fig. 16-13(a). Installation is sim ple, as shown in Fig. 16-13(b). The LM 317 m aintains a
nominal 1.25 V between its output and adjust term inals. This voltage is called Vref and can
vary from chip to chip from 1.20 to 1.30 V. A 240-H resistor, R u is connected betw een these
term inals to conduct a current of 1.2 V/240 (1 = 5 mA. This 5 m A flows through R 2. If R 2
is adjustable, the voltage drop across it, VR2, will equal R 2 X 5 mA. O utput voltage o f the
regulator is set by V ^ plus the 1.2-V drop across R }. In general terms, V0 is given by
Power Supplies 477
For exam ple, if you need a 5-V supply for T T L logic, m ake R 2 = 760 ft. If you
need a + 15-V supply for an op am p or CM O S, m ake R2 = 2760 fL R 2 = 2160 Ct will
give you 12-V car voltage. M ake R 2 a 3-kH pot and you can adjust Va to any voltage b e
tw een 1.2 V (D -cell battery) and 16.2 V.
The LM 317H V K w ill provide a regulated output current o f up to 1.5 A, provided that it
is not subjected to a pow er dissipation o f m ore than about 15 W (TO-3 case). This m eans
it should be electrically isolated from , and fastened to, a large heat sink such as the metal
chassis o f the pow er supply. A 5-in. X 5-in. piece o f alum inum chassis stock also m akes
an adequate heat sink (see Section 16-10.1).
The LM 317 requires a m inim um “dropout” voltage o f 3 V across its input and o u t
put term inals or it will drop out of regulation. T hus the upper lim it o f VD is 3 V below the
m inim um input voltage from the unregulated supply.
It is good practice to connect bypass capacitors C\ and C2 (l-/x F tantalum ) as shown
in Fig. 16- 13(b). C, m inim izes problem s caused by long leads betw een the rectifier and
LM 317. C2 im proves transient response. Any ripple voltage from the rectifier will be re
duced by a factor of over 1000 if R 2 is bypassed by a tantalum capacitor or 10-/xF
alum inum electrolytic capacitor.
T he L M 317H V K protects itself against overheating, too m uch internal pow er d is
sipation, and too m uch current. W hen the chip tem perature reaches 175°C, the 317 shuts
down. If the product o f output current and input-to-output voltage exceeds 15 to 20 W, or
if currents greater than about 1.5 A are required, the LM 317 also shuts down. W hen the
overload condition is rem oved, the LM 317 sim ply resum es operation. All o f these pro
tection features are m ade possible by the rem arkable internal circuitry o f the LM 317.
A n ad ju sta b le th ree -term in a l n e g a tiv e -vo lta g e reg u la to r is also av ailab le [see the
L M 337H V K in Fig. 16-13(c)], T he negative regulator operates on the sam e principle as
the positive regulator except that R } is a 12 0 -fl resistor and the m axim um input voltage
is reduced to 50 V.
V0 is given by Eq. (16-9b). If R\ = 120 f l, then V0 depends upon R 2 according to
It is standard practice to connect C\ and C2 to a regulator (see Fig. 16-14) for reasons
stated in Section 16-12.2. Any regulator should have diode D] to protect it against input
shorts; otherw ise, load capacitance can pum p current back into its output and destroy it.
C apacitor C3 is added to greatly im prove ac ripple voltage rejection. However, if a
short circuit occurs across the regulator’s output, C3 w ill try to pum p current back into
the adjust term inal. D iode D 2 steers this current instead into the short circuit.
478
Power Supplies 479
1 A each if the regulators are heat-sinked properly (see Section 16-9.1). Variable resistor
R2 for each regulator may be adjusted for a regulated output voltage betw een approxi
m ately 1.2 and 20 V.
T he unregulated supply has the circuitry o f Fig. 16-8. A conservative design w ould
select (1) a transform er, 115 V /50 V C T at 2 A, (2) diodes 7av > 1 A at PIV > 50 V (IN
4002), and (3) capacitors of 1000 (jlF at W V D C > 50 V.
W ith the large increase o f battery-pow ered equipm ent and system s that operate from 3 V
or 3.3 V instead o f 5 V or other dc voltage levels, m anufacturers such as M axim and
L inear Technology have responded with a variety o f linear voltage regulators. Som e sys
tem s use both the low voltage (3 V or 3.3 V) and a higher dc voltage. R egulators know n
as step-dow n d c-d c controllers are used in these applications. The output voltage o f these
chips is 3 V or 3.3 V, and a typical input voltage range from 3.6 V to 16 V. O ther d c -d c
controller chips have an adjustable output voltage. As w ith all voltage regulators these d e
vices have short-circuit protection, therm al shutdow n, and rail-to-rail and single-supply
operation. The preceding sections have been written using som e low -cost readily avail
able regulators that you can use to pow er up general-purpose op am ps, but look for these
other regulators in low -pow er portable equipm ent.
PROBLEMS _____________________________________________________________________
16-1. A tra n s fo rm e r is rated at 115 to 28 V rm s at 1 A . W h a t is the peak secondary voltage?
16-2. A 115/28 V tra n s fo rm e r is used in F ig . 16-4(a). F in d Vdc at no load.
16-3. A s dc load cu rre n t increases, w h a t happens to (a) dc load vo lta g e ; (b ) ac rip p le voltage?
16-4. In F ig . 16-4, the tra n s fo rm e r ra tin g is 115 to 28 V at 1 A . W h a t is Vdc at a fu ll-lo a d cu rre n t
o f / L = 0.5 A ?
16-5. D c m easurem ents o f a p o w e r su p p ly give Vdc NL = 17.8 V and Vdc FL = 13.8 V at 1L f l =
0.5 A . C a lcu la te : (a) R0\ (b) p ercent re g u la tio n .
16-6. W h a t vo lta g e readings w o u ld be obtained w ith an ac v o ltm e te r fo r p e a k-to -p e a k rip p le v o lt
ages o f (a) 1 V ; (b) 3 V ?
16-7. T h e dc fu ll-lo a d vo lta g e o f a p o w e r s u p p ly is 28 V and the p e a k-to -p e a k rip p le vo lta g e is
6 V. F in d the m in im u m instantaneous load voltage.
16-8. A 1 1 0 V /2 8 V C T tra n s fo rm e r is in s ta lle d in F ig . 16-8. W h a t n o -lo a d dc v o lta g e w o u ld be
m easured (a) betw een te rm in a ls 1 and 2; (b) fro m 1 to C T ; (c) fro m 2 to C T ?
16-9. F in d the percent rip p le in E xa m p le 16-7 i f C is changed to 2 0 0 0 ;xF.
16-10. D e sig n an F W B u n regulated p o w e r s u p p ly to o u tp u t + 1 5 V at 1 A , w ith less than 5 % r ip
ple. A ssu m e that R0 = 8 Cl. C hoose the tra n s fo rm e r fro m a v a ila b le ra tin g s o f 115/12 V,
115/18 V, and 115/24 V — a ll at 2 A . A va ila b le capacitors are 500 /xF and 1000 /uF at W V D C
= 50 V.
16-11. G iv e n 11 5 /2 5 .2 V at a 3 -A tra n s fo rm e r and C = 1000 /xF in an F W B re c tifie r. A ssu m e
R0 = 6 O and 1L FL = 1 A . C a lcu la te (a) Vdc NL; (b) Vdc fl; (c) percent re g u la tio n ; (d) A
(e) ripple; (f) V L min.
C = 1000 /xF. C a lcu la te A V n i f y o u (a) d o u b le C to 20 0 0 /j l F , o r (b) reduce I to 0.5 A , o r
16-13. A n ac v o ltm e te r indicates a value o f 1.71 V rm s across the F W B su p p ly, and a dc v o ltm e te r
in d ic a te s 12 V dc. D ra w the expected va lu e o f V L th a t w o u ld be seen on a d c -c o u p le d
16-14. I f l L m easures 1 A in P ro b le m 16-13, fin d (a) the value o f C; (b) the value o f R L.
16-15* Y ou need a regulated o u tp u t vo lta g e o f 24.0 V. I f R \ = 240 f l in F ig . 1 6 -13(a), fin d the
16-16. A ssu m e th a t the re g u la to r o f P ro b le m 16-15 d e live rs a load c u rre n t o f 1.0 A . I f its average
16-19. Suppose that a 1 2 0 0 -fl lo w -s to p resistor, and a 2 5 0 0 - fl p o t are connected in series in place
o f the s in g le re sistor R 2 in F ig . 1 6 -13(a). F in d the u p p e r and lo w e r lim its o f VQ as the pot
Frequency-
1 1 X 7 4 1
Compensated
Operational Amplifier*
Order Information
Connection Diagram Type Package Code Part No.
10-Pin Flatpak MA741 Metal 5W MA741HM
1
/iA7 4 1A Metal 5W MA741AHM
10
NC 1
[ •
MA741C Metal 5W mA741HC
-O FFSET - 2 9 M A741E Metal 5W mA 741EH C
1
N U LL L
_
-IN [C
-IN IC
3
4 w x > -L
8
t -
7
1 Connection Diagram
8-Pin DIP
5 6
O FFSET
v-C
1 ' 1
N U LL
(Top Vi«w )
Order Information
Type P ackage Code Part No.
*iA741 Flatpak 3F ^ A74tFM —| ‘ O FFSET
/iA7 4 1 A Flatpak 3F /iA 7 4 1AFM -J N U LL
(Top V i«w )
Order Information
Type Package Code Part No.
MA741C Molded DIP 9T MA741TC
MA741C Ceram ic DIP 6T ^A741RC
Absolute Maximum Ratings Operating Temperature Range
Supply Voltage Military (MA741A, mA 741) - 5 5 ° C to + 1 2 5 °C
^A74 1A, mA741, ^A741E ± 22 V Commercial (/iA741E, ^A741C) 0 ° C to + 7 0 °C
MA741C ± 18 V Pin Temperature (Soldering 60 s)
Internal Power Dissipation Metal P a ckag e, Flatpak, and
(Note 1) Ceram ic DIP 3 0 0 °C
Metal Packag e 500 MW Molded DIP (10 s) 2 6 0 °C
DIP 310 mW Output Short Circuit Duration
Flatpak 570 mW (Note 3) Indefinite
Differential Input Voltage ± 30 V
Input Voltage (Note 2) ± 15 V
Storage Temperature Range
Metal Pa ckag e and Flatpak -6 5 °C to + 15 0 °C
DIP -5 5 °C to + 1 2 5 ° C
484 A ppendix 1
0 35
4 C a l c u l a t e d v alu e from B W ( M H z ) = RisG T i m e
N o ta s 035
4 C a l c u l a t e d v a l u e f r om B W ( M H z ) = Rj se T i m e ( ^ s )
The following sp ecifications apply over the range of - 5 5 ° C < T a < 125°C for the 741 A,
and 0 ° C < TA < 70 ° C for the 741E.
Input O ffset Voltage 4.0 mV
Input Offset Current 70 nA
Input B ia s Current 210 nA
Common Mode Rejection Ratio V S = ± 2 0 V, V|N - ± 1 5 V, R S = 50 Q 80 95 dB
Adjustment For Input Offset Voltage Vs = ± 20 V 10 mV
Output Short Circuit Current 10 40 mA
-5 5 °C 165 mW
MA741A
Power Consumption VS = ± 20 V + 1 2 5 °C 135 mW
>iA74lE 150 mW
Input Impedance VS = ±20 V 0.5 M12
Rl = 10 kil ± 16 V
Output Voltage Swing VS = ±20 V
Rl = 2 kQ ± 15 V
> >
> >
V S — ± 2 0 V, R L - 2 kil, 32
E E
VQUT = ± 15 V
Large Signal Voltage Gain
V S — ± 5 V, R l - 2 kfl, 10 V/ mV
Vqut = ±2 V
Notes
0.35
4. C a l c u l a t e d v a l u e f r om : B W ( M H z ) = p j se T i m e ( ^ s )
M JO 20 40 100 140
TEM PERATURE - “ C TEU P EH A T U R t - "C
Typical Perform ance Curves for *iA741A and *zA741 (C ont.)
j; 3 °
a 2.0
0 10 20 JO 40 SO M ;o 0 10 ?0 30 40 SO 40 *0
TEM PERATURE - C TEM PERATU RE - C
0 10 20 30 40 10 60 70
tem pera tu re - c fKjH£ - C
General Description
The LM 101A series are general purpose operational capacitor. It has advantages over internally com
amplifiers which feature improved performance pensated amplifiers in that the frequency compen
over industry standards like the LM 709. Advanced sation can be tailored to the particular application.
processing techniques make possible an order of For example, in low frequency circuits it can be
magnitude reduction in input currents, and a overcompensated for increased stability margin. Or
redesign of the biasing circuitry reduces the the compensation can be optimized to give more
temperature drift of input current. Improved than a factor of ten improvement in high frequen
specifications include: cy performance for most applications.
■ Offset voltage 3 mV maximum over tempera
ture ( LM 101A/LM 201 A)
■ Input current 100 nA maximum over tempera In addition, the device provides better accuracy
ture (LM 101A/LM 201 A) and lower noise in high impedance circuitry.
■ Offset current 20 nA maximum over tempera The low input currents also make it particu
ture (LM 101A/LM 201 A) larly well suited for long interval integrators
or timers, sample and hold circuits and low fre
■ Guaranteed drift characteristics
quency waveform generators. Further, replacing
■ Offsets guaranteed over entire common mode circuits where matched transistor pairs buffer
and supply voltage ranges the inputs of conventional IC op amps, it can
give lower offset voltage and drift at a lower cost.
■ Slew rate of 10V/ps as a summing amplifier
D u a l - l n - L m e Package
O rder Number L M 1 0 1 A H ,
L M 2 0 1 A H or L M 3 0 1 A H
See N S Package H 08 C I 0UTM
JT
-I UlUCI
D u a l I n - L i n e P acka ge
Not* Pin 6 canncctt* to bonam of fMckip
O rder Number
L M 1 0 1 A J , L M 2 0 1 A J, L M 3 0 1 A J
See N S Package J 0 8 A
S up p ly Voltage ±22V ± 1B V
Power Dissipation ( N o : e 1) 500 mW 500 m W
Differential I np ut Voltage ±30V ±30V
Input Voltage ( No t e 2) ± 1 5V ±15V
O u t p u t S hor t C ir cui t Du rati on ( Note 3) I ndefinite Indefinite
Operati ng T em pe ra tu re Range - 5 5 ° C to +125 °C ( L M 1 0 1 A )
- 2 5 ° C to + 85° C ( L M 2 0 1 A )
Storage T em pe ra tu re Range - 6 5 ° C to + 150 °C - 6 5 C to + 150 C
Lead T em pe ra tu re (Soldering, 10 seconds) 300° C 300° C
Ta =■tMax nA
T a = t min nA
V c»i
f ju e n c y FREQUENCY (Hi)
FREQUENCY (Hi]
FREQUENCY (Hi)
APPENDIX 3
LM311 Voltage
Comparator*
498
500 Appendix 3
N ote 1: T his rating applies for ±15V supplies. The positive input voltage lim it is 3 0 V above the negative sup p ly. T h e negative
input voltage lim it is equal to the negative supply voltage or 3 0 V below the positive sup ply, w hich ever is less.
N ote 2: T he m axim um ju nction tem perature of the L M 3 1 1 is 1 10°C. F o r operating at elevated tem peratures, d evicet in the T O -6
package m ust be derated based on a therm al resistance of 150*C/W , ju nction to am bient, or 4 5*C/W , ju n ctio n to caee. T h e therm al
resistance of the dual-in-line package is 100°C/W , ju nction to am bient.
Note 3 : These specifications apply for V § c ± 15V and the G round pin at ground, and 0 ° C < T ^ < + 7 0 °C , un lew otherw ise
specified. The offset voltage, offset curren t and bias current specifications apply for any supply voltage from a single 6 V supply
up to i l 5 V supplies.
Note 4 : T h e offset voltages and offset currents given are the m axim um values required to drive the ou tput w ith in a volt of either
supply w ith 1 m A load. Thus, these param eters define an error band and take into accoun t the w ortt-cate effects of voltage gtkn
and input im pedance.
Note 5 : T h e response tim e specified (see definitions) is for a 100 m V input step w ith 5 m V overdrive.
Note 6 : Do not short the strobe pin to ground; it should be curren t driven at 3 to 5 m A .
LM311 Voltage Comparator
\
----- RAISED'
BIAS CURRENT
iSHORT PINS
S. 8. AND t)
INPUT
NORMAL OUTPUT
REFERRED TO SUPPLY VOLTAGES
faA)
INPUT HAS CURRENT
EM ITTE R —
FOLLOW ER
OUTPUT
r l ■w o n -
When a high-speed comparator such as the LM 111 is 4. When comparator circuits use input resistors (eg.
used with fast input signals and low source impedances, summing resistors), their value and placement are
the output response will normally be fast and stable, particularly important. In all cases the body of the
assuming that the power supplies have been bypassed resistor should be close to the device or socket. In
(with 0.1 fuF disc capacitors), and that the output signal other words there should be very little lead length or
is routed well away from the inputs (pins 2 and 3) and printed-circuit foil run between comparator and
also away from pins 5 and 6. resistor to radiate or pick up signals. The same applies
to capacitors, pots, etc. For example, if Rs = 10 k U , as
However, when the input signal is a voltage ramp or a little as 5 inches of lead between the resistors and the
slow sine wave, or if the signal source impedance is high input pins can result in oscillations that are very hard
(1 k£2 to 100 k H ), the comparator may burst into to damp. Twisting these input leads tightly is the
oscillation near the crossing-point. This is due to the only (second best) alternative to placing resistors
high gain and wide bandwidth of comparators like the close to the comparator.
LM 111. To avoid oscillation or instability in such a
usage, several precautions are recommended, as shown 5. Since feedback to almost any pin of a comparator
in Figure 1 below. can result in oscillation, the printed-circuit layout
should be engineered thoughtfully. Preferably there
1. The trim pins (pins 5 and 6) act as unwanted au xil should be a groundplane under the LM 111 circuitry,
iary inputs. If these pins are not connected to a trim- for example, one side of a double-layer circuit card.
pot, they should be shorted together. If they are Ground foil (or. positive supply or negative supply
connected to a trim-pot, a 0.01 (J.A capacitor C l foil) should extend between the output and the
between pins 5 and 6 will minimize the susceptibility inputs, to act as a guard. The foil connections for the
to A C coupling. A smaller capacitor is used if pin 5 is inputs should be as small and compact as possible,
used for positive feedback as in Figure 1. and should be essentially surrounded by ground foil
on all sides, to guard against capacitive coupling from
2. Certain sources will produce a cleaner comparator any high-level signals (such as the output). If pins 5
output waveform if a 100 pF to 1000 pF capacitor and 6 are not used, they should be shorted together.
C2 is connected directly across the input pins. If they are connected to a trim-pot, the trim-pot
should be located, at most, a few inches away from the
3. When the signal source is applied through a resistive LM 111, and the 0.01 /j F capacitor should be installed.
network, R s, it is usually advantageous to choose an If this capacitor cannot be used, a shielding printed-
R s' of substantially the same value, both for DC and circuit foil may be advisable between pins 6 and 7.
for dynamic (AC) considerations. Carbon, tin-oxide, The power supply bypass capacitors should be located
and metal-film resistors have all been used successfully within a couple inches of the LM 111. (Some other
in comparator input circuitry. Inductive wirewound comparators require the power-supply bypass to be
resistors are not suitable. located immediately adjacent to the comparator.)
o 15V
INPUTo-AAV—f-
O OUTPUT
Pin c o n n e c t i o n s s h o w n are fo r L M 1 1 1 H in 8 - le ad T O - 5 h e r m e t i c p ac ka g e
503
Application Hints (Continued)
6. It is a standard procedure to use hysteresis (positive ideal. The positive feedback is to pin 5 (one of the
feedback) around a comparator, to prevent oscillation, offset adjustment pins). It is sufficient to cause 1 to
and to avoid excessive noise on the output because 2 mV hysteresis and sharp transitions with inpot
the comparator is a good amplifier for its own noise. triangle waves from a few Hz to hundreds of kHz.
In the circuit of Figure 2, the feedback from the The positive-feedback signal across the 8 2 0 resistor
output to the positive input will cause about 3 mV of swings 240 mV below the positive supply. This signal
hysteresis. However, if R s is larger than 1 0 0 0 , such is centered around the nominal voltage at pin 5, so
as 50 kQ , it would not be reasonable to simply this feedback does not add to the V os of the com
increase the value of the positive feedback resistor parator. As much as 8 mV of V os can be trimmed
above 510 kf2. The circuit of Figure 3 could be used, out, using the 5 kH pot and 3 k f i resistor as shown.
but it is rather awkward. See the notes in paragraph
7 below.
8. These application notes apply specifically to the
7. When both inputs of the LM111 are connected to LM 111, LM 211, LM 311, and LF111 families of
active signals, or if a high-impedance signal is driving comparators, and are applicable to all high-speed
the positive input of the LM 1 11 so that positive feed comparators in general, (with the exception that not
back would be disruptive, the circuit of Figure 7 is all comparators have trim pins).
LM117 3-Terminal
Adjustable Regulator*
Typical Applications
1.2V—25V Adjustable Regulator Digitally Selected Output* 5V Logic Regulator with
Electronic Shutdown*
Preconditioning
Burn-In in Thermal Lim it 100% All Devices
( N o t e 2)
V o u T < 5 V . (N o te 2) 5 15 5 25 mV
Referen ce V olt age 3 V < ( V i^ - V q u T ) < ^O V , ( N o t e 3) 1.20 1.25 1.30 1.20 1.25 1.30 V
V [ N — V O U T = 4 0 V , T j = +25° C
C A D J = 10^F 66 80 66 80 dB
T h e r m a l R e s is ta n ce , J u n c t i o n t o Case H P ac ka g e 12 15 12 15 °C/W
T P a cka ge 4 °C/W
P P ac ka g e 12 ° C/W
N o te 1: Unless otherwise specified, these specifications apply -5 5 ° C < Tj < +150°C for the LM117, -2 5 ° C < T, < +150°C for the LM217, and
0°C < Tj < +125°C for the LM317; V ,N - V0 U T = 5V; and Iq u T = 0 1A for the T O - 39 and T O -2 0 2 packages and Iq u t = 0 5A for the T O -3 and T O -2 2 0
packages. A ltho ugh power dissipation is internally limited, these specifications are applicable for power dissipations of 2 W for the T O - 3 9 a n d T O -2 0 2 ,
and 2 0 W for the T O - 3 and T 0 ~ 220. Im a x 's 1 5A for the T 0 - 3 and T 0 -2 2 0 packages and 0 .5 A for the T O - 3 9 and T 0 -2 0 2 packages.
N o te 2: Regulation is measured at constant junction temperature, using pulse testing w ith a low duty cycle. Changes in output voltage due to heating
effects are covered under the specification for thermal regulation.
N o te 3: Selected devices with tightened tolerance reference voltage available. 507
Application Hints
In operation, the LM117 develops a nominal 1.25V Although the LM117 is stable with no output capa
reference voltage, V r e f , between the output and citors, like any feedback circuit, certain values of
adjustment terminal. The reference voltage is impressed external capacitance can cause excessive ringing. This
across program resistor R1 and, since the voltage is con occurs with values between 500 pF and 5000 p F.
stant, a constant current li then flows through the A solid tantalum (or 25/iF aluminum electrolytic)
output set resistor R2, g iv in g an output voltage of on the output swamps this effect and insures stability.
External Capacitors
An input bypass capacitor is recommended. A O.ljuF
disc or I l i F solid tantalum on the input is suitable input
bypassing for almost all applications. The device is more
sensitive to the absence of input bypassing when adjust F IG U R E 2. Regulator with Lina Ratiitanc*
ment or output capacitors are used but the above values in Output Laad
will eliminate the possibility of problems.
V 0 U T = 1-25V
0 1 p r o t e c t s against C1
D 2 p r o t e c t s against C 2
Schematic Diagram
Answers to Selected
Odd-Numbered Problems
CHAPTER 1 ____________________________________________________________________________________
CHAPTER 2 ____________________________________________________________________________________
2-1. Two for supply power— + V and - V . Two for input signals— inverting and noninverting. One for output.
2-3. (a) pin 2 (b) pin 3 (c) pin 6
2-5. (a) V0 = 0 V (b) l os = 25 mA (typical)
511
512 A nsw ers to Selected Odd-Numbered Problem s
2-7.
A v0
15 \
— +^sal
/ \ / ' \
/ \ y
-
—V
-15
+15 V
io kn <
0 to 50 mV
0-5 k£1 pot <
- 0 to 5 V
CHAPTER 4 _____________________________________________________________________________________
CHAPTER 5
5-1. (a) - 1 niA (b) - 2 V 5-5. (a) 4.5 k ft (b) 3.18 k ft (c) 1.59 k ft
5-7. (a) pup (b) 100 mA (c) 5 V 5-9. 500 ft
5-11. (a) - 0 . 2 mA, - 1.0 V, - 2 V (b) 0.2 mA, 1 V, 2 V5-13. / L = 0, VL = 0;V„ = + 5 V
5-15. See Figs. 5.7, 5.8, and 5 .1 1. 5-17. /,_ = 5 mA 5-19. 0 = 64.2°
5-21. C = I /xF, R, = 159 k ft, Rrcsistors = 300 kft
5-23. 100°C = 373 K. The AD590 outputs 373 /aA. In Fig.5-20(a), current through Rf = 373 — 273 i±A
100 M (right to left). VRf = 100 /aA X 10 k ft = 1000 mV = V„. V„ = 10o^ V x 100°C = 1000 rnV.
CHAPTER 6
6-1. (a) 6.9 V (b) - 6 .9 V 6-3. yes; R f = 5 kH 6-5. The time for C to return to its initial state.
6-7. ± 3 V; 1250 Hz 6-9. 9.4 V; 250 Hz 6-11. (a) Switched gain am plifier (b) Am plifier B;
Vn - Vrcf (c) With pin 9 at 1 V, V0 will be a sine wave identical to Vrcf. With pin 9 at — I V. V0 will be
inverted from Vref. 6-13. (a) 60° (b) 1.2 V 6-15. Pick C = 0.1 ( j l F . At 0.5 Hz, R , = 500 kfl; at 50 Hz,
Ri = 5 kCL
A nsw ers to Selected Odd-Numbered Problem s 515
CHAPTER 7 ____________________________________________________________________________________
7-1. 3 V
7-5. See Fig. 7-5. 7-7. Peak detector or follow-and-hold circuit 7-9. See Fig. 7-14.
7-11. See Figs. 7-18(b) and 7-17.
CHAPTER 8
CHAPTER 9
9-3. IB- = 0.2 fiA 9-5. V0 = 2.2 V 9-7. V„ = -2.5 mV 9-9. Vio = 2 mV
9-11. Rc = 5 kft 9-13. AV„ = ±50.5 mV
9-15. (a) Vio = 1 mV (b) IB- = 0.2 M (c) l„+ = 0.1 9-17. V,„ = 38 fiV
CHAPTER 10
CHAPTER 77
11-3. Band pass 11-5. R = 7.2 kH 11-7. | VD\ = 0.707 a t f c. There is a 45° phase angle a t f. for
each capacitor. 11-9. f c = 11.2 kHz 11-11. = 25 krad/s 11-13. R = 8 k fl
11-15. /?, = 14 kH, /?2 = 7.07 kH 11-17. /?3 = 6.35 kH, /?, = 12.7 k Cl, R2 = 3.17 kH
11-19. (a) 10 Hz (b) 60 Hz (c) 6
11-21. Apply Eq. (11-3) 11-23. Q = 0.35
11-25. (a) Connect the bandpass filter to an inverting adder as in Fig. 11-15. (b) f L = 92 H z ./ H = 177 Hz
516 A n sw e rs to Selected Odd-Numbered Problem s
CHAPTER 12
CHAPTER 13 ____________________________________________________________
13-1. One-shot, free running 13-3. 70 Hz 13-5. 107 Hz 13-7. 3.1 k ft 13-9. 6.95 ms
13-11. I ms < f|ligh < 2 ms, RA = 15 k ft for /high = 1.65 ms 13-13. 170 ms
13-15. (a) 50 ms (b) 600 ms (c) 12.75 s 13-17. 62.5 Hz
CHAPTER 14
14-1. (a) 1024 (b) 16,384 14-3. Vfs = 9.99 V 14-5. D = 01011111
14-7. (b) lp = 0.125 mA
(c) A V 0 = 0.625 V/bit
(d) Vn = D X 0.625 V/bit
(e) Vfs = 9.375 V __ _
14-9. Mem ory buffer register, selection logic 14-11. (a) CE and CS
14-13. 4000/4001; 8000/8001; C000/C001
CHAPTER 15 ______________________________________________________
CHAPTER 16
16-1. 38 V 16-3. (a) Decreases (b) Increases 16-5. (a) 8H (b) 29%
16-7. VdcFL = 25 V 15-9. 6.1%
16-11. (a) £ m = 35.3 V (b) VdcFL = 29.3 V (c) 20% (d) 1.42 V (e) 4.9% (f) 26.8 V
A nsw ers to Selected Odd-Numbered Problem s 517
V.
A
16-15. R2 = 4560 0 16-17. (a) 1.2 V (b) -1.2 V 16-19. 7.2 to 19.7 V
16-21. R2 = 1032 n
Bibliography
518
Bibliography 519
555 IC timer, 3 6 2 -3 8 4 non-inverting amplifier, 2 8 1 -2 8 7 IB+ or IB— (see Input bias currents)
applications, 375-381 notch filter, 319 TC voltage references, 2 7 -2 9
astable operation, 364, 3 7 1 -3 7 7 octave equalizer, 318 Ideal closed-loop gain, 279-281
clock, 424 op amp, 253, 279 Ideal diode circuits, 189-192
frequency shifter, 377 wide-band filter, 3 1 4 -3 1 6 Ideal op amp, 14, 15
one-shot operation, 376 Frequency shifting, 343, Ideal voltage source, 64
operating m odes, 364 3 5 6 -3 6 1 , 377 Identification code
packaging, 365 Frequency spectrum, 348 circuit designation. 4 - 1 0
PSpice sim ulation, 396-398 Frequency synthesizer, 393 designator, 9, 15
terminal operation, 365 Full-load current and voltage, letter prefix, 9, ! 5
Flash converters, 447 4 5 7 -4 6 6 letter suffix, 9, 15
Flatpack, 8 Full-power output frequency, 287 package style, 7 - 1 0
Floating differential voltage, 230 Full-wave bridge rectifier, 456, tem perature range, 8 -1 0
Floating loads, 122, 123 4 6 3 -4 6 6 IF amplifier, 360
Foil strain gage, 234 Function switch, 121 Independently adjustable setpoint
Follow-and-hold am plifier, 198 FWB (see Unregulated power controller, 102-104
Force, 2 1 9 -2 2 8 supply) Infrared em itting diode, 118, 125
Free-running m ultivibrator (see Interm ediate frequency, 356-361
M ultivibrator) Input bias currents
Gage factor, 234
Free-running oscillator, synchro average value, 254
Gain
nized outputs, 390 com pensating resistor, 260
closed loop, 4 5 -5 0
Frequency effect on output voltage, 256
com m on mode, 219
divider, 381 introduction, 253
DAC, 407
doubling, 3 3 4 -3 4 6 m easurem ent, 262
differential, 218, 232
m odulation, 168, 3 4 3 -3 5 2 model, 261
open-loop, 1 6 -1 9 ,4 5
multivibrator, 154-156 offset current, 254
Gain error (DAC), 406, 407
op amp, 253, 2 7 5 -2 8 4 Input capacitance, 290
Gate current, 24
precision tri/square wave, 172 Internal frequency com pensation,
G F (see Gage factor)
response, 253 275
Glitch, 425
sawtooth wave, 165-169 Input offset current, 254
Ground
shifter, 3 5 6 - 3 6 1 Input offset voltage
defined, 1 0-16
shift keying, 168, 343 adder circuit, 264
earth, 14, 222, 457, 462
sidebands, 3 4 8 -3 5 1 defined, 261
loop, 218
sine-wave generator, 178 drift, 267
star, 12
spectrum , 347-351 effect on output voltage, 257
sym bol, 10
sum, 345-351 m easurem ent, 262
Grounded transducers, 248
synthesizer, 392 model, 262
triangle-w ave generator, 162, 163 nulling, 266
unipolar tri-wave, 163 Handshake signal, 105 Input pulse circuit, 380
V-to-F, 167-169 Headroom , 4 7 0 -4 7 2 Input term inals, 1 6 -1 8
Frequency doubling, 334 H eatsin k , 135, 136, 475 Instrumentation am plifiers
Frequency of oscillation H eterodyne, 343, 357 basic differential am plifier, 217
555 timer, 3 7 1 -3 7 7 High-current transducers, 135, circuit operation, 220, 2 2 6 -2 2 9
multivibrator, 152-155 136, 248 differential m easurem ents, 230
precision sine-w ave generator, H igh-frequency generator, 178 differential V-to-I converter,
173-177 High frequency limit fHl, 281 23 1 -2 3 3
precision tri-wave generator, High-im pedance state, 445 gain, 217, 230
170-172 High-pass filters, 295, 3 0 5 -3 1 2 referencing output voltage, 228
sawtooth generator, 165-169 com parison, 3 11 remote voltage sensing, 230
tri-wave generator, 160-164 40dB/decade, 308, 309 strain gage application, 2 3 3 -2 3 6
unipolar tri-wave, 163-164 60dB/decade, 309, 312 sense term inal, 229
V-to-F converter, J 6 7 -1 6 9 20dB/decade, 306, 308 Integrated circuit timers
XR 2240, 3 8 5 -3 9 4 PSpice sim ulation, 3 2 3 -3 2 6 555 IC, 3 6 2 -3 8 4
Frequency response High-resistance dc voltmeter, program m able, 385
analog-to-digital converter, 447 121-123 PSpice sim ulation, 3 9 6 -3 9 8
band-pass filters, 3 1 2 -3 1 8 High-time, 3 2 -3 4 XR 2240, 3 8 4 -3 9 7
high-pass filters, 3 05 -3 1 2 High-Z state, 445 Integrating ADC. 4 3 5 -4 3 9
inverting amplifier, 283 Hold capacitor, 198 Integrator, 140-142
low-pass filters, 2 9 7 -3 0 5 H ysteresis, 92-101 Interface
narrow band filter, 317 Hysteresis loop, 368 AD590 to m icrocontroller, 138
Index 525
Peak reading voltmeter, 121 Priority encoder, 447 Read only address, 420, 447
Peak-to-peak ac voltmeter, 121, 122 Process control, 9 9 -101 Read only register, 420
Peak-to-peak ripple voltage, Program m able tim er/counter R ead/write line, 420, 421
4 5 7 -4 6 8 XR2240 Recovery time, 159
Pen position, 228 binary pattern signal Rectifier diodes, 456, 4 6 4 -4 6 6
Percent regulation, 4 6 1 generator, 391 REF-02, 2 7 -2 9 , 66
Percent ripple, 463 circuit description, 384 Reference
Period (T), 35, 373, 394 counter operation, 3 8 6 -3 8 9 designator, 4
Phase-angle detection, 337 free-running oscillator, 390 output voltage Vref, 228
Phase-angle meter, 339 frequency synthesizer, 393 resistance, 245
Phase shifter, 143, 144 introduction, 384 term inal, 228, 414
Photo conductor, 26 program m ing the outputs, 388 Relay, 98, 99
Photo conductive cell, 132, 144, 150 switch program m able timer, 390 Remote voltage sensing, 230
Photo diode, 132, 133 timing applications, 387-391 Resonant frequency, 3 1 3 -3 1 6
Photovoltaic cell (see solar cell) Propagation delay, 108-111 Resistance bridge, 234-241
PIN (see Part identification number) PSpice simulation Resistance ladder (see R-2R ladder
Pinout, 5 - 9 band-pass filter, 327 network)
PIV, 465 bipolar triangle-wave generator, Resolution, 27, 4 0 1 -4 0 3 , 431
Plastic lead-chip carrier, 7 160-163 Resonant frequency, 295, 313
Positive feedback, 8 5 -9 0 com parator operation, 36-41 Response time, 108
Positive level detector, 21, 24 differential voltage-to-currem Rfi 4 5 -5 0
Positive peak follower and hold, 198 conversion, 146, 147 R h 4 5 -5 0
Positive saturation voltage, 16-23 free running multivibrator, Ripple rejection, 472
Positive supply 179-181 Ripple voltage, 4 5 7 -4 7 2
op amp term inal, 4, 8-11 high-pass filter, 325 Rise time, 278
voltage regulator, 457 inverting adder, 78 RMS ac voltmeter, 121, 122
Positive voltage level detector, 91 -9 3 inverting amplifier, 7 8 -8 0 R-2R ladder network, 4 0 5 -4 1 6
Power-on tim e delay, 368 linear half-wave rectifier, Roll-off, 299, 301, 303
Power supplies (see Unregulated 209, 210 Room thermostat, 100-104
power supplies) low-pass filter, 323 Rung currents, 4 0 9 -4 1 2
Power supplies for linear ICs, MAV circuit, 213, 214
4 7 3 -4 7 8 m ultivibrator using 555, 396
Power supply com m on, 457 non-inverting, amplifier, 81, 82 Safe area protection, 472
Power supply rejection ratio, one-shot multivibrator, 181, 182 Sample and hold amplifier, 198,
271, 272 precision rectifier, 211 450, 451
Power transformer, 4 5 4 -4 6 8 tone-burst, 397 SAR (see Successive approxim ation
Practical ideal voltage source, unipolar tri-wave generator, 163 ADC)
64, 65 window detector, 113, 114 Saturation voltages, 1 6-20
Precision clipper, 208 zero-crossing detector, 111-113 Sawtooth wave generator, 3 1 -3 4 ,
Precision comparator, 104-106 PSR, 271 165-172
Precision full-wave rectifiers Pull-up resistor, 3 0 -3 4 Scale factor, 331, 341
high input impedance, 197 Pulse stretcher, 156 SCC (see Signal conditioning
PSpice sim ulation, 211 Pulse width m odulator, 2, 6 circuits)
with equal resistors, 196 interface to bridge amplifier, 248 SCR, 2, 2 4 -2 6
with grounded sum m ing interface to microcontroller, Second sources, 10
inputs, 202 36, 37 Selection process DAC, 4 2 0 -4 2 2
Precision rectifiers, 188 inverting and non-inverting, Selectivity, 314
ac-to-dc conversion, 200 -2 0 3 2 9 -3 6 Sense term inal, 229
absolute value circuit, 194 PW M (see Pulse width m odulator) Sensitivity
full-wave, 195, 202 resistance bridge, 241
dead-zone circuits, 20 3 -2 0 5 tem perature sensor, 7 1 -7 3
introduction, 188 Quadrants, 333 Sensor
inverting half-wave, 190 Quad voltage comparator, 3 0 -3 5 AD590, 139, 140
linear half-wave rectifier, 189 Quality factor, 314 deriving equation, 72
m ean absolute value, 200, 201 Quantization error, 433 LM335, 7 1 -7 5
peak followers, 198 tem perature, 7 1 -7 5
PSpice sim ulation, 2 0 9 -2 1 2 photoconductive cell, 132, 144
signal polarity separator, 193 Radiant energy, 133, 134 photodiode, 132, 133
Precision sine-wave generator, 175 Rail currents, 4 0 9 -4 1 3 Serial DACs, 4 2 5 -4 2 7
Precision voltage source, REF-02, Ramp generator, 165, 166 Servoamplifier, 142-144
27, 66 Read com m and, 420, 446 Setpoint controller, 100-103
528 Index
s
dt*
%
*
i l l
at*
Prentice
Hall m k