SPRADI0A July   2024  – November 2024

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 Getting Started
  5. 2Model-Based Design of eCompressor
    1. 2.1 General Texas Instruments High Voltage Evaluation (TI HV EVM) User Safety Guidelines
    2. 2.2 Block Diagram
    3. 2.3 Hardware, Software and Testing Requirements
      1. 2.3.1 Hardware setup
      2. 2.3.2 Software setup
      3. 2.3.3 Test Procedure
  6. 3 Simulink Configuration Settings
    1. 3.1 Simulink Tool Optimization
      1. 3.1.1 Optimum Code Generation
    2. 3.2 C2000 Specific Optimization
      1. 3.2.1 Using TMU Through Simulink
      2. 3.2.2 Using Software Libraries Through Simulink
      3. 3.2.3 Running Code From RAM
    3. 3.3 Performance Comparison
  7. 4 Profiling Using Simulink
    1. 4.1 Processor-in-Loop (PIL) Method
    2. 4.2 C2000 Timer-Based Profiling
    3. 4.3 Code Composer Studio tools
  8. 5Summary
  9. 6Revision History

Abstract

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.