133
8.3.3
Pin Functions
Table 8.6 shows the port 2 pin functions.
Table 8.6
Port 2 Pin Functions
Pin
Pin Functions and Selection Method
P2
7
/
IRQ
0
The pin function depends on bit IRQ0 in PMR2 and bit PCR2
7
in PCR2.
IRQ0
0
1
PCR2
7
0
1
*
Pin function
P2
7
input pin
High-
impedance
IRQ
0
input pin
P2
6
/TXD
The pin function depends on bit TXD in PMR6 and bit PCR2
6
in PCR2.
TXD
0
1
PCR2
6
0
1
*
Pin function
P2
6
input pin
P2
6
output pin
TXD output pin
P2
5
/RXD
The pin function depends on bit RE in SCR of SCI3 and bit PCR2
5
in PCR2.
RE
0
1
PCR2
5
0
1
*
Pin function
P2
5
input pin
P2
5
output pin
RXD input pin
P2
4
/SCK
3
The pin function depends on bits CKE1 and CKE0 in SCR of SCI3, bit COM in
SMR of SCI3, and bit PCR2
4
in PCR2.
CKE1
0
1
CKE0
0
0
1
*
COM
0
1
*
*
PCR2
4
0
1
*
*
Pin function
P2
4
input pin
P2
4
output pin
SCK
3
output pin
SCK
3
input pin
P2
3
/SO
1
The pin function depends on bit SO1 in PMR2 and bit PCR2
3
in PCR2.
SO1
0
1
PCR2
3
0
1
*
Pin function
P2
3
input pin
P2
3
output pin
SO
1
output pin