8.13
Port D
Port D is an 8-bit I/O port. Port D pins also function as the TPU I/O pins. Port D has the following
registers. PDDDR and PDPIN have the same address.
• Port D data direction register (PDDDR)
• Port D output data register (PDODR)
• Port D input data register (PDPIN)
• Port D Nch-OD control register (PDNOCR)
8.13.1
Port D Data Direction Register (PDDDR)
The individual bits of PDDDR specify input or output for the pins of port D.
Bit
Bit Name
7
PD7DDR
6
PD6DDR
5
PD5DDR
4
PD4DDR
3
PD3DDR
2
PD2DDR
1
PD1DDR
0
PD0DDR
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
The corresponding port D pins are output ports
when the PDDDR bits are set to 1, and input ports
when cleared to 0.
Rev. 3.00 Jul. 14, 2005 Page 217 of 986
Section 8 I/O Ports
REJ09B0098-0300