7

In the class AB amplifier shown below, we use diodes to make the PNP and NPN conduct equally.

How do the diodes make them conduct equally?

Is there some intuition I could use to understand this phenomenon?

enter image description here

Circuit fantasist
  • 13,593
  • 1
  • 17
  • 48
lub2354
  • 369
  • 1
  • 6
  • 1
    Unfortunately your circuit is incomplete if you are talking about both transistors conducting reasonably stable currents. Have you heard of emitter resistors for instance? Also, what you appear to be trying to indicate in your diagram is a class AB amplifier. Your text says class B but your title says class AB! – Andy aka Apr 13 '23 at 10:53
  • Hello Andy, yes you are correct i am trying to understand how the diodes are helping to overcome cross over distortion. – lub2354 Apr 13 '23 at 10:56
  • 1
    Maybe this will help you https://electronics.stackexchange.com/questions/309936/how-does-this-push-pull-amplifier-work/310009#310009 – G36 Apr 13 '23 at 12:24

5 Answers5

7

Voltage drop over one diode is approximately equal to voltage drop over Vbe.

So voltage over diode compensates for the drop caused by Vbe.

Justme
  • 127,425
  • 3
  • 97
  • 261
7

How does the diodes make them conduct equally? Is there some intuition I could understand this phenomena?

Instead of looking at a push-pull stage, it's equally relevant to see what happens when an NPN transistor is set as an emitter follower with no base-biasing (switch1 deactivated). This mimics the top half of the push-pull stage: -

enter image description here

With switch1 deactivated, the base of the transistor is not being biased. This is Class B operation. If you look at the load current in R1 (green), you can see that current flows for significantly less than one half cycle.

You could probably imagine the equivalent PNP emitter follower circuit that feeds load resistor R1; it would also conduct current over significantly less than the other half cycle: -

enter image description here

Now, if I throw the switch and allow a little bit of base biasing we get this picture: -

enter image description here

Note that I moved the \$V_{IN}\$ node marker (red trace) onto the base so that the bias voltage increase can be inspected.

Can you see that the transistor is conducting for about 50% of the waveform now? This is because the base-emitter region has been biased positively. And, if you imagine the PNP section was also present, you would see a fairly linear transition between NPN conducting and PNP conducting. This is Class AB operation.

But, why use a diode you might ask. The diode has a similar temperature characteristic to the base-emitter region and, if the diode is thermally linked with the transistor, as things warm up and the transistor base-emitter characteristic changes, the bias at the base would also do the same. So, the diode provides both biasing AND temperature compensation.

Andy aka
  • 434,556
  • 28
  • 351
  • 777
  • What is the reason for the 1 volt offset of v(Vin) when bias is applied? Does V2 have internal resistance? – PStechPaul Apr 17 '23 at 22:21
  • @PStechPaul good spot. I moved the Vin node marker on the second result to show it had been lifted. I shall add a note to explain. – Andy aka Apr 18 '23 at 09:15
4

The diodes are used to provide the voltage needed to overcome the barrier to base current. This can also be done with resistors but diodes have the advantages of thermal compensation (if bonded to the power transistors thermally) and low ac resistance.

The diodes do not guarantee equal currents in the transistors. If the load is dc coupled to the emitters, then the equality of the currents depends upon parameter matching between the transistors.

The matching of the bias components will play a large role in current match.

RussellH
  • 12,496
  • 2
  • 9
  • 34
4

Revealing the biasing idea

The best way to intuitively explain a circuit idea (in this case "biasing") is to follow its evolution from the very beginning by building and exploring the circuit step by step.

Implementation

I will do it here using CircuitLab in two ways:

  • by setting constant values ​​and observing the circuit voltages and currents by DC live simulation and measurement instruments
  • by varying the input voltage and plotting the quantities with the help of DC sweep simulation

I am happy that I finally managed to find a way to move the CircuitLab "parameters" window. The problem was that when I opened it to change the quantities, it covered the gauges and circuit elements, and I had to close it to read them.

You can trick it in this way:

  1. Move the schematic to the right side of the screen.
  2. Open "parameters".
  3. Click on the window and it will no longer close by itself.
  4. Move the schematic (by CTRL+click on it and dragging) to the left side of the screen. Now feel free to change the parameter values ​​and observe the magnitudes in the schematic.

So the idea is to dock the window and move the schematic.

Building the circuit

Here is my story in seven parts...

How to "move" voltage variations...

Imagine we have a varying input voltage source Vin and we want to get an output voltage Vout that is "shifted" by a constant value. Our source is grounded and its initial voltage is 0 V; we can then change it via "parameters".

