Minia University From the SelectedWorks of Dr. Adel A. Elbaset Winter December 17, 2015 Small-Signal MATLAB/Simulink Model of DCDC Buck Converter using State-Space Averaging Method Dr. Adel A. Elbaset Available at: http://works.bepress.com/dr_adel72/83/ 17th International Middle East Power Systems Conference, Mansoura University, Egypt, December 15-17, 2015 Small-Signal MATLAB/Simulink Model of DC-DC Buck Converter using State-Space Averaging Method Adel A. Elbaset adel.soliman@mu.edu.eg M. S. Hassan* m.salah@mu.edu.eg Tel. +20-109-0343201 Tel. +20-112-9800862 Electrical Engineering Department, Faculty of Engineering, Minia University, El-Minia 61517, Egypt Abstract - This paper presents a comprehensive small-signal MATLAB/Simulink model for the DC-DC buck converter operated under Continuous Conduction Mode (CCM). Initially, the buck converter is modeled using state-space average model and dynamic equations,depicting the converter, are derived. Then, a detailed MATLAB/Simulink model utilizing SimElectronics Toolbox is developed. Finally, the robustness of the converter model is verified against input voltage variations and step load changes. Simulation results of the proposed model, show that the output voltage and inductor current can return to steady state even when it is influenced by load and/orinput voltage variation, with a very small overshoot and settling time. The proposed model can be used to design powerful, precise and robust closed loop controller that can satisfy stability and performance conditions of the DC-DC buck regulator. This model can be used in any DC-DC converter (Buck, Boost, and Buck-Boost) by modifying the converter mathematical equations. Index Terms - Small-signal model; State-space averaging; Buck converter; MATLAB/Smulink I. INTRODUCTION The ever expanding demand for smaller size, portable, and lighter weight with high performance DC-DC power converters for industrial, communications, residential, and aerospace applications is currently a topic of widespread interest [1]. There is an extraordinary progression in technology with an effort of incorporating various features in portable and hand-held devices such as smart-phones, tablet PCs, LED lighting and media players, which are suppliedprimarily with power from batteries[2]. These devices are typically designed to be high-performance and thus require cheap, fast and stable power supplies to assure proper operation. Because of these requirements, Switched-mode DC-DC converters have become commonplace in such integrated circuits due to their ability to up/down the voltage of a battery coupled with high efficiency. The three essential configurations for this kind of power converters are buck, boost and buck–boost circuits, which provide low/high voltage and current ratings for loads at constant switching frequency [1]. A buck converter,as shown in Fig. 1, is one of the most widely recognized DC-DC converter.The topology of DC-DC converters consists of linear (resistor, inductor and capacitor) and nonlinear (diode and dynamic switch) parts. Because of the switching properties of the power devices, the operation of these DC-DC converters varies by time. Since these converters are nonlinear and time variant, to design a robust controller, a small-signal linearized model of the DC-DC converter needs to be found and simulated in a simulation environment befor implementation[3]. ig(t) Q i(t) L + + vg(t) Diode C R - v(t) - Fig. 1: Basic DC-DC Buck Converter Modeling of a system may be described as a process of formulating a mathematical description of the system. It entails the establishment of a mathematical input-output model which best approximates the physical reality of a system. In control systems (which are dynamic physical systems) this entails obtaining the differential equations of the systems by the appropriate applications of relevant laws of nature. Switching converters are nonlinear systems. Even when the system is modeled by a set of simultaneous equations, one of the equations must at least be nonlinear[4].The nonlinearity of switching converters makes it desirable that small-signal linearized models be constructed.An advantage of such linearized model is that for constant duty cycle, it is time invariant.There is no switching or switching ripple to manage, and only the DC components of the waveforms are modeled. This is achieved by perturbing and linearizing the average model about a quiescent operating point [4-5].Various AC converter modelling techniques, to obtain a linear continuous time-invariant model of a DC-DC converter, have appeared in the literature. Nevertheless, almost all modeling methods, including the most prominent one, state-space averaging[6-7], will result in a multi-variable system with state-space equations, ideal or nonideal, linear or nonlinear, for steady state or dynamic purpose. Until now a numerous software applications of smallsignal model for DC-DC coverter applications have been developed [8-15] to be utilized in controller design and increase converters’ performance.These applications vary in various aspects such PSCAD/EMTDC software, PSpice simulator, Internet-based platform PowerEsim and MATLAB/Simulinksoftware package. H. Mashinchi Mahery and E. Babaei[8]proposed a new method for mathematical modeling of buck–boost DC-DC converter in CCM. The proposed method is based on Laplace and Z-transforms. The 17th International Middle East Power Systems Conference, Mansoura University, Egypt, December 15-17, 2015 simulation results in PSCAD/EMTDC software as well as the experimental results were used to reconfirm the validity of the hypothetical investigation. Galia Marinova[9] dealed with the possibility to apply the PSpice simulator as a verification tool for switched mode power supply design with the Internetbased platform PowerEsimutilizing real component models in PSpice, which give better accuracy. A. A. Ghadimi, A. M. Daryani, and H. Rastegar[10] presented a detailed small-signal and transient analysis of a full bridge PWM converter designed for high voltage, high power applications using an average model. The derived model was implemented in PSCAD/EMT tool and used to produce the small-signal and transient characteristics of the converter. Juing-Huei Su, JiannJong Chen and Dong-Shiuh Wu [11] developed a MATLAB/Simulink application for simulation and learning feedback controller design of DC-DC switching converters in education. The accuracy of this approach was also verified by comparing the simulation results with the responses obtained from a buck-type DC-DC switching converter circuit and existing experimental results.Mohamed Assaf, D. Seshsachalm, D. Chandra and R. K. Tripathi[12]analyzed the nonlinear, switched, state-space models for buck, boost, buckboost, and Cuk converters. MATLAB/Simulink was used as a tool for simulation in the study andfor close loop system design.Alberto Reattiand Marian K. Kazimierczuk[5]presented a small-signal circuit model for pulsewidth-modulated (PWM)DC-DC converters operated in discontinuous conduction mode.The proposed model is suitable for small-signal,frequency-domain representation of the converters.Ali Emadi [13] presented a modular approach for the modelling and simulation of multi-converter DC power electronic systems based on the generalized state space averaging method. A modular modelling approach based on the generalized state space averaging technique had been utilized to build large-signal models.M. R. Modabbernia, F. Kohani, R. Fouladi, and S. S. Nejati[3] presented a complete state-space average model for the buck-boost switching regulators. The presented model included the most of the regulator’s parameters and uncertainties. J. Mahdavi, A. Emaadi, M. Bellar, and M. Ehsani[14]presented a generalized state-space averaging method to the basic DC-DC singleended topologies. Simulation results were compared to the exact topological state-space model and to the well-known state-space averaging method. This paper develops a MATLAB/Simulink model that describes the AC small-signal linear time-invariant circuit model of a DC-DC buck converter using SimElectronics toolbox. The proposed model can be used to design a precise and robust closed loop controller.In Section II, a problem formulation, desciebs the paper objective, is discussed. Section III presents state-space average methodology used, steps of power stage modeling and steadystate solution. Perturbation and linearization about a quiescent operating point is also applied. Finally the canonical form is illustarted. In section IV, a small-signal MATLAB/Simulink model is developed after introducing the capabilities of SimElectronics toolbox. Simulation results are discussed in Section V. In Section VI, the conclusions and future work are discussed. II. PROBLEM FORMULATION To obtain high performance control of a DC-DC converter, a good model of the converter is required.The MATLAB/Simulink software package can be advantageously used to simulate power converters.Therefore, it can be a convenient approach for designing controllers to be applied to switched converters. This paper derives the mathematical modelling for DC-DC buck converter based on small-signal analysis and presents its verification by simulation in MATLAB/Simulink using SimElectronics Toolbox. III. METHODOLOGY To design the control system of a converter, it is necessary to model the behavior of dynamic converter. In particular, it is of interest to determine how variations in input voltage π£π£ππ (π‘π‘) , and load currentaffect the output voltage. Unfortunately, understanding of converter dynamic behavior is hampered by the nonlinear time-varying nature of the switching and pulse-width modulation process. These challenges can be overcome through the utilizationof waveform averaging and small-signal modeling techniques [4],[15-16]. A. Modeling of DC-DC Buck Converter Power stage modeling for DC-DC buck converter based on state-space average method can be achieved to obtain an accurate mathematical model of the converter.A sate-space averaging methodologyis a mainstay of modern control theory and most widely used to model DC-DC converters. The statespace averaging method use the state-space description of dynamical systems to derive the small-signal averaged equations of PWM switching converters. [4]. Fig. 2 illustrates the procedures of power stage modelling. The state space dynamics description of each time-invariant system is obtained. These descriptions are then averaged with respect to their duration in the switching period providing an average model in which the time variance is removed, which valid for the entire switching cycle. The resultant averaged model is nonlinear and time-invariant. This model is linearized at the operating point to obtain a small-signal model. The linearization process produces a linear time-invariant smallsignal model. Finally, the time-domain small-signal model is converted into a frequency-domain, or s-domain, small-signal model, which provides transfer functions of power stage dynamics. The resulting transfer functions embrace all the standard s-domain analysis techniques and reveal the frequency-domain small-signal dynamics of power stage [17]. 17th International Middle East Power Systems Conference, Mansoura University, Egypt, December 15-17, 2015 ig(t) Non-linear time varying powerstage dynamics i(t) L + + vg(t) Averaging Non-linear average model Averaged time-domain power stage dynamics Linear timedomain smallsignal model Averaged time-domain dynamics under smallsignal excitation s-domain smallsignal model s-domain power stage transfer functions C R v(t) - Fig. 4: Buck converter equivalent circuit in OFF-state Linearization s-domain conversion Fig. 2: Steps of power stage modeling [17] In the method of state-space averaging, an exact state-space description of the power stage is initially formulated. The resulting state-space description is called the switched statespace model. a) switched state-space model 1. On-state period As shown in Fig. 1 when MOSFET switch (Q) is ON, Diode is reverse biased, the converter circuit of Fig. 3is obtained.Tthe power stage dynamics during an ON-time period can be expressed in the form of a state-space equation as general: ππx(π‘π‘) ππ = πΈπΈ1 x(π‘π‘) + πΉπΉ1 u(π‘π‘) (1) ππππ y(π‘π‘) = β1 x(π‘π‘) + πΌπΌ1 u(π‘π‘) (2) Rewriting the state-space equations in the form of inductor voltage, capacitor current, and converter input current and voltage are given by 0 −1 ππ(π‘π‘) πΏπΏ 0 ππ ππ(π‘π‘) 1 (3) οΏ½ οΏ½ οΏ½ οΏ½ = οΏ½1 − 1 οΏ½ οΏ½ οΏ½ + οΏ½ οΏ½ οΏ½π£π£ππ (π‘π‘)οΏ½ π£π£(π‘π‘) 0 πΆπΆ ππππ π£π£(π‘π‘) 0 π π ππ(π‘π‘) (4) οΏ½ππππ (π‘π‘)οΏ½ = [1 0] οΏ½ οΏ½ + [0]οΏ½π£π£ππ (π‘π‘)οΏ½ π£π£(π‘π‘) ig(t) i(t) L + + vg(t) C R v(t) - Fig. 3: Buck converter equivalent circuit in ON-state 2. Off-state period As shown in Fig. 1 when MOSFET switch (Q) is OFF, Diode is forward biased, the converter circuit of Fig. 4is obtained. Tthe power stage dynamics during an OFF-time period can be expressed in the form of a state-space equation as general: ππx(π‘π‘) ππ = πΈπΈ2 x(π‘π‘) + πΉπΉ2 u(π‘π‘) ππππ y(π‘π‘) = β2 x(π‘π‘) + πΌπΌ2 u(π‘π‘) 0 −1 ππ(π‘π‘) πΏπΏ 0 ππ ππ(π‘π‘) 0 οΏ½ οΏ½ οΏ½ οΏ½ = οΏ½1 − 1 οΏ½ οΏ½ οΏ½ + οΏ½ οΏ½ οΏ½π£π£ππ (π‘π‘)οΏ½ π£π£(π‘π‘) 0 πΆπΆ ππππ π£π£(π‘π‘) 0 π π ππ(π‘π‘) οΏ½ππππ (π‘π‘)οΏ½ = [0 0] οΏ½ οΏ½ + [0]οΏ½π£π£ππ (π‘π‘)οΏ½ π£π£(π‘π‘) (5) (6) (7) (8) B. Steady State Solution The steady state solution is obtained by equating the rate of change of dynamic variables to zero to evaluate the state-space averaged equilibrium equations. 0 = πΈπΈX + πΉπΉU (9) Y = βX + πΌπΌU (10) where, the averaged matrice, πΈπΈ,is obtained by: 0 −1 0 −1 0 −1 πΈπΈ = π·π·πΈπΈ1 + π·π·′ πΈπΈ2 = π·π· οΏ½1 − 1 οΏ½ + π·π·′ οΏ½1 − 1 οΏ½ = οΏ½1 − 1 οΏ½ π π π π π π (11) In a similar manner, the averaged matrices πΉπΉ, β, and πΌπΌ are evaluated, with the following equations: π·π· πΉπΉ = π·π·πΉπΉ1 + π·π·′ πΉπΉ2 = οΏ½ οΏ½ (12) 0 ′ (13) β = π·π·β1 + π·π· β2 = [π·π· 0] (14) πΌπΌ = π·π·πΌπΌ1 + π·π·′ πΌπΌ2 = [0] The equilibrium values of the averaged vectorscan be obtained form Eq.(9) and Eq.(10)as follows: (15) X = −πΈπΈ−1 πΉπΉU (16) Y = (−βπΈπΈ−1 πΉπΉ + πΌπΌ)U After any transients have been subsided, the inductor current ππ(π‘π‘), the capacitor voltage π£π£(π‘π‘) and the input current ππππ (π‘π‘) will reach the quiescent values πΌπΌ, ππand πΌπΌππ respectively, where ππ = π·π·ππππ ππ οΏ½ πΌπΌ = π π πΌπΌππ = π·π·π·π· (17) C. Perturbation and Linearization The switching ripples in the inductor current and capacitor voltage waveforms are removed by averaging over one switching period. While the averaging eliminates the time variance from the power stage dynamics, it brings in certain nonlinearities to the average model of the power stage. In this section, the linearization process is implemented to remove nonlinearities brought in during the averaging process. The linearized average model constitutes the small-signal model of the power stage.The low-frequency components of the input and output vectors are modeled in a similar manner. By averaging the inductor voltages and capacitor currents,the basic averaged model which describes the converter dynamics are given as follows: οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ ππx(π‘π‘) οΏ½οΏ½οΏ½οΏ½οΏ½ + [ππ(π‘π‘)πΉπΉ1 + ππ ′ (π‘π‘)πΉπΉ2 ]u(π‘π‘) οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ ππ = [ππ(π‘π‘)πΈπΈ1 + ππ ′ (π‘π‘)πΈπΈ2 ]x(π‘π‘) ππππ (18) ′ (π‘π‘)β ]x(π‘π‘) ′ οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½ [ππ(π‘π‘)β [ππ(π‘π‘)πΌπΌ y(π‘π‘) = + 1 + ππ 2 1 + ππ (π‘π‘)πΌπΌ2 ] u(π‘π‘) (19) To construct a small-signal AC model at a quiescent operating point ( πΌπΌ , ππ), it is assumed that the input voltage π£π£ππ (π‘π‘) and the 17th International Middle East Power Systems Conference, Mansoura University, Egypt, December 15-17, 2015 duty cycle ππ(π‘π‘)are equal to some given quiescent values ππππ and π·π· , plus some superimposed small AC variations π£π£οΏ½ππ (π‘π‘)andππΜ (π‘π‘)respectively, where the capitalized variables are DC components and the variables with superscript π₯π₯οΏ½ are AC components.Perturbation and Linearization about a quiescent operating point is applied to construct the small-signal AC model as follows. οΏ½οΏ½οΏ½οΏ½οΏ½ β§ x(π‘π‘) = ππ + π₯π₯οΏ½(π‘π‘) βͺ u(π‘π‘) οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ = ππ + π’π’οΏ½(π‘π‘) (20) οΏ½οΏ½οΏ½οΏ½οΏ½ = ππ + π¦π¦οΏ½(π‘π‘) β¨ y(π‘π‘) βͺ β©ππ(π‘π‘) = π·π· + ππΜ (π‘π‘) wher, π’π’οΏ½(π‘π‘) and ππΜ (π‘π‘) are small AC variations in the input vector and duty ratio. The vectors π₯π₯οΏ½(π‘π‘) and π¦π¦οΏ½(π‘π‘) are the resulting small AC variations in the state and output vectors. It is assumed that these AC variations are much smaller than the quiescent values. The large-signal state-space equitions are given as : ππππ πππ₯π₯οΏ½(π‘π‘) ππ οΏ½ + οΏ½= ππππ ππππ (πΈπΈππ + πΉπΉπΉπΉ) + οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ π·π·π·π· π‘π‘π‘π‘π‘π‘π‘π‘π‘π‘ οΏ½πΈπΈπ₯π₯ οΏ½(π‘π‘) + πΉπΉπ’π’οΏ½(π‘π‘) + οΏ½(πΈπΈ1 − πΈπΈ2 )ππ + (πΉπΉ1 − πΉπΉ2 )πποΏ½ππΜ (π‘π‘)οΏ½ + οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ 1π π π π ππππππππππ ππππ π‘π‘π‘π‘π‘π‘π‘π‘π‘π‘ (ππππππππππππ ) Μ οΏ½(π‘π‘) + (πΉπΉ1 − πΉπΉ2 )ππΜ (π‘π‘)π’π’οΏ½(π‘π‘)οΏ½ οΏ½(πΈπΈ 1 − πΈπΈ2 )ππ (π‘π‘)π₯π₯ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ (21) 2 ππππ ππππππππππ ππππ π‘π‘π‘π‘π‘π‘π‘π‘π‘π‘ (ππππππππππππππππππ ) ππ + π¦π¦οΏ½(π‘π‘) = (βππ + πΌπΌπΌπΌ) οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½ + π·π·π·π· π‘π‘π‘π‘π‘π‘π‘π‘π‘π‘ οΏ½βπ₯π₯ οΏ½(π‘π‘) + πΌπΌπ’π’οΏ½(π‘π‘) + οΏ½(β1 − β2 )ππ + (πΌπΌ1 − πΌπΌ2 )πποΏ½ππΜ (π‘π‘)οΏ½ + οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ 1π π π π ππππππππππ ππππ π‘π‘π‘π‘π‘π‘π‘π‘π‘π‘ (ππππππππππππ ) Μ οΏ½(π‘π‘) + (πΌπΌ1 − πΌπΌ2 )ππΜ (π‘π‘)π’π’οΏ½(π‘π‘)οΏ½ οΏ½(β 1 − β2 )ππ (π‘π‘)π₯π₯ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ (22) 2 ππππ ππππππππππ ππππ π‘π‘π‘π‘π‘π‘π‘π‘π‘π‘ (ππππππππ ππππππππππ ) Equations (21) and (22) may be separated into DC (steady state) terms, linear small signal terms and non-linear terms. For the purpose of deriving a small-signal AC model, the DC terms can be considered known constant quantities. It is desired to neglect the nonlinear AC terms, then each of the second-order nonlinear terms is much smaller in magnitude that one or more of the linear first-order AC terms. Alsothe DC terms on the right-hand side of the equation are equal to the DC terms on the left-hand side, or zero. So the desired small-signal linearized state-space equations are obtained as follows: πππ₯π₯οΏ½(π‘π‘) ππ = πΈπΈπ₯π₯οΏ½(π‘π‘) + πΉπΉπ’π’οΏ½(π‘π‘) + οΏ½(πΈπΈ1 − πΈπΈ2 )ππ + (πΉπΉ1 − ππππ πΉπΉ2 )πποΏ½ππΜ (π‘π‘) (23) π¦π¦οΏ½(π‘π‘) = βπ₯π₯οΏ½(π‘π‘) + πΌπΌπ’π’οΏ½(π‘π‘) + οΏ½(β1 − β2 )ππ + (πΌπΌ1 − πΌπΌ2 )πποΏ½ππΜ (π‘π‘) (24) The resultant small-signal AC equations of the ideal buck converter are given as follows: ππππΜ (π‘π‘) πΏπΏ = π·π·π£π£οΏ½ππ (π‘π‘) + ππππ ππΜ (π‘π‘) (25) πΆπΆ ππππ πππ£π£οΏ½(π‘π‘) ππππ = ππΜ(π‘π‘) − π£π£οΏ½(π‘π‘) π π (26) (27) ππΜππ (π‘π‘) = π·π·ππΜ(π‘π‘) + πΌπΌππΜ (π‘π‘) Equations (25), (26) and (27) can be arranged in the form of state-space as follows: 0 0 ππΜ(π‘π‘) πΏπΏ 0 ππ ππΜ(π‘π‘) π·π· οΏ½ οΏ½ οΏ½ οΏ½ = οΏ½1 − 1 οΏ½ οΏ½ οΏ½ + οΏ½ οΏ½ οΏ½π£π£οΏ½ππ (π‘π‘)οΏ½ + π£π£ οΏ½(π‘π‘) 0 0 πΆπΆ ππππ π£π£οΏ½(π‘π‘) π π ππππ Μ (28) οΏ½ οΏ½ οΏ½ππ (π‘π‘)οΏ½ 0 ππΜ(π‘π‘) οΏ½ + [0]οΏ½π£π£οΏ½ππ (π‘π‘)οΏ½ + [πΌπΌ]οΏ½ππΜ (π‘π‘)οΏ½ (29) οΏ½ππΜππ (π‘π‘)οΏ½ = [π·π· 0] οΏ½ π£π£οΏ½(π‘π‘) Figure 5 shows the resultant small-signal model of the ideal buck converter according to the previous equations. Fig. 5: Small-Signal AC model of the buck converter, befor manipulation into canonical form[4] D. The Canonical Circuit Model[4] It was found that converters having similar physical properties should have qualitatively similar equivalent circuit models.The AC equivalent circuit of any CCM PWM DC-DC converter can be manipulated into a canonical form [6], where it is desired to analyze converter phenomena in a general manner, without reference to a specific converter.As illustrated in Fig. 6, power stage was modeled with an ideal DC transformer, having effective turns ratio 1 βΆ ππ(π·π·) where ππis the conversion ratio. This conversion ratio is a function of the quiescent duty cycle π·π·. Also, slow variations in the power input induce AC variations π£π£οΏ½(π‘π‘) in the converter output voltage. The converter must also contain reactive elements that filter the switching harmonics and transfer energy between the power input and power output ports, where, π»π»ππ (π π ) is the transfer function of the effective low-pass filter loaded by resistance π π . The effective filter also influences other properties of the converter, such as the small-signal input and output impedances. Control input variations, specifically, duty cycle variations ππΜ (π‘π‘), also induce AC variations in the converter voltages and currents. Hence, the model should contain voltage and current sources driven byππΜ (π‘π‘). To manipulate the model all of the sources ππΜ (π‘π‘) are pushed to the input side of the equivalent circuit. In general, the sources can be combined into a single voltage source ππ(π π )ππΜ (π π )and a single current source ππ(π π )ππΜ (π π )as indicated in Fig. 6. 17th International Middle East Power Systems Conference, Mansoura University, Egypt, December 15-17, 2015 performance and to create plant models for control design. These models support the entire development process, including hardware-in-the-loop (HIL) simulations and C-code generation. Fig. 6:Canonical model of essential DC-DC converters, including DC transformer model, AC variation, effective low-pass filter and AC duty cycle input [4] Since all PWM DC-DC converters perform similar basicfunctions, the equivalent circuit models will have thesame form. Consequently, the canonical circuit model of Fig. 6 can represent the physical properties of any PWM DCDCconverters. Canonical model parameters for the ideal buck converter are derived and the resultant parameters are given as: ππ(π·π·) = π·π· β§ πΏπΏ = πΏπΏ βͺ ππ ππ ππ(π π ) = 2 π·π· β¨ βͺ ππ(π π ) = ππ β© π π (30) Fig. 7: The buck converter model in the canonical form IV. MATLAB SIMULATION A. SimElectronics MATLAB Toolbox Overview SimElectronics® MATLAB toolbox [18]provides component libraries for modeling and simulating electronic and mechatronic systems that can be used to develop control algorithms in electronic and mechatronic systems and to build behavioral models for evaluating analog circuit architectures in Simulink®. SimElectronics is used to optimize system-level SimElectronics provides libraries of semiconductors, integrated circuits, and passive devices. In addition to the traditional input-output or signal flow connections used in Simulink, the electronic component models in SimElectronics use physical connections that permit the flow of power in any direction. Models of electronic systems built using physical connections closely resemble the electronic circuit they represent and are easier to understand. Transient simulation of SimElectronics models can be performed. Every aspect of your simulation can be automated using scripts in MATLAB, including configuring the model, entering simulation settings, and running batches of simulations. The steady-state solve capability can be used to reduce simulation time by automatically removing unwanted transients at the start of simulation. B. Proposed MATLAB/Simulink model The simulation environment MATLAB/Simulink is quite suitable to design the modeling circuit, and to learn the dynamic behavior of different converter structures in open loop. The proposed model as shown in Fig. 8 consists of three parts, the first part is the supply part which assumed to have various DC supply cases such as constant DC input, step change in DC input, and DC input voltage with some ripples. The voltage levels used in the proposed model are 24 V as an input voltage and 12 V as an outut voltage. The various cases can be changed through a manual switch block. The Controlled Voltage Source block represents an ideal voltage source that is powerful enough to maintain the specified input voltage at its output regardless of the current flowing through the source. This block requires a Simulink-Physical Signal (S-PS) converter which used to connect simulink sources or other simulink blocks to the inputs of a physical network diagram. The last part is the load part which assumed to have step change in load to test the model and show the effect of load changing on the model behavior under various input cases. The load changing is done through a Signal Builder block. Each physical network represented by a connected Simscape block diagram requires solver settings information for simulation. The Solver Configuration block specifies the solver parameters that the model needs before simulation. 17th International Middle East Power Systems Conference, Mansoura University, Egypt, December 15-17, 2015 Fig. 8: Complete MATLAB/Simulink model of DC-DC buck converter The middle part is a subsystem which contains the small signal model of the DC-DC buck converter as shown in Fig.9. Converting the buck converter to a small signal model is accomplished by replacing the MOSFET and diode with a switching network containing a single voltage source ππ(π π )ππΜ (π π )and a single current source ππ(π π )ππΜ (π π )as shown in Fig.6 and Fig. 9. The dependent sources are related to duty cycle. The Linear Time Invariant (LTI)system block imports linear system model objects into the simulink environment. Internally, LTI models will be converted to their state space equivalent for evaluation. The ideal transformer, an imaginary device, is widely used in DC-DC power conversion circuits to change the levels of voltage and current waveforms while transferring electrical energy. This block can be used to represent either an AC transformer or a solid-state DC-DC converter. The effective low-pass filter is built using a series inductor and parallel capacitor. The Voltage/Current Sensor block represents an ideal voltage/current sensor that converts voltage measured between two points of an electrical circuit or current measured in any electrical branch into a physical signal proportional to the voltage/current. Fig. 9: Small signal model subsystem of DC-DC buck converter V. SIMULATION RESULTS To verify the response of the proposed small-signal model for DC-DC converter, a complete MATLAB/Simulink dynamic model of DC-DC buck converter scheme have been simulated utilizing SimElectronics toolbox [18]. Simulations of proposed small-signal model have been run at various cases of input voltage to check the model response. Case 1: Step change in input voltage and load Figure 10 shows the input voltage variation from 24 V to 30 V at 0.047 Sec. in the same time variation of the load from 1 Ω to 2 Ω at 0.02 Sec. is shown in Fig. 11(Red line). Meanwhile input voltage variation from 24 V to 30 V at 0.05 Sec. while constant load at 1 Ω(Blue line). Simulated response of the output voltage, inductor current and capacitor current due to step change in input voltage and load is show in Fig. 12and Fig. 13 respectively. From thesefigures, it can be seen that the output voltage tracks the input voltage with the predescribed quiescent duty cycle and the output voltage and inductor current can return to steady state value with small overshoot and settling time. The capacitor current almost zero value except in the instant of input voltage and load change. 17th International Middle East Power Systems Conference, Mansoura University, Egypt, December 15-17, 2015 voltage is smaller than that of load change. The capacitor current almost zero value except in the instant of input voltage and load change. Fig. 10: Iput voltage variation. Fig. 14: Input voltage changing. Fig. 11: Load variation form 1 Ωto 2 Ω Fig. 12 Simulated response of output voltage, inductor current due to step change in input voltage and load Fig. 15: Simulated response of output voltage, inductor current and capacitor current due to step change in input voltage and load Fig. 13: Simulated response of capacitor current due to step change in input voltage and load Case 2: Level changing in input voltage with and witout load changing Figure 14shows the input voltage changing from 24 V to 30 V at 0.039 Sec. and then to 16 V at 0.075 Sec. in the same time variation of the load from 1 Ω to 2 Ω at 0.02 Sec. is shown in Fig. 11(Red line). Meanwhile input voltage changing from 24 V to 30 V at 0.04 Sec. and the to 16 V while constant load at 1 Ω(Blue line). Simulated response of the output voltage, inductor current and capacitor current due to level change in input voltage and load is show in Fig. 15. From this figure, it can be seen that the overshoot values due to change in input Case 3: Variable input voltage with ripples with load changing Figure 16shows the variable input voltage with ripple at frequacny 40 Hz. and 1 V peak-to-peak for the same load change in Fig. 11. Simulated response of the output voltage, inductor current and capacitor current due to variable input voltage with ripple as show in Fig. 17. From this figure, it can be seen that the output voltage tracks the input voltage with the same frequancy and the output voltage and inductor current can return to steady state value with small overshoot and settling time. 17th International Middle East Power Systems Conference, Mansoura University, Egypt, December 15-17, 2015 Fig. 16: Input voltage with ripples. Fig. 15: Simulated response of output voltageandinductor currentdue to variableinput voltage with ripple and load change VI. CONCLUSION AND FUTURE WORK The objective of this paper is to develop a small-signal model of a buck converter in CCM, derive the state-space dynamic equations, and study the effects of load changes and input voltage variations on the proposed model.The simulation results obtained, show that the output voltage and inductor current can return to steady state even when it is affected by input voltage and load variation, with a very small over shoot and settling time.The proposed model is shown to be very accurate in anticipating the large-signal time-domain transients as well as the small-signal frequency domain characteristics.As a future work, the proposed MATLAB/Simulink model can be extended to model the other basic converters such as Boost and Buck-Boost converter by the addition and modification of the dynamic state space equations. Also, a new control technique can be proposed to have a satisfied closed loop performance. REFERENCES [1] J. Alvarez-Ramirez and G. Espinosa-Pérez, "Stability of current-mode control for DC–DC power converters," Systems & control letters, vol. 45, pp. 113-119, 2002. [2] M. H. Rashid, "Power Electronics: Circuits, Devices and Applications," 3rdedition, Prentice-Hall Inc., 2003, ISBN : 0-13-101140-5. [3] M. R. Modabbernia, F. Kohani, R. Fouladi, and S. S. Nejati, "The statespace average model of buck-boost switching regulator including all of the system uncertainties," International Journal on Computer Science and Engineering (IJCSE), vol. 5, pp. 120-132, 2013. [4] Robert W. Erickson, and Dragan Maksimovic, “Fundamentals of Power Electronics”, 2nded., New York, Boston, Dordrecht, London, Moscow, Kluwer Academic Publishers, 2004. [5] A. Reatti and M. K. Kazimierczuk, "Small-signal model of PWM converters for discontinuous conduction mode and its application for boost converter,", IEEE Transactions on Circuits and Systems I: Fundamental Theory and Applications, vol. 50, pp. 65-73, 2003. [6] R.D. Middlebrook and S. Cuk “A general unified approach to modeling switching converter power stages,” International Journal of Electronics, vol. 42, no. 6, pp. 521-550, June 1977. [7] C. Nwosu and M. Eng, "State-space averaged modeling of a nonideal boost converter," The pacific journal of science and Technology, vol. 9, no. 2,pp. 302-308, November 2008. [8] H. M. Mahery and E. Babaei, "Mathematical modeling of buck–boost dc– dc converter and investigation of converter elements on transient and steady state responses," International Journal of Electrical Power & Energy Systems, vol. 44, pp. 949-963, 2013 [9] G. Marinova, "PSpice as a verification tool for switch mode power supply design with PowerEsim," in Nonlinear Dynamics of Electronic Systems, Proceedings of NDES 2012, pp. 1-4, 2012. [10]A. Asghar Ghadini, A. M. Daryani and H. Rastegar, “Detailedmodelling and analysis of a Full Bridge PWM DC-DC Convertor,” Australian Universities Power Engineering Conference 2006, AUPEC 2006, Melbourne-Australia, Dec.2006. [11]J.H. Su, J.J. Chen, and D. S. Wu, “Learning feedback controller design of switching converters via MATLAB/SIMULINK,” IEEE Transactions on Education, vol.45, pp. 307-315, 2002. [12]M. Assaf, D. Seshsachalam, D. Chandra, and R. Tripathi, "DC-DC converters via MATLAB/Simulink," in the Proc of WSEAS Conference on Automatic Control, Modelling and Simulation (ACMOS’05), Prague, Czech Republic, pp. 464-471, 2005. [13]A. Emadi, "Modelling and analysis of multi-converter DC power electronic systems using the generalized state space averaging method," in Industrial Electronics Society, 2001. IECON'01. The 27th Annual Conference of the IEEE, pp. 1001-1007, 2001. [14]J. Mahdavi, A. Emaadi, M. Bellar, and M. Ehsani, "Analysis of power electronic converters using the generalized state-space averaging approach," IEEE Transactions on Circuits and Systems I: Fundamental Theory and Applications, vol. 44, no. 8, pp. 767-770, Aug. 1997. [15]A. Kislovski, R. Redl, and N. Sokal, “Dynamic Analysis of SwitchingMode DC/DC Converters”, New York: Van Nostrand Reinhold, 1994. [16]Bengt Johansson, “DC-DC Converters Dynamic Model Design and Experimental Verification”,Ph.D Thesis, Lund University, 2004. [17]B. Choi, “Pulsewidth Modulated DC-to-DC Power Conversion: Circuits, Dynamics, and Control Designs,” Hoboken, New Jersey: John Wiley & Sons, Inc., 2013. [18]MATLAB SimElectronics Toolbox Release 2014a, The MathWorks, Inc., Natick, Massachusetts, United States, March 2014.