Sensorless FOC - DRV8316 Gate Driver User Guide

This User Guide outlines the usage of DRV8316 gate driver along with the sensorless FOC Application running on MSPM0.

1. Hardware Required

  • LP-MSPM0G3507 - MSPM0G3507 Launchpad

  • DRV8316REVM - The DRV8316REVM provides three half-H-bridge integrated MOSFET drivers for driving a three-phase brushless DC (BLDC) motor with 8-A Peak current drive, for 12-V/24-V DC rails or battery powered applications.

  • DC Power supply that supports the required voltage and current

  • Brushless-DC Motor

  • Micro-USB cable

2. Hardware Setup

  1. Remove the PA26 jumper J18 in the LP-MSPM0G3507 as shown below.

J18 header removed in LP-MSPM0G3507

Fig. 20 J18 header removed in LP-MSPM0G3507

  1. Connect the LP-MSPM0G3507 to the DRV8316REVM in one of two ways:

    • 1 Plug the connectors J3 and J4 of the DRV8316REVM to the top of the connectors J3/J4 of the LP-MSPM0G3507. An Additional connection need to be made from ISENB in DRV8316REVM to the PA26 in LP-MSPM0G3507.

    • 2 If using the jumper wires, connect as shown in the table below. Refer to the schematic of J3 and J4 connector pinout on DRV8316REVM for the location of the signals.

      Connection

      MSPM0G3507

      DRV8316REVM

      Phase A HS input

      PB4

      INHA

      Phase A LS input

      PB1

      INLA

      Phase B HS input

      PA28

      INHB

      Phase B LS input

      PA31

      INLB

      Phase C HS input

      PB20

      INHC

      Phase C LS input

      PB13

      INLC

      Serial clock input

      PB9

      SCLK

      Serial data input

      PB8

      SDI

      Serial data output

      PB7

      SDO

      Chip Select

      PB12

      nSCS

      Bus voltage input

      PA18

      VSENVM

      Phase A current input

      PA24

      ISENA

      Phase B current input 1

      PA26

      ISENB

      Phase B current input 2

      PA17

      ISENB

      Phase C current input

      PA16

      ISENC

      Phase A Voltage input

      PB19

      VSENA

      Phase B Voltage input

      PA22

      VSENB

      Phase C Voltage input

      PB18

      VSENC

      Fault Input

      PA27

      nFAULT

      DRV Enable output

      PB6

      DRVOFF

      DRV Sleep

      PB2

      nSLEEP

      Controller Fault Output

      PB16

      LED

      Common Ground

      GND

      GND

DRV8316REVM J3 and J4 connector pinout

Fig. 21 DRV8316REVM J3 and J4 connector pinout

Note: There are two Phase B current inputs used because we use simultaneous current sampling, Refer to ‘Enabling simultaneous current sampling’ in FOC Library Overview.

  1. Remove the black jumper connector in HAL_PWR_SEL and VREF/ILIM, and make the red color connection as below shown using a jumper wire. This connection is to make the ADC reference as 3.3V.

DRV8316EVM ADC INPUT

Fig. 22 DRV8316EVM ADC INPUT

  1. For using the IPD startup feature user needs to additionally make the below connections : The three phase currents are routed to the three comparator pins on the Launch Pad as below

    Connection

    MSPM0G3507

    DRV8316REVM

    COMP A input

    PA14

    ISENA

    COMP B input

    PB26

    ISENB

    COMP C input

    PB21

    ISENC

  2. Connect the 3 phases of the BLDC motor to A/B/C of connector J6 on the DRV8316REVM.

  3. Connect the positive and negative of the power supply to VM and GND of the power connector terminal block.

  4. Set the power supply to a motor voltage between 6V to 24V within the DRV8316R specifications and a 5-A current limit.

  5. Connect a Micro-USB cable from the LP-MSPM0G3507 to the PC.

  6. Once all steps are completed, you can start to run the motor. Please refer to Software User Guide or FOC Tuning Guide

3. Gatedriver Register Configurations

Sensorless FOC application FW periodically configures the gate driver registers using SPI. The gatedriverInterface sub folder in the Hal directory provides users ability to add the custom gate driver functions.

The gatedriver register configurations defined under HV_DIE_EEPROM_INTERFACE_T in the DRV8316.h file are periodically updated using the API : gateDriverParamsUpdate() when the motor is not spinning. Below are the gate driver register settings available for user configuration.

Note: some of the register settings are not applicable for FOC Application FW and shouldn’t be altered from the default values.

gateDrvCfg1 configurations

Bit Field

Bit Definition

csaGain

Current Sense Amplifier (CSA) gain

enASR

Not Applicable for FOC FW / Not to be configured

enAAR

Not Applicable for FOC FW / Not to be configured

IlimRecir

Not Applicable for FOC FW/ Not to be configured

bemfThr

Not Applicable for FOC FW/ Not to be configured

ocpMode

OCP fault mode configuration

ocpLvl

Overcurrent Level Setting

ocpRetry

OCP Retry Time Settings

cbcDeg

Not Applicable for FOC FW/ Not to be configured

ocpCBC

Not Applicable for FOC FW/ Not to be configured

drvOff

Bit to turn off the Gate Driver

otwRep

Bit to turn on the OTW reporting

ovpEn

Overvoltage Enable Bit

ovpSel

Overvoltage Level Setting

pwm100DutySel

Not Applicable for FOC FW / Not to be configured

disRR

Not Applicable for FOC FW / Not to be configured

halfRR

Not Applicable for FOC FW / Not to be configured

clrFLT

Clears the Gate Driver Faults

pwmMode

Not Applicable for FOC FW / Not to be configured

slewRate

Not Applicable for FOC FW / Not to be configured

gateDrvCfg2 configurations

Bit Field

Bit Definition

minOnTime

Not Applicable for FOC FW / Not to be configured

buckDis

Buck Disable Bit

buckSel

Buck Voltage Selection

buckCl

Buck Current Limit Setting

buckPsDis

Buck Power Sequencing Disable Bit

buckSr

Buck Slew Rate

targetDelay

Not Applicable for FOC FW / Not to be configured

delayCompEn

Not Applicable for FOC FW / Not to be configured

Note: User would need to program the currentBase in the System parameters based on the CSA Gain configured in the gate driver.