schematic

simulate this circuit – Schematic created using CircuitLab

We will sweep the input voltage from -10 to +10 V.

Class AB - Step 1

... up...

In some cases (e.g., when driving NPN transistors) we want to "lift" the voltage in the positive direction. KVL gives us an idea of ​​how to do it - by series summing the voltages. To do this, we connect the "bias" voltage source Vbias1 ("battery") in series with the input source, with its negative terminal to it.

schematic

simulate this circuit

Thus the total voltage Vout follows Vin's variations with a constant offset (1 V in the schematic).

Class AB - Step 2

... down...

In other cases (e.g., when driving PNP transistors) we need to drop the voltage in the negative direction. Now we connect the bias "battery" Vbias2 with its positive terminal to Vin...

schematic

simulate this circuit

... so the total voltage Vout follows Vin's variations with a constant offset of -1 V.

Class AB - Step 3

... both

In the OP's case (driving both NPN and PNP transistors), there is a need for two voltages "shifted" in opposite directions. So we have to "stick" the two configurations above connecting a positive "battery" Vbias1 with its negative terminal to Vin and negative "battery" Vbias2 with its positive terminal to Vin.

schematic

simulate this circuit

The two output voltages follow the input by being spaced with 2.Vout (2 V).

Class AB - Step 4

Diode biasing

It is not convenient to use multiple "floating" voltage sources in circuits; instead, these voltages are taken from the power source. It is convenient for the purpose of biasing to use voltage drops across forward-biased diodes because the transistor inputs (base-emitter junctions) behave like diodes.

To put in practice this idea, we have to "stretch" (by two "pulling" resistors R1 and R2) the string of two diodes between the supply rails (to make a connection with the circuits above, I have used ideal diodes with VF = 1 V). We can liken this to a more sophisticated "tug of war" game where the players pull the rope with equal strength but we (Vin) come and grab it in the middle and start pulling it back and forth:-)

schematic

simulate this circuit

As you can see, the graphs are almost the same as above. They differ only at the ends where the input voltage approaches the supply rails and the voltage across the RD network significantly decreases. Then the current through the corresponding diode (D1 at +Vin and D2 at -Vin), respectively the voltage across it, decreases.

Class AB - Step 5

Diode-biased AB stage

Finally we get to the real (OP's) part. We connect our biasing circuit to an imperfect emitter follower without biasing (aka "class B").

I have connected two perfect ammeters to measure the collector currents Ic1 and Ic2. Now about the load where I have used a little trick. To keep the circuit so symmetric and beautiful:-), I have used another ammeter both as an ammeter IL and... as a "load". For this purpose, I have worsen (increased to 100 ohm) its resistance in the parameters window; so you do not have to worry about it burning.

Let's first examine the circuit "statically" by applying three typical values ​​of the input voltage. It is interesting to see what state the transistors are in and where the output currents flow.

DC input voltage source:

Vin = 0 V (grounded input). First we need to roughly adjust the bias voltages so that the transistors are slightly "open" and a small (say 2mA) initial ("quiscent") current flows. For this purpose, open ideal diode "parameters* windows and looking at ammeters, adjust their VFs so that Ic = 2 mA and IL or VL = 0. It is not very easy; it takes some skill and patience... and a willingness to do it (to some it would seem pointless). Thus Q1 and Q2 act as emitter followers and can be thought as some "voltage divider" stretched between the supply rails.

schematic

simulate this circuit

Vin = 5 V: Only Q1 act as an NPN follower; Q2 is off. Significant 50 mA current flows through Q1 and the load RL that form a "voltage divider".

schematic

simulate this circuit

Vin = -5 V: In this case, only Q2 act as a PNP follower. The same 50 mA current flows through RL and Q1 in the oposite direction. Now they form a "voltage divider".

schematic

simulate this circuit

So, figuratively speaking, we can think of Q1, Q2 and RL as some 3-resistor "voltage divider" in a "star connection". Two of them (Q1 and Q2) are dynamic and the third (RL) is constant.

AC input voltage source:

Let us now examine the circuit in the classic way by applying an AC input voltage. Vin is a functional generator with DC offset voltage; so you can also apply a DC voltage as above.

schematic

simulate this circuit

Vin = 100 mV: First, I suggest that it be of small amplitude (100 mV) in order to observe well the "shifted" base voltages.

Input bias voltages

Vin = 9.5 V: If we significantly increase Vin close to the supply voltage, we will see how the output voltage "saturates" because the input base voltages stop changing.

