TMC424 Datasheet (V1.04 / 2015-JUL-01) 10/21
Copyright © 2011 TRINAMIC Motion Control GmbH & Co. KG
3.2 Application Examples
3.2.1 Application with TMC6x Stepper Motor Driver
This example illustrates the encoder connection and the use of reference switches with the TMC424
and additionally the SPI interface connections between TMC424, TMC429 and a microcontroller. The
communication to the drivers (e.g. TMC260) is performed via SPI by the TMC429 motion control chip.
On some package variants of the TMC429, the REFR pins are available. Those should be preferred to
the STOPR/STOPL inputs of the TMC424's multiplexer.
TMC429
CLK
REF1
REF2
REF3
SDI_C
SCK_C
SDO_C
nSCS_C
V5
V33
Test
GND
SDI_S
SCK_S
SDO_S
nSCS_S
Notes:
1. If the NSCS429 pin is not in use it has to be tied to +3.3V
2. NSCS_D activates the reference switches (inputs
STOPRx/STOPLx and outputs REFx).
TMC424
CLK
RESET
ENC1_A
ENC1_B
ENC1_N
ENC2_A
ENC2_B
ENC2_N
ENC3_A
ENC3_B
ENC3_N
REF1
REF2
REF3
SDI
SCK
SDO
NSCS
SDO429
NSCS429
VCC
VCORE
SDI_D
SCK_D
NSCS_D
STOPR0 - STOPR2
STOPL0 - STOPL2
TRST
TMS
GND
TCK
TDI
GND
+1.5V
+3.3V
16MHz
+3.3V
10k each
Connect to encoders
16MHz
µC
SS424
SS429
MISO
SCK
MOSI
+3.3V
GND
SPI
to
Drivers
470nF
+3.3V
10k
6x Reference Switch
Inputs (active high)
from nSCS_S
of TMC429
to nSCS_D
of TMC424
Figure 4: Example for Application with TMC26x Stepper Motor Driver
3.2.2 Application with Step/Direction Power Stage
Additionally to the previous example the use of the TMC424 as step/direction converter is shown. This
can be used with the TMC429 as a drop-in replacement for the TMC428. The reference switches can
also be used as above.
TMC429
SCK_C
SDI_C
SDO_C
nSCS_C
SDO_S
SCK_S
SDI_S
nSCS_S
CLK
V5
V33
Test
GND
Note:
If the NSCS429 pin is not in use, it has to be tied to +3.3V
GND
+1.5V
+3.3V
+3.3V
10k
16MHz
+3.3V
10k each
Connect to encoders
16MHz
+3.3V
GND
GND
TMC424
CLK
RESET
ENC1_A
ENC1_B
ENC1_N
ENC2_A
ENC2_B
ENC2_N
ENC3_A
ENC3_B
ENC3_N
NSCS
SDO
SCK
SDI
SDO429
NSCS429
SDI_D
SCK_D
SDO_D
NSCS_D
STEP1
DIR1
STEP2
DIR2
STEP3
DIR3
VCC
VCORE
SDI_D
SCK_D
TRST
TMS
STOPR0 - STOPR2
STOPL0 - STOPL2
GND
TCK
TDI
µC
SS424
MISO
SS429
SCK
MOSI
Step/DIR
to
Drivers
470nF
Figure 5: Example for Application with Step/Direction
TMC424 Datasheet (V1.04 / 2015-JUL-01) 11/21
Copyright © 2011 TRINAMIC Motion Control GmbH & Co. KG
4 Dynamic Resolution Adaptation
The dynamic resolution adaptation is needed to link stepper motors and encoders with different
resolutions. The characteristics of the connected hardware must be provided to the TMC424 by sending
the corresponding SPI telegram. (See 5.3.1 Overview on page 13 in this issue). The TMC424 multiplies
the encoder counter by a user selectable value in the range 1..1024, and then divides it by 16. When
using incremental encoders with N channel it is also possible to select between different behaviors
when the N channel is triggered.
Stepper
motor
TMC424
SPI Interface
Stepper Motor:
Resolution: e.g.: 12800 steps / rotation
Encoder:
Resolution: e.g.: 1000 steps / rotation
TMC424:
Prescaler = 3.2 -> 1000* 4 * 3.2 = 12800
Figure 6: TMC424 Application
Table 4 shows a number of prescaler factors for possible combinations of micro step resolution and
encoder resolution. Note: The given number of pulses have to be multiplied by four since 4-times
encoder signal evaluation is used. (See
Channel A
Channel B
Evaluation
Step
Channel N
Figure 10: Encoder Output and Evaluation on page 14).
Microsteps
Encoder Resolution [Pulses / Rotation]
1024
1000
512
500
256
250
200
125
50
25
12800
3.125
3.2
6.25
6.4
12.5
12.8
16
25.6
64
----
6400
1.5625
1.6
3.125
3.2
6.25
6.4
8
12.8
32
64
3200
----
----
1.5625
1.6
3.125
3.2
4
6.4
16
32
1600
----
----
----
----
1.5625
1.6
2
3.2
8
16
800
----
----
----
----
----
----
1
1.6
4
8
400
----
----
----
----
----
----
----
----
2
4
Table 4: Prescaler factors for different motors and encoders
TMC424 Datasheet (V1.04 / 2015-JUL-01) 12/21
Copyright © 2011 TRINAMIC Motion Control GmbH & Co. KG
5 Serial Peripheral Interface (SPI) with 32-bit Register
5.1 Description and Specification
Four pins named nSCS, SCK, SDI and SDO form the serial peripheral interface from a microcontroller to
the TMC424. The communication between the microcontroller and the TMC424 takes place via
datagrams with a fixed length of 32 bit. The microcontroller always acts as master and the TMC424 as
slave.
The SPI
TM
of the TMC424 behaves like a simple 32-bit shift register. Incoming serial data at pin SDI is
shifted with the rising edge of the clock signal SCK into the 32-bit register. The content of this register
is copied after 32-bits with the rising edge of the selection signal nSCS into a buffer register of 32-bit
length. The SPI
TM
of the TMC424 sends back data read from registers immediately via the SDO signal. It
processes serial data synchronously to the clock signal CLK.
Because of on-the-fly processing of the input data stream, the serial microcontroller interface of the
TMC424 requires the serial data clock signal SCK to have a minimum low / high time of three clock
cycles. The data signal SDI driven by the microcontroller has to be valid at the rising edge of the serial
data clock input SCK. The maximum duration of the serial data clock period is unlimited.
A complete serial datagram frame has a fixed length of 32 bit. While the data transmission from the
microcontroller to the TMC424 is idle, the low active serial chip select input nSCS and also the serial
data clock signal SCK are set to high. The serial data input SDI of the TMC429 has to be driven by the
microcontroller. Like other SPI compatible devices, the SDO signal of the TMC424 is high impedance ‘Z’
as long as nSCS is high.
The signal nSCS has to be high for at least three clock cycles before starting a datagram transmission.
To initiate a transmission, the signal nSCS has to be set to low. Three clock cycles later the serial data
clock may go low. The most significant bit (MSB) of a 32 bit wide datagram comes first and the least
significant bit (LSB) is transmitted as the last one. A data transmission is finished by setting nSCS high
for three or more CLK cycles after the last rising SCK slope. nSCS and SCK change in opposite order
from low to high at the end of a transmission as these signals change from high to low at the
beginning. The timing of the serial microcontroller interface is outlined here:
tSD
tSD
CLK
sdi_bit#31
tSCKCL tSCKCHtSUCSC tHDCSC
1 x SDI_C sampled
one full 32 bit datagram
SDO
SDI
SCK
nSCS
sdi_bit#30 . . . sdi_bit#1
30 x sampled SDI_C
sdi_bit#0
1 x SDI_C sampled
tCLK
tDATAGRAMuC
sdo_bit#31
sdo_bit#30 ... sdo_bit#1
sdo_bit#0
tPD
tIS
tSD
tSI
tHDCSC tSUCSC
Figure 7: Timing diagram of the Serial Interface

TMC424

Mfr. #:
Manufacturer:
Description:
IC ENCODER SPI 100TQFP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet