134
Table 8.6
Port 2 Pin Functions (cont)
Pin
Pin Functions and Selection Method
P2
2
/SI
1
The pin function depends on bit SI1 in PMR2 and bit PCR2
2
in PCR2.
SI1
0
1
PCR2
2
0
1
*
Pin function
P2
2
input pin
P2
2
output pin
SI
1
input pin
P2
1
/SCK
1
The pin function depends on bit SCK1 in PMR2, bit CKS3 in SCR1, and bit
PCR2
1
in PCR2.
SCK1
0
1
CKS
3
*
0
1
PCR2
1
0
1
*
*
Pin function
P2
1
input pin
P2
1
output pin
SCK
1
output pin
SCK
1
input pin
P2
0
/
IRQ
4
/
ADTRG
The pin function depends on bit IRQ4 in PMR2, bit TRGE in AMR, and bit
PCR2
0
in PCR2.
IRQ4
0
1
PCR2
0
0
1
*
TRGE
*
0
1
Pin function
P2
0
input pin
P2
0
output pin
IRQ
4
input pin
IRQ
4
/
ADTRG
input pin
Note:
When using this pin for
ADTRG
input, clear bit IEN4 to 0 in IENR1 to
disable IRQ
4
interrupts.
Note:
*
Don’t care