15
© Sealevel Systems, Inc.
4030 Manual | SL9362 9/2021
Programming the PIO-48, Continued
I/O Control Word
Each port may be configured as either Input or Output. This is accomplished by writing the correct Control
Word (CW) to the proper register.
Control Word (X = 0)
Hex Value
Port Setup
7
6
5
4
3
2
1
0
A
B
C
1
X
X
0
0
X
0
0
80
Out
Out
Out
1
X
X
0
0
X
0
1
81
Out
Out
In
1
X
X
0
0
X
1
0
82
Out
In
Out
1
X
X
0
0
X
1
1
83
Out
In
In
1
X
X
0
1
X
0
0
88
Out
Out
In
1
X
X
0
1
X
0
1
89
Out
Out
In
1
X
X
0
1
X
1
0
8A
Out
In
In
1
X
X
0
1
X
1
1
8B
Out
In
In
1
X
X
1
0
X
0
0
90
In
Out
Out
1
X
X
1
0
X
0
1
91
In
Out
In
1
X
X
1
0
X
1
0
92
In
In
Out
1
X
X
1
0
X
1
1
93
In
In
In
1
X
X
1
1
X
0
0
98
In
Out
In
1
X
X
1
1
X
0
1
99
In
Out
In
1
X
X
1
1
X
1
0
9A
In
In
In
1
X
X
1
1
X
1
1
9B
In
In
In