![Trinamic TMCM-3314 Firmware Manual Download Page 19](http://html1.mh-extra.com/html/trinamic/tmcm-3314/tmcm-3314_firmware-manual_1163074019.webp)
TMCM-3314 TMCL
™
Firmware Manual • Firmware Version V1.11 | Document Revision V1.10 • 2019-JAN-25
19 / 144
order to have symbolic constants for the interrupt numbers. Table
show all interrupts that are available
on the TMCM-3314.
Interrupt Vectors
Interrupt number
Interrupt type
0
Timer 0
1
Timer 1
2
Timer 2
3
Target position reached 0
4
Target position reached 1
5
Target position reached 2
15
StallGuard axis 0
16
StallGuard axis 1
17
StallGuard axis 2
21
Deviation axis 0
22
Deviation axis 1
23
Deviation axis 2
27
Left stop switch 0
28
Right stop switch 0
29
Left stop switch 1
30
Right stop switch 1
31
Left stop switch 2
32
Right stop switch 2
39
Input change 0
40
Input change 1
41
Input change 2
42
Input change 3
255
Global interrupts
Table 12: Interrupt Vectors
3.5.6.2
Interrupt Processing
When an interrupt occurs and this interrupt is enabled and a valid interrupt vector has been defined
for that interrupt, the normal TMCL program flow will be interrupted and the interrupt handling routine
will be called. Before an interrupt handling routine gets called, the context of the normal program (i.e.
accumulator register, X register, flags) will be saved automatically.
There is no interrupt nesting, i.e. all other interrupts are disabled while an interrupt handling routine is
being executed.
On return from an interrupt handling routine (RETI command), the context of the normal program will
automatically be restored and the execution of the normal program will be continued.
©2019 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at