提出了一种基十Matlab/RTW的系统设计方法和开发流程.结合该集成一体化的摔制平台,提出了一种基于嵌入式目标代码生成工具的单相桥式逆变器SPWM波产牛方法.利用Matlab/Simulink工具建立算法模型,经仿真验证算法后.给出了以TMS320F2812型定点DSP为目标的SPWM控制模型,并自动牛成代码,编译、下载到目标DSP中运行.产生的波形与理论吻合.这种基于模型的设计流程,实现了工程开发过程从算法设计到最终实现的所有阶段,从而提高了产品开发效率,降低了开发成本.%Trying to minimize the time consumption and the cost of the whole product,a system design method and development flow chart based on Matlab/RTW are introduced.An embedded code generation method is proposed in a single phase inverter system.Mter building and validating the algorithm models in Matlab/Simulink,a SPWM control system model using TMS320F2812 DSP as target board is presented.The code-generation is automatically accomplished, compiled and downloaded into the TMS320F2812 DSP board.The experimental results are agreed with theory analysis, and show the benefit of system design and code generation using Matlab/RTW.
展开▼