
CHAPTER 4 PORT FUNCTIONS
User’s Manual U15905EJ2V1UD
167
(2) Registers
(a) Port register DL (PDL)
Port register DL (PDL) is a 16-bit register that controls reading the pin level and writing the output level.
This register can be read or written in 8-bit or 1-bit units.
If the higher 8 bits of the PDL register are used as PDLH, and the lower 8 bits as PDLL, however, PDLH
and PDLL can be used as an 8-bit I/O port whose input or output can be manipulated in 8-bit or 1-bit units.
PDL15
Outputs 0.
Outputs 1.
PDLn
0
1
Controls output data (in output mode) (n = 0 to 15)
PDL (PDLHNote)
(PDLL)
PDL14
PDL13
PDL12
PDL11
PDL10
PDL9
PDL8
After reset: Undefined
R/W
Address: PDL FFFFF004H,
PDLL FFFFF004H, PDLH FFFFF005H
PDL7
PDL6
PDL5
PDL4
PDL3
PDL2
PDL1
PDL0
8
9
10
11
12
13
14
15
Note
When reading or writing bits 8 to 15 of the PDL register in 8-bit or 1-bit units, specify these bits as bits 0
to 7 of the PDLH register.
Remarks 1. In input mode:
When port DL (PDL) is read, the pin level at that time is read. When written, the
data written to PDL is written. The input pin is not affected.
In output mode: When port DL (PDL) is read, the value of PDL is read. When a value is written to
PDL, it is immediately output.
2. After reset, an undefined value (pin input level) is read from PDL in the input mode. When PDL is
read in the output mode, 0000H (value of the output latch) is read.