TMCM-1211 TMCL
™
Firmware Manual • Firmware Version V1.10 | Document Revision V1.00 • 2018-OCT-02
40 / 133
Digital Outputs in Bank 2
Port
Command
Range
OpenDrain1
SIO 0, 2, <value>
0/1
OpenDrain2
SIO 1, 2, <value>
0/1
PWMU0
SIO 2, 2, <value>
0/1
PWMU1
SIO 3, 2, <value>
0/1
PWMU2
SIO 4, 2, <value>
0/1
PWMD0
SIO 5, 2, <value>
0/1
PWMD1
SIO 6, 2, <value>
0/1
PWMD2
SIO 7, 2, <value>
0/1
Special case
: SIO 255, 2, <x> can be used to change all general purpose digital output lines simultaneously.
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
Pull-up Resistor Control
The SIO command can also be used to program the pull-up resistors of the general purpose inputs. Each
of the pull-up resistors can seperately be switched off or on. For this purpose, use the command SIO 0, 0,
<x> where the value <x> is a bit vector. The following table shows the meaning of the different bits:
Pull-up Resistor Control
Bit
Value
Input
0
1
PWMU0
1
2
PWMU1
2
4
PWMU2
3
8
PWMD0
4
16
PWMD1
5
32
PWMD2
A bit that is set switches on the corresponding pull-up resistor. So for example SIO 0, 0, 0 turns off all
pull-up resistors, and SIO 0, 0, 63 turns on all pull-up-resistors. All pull-up resistors are on by default.
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at