Datasheet

TMC2590 DATASHEET (V1.0 / 2019-FEB-22) 33
www.trinamic.com
8.3 Changing Resolution
The application may need to change the microstepping resolution to get the best performance from
the motor. For example, high-resolution microstepping may be used for precision operations on a
workpiece, and then fullstepping may be used for maximum torque at maximum velocity to advance
to the next workpiece. When changing to coarse resolutions like fullstepping or halfstepping,
switching should occur at or near positions that correspond to steps in the lower resolution, as
shown in the table below.
Step Position
MSTEP Value
Coil A Current
Coil B Current
Half step 0
0
0%
100%
Full step 0
128
70.7%
70.7%
Half step 1
256
100%
0%
Full step 1
384
70.7%
-70.7%
Half step 2
512
0%
-100%
Full step 2
640
-70.7%
-70.7%
Half step 3
768
-100%
0%
Full step 3
896
-70.7%
70.7%
8.4 MicroPlyer Step Interpolator
For each active edge on STEP, MicroPlyer produces 16 microsteps at 256x resolution, as shown in
Figure 8.3. MicroPlyer is enabled by setting the INTPOL bit in the DRVCTRL register. It supports input
at 16x resolution, which it transforms into 256x resolution. The step rate for each 16 microsteps is
determined by measuring the time interval of the previous step period and dividing it into 16 equal
parts. The maximum time between two active edges on the STEP input corresponds to 2
20
(roughly
one million) system clock cycles, for an even distribution of 1/256 microsteps. At 16MHz system clock
frequency, this results in a minimum step input frequency of 16Hz for MicroPlyer operation (one
fullstep per second). A lower step rate causes the STST bit to be set, which indicates a standstill
event. At that frequency, microsteps occur at a rate of


.
Attention
MicroPlyer only works well with a stable STEP frequency. Do not use the DEDGE option if the STEP
signal does not have a 50% duty cycle.
STEP
interpolated
microstep
Active edge
(DEDGE=0)
Active edge
(DEDGE=0)
Active edge
(DEDGE=0)
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 32
Active edge
(DEDGE=0)
STANDSTILL
(STST) active
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
motor
angle
52 53 54 55 56 57 58 59 60 61 62 63 64 65 6651
2^20 t
CLK
Figure 8.3 MicroPlyer microstep interpolation with rising STEP frequency