TMC5031 DATASHEET (Rev. 1.11 / 2016-APR-28)
31
5.3.4 DRV_STATUS – stallGuard2 Value and Driver Error Flags
0X6F, 0X7F: DRV_STATUS – STALLGUARD2 VALUE AND DRIVER ERROR FLAGS
Bit Name
31 stst
30 olb
Function
Comment
This flag indicates motor stand still in each operation mode.
standstill indicator
open load indicator
phase B
open load indicator
phase A
1: Open load detected on phase A or B
Hint: This is just an informative flag. The driver takes no action
upon it. False detection may occur in fast motion and
standstill. Check during slow motion or after a motion, only
29 ola
1: Short to GND detected on phase A or B. The driver becomes
disabled. The flags stay active, until the driver is disabled by
software (TOFF=0) or by the ENN input.
28 s2gb
27 s2ga
26 otpw
short to ground
indicator phase B
short to ground
indicator phase A
overtemperature pre-
warning flag
1: Overtemperature pre-warning threshold is exceeded.
The overtemperature pre-warning flag is common for both
drivers.
1: Overtemperature limit has been reached. Drivers become
disabled until otpw is also cleared due to cooling down of the
IC.
25 ot
overtemperature flag
The overtemperature flag is common for both drivers.
1: Motor stall detected (SG_RESULT=0)
24 stallGuard stallGuard2 status
Ignore these bits
23
22
21
-
reserved
Actual current control scaling, for monitoring smart energy
current scaling controlled via settings in register COOLCONF, or
for monitoring the function of the automatic current scaling.
20 CS
actual motor current /
smart energy current
ACTUAL
19
18
17
16
1: Indicates that the driver has switched to fullstep as defined
by chopper mode settings and velocity thresholds.
15 fsactive
full step active
indicator
reserved
Ignore these bits
14
13
12
11
10
9
-
Mechanical load measurement:
SG_
stallGuard2 result
The stallGuard2 result gives a means to measure mechanical
motor load. A higher value means lower mechanical load. A
value of 0 signals highest load. With optimum SGT setting,
this is an indicator for a motor stall. The stall detection
compares SG_RESULT to 0 in order to detect a stall. SG_RESULT
is used as a base for coolStep operation, by comparing it to a
programmable upper and a lower limit. stallGuard2 works best
with microstep operation.
RESULT
respectively PWM on
time for coil A in stand
still for motor
8
7
6
5
4
3
2
temperature detection
1
0
Temperature measurement:
In standstill, no stallGuard2 result can be obtained. SG_RESULT
shows the chopper on-time for motor coil A instead. If the
motor is moved to a determined microstep position at a
certain current setting, a comparison of the chopper on-time
can help to get a rough estimation of motor temperature. As
the motor heats up, its coil resistance rises and the chopper
on-time increases.
www.trinamic.com