Operational Amplifiers
Table of Contents
1. Operational Amplifiers
Operational amplifiers, or op-amps (OPA) are the workhorse of analog applications. The following is an example of the symbol of an op-amp:
Important properties of op-amps include gain, input impedance, output impedance, bandwidth, and linearity. Op-amps typically have high input impedance and low output impedance:
| Parameter | Typical Value |
|---|---|
| Open-loop gain (\(A\)) | \(10^4\) to \(10^8\) |
| Input impedance (\(R_{\text{in}}\)) | \(10^6 \Omega\) to \(10^{13} \Omega\) |
| Output impedance (\(R_{\text{out}}\)) | \(1 \Omega\) to \(100 \Omega\) |
1.1. Dependent Source Model
While real operational amplifiers often require a lot of complicated components to work, we can use a dependent-source model to approximately model the linear behavior of an op-amp:
Here, \(V_{\text{in}} = v_p - v_n\), and \(A\) is our open-loop gain.
1.2. Input Impedance
To determine input impedance, we can:
- Leave the output open.
- Apply a test voltage, \(v_x\), to the input.
- Measure the current, \(i_x\), going out of \(v_x\).
- Compute \(R_i = \frac{v_x}{i_x}\).
Or, we can use the voltage divider:
\begin{align} v_p &= v_s\frac{R_i}{R_s+R_i} \notag \\ \frac{v_p}{v_s} &= \frac{R_i}{R_s+R_i} \notag \\ v_pR_s + v_pR_i &= v_sR_i \notag \\ (v_s-v_p)R_i &= v_pR_s \notag \end{align}Then, the input impedance is:
\begin{align} \boxed{R_i = \frac{v_p}{v_s-v_p}R_s} \end{align}1.3. Output Impedance
To determine output impedance, we can:
- Replace the input with a short to ground.
- Attach a test voltage \(v_x\) to the output.
- Measure the resulting current \(i_x\).
- Compute \(R_o = \frac{v_x}{i_x}\).
2. Ideal Op-Amp
An ideal OPA has several properties that make analyzing the device easier. Firstly, the input impedance is infinite, which means that no current flows into the input terminals:
\begin{align} R_i = \infty \Rightarrow \boxed{i_p = i_n = 0} \end{align}Second, the output impedance is zero, which means it can supply high current:
\begin{align} R_o = 0 \end{align}Third, the open-loop gain is infinite, which means the voltages \(v_p\) and \(v_n\) are equal (a virtual short):
\begin{align} A = \infty \Rightarrow \boxed{v_p = v_n} \end{align}Note that this is only true when negative feedback is in use.
Finally, an ideal op-amp has infinite bandwidth, which means it can amplify all voltages and frequencies without distortion or noise:
\begin{align} \Delta f = \infty \end{align}2.1. Feedback
Practically, in a real op-amp, we can make \(A\) very large, but not very precise. Our goal is to design an OPA circuit that is “immune” to the precise value of \(A\). Consider the following circuit that incorporates a negative feedback loop:
Here, \(x_o = Ax_i\), \(x_i = x_s-x_f\), and \(x_f = \beta x_0\). Then, we want to find the gain \(G = \frac{x_0}{x_s}\):
\begin{align} x_0 &= A(x_s-\beta x_o) \notag \\ \frac{x_0}{A} &= x_s-\beta x_0 \notag \\ \frac{x_0}{A}+\beta x_0 &= x_s \notag \\ \left(\frac{A\beta + 1}{A}\right)x_0 &= x_s \notag \end{align}Then, the gain can be found by:
\begin{align} G = \frac{x_0}{x_s} = \frac{A}{1+A\beta} = \frac{1}{\frac{1}{A} + \beta} \approx \frac{1}{1 + \beta} \notag \end{align}This approximation works for sufficiently large \(A\).
3. Op-Amp Circuits
3.1. Inverting Amplifier
The following circuit is an inverting amplifier:
KCL tells us that \(i_1 + i_2 - i_n = 0\). Recall that for an ideal OPA, \(i_n=i_p=0\), which means that \(i_1+i_2=0\). Then, expanding \(i_1\) and \(i_2\) using voltages, we get:
\begin{align} \frac{v_i-v_n}{R_i} + \frac{v_o-v_n}{R_f} = 0 \notag \end{align}Since \(v_p = 0\), we know that by virtual ground \(v_n=0\). Then,
\begin{align} \frac{v_i}{R_i} + \frac{v_o}{R_f} &= 0 \notag \\ \frac{v_o}{R_f} &= -\frac{v_i}{R_i} \notag \end{align}Then, our gain is:
\begin{align} G = -\frac{R_f}{R_i} \notag \end{align}Notice that since our gain is negative, the circuit flips the polarity of the input signal, which is why this circuit is called an inverting amplifier.
3.2. Non-Inverting Amplifier
The following circuit is a non-inverting amplifier:
Recall that for an ideal op-amp, \(i_p=0\), which means that \(v_p=v_s\). Additionally, \(v_p=v_n\), which means that \(v_n=v_s\). By the voltage divider, we know that:
\begin{align} v_n = v_o\frac{R_2}{R_1+R_2} = v_s \notag \end{align}Since gain \(G\) is \(\frac{v_o}{v_s}\), we have:
\begin{align} G = \frac{R_1+R_2}{R_2} = 1 + \frac{R_1}{R_2} \notag \end{align}Notice that for this amplifier, this gain must be greater than one.
3.3. Unity-Gain Amplifier
The following circuit is a unity-gain amplifier, which is also known as a buffer or follower:
Analyzing with an ideal op-amp, we realize that this ampilfier satisfies:
\begin{align} v_o=v_n=v_p=v_i \notag \end{align}This circuit is often used as a buffer with cascaded filters. Consider the following circuit with a low-pass filter cascaded with a high-pass filter:
We want \(v_{\text{LPF}} = \frac{Z_{C1}}{R_1+Z_{C1}}v_i\). But, the later high-pass filter means that the math changes for every component that we add thereafter. We can solve this by adding a buffer between the two filters.
3.4. Summing Amplifier
We can add two voltages \(v_1\) and \(v_2\) with a summing amplifier circuit:
Using superposition and considering each voltage source separately, we get the following two equations:
\begin{align} v_o &= -\frac{R_f}{R_1}v_1 \notag \\ v_o &= -\frac{R_f}{R_2}v_2 \notag \end{align}Combining, we have:
\begin{align} v_o = -\frac{R_f}{R_1}v_1 - \frac{R_f}{R_2}v_2 \notag \end{align}Realize that this builds off of the inverting amplifier. Specifically, if \(R_f = R_1 = R_2\), we have:
\begin{align} v_o = -(v_1 + v_2) \notag \end{align}which is the inverted sum of the two voltages.
3.5. Differentiator
We can also build a differentiator circuit, which takes the derivative of a signal:
We know that since \(v_n=v_p=0\), we have:
\begin{align} \frac{v_n-v_o}{R_f} &= i_2 \notag \\ v_o &= -i_2R_f \notag \end{align}Additionally, \(i_1=i_2 = C\frac{\text{d}v_i}{\text{d}t}\). Since \(v_o = -i_2R_f\), we have:
\begin{align} v_o = -R_fC\frac{\text{d}v_i}{\text{d}t} \notag \end{align}3.6. Integrator
We can also take the integral of a signal with the following circuit:
We know that \(v_n=v_p=0\). Then,
\begin{align} i_2 &= C\frac{\text{d}}{\text{d}t}(v_n-v_o) \notag \\ &= -C\frac{\text{d}v_o}{\text{d}t} \notag \end{align}We also know that:
\begin{align} i_1 = \frac{v_i-v_n}{R} = \frac{v_i}{R} \notag \end{align}Since \(i_1=i_2\), we have:
\begin{align} \frac{v_i}{R} &= -C\frac{\text{d}v_o}{\text{d}t} \notag \\ \frac{\text{d}v_o}{\text{d}t} &= -\frac{v_i}{RC} \notag \end{align}Thus, we find that the output voltage is:
\begin{align} v_o = -\frac{1}{RC} \int v_i \text{ d}t \notag \end{align}3.7. Instrumentation Amplifier
The instrumentation amplifier (INA) circuit is used to amplify the difference between two signals:
Using superposition, we get the following two equations:
\begin{align} v_o &= -\frac{R_4}{R_3}v_2 \notag \\ v_n &= v_p = \frac{R_2}{R_1+R_2}v_1 \notag \end{align}We know that \(i_3=i_4\) and \(i_n=i_p\), so we have:
\begin{align} \frac{v_2-v_n}{R_3} = \frac{v_n - v_o}{R_4} \Rightarrow v_2 = \frac{R_3+R_4}{R_4}v_n - \frac{R_3}{R_4}v_o \notag \end{align}But \(v_2 = 0\), so we have:
\begin{align} v_o &= \frac{R_3+R_4}{R_3} v_n \notag \\ &= \frac{R_3+R_4}{R_3} \cdot \frac{R_2}{R_1+R_2} v_1 \notag \end{align}Combining superposition, we get:
\begin{align} v_o = \frac{R_3+R_4}{R_3} \cdot \frac{R_2}{R_1+R_2} v_1 - \frac{R_4}{R_3}v_2 \notag \end{align}If we equate the coefficients, we find that if \(R_2R_3 = R_1R_4\), we get:
\begin{align} v_o = \frac{R_4}{R_3}(v_1-v_2) \notag \end{align}