OPERATIONAL AMPLIFIERS and FEEDBACK 2. ABOUT ...

63 downloads 176 Views 470KB Size Report
Operational amplifiers, or op-amps, form the basic building blocks of analog .... R. F. Coughlin and F. F. Driscoll, “Operational Amplifiers and Linear Integrated.
Lab Notes

A. La Rosa

OPERATIONAL AMPLIFIERS and FEEDBACK ___________________________________________________________ 1. THE ROLE OF OPERATIONAL AMPLIFIERS A typical digital data acquisition system uses a transducer (sensor) to convert a physical property measurement (piezoelectric, optical, or temperature response) into an electrical signal (voltage, or current). The signal level from the sensors’ output, however, are typically very low (micro or nano volts) and, thus, not suitable for direct input into a computer or microcontroller (volts). A conditioning circuit composed of operational amplifiers is then use for that purpose (see diagram below.) Very important, the amplifier should be placed as close as possible to the sensor in order to minimize the amplification of noise picked-up by an otherwise long cable. Placed very close to each other

Sensor Transducer converts a physical parameter to an electrical signal

Signal conditioning circuit

A/D

Interface using op amps and other ICs

CPU + Memory

Ouput ports

Microcontroller

Fig. 1 Operational amplifiers in a typical data acquisition system.

2. ABOUT OPERATIONAL AMPLIFIERS Operational amplifiers, or op-amps, form the basic building blocks of analog electronic circuits, much as NOR and NAND gates provide the building blocks of digital circuits. They are widely used to amplify dc or ac signals.

2.1 Differential input In a circuit board layout, a triangle represents an op-amp (see Fig. 2.) Notice its differential input-voltage feature. vout = AOL( vin(+) - vin(-)) (1)

AOL is referred to as the open loop voltage gain.

vin(-)

-

AOL vin(+)

vout

+

Fig.. 2 Typical representation of an op amp, displaying the differential input voltage as a distinct feature.

2.2 Terminals connections Op amps come in a variety of packages. Figure 3 shows the pin terminals for the particular LM358AP op amp that we will use in this lab session. 1 Differential input voltage

vin(-)

+VCC Positive supply

vin(+)

-VCC

Negative supply

2

-

7

3

+

6

4

vout

+

-VCC

Fig. 3 Left: Op-amp terminals. Right: Pin assignment for the dual op-amp LM358AP. We will use VCC = 12 Volts.

2.3 Open loop gain voltage AOL As indicated in expression (1) above, an operational amplifier is characteristic for producing an output voltage

vout

vout

proportional to the difference of the two input

+VCC For VCC = 12V and A=105 +VCC/A = 120 V

-VCC /A

+VCC /A

-VCC Amplifying region

Fig. 4 Output vs input voltages.

(v+ - v- )

8

voltage vin (+) and vin (-). The proportionality factor is called the open loop voltage gain of the amplifier. In actuality depends on the frequency of the input signals,

AOL = AOL() AOL remains fairly constant (on a Bode plot) only over a limited low frequency range see also

5

Fig. 5 below.

2.4 How fast does an op amp respond? 2.4.A Gain-bandwidth product The output voltage changes in response to differences in the input voltages according to,

d vout  T (vin(  )  vin(  ) ) dt

(3)

where fT  T / 2 is the gain-bandwidth product of the amplifier. 1 Typical values of f T are 0.7 MHz (LM358AP), 8 MHz (OP27), 63 MHz (OP37). The parameter f T can be identified in the gain-frequency bode plot as the frequency at which the gain is 1 (i.e. zero dB). A particularly simple voltage gain vs frequency is presented in Fig. 5.

Voltage Gain (in dB)

Gain (in dB)

100

Open loop voltage gain

80

Low-pass_unity-gain-Bandwidth

60 40

f

20

3dB

0 10

0

10

1

10

2

10

3

10

Frequency

4

10

5

10

6

10

7

fT Unity-gain

bandwidth Fig.5 Particular simple open-loop voltage gain vs frequency. It displays a 1 MHz unity gain bandwidth.