Class AB - Step 6_6

Experiments with biasing:

Vbias1 = 0 V; Vbias2 = 0 V (no biasing): We see that in the region from -0.7 V to 0.7 V there is no output voltage because both transistors are off.

Class AB - Step 5_1

Vbias1 = 400mV; Vbias2 = 400mV: At a small bias voltage, this region narrows and distortions decrease...

Class AB - Step 5_2

Vbias1 = 583.66 mV; Vbias2 = 655.3 mV: ... and at normal bias voltage, the distortions completely disappear.

Class AB - Step 5_3

In this way, we can precisely adjust the bias voltages to obtain a perfect output signal.

Improved diode biasing

Conceptual circuit. The problem of the simple diode biasing is that the current through diodes depends on the input voltage. The reason for this is that the "pulling" resistors are constant when the voltage varies. A neat trick is to make them "dynamic" so that the V/R ratio (current) stays constant. This means that when Vin increases, R1 decreases and R2 increases, and vice versa. Such nonlinear resistors can be modelled in CircuitLab by current sources.

schematic

simulate this circuit

As we can see from the graphs of the bias voltages, now they do not "saturate".

Class AB - Step 7_1

Practical circuit. In real amplifier circuits, the output (collector-emitter) parts of transistors can act as such "dynamic resistors".

schematic

simulate this circuit

Finally, we can draw an interesting conclusion about this network of four elements in series: They are all "dynamic resistors" - diodes are "constant-voltage" and transistors are "constant-current" elements. So when the current tries to decrease, the diodes increase and transistors decrease their "resistances". As a result, the voltage drops across diodes an the current through them do not change.

Circuit fantasist
  • 13,593
  • 1
  • 17
  • 48
2

First, understand why the crossover distortion happens in the first place.

The transistors are being used as common-emitter follower drivers, arranged as a symmetrical push-pull pair.

You may remember that an NPN common-emitter follower voltage output is offset by one base-emitter drop (Vbe) below the input, about -0.7V. Likewise, a PNP follower will have its output one Vbe above its input, about +0.7V.

For the single class-A follower this Vbe-to-output offset isn't usually a problem. However, connecting together a pair of complementary followers as a push-pull class-B, and you get crossover dead-band: while the input is in between +Vbe and -Vbe, both transistors are off and the output undriven. This is the cause of the distortion.

We can compensate for the Vbe drop and get rid of the dead-band by pre-biasing the bases with a compensating offset: +Vbe for the NPN, -Vbe for the PNP.

As it so happens, a silicon diode has about the same forward drop (0.7V) as a transistor base-emitter junction. We use a pair of diodes together with resistors to create two offset base drive signals, in each case 'lifting' (pre-biasing) transistor bases into near-conduction.

Here's an uncompensated class-B push-pull side-by-side with an improved, pre-biased one (simulate it here):

enter image description here

The reduced distortion is evident in the right-hand (improved) circuit (hint: add 'spectrum view' to the scope plot to see the difference in harmonics.) Note: what's being shown is a DC-coupled amplifier. You can insert a capacitor to make it AC- coupled. Regardless, the base drives are 2x Vbe (about 1.4V) offset from each other.

The 'base lift' pre-biasing diode approach used here is effective, if not precise. Nonetheless it’s pretty good at eliminating the bulk of the dead-band to create a lower distortion class-B amplifier. This circuit can be further improved upon by adding some form of negative feedback, and also by modifying the transistor biases into class-AB type operation (that is, include some idle current.)

Speaking of which, want even lower distortion from your push-pull output? The Blomley amplifier is a highly-regarded approach that uses both offset drives and has idle bias current, among other improvements. Read on.

Or, try it (simulate it here):

enter image description here

hacktastical
  • 49,832
  • 2
  • 47
  • 138
  • Interesting article about the Blomley amplifier. I'm not sure my ears would hear the difference. They have a cut-off frequency of about 4 kHz. – PStechPaul Apr 17 '23 at 23:15
  • Not sure where you got that info - link? Anyway, I put together a sim and it seems to be gain flat above 40Hz. It is exquisitely sensitive to the pre-bias diodes pair however - it takes some fiddling with the pots to get the idle current right. I bet this could be done better with a modern 2-terminal reference. – hacktastical Apr 18 '23 at 15:11
  • My ears, not the amplifier! :) – PStechPaul Apr 18 '23 at 20:14
  • That's what I get for posting before my second cuppa... – hacktastical Apr 18 '23 at 21:50