Go Back   Home > Forums > Amplifiers > Solid State
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Solid State Talk all about solid state amplification.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 26th July 2008, 01:21 PM   #1
enzo88 is offline enzo88  Italy
diyAudio Member
 
Join Date: May 2008
Question Loop gain measurement in pspice

Hi all,
I work as a software architect, but my greatest passion is everything related to audio and electronics. I found this great forum some time ago and I've been busy reading posts here since then...
Thank you to everybody for the massive amount of knowledge poured in this forum!

Now, this is my question.
I'm trying to measure the loop gain on a typical Linn topology, for qualitative analysis of changes on the circuit.
Assuming we mark with IN and FDB the two base nodes of the input diff and with OUT the amp output node, I use these to plot the OLP, CLG and LG during an AC sweep:

OLP = DB(V(OUT)/V(IN,FDB))
CLG = DB(V(OUT)/V(IN))
LG = DB(((V(OUT)/V(IN,FDB))/(V(OUT)/V(IN)))-1)

Is this the right way to measure loop gain with spice?
Thank you.

Enzo
  Reply With Quote
Old 26th July 2008, 02:58 PM   #2
andy_c is offline andy_c  United States
Banned
 
Join Date: Apr 2003
I'm not a PSPICE guy, but Jim Thompson has a writeup on loop gain simulation in PSPICE here. I believe that subcircuit uses Middlebrook's method for computing loop gain. I'm not sure if there are subcircuits available for PSPICE using this technique, but the loop gain example in LTspice uses the equations from this article by Tian et al. They give the same results, but using Tian's method, one can orient the loop gain probe in either direction and get the same answer. The Middlebrook approach requires a specific orientation of the probe. Middlebrook's original article from 1975 can be found here. The Tian article is some pretty hairy stuff. The Middlebrook article is much easier to understand.

For LTspice users, the loop gain example is in LoopGain2.asc, in the examples\Educational folder.
  Reply With Quote
Old 26th July 2008, 07:57 PM   #3
enzo88 is offline enzo88  Italy
diyAudio Member
 
Join Date: May 2008
Thanks Andy - great links!
I naively assumed I could plot the loop gain T = (Aol / Acl) - 1 directly with a formula in Probe since in Pspice I have access to all the relevant quantities without breaking the loop
It looks like it's more complicated than that...

Enzo
  Reply With Quote
Old 27th July 2008, 03:13 PM   #4
andy_c is offline andy_c  United States
Banned
 
Join Date: Apr 2003
Hi Enzo,

If you use your formula, you may get results that are pretty close to those obtained using a loop gain probe, but the discrepancy will depend on the specific circuit being tested. Your formula is based on the block diagram description of a feedback system, while the loop gain probe results are based on the "return ratio" concept, which goes back to the original work of Bode.

There is a very good paper by Hurst that clarifies this. One of the problems with the block diagram approach is correctly identifying A and B when there are impedance interactions in the actual circuit components represented by the blocks. So, instead of having to wonder whether A and B have correctly been modified to take into account impedance interactions, it's easier for me to just throw in a loop gain probe and run the loop gain simulation.

If you're having trouble figuring out how to use Jim Thompson's loop gain probe, he posts in the usenet newsgroup sci.electronics.cad, so you might try asking him a question there. He used to be an avid PSPICE fan, but I believe he has switched over to LTspice.
  Reply With Quote
Old 28th July 2008, 10:15 PM   #5
enzo88 is offline enzo88  Italy
diyAudio Member
 
