Operational amplifiers

Similar documents
Operational Amplifiers

Chapter 3: Operational Amplifiers

Operational Amplifiers (Op Amps)

ES250: Electrical Science. HW6: The Operational Amplifier

An electronic unit that behaves like a voltagecontrolled

Basic Information of Operational Amplifiers

Gechstudentszone.wordpress.com

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Linear Integrated Circuits Applications

L02 Operational Amplifiers Applications 1

EECE251 Circuit Analysis I Set 5: Operational Amplifiers

EE301 Electronics I , Fall

Applied Electronics II

EE LINEAR INTEGRATED CIRCUITS & APPLICATIONS

Operational Amplifiers

UNIT I. Operational Amplifiers

Lesson number one. Operational Amplifier Basics

6. The Operational Amplifier

Operational Amplifiers

Integrated Circuit: Classification:

ELT 215 Operational Amplifiers (LECTURE) Chapter 5

Operational Amplifiers

Università degli Studi di Roma Tor Vergata Dipartimento di Ingegneria Elettronica. Analogue Electronics. Paolo Colantonio A.A.

Common Reference Example

Differential Amplifier : input. resistance. Differential amplifiers are widely used in engineering instrumentation

Chapter 5. Operational Amplifiers and Source Followers. 5.1 Operational Amplifier

Improving Amplifier Voltage Gain

Special-Purpose Operational Amplifier Circuits

Chapter 2. Operational Amplifiers

Operational Amplifier as A Black Box

Analog Electronics. Lecture Pearson Education. Upper Saddle River, NJ, All rights reserved.

LINEAR IC APPLICATIONS

Linear IC s and applications

Electronics Lab. (EE21338)

EEE225: Analogue and Digital Electronics

Section 4: Operational Amplifiers

Operational Amplifier BME 360 Lecture Notes Ying Sun

Homework Assignment 03

tyuiopasdfghjklzxcvbnmqwertyuiopas dfghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq

Chapter 6: Operational Amplifier (Op Amp)

inverting V CC v O -V EE non-inverting

Chapter 2. Operational Amplifiers

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

UNIT- IV ELECTRONICS

Chapter 9: Operational Amplifiers

1. INTRODUCTION TO OPERATIONAL AMPLIFIERS. The standard operational amplifier (op-amp) symbol is shown in Figure (1-a):-

55:041 Electronic Circuits

P a g e 1. Introduction

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

Basic Operational Amplifier Circuits

ECE:3410 Electronic Circuits

Lecture 01 Operational Amplifiers Op-Amps Introduction

UNIT - 1 OPERATIONAL AMPLIFIER FUNDAMENTALS

ELECTRONICS. EE 42/100 Lecture 8: Op-Amps. Rev B 3/3/2010 (9:13 PM) Prof. Ali M. Niknejad

The Inverting Amplifier

Transistor Biasing. DC Biasing of BJT. Transistor Biasing. Transistor Biasing 11/23/2018

ELECTRONICS. EE 42/100 Lecture 8: Op-Amps. Rev A 2/10/2010 (6:47 PM) Prof. Ali M. Niknejad

Chapter 13 Oscillators and Data Converters

Electronics Prof. D. C. Dube Department of Physics Indian Institute of Technology, Delhi

OPERATIONAL AMPLIFIER PREPARED BY, PROF. CHIRAG H. RAVAL ASSISTANT PROFESSOR NIRMA UNIVRSITY

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Homework Assignment 06

CHAPTER 3. Instrumentation Amplifier (IA) Background. 3.1 Introduction. 3.2 Instrumentation Amplifier Architecture and Configurations

Circuit Applications of Multiplying CMOS D to A Converters

Module 2. Measurement Systems. Version 2 EE IIT, Kharagpur 1

Operational Amplifiers

Unit 6 Operational Amplifiers Chapter 5 (Sedra and Smith)

Analytical Chemistry II

ELEC207 LINEAR INTEGRATED CIRCUITS

Difference between BJTs and FETs. Junction Field Effect Transistors (JFET)

Physics 303 Fall Module 4: The Operational Amplifier

Analog Circuits. Operational Amplifiers (Opamps) DC Power Supplies Oscillators

EET 438a Automatic Control Systems Technology Laboratory 1 Analog Sensor Signal Conditioning

EEE118: Electronic Devices and Circuits

Lecture # 4 Network Analysis

