CHAPTER 12 PORT FUNCTIONS
575
User’s Manual U15195EJ5V0UD
(2) Setting of I/O mode and control mode
The port DL mode register (PMDL) is used to set the I/O mode of port DL and the port DL mode control
register (PMCDL) is used to set the operation in control mode.
(a) Port DL mode register (PMDL)
The PMDL register can be read or written in 16-bit units.
When using the higher 8 bits of the PMDL register as the PMDLH register and the lower 8 bits as the
PMDLL register, it can be read or written in 8-bit or 1-bit units.
15
PMDL15
PMDL
14
PMDL14
13
PMDL13
12
PMDL12
11
PMDL11
10
PMDL10
9
PMDL9
8
PMDL8
7
PMDL7
6
PMDL6
5
PMDL5
4
PMDL4
3
PMDL3
2
PMDL2
1
PMDL1
0
PMDL0
Address
FFFFF025H
After reset
FFFFH
Address
FFFFF024H
Bit position
Bit name
Function
15 to 0
PMDLn
(n = 15 to 0)
Specifies input/output mode of PDLn pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
(b) Port DL mode control register (PMCDL)
The PMCDL register can be read or written in 16-bit units.
When using the higher 8 bits of the PMCDL register as the PMCDLH register and the lower 8 bits as the
PMCDLL register, it can be read or written in 8-bit or 1-bit units.
15
PMCDL15
PMCDL
14
PMCDL14
13
PMCDL13
12
PMCDL12
11
PMCDL11
10
PMCDL10
9
PMCDL9
8
PMCDL8
7
PMCDL7
6
PMCDL6
5
PMCDL5
4
PMCDL4
3
PMCDL3
2
PMCDL2
1
PMCDL1
0
PMCDL0
Address
FFFFF045H
After reset
Note
0000H/FFFFH
Address
FFFFF044H
Note
0000H : Single-chip mode
FFFFH : ROMless mode
Bit position
Bit name
Function
15 to 0
PMCDLn
(n = 15 to 0)
Specifies operation mode of PDLn pin.
0: I/O port mode
1: AD15 to AD0 I/O mode
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...