With industrial and automotive control applications becoming more complex, decoupling the high-level control algorithm development from low-level device specific driver development using code generation tools such as Embedded Coder® from MathWorks® is useful. With the advent of code generation tools, it becomes of paramount importance to evaluate the ease-of-use, efficiency and performance of the generated code for a real-time microcontroller such as C2000™. This application note provides detailed insight on usage of MATLAB’s C2000 Microcontroller Blockset for C2000 covering aspects from getting started to the best practices and performance evaluation. To showcase the entire use-case, an eCompressor reference design TIDM-02012 is chosen for evaluation.
C2000™ and Code Composer Studio™ are trademarks of Texas Instruments.
MathWorks®, MATLAB®, and Simulink® are registered trademarks of The MathWorks, Inc.
All trademarks are the property of their respective owners.
The application note focuses on enabling performance optimization using model-based design code generation in MATLAB®. To understand the performance optimization, a reference example of TIDM-02012 eCompressor using model-based design code generation tools of MATLAB is chosen. The implementation, optimization and performance evaluation of the reference design will be discussed.