SLVUBN6A February 2019 – May 2020
Use the following steps to get started with the GUI:
On the GUI home page, the top taskbar, the sidebar, the bottom taskbar, e2e support link, and EVM variant selection options can be found. The bottom taskbar contains a status bar indicating EVM connection status and a GUI log pane that records notable GUI events.
If there is a need to reprogram the EVM to its default firmware, the GUI facilitates this need with the File->Program Device menu option.
To reprogram the device, the MSP-MCU Programmer and Debugger tool called MSP-FET must be utilized and connected to the 14 pin, 2 row JTAG connector. Once connection is established, Program Device should be initiated. Once clicked, the GUI will try to program the connected EVM to the GUI's embedded firmware.
If multiple USB devices are connected, verify which COM Port is utilized by the connected EVM in the computer's Device Manager options and make sure the Options->Serial Port... menu item shows the correct port that corresponds to the EVM's USB connection. The baud rate can be configured here. Make sure it matches the firmware's baud rate. By default, the MCU UART is configured to 115200.
The Log Pane can be accessed through the Tools Menu. It is a feature designed to keep track of GUI activities. The benefit of this feature is the facilitation to the user of knowing what is happening with the GUI in case debugging of any issue is required. It captures all actions done by the GUI that can manipulate the EVM. The log pane allows the user to filter events by categories such as info, warning, error, debug, save the active log (as a .csv file), clear log events, and to hide it. It resides at the bottom taskbar and is represented by a book icon.
The About option is in the Help Menu and it gives general information about the GUI. An important item here is the Version of EVM's Firmware text, which shows the version of the firmware of the EVM connected to the GUI.
Select the EVM variant of interested to open the EVM Variant's Motor Driver page. For the image's found in this user's guide, the evaluation conducted is on the DRV8718S-Q1EVM.
The EVM variant that is connected to the PC will now begin connection to the GUI application. If no hardware is physically connected to the PC or the wrong variant is connected, a message will display stating Hardware Not Connected." Please, proceed back to the GUI Home/Landing Page, verify the selected Device Page matches the hardware variant connected, and check your hardware connections before proceeding.
The top taskbar will have additional items on all GUI pages different than the ones on the GUI Home page:
File menu now has options to Save/Load register values set the register map page. It also has options to reset the register map values to the values on the GUI or on the datasheet by default. Note these options are available once the EVM is connected to the GUI.
Tools will have a feature called Open Scripting Window. The differences between this script window and the log pane is that the script window stores only register manipulation, not all hardware manipulation, yet it lets you save those register settings that occur while you record changes. The main benefit is to debug issues and share with the support team in case the issue has to do with the register setup. When you access it, it will open a new window that that allows the user to upload/download a javascript file coded to write register settings.
It allows for the code to be executed via the Run button after it has been uploaded to the window or recorded. To record changes on the register map and save them as a Javascript file, click the Start Recording button, make the changes on the register map, press Stop Recording when finished, then click Download Script to save the Javascript file.
On the GUI, click on the "Menu" hamburger icon below the top taskbar to open the sidebar menu.
Use the side-bar menu to navigate to the following pages or sub-pages after entering a Device Page. The pages that follow are in context to the launched device:
On Motor Driver EVM web pages, links to Register Map, Collateral Documents, Motor Control, EVM and Device Collateral links (of the selected EVM variant), and e2e Support link can be found on the page.
The Registers Page shows all the registers and their fields present on the DRV8718S-Q1EVM, DRV8714S-Q1EVM, DRV8706S-Q1EVM, DRV8106S-Q1EVM or DRV8705S-Q1EVM device. The page allows register manipulation of any nonreserved control register address field(s) and/or bit(s).
The status registers highlight the fault/warning diagnostics of the device. These registers are read from the motor driver as long as the device is connected. If a fault or a warning occurs, it will be indicated here. The control registers highlight motor driver manipulation such as driver enabling, clear faults, PWM Mode, IDRIVE, VDS_LVLs, offline diagnostics, fault configuration, and amplifier configuration.
For manipulating register bits, either click a bit to change it. In the Field View, change address fields by selecting specific address field options. By default, the register map writes the registers immediately (when the firmware gets to the GUI register read function call). If deferred writing is preferred, select Deferred in the drop-down that states Immediate and select Write Register once a register has been selected to write it. Write All Registers can be selected as well.
The Motor Control page has different widget controls to control the load and tune the parameters using the PWM Mode based algorithms. It also allows for Offline Diagnostics.
Putting the device back to sleep and then awaking or resetting the firmware through the reset button it will reset the register values to the default GUI values. The latter will require that GUI connection to EVM be reestablished.
Descriptions of GUI widgets on the Motor Control page:
Follow these steps to run the motor:
When the driver is disabled, the register read-write (R/W) operations are not allowed.
Since the SO voltage saturates to VREF, the EVM could be providing current to a load that is greater than what the GUI can exhibit or the driver feeds back to the MCU's ADC. Therefore, manipulate Gain carefully and calculate what current the evaluation requires. The EVM has been tested at 15 A RMS, 20 A peak with a gain of 20 V/V.
For PH/EN mode, change the percentage of duty cycle using the H-Bridge Control IN1/EN Duty Cycle slider. The direction can be changed by clicking the Motor Direction arrow (IN2/PH pin).
For PWM or 1/2 bridge mode, change the percentage of duty cycle using the H-Bridge Control IN1/EN Duty Cycle and H-Bridge Control IN2/PH Duty Cycle sliders. In 1/2 bridge mode, each bridge can be disabled via the Hi-Z Half Bridge X buttons (nHIZx pins).
In PWM Mode, note that Low Side and High Side Active Freewheel is Brake. By default, the PWM Mode starts with the truth table in Coast state. If the IN1/EN and IN2/PH are both at 100%, Brake state has been reached and current recirculation occurs through the FET body diodes.
The GUI calculates the motor current by interpreting the ADC reading of SO, where the reference point readings for each of those parameters are 2044 and 1.65 V, respectively. The motor current calculation on the S and H variants is as follows:
SOADCSample / 4095 * 3.30 V) – 1.65 V / [Gain * 0.007])
The Smart Gate Drive pages provide resources to understand Smart Gate Drive and manipulation of the registers that contain Smart Gate Drive based bit fields. Utilize this page to better understand the behavior of Smart Gate Drive and to set it in a faster manner.
The CSA page allows the manipulation of two high-performance, wide common-mode, bidirectional, current-shunt amplifiers for current measurements using shunt resistors in the external half-bridges.
The Collaterals page contains links to find other gate drivers, TI Reference Designs, blogs and learning videos to understand brushed DC motor driving even more.