TMC4330A Datasheet | Document Revision 1.01 • 2017-JAN-12
15/166
Data Alignment
All data is right-aligned. Some registers represent unsigned (positive) values; others
represent integer values (signed) as two’s complement numbers.
Some registers consist of switches that are represented as bits or bit vectors.
SPI Transaction
Process
The SPI transaction process is as follows:
The slave is enabled for SPI transaction by a transition to low level on the chip
select input NSCSIN.
Bit transfer is synchronous to the bus clock SCKIN, with the slave latching the
data from SDIIN on the rising edge of SCKIN and driving data to SDOIN
following the falling edge.
The most significant bit is sent first.
i
A minimum of 40 SCKIN clock cycles is required for a bus transaction with
TMC4330A.
Take the following aspects into consideration:
AREAS OF
SPECIAL
CONCERN
!
Whenever data is read from or written to the TMC4330A, the first eight
bits that are delivered back contain the SPI status SPI_STATUS that consists of
eight user-selected event bits. The selection of these bits are explained in
chapter 5.2. (Page 22).
System
Behavior
If less than 40 clock cycles are transmitted, the transfer is not valid; even
for read access. However, sending only eight clock cycles can be useful to
obtain the SPI status because it sends the status information back first.
If more than 40 clocks cycles are transmitted, the additional bits shifted
into SDIIN are shifted out on SDOIN after a 40-clock delay through an internal
shift register. This can be used for daisy chaining multiple chips.
NSCSIN must be low during the whole bus transaction. When NSCSIN
goes high, the contents of the internal shift register are latched into the internal
control register and recognized as a command from the master to the slave. If
more than 40 bits are sent, only the last 40 bits received - before the rising
edge of NSCSIN - are recognized as the command.
Specifics
NSCSIN
SCKIN
SDIIN
tCC
tCL
tCH
tCC
tCH
tDU
tDH
bit39
bit38
bit0
bit0
tDO
tZC
bit39
bit38
SDOIN
Figure 13: SPI Timing Datagram
© 2015 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany — Terms of delivery and rights
to technical change reserved. Download newest version at: www.trinamic.com .
Read entire documentation; especially the “Supplemental Directives” on page 160.
MAIN MANUAL