欢迎来到天天文库
浏览记录
ID:34442392
大小:364.22 KB
页数:14页
时间:2019-03-06
《电机控制库函数》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、ApplicationReportSPRAAK2–March2007OptimizingDigitalMotorControl(DMC)Libraries.....................................................................................................................................................ABSTRACTTheDMClibrarycontainsacollectionofcomponentmodule
2、sandsystemimplementations,whichareintendedforevaluation,accelerateddesign,anddevelopmentofmotorcontrolfirmware.Thesoftwareisintendedtomeetthesegoals,andnooptimizationisperformed.Assystemdesignersimplementsystems,theymustoptimizetheirsystemsforperformanceintermsofmemoryconsumptionand
3、CPUcyclesspenttoachievethegiventask.ThisapplicationreportreviewsseveraloptimizationstotheDMClibrarycodetoachievethisobjectiveandprovidesreferencestootherresourcestofurtheroptimizeavailablecode.Contents1Introduction.....................................................................
4、.....................12ExperimentalDetails...............................................................................23OptimizingCode....................................................................................5ListofFigures1ProjectWindowWithDependentProjects.............
5、..........................................32MeasuringCodeSizeforInlineExpansionofaFunction.....................................53CompilerOptionsControllingOptimization......................................................64WhileLoopCodeUnderOptimization(InterruptCountdeclaredwithout
6、volatilekeyword).............................................................................................75WhileLoopCodeUnderOptimization(InterruptCountdeclaredwithvolatilekeyword):CorrectCodeisGenerated...........................................................76PIDControllerCo
7、deExecutionCycleCountsasaFunctionofOptimization.............117PIDControllerCodeSizeasaFunctionofOptimization....................................128ControllingOptimizationonaperFileBasis...................................................13ListofTables1PIDControllerMeasuredResults...
8、...................
此文档下载收益归作者所有