Join Date: May 2008
Hi Andy,
Well, you gave me the answer I was looking for...
On my original post, I was doubting my approach for reasons similar to the ones you mention (more on a gut feeling level, as I have still a lot to learn about more formal approaches). While trying different compensation methods, I wasn't able to clearly separate the forward path from the feedback: the dominant pole cap second connection had moved from the VAS collector to the output node (it's a low power very fast amp) and there was a classical 5p in parallel the fdb resistor. Initially, to plot LG and phase, I was using two versions of the amp on the same schematic, one of them open loop (with a large LC on the fdb return) but I had the gut feeling that actually there was no "open loop" version to speak of... the forward and return path were working as a whole, so to speak - so I tried to get more reliable results without breaking the loop, but I wasn't sure it was any better.
So, here is attached my last effort. I compared the two - the 'classical' feedback theory, without actually breaking the loop, and the Jim Thompson's probe. They seem to agree up to 1MHz in this case.

Thanks a lot!
Enzo
Attached Images
File Type: gif lgplot.gif (29.6 KB, 269 views)
  Reply With Quote
Old 28th July 2008, 10:37 PM   #6
andy_c is offline andy_c  United States
Banned
 
Join Date: Apr 2003
Quote:
Originally posted by enzo88
Well, you gave me the answer I was looking for...
Hi Enzo,

Glad it worked out for you.

When you take the feedback for the Miller integrator from the amp's output, it can cause instability of the Miller loop itself, especially with reactive loads at the amp output. It's a good idea to check the stability of the Miller loop by disabling global feedback (say, with a huge inductor in series with the feedback resistor from output to inverting input), and placing the loop gain probe inside the Miller loop.

You'll probably find that the unity loop gain frequency of the Miller loop is pretty large - say tens of MHz. The phase shift of the output stage can be pretty uncontrolled in that frequency range, so care is advised .

The TMC approach (first brought up here by Edmond Stuart) can fix this problem nicely.
  Reply With Quote
Old 9th October 2010, 12:10 PM   #7
maouna is offline maouna  Greece
diyAudio Member
 
Join Date: Oct 2008
examples loopgain.asc and loopgain2.asc in ltspice are used to plot the open loop gain.
example audioamp.asc is refered as to look the gain and phase margins.

which one is better to be used?

if we have a 30db gain amplifier ,can we plot the open loop gain based on the formula on loopgain example,then go at 30db at the open loop gain graph and look at the phase margin corresponding there??
  Reply With Quote
Old 9th October 2010, 03:08 PM   #8
djoffe is offline djoffe  United States
diyAudio Member
 
Join Date: Oct 2008
Default Thanks for the loop gain references

Andy_c,

Thanks for the loop gain references. Along the way, I googled your ETMC reference, and found diy audio engineering web site...I was curious to view more of that thread, but found that registration was disabled...Do you know what the story is?

Thanks...

Dan
  Reply With Quote
Old 16th June 2011, 09:30 AM   #9
diyAudio Member
 
Join Date: Nov 2010
I find an interesting document here for a simple way to get the open loop design. Maybe not so accurate.
www.intersil.com/data/an/an9536.pdf
  Reply With Quote
Old 5th September 2011, 03:17 PM   #10
diyAudio Member
 
Edmond Stuart's Avatar
 
Join Date: Nov 2003
Location: Amsterdam
Default Tian

To all Micro-Cap users,

See: Plotting Loop Gain Using the Tian Method - Spring 2011
(Probably, it only works in MC10)

Cheers,
E.
__________________
Een volk dat voor tirannen zwicht, zal meer dan lijf en
goed verliezen dan dooft het licht…(H.M. van Randwijk)
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hi-loop gain amp mfc Solid State 49 10th January 2009 06:10 AM
Gain Blockwith Variable Loop Gain Bonsai Solid State 17 11th July 2008 02:40 PM
Open Loop Gain Measurement? Fotios Need Help! fotios Solid State 21 22nd April 2008 12:02 AM
open loop gain,how many is enough? Leolabs Solid State 28 17th May 2006 09:00 PM
Gain loop formula fscarpa58 Everything Else 2 16th January 2004 11:19 AM


New To Site? Need Help?

All times are GMT. The time now is 10:30 AM.

Page generated in 0.32086 seconds (34.25% PHP - 65.75% MySQL) with 11 queries

Copyright ©1999-2012 diyAudio