Exact Dynamic Modeling of PWM DC-to-DC Power Converters—Part I: Continuous Conduction Mode ()
1. Introduction
DC-to-DC converters are an important and widely used class of power processing systems. The input DC voltage is transformed to a higher or lower level, whilst achieving high power efficiency, that is, minimizing power losses. To achieve this, the controlling element is usually a set of switches. Typically these systems require tight control of the output voltage level despite variation in the input voltage and/or load current. Consequently negative feedback control is invariably used to achieve this requirement. To obtain an effective feedback design, an accurate determination of certain transfer functions need to be made. Generally small-signal averaged models are used for this purpose. In this work, however, describing function models are derived. The models derived are closed form expressions which contain state matrices of the switched networks along with the length of the various subintervals. In this paper, more specifically models for converters operating in continuous conduction mode (CCM) are considered.
The describing function modeling method is used for non-linear systems by providing a sinusoidal input and then determining the magnitude and phase at this frequency component in the output spectrum. The use of average models, widely used for this purpose, generally fail to accurately predict the response at high frequencies. Describing function modeling methods have become more popular in recent years as greater accuracy at high frequencies is sought after [1] [2] [3].
The purpose of this paper is 1) to review a describing function modeling approach previously discussed by the author [4] [5] [6], and 2) to further develop this modeling approach. This has resulted in a simplification in the model derivation. Next, 3) we demonstrate the derivation of exact frequency response models for PWM converters operating in CCM under voltage mode control using this newer formulation, and furthermore, 4) Matlab code is provided which may be adapted to determine exact frequency responses for any PWM converter topology. In this paper, confirmation of the accuracy of this modeling method is also provided by comparison with results obtained from a commercial simulator. With the latest developments included, this paper comprises an up-to-date representation of this very effective modeling method. A further purpose of this work is that with the derivation of the complete set of transfer functions to determine PWM converter frequency responses, in future work, these will be used to aid in the development of simplified, yet accurate, circuit models.
Since we are considering time varying networks, it is natural to consider the time varying transfer function [7] from which the required frequency response could be derived. In Section 4, starting with the definition of the time varying transfer function an expression is derived for the frequency response of the frequency component in the output spectrum that is being sought after, i.e. the same frequency as that of the input perturbational sine wave. This expression contains small signal state, subinterval time and input source perturbational terms. These terms are dealt with by deriving a general small signal difference equation for any switching subinterval. This is undertaken in Section 3.
The layout of the paper is as follows. The next section, Section 2, a quick review of the structure of closed loop DC-to-DC switching regulators is given. The subsequent section, as previously mentioned, serves to develop a mathematical representation of the system using state-space analysis. Starting with the large signal model, both DC and AC small signal discrete time models are derived. A general expression for the zero order component of the time varying transfer function,
, is then be developed in Section 4. In this way, any transfer function of interest can be derived. Specifically, we will look at the control input to output voltage transfer function,
, and input source to output voltage
transfer function,
. In Section 5, the method will be applied to a boost
PWM converter operating in continuous conduction mode. Confirmation of the derived models is presented in Section 6, by comparison with frequency responses obtained with a commercial simulator. Finally, the Conclusion (Section 7) summarizes the main results obtained.
2. DC-to-DC Switching Voltage Regulators
Figure 1 shows a representation of a DC-to-DC switching power regulator operating in voltage mode (VM). VM is used to describe a converter whose sawtooth signal is externally supplied rather than generated by some output of the system. Control is achieved by duty ratio d variation which can be adjusted to maintain an average (DC) output voltage
despite variations of the supply voltage
. The power stages of switched converters consist of only storage elements and switches making the power conversion theoretically lossless with ideal components. They are essential for portable devices whose supply voltage will lower as batteries are drained and for integrated circuits whose integrity would be severely compromised by heat dissipation. In Figure 1, the output voltage
across the load resistance
is sensed through a gain
Figure 1. General diagram of an VM DC-to-DC power converter featuring an output voltage controller. The output voltage is sensed through
and fed through a compensator to produce a signal
, which is then used by a comparator along with an externally provided sawtooth signal to produce a rectangular wave with period
and duty ratio d that controls the active switch. The input
contains both DC (
) and AC (
) components.
and fed into the output voltage controller along with an external reference voltage
. Impedances
and
determine the gain and the pole and zero locations and are made up of capacitors, resistors, or both depending on the particular compensator used in the output voltage controller. The compensator produces a control input signal
:
(1)
The control input signal
is fed to a comparator that compares it to an externally introduced sawtooth signal of period Ts and amplitude
, producing a rectangular wave with a duty ratio d and switching period Ts as illustrated in Figure 2 that regulates the switching between topologies of the power stage. Adjusting
appropriately so that
, where
is the DC component of
, makes:
(2)
where R is the constant large signal (DC) component of
. D, the DC component of d, is then determined by:
(3)
A good power converter will have minimal change in
with respect to change in
, thus designing a power converter requires the satisfaction of a minimizing sensitivity of the output voltage to variations in the input voltage, or
audiosusceptibility, represented by
over a specified frequency range where
and
are the small signal (AC) components of the input
and
, respectively. The design of a compensator requires the control-to-output transfer function
where
is the AC component of the control input signal
. The control design aims to provide an adequate level of positive phase margin.
3. Large and Small Signal State Space Model
State space analysis will be utilized to develop expressions that describe the topological states of the switching converters. The large signal model will first be
Figure 2. Rectangular wave produced by the comparator which regulates how long the active switch Q is turned on. The time
is the actual time that the active switch is on in the presence of perturbations while
is the DC average time that the active switch is on in the absence of perturbations.
developed and then perturbed to obtain the DC and AC the small signal models. While there is generally one switching device that controls the switching between two topologies, more topologies may exist should certain conditions be satisfied such as in Discontinuous Conduction Mode (DCM). Integer Ns denotes the number of topologies that are present within a switching period Ts. The time spent in a particular topology will define a subinterval so that Ts is divided into Ns different subintervals. The general state space represention for a time varying system is:
(4a)
(4b)
where
is the state vector consisting of both the large signal and small signal values of each inductor current and capacitor voltage,
is its derivative,
is the output of the system, and
is the input vector. Without loss of generality, the input voltage,
, is the only input considered here, thus making
a scalar:
(5)
(6)
for k inductors and l capacitors in the power stage of the converter. For a piecewise linear system the equations in (4) can be replaced by a set of
linear time invariant (LTI) state equations of the form:
(7a)
(7b)
for
, where
and
are the system and input matrices, respectively, that find the state derivative
from
and
for the ith subinterval of
.
and
are the output and feedthrough matrices, respectively, that extract a desired output
from
and
for the ith subinterval of
. Solving the state Equation (7a) at the time boundaries of the i-th subinterval leads to the following difference equation:
(8)
where
.
is the DC component of
and
is the AC component which is nonzero when a perturbation is introduced to the system. For DC analysis no perturbations are considered making
,
, and
. The DC form of (7ab) is:
(9a)
(9b)
and the DC form of (8) is:
(10)
Evaluating the integral results in:
(11a)
where
(11b)
(11c)
for
, which is the DC difference equation. Equation (11a) will be solved for a finite
as it will be required for later use. The case covered in this paper, i.e. CCM, there are two topologies so (11a) will only be given here for
. Doing so makes use of the following condition for a converter in large signal steady state:
(12)
for any nonnegative integer n. For
, (11a) becomes:
(13a)
(13b)
From (12) we see that
in DC steady state for
, Equation (13a) can be substituted into (13b) and
can be solved for:
(14)
With
solved for, (14) can then be substituted into (13a) to obtain an expression for
.
To obtain the small signal difference equation, the state vector
and switching time
are first split into their DC and AC components:
(15)
Taking the Taylor series expansions of the terms in (15):
(16)
Combining (15) and (16):
(17)
Dropping all but the first order (small signal) terms and substituting (9a) gives
and puts it in a form that will be convenient later on:
(18)
The input is also perturbed to get:
(19)
where U is the constant DC component of
and
is the AC component which will be chosen to take the form of
, where
is the peak value of the perturbation. The reasons for choosing an exponential form for the excitation signal is that the real component of
is a cosine wave and the exponential form will be convenient later on in solving the small signal difference equation for
. For similar reasons, all perturbations in this paper will be chosen to be of the same form. Symbol
represents the frequency of the perturbation signal in radians/second. Substituting (19) into (8) gives:
(20)
Evaluating the integral yields:
(21)
Substituting
and
into (21) and denoting
and
results in:
(22)
With time perturbations
and
appearing as exponents, the exponentials containing them will be linearized by replacing them with the first two terms of the Taylor series expansion:
(23)
which allows (22) to take the form:
(24)
Application of (23) to (22) is the first step in linearizing this equation. This results in (24) which is an approximation however DC and AC small signal models only consider zeroth and first order terms, respectively, thus no accuracy is lost in the “small signal sense”. Substituting in (17) for
and
, dropping any terms that are not small signal terms (first order), and solving for
:
(25)
The small signal difference equation will later be solved for a finite
.
In summary, the difference equations developed in this section along with some important identities are, for
:
DC Steady State Difference Equation (from Equation (11a)):
(26)
AC Small Signal Difference Equation (from Equation (25)):
(27)
where
(28)
The value of
, for
, is given by (14), which is reproduced below:
(14)
Another useful identity is:
(29)
The following scalars or vectors may be split into their DC and AC components:
(30)
where all perturbation signals take the following form:
(31)
where
,
, and
are the peak magnitudes of the perturbations. It should be noted that because
is a scalar containing only
,
is the peak magnitude of
. Also, the following holds for a small signal state vector in large signal steady state in the presence of exponential perturbations:
(32)
for all positive n, which relates
to
for all t.
4. The Exact Small Signal Transfer Function Expression
A general expression for the transfer functions of interest will be derived in this section by taking the average of the time varying function of a periodic network. This general expression will represent the frequency response of time interval modulated switched networks. The time varying transfer function is defined as:
(33)
where
is the impulse response at time t caused by an impulse at time
. The output of the system
can be found by generalizing (33) for any input
:
(34)
Considering an input of the form
as in (31) results in:
(35)
Rearranging gives a useful definition that will be used later:
(36)
The relation between
and its Fourier transform
is:
(37)
where
(38)
and
is the Dirac delta function. Substituting (37) into (34) yields:
(39)
From (39) the output frequency spectrum
can be found. In taking the Fourier transform of (39), a dummy variable
will be used to avoid confusion:
(40)
After applying the sifting property to (40):
(41)
Partitioning the time axis into an infinite number of switching periods indexed by k and then further subdividing the switching periods into Ns subintervals of length
results in:
(42)
Noting from (7ab) and (36) that:
(43)
Equation (42) becomes:
(44)
Substituting in (17) and (19) into (44), evaluating the integral, linearizing the terms with
and
, and dropping all of the terms that are not small signal terms (first order) results in:
(45)
where
(46)
The expression (45) can be simplified by examining the terms of the summation regarding
and
:
(47)
The summation (47) can be expanded into:
(48)
Further expanding the first two terms of (48):
(49)
Because the system is periodic and cycles through Ns topologies, the following relations hold:
(50)
Letting
, Equation (49) becomes:
(51)
and the last term of (48) becomes:
(52)
Combining (51) and (52) allows (47) to be expressed as:
(53)
and (45) to take the final simplified form:
(54)
Note that Equation (54) is a simplified version of one previously derived in [6] (Equation (9)), where now only the time perturbation at the end of each subinterval is required. This equation is further simplified next leading to the general expression of the frequency response being sought.
While
is the entire output spectrum containing impulses at integer multiples of
, we are only interested in the results at
which is the frequency response
.
can be obtained by taking the average of the inner summation over a period Tx rather than the entire output spectrum. Figure 3 shows that Tx can be an integer N multiple of Ts, therefore:
(55)
While it appears from (55) that the outer summation will have to be evaluated N times since there are small signal terms that differ between switching cycles, after substitution and evaluation of the inner summation it is evident that these terms will become independent of which Ts they are evaluated for. Therefore, the outer summation will result in N equivalent terms which are then divided by N. This is equivalent to setting
.
It will become evident that finding the transfer functions of interest involves first determining expressions for
for
, solving the difference equation to obtain an expression for
, and then substituting the results
Figure 3. Period Tx in the presence of perturbations, where the waveform of period Ts can represent any output of the system while in steady state. While the shortest possible Tx is not necessarily an integer N multiple of Ts, the relation
does provide convenience.
into the general expression
. After extracting
and
from
, the Bode plots of the transfer functions will be compared to those from a commercial simulator.
5. Voltage Mode Transfer Functions
The transfer functions of interest will now be derived for voltage mode (VM) DC-to-DC converters in CCM. As an example, the boost converter shown in Figure 4 will be used. The output voltage controller has been omitted in Figure 4 since the open loop transfer functions are derived, so the control signal
is externally supplied. The control signal
is compared to a sawtooth signal in order to generate a rectangular wave to directly control Q and regulate the switching between topologies. A VM converter has its sawtooth signal externally supplied rather than, for example, being generated from some output of the system as for current mode control. So far, the start of the switching period Ts has been defined by the period of the sawtooth signal. This way of defining the beginning of the Ts will be called Model 1. Defining the start of the interval to be the switching event controlled by
instead, which will be called Model 2, will be considerably more convenient. For this reason, the derivations will take place in Model 2, and then the subscripts of the results rotated appropriately so that they apply to Model 1. Figure 5 shows very generally how Model 1 and Model 2 are related.
In the following the transfer functions
and
for the CCM operating mode will be derived and subsequently applied to a boost converter example.
A power converter operating in CCM implies that there are two topologies (
) and thus two subintervals within a switching period Ts. Considering a CCM converter with Model 1, the first subinterval has an average (DC) length DTs and the second interval has a DC length
. The effective topologies of the boost power stage during the two subintervals are shown in Figure 6. The switching period is described by Figure 7 in both Model 1 and Model 2. Model 2
Figure 4. A VM boost converter. The control signal r(t), externally supplied in this figure, is compared to a sawtooth signal of amplitude VM and switching period Ts to create a rectangular wave with duty ratio d that controls the switching between topologies.
Figure 5. A general switching period Ts described under Model 1 and Model 2. Under Model 1 the start and end of Ts is defined by the switching period of the sawtooth signal, thus
, and the switching event ti is controlled by
. Under Model 2, the start and end of Ts is the switching event determined by
.
Figure 6. The effective topologies of a VM boost converter in CCM assuming ideal switches. (a) is the effective topology during the first subinterval of DC length DTs where Q is on and P is off. (b) is the effective topology during the second subinterval of DC length
where Q is off and P is on.
Figure 7. Switching period Ts for a VM converter in CCM, described for both Model 1 and Model 2. (a) shows the sawtooth voltage of period Ts being compared to the control signal
to produce the rectangular wave (b). (c) illustrates how the times are denoted under Model 1 and Model 2.
will be used for the following derivation, effectively swapping the order of the two subintervals. Considering Model 2, the switching time t2 is determined by the period Ts of the sawtooth signal and thus
. t3 is the time when the sawtooth signal reaches the value of
:
(56)
Dropping the DC components of
and
:
(57)
Taking the Taylor series expansion of
and dropping the second order term:
(58)
Substituting (58) into (57) gives an expression for
:
(59)
where
(60)
With
obtained, the next step is to get
by solving the difference Equation (27). From (27) an expression for
is found:
(61)
Using (27) again and substituting in (59) and (61) gives:
(62)
Expressing all of the signals in their exponential form as in (31) and substituting in (32) for
:
(63)
Solving for
:
(64)
Now all that is left is to substitute (59), (61), and (64) into (55). Expanding (55) for
gives:
(65)
Substituting in (59):
(66)
Now substituting in (61):
(67)
Finally substituting in (64):
(68)
Rotating the subscripts of (68) to Model 1 only involves switching them, giving the final result:
(69)
where
(70)
From (69) the transfer functions are extracted by setting the input of interest to one while setting the other to zero. The exact small-signal control-to-output transfer function
is therefore found by setting
and setting
:
(71)
The exact small-signal input-to-output transfer function
is found by setting
and setting
:
(72)
To relate these to formerly obtained results in the literature we will consider the following. The above transfer functions contain exponential terms. It can be readily shown that expanding these in a Taylor series and retaining only the first order terms results in the state space averaged transfer function models [8]. The state space averaged small-signal control-to-output transfer function is given by:
(73)
and, the state space averaged small-signal input-to-output transfer function is given by:
(74)
Comparison of these reduced order models with the exact models is discussed below.
6. Example
A boost converter with the following parameters is used to compare the frequency responses obtained using the PSIM simulator [9] and the derived models.
(75)
The “AC Sweep” functionality in PSIM is used to obtain the frequency responses from this simulator. The PSIM circuit configuration used to obtain the control to output response is shown in Figure 8. The 100 kHz triangular waveform at the negative input of the comparator has a peak-to-peak amplitude of 1 V. At the positive input of the comparator a 0.25 V DC voltage is added to the small amplitude perturbation source, Vsweep. This established a steady state duty ratio of 0.25. The amplitude of the perturbation source needed to be adjusted to be small enough to not overdrive the converter, which yields inaccurate results, yet needs to be large enough to provide a measurable output signal at high frequency. A start and end amplitude value of 0.02 V was found to give good results. The frequency sweep was from 100 Hz to 45 kHz (which is slightly less than half the switching frequency).
The magnitude and phase responses for the control-to-output function are shown in Figure 9 and Figure 10, respectively. The describing function model is given by Equation (71). In each figure, there are two plots drawn. The first plot shows the model response which is drawn in blue, subsequently the response obtained from PSIM is overlaid in red. The match is so close such that the red completely overwrites the previous plotted curve. The complete Matlab code used to run the models and produce the plots is shown as three functions in the Appendix.
Figure 8. PSIM schematic used to obtain the control-to-output frequency response for the boost converter operating in CCM.
Figure 9. The magnitude response for the control to output transfer function of the boost converter operating in CCM. Model magnitude plot is in blue and the PSIM obtained magnitude plot is in red. We see excellent agreement such that only the red plot is mostly visible, since it is the second plot to be drawn.
Figure 10. The phase response for the control to output transfer function of the boost converter operating in CCM. Model phase plot is in blue and the PSIM obtained phase plot is in red. We see excellent agreement such that only the red plot is mostly visible.
The PSIM schematic used to obtain the input voltage to output voltage response is shown in Figure 11. The perturbation source is now in series with the input voltage. A starting value of 0.05 V and end amplitude value of 0.3 V was used for the Vsweep perturbation signal. The magnitude and phase responses for the control-to-output function are shown in Figure 12 and Figure 13, respectively. The describing function model is given by Equation (78). Again the agreement between the derived model and the simulated result is seen to be excellent. These results validate the derived models.
Figure 11. PSIM schematic used to obtain the input-to-output frequency response for the boost converter operating in CCM.
Figure 12. The magnitude response for the input to output transfer function of the boost converter operating in CCM. Model magnitude plot is in blue and the PSIM obtained magnitude plot is in red. We see excellent agreement such that only the red plot is mostly visible.
Figure 13. The phase response for the input to output transfer function of the boost converter operating in CCM. Model phase plot is in blue and the PSIM obtained phase plot is in red. We see excellent agreement such that only the red plot is mostly visible.
Application of the reduced order (state space averaged) models, i.e. equations (73) and (74), for this example has shown that the accuracy obtained with these models is sufficient for this operating mode (i.e. CCM) and control regime (i.e. voltage mode control). Note however when one considers other operating modes, such as DCM, or other control schemes, such as current mode control, the low order averaged models lack sufficient accuracy at high frequencies. A wide range of models have been presented to model converters in DCM, for example, see [10] for a recent historical overview of these models.
7. Conclusions
Integral in control system design for dc-to-dc regulators is the use of transfer functions to determine relevant frequency responses. Typically average models have been used which may provide reasonable accuracy at low frequencies but often are inaccurate at high frequencies. In contrast a describing function model has been further developed in this paper. These models are based on a state equation formulation of the system. They are exact in the small-signal sense and therefore can precisely determine the frequency response over all excitation frequencies of interest. This modeling approach has been applied here to PWM converters operating in CCM in deriving control-to-output and input-to-output transfer functions.
An application example has been provided in the form of a boost dc-to-dc converter. The control to output voltage and input source voltage to output voltage frequency responses were determined. These were subsequently compared with the frequency responses obtained using the commercial simulator PSIM. An excellent match was achieved for the considered frequency range up to almost half the switching frequency. As the modeling method is exact, it may be used as a benchmark for accuracy by which other models may be compared and from which simplified models may be derived.
Appendix
The appendix shows the Matlab code of the three functions used to determine and plot the frequency responses of the boost converter example (Figures A1-A3).
Figure A1. Matlab function: loadCCM.m. This function produces the state matrices for the boost converter.
Figure A2. Matlab function: exact_ccm.m. Given the state matrices and other parameters, the control to output and input to output transfer functions are determined.
Figure A3. Matlab script: boost_CCM.m. This is the main program which calls the previous functions and plots the frequency responses.