ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites


Two Great Applications of the Mysterious Op-Amp

In a previous article I promised that I would return to the topic of op-amps. So here we are. I firmly believe that the op-amp is not as well understood by this generation of "embedded engineers" as it was by our predecessors. We get our "ones" and "zeros" all right, but when someone says op-amp we just nod and pretend we know what is being talked about. The amazing thing is that these parts are actually very easy to use once you understand them. And on top of that, there are times when the correct application of an op-amp will work much better than a slew of code running on a micro-controller. I have seen cases where a $10 DSP can be replaced by a 25-cent op-amp. The ideas that I will present and explain require the basic knowledge that I covered in my previous articles. If you get lost, please refer to my archives.

The plan here is to show two different applications of op-amps to get you thinking about less than conventional ways to use them in your designs. What I will show you here is not typically found in textbooks and on the Web. So I hope you will refer to this page often.

The AC Amplifier
First take a standard noninverting amplifier that looks like this.


Figure 1 - Standard Noninverting Op-Amp

Remember the equation for this circuit is:

    Vout = Vin * (1 + Rf/Ri)

(Please see my archives for an intuitive explanation of why this is the equation for this circuit.)

Then insert a capacitor in series with Ri like this.


Figure 2 - Standard Noninverting Op-Amp with Capacitor Added

Now, let's rewrite the equation for the amplifier first.

    Vout = Vin * (1 + Zf/Zi)

Consider the elements in the feedback loops to be impedances in place of resistances. Now it should be obvious that:

    Zi = Ri + the impedance of Ci

So to put it simply, the impedance of Zi will approach Ri as frequency increases, and infinity as the frequency approaches 0 or a DC level. Now insert that into the original equation. What happens?

    Vout = Vin * (1 + Zf/(Ri + impedance of Ci)

As the frequency approaches a DC level, the gain of the circuit approaches 1. As the frequency increases, the gain approaches 1+Zf/Zi. You now have an amplifier that only amplifies AC signals. Any DC bias that was on the signal to begin with is simply passed on to the output. This can be a very handy characteristic. There are many instances where the AC signal you are interested in is riding on a DC bias. If you amplify it a lot, you will run into a problem where the op-amp will "rail" and cease to operate as desired. You can work out a special ground and a bipolar supply to eliminate it, or you can use the above circuit. I personally prefer the latter wherever possible.

A Voltage-Controlled, Grounded Constant-Current Source
A few articles back, in response to a reader's question, I tried to find this circuit on the Net so I could send the reader the link. Problem was, I couldn't find it. So here it is for those of you that need a constant-current source.


Figure 3 - Voltage-Controlled, Grounded Constant-Current Source

So let me explain the operation of this circuit a little. Remember the negative feedback rule? If there is negative feedback, the op-amp will try to make V+ = V- (if you think there is any significant current flowing in or out of these inputs, you better go read the archives). Well in this case there is negative feedback. Follow my logic for a moment. (Yes, I did use the term logic in reference to an analog circuit. Logic implies rules and even analog circuits must follow rules. However, I am sure there are engineers that would dispute this assertion. J)

We begin at the output of the op-amp. As the voltage at the output of the op-amp decreases, current through the transistor will increase. This means the voltage at V- will decrease as well, and the current through R will go up because it is connected to the transistor. But, if V- falls below V+, then the error signal in the op-amp is positive, and that will make the output of the op-amp increase voltage. This process will stabilize when V- = V+. Tada! The magic of negative feedback works again. That's great you say, but I thought we were talking about a constant-current source. We are, and that is the beauty of this design. If V- = V+, that means that the voltage across R is always equal to Vcc - Vin. You simply apply Ohm's law to discover that

    Current = (Vcc - Vin)/R

Since the current through R is the same as the current through "Load," you have a constant-current source. Even better, you can adjust the current by simply changing Vin. Another great thing is that this circuit works with a load that is connected to ground. A good example as to where this type of circuit could be used is to hook up a micro-controller to switch a standard 4-20 mA current loop interface.

A couple of words of warning, however. A constant-current source will not control current unless a load is connected. It is also possible to connect a load that will force the source out of regulation. So make sure you know the maximum range required as well as the total available current. (All this depends on the implementation, the value of Vcc, the value chosen for R and Rb, etc.) Note also that current increases as Vin decreases. (Look at the above equation again if you didn't notice that it is referenced to Vcc).

So, there you have it, a couple of neat circuits that you can create with the op-amp. If you have any questions about particular applications of these circuits, please email me. I will be happy to help you out as much as possible.

Product Engineering Archive

Guides and Experts   Analog Avenue   PLD EDA Tools   PLD   DSP   EDA   Embedded Systems   Power   Test
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