SPRADI0 July   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

Software setup

Download and install MATLAB, Code Composer Studio™ (CCS) and C2000Ware. Details for the version for these software is given in Section 1.1.

The model-based design for this reference design is available as a part of C2000 MotorControl SDK. Once downloaded and installed, browse to the folder for this design by going to C2000Ware_MotorControl_SDK_X_XX\solutions\tidm_02012_ecompressor\matlab. The MATLAB folder just contains the .slx files to start with. Once the project is built, the generated files will also be available in the same folder location.

The example contains two primary files - TIDM_02012_F280039_MBD.slx and TIDM_02012_control_host.slx. TIDM_02012_F280039_MBD.slx file contains the main control loop implementation whereas the TIDM_02012_control_host.slx contains the universal receiver receiver/transmitter (UART) code, which is used to send data relating to desired speed and control parameters.