Datasheet

TMC2590 DATASHEET (V1.0 / 2019-FEB-22) 26
www.trinamic.com
7.8 StallGuard2 Control Register (SGCSCONF)
SGCSCONF
StallGuard2™ and Current Setting
Bit
Name
Function
Comment
19
1
Register address bit
18
1
Register address bit
17
0
Register address bit
16
SFILT
StallGuard2 filter
enable
0: Standard mode, fastest response time.
1: Filtered mode, updated once for each four fullsteps to
compensate for variation in motor construction, highest
accuracy.
15
0
Reserved
14
SGT6
StallGuard2 threshold
value
The StallGuard2 threshold value controls the optimum
measurement range for readout and stall indicator
output (SG_TST). A lower value results in a higher
sensitivity and less torque is required to indicate a stall.
The value is a two’s complement signed integer.
Range: -64 to +63
13
SGT5
12
SGT4
11
SGT3
10
SGT2
9
SGT1
8
SGT0
7
0
Reserved
6
0
Reserved
5
0
Reserved
4
CS4
Current scale
(scales digital
currents A and B)
Current scaling for SPI and STEP/DIR operation.
%00000 … %11111: 1/32, 2/32, 3/32, … 32/32
This value is biased by 1 and divided by 32, so the
range is 1/32 to 32/32.
Example: CS=20 is 21/32 current.
3
CS3
2
CS2
1
CS1
0
CS0