Skip to Main Content
Trying to minimize the time consumption and cost of the whole product, 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, then compiled and downloaded into the TMS320F2812 DSP board. The results of the experiment are agree with theory analysis, which shows the benefit of system design and code generate using Matlab/RTW tools.