SLAU948B October   2024  – March 2025 MSPM0G3507

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Hardware Setup
    1. 2.1  EVM Hardware Setup
      1. 2.1.1 EVM Hardware Support
    2. 2.2  Pin Configurations for PWM Outputs
    3. 2.3  Pin Configurations for ADC Currents
    4. 2.4  Pin Configurations for ADC Voltages
    5. 2.5  Pin Configurations for Hall Sensor Inputs Through GPIO
    6. 2.6  Pin Configurations for Faults
    7. 2.7  Pin Configurations for GPIO Output Functions
    8. 2.8  Pin Configurations for SPI Communication
    9. 2.9  Pin Configurations for UART Communication
    10. 2.10 External Connections for Evaluation Boards
  6. 3Software Setup
  7. 4GUI Setup
    1. 4.1 Serial Port Configuration
    2. 4.2 GUI Home Page
      1. 4.2.1 System Configurations
      2. 4.2.2 Register Map
      3. 4.2.3 Motor Tuning Page
      4. 4.2.4 Collateral Page
  8. 5Register Map
    1. 5.1 Register Map Page in GUI
    2. 5.2 User Control Registers (Base Address = 0x20200400h)
      1. 5.2.1 Speed Control Register (Offset = 0h) [Reset = 00000000h]
      2. 5.2.2 Algo Debug Control 1 Register (Offset = 4h) [Reset = 00000000h]
      3. 5.2.3 Algo Debug Control 2 Register (Offset = 8h) [Reset = 00000000h]
      4. 5.2.4 Algo Debug Control 3 Register (Offset = Ch) [Reset = 00000000h]
      5. 5.2.5 DAC Configuration Register (Offset = 10h) [Reset = 00000000h]
    3. 5.3 User Input Registers (Base Address = 0x20200000h)
      1. 5.3.1  SYSTEM_PARAMETERS (Offset = 0h)
      2. 5.3.2  MOTOR_STARTUP1 Register (Offset = 3Ch) [Reset = 00000000h]
      3. 5.3.3  MOTOR_STARTUP2 Register (Offset = 40h) [Reset = 00000000h]
      4. 5.3.4  CLOSED_LOOP1 Register (Offset = 44h) [Reset = 00000000h]
      5. 5.3.5  CLOSED_LOOP2 Register (Offset = 48h) [Reset = 00000000h]
      6. 5.3.6  FIELD_CTRL Register (Offset = 4Ch) [Reset = 00000000h]
      7. 5.3.7  FAULT_CONFIG1 Register (Offset = 50h) [Reset = 00000000h]
      8. 5.3.8  FAULT_CONFIG2 Register (Offset = 54h) [Reset = 00000000h]
      9. 5.3.9  MISC_ALGO Register (Offset = 58h) [Reset = 00000000h]
      10. 5.3.10 PIN_CONFIG Register (Offset = 5Ch) [Reset = 00000000h]
      11. 5.3.11 PERI_CONFIG Register (Offset = 60h) [Reset = 00000000h]
    4. 5.4 User Status Registers (Base Address = 0x20200430h)
  9. 6Basic Tuning
    1. 6.1 System Configuration Parameters
      1. 6.1.1 Configuring System Parameters From GUI
      2. 6.1.2 Updating System Parameters Through CCS Debug Window
        1. 6.1.2.1 Motor Resistance in Milliohms (mΩ)
        2. 6.1.2.2 Motor Inductance in Microhenries (μH)
        3. 6.1.2.3 Saliency of IPMSM Motor
        4. 6.1.2.4 Motor BEMF Constant
        5. 6.1.2.5 Base Voltage (V)
        6. 6.1.2.6 Base Current (A)
        7. 6.1.2.7 Maximum Motor Electrical Speed (Hz)
        8. 6.1.2.8 Maximum Motor Power(W)
    2. 6.2 Control Configurations for Basic Motor Spinning
      1. 6.2.1 Hall Sensor Auto Calibration
        1. 6.2.1.1 Hall Sensor Calibration Through GUI
      2. 6.2.2 Motor Open Loop Ramp
      3. 6.2.3 PI Controller Tuning for Closed Loop Speed Control
        1. 6.2.3.1 Current Controller Tuning
        2. 6.2.3.2 Speed/Power Controller Tuning
      4. 6.2.4 Testing for Successful Startup Into Closed Loop
    3. 6.3 Fault Handling
      1. 6.3.1 Monitoring Power Supply Voltage Fluctuations for Voltage Out of Bound Faults
      2. 6.3.2 No Motor Fault [NO_MTR]
      3. 6.3.3 Hall Invalid Fault
  10. 7Advanced Tuning
    1. 7.1 Control Configurations Tuning
      1. 7.1.1 Control Mode of Operation
        1. 7.1.1.1 Closed Loop Torque Control Mode
        2. 7.1.1.2 Closed Loop Power Control Mode
        3. 7.1.1.3 Closed Loop Speed Control Mode
        4. 7.1.1.4 Voltage Control Mode
      2. 7.1.2 Stopping Motor Quickly
      3. 7.1.3 Flux Weakening: Operating Motor at Speeds Higher Than Rated Speed
      4. 7.1.4 Maximum Torque Per Ampere : Improve Efficiency of IPMSM Motors
      5. 7.1.5 Preventing Supply Voltage Overshoot During Motor Stop.
      6. 7.1.6 Protecting the Power Supply
      7. 7.1.7 FOC Bandwidth Selection
  11. 8Hardware Configurations
    1. 8.1 Direction Configuration
    2. 8.2 Brake Configuration
    3. 8.3 Main.h Definitions
      1. 8.3.1 Sense Amplifier Configuration
      2. 8.3.2 Driver Propagation Delay
      3. 8.3.3 Driver Min On Time
      4. 8.3.4 Current Shunt Configuration Selection
        1. 8.3.4.1 Three Shunt Configurations
        2. 8.3.4.2 Dual Shunt Configuration
      5. 8.3.5 CSA Offset Scaling Factor Selection
    4. 8.4 Real Time Variable Tracking
  12. 9Revision History

