User Manual

TMCM-3351 TMCL
Firmware Manual Firmware Version V1.11 | Document Revision V1.06 2019-APR-26
37 / 144
Digital Outputs in Bank 2
Port Command Range
OUT0 SIO 0, 2, <value> 0/1
OUT1 SIO 1, 2, <value> 0/1
OUT2 SIO 2, 2, <value> 0/1
OUT3 SIO 3, 2, <value> 0/1
OUT4 SIO 4, 2, <value> 0/1
OUT5 SIO 5, 2, <value> 0/1
OUT6 SIO 6, 2, <value> 0/1
OUT7 SIO 7, 2, <value> 0/1
Special case: SIO 255, 2, <x> can be used to change all general purpose digital output lines simulaneously.
The value <x> will then be interpreted as a bit vector where each of the lower eight bits represents one of
the digital outputs. So the range for <x> is 0. . . 255. The value <x> can also be -1. In this case, the value will
be taken from the accumulator register. The following program can be used to copy the states of the input
lines to the output lines:
1
Loop:
GIO 255, 0
3
SIO 255, 2, -1
JA Loop
ADC Range Selection
Using the following sepcial cases of the SIO command the voltage ranges of the analog inputs ANA0. . . ANA3
can be selected:
ADC Range Selection
Command Range
SIO 8, 0, 0 0. . . +3.3V
SIO 8, 0, 1 0. . . +10V
©2019 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com