EXPERIMENT 2.2 NON-LINEAR OP-AMP CIRCUITS

Operational Amplifiers

Introduction to Op Amps

Analog Electronic Circuits Code: EE-305-F

Experiments #6. Differential Amplifier

(Refer Slide Time: 2:29)

Assist Lecturer: Marwa Maki. Active Filters

LESSON PLAN. SUBJECT: LINEAR IC S AND APPLICATION NO OF HOURS: 52 FACULTY NAME: Mr. Lokesh.L, Hema. B DEPT: ECE. Portions to be covered

Approximate Hybrid Equivalent Circuits. Again, the impedance looking into the output terminals is infinite so that. conductance is zero.

4.2.2 Metal Oxide Semiconductor Field Effect Transistor (MOSFET)

N9-1. Gain. Input and Output Impedances. Amplifier Types. Z out. Z in = AH( jω)

An amplifier increases the power (amplitude) of an

Summer 2015 Examination

1) Consider the circuit shown in figure below. Compute the output waveform for an input of 5kHz

CHARACTERIZATION OF OP-AMP

Chapter 10: Operational Amplifiers

Concepts to be Reviewed

Basic electronics Prof. T.S. Natarajan Department of Physics Indian Institute of Technology, Madras Lecture- 24

Homework Assignment 01

Electronics basics for MEMS and Microsensors course

Operational amplifiers

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

1. An engineer measures the (step response) rise time of an amplifier as. Estimate the 3-dB bandwidth of the amplifier. (2 points)

LM125 Precision Dual Tracking Regulator

Interface Electronic Circuits

Infrared Communications Lab

Transcription:

Operational amplifiers Bởi: Sy Hien Dinh INTRODUCTION Having learned the basic laws and theorems for circuit analysis, we are now ready to study an active circuit element of paramount importance: the operational amplifier or op amp for short. The op amp is a versatile circuit building block. The op amp is an electronic unit that behaves like a voltage-controlled voltage source. It can also be used in making a voltage or current controlled current source. An op amp can sum signal, amplify signal, integrate it, or differentiate it. The ability of the op amp to perform these mathematical operations is the reason it is called an operational amplifier. It is also the reason for the widespread use of op amps in analog design. Op amps are popular in practical circuit designs because they are versatile, inexpensive, ease to use, and fun to work with. We begin by discussing the ideal op amp and later consider the nonideal op amp. Using nodal analysis as a tool, we consider ideal op amp circuits such as the inverter, voltage follower, summer, and difference amplifier. Finally, we learn an op amp is used in digital-to-analog converters and instrumentation amplifiers. OPERATIONAL AMPLIFIERS An operational amplifier is designed so that it performs some mathematical operations when external components, such as resistors and capacitors, are connected to its terminals. Thus, An op amp is an active circuit element designed to perform mathematical operations of addition, substraction, multiplication, division, differentiation, and integration. The op amp is an electronic device consisting of a complex arrangement of resistors, transistors, capacitors, and diodes. A full discussion of what is inside the op amp is 1/27

beyond the scope of this block. It will suffice to treat the op amp as a circuit building block and simply study what takes place at its terminals. Op amps are commercially available in integrated circuit packages in several forms. [link] shows a typical op amp package. A typical one is the eight-pin dual in-line package (or DIP), shown in [link](a). Pin or terminal 8 is unused, and terminals 1 and 5 are of little concern to us. The five important terminals are: 1. The inverting input, pin 2, 2. The noninverting input, pin 3, 3. The output, pin 6, 4. The positive power supply V +, pin 7, 5. The negative power supply V, pin 4. A typical operational amplifier. The circuit symbol for the op amp is the triangle in [link](b); as shown, the op amp has two inputs and one output. The inputs are marked with minus (-) and plus (+) to specify inverting and noninverting inputs, respectively. An input applied to the to the noninverting terminal will appear with the same polarity at the output, while an input applied to the inverting terminal will appear inverted at the output. 2/27

