How to measure phase margin of an amplifier?
How do you guys measure the phase margin of an amplifier?
I don't want to make an amplifier that risk becoming unstable, and I don't want to overcompensate the amp with a too low dominant pole. Without access to a network analyzer, how do you do this?
I found an article here that describes a method for measuring the phase margin of a power supply feedback loop, and I suppose this would for for an amplifier also. They are using a transformer to inject a signal, what type of transformer do you think would be suitable?
I suppose a good indication of stability can be made by looking at the response to a small signal squarewave. If it rings it's phase margin is probably too low, right? But is this method accurate enough?
Anyone here who can point me in the right direction?
You should really measure the loopgain, with open loop. Depends on the circuit you have. In case it has a DC servo, it is often possible to measure with open FB loop and keep the DC points.
Yes it really is loop-gain that I am trying to measure and if one can make the amp work without feedback then that is probably the most accurate method.
Problem is though that if the loopgain is high, say 80-100dB then even a tiny bit of noise on it's input will make it saturate. How can you avoid this?
The amp that I want to measure does not have a DC servo, but I suppose I could rig one up just for the measurement.
Injecting square waves and looking at ringing is an excellent technique.
Injecting a small hf squarewave on top of a large low frequency sinewave is also very good, as it shows you stability at many operating currents.
The network analyzer method of measuring the loop gain is a great one also. Any kind of transformer works fine, because you make A/R measurements in the network analyzer, which takes the xfmr characteristics out of the picture. Now, you might argue that if the transformer had a lot of leakage inductance, you could make the amp unstable. Easy way to deal with this is to put 50 Ohms (or less) across the transformer winding which goes in series with the feedback.
Similar to the way that you measure the phase margin of a power supply -- I posted this link last week to a video from Frederick Dostal of National Semi -- http://www.diyaudio.com/forums/power...how-video.html
Measure power-supply loop transfer | Test & Measurement World
Measure power-supply loop transfer - 2008-09-01 06:00:00 | Test & Measurement World
In a power supply you interrupt the voltage to the error amplifier. In an amp you measure the magnitude and timing between the input and output signals -- there are ways to do this without an oscilloscope -- this application note by intersil uses one of their specialty transistors, but you can just as easily use high speed comparators: http://www.intersil.com/data/an/AN9637.pdf -- there was also a "phase meter" in Audio Amateur decades ago which used run-of-the mill comparators --
Another test is as follows: Add a pole in the feedback loop at twice fc and decrease closed loop gain by 1 dB. If the amplifier does not oscillate, you have at least 22 degrees of phase margin. This of course is not enough. Next, put a pole in the feedback loop at fc and decrease closed loop gain by 3 dB from its design value. If the amplifier does not oscillate, you have at least 45 degrees of phase margin. This whole approach is based on how much lagging phase shift an additional pole adds to the feedback loop and by how much that pole decreases the loop gain. By reducing the closed loop gain setting, we are compensating for the decrease in loop gain at fc caused by the introduction of the pole, leaving only its lagging phase effect.
Wow! Thank you both for replying to this old thread! This is exactly the kind of answer I was hoping for, a measurement method that works with just common tools such as scope and signal generator.
Phase margin is not the whole story when it comes to NFB amplifiers. The circuit can be unstable in ways that are not shown by a simple phase margin measurement. So it is worth really stressing the circuit to try to make it squeal.
Keep everything about the circuit unchanged if you can. If you remove the input filter this may change the stability. You don't need a transformer. You can inject a signal into the feedback at the subtractor input via a big resistor in series with a cap. You just need to give it a sharp kick and see how it reacts.
No one has mentioned loading. You need to make sure you have adequate phase margin into all realistic loads that your amp will drive. This typically means anything between say 1 ohm resistive and no load, and a selection of capacitive loads ranging from, say, 1nF to 10uF. This is a Krell style test.
But be careful because some NFB circuits are only marginally stable and can burst into full power oscillation at several MHz when faced with a capacitive load, even with no input signal. So you may blow your transistors up. To mitigate this, put high-power resistors in series with the psu connections to the output transistors, say 10-ohms. When you first attach caps to the output they will save your transistors if the amp goes mad. Short the safety resistors if it is ok and retest.
Also, a well-implemented NFB amp with no input connected should sound virtually silent even with your ear stuffed into the loudspeaker drivers. You should have no hum at all. The tweeter will have a very faint hiss. Once you connect a pre-amp or other input device you should expect an increase in hiss and maybe a little hum. But not the sort of hum you can hear from more than a foot away.
1. Short of loop breaking effects (that can always be minimized if you know what you are doing), why?
2. Why not?
3. Why? Would you suggest that a design with low measured phase margin has any chance to be unconditionally stable?
4. Why? We are talking about stability, isn't it?
5. And what's the rest of the story?
6. How is different from the phase margin issue? If an amp is unstable in capacitive loads, this will show in the phase margin as well.
8. Indeed, you don't necessary need a transformer, but I don't understand your suggestion. Care to explain?
My only extra comment is that measuring the phase using a scope is impossible to any useful degree of accuracy.
If we're isolating the debate to stability only, then implementing a circuit with a reasonable phase margin and gain margin should be the goal. With PM > 0 and GM < 0, the amp is stable. Most people would prefer some margin, though...
However, if the debate is expanded to include amplifier closed-loop transient response, then PM does not tell the entire story. Most textbooks include calculations of the Q and overshoot as function of PM. Those equations are only valid for 2nd order systems. Most amps are higher order than this. An amp can have PM > 45 deg but a not-so-well behaved transient response. This is usually resulting from high frequency poles or - even worse - from right half-plane zeros. In many cases, I've found that amps may have excellent PM but marginal GM. These amps tend to show more HF ringing on transients than those with excellent PM and excellent GM.
In the op-amps and voltage regulator circuits I've designed, I've usually aimed for a PM of at least 60 degrees (worst case). I use AC analysis as it tends to be one of the fastest simulation types. But I also look at the transient response. This exercise is then repeated in the lab once I get the circuit built. Having access to a network analyzer does have its advantages...
|All times are GMT. The time now is 03:05 PM.|
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright ©1999-2017 diyAudio