TMC424-PI24 Trinamic Microchips, TMC424-PI24 Datasheet - Page 21

no-image

TMC424-PI24

Manufacturer Part Number
TMC424-PI24
Description
Economic Miniature Three Axis Microstepping Stepper Motor Controller
Manufacturer
Trinamic Microchips
Datasheet
TMC428 DATASHEET (V. 2.00 / November 12, 2003)
resolution microstepping, overshooting of one microstep is negligible in most applications. To avoid
overshooting, use pmul-1 instead of the selected pmul or select a pair (pmul, pdiv) with q = 0.95. The
first given source code example ‘pmulpdiv.c’ showing programming in C language based on this brute
force approach. Some conversions of the base present equations help to reduce the calculation effort
drastically.
8.11.1 Optimized Calculation of p_mul and p_div
With the equations above, one can simplify the calculation of the parameters pmul and pdiv using the
expression
with
To avoid overshooting, use
with p_reduction approximately 5% instead of unreduced p. With this, one gets
With this, pmul becomes a function of the parameter pdiv. To find a valid pair {pmul, pdiv} one just
has to choose that pair {pmul, pdiv} out of 14 pairs for pdiv = {0, 1, 2, 3, ..., 13} with pmul within the
valid range 0
found on page 51. This source code can directly be copied from the PDF datasheet file.
8.12 lp & ref_conf & ramp_mode (rm) (IDX=%1010)
The bit called lp (latched position) is a read only status bit. The configuration words ref_conf and
ramp_mode are accessed via a common address, because these parameters normally are initialized
only once. The configuration bits ref_conf select the behavior of the reference switches, while the two
bits ramp_mode (rm) select one of the four possible stepping modes.
Table 8-3 - Outline of TMC428 motion modes
The mode called RAMP_MODE is provided as the default mode for positioning tasks, while the
VELOCITY_MODE is for applications, where stepper motors have to be driven precisely with constant
velocity. The SOFT_MODE is similar to the standard RAMP_MODE except that the target position is
approached exponentially reduced velocity. This feature can be useful for applications where vibrations
at the target position have to be minimized. The HOLD_MODE is provided for motion control
applications, where the ramp generation is completely controlled by the microcontroller.
The TMC428 has three reference switch inputs REF1, REF2, REF3. Without additional hardware,
three reference switches are available. These switches can be used as reference switches and can be
Copyright © 2000–2003 TRINAMIC Microchips GmbH
ramp_mode
pmul = p * 2^3 * 2^pdiv – 128
p = a_max / ( 128 * 2^( pulse_div – ramp_div ) ).
p_reduced = p * ( 1 – p_reduction[%])
pmul = p_reduced * 2^3 * 2^pdiv – 128 = 0.95 * p * 2^3 * 2^pdiv – 128.
%00
%01
%10
%11
VELOCITY_MODE mode for velocity control applications, change of velocities with linear ramps
pmul
RAMP_MODE default mode for positioning applications with trapezoidal ramp
HOLD_MODE velocity is controlled by the microcontroller, motion parameter limits are ignored
SOFT_MODE similar to RAMP_MODE, but with soft target position approaching
mode
127. An example ‘pmulpdiv.c’ showing programming in C language can be
function
21

Related parts for TMC424-PI24