background image

6 Firmware and GUI Application

The DRV8316xEVM can implement sensored, sensorless, or Field-oriented control for commutating a three-
phase Brushless-DC motor. The supported firmware is a sensorless ield-oriented control algorithm adapted from 
Texas Instruments’ MotorControl SDK Library of motor solutions. The algorithm includes motor identification and 
parameters, sensorless sinusoidal commutation, torque and speed control, and field weakening to maximize 
the performance of the motor. The firmware uses GUI Composer to run the algorithm and includes a tab to 
read/write to the DRV8316 SPI registers.

The following steps describe how to identify useful motor parameters, spin the motor using a sensorless 
sinusoidal profile, use the PI controller gain settings for torque and speed control, and communicate with the 
DRV8316 SPI registers. For more information on advanced features of the C2000 InstaSPIN Universal GUI such 
as MTPA or Field-weakening , consult the MotorControl SDK InstaSPIN Lab Guide (in the 

MotorControl Software 

Development Kit

 tool page) and 

InstaSPIN-FOC and InstaSPIN-MOTION User’s Guide

.

6.1 C2000

 InstaSPIN

 Universal GUI

1. Follow the instructions in 

Section 5

 

Hardware Setup

 and ensure the LAUNCHXL-F280049C is connected to 

the PC and the power supply is turned on to the DRV8316xEVM PCB.

2. Access the 

GUI Composer Gallery

 

https://dev.ti.com/gallery/

 and search for 

"DRV8316xEVM_InstaSPIN_Universal_GUI". Click on the GUI.

3. Accept the readme as shown in 

Figure 6-1

 and check the bottom left hand corner of the screen for 

“Hardware Connected”. Once connected, the GUI will flash the algorithm to the MCU as shown in 

Figure 6-2

.

Figure 6-1. C2000

 InstaSPIN

 Universal GUI for DRV8316xEVM

www.ti.com

Firmware and GUI Application

SLVUBZ9B – DECEMBER 2020 – REVISED AUGUST 2021

Submit Document Feedback

DRV8316xEVM Evaluation Module

19

Copyright © 2021 Texas Instruments Incorporated

Summary of Contents for DRV8316 EVM Series

Page 1: ...er Selectable Jumpers and DNP Components on Top Side of DRV8316xEVM 9 Figure 4 3 User Selectable Jumpers and DNP Components on Bottom Side DRV8316xEVM 10 Figure 4 4 Resistor Divider Settings R37 R46 a...

Page 2: ...8316T Variants defaults in bold 10 Table 4 4 User Adjustable Resistor Divider Settings for DRV8316T Variant defaults in bold 11 Table 4 5 Connections for Header J3 on DRV8316xEVM DNP in bold 16 Table...

Page 3: ...OT SURFACE Caution Hot Surface Contact may cause burns Do not touch Please take the proper precautions when operating www ti com Cautions and Warnings SLVUBZ9B DECEMBER 2020 REVISED AUGUST 2021 Submit...

Page 4: ...ith the hardware of the DRV8316xEVM the TMS320F280049C microcontroller on the LAUNCHXL F280049C LaunchPadTM has reference software that provides the algorithm to the DRV8316 to control the BLDC motor...

Page 5: ...he Hall sensors connect them to five pin connector J7 as Figure 4 6 shows Select 3 3 V or HALL_EXT_PWR on jumper J8 to select Hall power source 3 Mate the DRV8316xEVM onto the top half of the LAUNCHXL...

Page 6: ...59 can be used for debugging and validation Table 4 3 shows LED descriptions including those that are on during power up in bold and Figure 4 1 shows the locations of the LEDs Table 4 1 Description of...

Page 7: ...3VBK LED Figure 4 1 DRV8316xEVM LEDs www ti com Hardware and Software Overview SLVUBZ9B DECEMBER 2020 REVISED AUGUST 2021 Submit Document Feedback DRV8316xEVM Evaluation Module 7 Copyright 2021 Texas...

Page 8: ...IM comes from MCU DAC R53 must be populated J2 Right ILIM comes from R4 R7 voltage divider D HALL_PWR_SEL Selects Hall power voltage Top J8 Left Hall power comes from 3 3VBK J8 Right Hall power is pro...

Page 9: ...D J8 HALL_PWR select E VREF select F RC filters for CSA outputs Figure 4 2 User Selectable Jumpers and DNP Components on Top Side of DRV8316xEVM www ti com Hardware and Software Overview SLVUBZ9B DECE...

