DM5210 analog input module 4-5 RTD Embedded Technologies, Inc.
The table below shows the control words for the 16 possible Mode 0 Port I/O combinations.
D7
D6
D5
D4
D3
D2
D1
D0
Set/Reset
Function Bit
0 = active
Bit Select
000 = PC0
001 = PC1
010 = PC2
011 = PC3
100 = PC4
101 = PC5
110 = PC6
111 = PC7
Bit Set/Reset
0 = set bit to 0
1 = set bit to 1
When bit 7 of the PPI control word is set to 0, a write can be used to individually program the Port C lines.
8255 Port I/O Flow Direction and Control Words, Mode 0
Group A
Group B
Control Word
Port A
Port C
Upper
Port B
Port C
Lower
Binary
Decimal
Hex
Output
Output
Output
Output
1 0 0 0 0 0 0 0
128
80
Output
Output
Output
Input
1 0 0 0 0 0 0 1
129
81
Output
Output
Input
Output
1 0 0 0 0 0 1 0
130
82
Output
Output
Input
Input
1 0 0 0 0 0 1 1
131
83
Output
Input
Output
Output
1 0 0 0 1 0 0 0
136
88
Output
Input
Output
Input
1 0 0 0 1 0 0 1
137
89
Output
Input
Input
Output
1 0 0 0 1 0 1 0
138
8A
Output
Input
Input
Input
1 0 0 0 1 0 1 1
139
8B
Input
Output
Output
Output
1 0 0 1 0 0 0 0
144
90
Input
Output
Output
Input
1 0 0 1 0 0 0 1
145
91
Input
Output
Input
Output
1 0 0 1 0 0 1 0
146
92
Input
Output
Input
Input
1 0 0 1 0 0 1 1
147
93
Input
Input
Output
Output
1 0 0 1 1 0 0 0
152
98
Input
Input
Output
Input
1 0 0 1 1 0 0 1
153
99
Input
Input
Input
Output
1 0 0 1 1 0 1 0
154
9A
Input
Input
Input
Input
1 0 0 1 1 0 1 1
155
9B
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com