Datasheet

TMC5160 DATASHEET (Rev. 1.01 / 2017-NOV-29) 116
www.trinamic.com
24 Standalone Operation
For standalone operation, no SPI interface is required to configure the TMC5160. All pins with suffix
CFG0 to CFG6 have a special meaning in this mode and can bei tied either to VCC_IO or to GND.
47R
47R
LS
VCC_IO
TMC5160
Step&Dir input
with microPlyer
STEP
DIR
5V Voltage
regulator
charge pump
22n
100V
100n
16V
CLK_IN
+V
M
5VOUT
VSA
2.2µ
+V
IO
DRV_ENN
GNDD
GNDA
TST_MODE
DIE PAD
VCC
opt. ext. clock
12-16MHz
3.3V or 5V
I/O voltage
100n
100n
Controller
LS
stepper
motor
N
S
BMA2
Chopper
100n
SRAH
C
E
Optional use lower
voltage down to 12V
2R2
470n
Use low inductivity SMD
type, e.g. 1210 or 2512
resistor for R
S
!
SD_MODE
SPI_MODE
opt. driver enable
B.Dwersteg, ©
TRINAMIC 2014
R
S
SRAL
LA1
LA2
HA1
HA2
BMA1
HS
HS
CA1
C
B
CA2
C
B
+V
M
LS
LS
BMB2
SRBH
R
S
SRBL
LB1
LB2
HB1
HB2
BMB1
HS
HS
CB1
C
B
CB2
C
B
+V
M
Standalone mode
CPI
CPO
VCP
VS
11.5V Voltage
regulator
12VOUT
2.2µ
mode selection
Bootstrap capacitors C
B
:
220nF for MOSFETs with Q
G
<20nC, 470nF for larger Q
G
470n
470n
Keep inductivity of the fat
interconnections as small
as possible to avoid
undershoot of BM <-5V!
R
G
R
G
R
G
R
G
R
G
R
G
R
G
R
G
Slope control resistors R
G
: Adapt to MOSFET to yield slopes of roughly
100ns. Slope must be slower than bulk diode recovery time.
47R
47R
pd
+V
IO
Status out
(open drain)
Configuration
interface
(GND or VCC_IO
level)
CFG0
CFG1
CFG3
CFG2
DIAG0
DIAG1
Microstep Resolution
8 / 16 / 32 / 64
Index pulse
Driver error
CFG4
CFG5
CFG6
B.Dwersteg, ©
TRINAMIC 2014
Run Current Setting
16 / 18 / 20 / 22 /
24 / 26 / 28 / 31
spreadCycle (GND) /
stealthChop (VCC_IO)
Current Reduction
Enable (VCC_IO)
Figure 24.1 Standalone operation with TMC5160 (pins shown with their standalone mode names)
To activate standalone mode, tie pin SPI_MODE to GND and pin SD_MODE high. In this mode, the
driver acts as a pure STEP and DIR driver. SPI and single wire are off. The driver works in spreadCycle
mode or stealthChop mode. With regard to the register set, the following settings are activated:
GCONF settings:
GCONF.diag0_error = 1: DIAG0 works in open drain mode and signals driver error.
GCONF.diag1_index = 1: DIAG1 works in open drain mode and signals microstep table index position.
The following settings are affected by the CFG pins in order to ensure correct configuration:
CFG0/CFG1: CONFIGURATION OF MICROSTEP RESOLUTION FOR STEP INPUT
CFG1
CFG0
Microstep Setting
GND
GND
8 microsteps, MRES=5
GND
VCC_IO
16 microsteps, MRES=4
VCC_IO
GND
32 microsteps, MRES=3
VCC_IO
VCC_IO
64 microsteps, MRES=2