TAMS 81622 Installation & Operation Instructions - Tams 81622 Polarity
Using I_GPIO_T61622_FLT_TM
Set filtering to 1
µµµµµ
s (microsecond, 1000 nanoseconds)
igpioctrl(id, I_GPIO_T61622_FLT_TM, 1000)
Read the time set for filtering in nanoseconds
igpiostat(id, I_GPIO_T61622_FLT_TM, &ftm)
Important time defines for line filtering (in nanoseconds)
N
I
M
_
T
L
F
_
2
2
6
1
6
T
0
3
e
m
i
t
g
n
i
r
e
t
l
i
f
m
u
m
i
n
i
M
P
T
S
_
T
L
F
_
2
2
6
1
6
T
0
6
p
e
t
s
e
v
i
t
c
e
f
f
e
e
r
a
w
d
r
a
H
T
F
D
_
T
L
F
_
2
2
6
1
6
T
0
5
1
t
o
o
b
n
o
d
e
d
a
o
l
e
u
l
a
V
X
A
M
_
T
L
F
_
2
2
6
1
6
T
0
0
3
5
1
e
m
i
t
g
n
i
r
e
t
l
i
f
m
u
m
i
x
a
M
TAMS 81622 Polarity
This function allows for complex, individual polarity setting for DIN, STI0, STI1,
and EIR. The polarity of nineteen lines (DIN[0..15], STI[0..1] and EIR) can be
controlled independently. It enables interrupt control on either rising or falling
edge of a line level transition.
For the DIN lines, interpretation and implementation of the polarity is identical to
the standard GPIO DIN polarity as described in the SICL documentation.
For the STI and EIR lines, the standard GPIO interface does not provide polarity
configuration. This is a TAMS 81622 extension to the HP GPIO.
To maintain maximum compatibility with the standard GPIO, the following rules
apply:
•
For STI and EIR lines, if their polarity is set to 0, their behavior is fully
compatible with standard GPIO. If set to 1, polarity is reversed for these
lines.
•
For DIN lines, 81622 extensions allow the user to set the polarity for each
line independently. Setting the DIN polarity with standard GPIO SICL igpioctrl
(
id
,
I_GPIO_POLARITY, setting
) is still supported and will cause the
setting or clearing of all the DIN lines’ polarity with a single call. This is
because the standard allows only for all of the DIN lines’ polarity to be set at
a time. This guarantees backwards compatibility.
Examples:
Setting polarity for only DIN6 and EIR lines
igpioctrl(id, I_GPIO_T61622_POL, T61622_DIN06 | T61622_EIR)
Reading back the polarity setting
igpiostat(id, I_GPIO_T61622_POL, &pol);
23