Datasheet

TMC4361A Datasheet | Document Revision 1.22 2017-JAN-12
147/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
It can be useful to specify A and B channel signal polarities for N event. Per default,
the polarities of both signal lines are set to 0 (low active).
In order to set up A channel polarity to high active for N event, do as
follows:
Action:
Set
pol_a_for_n
= 1 (
ENC_CONF
register 0x07).
Result:
Now, A channel signal polarity for N event is high active.
In order to set up B channel polarity to high active for N event, do as
follows:
Action:
Set
pol_b_for_n
= 1 (
ENC_CONF
register 0x07).
Result:
Now, B channel signal polarity for N event is high active.
In case A and B channel polarities do not have an influence on N event, both A and B
channel polarity signals can be ignored.
In order to ignore A and B channel polarities, do as follows:
Action:
Set
ignore_ab
= 1 (
ENC_CONF
register 0x07).
Result:
Now, the A and B channel signal polarities have no influence on N event.
N event can be used to clear the external position register
ENC_POS
0x50. Two choices
are available: continous clearing and single clearing.
i Common practice is to clear to 0. However, TMC4361A offers the possibility to
clear to any single microstep count.
In order to set
ENC_POS
on N event to continuous clearing, do as follows:
Action:
Set
ENC_RESET_VAL
register 0x51 to the requested microstep position.
Set
clr_latch_cont_on_n
= 1 (
ENC_CONF
register 0x07).
Set
clear_on_n
= 1 (
ENC_CONF
register 0x07).
Result:
On every N event
ENC_POS
is set to
ENC_RESET_VAL
.
In order to only clear
ENC_POS
for the next N event, do as follows:
Action:
Set
ENC_RESET_VAL
register 0x51 to the requested microstep position.
Set
clr_latch_cont_on_n
= 0 (
ENC_CONF
register 0x07).
Set
clr_latch_once_on_n
= 1 (
ENC_CONF
register 0x07).
Set
clear_on_n
= 1 (
ENC_CONF
register 0x07).
Result:
When the next N event occurs,
ENC_POS
is set to
ENC_RESET_VAL
. After the
particular N event,
clr_latch_once_on_n
is automatically reset to 0.
A and B Channel
Signal Polarities
for N Event
External Position
Counter
ENC_POS
Clearing
ENC_POS
Continous
Clearing
ENC_POS Single
Clearing