Datasheet

Section 8 I/O Ports
Rev. 3.00 Mar 21, 2006 page 218 of 788
REJ09B0300-0300
8.14.1 Port C and Port D Data Direction Registers (PCDDR, PDDDR)
PCDDR and PDDDR select input or output for the pins of port C and port D on a bit-by-bit basis.
Bit Bit Name Initial Value R/W Description
7 PC7DDR 0 W
6 PC6DDR 0 W
5 PC5DDR 0 W
4 PC4DDR 0 W
3 PC3DDR 0 W
2 PC2DDR 0 W
1 PC1DDR 0 W
0 PC0DDR 0 W
0: Port C pin is an input pin
1: Port C pin is an output pin
PCDDR has the same address as PCPIN, and if
read, the port C pin states will be returned.
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
0: Port D pin is an input pin
1: Port D pin is an output pin
PDDDR has the same address as PDPIN, and if
read, the port D pin states will be returned.