TMC5160 DATASHEET (Rev. 1.08 / 2018-NOV-19)
92
14.3 Tuning coolStep
Before tuning coolStep, first tune the stallGuard2 threshold level SGT, which affects the range of the
load measurement value SG_RESULT. coolStep uses SG_RESULT to operate the motor near the
optimum load angle of +90°.
The current increment speed is specified in SEUP, and the current decrement speed is specified in
SEDN. They can be tuned separately because they are triggered by different events that may need
different responses. The encodings for these parameters allow the coil currents to be increased much
more quickly than decreased, because crossing the lower threshold is a more serious event that may
require a faster response. If the response is too slow, the motor may stall. In contrast, a slow
response to crossing the upper threshold does not risk anything more serious than missing an
opportunity to save power.
coolStep operates between limits controlled by the current scale parameter IRUN and the seimin bit.
14.3.1 Response Time
For fast response to increasing motor load, use a high current increment step SEUP. If the motor load
changes slowly, a lower current increment step can be used to avoid motor oscillations. If the filter
controlled by sfilt is enabled, the measurement rate and regulation speed are cut by a factor of four.
Hint
The most common and most beneficial use is to adapt coolStep for operation at the typical system
target operation velocity and to set the velocity thresholds according. As acceleration and
decelerations normally shall be quick, they will require the full motor current, while they have only a
small contribution to overall power consumption due to their short duration.
14.3.2 Low Velocity and Standby Operation
Because coolStep is not able to measure the motor load in standstill and at very low RPM, a lower
velocity threshold is provided in the ramp generator. It should be set to an application specific
default value. Below this threshold the normal current setting via IRUN respectively IHOLD is valid. An
upper threshold is provided by the VHIGH setting. Both thresholds can be set as a result of the
stallGuard2 tuning process.
www.trinamic.com