Other Parts Discussed in Thread: MSP430F5529,
HOW DO I RUN MOTOR WITHOUT USING GATE DRIVER GUI?
HOW TO RUN MOTOR WITH ONLY CCS?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
HOW DO I RUN MOTOR WITHOUT USING GATE DRIVER GUI?
HOW TO RUN MOTOR WITH ONLY CCS?
Hi Nimesh,
The firmware for the MSP430F5529 that is on the BOOSTXL-DRV8320H EVM page supports the application GUI and uses a protocol that make it difficult to run with using only CCS.
We recommend writing a simple sensored or sensorless trapezoidal FW example using the MSP430 firmware from one of these two TIDA designs:
Sensored trapezoidal using MSP430: www.ti.com/.../TIDA-010056
Sensorless trapezoidal using MSP430: https://www.ti.com/tool/TIDA-010031
Thanks,
Aaron
Hi Nimesh,
We do not have all the steps documented at the moment, but a pseudocode approach for sensored trapezoidal control will be something like this for MSP430:
Initializations
Clock
GPIOs
Timer banks (for PWMs)
SPI settings (if "S" version is used)
Main loop
Set PWM duty cycle
Read Hall state (based on Hall inputs)
Determine next hall state (state machine)
Set PWM outputs for each 1/2 bridge (ON, OFF, Hi-Z)
Functions
Set HS = off, LS = on (turn on low-side MOSFET)
Set HS = PWM, LS = !PWM (synchronous PWM switching)
Set HS = Hi-Z, LS = Hi-Z (Hi-Z 1/2 bridge)
This pseudocode example essentially describes the sensored trapezoidal firmware provided previously.
You can also use this C2000 example as a guideline of how to write the firmware. It should be less than 500 lines total and should not be too hard to implement: 2548.DRV8316_Sensored_Trapezoidal.zip
Thanks,
Aaron