Datasheet

TMC2590 DATASHEET (V1.0 / 2019-FEB-22) 29
www.trinamic.com
7.10 Read Response
For every write command sent to the motor driver, a 20-bit response is returned to the motion
controller. The response has one of four formats, as selected by the RDSEL parameter in the DRVCONF
register. The table below shows these formats.
DRVSTATUS
Read Response
Bit
Name
Function
Comment
RDSEL
%00
%01
%10
%11
19
MSTEP9
SG9
SG9
UV_7V
Microstep
counter /
StallGuard2
SG9:0 /
StallGuard2
SG9:5 and
CoolStep
SE4:0 /
Diagnostic
status
Microstep position in sine table for coil A in
STEP/DIR mode. MSTEP9 is the Polarity bit:
0: Current flows from OA1 pins to OA2 pins.
1: Current flows from OA2 pins to OA1 pins.
18
MSTEP8
SG8
SG8
ENN in
17
MSTEP7
SG7
SG7
S2VSB
16
MSTEP6
SG6
SG6
S2GB
15
MSTEP5
SG5
SG5
S2VSA
StallGuard2 value SG9:0.
14
MSTEP4
SG4
SE4
S2GA
StallGuard2 value SG9:5 and the actual
CoolStep scaling value SE4:0.
13
MSTEP3
SG3
SE3
OT150
12
MSTEP2
SG2
SE2
OT136
Full diagnostic: <7V VS flag, state of ENN
input, individual short to GND and short to
VS flags, temperature detector readout
11
MSTEP1
SG1
SE1
OT120
10
MSTEP0
SG0
SE0
OT100
9
0
1
-
Unused bits
8
0
1
7
STST
Standstill
indicator
0: No standstill condition detected.
1: No active edge occurred on the STEP
input during the last 2
20
system clock cycles.
6
OLB
Open load
indicator
0: No open load condition detected.
1: No chopper event has happened during
the last period with constant coil polarity.
Only a current above 1/16 of the maximum
setting can clear this bit!
Hint: This bit is only a status indicator. The
chip takes no other action when this bit is
set. False indications may occur during fast
motion and at standstill. Check this bit only
during slow motion.
5
OLA
4
SHORTB
Short
detection
status
0: No short condition.
1: Short condition.
The short counter is incremented by each
short circuit and the chopper cycle is
suspended. The counter is decremented for
each phase polarity change. The MOSFETs are
shut off when the counter reaches 3 and
remain shut off until the shutdown condition
is cleared by disabling and re-enabling the
driver. The shutdown condition becomes
reset by de-asserting the ENN input or
clearing the TOFF parameter.
3
SHORTA
2
OTPW
Overtemp.
warning
0: No overtemperature warning condition.
1: Warning threshold is active.
1
OT
Overtemp.
shutdown
0: No overtemperature shutdown condition.
1: Overtemperature shutdown has occurred.
0
SG
StallGuard2
status
0: No motor stall detected.
1: StallGuard2 threshold has been reached,
and the SG_TST output is driven high.