您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > 基于MC9S12XS单片机的直流电机PWM调速系统设计
()31浙江海洋学院学报(自然科学版)JournalofZhejiangOceanUniversity(NaturalScience)31520129Vol.31No.5Sep.,20122012-06-302007BAD43B011988-..E-mail:hyxuyzsl@163.com;Tel:05802552300:1008-830X(2012)05-0458-04··MC9S12XSPWM叶继英,沈晓群,李莉莉316004MC9S12XS128MC33887HPWM。、。PWMMC9S12XS128MC33887TM301ADesignofDC-MotorPWMSpeedRegulationSystemBasedonMC9S12XSYEJi-ying,SHENxiao-qun,LILi-li(ElectromechanicalEngineeringSchoolofZhejiangOceanUniversityZhoushan316004China)Abstract:InordertorealizesteplessspeedcontrolofDCmotors,aPWMsteplessspeedcontrolsystembasedonMC9S12XS128microcomputerisintroduced,usingMC33887Hbridgepowerdriver.Thesystemcanreducethemainloopelectronicdevices,andhassmallimpacttoDCsystemwhilestartingandstopping.Thecontrolsystemcanmeettherequirementsoflargespeedrangeandhighprecisionperformance.Keywords:PWM;DC-Motor;MC9S12XS128;MC33887PWMPulseWidthModulation。PWMD/A、。PWM、、、D/A[1]。PWM。51、。η=0.5。。β[2]。n=Ua-IaRaCeΦ1PWM。MC9S12XS128PWM。MC9S12XS12816PWMMC51CPU。MC9S12XS128PWM88PWM1/256。88PWM416PWM1/655365V76.3μV。2MC9S12XS128PWM、。、。1V1V2V3V4Ub1~Ub4PWM[3]。MC33887。MC33887HMC9S12XS128ADCH。7.2V。PWM7MC33887OUT1PWM5MC33887OUT2PWM5、PWM7。MC33887。3、PWM、、。PWM[4]。1PWMFig.1SinglephasebridgePWMofdiscreteelement2MC33887Fig.2MC33887forDCmotorcontrolschematic3Fig.3ProgramflowchartMC9S12XSPWM459()31MC9S12XS12816MHz25%5000HzPWM。MC9S12XS128IPLL32MHz。PWMPWMPRCLK4ClockB8MHzPWMSCLB42ClockSB1MHz1μs。ClockSB=ClockB2×PWMSCLB2PWM1。PWMCNTPWMDTYPWMPWMCNTPWMPERPWMCNTPWM。3PWMPERx200PWMx200μsPWM5000Hz。25%4PWMDTYx50。PWMDTYx。CAEx=1PWMx=×PWMPERx3PPOLx=1PWM=PWMDTYxPWMPERx×100%4PWM。Motor_forward(i)i。voidPwm_init(void)//PWM{PWMPRCLK=0x22;//4PWMSCLB=0x04;//B4PWMCTL_CON67=1;//16PWM67PWMCTL_CON45=1;//16PWM45PWMCLK_PCLK5=1;//PWM5ClockSBPWMCLK_PCLK7=1;//PWM7ClockSBPWMPER45=200;//PWM45,5000HzPWMPER67=200;//PWM67,5000HzPWMPOL_PPOL5=1;//1PWMPOL_PPOL7=1;PWMCAE=0x00;}//voidMotor_forward(unsignedintduty)//{PWME_PWME7=1;//IN1PWME_PWME5=0;//IN2DDRP_DDRP5=1;//PP5PTP_PTP5=0;//PP50PWMDTY67=duty;}//voidmain(void)//{unsignedinti=50;SetBusCLK_32M();//4PWMFig.4LeftalignedoutputPWM4605[7]MENDEZGM,HERNANDEZMDLA.Hybridlearningforintervaltype-2fuzzylogicnexttermsystemsbasedonorthogonalleast-squaresandbackpropagationmethod[J].InformationSciences,2009,179(13):2146-2157.[8]GORZAFCZANYB.Approximateinferencewithinterval-valuedfuzzysetsanoutline[C]//Froc.Polishsymp,OnIntervalandFuzzyMath.Poznan,1983:89-95.[9]GORZAFCZANYB.Interval-valuedfuzzycontrollerbasedonverbalmodelofobject[J].FuzzySetsandSystem,1988,28:45-53.[10]TURKSENIB.Intervalvaluedfuzzysetsbasedonnormalforms[J].FuzzySetsandSystems,1986,20:191-210.[11].I[J].:A,2003,18(4):467-472.[12],.I[J].,2008,27(2):5-8.[13],,.[J].,2008,22(5):80-91.[14],,.SI[J].,2011,25(4):1-7.[15]LIDe-chao,LIYong-ming,XIEYong-jian.Robustnessofinterval-valuedfuzzyinference[J].InformationSciences,2011,181:4754-4764.[16].CRII[D].:,2009.[17],.[J].,2005,19(1):22-27.Pwm_init();//PWMwhile(1)//{Motor_forward(i);}//}4MC9S12XS128PWMMC33887PWMPWM。、。[1],,,.MC9S12XS[M].,2011.[2].[M].,2004.[3],.[M].4.,2005.[4],.———S12X[M].,2011.446MC9S12XSPWM461
本文标题:基于MC9S12XS单片机的直流电机PWM调速系统设计
链接地址:https://www.777doc.com/doc-5610915 .html