Datasheet

Section 10 I/O Ports
Rev. 3.00 Mar 17, 2006 page 463 of 926
REJ09B0283-0300
10.5.1 Port 5 Data Direction Register (P5DDR)
The individual bits of P5DDR specify input or output for the pins of port 5.
P5DDR cannot be read; if it is, an undefined value will be read.
Bit Bit Name Initial Value R/W Description
7
to
4
All 0 Reserved
These bits are always read as 0 and cannot be
modified.
3 P53DDR 0 W
2 P52DDR 0 W
1 P51DDR 0 W
0 P50DDR 0 W
When a pin function is specified to a general
purpose I/O, setting this bit to 1 makes the
corresponding port 1 pin an output pin, while
clearing this bit to 0 makes the pin an input pin.
10.5.2 Port 5 Data Register (P5DR)
P5DR stores output data for the port 5 pins.
Bit Bit Name Initial Value R/W Description
7
to
4
All 0 Reserved
These bits are always read as 0 and cannot be
modified.
3 P53DR 0 R/W
2 P52DR 0 R/W
1 P51DR 0 R/W
0 P50DR 0 R/W
Output data for a pin is stored when the pin function
is specified to a general purpose I/O.