TMC424 Datasheet – (V1.04 / 2015-JUL-01) 15/21
Copyright © 2011 TRINAMIC Motion Control GmbH & Co. KG
7 Configuration Datagrams
7.1 Encoder Interface Prescaler and Null Event Configuration
The Encoder Interface Initialization datagram configures the parameterizeable encoder prescaler to
adapt the TMC424 for different incremental encoders. Furthermore the TMC424 behavior concerning the
N channel can be selected.
Example: A 1000 steps per rotation encoder is to connect at a stepper motor with 12800 microsteps per rotation. When the
next event at the high active N channel is found, the position register must set to zero. Only Encoder Interface 1 is connected.
The following datagram performs this task:
Bits 31 down to 24 have to be set to 01
HEX
to select encoder interface 1
The prescaler value has to set to 12800 / (1000*4) = 3.2. Therefore bits 23 down to 12 must set to 831
HEX
.
The N channel is set up correctly when bits 11 down to 0 are set to A0
HEX
.
Encoder Interface Initialization
Interface Selection
000 = Interface 1
001 = Interface 2
010 = Interface 3
011 = Interface 1, 2 and 3
External Encoder Resolution and Corresponding Prescaler Factor
Bits 15 … 12: Fractional part of Factor. Unit: 1/16 (when bit 23 = 0) resp. 1/5 (bit 23 = 1)
Bits 22 … 16: Integer part of Factor
Bit 23: Switches Fractional part between 1/5 resolution or 1/16 resolution
Default:
(010)
h
(prescaler 1) (default value after power on)
Example settings:
Encoder: 1024 lines (4096 steps per rotation)
(032)
h
for 12800 micro steps per rotation (prescaler 3.125)
(019)
h
for 6400 micro steps (prescaler 1.5625)
Encoder: 1000 lines
(831)
h
for 12800 micro steps (prescaler 3.2)
(813)
h
for 6400 micro steps (prescaler 1.6)
Encoder: 512 lines
(064)
h
for 12800 micro steps (prescaler 6.25)
(032)
h
for 6400 micro steps (prescaler 3.125)
(019)
h
for 3200 micro steps (prescaler 1.5625)
Encoder: 500 lines
(862)
h
for 12800 micro steps (prescaler 6.4)
(831)
h
for 6400 micro steps (prescaler 3.2)
(813)
h
for 3200 micro steps (prescaler 1.6)
Encoder: 256 lines
(0C8)
h
for 12800 micro steps (prescaler 12.5)
(064)
h
for 6400 micro steps (prescaler 6.25)
(032)
h
for 3200 micro steps (prescaler 3.125)
(019)
h
for 1600 micro steps (prescaler 1.5625)
Encoder: 250 lines
(8C4)
h
for 12800 micro steps (prescaler 12.8)
(862)
h
for 6400 micro steps (prescaler 6.4)
(831)
h
for 3200 micro steps (prescaler 3.2)
(813)
h
for 1600 micro steps (prescaler 1.6)
Encoder: 200 lines
(100)
h
for 12800 micro steps (prescaler 16)
(080)
h
for 6400 micro steps (prescaler 8)
(040)
h
for 3200 micro steps (prescaler 4)
(020)
h
for 1600 micro steps (prescaler 2)
(010)
h
for 800 micro steps (prescaler 1)