D4 | D3 | D1 | D0 | PORT A | PORT C | PORT B | PORT C |
|
|
|
|
| UPPER |
| LOWER |
|
|
|
|
|
|
|
|
0 | 0 | 0 | 0 | OUT | OUT | OUT | OUT |
|
|
|
|
|
|
|
|
0 | 0 | 0 | 1 | OUT | OUT | OUT | IN |
|
|
|
|
|
|
|
|
0 | 0 | 1 | 0 | OUT | OUT | IN | OUT |
|
|
|
|
|
|
|
|
0 | 0 | 1 | 1 | OUT | OUT | IN | IN |
|
|
|
|
|
|
|
|
0 | 1 | 0 | 0 | OUT | IN | OUT | OUT |
|
|
|
|
|
|
|
|
0 | 1 | 0 | 1 | OUT | IN | OUT | IN |
|
|
|
|
|
|
|
|
0 | 1 | 1 | 0 | OUT | IN | IN | OUT |
|
|
|
|
|
|
|
|
0 | 1 | 1 | 1 | OUT | IN | IN | IN |
|
|
|
|
|
|
|
|
1 | 0 | 0 | 0 | IN | OUT | OUT | OUT |
|
|
|
|
|
|
|
|
1 | 0 | 0 | 1 | IN | OUT | OUT | IN |
|
|
|
|
|
|
|
|
1 | 0 | 1 | 0 | IN | OUT | IN | OUT |
|
|
|
|
|
|
|
|
1 | 0 | 1 | 1 | IN | OUT | IN | IN |
|
|
|
|
|
|
|
|
1 | 1 | 0 | 0 | IN | IN | OUT | OUT |
|
|
|
|
|
|
|
|
1 | 1 | 0 | 1 | IN | IN | OUT | IN |
|
|
|
|
|
|
|
|
1 | 1 | 1 | 0 | IN | IN | IN | OUT |
|
|
|
|
|
|
|
|
1 | 1 | 1 | 1 | IN | IN | IN | IN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7.5.3 INDEX and USER COUNTER DATA AND CONTROL REGISTERS
8254B | COUNTER | 0 |
| INDEX | COUNTER | (or USER | |||||||
COUNTER #4) |
|
|
|
|
|
|
|
|
|
|
| ||
BADR3 + 8 |
|
|
|
|
|
|
|
|
|
|
| ||
READ/WRITE |
|
|
|
|
|
|
|
|
|
|
| ||
7 |
| 6 | 5 | 4 |
| 2 |
| 3 |
| 1 |
| 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
D7 |
| D6 | D5 | D4 |
| D3 |
| D2 |
| D1 |
| D0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Counter 0 of the 8254B device is a shared resource on the
When in ADC
31