The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 7:28pm
Pages: 1 2 
Send Topic Print
Phase margin in open loop and close loop (Read 19936 times)
newic
Senior Member
****
Offline



Posts: 138

Phase margin in open loop and close loop
Aug 10th, 2010, 1:27am
 
normally the phase margin of a close loop system like opamp, pll are analyzed in open loop rather than close loop. What is the reason behind? Is it because the open-loop phase margin  is easier to be analyzed? It also shows clearly the location of poles and zeros in frequency axis.

Does it guarantee phase margin in open loop system is the same as in close loop system ?
Back to top
 
 
View Profile   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Phase margin in open loop and close loop
Reply #1 - Aug 10th, 2010, 1:49am
 
newic wrote on Aug 10th, 2010, 1:27am:
normally the phase margin of a close loop system like opamp, pll are analyzed in open loop rather than close loop. What is the reason behind? Is it because the open-loop phase margin  is easier to be analyzed? It also shows clearly the location of poles and zeros in frequency axis.

Does it guarantee phase margin in open loop system is the same as in close loop system ?


The parameter "phase margin" is defined only for an open-loop system.
If this margin is large enough, you can be sure that the system - after closing the loop ! - will be stable. However, be aware that this stability measure (like the gain margin) applies not to all systems.
That means - the open-loop transfer function must be stable and its gain resp. phase function must cross the zero line only once.
Otherwise, the complete Nyquist stability criterion has to be applied.  

Question: What do you mean with "it shows....in the frequency axis"?
I don't understand this remark.
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
sheldon
Community Fellow
*****
Offline



Posts: 751

Re: Phase margin in open loop and close loop
Reply #2 - Aug 10th, 2010, 6:09pm
 
Greetings,

  Phase margin only has meaning for for closed loop systems.

  If you read the Designer's Guide to Spectre and SPICE or the
appends on the site, you will see that in general open loop design
is not recommended and many closed loop approaches exist

   http://www.designers-guide.org/Forum/YaBB.pl?num=1276870989

The reason these closed loop techniques have been developed and
are used is that the phase margin calculated from open loop
characteristics does not always match the actual closed loop phase
margin. There are assumptions in open loop analysis, for example,
that feedback factor is constant, and in real circuits these assumptions
are sometimes not satisfied.

For circuits with dynamic, periodic, operating points, there are often
alternative mathematical representations that allow closed loop
analysis of the system: phase domain modeling for PLL and state
average modeling for DC-to-DC converters.

                                                                Best Regards,

                                                                    Sheldon
Back to top
 
 
View Profile   IP Logged
nobody
Community Member
***
Offline



Posts: 75

Re: Phase margin in open loop and close loop
Reply #3 - Aug 10th, 2010, 6:25pm
 
I am with  sheldon about his point of the phase margin.
Back to top
 
 
View Profile   IP Logged
newic
Senior Member
****
Offline



Posts: 138

Re: Phase margin in open loop and close loop
Reply #4 - Aug 10th, 2010, 7:40pm
 
The reason i raise this question is because i see different phase margin in open loop and close loop transfer function when  doing  matlab analysis.

However, when people talk about phase margin, it directly refers to open loop transfer function. Analog books use open loop transfer function as well.  

Is it a contradictory statement between Sheldon &  buddypoor??

In the std analysis, it plots out open loop response as well but without affecting the dc bias. Do you refer this to close-loop technique?
Back to top
 
 
View Profile   IP Logged
raja.cedt
Senior Fellow
******
Offline



Posts: 1516
Germany
Re: Phase margin in open loop and close loop
Reply #5 - Aug 10th, 2010, 9:47pm
 
hello,

adding to buddypoor, as he said PM is only indicative metric of closed loop system but to measure this we need to use open loop info.

