JAJSU39 April 2024 DRV8235
PRODUCTION DATA
This method utilises the factor of proportionality that associates KMC and KMC_SCALE with the ripple speed, ωripple. ωripple is directly proportional to KMC_SCALE but varies inversely with KMC. Let kd be a dummy constant. We have:
Using the subscript 'def' to denote default, we have the following equation for default values of KMC and KMC_SCALE:
Using the subscript 'tuned', we similarly have the following equation for tuned values of KMC and KMC_SCALE:
Taking the ratio of the two equations above, the dummy constant, kd, cancels out:
At this point, the following is known:
To obtain ωdef, select a value of W_SCALE based on step 3 of KMC_SCALE Tuning Method 1. Next, convert the ripple speed on the SPEED register obtained using KMC_SCALEdef and KMCdef into rad/s by multiplying SPEED with W_SCALE. For example, if SPEED reads 0x04 and W_SCALE is set to 10b (corresponds to 64 rad/s), then ripple speed in rad/s = 4*64 = 256 rad/s.
Plugging the four values above and simplifying, we get a ratio of KMC_SCALEtuned and KMCtuned as a constant number. Select KMC_SCALEtuned from the four available values such that KMCtuned has the highest bit precision within limits (0 to 255). A working example is shown below.