156
8.5.3
Pin Functions
Table 8.12 shows the port 5 pin functions.
Table 8.12
Port 5 Pin Functions
Pin
Pin Functions and Selection Method
P5
7
/
WKP
7
/
SEG
8
to
The pin function depends on bit WKP
n
in PMR5, bit PCR5
n
in PCR5, and bits
SGS3 to SGS0 in LPCR.
P5
0
/
WKP
0
/
(n = 7 to 0)
SEG
1
SGS3 to SGS0
0
***
1
***
WKP
n
0
1
*
PCR5
n
0
1
*
*
Pin function
P5
n
input pin P5
n
output pin
WKPn
input
pin
SEGn+1
output pin
*
: Don’t care
8.5.4
Pin States
Table 8.13 shows the port 5 pin states in each operating mode.
Table 8.13
Port 5 Pin States
Pins
Reset
Sleep
Subsleep Standby
Watch
Subactive Active
P5
7
/
WKP
7
/
SEG
8
to P5
0
/
WKP
0
/SEG
1
High-
impedance
Retains
previous
state
Retains
previous
state
High-
impedance
*
Retains
previous
state
Functional Functional
Note:
*
A high-level signal is output when the MOS pull-up is in the on state.