Datasheet
Section 10 I/O Ports
Rev. 6.00 Mar. 18, 2010 Page 343 of 982
REJ09B0054-0600
10.9 Port D
Port D is an 8-bit I/O port and has the following registers.
• Port D data direction register (PDDDR)
• Port D data register (PDDR)
• Port D register (PORTD)
• Port D pull-up MOS control register (PDPCR)
10.9.1 Port D Data Direction Register (PDDDR)
PDDDR specifies input or output the port D pins using the individual bits. PDDDR cannot be
read; if it is, an undefined value will be read. This register is a write-only register, and cannot be
written by bit manipulation instruction. For details, see section 2.9.4, Access Methods for
Registers with Write-Only Bits.
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
When a pin is specified as a general purpose I/O port,
setting this bit to 1 makes the corresponding port D
pin an output port. Clearing this bit to 0 makes the pin
an input port.
0 PD0DDR 0 W