SLAU927 March   2024 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 IPD Usage
    3. 2.3  Pin Configurations for PWM Outputs
    4. 2.4  Pin Configurations for ADC Currents
    5. 2.5  Pin Configurations for ADC Voltages
    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
    1. 3.1 Software Support
  7. 4GUI Setup
  8. 5Register Map
    1. 5.1 User Control Registers (Base Address = 0x202000C8h)
    2. 5.2 User Input Registers (Base Address = 0x20200000h)
  9. 6Basic Tuning
    1. 6.1 System Configuration Parameters
      1. 6.1.1 Configuring System Parameters from GUI
      2. 6.1.2 Motor Resistance in Milliohms (mΩ)
      3. 6.1.3 Motor Inductance in Microhenries (μH)
      4. 6.1.4 Motor BEMF Constant
      5. 6.1.5 Base Voltage (V)
      6. 6.1.6 Base Current (A)
      7. 6.1.7 Maximum Motor Electrical Speed (Hz)
    2. 6.2 Control Configurations for Basic Motor Spinning
      1. 6.2.1 Basic Motor Startup
        1. 6.2.1.1 Disable ISD
        2. 6.2.1.2 Motor Start Option - Align
        3. 6.2.1.3 Motor Open Loop Ramp
        4. 6.2.1.4 Motor Open Loop Debug
      2. 6.2.2 Controller Configuration for spinning the Motor in Closed Loop
        1. 6.2.2.1 PI Controller Tuning for Closed Loop Speed Control
        2. 6.2.2.2 Testing for Successful Startup into Closed Loop
    3. 6.3 Fault Handling
      1. 6.3.1 Abnormal BEMF Fault [ABN_BEMF]
      2. 6.3.2 Monitoring Power Supply Voltage Fluctuations for Voltage Out of Bound Faults
      3. 6.3.3 No Motor Fault [NO_MTR]
  10. 7Advanced Tuning
    1. 7.1 Control Configurations Tuning
      1. 7.1.1 Initial Speed Detection of the Motor for Reliable Motor Resynchronization
      2. 7.1.2 Unidirectional Motor Drive Detecting Backward Spin
      3. 7.1.3 Preventing Back Spin of Rotor During Startup
      4. 7.1.4 Gradual and Smooth Start up Motion
      5. 7.1.5 Faster Startup Timing
      6. 7.1.6 Stopping Motor Quickly
      7. 7.1.7 Preventing Supply Voltage Overshoot During Motor Stop.
      8. 7.1.8 Protecting the Power supply
    2. 7.2 Hardware Configurations
      1. 7.2.1 Direction Configuration
      2. 7.2.2 Brake Configuration
      3. 7.2.3 Real Time Variable Tracking
  11. 8Revision History

Pin Configurations for ADC Currents

The default pin configurations for ADC currents are shown in Table 2-11 and Table 2-5, depending on the DRV device used. The required connections are 3 ADC inputs connected to the 3 CSA outputs from the motor driver or external CSAs.

ADC0 and ADC1 are two simulaneous-sampling 4MSPS analog-to-digital converters that are used to measure phase currents and voltages. ADC0 and ADC1 measure phase currents simultaneously and bus voltage sequentially depending on the rotor angle under normal motor run conditions. ADC0 and ADC1 are sampled to measures phase voltages during Initial Speed Detection.

An optional low-pass RC filter can be placed in series from the CSA outputs to the ADC inputs to filter out any high frequency noise from the switching output signals for proper ADC sampling as shown in Figure 2-2.

GUID-20240205-SS0I-7C1P-DTZL-WMGPVHB8DPNN-low.svg Figure 2-2 CSA Output Filter

Choose a filtering frequency fc that it at least 10 times the PWM switching frequency (fPWM). Use Equation 1 to calculate fc based on the RC filter design.

Equation 1. f c = 1 2 πRC
Table 2-4 Pin Configurations for ADC Currents With Simultaneous Sampling in DRV8316
MSPM0 Pin Function DRV Connection DRV Function
A0_3 ADC0, channel 3 input SOA Phase A current sense output
A0_2 ADC0, channel 2 input SOB Phase B current sense output
A1_2 ADC1, channel 2 input SOB Phase B current sense output
A1_1 ADC1, channel 1 input SOC Phase C high side PWM input
Table 2-5 Pin Configurations for ADC Currents Without Simultaneous Sampling in DRV8323
MSPM0 Pin Function DRV Connection DRV Function
A1_2 ADC1, channel 2 input SOA Phase A current sense output
A0_3 ADC0, channel 2 input SOB Phase B current sense output
A1_3 ADC1, channel 3 input SOC Phase C high side PWM input