Page 10: ...istors silk screen box are to be populated R37 R46 with the desired settings Figure 4 4 shows this setup Table 4 3 shows the status of populated and DNP resistors for the two compatible DRV8316x varia...

Page 11: ...4 0 V Tied to AVDD 5 7 V MODE PWM Control Mode Selects the PWM control mode type R37 R42 Tied to AGND 6 PWM Hi Z 6 PWM with Current Limit 47 k to AVDD 3 PWM Tied to AVDD 6 PWM with Current Limit SLEW...

Page 12: ...se gain R39 R44 Tied to AGND 0 15 V A Hi Z 0 3 V A 47 k to AVDD 0 6 V A Tied to AVDD 1 2 V A 4 2 Hardware Connections Overview DRV8316xEVM LAUNCHXL F280049C Figure 4 5 shows the major blocks of DRV831...

Page 13: ...emented on the VBAT and PGND terminals To bypass the reverse polarity protection and pi filter implementation R20 can be populated on the bottom of the board The three phases of the BLDC motor connect...

Page 14: ...UNCHXL F280049C to provide communication between the LaunchPad firmware and GUI as well as the correct installment of the DRV8316xEVM to the J1 J3 and J2 J4 headers of the LaunchPad Hardware and Softw...

Page 15: ...and J2 J4 of LaunchPad and Micro USB Plugged Into LaunchPad www ti com Hardware and Software Overview SLVUBZ9B DECEMBER 2020 REVISED AUGUST 2021 Submit Document Feedback DRV8316xEVM Evaluation Module...

Page 16: ...IACLK SPI clock DRV8316R only 14 ISENA ADCINB2 Phase A current sense 15 nFAULT DNP ADCINC4 For internal use only 16 ISENB ADCINC0 Phase B current sense 17 nSLEEP GPIO37 Active low output sleep pin 18...

Page 17: ...IO30 HALL sensor B from motor 16 DRVOFF GPIO39 Active high output to disable gate drivers 17 HALLC GPIO18 XCLKOUT HALL sensor C from motor 18 Not used GPIO23 LED4 LED reserved on LaunchPad 19 VREF DNP...

Page 18: ...ayer If using a sensored algorithm on the LaunchPad development kit connect the Hall sensor to the five pin connector J7 3 Connect the DC power supply to header J5 ensuring the correct polarity of VBA...

Page 19: ...ore information on advanced features of the C2000 InstaSPIN Universal GUI such as MTPA or Field weakening consult the MotorControl SDK InstaSPIN Lab Guide in the MotorControl Software Development Kit...

Page 20: ...stors box This setting ensures that the CSA current output when identifying the motor does not saturate or else it will incorrectly identify the motor parameters and limit the maximum performance 4 Ch...

Page 21: ...tion Using the DRV8316xEVM InstaSPIN GUI www ti com Firmware and GUI Application SLVUBZ9B DECEMBER 2020 REVISED AUGUST 2021 Submit Document Feedback DRV8316xEVM Evaluation Module 21 Copyright 2021 Tex...

Page 22: ...dulation techniques such as torque control speed control and algorithms such as MTPA Field weakening and PowerWarp EPL using the DRV8311HEVM InstaSPIN Universal GUI please consult the MotorControl SDK...

Page 23: ...e statuses and settings will auto populate in their registers 5 Alternatively to write data to a specific address input the address and data in decimal into the address and data inputs above the Manua...

Page 24: ...Protection and Pi Filter Schematic Figure 7 2 Voltage Sense and Protection Schematic DRV8316xEVM Schematics www ti com 24 DRV8316xEVM Evaluation Module SLVUBZ9B DECEMBER 2020 REVISED AUGUST 2021 Submi...

Page 25: ...atic Figure 7 4 DRV8316 3 phase BLDC Motor Driver Schematic www ti com DRV8316xEVM Schematics SLVUBZ9B DECEMBER 2020 REVISED AUGUST 2021 Submit Document Feedback DRV8316xEVM Evaluation Module 25 Copyr...

Page 26: ...k Regulator Schematic Figure 7 7 TMS430F280049C LaunchPad Connections Schematic DRV8316xEVM Schematics www ti com 26 DRV8316xEVM Evaluation Module SLVUBZ9B DECEMBER 2020 REVISED AUGUST 2021 Submit Doc...

Page 27: ...f the EVM 1 Generalized the name to the DRV8316xEVM to showcase SPI and H W compatibility 1 Included information on SPI and H W variant names 1 Changes from Revision December 2020 to Revision A Februa...

Page 28: ...are subject to change without notice TI grants you permission to use these resources only for development of an application that uses the TI products described in the resource Other reproduction and...

Reviews: