提出了一种基于Matlab/RTW的系统设计方法和开发流程,结合此集成一体化的控制平台,提出了一种基于嵌入式目标代码生成工具的单相桥式逆变器正弦脉宽调制波产生方法。利用Matlab/Simulink工具建立算法模型,仿真验证算法后,给出了以TMS320F2812定点DSP为目标的SPWM控制模型,并自动生成代码,编译、下载到目标DSP中运行,产生波形与理论吻合。这种基于模型的设计流程,实现了工程开发过程从算法设计到最终实现的所有阶段,从而提高了产品开发效率,缩短了开发时间,降低了开发成本。
Trying to minimize the time consumption and the cost of the whole product, a system design method and a development flow chart based on Matlab/RTW are introduced. An embedded code generation method is proposed in single-phase SPWM system. After having built and validated the algorithm models in Matlab/Simulink, a SPWM control system model whose target board is TMS320F2812 DSP is presented. Automatic code-generation is accomplished from this model,then compiled and downloaded into the TMS320F2812 DSP board. The results of the experiment are in line with theory analysis. This design process implements all the stages ranging from algorithm design to final realization, thus to improve efficiency of product developing, shorteh its developing time, and reduce its developing cost.