JAJU879 November   2022

 

  1.   概要
  2.   リソース
  3.   特長
  4.   アプリケーション
  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 サポート・リソース
    5. 4.5 Trademarks

Running the Application

Run the code by going to RunResume or clicking the Resume button in the tool bar. The project should now run and you should see the variables in the Expressions window updating and the D2 LED blinking on the controlCARD. Check the following to confirm the application and hardware set up are working:

  • Set the variable motorVars_M1.flagEnableRunAndIdentify to 1 after you see systemVars.flagEnableSystem was automatically set to 1. Your variables should appear to similar to what is shown in Figure 3-8.
  • The variable motorVars_M1.flagRunIdentAndOnLine should be set to 1 automatically if no faults are detected. The motorVars_M1.isrCount should be increasing continuously.
  • Check the calibration offsets of the motor inverter board. The offset values of the motor phase current sensing values should be equal to approximately half of the scale current of ADC.
  • Probe the PWM output for motor drive control with an oscilloscope. The three PWMs' duty are set to 50% in this build level. The PWM switching frequency should be as defined for USER_M1_PWM_FREQ_kHz in user_mtr1.h.
GUID-20221101-SS0I-KP2G-BFSD-37GCK8XLDFZG-low.png Figure 3-8 Build Level 1 Variables in the Expressions View

You can halt the CPU by first clicking the Suspend button on the toolbar or by selecting TargetSuspend. To run the application from the start again, reset the controller by clicking on the CPU Reset tool bar button or clicking RunResetCPU Reset and then clicking on the Restart button or RunRestart. You can close the CCS debug session by clicking the Terminate button or by clicking RunTerminate. This will halt the program and disconnect CCS from the controller.

Note that it is not necessary to terminate the debug session each time you change the code. Instead you can go to RunLoadLoad Program... (or Reload Program... if it is the same file). CCS will also automatically prompt you to ask if you want to reload your executable if it detects you have rebuilt it.