10 port k control register (pkcr) – Renesas SH7781 User Manual
Page 1435

28. General Purpose I/O Ports (GPIO)
Rev.1.00 Jan. 10, 2008 Page 1405 of 1658
REJ09B0261-0100
28.2.10
Port K Control Register (PKCR)
PKCR 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
0
0
0
0
PK0
MD0
PK0
MD1
PK1
MD0
PK1
MD1
PK2
MD0
PK2
MD1
PK3
MD0
PK3
MD1
PK4
MD0
PK4
MD1
PK5
MD0
PK5
MD1
PK6
MD0
PK6
MD1
PK7
MD1
PK7
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
PK7MD1
PK7MD0
0
0
R/W
R/W
PK7 Mode
00: [STATUS]/DMAC module (STATUS0/
DRAK0)*
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)
13
12
PK6MD1
PK6MD0
0
0
R/W
R/W
PK6 Mode
00: [STATUS]/DMAC module (STATUS0/
DRAK0)*
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)
11
10
PK5MD1
PK5MD0
1
1
R/W
R/W
PK5 Mode
00: DMAC/SCIF[2]/MMCIF/SIOF module
(
DACK2/SCIF2_TXD/MMCCMD/SIOF_TXD)*
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)
9
8
PK4MD1
PK4MD0
1
1
R/W
R/W
PK4 Mode
00: DMAC/SCIF[2]/MMCIF/SIOF module
(
DACK3/SCIF2_SCK/MMCDAT/SIOF_SCK)*
01: Port output
10: Port input (pull-up MOS: Off)
11: Port input (pull-up MOS: On)