Datasheet

TMC220X, TMC222X DATASHEET (Rev. 1.02 / 2017-MAY-16) 64
www.trinamic.com
14 Quick Configuration Guide
This guide is meant as a practical tool to come to a first configuration. Do a minimum set of
measurements and decisions for tuning the driver to determine UART settings or OTP parameters. The
flow-charts concentrate on the basic function set to make a motor run smoothly. Once the motor
runs, you may decide to explore additional features, e.g. freewheeling in more detail. A current probe
on one motor coil is a good aid to find the best settings, but it is not a must.
Current Setting
Sense Resistors
used?
GCONF
set internal_Rsense
Store to OTP 0.6
recommended
N
Analog Scaling?
Y
GCONF
set I_scale_analog
(this is default)
Set VREF as desired
Y
CHOPCONF
set vsense for max.
180mV at sense resistor
(0R15: 1.1A peak)
Set I_RUN as desired up
to 31, I_HOLD 70% of
I_RUN or lower
N
Low Current range?
N
Y
GCONF
clear en_spreadCycle
(default)
Set I_HOLD_DELAY to 1
to 15 for smooth
standstill current decay
Set TPOWERDOWN up
to 255 for delayed
standstill current
reduction
Configure Chopper to
test current settings
stealthChop
Configuration
PWMCONF
set pwm_autoscale,
set pwm_autograd
PWMCONF
select PWM_FREQ with
regard to fCLK for 20-
40kHz PWM frequency
Check hardware
setup and motor
RMS current
CHOPCONF
Enable chopper using basic
config., e.g.: TOFF=5, TBL=2,
HSTART=4, HEND=0
Move the motor by
slowly accelerating
from 0 to VMAX
operation velocity
Is performance
good up to VMAX?
Select a velocity
threshold for switching
to spreadCycle chopper
and set TPWMTHRS
N
SC2
Y
Execute
automatic
tuning
procedure AT
Figure 14.1 Current Setting and first steps with stealthChop
Hint
Use the evaluation board to explore settings and to generate the required configuration datagrams.
UART OTP