User manual
PD-1021 TMCL Firmware V1.19 Manual (Rev. 1.01 / 2012-JUL-30) 33
www.trinamic.com
Available I/O ports of PD-1021:
Pin
I/O port
Command
Range <n>
7
OUT_0
SIO 0, 2, <n>
1/0
8
OUT_1
SIO 1, 2, <n>
1/0
ADDRESSING BOTH OUTPUT LINES WITH ONE SIO COMMAND:
- Set the type parameter to 255 and the bank parameter to 2.
- The value parameter must then be set to a value between 0… 255, where every bit represents
one output line.
- Furthermore, the value can also be set to -1. In this special case, the contents of the lower 8 bits
of the accumulator are copied to the output pins.
Example:
Set all output pins high.
Mnemonic: SIO 255, 2, 3
THE FOLLOWING PROGRAM WILL SHOW THE STATES OF THE INPUT LINES ON THE OUTPUT LINES:
Loop: GIO 255, 0
SIO 255, 2,-1
JA Loop