MOTOR_STARTUP2 Register (Offset = 40h) [Reset = 00000000h]

Table 5-26 shows the register to configure motor startup settings2.

Table 5-26 MOTOR_STARTUP2 Register Field Descriptions
Bit Field Type Reset Description
31-27 OL_ILIMIT R/W 0h Open loop current limit in % of CURRENT_BASE

0h = 7.5%

1h = 8.0%

2h = 8.5%

3h = 9.0%

4h = 9.5%

5h = 10%

6h = 11%

7h = 12%

8h = 13%

9h = 14%

Ah = 15%

Bh = 16%

Ch = 17%

Dh = 18%

Eh = 20%

Fh = 22.5%

10h = 25%

11h = 27.5%

12h = 30%

13h = 35%

14h = 40%

15h = 45%

16h = 50%

17h = 55%

18h = 60%

19h = 70%

1Ah = 75%

1Bh = 80%

1Ch = 85%

1Dh = 90%

1Eh = 95%

1Fh = 100%

26-23 OL_ACC_A1 R/W 0h Open loop acceleration coefficient A1

0h = 0.01Hz/s

1h = 0.05Hz/s

2h = 1Hz/s

3h = 2.5Hz/s

4h = 5Hz/s

5h = 10Hz/s

6h = 25Hz/s

7h = 50Hz/s

8h = 75Hz/s

9h = 100Hz/s

Ah = 250Hz/s

Bh = 500Hz/s

Ch = 750Hz/s

Dh = 1000Hz/s

Eh = 5000Hz/s

Fh = 10000Hz/s

22-19 OL_ACC_A2 R/W 0h Open loop acceleration coefficient A2

0h = 0.0Hz/s2

1h = 0.05Hz/s2

2h = 1Hz/s2

3h = 2.5Hz/s2

4h = 5Hz/s2

5h = 10Hz/s2

6h = 25Hz/s2

7h = 50Hz/s2

8h = 75Hz/s2

9h = 100Hz/s2

Ah = 250Hz/s2

Bh = 500Hz/s2

Ch = 750Hz/s2

Dh = 1000Hz/s2

Eh = 5000Hz/s2

Fh = 10000Hz/s2

18 RESERVED R/W 0h Reserved
17-13 OL_MAX_SPEED R/W 0h Maximum operational Electrical Frequency during Forced Commutation for First electrical Cycle (% of MAX_SPEED)

0h = 1%

1h = 2%

2h = 3%

3h = 4%

4h = 5%

5h = 6%

6h = 7%

7h = 8%

8h = 9%

9h = 10%

Ah = 11%

Bh = 12%

Ch = 13%

Dh = 14%

Eh = 15%

Fh = 16%

10h = 17%

11h = 18%

12h = 19%

13h = 20%

14h = 22.5%

15h = 25%

16h = 27.5%

17h = 30%

18h = 32.5%

19h = 35%

1Ah = 37.5%

1Bh = 40%

1Ch = 42.5%

1Dh = 45%

1Eh = 47.5%

1Fh = 50%

12-8 Reserved R 0h Reserved
7-4 OL_FIRST_CYC_FREQ R/W 0h Frequency of first cycle in Open loop (% of MAX_SPEED)

0h = 1%

1h = 2%

2h = 3%

3h = 5%

4h = 7.5%

5h = 10%

6h = 12.5%

7h = 15%

8h = 17.5%

9h = 20%

Ah = 25%

Bh = 30%

Ch = 35%

Dh = 40%

Eh = 45%

Fh = 50%

3 FIRST_CYCLE_FREQ_
SEL
R/W 0h First cycle frequency in open loop

0h = Defined by OL_FIRST_CYC_FREQ

1h = 0Hz

2-0 RESERVED R 0h Reserved