SLVSHO3 April 2024 DRV8235
PRODUCTION DATA
Denoted by WSET_VSET, this parameter helps set the target speed or motor voltage, based on the REG_CTRL register setting.
When REG_CTRL is set to 10b, the speed regulation mode is enabled. WSET_VSET is an 8-bit register and can be set to a value between 00h (corresponds to 0 rad/s) and FFh (corresponds to the maximum speed allowable by W_SCALE). The speed control loop matches the value of the SPEED register to the target speed set by WSET_VSET. Please note that the maximum value of the SPEED register is 255.
When REG_CTRL is set to 11b, the motor voltage regulation mode is enabled. The motor voltage in this case can be set to a value between 0 for 0V and 255 for approximately 42.67V drive output voltage. Please note that the maximum value of WSET_VSET is 255. Each bit corresponds to approximately a 0.167mV resolution of the output voltage setting. Setting WSET_VSET to 255 sets the target voltage to approximately 42.7V. The formula to calculate the decimal value is represented by the equation:
For example, if desired target voltage is 5V, Register Setting Value = 5*(255/42.67) = 29.88. Hence, setting a value of 30 (or 1Eh) outputs approximately 5V.