Electrical – Average PWM Switch Model

ltspicemodelingpwmspiceswitch-mode-power-supply

I'm trying and want to learn how to use the PWM Switch Model by DR.Vorpérian , both for the voltage mode(VM) and current mode (CM) model.
I've read some about the models in "Switched-mode power supplies" by Christophe Basso.
However a book can't answer questions, so I hope this thread will be useful on the the way of learning.

Question 1)
If I've understood the PWM Switch Model correctly for both the VM and CM case, the model can be directly inserted in any simulation so long it's "rotated" correctly for the current topology, without any modification or calculation necessary because the model is just a linear model of the switch?

Question 2)
Which means I can add an infinity amount components outside the so called PWM switch model without the need of modifying the function of the model?

If the answear to the above questions is "Yes" wouldn't it be possible to use the models presented at Bassos webpage which are derived for LTspice?


The model I'm talking about can briefly be found here:
https://www.onsemi.com/site/pdf/pcim_basso.pdf

The model symbol when implemented in spice

Yes I do wonder if the LTspice models available on bassos webpage is complete. In that way that they can toggle between CCM and DCM operation and do not need any modifications.


@laptop2d answer

The idea off the model is to simulate the SMPS behavior in a much quicker way than actually components to analyze the circuit in a big scope. To be able to look at the transition between CCM & DCM and to analyze the transfer function and make the circuit stable before moving on to a more real component simulation.

My question do need knowledge about the “PWM switch model” to be answered correctly. If I’ve understood the PWM switch model correctly it only need to be derived once to be implemented in any topology, which in that case means that I don’t have to derive every model to be able to simulate a circuit quickly and tweak them. Which you have to do with the state space averaging (SSA) method which requires that you rederive the average model every time you add or take away any component.

So my questions are; if the PWM-switch model is correctly described for LTspice att Basso’s webpage, can they be used directly? Without any derivation? For any topology? for both the CCM & DCM case for the VM & CM-model?


Best Answer

Let's see how I can answer your questions:

Q1: yes, the idea behind the PWM model is to replace the switching cell made of the switch and diode by a 2-port circuit in which non-linear time-continuous equations describe the average behavior of the cell while switching. This principle follows that already adopted with the hybrid-\$\pi\$ model of bipolar transistors where you replace the transistor symbol by a linear model and follows the pin arrangement c-b-e when rotating the model to match the original circuit. Whether this is a common-emitter, common-base, common-collector or another arrangement, the hybrid-\$\pi\$ model remains the same: it is an invariant model.

With the PWM switch, it is the same. Once you have identified the switching cell in a switching converter, you plug the PWM switch model as shown in the book or even here, for a recent refresh on the subject. The simplest form of the CCM voltage mode model is a "dc" transformer having a turns ratio \$1:D\$, \$D\$ being the duty ratio. Of course, this is a non-linear equation but the cool thing is that SPICE being a linear solver, when you press AC or TRAN analysis, SPICE will always linearize equations around the computed bias point. So if you plug the simplest form of the model (a \$1:D\$ transformer), you can already simulate and obtain the frequency response of all CCM voltage mode topologies:

enter image description here

Now, if you want to derive a given transfer function, you will have to linearize the \$1:D\$ model into a small-signal model. Once this is done, plug it back into the circuit and work on a linear circuit:

enter image description here

State-Space Averaging is indeed a powerful tool but as you said, it considers the entire converter during the analysis. Should you want to add a resistor somewhere, a front-end filter and so on then you need to re-start from scratch. With the PWM switch, add any linear component like a front-end filter, a post LC filter etc. the model does not change.

Q2: Yes, there are some LTspice models in the page you mention and indeed, they work. Please note that from a voltage mode model, you can easily turn in into a current mode model just by adding an equation linking the control voltage \$V_c\$ to the duty ratio \$D\$. The only thing is that you won't be able to predict sub-harmonic oscillations unless you add a second-order polynomial form in series with the \$D\$ generator. A modeling approach of this technique is described here.