TMC4330A Datasheet | Document Revision 1.01 • 2017-JAN-12
57/166
Target Reached / Position Comparison
In this section, TARGET_REACHED output pin configuration options are explained, as well as
different ways how to compare different values internally.
Target Reached
Output Pin
TARGET_REACHED output pin forwards the TARGET_REACHED_Flag. As soon as
XACTUAL equals XTARGET, TARGET_REACHED is active. Per default, the
TARGET_REACHED pin is high active.
To change the TARGET_REACHED output polarity, do the following:
Action:
Set invert_pol_target_reached = 1 (bit16 of the GENERAL_CONF register 0x00).
Result:
TARGET_REACHED pin is low active.
TARGET_REACHED pins can also be configured for a shared signal line in the same
way as several INTR pins can configured for one interrupt signal transfer (see
section 5.4. (page 23).
Connecting
several
Target-reached
Pins
To use a Wired-Or or Wired-And behavior, the below described order of
action must be executed:
Action:
Step 1: Set intr_tr_pu_pd_en = 1 (GENERAL_CONF register 0x00).
OPTION 1: WIRED-OR
Action:
Step 2: Set tr_as_wired_and = 0 (GENERAL_CONF register 0x00).
Result:
The TARGET_REACHED pin works efficiently as Wired-Or (default configuration).
i
In case TARGET_REACHED pin is inactive, the pin drive has a weak inactive
polarity output. During active state, the output is driven strongly. Consequently,
if one of the connected pins is activated, the whole line is set to active polarity.
OPTION 2: WIRED-AND
Action:
Step 2: Set tr_as_wired_and = 1 (GENERAL_CONF register 0x00).
Result:
As long as the target position is not reached, the TARGET_REACHED pin has a strong
inactive polarity output. During active state, the pin drive has a weak active polarity
output. Consequently, the whole signal line is activated if all connected pins are
forwarding the active polarity.
© 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