Datasheet
TMC2130 DATASHEET (Rev. 1.09 / 2017-MAY-15) 71
www.trinamic.com
16.3 microPlyer Step Interpolator and Stand Still Detection
For each active edge on STEP, microPlyer produces microsteps at 256x resolution, as shown in Figure
16.2. It interpolates the time in between of two step impulses at the step input based on the last
step interval. This way, from 2 microsteps (128 microstep to 256 microstep interpolation) up to 256
microsteps (full step input to 256 microsteps) are driven for a single step pulse.
Enable microPlyer by setting the intpol bit in the CHOPCONF register.
The step rate for the interpolated 2 to 256 microsteps is determined by measuring the time interval of
the previous step period and dividing it into up to 256 equal parts. The maximum time between two
microsteps corresponds to 2
20
(roughly one million system clock cycles), for an even distribution of
256 microsteps. At 16 MHz system clock frequency, this results in a minimum step input frequency of
16 Hz for microPlyer operation. 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 (system clock frequency)/2
16
~ 256 Hz.
When a stand still is detected, the driver automatically switches the motor to holding current IHOLD.
Attention
microPlyer only works perfectly 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 16.2 microPlyer microstep interpolation with rising STEP frequency (Example: 16 to 256)
In Figure 16.2, the first STEP cycle is long enough to set the standstill bit stst. This bit is cleared on
the next STEP active edge. Then, the external STEP frequency increases. After one cycle at the higher
rate microPlyer adapts the interpolated microstep rate to the higher frequency. During the last cycle at
the slower rate, microPlyer did not generate all 16 microsteps, so there is a small jump in motor
angle between the first and second cycles at the higher rate.