Hacker News new | past | comments | ask | show | jobs | submit login
Linear Circuit Design Handbook (2008) (analog.com)
101 points by mindcrime on July 16, 2021 | hide | past | favorite | 37 comments



No one will ever be able to explain op-amps to me satisfactorily. I am too dense. But I am endlessly fascinated by them. Analog circuits have (re)kindled a love for electronics in me.


If watching videos is compatible with your learning style then i highly recommend this whole series on Youtube about Op-Amps, the channel is called RSD-Academy.

This dude explained-it so well that i was astonished as to why i didn't 'get' before.

[the first video you can skip to 1:45] <https://www.youtube.com/watch?v=7OuUiwI8fDk>

[the whole series] <https://www.youtube.com/playlist?list=PLL_nf1OmixTTd7rEoqoM6...>

There is also Dave Jones' op-amp tutorial at EEVBlog (if you like Aussie accents and a bit more detailed/technical explanation yet still targeted at beginners) <https://www.youtube.com/watch?v=7FYHt5XviKc>


Thank you for posting the RSDAcademy channel, you just earned him a new paid subscriber :) His content is a true gem and has finally helped me understand basic concepts like in no other place.


My college didn't have an engineering department, but we took electronics as physics majors, using The Art of Electronics. The rules that we learned in class work for a large number of op amp circuits:

1. The inputs draw no current

2. If there is negative feedback present, the output will do whatever is necessary to render the two inputs equal

So you can write the equations for the voltages at the two inputs, include an equation that sets them equal, and solve for the output. To handle circuits like filters, you have to solve using complex numbers. This will be good enough to derive the design formulas in the handbooks.

These days, a third good rule is:

3. Buy an op amp that works as well as needed to obey rules 1 and 2 in your application. Op amps have made huge strides in terms of functionality and ease of design since I was in college 4 decades ago.


The Art of Electronics introduced me to Transistor Man, who helpfully explained some of the more opaque topics with "there's a demon doin it" until the theory made more sense after learning more details https://electronics.stackexchange.com/a/476734


If you want to understand the fundamental principles of how op-amps and electric circuits work, I recommend learning the basic principles of elementary particles, electric charge, electric fields, and electromagnetic force, without diving into the mathematics behind them.

It's easier to understand analog circuits without knowing the above because you are dealing with concrete components that abstract a lot of details away from you.

What drove me down this path is when one day I asked myself what is voltage? Why do they use the water pressure example to explain it? We are familiar with V = IR but that doesn't explain what voltage is just like an apple falling on the ground doesn't explain gravitational force.

Don't be surprised if this journey takes you down to quantum mechanics.


> learning the basic principles of elementary particles, electric charge, electric fields, and electromagnetic force, without diving into the mathematics behind them

I cannot emphasize this enough for those who have a "water in a pipe" mental model of DC electric circuits but struggle to intuitively grasp AC and RF concepts like filters, fields, transformers, antennas, or even buck/boost converters. Once you're able to mentally reduce some of these circuits to an understanding of the forces upon a single electron at any point in the circuit at any point in time, you being to be able to create your own designs rather than relying on the examples of others.


exactly. this field of education needs a big revamp.


can you recommend any books on this subject?


The way I keep it in my pocket is: The op-amp subtracts the voltage of both inputs, multiplies the result by infinite, and presents it as the output voltage (limited by the power supply).

When you calculate this with the feedbacks, it makes sense.


I never liked this explanation alone.

The full explanation is that the + and - terminals are a virtual short. Negative feedback will try to set the + and - terminals to the same voltage but no current flows between the two locations.

The amount of current (and the limitations of voltages) are set by the quality of the opamp. Better opamps have closer voltages at faster speeds at better currents.

Cheaper opamps will have a bit of error and diverge from the model. The delay can be largely modeled by capacitance over the + and - terminals (among other models of opamp errors)

But even a cheap opamp will keep the + and - sides within .05 Volts or so under typical circumstances.


One small trap: current never (in normal cases; yes, I know about the antiparallel diodes and how to deal with/avoid them...) actually flows between the input terminals, it flows to the rails. So you will not, except by sheer luck, get 10nA into the (+) terminal and 10nA out of the (-) terminal. You will get 10nA into the (+) terminal and 4nA into the (-) terminal, both returned to VEE.


All true, but I never liked this explanation. How do you use it to analyze a given circuit?

With the infinite gain concept you can use a limit to calculate the behavior of any circuit.


With virtual short method you set + and - terminals to the same voltage but 0 current between them.

This is only true for negative feedback cases but that's the most common case.

It is easier in most cases than infinite gain model IMO. Once you have voltage and current of that location figured out, everything else in the circuit is solvable by freshman level analysis.


This is one of the best explanations of op amps: https://www.ti.com/lit/an/sboa092b/sboa092b.pdf?ts=162646149...


