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.

MSPM0G3507: The defined FULL_SCALE_CURRENT_BASE values are not matched

Part Number: MSPM0G3507
Other Parts Discussed in Thread: DRV8323, DRV8316, DRV8328

Tool/software:

Hi there,

I am migrating a motor control project from C2000 to MSPM0G. I found the defined values of FULL_SCALE_CURRENT_BASE are not matched with the comments. Take DRV8323 for example, 3.3/2*(0.007*5) = 0.0578, not 11.785.

/*! @brief Full scale readable current used as current base value,
calculated using (FULL Scale Voltage(3.3)/2*(Rsense(7mOhm) * CSA Gain(5)) */
#define FULL_SCALE_CURRENT_BASE                    11.785

Also take DRV8316 for example, 3.3/2 * 0.15 = 0.248, not 11.

/*! @brief Full scale readable current used as current base value,
calculated using (FULL Scale Voltage(3.3)/2* CSA Gain(0.15(v/A))) */
#define FULL_SCALE_CURRENT_BASE                     11

According to the tuning guide, CURRENT_BASE = VREF / 2 / Gain(V/A).

For DRV8328: 3.3/2 / (0.007*5) = 47.143  ---> still not matched

For DRV8316: 3.3/2 / 0.15 = 11 ---> matched

These typos should be fixed.