English
Language : 

HD6473887 Datasheet, PDF (174/523 Pages) Renesas Technology Corp – Hitachi Single-Chip Microcomputer
4. Port mode register 5 (PMR5)
Bit
Initial value
Read/Write
7
WKP7
0
R/W
6
WKP6
0
R/W
5
WKP5
0
R/W
4
WKP4
0
R/W
3
WKP3
0
R/W
2
WKP2
0
R/W
1
WKP1
0
R/W
0
WKP0
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: P5n/WKPn/SEGn+1 pin function switch (WKPn)
When pin P5n/WKPn/SEGn+1 is not used as SEGn+1, these bits select whether the pin is used as P5n
or WKPn.
Bit n
WKPn
0
1
Description
Functions as P5n I/O pin
Functions as WKPn input pin
Note: For use as SEGn+1, see 13.2.1, LCD Port Control Register (LPCR).
(initial value)
(n = 7 to 0)
8.6.3 Pin Functions
Table 8-15 shows the port 5 pin functions.
Table 8-15 Port 5 Pin Functions
Pin
P57/WKP7/
SEG8 to
P50/WKP0/
SEG1
Pin Functions and Selection Method
The pin function depends on bit WKPn in PMR5, bit PCR5n in PCR5, and bits
SEG8 to SGS3 to SGS0 in LPCR.
SGS3 to SGS0
WKPn
PCR5n
Pin function
0***
0
0
1
P5n input pin P5n output pin
1
*
WKPn
input pin
1***
*
*
SEGn+1
output pin
*: Don’t care
157