02.06.2013 Views

TMC428 – Application Note - Trinamic

TMC428 – Application Note - Trinamic

TMC428 – Application Note - Trinamic

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TMC428</strong> <strong>–</strong> <strong>Application</strong> <strong>Note</strong> <strong>–</strong> <strong>TMC428</strong> Getting Started <strong>–</strong> Including StallGuard TM 5<br />

(v. 2.00 / April 14, 2008)<br />

2.2 Stepper Motor Global Parameter Register (JDX=%1111)<br />

The stepper motor global parameter register holds different flags (mot1r, refmux) to configure the<br />

references switches (REF1, REF2, REF3), the SPI interface update behavior (cont_update), speed<br />

(clk2_div), chip select (cs_ComInd), the polarities of different control bits of the SPI datagrams<br />

(DAC_AB, FD_AB, PH_AB) and the polarities of SPI control signals (SCK_S, nSCS_S) , and the<br />

number (LSMD) of stepper motor drivers within the chain. Please refer to the <strong>TMC428</strong> data sheet<br />

concerning functionalities of the flags. Figure 2 outlines an SPI datagram 0x7E010F02 to initialize the<br />

stepper motor global parameter register with LSMD=2 for 3 stepper motor drivers.<br />

3<br />

1<br />

RRS<br />

3<br />

0<br />

2<br />

9<br />

2<br />

8<br />

2<br />

7<br />

ADDRESS<br />

2<br />

6<br />

2<br />

5<br />

0 1 1 1 1 1 1<br />

2<br />

4<br />

RW<br />

2<br />

3<br />

Stepper Motor Global Parameter Register JDX=%1111<br />

2<br />

2<br />

2<br />

1<br />

mot1r<br />

Copyright © 2005-2008 TRINAMIC Motion Control GmbH & Co. KG<br />

2<br />

0<br />

refmux<br />

1<br />

9<br />

1<br />

8<br />

1<br />

7<br />

1<br />

6<br />

cont_update<br />

1<br />

5<br />

1<br />

4<br />

1<br />

3<br />

1<br />

2<br />

1<br />

1<br />

DATA<br />

clk2_div<br />

1<br />

0<br />

9 8 7 6 5 4 3 2 1 0<br />

cs_ComInd<br />

polarities<br />

0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 0<br />

7 E 0 1 0 7 0 2<br />

Figure 2 : Stepper Motor Global Parameter Register Setting Example<br />

DAC_AB<br />

FD_AB<br />

PH_AB<br />

SCK_S<br />

nSCS_S<br />

LSMD

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!