A typical op amp: a) pin configuration, b) circuit symbol. As an active element, the op amp must be powered by a voltage supply as typically show in [link]. Although the power supplies are often ignored in op amp circuit diagrams for the sake of simplicity, the power supply currents must not be overlooked. By KCL, i 0 = i 1 + i 2 + i + + i The equivalent circuit model of an op amp is shown in [link]. The output section consists of a voltage-controlled source in series with the output resistance R0. It is evident from [link] that the input resistance g, is the Thevenin equivalent resistance seen at the input terminals, while the output resistance R 0 is the Thevenin equivalent resistance seen at the output. The differential input voltage v d is given by v d = v 2 v 1 Where v 1 is the voltage between the inverting terminal and ground and v 2 is the voltage between the noninverting terminal and ground. The op amp senses the difference between the two inputs, multiplies it by the gain A, and cause the resulting voltage to appear at the output. Thus, the output v 0 is given by v 0 = Av d = A(v 2 v 1 ) A is called the open-loop voltage gain because it is the gain of the op amp without any external feedback from output to input. [link] shows typical values of voltage gain A, input resistance R i, output resistance R 0, and supply voltage V CC. 3/27

Powering the op amp. Typical ranges for op amp parameters. Parameter Typical range Ideal values Open loop gain, A 10 5 to 10 8 Input resistance, R i 10 5 to 10 13 Ω Ω Output resistance, R 0 10 to 100 Ω 0 Ω Supply voltage, V CC 5 to 24 V The concept of feedback is crucial to our understanding of op amp circuits. A negative feedback is achieved when the output is fed back to the inverting terminal of the op amp. When there is a feedback path from output to input of the op amp, the ratio of the output voltage to the input voltage is called the closed loop gain. As a result of the negative feedback, it can be shown that the closed-loop gain is almost insensitive to the openloop gain A of the op amp. For this reason, op amps are used in circuit with feedback paths. 4/27

The equivalent circuit of the nonideal opamp. A practical limitation of the op amp is that the magnitude of its output voltage cannot exceed V CC. In other words, the output voltage is dependent on and is limited by the power supply voltage. [link] illustrates that the op amp can operate in three modes, depending on the differential input voltage v d : 1. Positive saturation, v 0 = V CC, 2. Linear region, V CC v 0 = Av d V CC, 3. Negative saturation, v 0 = V CC. 5/27

Op amp output voltage Vo as a function of the different input voltage Vd. Although we shall always operate the op amp in the linear region, the possibility of saturation must be borne in mind when one design with op amps, to avoid designing op amp circuits that will not work in the laboratory. IDEAL OPERATIONAL AMPLIFIERS To facilitate the understanding of op amp circuits, we will assume ideal op amp. An op amp is ideal if it has the following characteristics: 1. Infinite open loop gain, A, 2. Infinite input resistance, R i, 3. Zero output resistance, R i. An ideal op amp is an amplifier with infinite open-loop gain, infinite input resistance and zero output resistance. Although assuming an ideal op amp provides only approximate analysis, most modern amplifiers have such large gain and input impedance that the approximate analysis is a good one. Unless stated otherwise, we will assume from now on that every op amp is ideal. Ideal op amp model. For circuit analysis, the ideal op amp is illustrated in [link], which is derived from the nonideal model in [link]. Two important characteristics of the op amp are: 1. The current into both input terminals are zero: i 1 = 0 6/27

and i 2 = 0 This is due to infinite input resistance. An infinite resistance between the input terminals implies that an open circuit exists there and current cannot enter the op amp. But the output circuit is not necessary zero according to [link]. 2. The voltage across the input terminals is negligibly small; i.e., v d = v 2 v 1 0 Or v 2 = v 1 Thus, an ideal op amp has zero current into its two input terminals and negligibly small voltage between the two input terminals. [link] and [link] are extremely important and should be regarded as the key handles to analyzing op amp circuits. INVERTING AMPLIFIER In this and following sections, we consider some useful op amp circuits that often serve as modules for designing more complex circuits. The first of such op amp circuits is the inverting amplifier shown in [link]. In this circuit, the noninverting circuit is grounded. vi is connected to the inverting input through R i, and the feedback resistor R f is connected between the inverting input and output. Our goal is to obtain the relationship the input voltage vi and the output voltage v0. Applying KCL at node 1, i 1 = i 2 v i v 1 R i = v 1 v 0 R f But v 1 = v 2 = 0 for an ideal op amp, since the noninverting terminal is grounded. Hence, v i R i = v 0 R f Or v 0 = R f R i v i The voltage gain is A v = v 0 / v i = R f / R i. The designation of the circuit in [link] as an inverter arises from the negative sign. Thus, 7/27

