
CHAPTER 4 PORT FUNCTIONS
User
’
s Manual U15862EJ3V0UD
253
(b) Port DL mode register (PMDL)
This is a 16-bit register that specifies the input mode/output mode.
This register can be read/written in 16-bit units only. However, when the higher 8 bits and the lower 8 bits
of the PMDL register are used as the PMDLH register and as the PMDLL register, respectively, these
registers can be read/written in 8-bit or 1-bit units.
PMDL7
Output mode
Input mode
PMDLn
0
1
Control of I/O mode (n = 0 to 15)
PMDL6
PMDL5
PMDL4
PMDL3
PMDL2
PMDL1
PMDL0
After Reset: FFFFH R/W Address: FFFFF024H (PMDL, PMDLL), FFFFF025H (PMDLH)
PMDL15
PMDL (PMDLH
Note
)
PMDL14
PMDL13 PMDL12
PMDL11 PMDL10
PMDL9
PMDL8
8
9
10
11
12
13
14
15
(PMDLL)
Note
When reading from or writing to bits 8 to 15 of the PMDL register in 8-bit or 1-bit units,
specify these bits as bits 0 to 7 of the PMDLH register.
(c) Port DL mode control register (PMCDL)
This is a 16-bit register that specifies the port mode/control mode.
This register can be read/written in 16-bit units only.
However, when the higher 8 bits and the lower 8 bits of the PMCDL register are used as the PMCDLH
register and as the PMCDLL register, respectively, these registers can be read/written in 8-bit or 1-bit
units.
I/O port
ADn I/O (address/data bus I/O)
PMCDLn
0
1
Specification of PDLn pin operation mode (n = 0 to 15)
PMCDL7 PMCDL6 PMCDL5 PMCDL4 PMCDL3 PMCDL2 PMCDL1 PMCDL0
After Reset: 0000H R/W Address: FFFFF044H (PMCDL, PMCDLL), FFFFF045H (PMCDLH)
PMCDL15
PMCDL (PMCDLH
Note
)
PMCDL14 PMCDL13PMCDL12 PMCDL11PMCDL10 PMCDL9 PMCDL8
8
9
10
11
12
13
14
15
(PMCDLL)
Note
When reading from or writing to bits 8 to 15 of the PMCDL register in 8-bit or 1-bit units,
specify these bits as bits 0 to 7 of the PMCDLH register.
Caution
When specifying the port mode/control mode (alternate function) for each bit,
pay careful attention to the operation of the alternate functions.