7 port g control register (pgcr) – Renesas SH7781 User Manual
Page 1429
28. General Purpose I/O Ports (GPIO)
Rev.1.00 Jan. 10, 2008 Page 1399 of 1658
REJ09B0261-0100
28.2.7
Port G Control Register (PGCR)
PGCR 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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
PG0
MD0
PG0
MD1
PG1
MD0
PG1
MD1
PG2
MD0
PG2
MD1
PG3
MD0
PG3
MD1
PG4
MD0
PG4
MD1
PG5
MD0
PG5
MD1
PG6
MD0
PG6
MD1
PG7
MD1
PG7
MD0
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
14
PG7MD1
PG7MD0
0
0
R/W
R/W
PG7 Mode
00: LBSC module (D23)
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)
13
12
PG6MD1
PG6MD0
0
0
R/W
R/W
PG6 Mode
00: LBSC module (D22)
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)
11
10
PG5MD1
PG5MD0
0
0
R/W
R/W
PG5 Mode
00: LBSC module (D21)
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)
9
8
PG4MD1
PG4MD0
0
0
R/W
R/W
PG4 Mode
00: LBSC module (D20)
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)