TMC8462 Datasheet • Document Revision V1.4 • 2018-May -09
160 / 204
7.12 MFC IO SPI Master Block
The SPI Master Unit provides an interface for up to four SPI slaves with a theoretically unlimited datagram
length using multiple accesses.
Figure 35: Block structure of SPI Master Unit
The basic configuration requires setting the SPI frequency/bit length, the datagram length and the SPI
mode (clock polarity and phase). Extended settings are a special start-of-transmission trigger linked to the
PWM unit, the bit order, selection of one of the four SPI slaves and datagram length extension.
SPI_RX_DATA – Received Data This register contains the received datagram after an SPI transfer.
For SPI transfers with less than 64 bit, the upper bits of this register are unused.
SPI_TX_DATA – Data to transmit The data to be sent is written to this register. Unless configured differ-
ently in SPI_CONF Bits 10..8, writing to this register starts the SPI transfer.
For SPI transfers with less than 64 bit, the upper bits of this register are unused.
SPI_CONF – SPI block configuration
• Bit 15 is the trigger bit that can be selected as transmission start trigger (see below).
•
Bits 10..8 allow a configuration when the data transmission should start, they are interpreted as a 3
bit number:
–
In the reset configuration 0, the transmission always starts when data is written to the SPI_TX
register.
–
The settings 1 to 5 link the start of the transmission to the PWM unit, allowing synchronization
between the PWM cycle and for example a SPI ADC for current measurement. The trigger
sources are the five PWM_PULSE signals that are also available on the MFCIO crossbar. Please
refer to Section 7.15 for details about these pulses.
–
Setting 7 is a single shot trigger that starts only one transmission when Bit 15 of SPI_CONF is
written to 1.
•
Bit 6 and 5 define the clock polarity and phase of the SPI signals which define what the idle state of
the SCK signal is and when output data is changed and when input data is sampled.
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com