An inverting amplifier reverses the polarity of the input signal while amplifying it. Note that the gain is the feedback resistance divided by the input resistance which means that the gain depends only on the external elements connected to the op amp. In view of [link], an equivalent circuit for the inverting amplifier is shown in [link]. The inverting amplifier is used, for example, in current to voltage converter. The inverting amplifier. NONINVERTING AMPLIFIER An equivalent circuit for the inverter in Figure 7. Another important application of the op amp is the noninverting amplifier shown in [link]. In this case, the input voltage v i is applied directly at the noninverting input terminal and resistor R i is connected between ground and the inverting terminal. We are interested in the output voltage and the voltage gain. Application of KCL at the inverting terminal gives i 1 = i 2 0 v 1 = v 1 v 0 R f But v 1 = v 2 = v i. [link] becomes 8/27

v i = v i v 0 R f Or v 0 = (1 + R f )v i The voltage gain is A v = v 0 / v i = 1 + R f /, which does not have a negative sign. Thus, the output has the same polarity as the input. A noninverting amplifier is an op amp circuit designed to provide a positive voltage gain. Again we notice that the gain depends only on the external resistors. The noninverting amplifier. Notice that if feedback resistor R f = 0 (short circuit) or = (open circuit) or both, the gain becomes 1. Under these conditions ( R f = 0 and = ), the circuit in [link] becomes that shown in [link], which is called a voltage follower (or unity gain amplifier) because the output follows the input. Thus, for a voltage follower v 0 = v i 9/27

The voltage follower. Such circuit has very high input impedance and is therefore useful as an intermediatestage (or buffer) amplifier to isolate one circuit from another as portrayed in [link]. The voltage follower minimizes interaction between the two stages and eliminates interstage loading. A voltage follower used to isolate two cascaded stages of a circuit. SUMMING AMPLIFIER Besides amplification, the op amp can perform addition and subtraction. The addition is performed by the summing amplifier covered in this section; the subtraction is performed by the difference amplifier covered in the next section. A summing amplifier is an op amp circuit that several inputs and produce an output that is the weighted sum of the inputs. The summing amplifier, shown in [link], is variation of the inverting amplifier. It takes advantage of the fact that the inverting configuration can handle many inputs at the same time. We keep in mind that the current entering each op amp input is zero. Applying KCL at node a gives 10/27

i = i 1 + i 2 + i 3 But i 1 = v 1 v a R,i 2 = v 2 v a 1 R 2 i 3 = v 3 v a R 3,i = v a v 0 R f We note that v a = 0 and substitute [link] into [link]. We get v 0 = ( R f v 1 + R f R 2 v 2 + R f R 3 v 3 ) Indicating that the output voltage is a weighted sum of the inputs. For this reason, the circuit in [link] is called a summer. Needless to say, the summer can have more than three inputs. DIFFERENCE AMPLIFIER The summing amplifier. Difference (or differential) amplifiers are used in various applications where there is need to amplify the difference between two input signals. They are first cousins of the instrumentation amplifier, the most useful and popular amplifier, which we will discuss in section 9. A difference amplifier is a device that amplifies the difference between two inputs but rejects any signals common to the two inputs. 11/27

Consider the op amp circuit shown in [link]. Keep in mind that zero currents enter the op amp terminals. Applying KCL to node a, v 1 v a = v a v 0 R 2 or v 0 = ( R 2 + 1)v a R 2 v 1 Applying KCL to node b, Difference amplifier. v 2 v b R 3 = v b 0 R 4 Or v b = R 4 R 3 + R 4 v 2 but v a = v b. Substituting [link] into [link] yields R 4 v 0 = ( R 2 R + 1) 1 R 3 + R v 2 R 2 4 R v 1 1 Or v 0 = R 2 (1 + / R 2 ) (1 + R 3 / R 4 ) v 2 R 2 v 1 12/27

Since a difference amplifier must reject a signal common to the two inputs, the amplifier must have the property that v 0 = 0 when v 1 = v 2. This property exists when R 2 = R 3 R 4 Thus, when the op amp circuit is a difference amplifier, [link] becomes v 0 = R 2 (v 2 v 1 ) Which indicated that this amplifier has a differential gain of A d R 2 /. This factor is a closed-loop differential gain. If R 2 = and R 3 = R 4, the difference amplifier becomes a substractor, with the output v 0 = (v 2 v 1 ) As previously stated, another important characteristic of electronic circuits is the input resistance. The differential input resistance of the differential amplifier can be determined using the circuit shown in [link]. In the Figure, we have imposed the condition given in [link] and have set = R 3 and R 2 = R 4. The input resistance is then defined as R i = v i i Taking into account the virtual short concept, we can write a loop equation, as follows: v i = i + i = 2(i ) Therefore, the input resistance is R i = 2 13/27

