Renesas SH7781 用户手册

下载
页码 1692
28.   General Purpose I/O Ports (GPIO) 
Rev.1.00  Jan. 10, 2008  Page 1401 of 1658 
REJ09B0261-0100 
 
28.2.8
 
Port H Control Register (PHCR) 
PHCR 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
1
1
1
1
1
1
1
1
1
1
1
1
1
1
PH0
MD0
PH0
MD1
PH1
MD0
PH1
MD1
PH2
MD0
PH2
MD1
PH3
MD0
PH3
MD1
PH4
MD0
PH4
MD1
PH5
MD0
PH5
MD1
PH6
MD0
PH6
MD1
PH7
MD1
PH7
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 
PH7MD1 
PH7MD0 
R/W 
R/W 
PH7 Mode 
00: SCIF[1] module (SCIF1_SCK) 
01: Port output 
10: Port input (pull-up MOS: Off) 
11: Port input (pull-up MOS: On) 
13 
12 
PH6MD1 
PH6MD0 
R/W 
R/W 
PH6 Mode 
00: SCIF[1] module (SCIF1_RXD) 
01: Port output 
10: Port input (pull-up MOS: Off) 
11: Port input (pull-up MOS: On) 
11 
10 
PH5MD1 
PH5MD0 
R/W 
R/W 
PH5 Mode 
00: SCIF[1] module (SCIF1_TXD) 
01: Port output 
10: Port input (pull-up MOS: Off) 
11: Port input (pull-up MOS: On) 
PH4MD1 
PH4MD0 
R/W 
R/W 
PTH4 Mode 
00: SCIF[0]/PCIC/FLCTL module 
(
SCIF0_CTS/INTD/FCE)* 
01: Port output 
10: Port input (pull-up MOS: Off) 
11: Port input (pull-up MOS: On)