5. Register Descriptions
The program registers of the
| Offset | Read/Write | Register |
|
|
| |||
|
|
|
|
|
| 0 | R/W | Data Port A Control Register |
|
|
|
|
|
|
| 1 | R/W | Data Port B Control Register |
|
|
|
|
|
|
| 2 | R/W | Data Port C Control Register |
|
|
|
|
|
|
| 5 | R/W | Port C Interrupt Enable Register |
|
|
|
|
|
|
| 6 | R/W | Interrupt Mode Control Register |
|
|
|
|
|
|
| 7 | R | Interrupt Status Register |
|
|
|
|
|
|
| 7 | W | Interrupt Acknowledge Register |
|
|
|
|
|
|
|
|
|
|
|
Table
Each register of the
5.1Data Port A Control Register (Base + 0)
The Data Port A Control Register contains the control bits for I/O channels DATA0 - DATA7. 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 | DATA7 | General Purpose I/O bit 7 |
|
|
|
|
|
|
| 6 | DATA6 | General Purpose I/O bit 6 |
|
|
|
|
|
|
| 5 | DATA5 | General Purpose I/O bit 5 |
|
|
|
|
|
|
| 4 | DATA4 | General Purpose I/O bit 4 |
|
|
|
|
|
|
| 3 | DATA3 | General Purpose I/O bit 3 |
|
|
|
|
|
|
| 2 | DATA2 | General Purpose I/O bit 2 |
|
|
|
|
|
|
| 1 | DATA1 | General Purpose I/O bit 1 |
|
|
|
|
|
|
| 0 | DATA0 | General Purpose I/O bit 0 |
|
|
|
|
|
|
|
|
|
|
|
Table
25 |