Datasheet

TMC4361A Datasheet | Document Revision 1.22 2017-JAN-12
25/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
Status Event Description
Status events are based on status bits. If the status bits change, related events are triggered
from inactive to active level. Resetting events back to inactive must be carried out manually.
Status bits and status events are associated in different ways:
Status flags reflect the as-is-condition, whereas status events indicate that the
dedicated information has changed since the last read request of the
EVENTS
register. Several status events are associated with one status bit.
Some status events show the status transition of one or more status bits out of
a status bit group. The motor driver flags, e.g., trigger only one motor driver
event
MOTOR_EV
in case one of the selected motor driver status flags becomes
active.
In case a flag consists of more than one bit, the number of associated events
that can be triggered corresponds to the valid combinations. The
VEL_STATE
flag, e.g., has two bit but three associated velocity state events (b’00/b’01/b’10).
Such an event is triggered if the associated combination switches from inactive
to active.
NOTE:
Some events have no equivalence in the
STATUS_FLAGS
register 0x0F
(e.g.,
COVER_DONE
which indicates new data from the motor driver chip).
The
EVENTS
register 0x0E is automatically cleared after reading the register;
subsequent to an SPI datagram request. Events are important for interrupt generation
and SPI status monitoring.
NOTE:
It is recommended to clear EVENTS register 0x0E by read request before regular
operation.
Recognition of a status event can fail; in case it is triggered right before or
during
EVENTS
register 0x0E becomes cleared.
In order to prevent events from being cleared, assign
EVENT_CLEAR_CONF
register
0x0C according to the particular event in the EVENTS register:
Action:
Set related
EVENT_CLEAR_CONF
register bit position to 1.
Result:
The related event is not cleared when
EVENTS
register is read out.
In order to clear these events, do the following, if necessary:
Action:
Set related
EVENTS
register 0x0E bit position to 1.
Result:
The related event is cleared by writing to the
EVENTS
register.
Association of
Status Bits
Automatic
Clearance of
EVENTS
AREAS OF
SPECIAL
CONCERN
How to Avoid
Lack of
Information
!