2.4.B Slew rate2 The slew rate is another parameter used to characterize the speed response of an op amp. It depends on many factors: the amplifier gain, compensating capacitors, and even whether the output voltage is going positive or negative. 3 The slew rate will lowest at the “unity gain” (0.3 V/s for the LM358AP), increasing to ~ 30 times for x100 gain.

A variety of op amp offer different slew rated slew rate values: 15 V/s (411), 100 V/s (high speed op amps); even 6000 V/s ! (LH0063C)

Because of the limited slew rate, the maximum undistorted sinewave output swing drops above a certain frequency. A sine-wave of frequency f hertz and amplitude A volts requires a slew rate of at least 2fA.

Maximun slew rate 3 V/s

+15 V

time

-15 V

fmax= 34 KHz

Fig. 6 Limited maximum input frequency imposed by the slew rate

Fig. 6 helps explain the output voltage swing vs frequency displayed in Fig. 7.

30 Pk-to-pk voltage swing 15 (V)

Drops as 1/f

0 1k

10k

100k

1M

10M

Frequency (Hz) Fig. 7 Output swing vs frequency (LF411, 15 V/s slew rate).

2.5 What is there inside an op amp? A typical op-amp is an amplifier containing dozens or transistors, diodes, resistors and capacitors (see Fig. 8). Originally, they contained only bi-polar transistors, but nowadays some use field-effect transistors. By comparison,

the latter draws vary little current from the inputs during the operation of the device.

Fig. 8 Block diagram of the LM358AP op-amp

3. OP AMP MODEL Given the high input-impedance and low output-impedance of the op amp, the diagram displayed in Fig. 9 is typically used as a working model to characterize its functioning.

vin(-) vin(+)

AOL(v+ - v- )

ii+

Ri

Ro

AOL ~ 105 to 106 But actually AOL= AOL ()

vout Ro ~ 10 to 100 

+ Ri > 10 M

i - , i+

~ 20 nA for the LM358AP ~ pA for op amps with FET-input types

Fig. 9 Op-amp model. 4

Fig. 9 also shows schematically input bias currents i+ and i- that the op amp draws from the input terminals vin(+) and vin(-)), respectively. These

currents help to provide the proper biasing voltages that the internal transistors (see Fig. 8) need to operate properly under static or dynamic conditions. The order of magnitude of the input bias currents range from A (general purpose op amps), ~ 20 nA for the LM358AP, to pA or less for op amps with FET at the input. The input bias currents i+ and i- are usually not equal. (Once you buy a op amp, you will try to design a circuit as symmetric as possible as to make these input currents as small as possible. This is obtained, for example, by making the impedance from each input terminal to ground equal.) The difference of their magnitudes, ‫׀‬i+‫ ׀‬and ‫׀‬i-‫׀‬, is called the input offset current.( ~2 nA for the LM358AP.)

In preparation … 4. GAIN and PHASE SHIFT vs FREQUENCY 5. FEEDBACK AMPLIFIER FREQUENCY COMPENSATION 20*Log(Vout/Vin)

0

0

Phase

-15

-10

Low-pass-IN_RC_UNITS_DATA

in

/V )

-3 dB

20 Log( V

6dB /octave

PHASE

-30

-40

-45 20dB /decade -60

-50

-75

-30

-60 0.01f 3dB

Phase

out

-20

-90 0.1 f

3dB

1f 3dB

10 f

3dB

100 f

3dB

Frequency

1

(Page 5). Chapter 1 “Electronics Design of the Patch Clamp” by F. J. Sigworth; in B. Sakmann and E. Neher, Editors “Single Channel Recording, Editors; Plenum Press 1983. 2 (Page 192). Horowitz and Hill, 2nd Ed. 3 (Page 285). R. F. Coughlin and F. F. Driscoll, “Operational Amplifiers and Linear Integrated Circuits, “ 6th Ed. Prentice Hall, 2001. 4 (Page 246). J. R. Cogdell, “ Foundations of Electronics,”Prentice Hall