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

Model-Based Design of eCompressor

TIDM-02012 model-based design example is an eCompressor hardware with target application ranging from air-conditioning, heating and traction drives. With the automotive industry transitioning to electric vehicles, the heating and cooling systems of the car use the permanent magnet synchronous motor (PMSM) to drive the eCompressor. The reference design available with the motor control SDK of C2000 demonstrates the controlling of eCompressor motor using field-oriented control (FOC) without a position sensor. The focus of this application note is not to understand the functionality of an eCompressor hardware, but to understand the flow of enabling a model-based design for given target application. To demonstrate the same, the same example available within the motor control SDK is migrated to a model-based design on MATLAB & Simulink to generate the code using the blocks available in MATLAB tools.

The current challenges in the conventional way of developing the application using manually written code is the coding expertise requirement, time taken to build the end application and debuggability. These challenges can be addressed by taking up the model-based design work flow to build the application. Model-based design allows ease in development with limited knowledge on coding the microcontroller, reduction in development time and enables a graphical approach that allows you to visualize the application code and flow. The model can be simulated at any point to get an instant view of system behavior in Simulink.

For detailed information on the high-voltage HEV/EV HVAC eCompressor motor control reference design, see the TIDM-02012 product page and the High-Voltage HEV and EV HVAC eCompressor Motor Control Reference Design