提出一种基于实时代码生成工具(RaW)的TMS320F2812型定点DSP控制系统.给出了基于Matlab/RTW的系统设计方法和开发流程.结合该集成一体化控制平台,提出了一种基于嵌入式目标代码自动生成的2H桥级联逆变器SPWM产生方法,利用Matlab/Simulink工具建立了算法模型.仿真验证算法后.给出了以TMS320F2812型定点DSP为目标的SPWM控制模型,并自动生成代码,编译、下载到目标DSP中运行.产生的波形与理论吻合.这种基于模型的设计流程,实现了工程开发过程中从算法设计到最终实现的所有阶段,提高了产品开发效率,降低了成本.%A system design method and development flow chart based on Matlab/RTW is introduced.An embedded code-generation method is proposed in a cascaded two H-bridge inverter system.After building and validating 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, and is compiled and downloaded into the TMS320F2812 DSP board.The experi-mental results proved theory analysis,meanwhile show the bonefit of system design and code generate using Matlab/RTW.
展开▼