128
8.3
Port 2
8.3.1
Overview
Port 2 is an 7-bit I/O port and 1-bit input port. Figure 8.2 shows its pin configuration.
P2
7
/
IRQ
0
P2
6
/TXD
P2
5
/RXD
P2
4
/SCK
3
P2
3
/SO
1
P2
2
/SI
1
P2
1
/SCK
1
P2
0
/
IRQ
4
/
ADTRG
Port 2
Figure 8.2 Port 2 Pin Configuration
8.3.2
Register Configuration and Description
Table 8.5 shows the port 2 register configuration.
Table 8.5
Port 2 Registers
Name
Abbrev.
R/W
Initial Value
Address
Port data register 2
PDR2
R/W
H'00
H'FFD5
Port control register 2
PCR2
W
H'00
H'FFE5
Port mode register 2
PMR2
R/W
H'40
H'FF99
Port mode register 6
PMR6
R/W
H'F8
H'FF9A
Port pull-up control register 2
PUCR2
R/W
H'00
H'FF9D