Circuit for measuring differential input resistance of op amp difference amplifier. In the ideal difference amplifier, the output v0 is zero when v 1 = v 2. However, an inspection of [link] shows that this condition is not satisfied if R 4 / R 3 R 2 /. When v 1 = v 2, the input is called a common mode input signal. The common mode input voltage is defined as v cm = ( v 1 + v 2 2 ) The common mode gain is then defined as A cm = v 0 v cm Ideally, when a common mode signal is applied, v 0 = 0 and A cm = 0. A nonzero common mode gain may be generated in actual op-amp circuits. A figure of merit for a difference amplifier is the common mode rejection ratio (CMRR), which is defined as the amplitude of the ratio of differential gain to common mode gain, or CMRR = / A d A cm / Usually, the CMRR is expressed in decibels, as follows: CMRR(dB) = 20log 10 / A d A cm / Ideally, the common mode rejection ratio is infinite. In an actual differential amplifier, we would like the common mode rejection ratio to be as large as possible. 14/27

CASCADED OP AMP CIRCUITS As we know, op amp circuits are modules or building blocks for designing complex circuits. It is necessary in practical applications to connect op amp circuits in cascade (i.e. head to tail) to achieve a large overall gain. In general, two circuits are cascaded when they are connected in tandem, one behind another in a single file. A cascade connection is a head to tail arrangement of two or more op amp circuits such that the output of one is the input of the next. When op amp circuits are cascaded, each circuit in the string is called a stage; one original input signal is increased by the gain of the individual stage. Op amp circuits have the advantage that they can be cascaded without changing their input-output relationships. This is due to the fact that each (ideal) op amp circuit has infinite input resistance and zero output resistance. [link] displays a block diagram representation of three op amp circuits in cascade. Since the output of one stage is the input to the next stage, the overall gain of the cascade connection is the product of the gain of the individual op amp circuits, or A = A 1 A 2 A 3 Although the cascade connection does not effect the op amp input-output relationships, care must be exercised in the design of an actual op amp circuit to ensure that the load due to the next stage in the cascade does not saturate the op amp. APPLICATIONS A three stage cascaded connection. The op amp is a fundamental building block in modern electronic instrumentation. It is used extensively in many devices, along with resistors and other passive elements. Its numerous practical applications include instrumentation amplifiers, digital to analog converters, analog computers, level shifters, filters, calibration circuits, inverters, summers, integrators, differentiators, substractors, logarithmic amplifiers, comparators, oscillators, rectifiers, regulators, voltage to current converters, current to voltage converters and clippers. Some of these we have already considered. We will consider four more applications here: the digital-to-analog converter, the instrumentation amplifier the log amplifier and anti-log amplifier. 15/27

Digital-to-Analog Converter The digital-to-analog converter (DAC) transforms digital signal into analog form. A typical example of a four-bit DAC is illustrated in [link](a). The four-bit DAC can be realized in many ways. A simple realization is the binary weighted ladder, shown in [link](b). The bits are weights according to the magnitude of their place value, by descending value of R f / R n so that each lesser bit has half the weight of the next higher. This is obviously an inverting summing amplifier. The output is related to the inputs as shown in [link]. Thus, V 0 = R f V 1 + R f R 2 V 2 + R f R 3 V 3 + R f R 4 V 4 Input V 1 is called the most significant bit (MSB), while input V 4 is the least significant bit (LSB). Each of the four binary inputs V 1,, V 4 can assume only two voltage levels, 0 or 1 V. By using the proper input and feedback resistor values, the DAC provides a single output that is proportional to the inputs. Four bits DAC: a) block diagram, b) binary weighted ladder type. 16/27

