Datasheet

Section 9 I/O Ports
Rev.6.00 Mar. 18, 2009 Page 381 of 980
REJ09B0050-0600
9.11 Port D
Port D is an 8-bit I/O port that also has other functions. The port D has the following registers.
Port D data direction register (PDDDR)
Port D data register (PDDR)
Port D register (PORTD)
Port D MOS pull-up control register (PDPCR)
9.11.1 Port D Data Direction Register (PDDDR)
The individual bits of PDDDR specify input or output for the pins of port D.
PDDDR cannot be read; if it is, an undefined value will be read.
Bit Bit Name Initial Value R/W Description
7 PD7DDR 0 W
6 PD6DDR 0 W
5 PD5DDR 0 W
4 PD4DDR 0 W
3 PD3DDR 0 W
2 PD2DDR 0 W
1 PD1DDR 0 W
0 PD0DDR 0 W
Modes 1, 2, 4, and 7 (when EXPE = 1)
Port D is automatically designated for data
input/output.
Mode 7 (when EXPE = 0)
Port D is an I/O port, and its pin functions can be
switched with PDDDR.