Strange, op-amps (if you don't dive into pushing them to their limits, and if you steer clear of trying to understand how they are implemented) are actually a lot simpler to grok than - say - an NPN transistor.


Well.... yes, and. If you think of an NPN transistor as a current-operated switch (e.g. to drive an LED or relay), then you can have a pretty simple model of said NPN transistor. If you want to make a low-noise PIN diode photodetector amplifier with an op amp, you want to understand noise per root Hz, input offset voltages, variations with temperature, gain, frequency and phase response, and so much more. So, as is often the case in Engineering: It Depends...


Bipolar (NPN and PNP) circuits can be analyzed by applying the following rules:

1. If current flows through the base-emitter junction, then there is a voltage of roughly 0.6 V across that junction.

2. The collector current is roughly proportional to the base current, by the beta constant, which is about 10 for big transistors and 100 for little ones.

There are some rare textbook cases such as logarithmic amplifiers that just have to be looked up, following the Ebers-Moll equation.

As for FETs... once you get the type correct (P or N type, enhancement or depletion mode, which I still have to look up or find an example circuit), gate-source voltage is constant, gate current is zero, and the drain current equals the source current.

As for vacuum triodes... they behave much like N type JFETs.

You can check your analysis of any of these circuits using the wonderful LTSpice.


> You can check your analysis of any of these circuits using the wonderful LTSpice.

I agree that LTSpice is wonderful. It would be even more wonderful if it was open sourced.

But because it's been closed source, it has basically stagnated for the past 10 years.

But then, this whole notion of sharing your blueprints and designs with the whole world so the whole world can improve them is such a gigantic impedance mismatch with the culture of the EE crowd in general that its quite unlikely to ever happen.


> As for FETs... once you get the type correct (P or N type, enhancement or depletion mode, which I still have to look up or find an example circuit)

I used to have this problem too. Turns out it's easier to work with than you think: the symbol actually describes things pretty well.

(This ought to be illustrated, but unfortunately I haven't got the time for that.)

JFETs are pretty easy. They're always depletion devices, so their channel always starts conducting: it's solid on the symbol. The gate is directly connected to the channel, so it touches, it's symmetrical, so we draw the gate in the center (though I will draw it near one terminal if I am trying to communicate "hey reader, this one is the source, look at it first"), and there's a "diode arrow" that has either N-type material at the channel end (N-channel part!) or P-type material at the channel end (P-channel part!).

MOSFETs are more confusing, but it still isn't bad. They're actually four-terminal devices; we'll add the body in a moment. But their defining feature is that insulated gate, so we can show that by pulling the gate away from the channel, drawing it as a solid line running parallel to the channel. The gate comes off it next to the source, to reinforce the idea that V_GS is the controlling voltage here.

The body (also called bulk or substrate, though be careful with that last one as it is not actually the substrate in all processes) is what the channel gets formed out of, so let's add the body terminal as coming out of the middle of the channel. The body diode is now formed between the channel and the body proper. We draw it relative to the channel: for N-channel parts, draw the "diode arrow" with the N-type material at the channel and the P-type material at the body terminal, or vice versa for a P-channel part.

The body gets tied off to the source in the vast, vast majority of MOSFETs (and indeed this sometimes is part of what singles out one terminal as the source), so we can do that right now by drawing a line between them. We've now made everything we need to draw the symbol of or to explain a depletion MOSFET that works rather like the JFETs previously discussed.

But most MOSFETs aren't depletion mode, they're enhancement mode. And so we indicate that by drawing the channel as a dashed line, rather than solid. Since there are three terminals, attached to the channel, D, B, and S, we draw the channel as three dashes, one for each terminal.

Now we're done. Walking through that exercise really helped me understand just what these critters are inside and why we draw them the way we do. I hope it helps someone else, too. And I especially hope it might inspire any analog designer who doesn't draw things correctly, perhaps preferring the simplified symbols created by the simplified disciplines (cough digital cough) who can ignore that such things as "linear mode" operation even exist, to draw things using the correct symbols, which are complicated because they tell a rather complicated device's story.

(Bonus factoid: ever wonder why P-channel depletion MOSFETs don't exist? As far as I've been able to put together, they do exist. It's just that when you try to manufacture them in the usual processes, the process inevitably causes you to end up with charge trapped under the gate... which turns the poor things off for you. So they're back to being enhancement mode! This effect doesn't bother N-channel parts, since it happens to try to turn them on. I believe this effect can be overcome with careful process control, but no one thinks it would be profitable to bring discrete devices into mass manufacturing. A few integrated parts with P-channel depletion FETs inside have shipped in full volume for decades.)


The key thing: the standard working model for circuit design with Op Amps (see below) are approximations that become good approximations because of their high gain and the typical use of negative feedback when using them.

These rules are non-intuitive if you are thinking raw circuits but are very easy to use if you hold your nose and just take the model on faith (because the model pretty much works all the time).

Only if you design the innards of an Op Amp does the model become less shiny and reality creeps in.

So when you design with an op amp you use certain "simplifying magical assumptions:

1. There is zero input leakage so you can KCL both input and feedback current pretending that the op amp isn't affecting either of these. That's pretty much a valid assumption until you design ultra low current circuits with an op amp. But then you'll likely want to switch to an "instrumentation op amp" of a specific design for such applications. That's <<1% of anyone.

2. The input voltages (+ and -) "magically" can be assumed to always be equal without any external current or voltage seeming to cause it to happen. This is due to the innards of the op amp design plus feedback.

These two assumptions mean that you can apply simply circuit analysis and you quickly attain accurate predictions of how the circuit will work (gain, bandwidth, etc.). Even most EEs work with this. Only analog IC designers go beyond this.


One thing I've never managed to wrap my head around is why many analog designers insist on calling op-amp based analog circuit design "linear design".

If there's one thing these circuits are absolutely not it's being linear.

Every interesting circuit using op-amps basically is interesting because of the various non-linear behaviors you have to deal with when you optimize the circuit.


This is a somewhat contrarian statement--I'd like some explanation and examples of what you mean.

I find a x10 amplifier with high Zin, low Zout, low noise, low error, and constant delay to be interesting enough.

Every circuit is non-linear when used outside its design limits, but this hardly needs asserting.

And of course real devices are not perfect. Resistors have inductance and capacitance and a thermal coefficient, capacitors likewise have flaws, wires have resistance and self-inductance, and circuit layout gives you stray capacitance, crosstalk, and instability. Op amps themselves produce noise, have input currents and offset voltages and limited slew rate and bandwidth. And so on, and on.

But again, none of that needs asserting.

While you certainly can design lot of deliberately non-linear circuits with op amps and non-linear devices in their feedback paths, it's difficult to design linear circuits without them, or instead with circuits, the core of which end up looking like simplified op-amps.

So, what did you have in mind when you said "the various non-linear behaviours"?


Historically, negative feedback in electronics was developed to stabilize and linearize the response of circuits.

None of the characteristic curves of vacuum tubes and transistors would make you think that there was anything linear about them. However, passive components such as resistors and capacitors are quite linear and stable. So the trick with feedback is that the feedback network defines the response of the circuit despite using potentially nonlinear and unstable gain elements. This was of vital importance for making important circuits, like amplifiers for telephony, predictable, reliable, and reproducible.

If you design something like a basic analog filter using op amps, and model its behavior under the assumption of linearity, the actual behavior of the circuit will resemble the model behavior to an uncanny degree.

But naturally, terminology is not precise. For instance the term "linear" is used to describe things like power supplies and voltage regulators, in contrast to "switchmode" circuits. A "linear power supply" means a particular thing that has little to do with linearity.


Op-amps are (theoretically) just linear differential amplifiers with extremely high gain (like 10,000x or greater). They appear nonlinear in open-loop configuration because their gain is so high that any realistic input signal immediately pegs the output against the rails. But with negative feedback they start to appear linear again because you can set the gain to something more reasonable. They're marvelous devices.


"Linear" means "Linear System" as in T(a+b)=T(a)+T(b). In practical terms this means sine wave in, sine wave out. If your system behaves as such then you have a much simpler time than if your sine wave gets distorted on the output because then that means you can no longer live in the world of Laplace transforms for understanding the PDE nature of your system. Op amps were hailed as a revelation because they behave much more ideally Linear than say a Common Emitter Amplifier, even when being constructed from non-linear components.


> "Linear" means "Linear System" as in T(a+b)=T(a)+T(b).

Fully aware.

What I'm saying is: op-amp based-circuits just never do that in the real world, only in extremely limited circumstances (hence the whole small-signal model methodology).

They are in general anything but linear.


opamps predate common-emitter amplifiers by about 20 years. maybe you mean a common-cathode amplifier


The one thing I wouldn't expect from electrical engineers is a focus on nomenclature - I do love electronics but I am perpetually annoyed by similar niggles as you are (it seems) + a tendency to teach the same equation 3 times in 3 different regimes even though I have spent years training myself to be able to identify these approximations myself.


Oh man, you're so right. It's a rather general problem when hopping around scientific and technical domains, but I agree that it's particularly bad with EE


The term Linear Design generally applies to things that have analog signals, as opposed to Digital Design (which is, of course never completely digital).

RF design is the darkest of the arts.


"Linear", in circuit terms, means that you get the same output from a circuit every time you put the corresponding input into the circuit.

It's not nearly as mystical as folks like to make it sound. A lot of the language around it dresses it up to appear more than it is in an effort to be rigorous.


As other comments note, this is not the definition of a linear system. However, it is the definition of a time-invariant system, which is probably why it's coming to mind here.

Systems that are both linear and time-invariant, sometimes abbreviated to LTI systems, are the most common sort of thing (i.e., model) that one actually analyzes. When time-dependence is present, it is always modelled explicitly and usually modelled as a complication of a time-invariant system.


>means that you get the same output from a circuit

Not sure where you were taught that, but it does not strike me as the generally accepted meaning of the term "linear".

Where I hail from, linear means:

    f(a*x + b*y) = a*f(x) + b*f(y)
aka the superposition principle.


A linear circuit is one which obeys the superposition principle. Its easer to analyze under frequency domain for example.

https://en.wikipedia.org/wiki/Linear_circuit


Capacitors are linear but stateful, so would be memristors. I am not sure you characterization is correct.


That's just not true. Its a very specific relation between the output and the input of a system.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: