Getting a handle on loopgain in LTspice? - diyAudio
Go Back   Home > Forums > Design & Build > Software Tools

Software Tools SPICE, PCB CAD, speaker design and measurement software, calculators

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 14th November 2014, 04:59 PM   #1
SSassen is offline SSassen  Netherlands
diyAudio Member
 
SSassen's Avatar
 
Join Date: Mar 2005
Location: Edam, The Netherlands
Default Getting a handle on loopgain in LTspice?

Alright, I'm modelling some amplifier designs in LTspice and would like to take a look at loop stability. I used to just do an AC analysis of the output and look for peaking in the frequency and phase response, but that doesn't tell you much about the loop stability.

A fellow forum member suggested that the loop gain can be modeled by shorting the amplifier's input and moving the voltage source into the feedback loop and then divide the voltage at the output by the voltage after the voltage source. This should then give you the loop gain and loop phase.

Let me illustrate this with a few images of the simulation of a simple MOSFET class-AB amplifier:

Click the image to open in full size.

As can be seen the voltage source V3 is inserted between the output and the feedback resistor and the relation between V(out) and V(A) will give us the loop gain and phase.

This is accomplished simply by dividing V(out) by -V(A) after having done a AC analysis of the amplifier. For the amplifier we're simulating here the following plot is then generated:

Click the image to open in full size.

The Nyquist thereom specifies that for an amplifier to be stable the phase shift at the output when the amplifier's loop gain has dropped to 0dB must not be greater than -180 degrees. In the above plot it is clear that when gain=0dB the phase is -105 degrees. Hence the amplifier will be stable.

The phase margin is the difference between the phase at gain=0dB and -180 degrees, thus in this case the phase margin is 180-105=75 degrees.

However when simulating a different amplifier design the following plot is generated:

Click the image to open in full size.

The phase at gain=0dB is -100 degrees, which would indicate stability, however unlike in the previous plot the phase doesn't start at 0 degrees, but at -90 degrees. Hence the net phase shift is 100-90=10. Thus the phase margin is a very healthy 170 degrees.

Does the above make sense? Or are there different (better? simpler?) ways to model loop gain and phase with LTspice?
__________________
Acception without proper examination equals religion
Condemnation without proper examination equals prejudice
  Reply With Quote
Old 26th December 2014, 11:06 AM   #2
sbrads is offline sbrads  United Kingdom
diyAudio Member
 
Join Date: Jun 2005
Location: Kent, UK
I'm not experienced in such matters, but I've seen other engineers at work using a low value resistor added into the feedback loop somehow to use real equipment (i.e. not a sim) to measure the response of switch mode PSUs so as to determine compensation values for stability. You may have more luck searching for your desired method with regard to SMPSUs and adapting it to audio amps.
  Reply With Quote

Reply


Hide this!Advertise here!
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
What can my amp handle Goodlagger Full Range 18 20th January 2013 04:55 PM
how would you handle this a/b switching? thegnu Instruments and Amps 4 16th January 2009 02:10 AM
How to handle very old caps Bassterror Power Supplies 2 15th August 2006 11:17 AM
Can we handle more zen? bertjan Pass Labs 10 31st July 2006 11:04 AM
Too hot to handle Panelhead Pass Labs 3 8th May 2003 01:10 AM


New To Site? Need Help?

All times are GMT. The time now is 05:25 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2015 DragonByte Technologies Ltd.
Copyright 1999-2015 diyAudio

Content Relevant URLs by vBSEO 3.3.2