SLLU335A August   2021  – January 2022 MCF8316A

 

  1. 1Revision History
    1.     Trademarks
  2. 2Introduction
    1. 2.1 Hardware and GUI Setup
      1. 2.1.1 Jumper Configuration
      2. 2.1.2 External Connections
      3. 2.1.3 Connecting to the GUI
        1. 2.1.3.1 Connect to computer
        2. 2.1.3.2 Connect to the GUI
        3. 2.1.3.3 Verify Hardware Connection
  3. 3Essential Controls
    1. 3.1 Recommended Default Values
    2. 3.2 Device and Pin Configuration
      1. 3.2.1 Speed Input Mode
    3. 3.3 Control Configuration - Motor Parameters
      1. 3.3.1 Maximum Motor Electrical Speed (Hz)
    4. 3.4 Control configuration - Closed Loop
      1. 3.4.1 Current Limit for Torque PI Loop
    5. 3.5 Testing for Successful Startup into Closed Loop
    6. 3.6 Fault Handling
      1. 3.6.1 MPET IPD Fault [MPET_IPD_Fault]
      2. 3.6.2 MPET BEMF Fault [MPET_BEMF_Fault]
      3. 3.6.3 Abnormal BEMF Fault [ABN_BEMF]
      4. 3.6.4 Lock Current Limit [LOCK_LIMIT]
      5. 3.6.5 Hardware lock Current Limit [HW_LOCK_LIMIT]
      6. 3.6.6 No Motor Fault [NO_MTR]
  4. 4Basic Controls
    1. 4.1 Device and Pin Configuration
      1. 4.1.1 Power Saver or Sleep Mode for Battery Operated Applications
      2. 4.1.2 Direction and Brake Pin Override
    2. 4.2 System Level Configuration
      1. 4.2.1 Tracking Motor Speed Feedback in Real Time
      2. 4.2.2 Improving Acoustic Performance
      3. 4.2.3 Protecting the Power supply
      4. 4.2.4 Monitoring Power Supply Voltage Fluctuations for Normal Motor Operation
    3. 4.3 Control Configurations
      1. 4.3.1  Motor Parameter Estimation to Minimize Motor Parameter Variation Effects
      2. 4.3.2  Initial Speed Detection of the Motor for Reliable Motor Resynchronization
      3. 4.3.3  Unidirectional Motor Drive Detecting Backward Spin
      4. 4.3.4  Preventing Back Spin of Rotor During Startup
      5. 4.3.5  Faster Startup Timing
      6. 4.3.6  Gradual and Smooth Start up Motion
      7. 4.3.7  Improving Speed Regulation
      8. 4.3.8  Stopping Motor Quickly
      9. 4.3.9  Preventing Supply Voltage Overshoot During Motor Stop.
      10. 4.3.10 Protecting Against Rotor Lock or Stall Condition
      11. 4.3.11 Maximizing Thermal Efficiency and Increasing Thermal Performance
      12. 4.3.12 Mitigating Electromagnetic Interference (EMI)
      13. 4.3.13 Faster deceleration

Improving Speed Regulation

For applications that require better speed regulation, it is recommended to tune Speed loop PI controllers [SPD_LOOP_KP] and [SPD_LOOP_KI]. Kp coefficient of speed loop [SPD_LOOP_KP] controls the settling time and speed overshoots. Ki coefficient of Speed loop [SPD_LOOP_KI] controls speed overshoot and ensures regulation of speed at set value and drives the error to zero. Speed loop PI controller gains can either be auto-tuned by MCF8316A or tuned manually.

Auto Tuning: MCF8316A auto calculates Speed loop PI controller gains by setting [SPD_LOOP_KP] and [SPD_LOOP_KI] to zero.

Manual Tuning: Follow below steps to tune Speed loop PI controller gains manually

Step 1: Disable Speed loop [SPEED_LOOP_DIS]

Step 2: Disable closed loop [CLOSED_LOOP_DIS]

Step 3: Issue non-zero speed command to start the motor (refer to Section 3.5, step 1 on how to issue non-zero speed command). Motor will spin in open loop.

Step 4: Allow the open loop current to settle down and then measure the peak open loop current.

Step 5: Enter 110% of measured peak phase current as the Iq reference when speed loop is disabled [FORCE_IQ_REF_SPEED_LOOP_DIS]

Step 6: Enable closed loop [CLOSED_LOOP_DIS]. Now the motor will enter closed loop in torque mode.

Stp 7: Adjust the Iq reference [FORCE_IQ_REF_SPEED_LOOP_DIS] such that the motor speed reaches the maximum speed.

Step 8: Speed loop Kp [SPD_LOOP_KP] is calculated using Equation 6.

Equation 6. Speed loop Kp = Iq reference at maximum speedMaximum Electrical Speed in Hz 

Step 9: Speed loop Ki [SPD_LOOP_KI] is calculated using equationEquation 7.

Equation 7. Speed loop Ki=0.1 ×Speed loop Kp

Step 10: Enable speed loop [SPEED_LOOP_DIS]

Note:

Tuning speed loop Kp and Ki is experimental. If the above recommendation doesn’t work, then we recommend to manually tune Speed loop Kp and Ki till the desired results are achieved.