TIDUF17 November   2022 TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1

 

  1.   Description
  2.   Resources
  3.   Features
  4.   Applications
  5.   5
  6. 1System Description
  7. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
    3. 2.3 Highlighted Products
      1. 2.3.1 TMS320F280039C
      2. 2.3.2 UCC21530-Q1
      3. 2.3.3 OPA607-Q1
      4. 2.3.4 LM25184-Q1
      5. 2.3.5 TCAN1044A-Q1
    4. 2.4 System Design Theory
      1. 2.4.1 Three-Phase PMSM Drive
      2. 2.4.2 Field Oriented Control of PM Synchronous Motor
      3. 2.4.3 Field Weakening (FW) and Maximum Torque Per Ampere (MTPA) Control
      4. 2.4.4 Compressor Drive with Automatic Vibration Compensation
      5. 2.4.5 Hardware Prerequisites for Motor Drive
        1. 2.4.5.1 Motor Current Feedback
          1. 2.4.5.1.1 Current Sensing with Three-Shunt
          2. 2.4.5.1.2 Current Sensing with Single-Shunt
        2. 2.4.5.2 Motor Voltage Feedback
  8. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Hardware Requirements
      1. 3.1.1 Hardware Board Overview
      2. 3.1.2 Test Conditions
      3. 3.1.3 Test Equipment Required for Board Validation
    2. 3.2 Test Setup
      1. 3.2.1 Hardware Setup
      2. 3.2.2 Software Setup
        1. 3.2.2.1 Code Composer Studio Project
        2. 3.2.2.2 Software Structure
    3. 3.3 Test Procedure
      1. 3.3.1 Level 1 Incremental Build
        1. 3.3.1.1 Project Setup
        2. 3.3.1.2 Running the Application
      2. 3.3.2 Level 2 Incremental Build
        1. 3.3.2.1 Project Setup
        2. 3.3.2.2 Running the Application
      3. 3.3.3 Level 3 Incremental Build
        1. 3.3.3.1 Project Setup
        2. 3.3.3.2 Running the Application
      4. 3.3.4 Level 4 Incremental Build
        1. 3.3.4.1 Project Setup
        2. 3.3.4.2 Running the Application
        3. 3.3.4.3 Tuning Field Weakening and MTPA Control
        4. 3.3.4.4 Tuning Vibration Compensation
        5. 3.3.4.5 CAN FD Command Interface
    4. 3.4 Test Results
      1. 3.4.1 MCU CPU Load, Memory, and Peripheral Usage
  9. 4Design and Documentation Support
    1. 4.1 Design Files
      1. 4.1.1 Schematics
      2. 4.1.2 BOM
    2. 4.2 Tools and Software
    3. 4.3 Documentation Support
    4. 4.4 Support Resources
    5. 4.5 Trademarks

Code Composer Studio Project

To import the reference project in CCS, click ProjectImport CCS Projects, and browse to <SDK install location>\solutions\tidm_02012_ecompressor\<device>\ccs and click Select Folder. Select the project called tidm_02012_ecompressor_<device> and click Finish. The project should now be visible in the Project Explorer pane in CCS.

The folder src_foc includes the typical FOC modules, including transforms, PID functions, and estimators. The folder src_lib includes the InstaSPIN-FOC library and related header files. These modules are independent of the specific device and board and are used across several other solutions in the SDK.

The folder src_control includes motor drive control files that call motor control core algorithm functions within the interrupt service routines and background tasks. The folder src_sys includes some files reserved for other system features such as drivers for CAN communication. You can add your own code for system control, communication, and so forth. These modules are specific to this reference design project but are independent of the device and board.

Board-specific, motor-specific and device-specific files are in the folder src_board. These files consist of device-specific drivers to run the solution. If you want to migrate the project to your own board or other devices, you only need to make changes to the files hal.c, hal.syscfg, hal.h, and user_mtr1.h based on the pin assignments and features of your device or board.

GUID-20221101-SS0I-T1W1-MNLX-XD5P1RXTSMLR-low.png Figure 3-3 Project Explorer View of the Reference Project

There are several optional features in the software that can be enabled and disabled using predefined symbols in the project properties. They are as follows:

  • MOTOR1_OVM to enable overmodulation
  • MOTOR1_FWC to enable field-weakening control (FWC)
  • MOTOR1_MTPA to enable maximum torque per ampere (MTPA) mode
  • MOTOR1_VIBCOMPA or MOTOR1_VIBCOMPT to enable vibration compensation

To view and edit the predefined symbols, right-click on your project and select Properties. Then go to the Predefined Symbols section of the C2000 Compiler options as shown in Figure 3-4. By default the features listed above are disabled by the "_N" appended to the symbol name. Edit the symbol to remove the "_N" to enable the feature.

GUID-20221101-SS0I-C7QF-TXDQ-H2NC9QXQDHW4-low.png Figure 3-4 Selecting Predefined Symbols in the Project Properties