Datasheet
TMC4361A Datasheet | Document Revision 1.22 • 2017-JAN-12
133/230
© 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 224.
MAIN MANUAL
PWM Output Generation for TMC23x/24x
PWM output signals can be used for TMC23x/24x stepper motor drivers Voltage PWM
mode. TMC4361A forwards the internal PWM output signals at the corresponding SPI
output interface pins because the drivers share input and output pins for the SPI mode
and the Voltage PWM mode. This feature enables variable operation of the
TMC23x/24x in the one or the other mode without rerouting the particular signal lines
at board level.
In order to generate a PWM output for TMC23x/24x stepper motor drivers,
do as follows:
Action:
Set
PWM_FREQ
register 0x1F to the number of clock cycles for one PWM cycle.
Set
spi_output_format
= b’1000 (TMC23x) or
spi_output_format
= b’1001 (TMC24x).
Set
pwm_out_en
= 1 (
GENERAL_CONF
register 0x00).
Set
SPI_SWITCH_VEL
register 0x1D to 0.
Result:
SPI output interface is disabled, controlled PWM output for TMC23x/24x is
enabled.
SDODRV_SCLK output pin forwards PWM PHA signal.
NSCSDRV_SDO output pin forwards PWM PHB signal.
MP2 is set to low voltage level that disables TMC23x/24x SPI mode.
SDODRV_SCLK analyses the error flags that are forward via SDO output pin of
TMC23x/24x. These error flags indicate overcurrent on any bridge or the
overtemperature flag. Therefore, these three status bits of TMC4361A are
altered according to the ERR flag.
SCKDRV_NSDO is set to high voltage level to set MDBN of TMC23x/24x to high
voltage level.
NOTE:
Only the five pins mentioned above are set accordingly by TMC4361A.
Please be aware that all other pins of TMC23x/24x must be set according to your
requirements, especially ANN/MDAN = high voltage level, and INA resp. INB
according to the current limit.
i For correct hardware setup information refer to TMC23x/24x manuals.
Figure 58: TMC4361A connected with TMC23x/24x operating in SPI Mode or PWM Mode
Controlled PWM
Signals for
TMC23x/24x
TMC4361A with
TMC23x/24x
Stepper Driver
TMC4361
µC
SCK
MOSI
MISO
SS
SCKIN
SDOIN
CLK
CLK_EX
T
NSCSI
N
SDIIN
SDO/
ERR
CSN/
PHB
SDI/
PHA
SCK/
MDBN
TMC23x
/24x
M
NSCSDRV_SDO
SDODRV_SCLK
SCKDRV_NSDO
SDIDRV_NSCLK
STDBY_CLK
Output for chopSync
OSC
15K
680pF
SPE
MP2
ANN/
MDAN
VCCIO