Datasheet

Section 8 I/O Ports
Rev. 6.00 Aug 04, 2006 page 232 of 680
REJ09B0145-0600
Upon reset, PUCR5 is initialized to H'00.
4. Port Mode Register 5 (PMR5)
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
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 (WKP
n
)
When pin P5
n
/WKP
n
/SEG
n+1
is not used as SEG
n+1
, these bits select whether the pin is used as P5
n
or WKP
n
.
Bit n
WKPn Description
0 Functions as P5
n
I/O pin (initial value)
1 Functions as WKP
n
input pin
(n = 7 to 0)
Note: For use as SEG
n+1
, see section 13.2.1, LCD Port Control Register (LPCR).
8.6.3 Pin Functions
Table 8.15 shows the port 5 pin functions.
Table 8.15 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
SEG8 to SGS3 to SGS0 in LPCR.
P5
0
/WKP
0
/ SGS3 to SGS0 0*** 1***
SEG
1
WKP
n
01*
PCR5
n
01**
Pin function P5
n
input pin P5
n
output pin
WKP
n
input pin
SEG
n+1
output pin
*: Don’t care