I'm looking for the best, simple, way to do this on the bench without more than
a function generator (my HP goes to 11 MHz) and a scope. Our scope has a
readout of the signal amplitude and is 200 MHz. This amp is a prototype so soldering
minor changes is not a problem.
I used LTSpice to draw what I'm planning to do on the bench to measure the loop gain
of the original Universal Tiger (UT) amp. This is NOT the way to do it in simulation but
of course it will run. The best way in simulation is to use a Tian probe as explained in
these videos by one of our members:
https://www.diyaudio.com/community/...al-tiger-inconsistencies.365751/#post-7737499
Let me say that I understand that this method introduces errors but from what I
see/understand I don't
think that they are significant and I welcome comments to
improve it or use another method.
The main feedback path is broken at the output and the SPICE ideal signal source drives
it. The obvious errors are that the loading on the output by the feedback network
is removed (more parts could be added to emulate it) but since the load is 4-8 ohms I
believe that the error is insignificant. The other error is that the source impedance of
the amp output is not accounted for. Now amps like this are (should be) high damping
factor and therefore the output impedance is low in the audio band. The zobel is in
parallel and should keep the impedance low at high frequencies. The circuit needs a
stable DC output and therefore a feedback network matching the pos input resistance
to ground is added with two resistors (R29, R28) and a large cap to ground to shunt
the signal. This introduces error below 1 KHz but that is not where the analysis takes
place. There was significant DC offset at the output, as is seen in real hardware, and
a very large resistor, R30, was added to trim the offset. This is not how to do it in real
hardware but with an ideal power supply in sim it works fine.
The output to measure is the point where the loop is broken with the OUT label, not
the SPK labeled net. Plotting frequency response in LTSpice is OUT/Vin from the source
which is what we want. Anyway, here's the diagram:
Ran it to see if the results are reasonable and what to expect on the bench:
It shows an unstable amp, but perhaps I'm missing something, we do know that these
amps certainly do oscillate in real hardware.
Odd that LTSpice does not make the two cursors different colors in the plot.
====
PHASE MARGIN
Cursor 1, furthest to the right, is at the 0dB gain point (the horizontal cursor is at 0dB)
where we should look for phase margin on the phase plot (the vertical cursor). Note
that we are driving the negative input and therefore, in the passband, we see -180 deg
as would be expected on the inverting input. The point where there is zero phase margin
is another -180 for a total of -360 bringing the signal back in phase to cause oscillation.
The amount less than -360 is the phase margin.
Note that for cursor 1 the phase is greater than -360 at about -390 and according to
this there is about -30 deg of phase margin - there is none. Keep in mind that this is
device and model dependent so real hardware could be better or worse.
Or is this not a valid method?
====
GAIN MARGIN
Cursor 2, on the left, is where the phase reaches -360 deg (vertical) and the gain
margin is how much less than 0dB the gain curve shows. The gain is actually greater
than 0dB and therefore there's negative gain margin with it showing 12.47 dB of gain
(horizontal) - it should be negative in order to have gain margin.
It should have been obvious that the stability of this amp is highly dependent on the
process variation of the semiconductors which is demonstrated by the fact that I have
one amp that readily oscillates and another of the same revision that does not.
