Datasheet

TMC4361A Datasheet | Document Revision 1.22 2017-JAN-12
130/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 Directiveson page 224.
MAIN MANUAL
13. Controlled PWM Output
TMC4361A offers controlled PWM (Pulse Width Modulation) signals at STPOUT and DIROUT
output pins. These PWM signals can be scaled, depending on the internal velocity. If a
TMC23x/24x stepper motor driver is connected and configured properly, the PWM signals are
redirected to two SPI output interface pins. This avoids rerouting of signal lines at board level
if SPI mode is switched to PWM mode, or vice versa.
In this chapter information is provided on the basic setup of the PWM output configuration; and
also on TMC23x/24x control PWM input support.
Dedicated PWM Output Pins
Pin Names
Type
Remarks
STPOUT_PWMA
Output
PWM output for coil A.
DIROUT_PWMB
Output
PWM output for coil B.
Connected and selected TMC23x/24x stepper motor drivers only:
SDODRV
Output
PWM output for coil A.
NSCSDRV
Output
PWM output for coil B.
Table 51: Dedicated PWM Output Pins
Dedicated PWM Output Registers
Register Name
Register Address
Remarks
GENERAL_CONF
0x00
RW
Bit 21:
pwm_out_en.
CURRENT_CONF
0x05
RW
pwm_scale_en
=
CURRENT_CONF
(8): PWM scale
enable switch
PWM_AMPL
=
CURRENT_CONF
(31:16): PWM amplitude
at
VACTUAL
= 0.
PWM_VMAX
0x17
RW
Second assignment to
VDRV_SCALE_LIMIT
: velocity at
which the PWM scale parameter reaches 1 (maximum).
PWM_FREQ
0x1F
RW
Number of clock cycles that forms one PWM period.
Table 52: Dedicated PWM Output Registers