8.3.3
Pin Function
Table 8-6 shows the port 2 pin functions.
Table 8-6 Port 2 Pin Functions
Pin
Pin Functions and Selection Method
The pin function depends on the corresponding bit in PCR2.
P27 to P23
(n = 7 to 3)
PCR2n
0
1
Pin function
P2n input pin
P2n output pin
P22/SO1
P21/SI1
The pin function depends on bit SO1 in PMR2 and bit PCR22 in PCR2.
SO1
0
1
PCR22
0
1
*
Pin function
P22 input pin
P22 output pin
SO1 output pin
The pin function depends on bit SI1 in PMR2 and bit PCR21 in PCR2.
SI1
0
1
PCR21
0
1
*
Pin function
P21 input pin
P21 output pin
SI1 input pin
P20/SCK1
The pin function depends on bit SCK1 in PMR2 and bit PCR20 in PCR2.
SCK1
PCR20
0
1
0
1
*
Pin function
P20 input pin
P20 output pin
SCK1 I/O pin
*: Don’t care
8.3.4
Pin States
Table 8-7 shows the port 2 pin states in each operating mode.
Table 8-7 Port 2 Pin States
Pins
Reset
Sleep
Subsleep Standby
Watch
Subactive Active
P27 to P23
P22/SO1
P21/SI1
High-
Retains
Retains
previous
state
High-
Retains
Functional Functional
impedance previous
state
impedance previous
state
P20/SCK1
144