Instrumentation Amplifiers One of the most useful and versatile op amp circuits for precision measurement and process control is the instrumentation amplifier (IA), so called because of its widespread use in measurement systems. Typical applications of IA include isolation amplifiers, thermocouple amplifiers, and data acquisition systems. The instrumentation amplifier is an extension of the difference amplifier in that it amplifies the difference between its input signals. An instrumentation amplifier is shown in [link]. An instrumentation amplifier typically consists of three op amps and seven resistors. We recognize that the amplifier A 2 in [link]. is a difference amplifier. Thus, from [link]., v 0 = R 2 (v 02 v 01 ) Since the op amps A 1 and A 2 draw no current, current i flows through the three resistors as though they were in series. Hence, v 01 v 02 = i(r 3 + R 4 + R 3 ) = i(2r 3 + R 4 ) But i = v a v b R 4 17/27

Instrumentation amplifier. And v a = v 1, v b = v 2. Therefore, i = v 1 v 2 R 4 Inserting [link]. and [link] into [link] gives v 0 = R 2 (1 + 2R 3 R 4 )(v 2 v 1 ) For convenience, the amplifier is shown again in [link](a), where the resistors are made equal except for the external gain-setting resistor R 4 = R G, connected between the gain set terminals. [link](b) shows its schematic symbol. From [link] we have v 0 = A v (v 2 v 1 ) Where the voltage gain is A v = 1 + 2R R G 18/27

a) The instrumentation amplifier with an external resistance to adjust the gain, b) schematic diagram. As shown in [link], the instrumentation amplifier amplifies small differential signal voltages superimposed on larger common-mode voltages. Since the common-mode voltages are equal, they cancel each other. The IA has three major characteristics: 1. The voltage gain is adjusted by one external resistor R G. 2. The input impedance of both inputs is very high and does not vary as the gain is adjusted. 3. The output v 0 depends on the difference between the inputs v 1 and v 2, not on the voltage common to them (common mode voltage). Due to the widespread use of IAs, manufacturers have developed these amplifiers on single package units. A typical example is the LH0036, developed by National Semiconductor. The gain can be varied from 1 to 1,000 by an external resistor whose value may vary from 100 Ω to 10 k Ω. The IA rejects common voltages but amplifiers small signal voltages. 19/27

Log Amplifier In this chapter, we have used linear passive elements in conjunction with the op-amp. If a nonlinear device, such as a diode, is used with an op-amp, a nonlinear transfer function is produced. Consider the circuit in [link]. The diode is to be forward biased, so the input signal voltage is limited to positive values. The diode current is i D = I S[ e V D V T 1] If the diode is sufficiently forward biased, the (-1) term is negligible, and i D = I S e v D V T The input current can be written Simple log amplifier. i 1 = v i And the output voltage is given by v 0 = v D Noting that i 1 = i D, we can write v 0 i 1 = v i V R = i D = I s e T 1 If we take the natural log of both sides of this equation, we obtain ln v i I S = v 0 V T 20/27

v 0 = V T ln( v i I S ) [link] indicates that, for this circuit, the output voltage is proportional to the log of the input voltage. One disadvantage of this circuit is that the reverse-saturation current I S is a strong function of temperature, and it varies substantially from one diode to another. The reverse-saturation current in [link] is eliminated in the circuit shown in [link], which uses two bipolar transistors instead of a single diode. However, the circuit is considerably more complicated than the diode current in [link]. Op amp log amplifier. Before we begin the analysis, we must first consider the two transistors, Q 1 and Q 2. In order for the circuit to operate properly, the transistors must be biased in the active region. The collector current i C1 must therefore be positive, which implies that i 1 and v i must be positive. In turn, a positive input voltage v i means that the voltage v x at the inverting terminal is slightly positive, which produces a negative output voltage at v,. A negative v, forward biases both B-E junctions, and both Q 1 and Q 2 are biased in the active region. With Q 1 and Q 2 biased on, assuming Q 1 and Q 2 are matched and at the same temperature, the collector currents are i C1 = I S e And V BE1 V T 21/27

