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 9<br />

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

2.5 Communication Outline of tmc428demo and Sample428_236<br />

The tmc428demo.exe is a win32 console application. Its communication takes place over a RS232<br />

interface byte by byte. The windows based RS232 communication is used to perform a 32 bit wide SPI<br />

communication with the <strong>TMC428</strong> on a evaluation kit.<br />

For an embedded application running stand alone on a µC, the user just has to write an SPI routine for<br />

the µC used for communication between µC an <strong>TMC428</strong>. For the code example Sample428_236, the<br />

SPI routine spi428_uc() for communication with the <strong>TMC428</strong> is named Send428(). This has to be<br />

completed for a given type of micro controller.<br />

The communication is outlined by Figure 5 on page 9.<br />

Windows-PC / µC Eval Board Configuration<br />

Windows-PC<br />

<strong>TMC428</strong>DEMO<br />

main()<br />

tmc428spi()<br />

spi4win()<br />

rs232win32()<br />

RS232<br />

µC + <strong>TMC428</strong><br />

(e.g. evaluation board)<br />

RS232<br />

rs232uc()<br />

spi428_uc()*<br />

<strong>TMC428</strong><br />

*spi428_uc() to be implemented by user<br />

(either software SPI or hardware SPI)<br />

Figure 5 : Communication Outline for tmc428demo<br />

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

Stand-Alone µC-<strong>TMC428</strong><br />

Configuration<br />

Embedded System<br />

( µC + <strong>TMC428</strong> )<br />

<strong>TMC428</strong>DEMO<br />

main()<br />

tmc428spi()<br />

spi428_uc()*<br />

<strong>TMC428</strong>

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

Saved successfully!

Ooh no, something went wrong!