TMCM-1310 TMCL Firmware V1.11 Manual (Rev. 1.16 / 2014-MAR-19)
101
www.trinamic.com
11.3
Bank 2
Bank 2 contains general purpose 32 bit variables for the use in TMCL applications. They are located in RAM
and can be stored to EEPROM. After booting, their values are automatically restored to the RAM.
Up to 56 user variables are available.
M
EANING OF THE LETTERS IN COLUMN
A
CCESS
:
Access
type
Related
command(s)
Description
R
GGP
Parameter readable
W
SGP, AGP
Parameter writable
E
STGP, RSGP
Parameter stored permanently in EEPROM
Number Global parameter
Description
Range
Access
0… 55
general purpose variable #0… #55
for use in TMCL applications
-2
31
… +2
31
RWE
56… 255
general purpose variables #56… #255 for use in TMCL applications
-2
31
… +2
31
RW
11.4
Bank 3
Bank 3 contains interrupt parameters. Some interrupts need configuration (e.g. the timer interval of a timer
interrupt). This can be done using the SGP commands with parameter bank 3 (SGP <type>, 3, <value>).
The priority of an interrupt depends on its number. Interrupts with a lower number have a higher priority.
The following table shows all interrupt parameters that can be set.
M
EANING OF THE LETTERS IN COLUMN
A
CCESS
:
Access
type
Related
command(s)
Description
R
GGP
Parameter readable
W
SGP, AGP
Parameter writable
E
STGP, RSGP
Parameter stored permanently in EEPROM
Number Global parameter
Description
Range
Access
0
Timer 0 period (ms)
Time between two interrupts (ms)
32 bit unsigned [ms]
RW
1
Timer 1 period (ms) Time between two interrupts (ms)
32 bit unsigned [ms]
RW
2
Timer 2 period (ms) Time between two interrupts (ms)
32 bit unsigned [ms]
RW
27
Stop left 0 trigger
transition
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
28
Stop right 0 trigger
transition
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
39
Input 0 edge type
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
40
Input 1 edge type
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
41
Input 2 edge type
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
42
Input 3 edge type
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
43
Input 4 edge type
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
44
Input 5 edge type
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
45
Input 6 edge type
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW
46
Input 7 edge type
0=off, 1=low-high, 2=high-low, 3=both 0… 3
RW