![Hitachi H8/3935 Hardware Manual Download Page 172](http://html.mh-extra.com/html/hitachi/h8-3935/h8-3935_hardware-manual_140486172.webp)
160
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
pin function switch (WKP
n
)
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)
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
to
The pin function depends on bit WKP
n
in PMR5 and bit PCR5
n
in PCR5.
P5
0
/
WKP
0
(n = 7 to 0)
WKP
n
0
1
PCR5
n
0
1
*
Pin function
P5
n
input pin
P5
n
output pin
WKP
n
input pin
*
: Don’t care
Summary of Contents for H8/3935
Page 1: ......
Page 2: ......
Page 4: ......
Page 24: ...12 ...
Page 96: ...84 ...
Page 142: ...130 ...
Page 144: ...132 ...
Page 252: ...240 ...
Page 326: ...314 ...
Page 340: ...328 ...
Page 520: ...508 ...