You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
26 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head> <link rel="canonical" href="balanced-4.htm" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="Author" content="Rod Elliott - Elliott Sound Products"> <meta name="description" content="ESP - The confounding case of the differential amplifier balanced input stage."> <meta name="keywords" content="balance, line, mic, power, supply, preamp, power amp, simulation, diy, hi-fi, electronic"> <title>Balanced Inputs (Part IV)</title> <!-- ESP - The confounding case of the differential amplifier balanced input stage. --> <link rel="StyleSheet" href="esp.css" type="text/css" media="screen, print"> <style TYPE="text/css"><!-- td { font-size: 11pt } th { font-size: 11pt } --> </style> <link rel="shortcut icon" type="image/ico" href="favicon.ico"> <style> #pgbtn { display: none; position: fixed; bottom: 20px; right: 30px; z-index: 99; font-size: 12px; border: none; outline: none; background-color: blue; color: white; cursor: pointer; padding: 15px; border-radius: 4px; } #pgbtn:hover { background-color: #555; } </style><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-1947877433449191", enable_page_level_ads: true });</script></head><body><table style="width: 100%"><tr><td><img src="esp.jpg" alt="ESP Logo" height="81" width="215" /><td align="right"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- 468x60, created 20/08/10 --> <ins class="adsbygoogle" style="display:inline-block;width:468px;height:60px" data-ad-client="ca-pub-1947877433449191" data-ad-slot="7119701939"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({});</script></table><table style="width: 100%" class="tblblue"><tr><td class="hdrl">&nbsp;Elliott Sound Products</td><td align="right" class="hdrr">Balanced Inputs - Part IV&nbsp;</td></tr></table><br /><h1>The Confounding Case Of The Differential Amplifier Balanced Input Stage</h1><div class="t_11" align="center">Copyright &copy; September 2021, Rod Elliott</div><button onclick="topFunction()" id="pgbtn" title="Go to top">Top</button><script> // When the user scrolls down 20px from the top of the document, show the button window.onscroll = function() {scrollFunction()}; function scrollFunction() { if (document.body.scrollTop > 30 || document.documentElement.scrollTop > 30) { document.getElementById("pgbtn").style.display = "block"; } else { document.getElementById("pgbtn").style.display = "none"; }} // When the user clicks on the button, scroll to the top of the document function topFunction() { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; }</script><!-- AddThis Button BEGIN --> <div class="addthis_inline_share_toolbox"></div><!-- AddThis Button END --><hr /><span class="imgswap"><a href="../index.html" style="display:block;"><img src="a1.gif" alt="Home"/><b class="bb">Main Index</b></a></span><span class="imgswap"><a href="../articles.htm" style="display:block;"><img src="a1.gif" alt="articles"/><b class="bb">Articles Index</b></a></span> <hr /><b>Contents</b><ul> <li><a href="balanced-4.htm#intro">Introduction</a> <li><a href="balanced-4.htm#s1">1 &nbsp; Differential Amplifier Basics</a> <li><a href="balanced-4.htm#s2">2 &nbsp; Diff. Amp With Grounded Source</a> <li><a href="balanced-4.htm#s3">3 &nbsp; Diff. Amp With Modified Gain</a> <li><a href="balanced-4.htm#s4">4 &nbsp; Cable Problems</a> <li><a href="balanced-4.htm#s5">5 &nbsp; Section 5</a> <li><a href="balanced-4.htm#outro">Conclusions</a> <li><a href="balanced-4.htm#ref">References</a></ul><hr /><a id="intro"></a><b>Introduction</b><p>The single opamp balanced input stage (aka differential amplifier) has created a great deal of controversy during its life, and some people remain baffled by it's apparent odd behaviour.&nbsp; Indeed, when one analyses the circuit it is hard to imagine that it can perform properly, because the input impedance changes depending on how it's used.&nbsp; You only need to build one and test it to discover that it works just as claimed, but that's never convinced everyone.&nbsp; Anyone who's used a variety of sources will be aware that the voltages on the two inputs are often widely different under some conditions.&nbsp; This is often used as a reason to avoid it altogether, but that would be a mistake.</p><p>I will try to 'de-mystify' the circuit in this short article, in the interests of ensuring that its somewhat tarnished reputation is at least partially restored.&nbsp; The circuit is shown in the next section, and most readers will recognise it instantly.&nbsp; The misconceptions are all about input impedance, which is different for each input when it's connected to a source.</p><p>In the 'Designing With Opamps' article, I made the point that an opamp will, via the feedback path, make both input voltages the same (I call this 'The 1<sup>st</sup> Rule Of Opamps' - see <a href="../dwopa.htm" target="_blank">Designing With Opamps</a>).&nbsp; With any linear circuit, this relationship will <i>always</i> be true.&nbsp; Once you understand that one simple rule, you can analyse any linear circuit with confidence.&nbsp; The 2<sup>nd</sup> rule isn't relevant here, as it only applies when the 1<sup>st</sup> rule can't be satisfied, meaning that the circuit is non-linear.</p><p>In the following drawings and explanations, all resistors are 10k.&nbsp; This is done purely for ease of calculation, and the gain is unity.&nbsp; These circuits are used with gains both greater and less than unity, which simply means that the ratio of the input and feedback/ ground resistors is changed.&nbsp; The requirement for less than unity gain is uncommon, but there are situations where it's needed.&nbsp; Most readers won't have an immediately obvious application for less than unity gain, but it's worth remembering that it can be done.</p><p>Where the lowest possible noise is required, the resistor values should be reduced.&nbsp; Be aware that many opamps cannot drive very low impedances, so if you reduce the resistor values too far, you'll get higher distortion or even premature clipping as the opamp runs out of current.&nbsp; For most 'ordinary' opamps, the minimum resistance is around 2.2k, but you can use less with devices designed to drive 600&Omega; loads.</p><p>There's a persistent myth that the shield has to be impervious to RF (radio frequency) signals.&nbsp; The reality is that even a rudimentary shield will usually suffice, because the RF signal is impressed onto the <i>shield</i>, not the conductors.&nbsp; Poor grounding practices can lead to induced shield current being injected into circuitry, causing noise.&nbsp; This was particularly prevalent with early mobile (cell) phones.&nbsp; Few (if any) audio circuits can amplify the frequencies involved, but they can (and do) form rudimentary RF <i>detectors</i>.&nbsp; The noise heard is not the RF itself, but the envelope (the modulation 'pattern') of the RF waveform.</p><hr /><a id="s1"></a><b>1.0 &nbsp; Differential Amplifier Basics</b><p>The circuit for the differential amplifier is found almost anywhere on the Net.&nbsp; It's also used for subtraction in analogue computer (and other) systems, and an example of it in this role can be seen in the article <a href="derived-xovers.htm" target="_blank">Subtractive/ 'Derived' Crossover Networks</a>.&nbsp; The circuit is a useful tool, and is used in a wide range of different applications.&nbsp; As with any differential amplifier, the low-frequency common mode rejection ratio (CMRR) is almost completely determined by the accuracy of the resistors used.&nbsp; The theoretical worst case CMRR is 40dB with 1% resistors.</p><p>The most basic differential stage is shown below.&nbsp; This circuit (albeit in more advanced form) is the front-end of most opamps, and although it's shown using BJTs (bipolar junction transistors) it can also use JFETs (junction field-effect transistors), MOSFETs (typically in <abbr title="complementary metal oxide transistors">CMOS</abbr> ICs) and valves (vacuum tubes).&nbsp; Because it operates without feedback it has limited use as shown, but a fully developed version can be seen in the <a href="../project66.htm" target="_blank">Project 66</a> microphone preamplifier.</p><p class="t-pic"><img src="balanced-4-f11.gif" alt="Figure 1.1" border="1" /><br />Figure 1.1 - Basic Discrete Differential Amplifier</p><p>This circuit is not without problems, as the output voltage is restricted (&lt;1V from each output) before problems arise.&nbsp; With the values (and transistors) shown, the gain is around &times;9.4, or 19dB across the two outputs.&nbsp; There's some emitter degeneration, and distortion performance is good with input levels below 100mV.&nbsp; This arrangement is used as the input stage of opamps (and many power amps - the circuit should be very recognisable).&nbsp; The output should ideally be obtained as <i>current</i>, not voltage, and when it's provided with feedback linearity is a great deal better.&nbsp; CMRR is very high, but <i>only</i> with perfectly matched transistors and resistors (R4, R5, R6 and R7), and when the output is taken from <i>both</i> outputs (requiring another differential amplifier).&nbsp; All parameters are improved once a voltage gain stage is added and feedback is applied.&nbsp; Note that the values shown are only as an example, and that overall performance is very limited if the output is single-ended.</p><p>When a high-gain opamp is used, everything falls into place, with predictable gain and a high CMRR (assuming close tolerance resistors).&nbsp; If you need a very high CMRR, the PCB traces are important too.&nbsp; Their resistance is (usually) not an issue, but stray capacitance can cause issues at high frequencies if you're not very careful.&nbsp; The opamp also causes a degradation of CMRR at high frequencies, as its open-loop gain falls with increasing frequency.&nbsp; This topic is covered in some detail in <a href="balanced-io.htm" target="_blank">Balanced Inputs &amp; Outputs - The Things No-One Tells You</a>.</p><p>The following drawing is adapted from the <a href="balanced-2.htm" target="_blank">Design of High-Performance Balanced Audio Interfaces</a> article, and shows the conditions for various input configurations.&nbsp; The output voltage is indicated with a '+' or '-', meaning it's not inverted or inverted respectively.&nbsp; Note that the input impedance of the 'X' (non-inverting) input is <i>always</i> 20k, as there are two 10k resistors in series.&nbsp; The input impedance of the opamp is so high that it's irrelevant.&nbsp; There is one connection that's missing though, and that's the one that causes people so many problems.&nbsp; So, which one is missing?&nbsp; The condition where the differential inputs are earth/ ground referenced.&nbsp; While you might think this is unusual, it's actually the case for the vast majority of sources.&nbsp; This is covered in the next section.</p><p class="t-pic"><img src="balanced-4-f12.gif" alt="Figure 1.2" border="1" /><br />Figure 1.2 - Four Input Conditions For a Differential Amplifier</p><p>With a floating input source (Input XY), the voltages shown might seem impossible.&nbsp; Circuit analysis shows that in this case, the attempt by the source voltage to provide a negative current into Input Y results in the voltage at that point being zero, because 1V must exist across R3, and it's balanced out by the 1V at the opamp's inverting input.&nbsp; You need to examine the direction of current flow, indicated by the arrows.&nbsp; Having Input Y at zero volts is the only way that the opamp can be in its linear region, because both opamp inputs must be (very close to) the same voltage.&nbsp; 100&micro;A flows through R3 and R4, so both resistors must have 1V across them.</p><p>By implication and calculation, this means that the input impedance at the 'X' input is 20k, and the 'Y' impedance is zero.&nbsp; While it's easy to assume that this compromises the circuit in some mysterious way, that's not the case.&nbsp; This is one of the reasons the circuit is criticised, with claims that it can't work properly because the impedances are unequal.&nbsp; Note that the conditions shown only apply at low frequencies (below 100Hz) because the gain of the opamp falls at higher frequencies causing the circuit balance to be affected.&nbsp; Performance is still acceptable up to 10kHz (perhaps more, depending on the opamp used).</p><p>There is no doubt at all that this is difficult to get your head around, but it's real.&nbsp; The current through R3 and R4 is exactly equal, but of opposite polarity.&nbsp; This is easy to simulate, but much harder to prove by measurement unless you have access to a fully floating voltage source.&nbsp; A battery powered audio oscillator is one method, or you can use a transformer.&nbsp; With the latter, keep the frequency below 400Hz to minimise the effects of stray capacitance which will seriously mess up your measurements at higher frequencies.</p><p>When you analyse the circuit, it's important that the source impedance is as low as possible.&nbsp; Any resistance/ impedance in the source causes the gain to be reduced, because the external resistance is in series with R1/ R3.&nbsp; In general, the source impedance should be no more than 10% of the resistance of R1/ R3, resulting in a loss of gain of less than 1dB.&nbsp; Impedance matching is never necessary with audio signals (up to 20kHz) unless the cable is more than 2km in length (&lambda;=c/f)&sup1;.&nbsp; This is common with telephony, but not with audio installations.</p><blockquote> &sup1; &nbsp; &lambda; is wavelength, c is velocity and f is frequency.&nbsp; Cables should be less than &frac14;&lambda; at the highest frequency of interest (20kHz for audio) when impedance matching is <i>not</i> used.</blockquote><hr /><a id="s2"></a><b>2 &nbsp; Diff. Amp With Grounded Source</b><p>When the source is balanced, but earth/ ground referenced, things get a little awkward.&nbsp; Almost all electronic balanced line drivers have a ground reference whether you like it or not.&nbsp; This is due to the way they work, and you can't short one output to ground and expect the other to provide double the voltage.&nbsp; There <i>are</i> line drivers that will do just that (see <a href="../project87.htm">Project 87, Figure 3</a> for an example), but because these circuits can be unstable, they are not commonly used.</p><p>Even a transformer can be grounded, usually with a centre tap.&nbsp; It's almost always a bad idea, but that's never stopped anyone from doing it.&nbsp; The disadvantage of a ground-referenced balanced output is that it almost guarantees a ground loop, and it's up to the receiver circuit to remove the unwanted common-mode signal due to slightly different ground potentials.&nbsp; The connection of the shield is <i>critical</i>, and is the #1 cause of the <a href="balanced-2.htm#s9" target="_blank">'Pin 1 Problem'</a>, which has plagued audio installations for as long as balanced connections have been in use.</p><p class="t-pic"><img src="balanced-4-f21.gif" alt="Figure 2.1" border="1" /><br />Figure 2.1 - Input Conditions With Ground-Referenced Source</p><p>The source is just shown as a 'centre-tapped' voltage generator, and is assumed to have a zero impedance at each output.&nbsp; This makes analysis easier, because adding external output impedances just causes headaches.&nbsp; Note that the source impedances <i>must</i> be equal!&nbsp; When used normally, the situation will be a little different from that shown, but it doesn't affect the operation of the circuit, <i>provided</i> the two output impedances are the same - the <i>voltages do not have to be equal</i>.&nbsp; As noted above, the 'X' input has an input impedance of 20k, and nothing external will change that.&nbsp; The 'Y' input impedance is less straightforward.</p><p>As shown, the 'Y' input impedance is 6.67k (rounded), and this is the only way that the opamp's linear operating conditions can be achieved.&nbsp; While it may all appear somewhat unlikely, the voltages shown can easily be measured or simulated, and the circuit behaves as we expect.&nbsp; The fact that the input impedances are not equal may seem like it will compromise CMRR, there is an important fact that is often ignored if the analysis is not performed rigorously.</p><p><i>The differential and common-mode behaviours are completely independent of each other</i>.&nbsp; If you refer back to Figure 1, you can see that a common-mode signal is cancelled, because the same voltage appears on each input, and there is no output.&nbsp; This isn't changed if there's a differential signal present or not.&nbsp; So, a common-mode signal is rejected and a differential-mode signal is amplified, with the two functions remaining independent, regardless of any misconceptions that abound.</p><p>An easy way to get an effective increase in signal-to-noise ratio is to use a higher level.&nbsp; However, care is needed, because you have to allow enough headroom to ensure that peaks aren't clipped.&nbsp; In pubic address and studio work, it's common to use a reference level of +4dBu, which is around 1.23V RMS.&nbsp; If a peak to average ratio of 10dB is assumed (which is usually obtained only by using compression), the peak voltage will be 5.5V.&nbsp; Allowing a more realistic 20dB peak to average ratio, the peaks will be at &plusmn;17.4V.&nbsp; This is the reason that many professional mixers use &plusmn;18V supplies.</p><p>By default, most balanced line drivers double the level, since the same voltage is present on each conductor, but one is inverted.&nbsp; This improves the signal-noise ratio, but if the level is too high, the balanced receiver will clip.&nbsp; However, this is easily solved, simply by making the values of R1 and R3 higher than the values of R2 and R4.</p><hr /><a id="s3"></a><b>3 &nbsp; Diff. Amp With Modified Gain</b><p>If R1 and R3 are increased to 20k, the gain is exactly one, referred to the <i>input</i> of the line driver.&nbsp; However, in the interests of lower noise, it's better to reduce the values of R2 and R4 as shown below.&nbsp; The total voltage between the twisted-pair conductors is still 2V, but this arrangement lets you operate with higher gain without overdriving the receiver opamp.&nbsp; Remember that each wire in the pair only has 1V with respect to ground, but because one is 180&deg; out-of-phase, the total voltage is 2V.</p><p class="t-pic"><img src="balanced-4-f31.gif" alt="Figure 3.1" border="1" /><br />Figure 3.1 - Input Conditions With Reduced Gain</p><p>The voltages and currents are as you would expect, and this arrangement can be scaled for any input attenuation desired.&nbsp; The general operating parameters aren't changed, so it's performance is pretty much unchanged.&nbsp; Along with the reduction of level, you also get a better CMRR.&nbsp; With the values shown, it's improved by 6dB, which isn't spectacular, but it's worthwhile (and comes free!).&nbsp; If building this version, you'd use 5.1k resistors rather than 5k, and it will show a tiny gain (172mdB, or 0.17dB).&nbsp; This is inconsequential.</p><p>Naturally, the gain of the circuit can also be increased, but doing so will <i>reduce</i> the CMRR.&nbsp; The circuit is not really suitable for a microphone preamp, although many manufacturers have done so.&nbsp; One of the problems is that mic preamps need variable gain, and that's difficult to achieve with this particular circuit.&nbsp; A modest gain range can be implemented, but it requires positive feedback (which is rarely a good idea), and it can be improved with an additional opamp.&nbsp; This isn't covered here.&nbsp; Of course, R2 and R4 can be replaced by a dual-gang potentiometer, but that will <i>seriously</i> affect the CMRR because they never track perfectly, and have a wide tolerance.</p><p>With 10k resistors, an imbalance of just 10&Omega; between any two resistors will cause the 'ideal' CMRR to fall from 91dB to 66dB (simulated using a TL071 opamp).&nbsp; In reality, it's almost impossible to achieve the 92dB figure, as that requires better than 0.1% tolerance resistors (10&Omega; in 10k is 0.1%).&nbsp; However, countless differential amps have been made using 1% resistors, and that will typically allow a CMRR of better than 40dB.&nbsp; While that's a long way off the theoretical 92dB, in a typical application it's usually sufficient.</p><p>In reality, there's an external factor that often causes far more interference than a 'sub-optimal' balanced receiver's CMRR&nbsp;...</p><hr /><a id="s4"></a><b>4 &nbsp; Cable Problems</b><p>Unfortunately, there is something between the sending circuit and the receiving circuit - the cable!&nbsp; If the common-mode performance is inadequate, the cable should be the first suspect.&nbsp; To ensure that CMRR is as high as possible, the shielded cable conductors must be twisted together to ensure that any noise injected into the wires is always equal.&nbsp; When used in what's laughingly called the 'real world', cables will be mistreated, and are regularly <i>forcibly</i> rolled into a 'convenient' format for storage.&nbsp; If this causes the twist to be deformed (and it will!), expect common-mode noise to be a problem because poorly twisted wires will not 'talk' to each other properly.&nbsp; They can then carry different currents from common-mode sources (mains leads and power transformers being the main sources).</p><p>In theory (always a wonderful thing), the shield isn't necessary <i>at all</i>.&nbsp; Data is most commonly sent between point 'A' and point 'B' via UTP (unshielded twisted-pair), with Ethernet being the most common data connection.&nbsp; The primary difference between the different categories (CAT3, CAT5, CAT5e, etc.) is the amount of twisting employed.&nbsp; There's also a requirement for the cable's impedance to be matched to the receiver, something that is not necessary for audio.&nbsp; These data connections are balanced, and there are specifications that state the minimum bending radius that can be used without (significant) loss of performance due to misalignment of the individual twisted pairs.</p><p>Unfortunately, some 'roadies' don't seem to understand how important it is to roll signal cables in such a way to ensure that the cable naturally 'falls' into place when being rolled up.&nbsp; Failure to do this can cause the twist to be disturbed, so parts of the cable don't have the correct internal geometry, allowing noise to be injected.&nbsp; It's not a problem with the balanced line drivers or receivers, but with the cable itself.</p><hr /><a id="outro"></a><b>Conclusions</b><p>Despite any negative reactions you may read about this common circuit, the point that's often missed is that it does exactly what it says on the tin (as it were).&nbsp; While it doesn't seen 'right' in some respects, that's largely due to a misunderstanding of how it functions.&nbsp; The fact that it has unequal input impedances for the two input signals is immaterial, because it's input impedance for common-mode signals is identical.&nbsp; This is the only thing that really matters, and the way it works with a signal vs. common-mode 'noise' is perfectly alright.&nbsp; There is an expectation that the input impedance and signal level should be equal with a balanced line, and this holds perfectly true for common-mode noise.&nbsp; It doesn't matter at all for the wanted signal, and some signal sources do <i>not</i> have equal but opposite signals on both connections.&nbsp; This does not affect their performance.</p><p>I have (quite deliberately) avoided using the formulae that have been developed to analyse the circuit, because for 99% of cases they don't really help.&nbsp; The only thing that's important is to ensure that the resistors are accurate.&nbsp; R1 is <i>always</i> the same value as R3, and R2 is always the same value as R4.&nbsp; The circuit can be configured for gain or attenuation, but is not easily made variable.&nbsp; If you happen to need variable gain, there are far better circuits, which are described elsewhere on the ESP site.</p><p>Hopefully, this article has removed some of the doubts you may have had about this simple circuit, and has helped to explain it in a way that makes sense.</p><hr /><a id="ref"></a><b>References</b><ul> <li><a href="https://sound-au.com/articles/balance-2.htm" target="_blank">Design of High-Performance Balanced Audio Interfaces</a> <li><a href="balanced-io.htm" target="_blank">Balanced Inputs &amp; Outputs - The Things No-One Tells You</a> <li><a href="../balance.htm" target="_blank">Balanced Line Driver with Floating Output</a> <li><a href="../project87.htm" target="_blank">Project 87 - Balanced Transmitter and Receiver</a></ul><hr /><center>&nbsp; <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- 728x90 --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-1947877433449191" data-ad-slot="9701674198"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></center><hr><span class="imgswap"><a href="../index.html" style="display:block;"><img src="a1.gif" alt="Home"/><b class="bb">Main Index</b></a></span><span class="imgswap"><a href="../articles.htm" style="display:block;"><img src="a1.gif" alt="articles"/><b class="bb">Articles Index</b></a></span><br /><table cellpadding="5" class="tblblk"><tr><td class="t-wht"><a id="copyright"></a><b>Copyright Notice.</b> This article, including but not limited to all text and diagrams, is the intellectual property of Rod Elliott, and is &copy; 2021.&nbsp; Reproduction or re-publication by any means whatsoever, whether electronic, mechanical or electro-mechanical, is strictly prohibited under International Copyright laws.&nbsp; The author (Rod Elliott) grants the reader the right to use this information for personal use only, and further allows that one (1) copy may be made for reference.&nbsp; Commercial use is prohibited without express written authorisation from Rod Elliott.</td></tr></table><div class="t-sml">Change Log:&nbsp; Page published September 2021</div><br /><script type="text/javascript" src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5cd8c929c555da1d"></script></body></html>