@seldon: Sir what you are saying is correct for simulation (what you mean is while finding loop gain don't open for all the reasons like dc operating point change and small signal AC impedance of the loop around the break point..it is correct) but not for theory strictly speaking it's  from open loop only.
Back to top
 
 
View Profile WWW raja.sekhar86   IP Logged
newic
Senior Member
****
Offline



Posts: 138

Re: Phase margin in open loop and close loop
Reply #6 - Aug 10th, 2010, 10:03pm
 
The conclusion is to do PM analysis in open loop without affecting the dc bias / impedance etc.

How about the difference phase margins i got in the matlab by using open loop & close loop transfer function?? Is the PM of H_close  invalid?

margin(H_open)
margin(H_close)
Back to top
 
 
View Profile   IP Logged
raja.cedt
Senior Fellow
******
Offline



Posts: 1516
Germany
Re: Phase margin in open loop and close loop
Reply #7 - Aug 11th, 2010, 12:02am
 
hi NEWIC,

it's quite reasonable to get difference between matlab and spice, because you are using macro models in matlab  where as in spice you could take all bilateral effects of feedback.
Back to top
 
 
View Profile WWW raja.sekhar86   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Phase margin in open loop and close loop
Reply #8 - Aug 11th, 2010, 1:17am
 
sheldon wrote on Aug 10th, 2010, 6:09pm:
Greetings,

  Phase margin only has meaning for for closed loop systems.

  If you read the Designer's Guide to Spectre and SPICE or the
appends on the site, you will see that in general open loop design
is not recommended and many closed loop approaches exist


                                                             


Hi Sheldon,

I agree with you, that the phase margin has a "meaning" (i.e. relevance) only for closed loop systems as open loop system cannot oscillate. However, do you DEFINE the phase margin also in a closed-loop system? This would be interesting to learn.
I like to add that I have developed a method to determine the phase margin by simulation while the loop remains closed (to be published soon in "Analog integrated circuits...") - nevertheless, I think this parameter is defined using the frequency behaviour  of the open-loop system, is it not? This was and is the background for my opinion that a closed-loop system "has" no margin. (By the way: at which point within the closed-loop could such a phase difference measured resp. found by simulation?)
Regards
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
sheldon
Community Fellow
*****
Offline



Posts: 751

Re: Phase margin in open loop and close loop
Reply #9 - Aug 11th, 2010, 6:48am
 
Greetings,

  Frank Weidmann has a nice summary on this topic. Please see
 
  http://sites.google.com/site/frankwiedmann/loopgain

Raja,

  I disagree, phase margin is a measure of the stability of a closed
loop system.

Other comments,

  If you idealize the system then the only component that contributes
phase shift is the open loop gain of the amplifier. Using this ideal
model you can estimate the closed loop phase margin from the phase
characteristics of the open loop. This approach is fine for performing
hand analysis to give you insight into the expected behavior of the
design and to perform a sanity check your simulation results.
However, if you are going to go to the trouble of simulating the
design, why wouldn't you perform the most accurate simulation
possible by including the effects that are difficult to include in hand
analysis?

BTW, one of the methods in the thread

  http://www.designers-guide.org/Forum/YaBB.pl?num=1276870989

uses a voltage-controlled, voltage source as the feedback element
and the results for this testbench should correlate with the
open loop measurements since the system is unilateral. So can
start with this testbench to verify your open loop results and then
move to sophisticated measurement methodologies.

                                                                 Best Regards,

                                                                    Sheldon

Back to top
 
 
View Profile   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Phase margin in open loop and close loop
Reply #10 - Aug 11th, 2010, 7:48am
 
Hi Sheldon, I am sorry, but I must resist on some definitions - in order to avoid misunderstandings.
Coming back to the original question:

newic wrote on Aug 10th, 2010, 1:27am:
Does it guarantee phase margin in open loop system is the same as in close loop system ?


I think each circuit has only one phase margin (as long as it contains only one feedback loop). Therefore, is it the margin of the closed-loop system or of the open-loop system? Perhaps the name is not too important as it is a more or less philosophical matter.
But its DEFINITION is important: The phase margin PM is defined as phase difference between 360 deg and the actual phase of the OPEN-LOOP transfer function at the cross-over frequency. Agreed?
However, of course the amount of margin plays a role only after closing the loop.
But coming back to my question of my last posting which was not yet answered by you: : At which node and at which frequency of the closed loop do you propose to measure/simulate the PM ? Where do you define the phase difference to 360 deg?
I know the report from F. Wiedemann since a long time and he has described several methods to simulate the PM. But in all cases the PM is simulated for OPEN-LOOP conditions.
Example: Middlebrook opens the voltage and current loop, respectively, by introducing successively a voltage and a current source and, then, he combines the results.
Thus, I cannot agree that the PM is a closed-loop parameter. It is relevant only after closing the loop; but it is a parameter that belongs to the circuit configuration in which it is defined and identified: A system with feedback in an open-loop configuration.

Regards to all. Comments are welcome.    
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
sheldon
Community Fellow
*****
Offline



Posts: 751

Re: Phase margin in open loop and close loop
Reply #11 - Aug 11th, 2010, 11:44am
 
Greetings,

  I think that you misunderstand the Middlebrook method. The loop
remains closed for the measurement. A signal is injected into the loop
and you measure the return ratio. If you look at the other
measurement techniques: VCVS-based, two-port, Tian's method,
in all cases the loops are closed. In some cases the signals are
injected inside the loop but this does not mean that the loop is open.

  For the current measurement, the current is injected in shunt with
the loop --> loop closed
  For the voltage measurement, the voltage is injected in series with
the loop --> loop closed

  A phase shift of 180 degrees causes inversion and results in
oscillation so phase margin is defined relative to a 180 degree
phase shift.

  You need to calculate the system transfer function, the loop gain,
and from the relationship of the gain and the phase of the loop
gain you can calculate the gain margin and phase margin.

  Each method of measuring the loop gain: Middlebrook, Tian, VCVS,
two-port places different requirements on where the signal is injected
and the measurements are made.

                                                                 Best Regards,

                                                                      Sheldon
Back to top
 
 
View Profile   IP Logged
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 678
Munich, Germany
Re: Phase margin in open loop and close loop
Reply #12 - Aug 12th, 2010, 1:25am
 
I have the impression that your disagreement is just about words and not about the facts. Perhaps you can both agree on the following statement which avoids the terms open-loop and closed-loop:

The stability of a circuit that contains a loop is determined by the loop gain, which is the (negative) gain around the loop. Stability criteria like phase margin, gain margin or the Nyquist stability criterion must be applied to the loop gain. Loop gain is best simulated by one of the methods developed by Middlebrook or Tian.
Back to top
 
 
View Profile WWW   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Phase margin in open loop and close loop
Reply #13 - Aug 12th, 2010, 1:26am
 
Hello SHELDON,
Thanks for your answer. Sorry, but I am afraid that you are mistaken.
 
I think that you misunderstand the Middlebrook method.


I don't think so. Please, look at the attached pdf-file. I have tried to explain the background of Middlebrooks method using a simple example - and I think I have shown that it is, indeed, an open-loop simulation. But, that's no surprise. It's only logical - the gain of an open loop cannot be determined in a closed-loop configuration. That would be a contradiction!

The loop remains closed for the measurement. A signal is injected into the loop and you measure the return ratio.

No, that`s not the case. In principle, it is impossible to simulate the loop gain when the loop remains closed!  It is evident that the loop gain is identical to a ratio of two voltages - an output voltage caused by an input voltage. That means, you need two ac decoupled nodes for injection of the input and measurement of the output - whereby the output voltage must be caused only by the gain of the open loop!
That is the reason I have asked you twice: How and where do you intend to inject such a voltage into a closed loop?

If you look at the other measurement techniques: VCVS-based, two-port, Tian's method, in all cases the loops are closed.
In some cases the signals are injected inside the loop but this does not mean that the loop is open.


The answer is given in the attachement. Perhaps the loops look as they were closed - but they aren't.

 A phase shift of 180 degrees causes inversion and results in
oscillation so phase margin is defined relative to a 180 degree
phase shift.


No, speaking of the loop gain the PM is defined relative to zero resp. 360 deg. The margin is defined relative to 180 deg only if you speak about the simple product of all loop elements - i.e. without consideration of the inversion due to negative feedback (as it is often done in control systems). However, the term loop gain must include  the minus sign. Thus, the reference to 360 deg.

You need to calculate the system transfer function,

For which purpose? It is not needed for loop gain determination. More than that, it is not possible to derive an expression for the loop gain from the closed-loop transfer function without knowing the contribution of the amplifier in advance.

Each method of measuring the loop gain: Middlebrook, Tian, VCVS,
two-port places different requirements on where the signal is injected
and the measurements are made
.

Yes, no doubt about it. Otherwise, all these methods would be more or less identical. However, all are open-loop based. Maybe, its not easy to realize by simple visual inspection (as in case of Middlebrook).  
__________________

Sorry, for the long answer.
But I think - in particular for beginners, who may follow this discussion - it is important to
(a) know the exact definitions of the parameters and
(b) their meanings and
(c) how they can be measured/simulated.

Greetings, regards. Comments are welcome.
Back to top
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Phase margin in open loop and close loop
Reply #14 - Aug 12th, 2010, 1:47am
 
Frank Wiedmann wrote on Aug 12th, 2010, 1:25am:
I have the impression that your disagreement is just about words and not about the facts. Perhaps you can both agree on the following statement which avoids the terms open-loop and closed-loop:
.


Thank you, Frank, for your proposal. However, having in mind the original question

"Does it guarantee phase margin in open loop system is the same as in close loop system?"

I don't think that it is just a disagreement about words. It was my intention to make clear that there are not two but only one parameter called "phase margin" and that is defined for open-loop conditions.
However, it's effect is important only for closed-loop operation. But that was not the question.
Regards
Lutz
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
Pages: 1 2 
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.