XC2200 Derivatives
System Units (Vol. 1 of 2)
Parallel Ports
User’s Manual
7-20
V2.1, 2008-08
Parallel Ports, V1.6D6
7.3.3
Port 2
Port 2 is an 13-bit GPIO port. The registers of Port 2 are shown in
.
For this port, all pins can be read as GPIO, from the Port Input Register.
Figure 7-6
Port 2 Register Overview
Table 7-7
Port 2 Registers
Register
Short Name
Register Long Name
Address
Offset
Reset
Value
P2_OUT
Port 2 Output Register
FFA6
H
0000
H
P2_IN
Port 2 Input Register
FF84
H
0000
H
P2_OMRL
Port 2 Output Modification Register Low
E9C8
H
XXXX
H
P2_OMRH
Port 2 Output Modification Register High
E9CA
H
XXXX
H
P2_POCON
Port 2 Output Control Register
E8A4
H
0000
H
P2_IOCR00
Port 2 Input/Output Control Register 0
E840
H
0000
H
P2_IOCR01
Port 2 Input/Output Control Register 1
E842
H
0000
H
P2_IOCR02
Port 2 Input/Output Control Register 2
E844
H
0000
H
P2_IOCR03
Port 2 Input/Output Control Register 3
E846
H
0000
H
P2_IOCR04
Port 2 Input/Output Control Register 4
E848
H
0000
H
P2_IOCR05
Port 2 Input/Output Control Register 5
E84A
H
0000
H
P2_IOCR06
Port 2 Input/Output Control Register 6
E84C
H
0000
H
P2_IOCR07
Port 2 Input/Output Control Register 7
E84E
H
0000
H
P2_IOCR08
Port 2 Input/Output Control Register 8
E850
H
0000
H
P2_IOCR09
Port 2 Input/Output Control Register 9
E852
H
0000
H
P2_OMRL
Port2_Regs.vsd
P2_IOCR00
P2_OUT
Modification
Registers
Data
Registers
P2_IN
Control
Registers
P2_IOCR12
:
P2_POCON
P2_OMRH