5 port e control register (pecr) – Renesas SH7781 User Manual
Page 1425

28. General Purpose I/O Ports (GPIO)
Rev.1.00 Jan. 10, 2008 Page 1395 of 1658
REJ09B0261-0100
28.2.5
Port E Control Register (PECR)
PECR is a 16-bit readable/writable register that selects the pin function and controls the input pull-
up MOS.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
15
14
1
1
0
0
0
0
1
1
0
0
0
0
0
0
0
0
PE0
MD0
PE0
MD1
PE1
MD0
PE1
MD1
PE2
MD0
PE2
MD1
PE3
MD0
PE3
MD1
PE4
MD0
PE4
MD1
PE5
MD0
PE5
MD1
—
—
—
—
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Bit:
Initial value:
R/W:
Bit Bit
Name
Initial
value R/W Description
15 to 12
⎯ All
0
R/W
Reserved
These bits are always read as 0, and the write value
should always be 0.
11
10
PE5MD1
PE5MD0
0
0
R/W
R/W
PE5 Mode
00: PCIC module (
REQ1)
When the bus mode is set to the local bus or DU via
the bus mode pins (MODE1 and MODE2), port
input (pull-up MOS: On) is selected.
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)
9
8
PE4MD1
PE4MD0
0
0
R/W
R/W
PE4 Mode
00: PCIC module (
REQ2)
When the bus mode is set to the local bus or DU via
the bus mode pins (MODE1 and MODE2), port
input (pull-up MOS: On) is selected.
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)
7
6
PE3MD1
PE3MD0
1
1
R/W
R/W
PE3 Mode
00: PCIC module (
REQ3)*
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)