{"id":787,"date":"2011-10-10T16:18:31","date_gmt":"2011-10-10T16:18:31","guid":{"rendered":"https:\/\/ibex.tech\/resources\/?p=787"},"modified":"2022-10-22T12:19:27","modified_gmt":"2022-10-22T11:19:27","slug":"opamps-general","status":"publish","type":"post","link":"https:\/\/ibex.tech\/resources\/geek-area\/electronics\/opamps\/opamps-general","title":{"rendered":"OpAmps General"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">The Basics<\/h4>\n\n\n\n<p>No current flows in or out of the inputs.&nbsp; (Well actually a small bias current does, but its small)<\/p>\n\n\n\n<p>Output goes positive if the + input is more positive than the &#8211; input.<\/p>\n\n\n\n<p>Output goes negative if the + input is more negative than the &#8211; input.<\/p>\n\n\n\n<p>Output will do whatever is necessary to make the inputs equal.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">OpAmp Selection \/ Design Specs<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">Rail To Rail<\/h5>\n\n\n\n<p>Rail to rail may mean the op amp can operate totally rail to rail, OR just the inputs can accept rail to rail but the output can&#8217;t OR the output can but the inputs can&#8217;t &#8211; watch out and always check the spec!<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Input common-mode voltage range (input common-mode range) (Vicmr)<\/h5>\n\n\n\n<p>VICMR defines a range of common-mode input voltages that result&nbsp;in proper operation of the op amp and describes how close the inputs can get to either supply rail.<\/p>\n\n\n\n<p>Another way to think of VICMR is that it describes a range which is defined as&nbsp;VICMR_MAX &#8211;&nbsp;VICMR_MIN&nbsp;<\/p>\n\n\n\n<p>If Vicmr&nbsp;is exceeded&nbsp;the normal linear operation of the op amp is no longer&nbsp;guaranteed. &nbsp;You may get clipping, the output jumping to a supply rail suddenly or other undefined behavior. &nbsp;This is a classic mistake often made in single supply op amp applications.<\/p>\n\n\n\n<p>Vicmr is quite different from op amp to op amp and&nbsp;may fall within or beyond the supply rails. Never assume that an op amp can receive a particular input signal range without verifying it in the datasheet specifications.<\/p>\n\n\n\n<p>Good resources:<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/www.planetanalog.com\/are-you-violating-your-op-amps-input-common-mode-range\/\" target=\"_blank\">https:\/\/www.planetanalog.com\/are-you-violating-your-op-amps-input-common-mode-range\/<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Input Bias Current<\/h5>\n\n\n\n<p>One of the golden rules of op amps says that no current flows into either input terminal. However, in reality, a small current flows into both inputs to bias the input transistors. Unfortunately, this bias current gets converted into a voltage by the circuit&#8217;s local resistors and amplified right along with the signal. The result is an output error in your circuit. <\/p>\n\n\n\n<p>This can be an issue for:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>High impedance input sources, fore these you often want as low as possible input bias current.<\/li><li>Peak hold circuits, where you don&#8217;t want to discharge the holding capacitor any more than absolutely necessary.<\/li><li>Sensitive inputs with weak pull resistors to say a Vmid voltage.  The OpAmp input acts as an additional pull resistor in effect causing your output voltage to not be centred around Vmid unless you reduce the pull resistor value(s), which of course reduces the sensitivity of your input. <\/li><\/ul>\n\n\n\n<p>For example, a LMV358 with an input  470K resistor to 2.5V outputed 2.87V in a circuit we worked on that had an op amp amplification of x17, so the bias current was adding 21.8mV to the input voltage.  Reducing the pull resistor to 100K removed virtually all of the error, but also reduced the input sensitivity.<\/p>\n\n\n\n<p>What can you do about it? <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Select an OpAmp with a lower input bias current specification.  Bias current specification can range from \u03bcA down to pA<\/li><li>A clever choice of resistor values can help you cancel most of the output error, but there will always be an element of tolerance at play as the input bias current can vary slightly.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Design Considerations<\/h4>\n\n\n\n<p>Opamps are very stable with temperature.<\/p>\n\n\n\n<p>JFET (i.e. TL084) inputs can be bad for oscillations \/ noise as they are high impedance.&nbsp; Usually need to use with resistor and capacitor on input.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Dual Rail Opamps From A Single Rail Supply<\/h4>\n\n\n\n<p>A typical&nbsp;opamp only has + and &#8211; power pins so you can use a dual rail op amp connected to a +V and 0V supply. &nbsp;The dual rail&nbsp;op amp design&nbsp;simply assumes GND&nbsp;it is half-way between its two power supplies. &nbsp; The main issue is typically circuitry around the opamp, but if you are constructing a fake GND&nbsp;that is half&nbsp;way between the supply rails, say a Vmid&nbsp;scenario where&nbsp;you use a potential divider, then using a dual rail opamp&nbsp;can be fine.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Voltage Follower<\/h4>\n\n\n\n<p>A voltage follower has the output connected to &#8216;-&#8216; and the input voltage connected to &#8216;+&#8217;.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Unused Inputs<\/h4>\n\n\n\n<p>Wire as a follower (output to &#8216;-&#8216;) but with &#8216;+&#8217; input tied to a mid voltage (0V for dual supply, between 2 resistors for single supply).&nbsp; If you have a single supply and don&#8217;t want to fit resistors then you can connect the &#8216;+&#8217; input to 0V, but the op amp will consume more current and analog purists will berate you.&nbsp; Alternatively if you have a voltage rail sitting somewhere between the op amps +V &amp; &#8211; V then you can use that.<\/p>\n\n\n\n<p>Bad Approaches<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Using a resistor to 0V is not really a better solution.<\/li><li>Tying both inputs together can be bad due to randomness in offset voltages in an op amp<\/li><li>Tying inputs high and low can over stress some inputs and causes more current consumption.<\/li><\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">Good resources<\/h5>\n\n\n\n<p><a href=\"http:\/\/www.maxim-ic.com\/appnotes.cfm\/an_pk\/1957\">http:\/\/www.maxim-ic.com\/appnotes.cfm\/an_pk\/1957<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Good Op Amp Resources<\/h4>\n\n\n\n<p><a href=\"http:\/\/www.eevblog.com\/2014\/04\/06\/eevblog-600-opamps-explained\/\">EEVBlog OpAmps Explained<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">OpAmps We Often Use<\/h4>\n\n\n<p>Single, Dual &amp; Quad&nbsp;OpAmp\u200bs, Single Rail<\/p>\n<p style=\"margin-left: 40px;\">LMV341\u200b<\/p>\n<p style=\"margin-left: 80px;\">2.7 &#8211; 5.5V, rail to rail, low power, high temperature<\/p>\n<p style=\"margin-left: 40px;\">AD8541<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">General purpose, rail to rail, 2.7V &#8211; 5.5V, low running current,<br>1MHz, instrumentation, sensors, audio<\/p>\n<p style=\"margin-left: 40px;\">AD8531<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">General purpose,&nbsp;250mA&nbsp;output, rail to rail, 2.7V &#8211; 5.5V,<br>Low running current,&nbsp;1MHz,<\/p>\n<p>Single, Single Rail<\/p>\n<p style=\"margin-left: 40px;\">LMV321<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">General purpose, rail to rail, 2.7V &#8211;&nbsp;6V, low running current, low cost<\/p>\n<p style=\"margin-left: 40px;\">LMV721<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">Low noise, 2.2 &#8211;&nbsp;5V, rail to rail, low power, 10MHz<\/p>\n<p style=\"margin-left: 40px;\">\n<\/p><p>Dual OpAmp, Single Rail<\/p>\n<p style=\"margin-left: 40px;\">LM358<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">General purpose, low power, swings&nbsp;GND&nbsp;to (VCC&nbsp;&#8211; 1.5V), use with logic systems, 3 to 30V<\/p>\n<p style=\"margin-left: 40px;\">LMV358<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">General purpose, low voltage, rail to rail output<\/p>\n<p style=\"margin-left: 40px;\">LMV722<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">Fast (10MHz), low voltage, rail to rail<\/p>\n<p style=\"margin-left: 40px;\">LMV722<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">Low noise, 2.2 &#8211;&nbsp;5V, rail to rail, low power, 10MHz<\/p>\n<p>Quad OpAmp, Single Rail<\/p>\n<p style=\"margin-left: 40px;\">LM324<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">General purpose, swings GND to (VCC &#8211; 1.5V).<br>Quite high output drive<\/p>\n<p style=\"margin-left: 40px;\">LMV324<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">General purpose, rail to rail, 2.7V &#8211; 6V, low running current, low cost<\/p>\n<p>Single, Dual &amp; Quad&nbsp;OpAmp\u200bs, Dual Rail<\/p>\n<p style=\"margin-left: 40px;\">TL064<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">JFET Lower power version of TL084<\/p>\n<p style=\"margin-left: 40px;\">TL084<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">JFET input OpAmp<\/p>\n<p>Dual OpAmp, Dual Rail<\/p>\n<p style=\"margin-left: 40px;\">NE5532<\/p>\n<p style=\"padding-left: 30px; margin-left: 40px;\">High power output<\/p>\n<h5>Precision Op Amps<\/h5>\n<p>AD8628<\/p>\n<p style=\"margin-left: 40px;\">Rail To Rail, zero drift<\/p>\n<h5>High Output Current<\/h5>\n<p>LM8261<\/p>\n<p style=\"margin-left: 40px;\">Rail To Rail<\/p>\n<h5>Low Bias Current<\/h5>\n<p>TLV6001U<\/p>\n<p style=\"text-align: left; padding-left: 40px;\">Single, 1pA bias current, rail to rail, 1.8 to 5.5VCC<\/p>\n<p>LTC6244<\/p>\n<p style=\"padding-left: 40px;\">Dual, 1pA bias current<\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>The Basics No current flows in or out of the inputs.&nbsp; (Well actually a small bias current does, but its small) Output goes positive if the + input is more positive than the &#8211; input. Output goes negative if the + input is more negative than the &#8211; input. Output will do whatever is necessary [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[],"class_list":["post-787","post","type-post","status-publish","format-standard","hentry","category-opamps"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/posts\/787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/comments?post=787"}],"version-history":[{"count":28,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/posts\/787\/revisions"}],"predecessor-version":[{"id":2561,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/posts\/787\/revisions\/2561"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/media?parent=787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/categories?post=787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/tags?post=787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}