TI provides simple sensor trap code to help with evaluation. Install the following software:
For code introduction please view the following files:
Use the following steps to for the reference code:
- Open CCS and import the code project (<install_location>\mspm0_sdk_1_20_00_05\examples\nortos\LP_MSPM0G3507\motor_control_bldc_sensored_trap_hall\drv8328\tida-010251-gui-firmware) into CCS
- Change lines 65 to 67 in Main.c to adapt to the TIDA-010251 board:
- Build and debug the firmware, select
guiVar and reading and ADD WATCH EXPRESSION, adjust the
parameters in the following image as needed. Set CSA Gain, PWM frequency, and so
forth, from guiVar and observe voltage and current data in
reading.
- Speed pin inputs 0- to 3.3-V voltage, and the
code is converted into Duty drive motor according to the input.
- Observe the changes in busvoltage and
busCurrent in the reading structure.
CAUTION: When doing high-power testing, make sure you understand the code
and configure the parameters correctly.