Datasheet

TMC2590 DATASHEET (V1.0 / 2019-FEB-22) 11
www.trinamic.com
5 StallGuard2 Load Measurement
StallGuard2 provides an accurate measurement of the load on the motor within a selected velocity
range. It can be used for stall detection as well as other uses at loads below those which stall the
motor, such as CoolStep load-adaptive current reduction. (StallGuard2 is a more precise evolution of
the earlier StallGuard technology.)
The StallGuard2 measurement value changes linearly over a wide range of load, velocity, and current
settings, as shown in Figure 5.1. At maximum motor load, the value goes to zero or near to zero. This
corresponds to a load angle of 9between the magnetic field of the coils and magnets in the rotor.
This also is the most energy-efficient point of operation for the motor.
motor load
(% max. torque)
stallGuard2
reading
100
200
300
400
500
600
700
800
900
1000
0 10 20 30 40 50 60 70 80 90 100
Start value depends
on motor and
operating conditions
Motor stalls above this point.
Load angle exceeds 90° and
available torque sinks.
stallGuard value reaches zero
and indicates danger of stall.
This point is set by stallGuard
threshold value SGT.
Figure 5.1 StallGuard2 load measurement SG as a function of load
Two parameters control StallGuard2 and one status value is returned.
Parameter
Description
Setting
Comment
SGT
7-bit signed integer that sets the StallGuard2
threshold level for asserting the SG_TST output
and sets the optimum measurement range for
readout. Negative values increase sensitivity,
and positive values reduce sensitivity so more
torque is required to indicate a stall. Zero is a
good starting value.
0
indifferent value
+1… +63
less sensitivity
-1… -64
higher sensitivity
SFILT
Mode bit which enables the StallGuard2 filter for
more precision. If set, reduces the measurement
frequency to one measurement per four
fullsteps. If cleared, no filtering is performed.
Filtering compensates for mechanical
asymmetries in the construction of the motor,
but at the expense of response time. Unfiltered
operation is recommended for rapid stall
detection. Filtered operation is recommended
for more precise load measurement.
0
standard mode
1
filtered mode