SPRAD20 March   2022 AM2634 , AM2634-Q1


  1.   Trademarks
  2. 1Introduction
  3. 2A Step-by-Step Guide to Running a Traction Inverter
    1. 2.1 Create Real Time Debug Interface
      1. 2.1.1 Confirm CCS Features
      2. 2.1.2 Create Target Configuration File
      3. 2.1.3 Add Serial Command Monitor Software
      4. 2.1.4 Launch Real Time Debug
    2. 2.2 Configure Control Peripheral and ADC Interrupt With Sysconfig
      1. 2.2.1 Generate PWM for Time Reference
      2. 2.2.2 Synchronize ADC Sampling and Interrupt Service Routine
      3. 2.2.3 Configure DMA for Resolver Excitation via DAC
    3. 2.3 Configure Gate Driver Interface With MSPI
      1. 2.3.1 Confirm Control Card Hardware Configuration for Gate Drivers
      2. 2.3.2 Configure MCSPI for UCC5870 Gate Drivers
      3. 2.3.3 Initialize UCC5870 Gate Drivers
    4. 2.4 Get Samples From ADC and Read Samples Via CCS
      1. 2.4.1 Register and Enable Interrupt
      2. 2.4.2 Add Log Code to Read Samples in Graph at Fixed Rate
      3. 2.4.3 Read ADC Samples in Expression and Graph Windows
    5. 2.5 Generate Space Vector PWM and Drive Motor in Open Loop
      1. 2.5.1 Setup SVPWM Generator Inputs
      2. 2.5.2 Read SVPWM Duty Cycles in Graph Window
      3. 2.5.3 Power Up Inverter and Spin Motor in Open Loop
    6. 2.6 Close Current Loop With Mock Speed
      1. 2.6.1 Add Transformations and Read Id-Iq in Open Loop
      2. 2.6.2 Add Controllers to Close Current Loop
      3. 2.6.3 Read Id-Iq to Close Current Loop
    7. 2.7 Add Software Resolver to Digital Converter
      1. 2.7.1 Generate Excitation for Resolver Hardware
      2. 2.7.2 Add Resolver Software
      3. 2.7.3 Read Resolver Software Outputs
    8. 2.8 Close Speed Loop With Rotor Speed
      1. 2.8.1 Add Speed Loop Controllers
      2. 2.8.2 Add Speed Loop Demo Program
      3. 2.8.3 Read Motor Speed from Graph Window
  4. 3A Brief Guide to Code Migration
    1. 3.1 SoC Architecture Overview
    2. 3.2 SDK Resources Overview
    3. 3.3 Code Migration From AM24
    4. 3.4 Code Migration From C28
  5. 4Summary
  6. 5References

Power Up Inverter and Spin Motor in Open Loop

When the inverter is powered up, it is ready to spin a motor in open loop. It is recommended to start with low speed. The global variable SpdRef in per unit can be set around 0.01. There are couple flags controlling the execution of example program as listed. "runMotor" is the gate for "gTFlag_MockTheta" and "gTFlag_SpdDemo". Speed command will not be sent if "runMotor" is "FALSE". "gTFlag_MockTheta" is to use mock angle and speed for open loop and closed current loop. "gTFlag_SpdDemo" is to give speed command for demonstration of closed speed loop. "gTFlag_MockTheta" and "gTFlag_SpdDemo" should not be "TRUE" at the same time. The motor must be stopped with "runMotor" before switching between "gTFlag_MockTheta" and "gTFlag_SpdDemo". When "gTFlag_MockVdq" is "TRUE", Vd and Vq from program prior to SVPWM generation will be overwritten by manual inputs from expression window. When "gTFlag_MockId" or "gTFlag_MockIq" is "TRUE", current values at the input of current loop controller will be replaced by manual inputs from expression window.

  • runMotor
  • gTFlag_MockTheta
  • gTFlag_MockVdq
  • gTFlag_MockId
  • gTFlag_MockIq
  • gTFlag_SpdDemo

In this part, after setting "gTFlag_MockTheta" and "gTFlag_MockVdq" to "TRUE", "runMotor" can be changed to "TRUE". With properly selected "SpdRef", "VdTesting", and "VqTesting". It is worth attention that Vd and Vq are real value other than per unit value here. Phase A current can be read like Section 2.4.3. It is plotted in Figure 2-36. With some low frequency AC current, the motor should start spinning. If not, it is recommended to check motor, inverter, and control card. Inverter hardware details can be found at TIDM-02009. Control card details should be located in user guide.

GUID-20220308-SS0I-GXQG-VVXZ-L8JNWF4QZM6N-low.png Figure 2-36 Phase A Current Open Loop