TMCM-351 TMCL Firmware V4.45 Manual (Rev. 1.06 / 2014-MAY-16)
39
www.trinamic.com
C
ONNECTORS
Connector 1
:
Connector 2
Connector 3
Figure 4.2 Connectors of TMCM-351
4.6.15.1
I/O Bank 0 – Digital Inputs:
The ADIN lines can be read as digital or analogue inputs at the same time. The analogue values can
be accessed in bank 1. The IN lines can be read as digital values only.
R
EADING ALL DIGITAL INPUTS WITH ONE
GIO
COMMAND
:
-
Set the type parameter to 255 and the bank parameter to 0.
-
In this case the status of all digital input lines will be read to the lower eight bits of the accumulator.
U
SE FOLLOWING PROGRAM TO REPRESENT THE STATES OF THE INPUT LINES ON THE OUTPUT LINES
:
Loop: GIO 255, 0
SIO 255, 2,-1
JA Loop
1
2
20
19
Pin
I/O port
Command
Range
11
IN_0
GIO 0, 0
1/0
12
IN_1
GIO 1, 0
1/0
13
IN_2
GIO 2, 0
1/0
14
IN_3
GIO 3, 0
1/0
15
IN_4
GIO 4, 0
1/0
16
IN_5
GIO 5, 0
1/0
17
ADIN_6
GIO 6, 0
1/0
18
ADIN_7
GIO 7, 0
1/0