TIDUF31B May 2023 – September 2024
Click the Run → Debug
menu options to download and debug software in CCS, then add
pUserCtrlRegs variables into Expressions windows, Select
pUserCtrlRegs → speedCtrl → b → speedInput, right click, select
Q-Values → Q-Value(15). Figure 4-9 shows where and how to change value type.
Figure 4-9 Download And DebugRun code by clicking the Run
button in CCS, and change the speedInput to a non-zero value to
spin the motor, for example, 0.6, this number is a normalization number of the
maximum speed, so if speedInput = 1, the motor runs at the maximum
speed. To stop the motor, set speedInput to zero.
Figure 4-10 shows where to change the speedInput value.
Figure 4-10 Set Motor Speed Percentage by
speedInput