摘要
介绍了一种根据系统仿真模型自动生成嵌入式C代码的嵌入式系统设计方法.结合基于英飞凌C164CI微控制器的车载无刷直流电机调速系统的开发,详细说明了使用MATLAB/RTW(实时代码工作空间)工具集将系统仿真模型自动转换为嵌入式系统C代码并编译下载到微控制器中运行的方法.还对仿真和实验数据进行了比较分析.结果表明,系统实际运行结果与仿真结果之间具有很高的相似性,从而验证了自动生成代码的正确性和可靠性.
Trying to minimize the time consumption and cost of the whole product,this paper introduces a new devlopment procedure,based on the MATLAB/RTW which automatically converts the controller simulation model into embedded C codes and automatically compiles and downloaded into the target controller,using the C164CI microcontroller,to drive a brushless DC motor used in the vehicle electrical drive system.Experiment indicates a satisfactory coincidence between simulation and experimental results,which verifies the validity and reliability of the proposed procedure.
出处
《沈阳理工大学学报》
CAS
2005年第4期43-45,共3页
Journal of Shenyang Ligong University