Episode 8
Op-Amps: Two Rules for Amplifiers and Integrators
Build a ten-times amplifier with an op-amp. Learn negative feedback and the two ideal rules, then derive the follower, non-inverting amplifier, inverting amplifier, and integrator. Look inside a CMOS op-amp to see how finite gain, loading, bandwidth, output swing, and offset limit real circuits.
1Introduction: build a ten-times amplifier
Zundamon
My lab assignment's in trouble, nanoda! "Build a gain-of-10 amplifier with an op-amp."

Zundamon
I've heard of op-amps, nanoda! They're in all kinds of circuits!

ZundamonQuestion
But I only know the triangle symbol. Can I use one, nanoda?


2What is an op-amp? Amplifying the input difference




ZundamonQuestion
Only the difference, nanoda? What if both inputs rise by 1 V?




Zundamon
With 100,000, a gain of 10 is a piece of cake, nanoda!



Zundamon
So all it can do is amplify by 100,000? That's hard to use, nanoda...
Zundamon: Then why is such a hard-to-use part used everywhere, nanoda?



3Negative feedback and the virtual short: two rules
Zundamon
I know feedback, nanoda! Look at the result and use it next time.



Zundamon
Check the temperature, adjust to fix the error, nanoda! I do that every morning!

ZundamonQuestion
Won't feeding the output back go round and round and run wild, nanoda?



Zundamon
Too high or too low, it gets pushed back, and settles at 1 V, nanoda!






ZundamonQuestion
A short means joining two points with a wire, nanoda? Are the inputs connected?


Zundamon
Not a real wire, just an apparent short made by negative feedback, nanoda!



ZundamonQuestion
Is it negative feedback that keeps current out of the input too, nanoda?


Zundamon
Only two rules, nanoda! I want to solve circuits with them!
4Voltage followers and non-inverting amplifiers


Zundamon
If one procedure solves them all, there's less to memorize, nanoda!

ZundamonQuestion
If it just outputs the same voltage, what's the point of connecting it, nanoda?




Zundamon
Same voltage, and the op-amp does the heavy lifting, nanoda! That's a buffer!


ZundamonQuestion
You shrink the output you worked for and feed it back, nanoda? That amplifies?



Zundamon
With Rg=10 kΩ and Rf=90 kΩ, it's 10 times, nanoda! 0.1 V becomes 1 V!



5Inverting amplifiers and integrators
ZundamonQuestion
This time the − input isn't grounded, nanoda. How is its voltage decided?







Zundamon
With Rin=10 kΩ, Rf=100 kΩ, 0.1 V in: 10 µA flows, output −1 V, nanoda!




ZundamonQuestion
Can a capacitor really integrate, nanoda?




Zundamon
The current piles up as charge in C. That's why it integrates, nanoda!

Zundamon
A square wave, + and − of equal size and time, becomes a triangle wave, nanoda!






Zundamon
Fix voltage and current with two rules, then solve with resistor and capacitor equations!

6Inside CMOS: from a differential pair to two stages
ZundamonQuestion
But what's inside the triangle, nanoda? Is the gain really 100,000?





ZundamonQuestion
Wow, episode 7's circuit is the inside of the triangle, nanoda?






Zundamon
8.3 times, nanoda?! That's nowhere near the assignment's 10!






Zundamon
From 8.3 to 9.97! Adding a stage brought it right up toward 10, nanoda!

Zundamon
Still, it doesn't reach a general-purpose part's 100,000.






7Bandwidth, output swing, and offset limits


ZundamonQuestion
Huh? Isn't it always 3500, nanoda?






Zundamon
At a gain of 100, bandwidth is about 1.1 MHz. Gain and bandwidth trade off, nanoda!

Zundamon
0.1 V times 10 is 1 V. With this inside, it can't cleanly do 10 times, nanoda!






Zundamon
The input is 0, yet the output runs off to the edge and sticks, nanoda!






8Summary: using an op-amp and understanding its internals

Zundamon
Infinite gain and input impedance give equal input voltages and zero input current. Real parts only approximate that, nanoda!

Zundamon
10× from a resistor ratio, then check bandwidth and range. Now I can write the report!


Zundamon
Thanks for reading, nanoda!