TMC4330A Datasheet | Document Revision 1.01 • 2017-JAN-12
46/166
7. External Step Control and Electronic Gearing
Steps can also be generated by external steps that are manipulated internally by an electronic
gearing process. In the following chapter, steps generation by external control and electronic
gearing is presented.
Pins for External Step Control
Pin Names
Type
Remarks
STPIN
DIRIN
Input
Input
Step input signal.
Direction input signal.
Table 20: Pins used for External Step Control
Registers used for external Step Control
Register Name
Register Address
Remarks
GENERAL_CONF
GEAR_RATIO
0x00
0x12
RW
RW
Bits 9:6, 26.
Electronic gearing factor; signed;
32 bits=8+24 (8-bit digits, 24-bit decimal places).
Table 21: Registers used for External Step Control
Enabling
External Step
Control
In order to synchronize with other motion controllers, TMC4330A offers a step
direction input interface at the STPIN and DIRIN input pins.
i
Three options are available. In case one of these options is selected, the internal
step generator is disabled.
OPTION 1: HIGH ACTIVE EXTERNAL STEPS
Action:
Set sdin_mode = b’01 (GENERAL_CONF register 0x00).
Result:
As soon as the STPIN input signal switches to high state the control unit recognizes
an external step.
OPTION 2: LOW ACTIVE EXTERNAL STEPS
Action:
Set sdin_mode = b’10 (GENERAL_CONF register 0x00).
Result:
As soon as the STPIN input signal switches to low state the control unit recognizes an
external step.
OPTION 3: TOGGLING EXTERNAL STEPS
Action:
Set sdin_mode = b’11 (GENERAL_CONF register 0x00).
Result:
As soon as the STPIN input signal switches to low or high state the control unit
recognizes an external step.
Continued on next page.
© 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