02.06.2013 Views

TMC428 – Application Note - Trinamic

TMC428 – Application Note - Trinamic

TMC428 – Application Note - Trinamic

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

2. Initialization of the <strong>TMC428</strong><br />

On first sight, the sample C code included within the ZIP archive 'tmc428demo.zip' might give the<br />

impression that the initialization of the <strong>TMC428</strong> is a complicated task due to a couple of different<br />

routines used. The intent of this sample C code and its different routines is to demonstrate how to<br />

access the registers of the <strong>TMC428</strong>. All together, these routines just perform a sequence of SPI<br />

datagrams that perform the initialization of the <strong>TMC428</strong>. So, for those who are familiar with the<br />

<strong>TMC428</strong> and its SPI datagrams, the program structure might become more compact and the<br />

initialization code might look like<br />

for (i=0; i

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

Saved successfully!

Ooh no, something went wrong!