4.
Port mode register 5 (PMR5)
PMR5 is an 8-bit read/write register, controlling the selection of pin functions for port 5 pins.
Upon reset, PMR5 is initialized to H'00.
Bit n: P5
n
/
WKP
n
/SEG
n+1
pin function switch (WKPn)
When pin P5n/
WKPn
/SEGn+1 is not used as SEG
n+1
, these bits select whether the pin is used as
P5n or
WKP
n
.
Bit n
WKPn
Description
0
Functions as P5n I/O pin
(initial value)
1
Functions as
WKP
n
input pin
(n = 7 to 0)
Note: For use as SEG
n+1
, see 13.2.1, LCD Port Control Register (LPCR).
Bit
Initial value
Read/Write
7
WKP
7
0
R/W
6
WKP
6
0
R/W
5
WKP
5
0
R/W
4
WKP
4
0
R/W
3
WKP
3
0
R/W
0
WKP
0
0
R/W
2
WKP
2
0
R/W
1
WKP
1
0
R/W
153