5.2Data Port B Control Register (Base + 1)
The Data Port B Control Register contains the control bits for I/O channels DATA8 - DATA15. Each I/O channel may be individually programmed for input by writing a '1' to the appropriate bit of this register.
| Bit | Name | Description |
|
|
| |||
|
|
|
|
|
| 7 | DATA15 | General Purpose I/O bit 15 |
|
|
|
|
|
|
| 6 | DATA14 | General Purpose I/O bit 14 |
|
|
|
|
|
|
| 5 | DATA13 | General Purpose I/O bit 13 |
|
|
|
|
|
|
| 4 | DATA12 | General Purpose I/O bit 12 |
|
|
|
|
|
|
| 3 | DATA11 | General Purpose I/O bit 11 |
|
|
|
|
|
|
| 2 | DATA10 | General Purpose I/O bit 10 |
|
|
|
|
|
|
| 1 | DATA9 | General Purpose I/O bit 9 |
|
|
|
|
|
|
| 0 | DATA8 | General Purpose I/O bit 8 |
|
|
|
|
|
|
|
|
|
|
|
Table
5.3Data Port C Control Register (Base + 2)
The Data Port C Control Register contains the control bits for I/O channels DATA16 - DATA23. Each I/O channel may be individually programmed for input by writing a '1' to the appropriate bit of this register. In addition, any of these eight I/O channels which are programmed for input may also be used to generate interrupts. In order to program an I/O channel as an interrupt source, the Port C Interrupt Enable Register must be set appropriately. The I/O channel must also be programmed for input by writing a '1' to the appropriate bit of the Data Port C Control Register.
| Bit | Name | Description |
|
|
| |||
|
|
|
|
|
| 7 | DATA23/INT7 | General Purpose I/O bit 23 and Interrupt Line 7 |
|
|
|
|
|
|
| 6 | DATA22/INT6 | General Purpose I/O bit 22 and Interrupt Line 6 |
|
|
|
|
|
|
| 5 | DATA21/INT5 | General Purpose I/O bit 21 and Interrupt Line 5 |
|
|
|
|
|
|
| 4 | DATA20/INT4 | General Purpose I/O bit 20 and Interrupt Line 4 |
|
|
|
|
|
|
| 3 | DATA19/INT3 | General Purpose I/O bit 19 and Interrupt Line 3 |
|
|
|
|
|
|
| 2 | DATA18/INT2 | General Purpose I/O bit 18 and Interrupt Line 2 |
|
|
|
|
|
|
| 1 | DATA17/INT1 | General Purpose I/O bit 17 and Interrupt Line 1 |
|
|
|
|
|
|
| 0 | DATA16/INT0 | General Purpose I/O bit 16 and Interrupt Line 0 |
|
|
|
|
|
|
|
|
|
|
|
Table
26 |