⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boost_pcm_line_reg.m

📁 基于平均法的断续模式下buck,boost,buck_boost型DC/DC功率级建模步骤
💻 M
字号:
function boost_PCM_line_reg( Vgmax,Vgmin,V,Io,rg,rL,rS,rC,rD,VD,R1,R2,RS,L,Ts,Ma,Ae )Vgmax=input('please give the input voltage Vgmax=');Vgmin=input('please give the input voltage Vgmin=');V=input('please give the output voltage V=');Io=input('please give the output current Io=');rg=input('please give the resistance of the input voltage source rg=');rL=input('please give the resistance of the inductor rL=');rS=input('please give the resistance of the switch rS=');rC=input('please give the resistance of the capacitor rC=');rD=input('please give the resistance of the diode rD=');VD=input('please give the voltage of the diode VD=');R1=input('please give the lower sampling resistance R1=');R2=input('please give the upper sampling resistance R2=');RS=input('please give the sampling resistance of the inductor current RS=');L=input('please give the inductance L(uH)=');Ts=input('please give the switch period Ts(us)=');L=L*10^(-6);Ts=Ts*10^(-6);Ma=input('please give the slope compensation coefficient Ma=');Ae=input('please give the DC gain of the error amplifier Ae=');Rb=R1+R2;D21=(Vgmax+Io*rS-Io*rD+((Vgmax+Io*rS-Io*rD)^2-4*(V+VD)*Io*(rS+rL+rg))^0.5)/(2*(V+VD));D22=(Vgmin+Io*rS-Io*rD+((Vgmin+Io*rS-Io*rD)^2-4*(V+VD)*Io*(rS+rL+rg))^0.5)/(2*(V+VD));D2max=max(D21,D22);D2min=min(D21,D22);Dmax=1-D2min;Dmin=1-D2max;Fb=R1/Rb;deltaV1=((Io/D2min-Io/D2max)*RS+Ma*(Dmax-Dmin)*Ts*RS+(Vgmin-(Io/D2min)*(rg+rS+rL))*(Dmax-Dmin)*Ts*RS/(2*L))/(Ae*Fb);deltaV2=((Io/D2max-Io/D2min)*RS+Ma*(Dmin-Dmax)*Ts*RS+(Vgmax-(Io/D2max)*(rg+rS+rL))*(Dmin-Dmax)*Ts*RS/(2*L))/(Ae*Fb);deltaV=max(deltaV1,deltaV2);fprintf('deltaV/V=%6.2f%%\n',100*deltaV/V);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -