|
TMC4361A Datasheet, PDF (96/229 Pages) TRINAMIC Motion Control GmbH & Co. KG. – SPI Interfaces for SPI motor stepper drivers. | |||
|
◁ |
TMC4361A Datasheet | Document Revision 1.20 ⢠2016-NOV-10
96/229
Setup of SPI
Output Timing
Configuration
Because TMC4361A represents the master of SPI communication to the motor driver
â which is the slave â it is mandatory to set up the timing configuration for the SPI
output. TMC4361A provides an SPI clock, which is generated at the SCKDRV_NSDO
output pin.
In order to configure the timing of the SPI clock, set up SPIOUT_CONF
register 0x04 as follows:
Action:
ï Set the number of internal clock cycles the serial clock should stay low at
SPI_OUT_LOW_TIME = SPIOUT_CONF (23:20).
ï Set the number of internal clock cycles the serial clock should stay high at
SPI_OUT_HIGH_TIME = SPIOUT_CONF (27:24).
ï Also, an SPI_OUT_BLOCK_TIME = SPIOUT_CONF(31:28) can be set for a
minimum time period during which no new datagram is sent after the last SPI
output datagram.
Result:
SPI output communication scheme is set. During the inactive phase between to SPI
datagrams - which is at least SPI_OUT_BLOCK_TIME clock cycles long - the
SCKDRV_NSDO and NSCSDRV_SDO pins remain at high output voltage level. The
timing of the SPI output communication is illustrated in the following figure.
spi_out_block_time / fCLK
spi_out_low_time / fCLK
spi_out_high_time / fCLK
NSCSDRV_SCLK
SCKDRV_NSDO
SDODRV_SCLK
bitCDL-1
bitCDL-2
bit0
SDIDRV_NSCLK
Minimum and
Maximum Time
Period
bit39
bit38
bit0
sample points
Figure 53: SPI Output Datagram Timing
The minimum time period for all three parameters is 2/fCLK. If an SPI output parameter
is set to 0, it is altered to 2 clock cycles internally. A maximum time period of 15/fCLK
can be set for all three parameters.
Thus, SPI clock frequency fSPI_CLK covers the following range:
fCLK / 30 ⤠fSPI_CLK ⤠fCLK / 2.
© 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 223.
ï MAIN MANUAL ï
|
▷ |