摘要
针对开发人员在利用C/C++语言编写源代码时浪费大量时间的问题,同时为提高DSP对直流电机PWM双极性控制的有效性,研究了基于Matlab/Simulink平台下TI C2000DSP代码自动生成的方法。在Matlab/Simulink环境下搭建控制模型,通过RTW(Real_Time Workshop)工具转换成实时控制代码控制直流电机。并利用此方法在TMS320F2812开发板上实现了对直流电机PWM双极性控制系统的控制,电机平稳运行。实验验证了硬件在环半实物仿真技术有效地缩短产品的开发周期。
In order to save time for developer using C/C++language source code, as well as improve the effectiveness of DSP bipolar PWM DC motor control, studied automatic code generation based on Matlab/Simulink for TI C2000 DSP platform.The control model built in Matlab/Simulink converts to real-time con-trol code control DC motors through RTW ( Real_Time Workshop) conversion tools and realize the control of DC motor PWM bipolar control system on TMS320F2812 platform, the motor is running smoothly.Experi-mental results show that the Hardware-In-Loop ( HIL) simulation technology effectively shorten the product development cycle.
出处
《微电机》
2015年第4期80-83,共4页
Micromotors
基金
湖南省自然科学基金项目:内置式永磁同步电机非线性控制关键技术研究
邵阳学院研究生科研创新项目(CX2013SY028)