i C2 = I S e V BC2 V T where I S is reverse-saturation current in each transistor. If we take the natural log of both equations, we have lni C1 = lni S + v BE1 V T And lni C1 = lni S + v BE1 V T The B-E voltage of each transistor is then v BE1 = V T[lni C1 lni S] And v BE2 = V T[lni C2 lni S] For the noninverting terminal of op-amp A 2, the input voltage with respect to ground is found by writing a KVL equation through the B-E junctions of Q 1 and Q 2, as follows: v 0i = v BE2 v BE1 Substituting [link] and [link] into [link], we obtain v 01 = V T [(ni C2 lni S ) (lni C1 lni S ) Or v 01 = V T[lni C2 lni C1] = V T ln( i C1 i C2 ) Collector current i C1 is equal to i 1 ; therefore, i C1 = i 1 = v i Neglecting the transistor base currents, collector current i C2 is i C2 = V R (v EB2 v EB1 ) R 2 22/27

where V R is a reference voltage. Usually, we assume that v BE2 v BE1 <<V R therefore, i C2 = V R R 2 Input voltage v 01 to op-amp A 2 is now v 01 = V T ln( i C1 i C2 ) = V T ln[( v i )( R 2 V R ) Since op-amp A 2 is a non-inverting amplifier, we have v 0 = (1 + R 4 / R 3 )v 0i Which becomes v 0 = V T (1 + R 4 R 3 )ln[( v i )( R 2 V R )] For this circuit, the output voltage is directly proportional to the log of the input voltage. Note that the reverse-saturation currents for the two transistors cancel each other, which was one objective of this circuit. Experimentally, the circuit in [link] performs the log function over approximately four orders of magnitude of the input voltage, generally in the range of 2 mv < vi < 20 V. To summarize the operation of the circuit in [link], we see from [link] that the collector current i C2 is essentially constant. A constant collector current implies a constant B-E voltage, that is, v BE2 = constant. On the other hand, input current i 1 is directly proportional to input voltage v i and, since i 1 = i C1, collector current i C1 is directly proportional to its corresponding input voltage. In this circuit, we apply a collector current i C1 and determine the resulting B-E voltage v BE1. Since v BE2 is a constant, input voltage v 01 to opamp A 2 is a direct function of v BE1, which in turn is proportional to the log of the input voltage. Anti-log Amplifier The complement, or inverse function, of the log amplifier is the anti-log or exponential amplifier, shown in [link]. The analysis for this circuit is similar to that of the log amplifier. 23/27

Op amp expomemtial or anti log amplifier. At the non-inverting terminal of A 1, we have R 3 v Y = ( R 3 + R )v i 4 [link] is that of a simple voltage divider, neglecting the base current into Q 1. The voltage at the non-inverting terminal of A 1 can also be written v γ = v BE1 v BE2 Comparing [link] to [link] and [link], we see that v Y = V T ln( i C1 i C2 ) Collector current i C1 is i C1 = V R v X R 2 = V R R 2 where v X = v Y = v BE1 v BE2 and we assume v BE1 v BE2 <<V R 24/27

Collector current i C2 can be written in terms of the output voltage, as follows: i C2 = v 0 Substituting the expressions for i C1 and i C2 into [link] and equating the two expressions for v Y from [link] and [link], we can write ( R 3 R 3 + R )v i = V T ln[( V R 4 R )( 2 v )] 0 Solving for the log function, we have R 3 ln[( V R R )( 2 v )] = ( 0 R 3 + R )( v i 4 V T ) Taking the exponential of both sides, we obtain [( V R R 2 )( v 0 )] = e ( R 3 )( v i ) R 3 + R 4 V T Finally, we have the output voltage, as follows: v 0 = V R ( R )e [ ( 2 R 3 )( v i )] R 3 + R 4 V T For this circuit, the output voltage is an exponential function of the input voltage. SUMMARY 1. The op amp is a high-gain amplifier that has high input resistance and low output resistance. Summary of basic op amp circuits. 25/27

Summary of basic op amp circuits. 1. Table 3 summaries the op amp circuits considered in this chapter. The expression for the gain of each amplifier circuit holds whether the inputs are dc, ac, or time-varying in general. 2. An ideal op amp has an infinite input resistance, a zero output resistance, and an infinite gain. 3. For an ideal op amp, the current into each of its two input terminals is zero, and the voltage across its input terminals is negligibly small. 4. In an inverting amplifier, the output voltage is a negative multiple of the input. 5. In a non-inverting amplifier, the output is a positive multiple of the input. 6. In a voltage follower, the output follows the input. 26/27

7. In a summing amplifier, the output is the weighted sum of the inputs. 8. In a difference amplifier, the output is proportional to the difference of the two inputs. 9. Op amp circuits may be cascaded without changing their input-output relationships. 10. Typical applications of the op amp considered in this chapter include the digital-to-analog converter, the instrumentation amplifier, log amplifier and anti-log amplifier. 27/27