9.3
Port 3
Port 3 is a 6-bit I/O port that also has other functions. The port 3 has the following registers.
• Port 3 data direction register (P3DDR)
• Port 3 data register (P3DR)
• Port 3 register (PORT3)
• Port 3 open drain control register (P3ODR)
• Port function control register 2(PFCR2)
9.3.1
Port 3 Data Direction Register (P3DDR)
The individual bits of P3DDR specify input or output for the pins of port 3.
P3DDR cannot be read; if it is, an undefined value will be read.
Bit
Bit Name
Initial Value
7
—
0
6
—
0
5
P35DDR
0
4
P34DDR
0
3
P33DDR
0
2
P32DDR
0
1
P31DDR
0
0
P30DDR
0
R/W
Description
—
Reserved
These bits are always read as 0 and cannot be
—
modified.
W
When a pin function is specified to a general purpose
I/O, setting this bit to 1 makes the corresponding port
W
1 pin an output pin, while clearing this bit to 0 makes
W
the pin an input pin.
W
W
W
Rev. 2.00, 05/03, page 323 of 820