Datasheet

TMC5041 DATASHEET (Rev. 1.13 / 2017-MAY-16) 57
www.trinamic.com
Note
Since it is not necessary to differentiate the velocity to the last detail, the velocity thresholds use a
reduced number of bits for comparison and the lower eight bits of the compare values become
ignored.
10.5 Reference Switches
Prior to normal operation of the drive an absolute reference position must be set. The reference
position can be found using a mechanical stop which can be detected by stall detection, or by a
reference switch.
In case of a linear drive, the mechanical motion range must not be left. This can be ensured also for
abnormal situations by enabling the stop switch functions for the left and the right reference switch.
Therefore, the ramp generator responds to a number of stop events as configured in the SW_MODE
register. There are two ways to stop the motor:
- it can be stopped abruptly, when a switch is hit. This is useful in an emergency case and for
stallGuard based homing.
- Or the motor can be softly decelerated to zero using deceleration settings (DMAX, V1, D1).
Hint
Latching of the ramp position XACTUAL to the holding register XLATCH upon a switch event gives a
precise snapshot of the position of the reference switch.
+VCC_IO
REFL
Traveler
Motor
+VCC_IO
REFR
Negative
direction
Positive
direction
10k10k
22k
1nF
Optional RC filter
(example)
Figure 10.4 Using reference switches (example)
Normally open or normally closed switches can be used by programming the switch polarity or
selecting the pull-up or pull-down resistor configuration. A normally closed switch is failsafe with
respect to an interrupt of the switch connection. Switches which can be used are:
- mechanical switches,
- photo interrupters, or
- hall sensors.
Be careful to select reference switch resistors matching your switch requirements!
In case of long cables additional RC filtering might be required near the TMC5041 reference inputs.
Adding an RC filter will also reduce the danger of destroying the logic level inputs by wiring faults,
but it will add a certain delay which should be considered with respect to the application.