Section 8 I/O Ports
Rev. 7.00 Mar 10, 2005 page 215 of 652
REJ09B0042-0700
Port Pull-Up Control Register 5 (PUCR5)
Bit
Initial value
Read/Write
7
PUCR5
0
R/W
6
PUCR5
0
R/W
5
PUCR5
0
R/W
4
PUCR5
0
R/W
3
PUCR5
0
R/W
0
PUCR5
0
R/W
2
PUCR5
0
R/W
1
PUCR5
0
R/W
76543210
PUCR5 controls whether the MOS pull-up of each of port 5 pins P5
7
to P5
0
is on or off. When a
PCR5 bit is cleared to 0, setting the corresponding PUCR5 bit to 1 turns on the MOS pull-up for
the corresponding pin, while clearing the bit to 0 turns off the MOS pull-up.
Upon reset, PUCR5 is initialized to H'00.
Port Mode Register 5 (PMR5)
Bit 76543210
WKP
7
WKP
6
WKP
5
WKP
4
WKP
3
WKP
2
WKP
1
WKP
0
Initial value 0 0 0 0 0 0 0 0
Read/Write R/W R/W R/W R/W R/W R/W R/W 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 (WKPn)
When pin P5n/
WKP
n/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 section 13.2.1, LCD Port Control Register (LPCR).