7.9
Port 8
Port 8 is an 8-bit I/O port. Port 8 pins also function as external trigger input pins for the A/D
converter, PWMX output pins, SCI_3, SCI_4, IIC3_0, and IIC3_1 I/O pins, and TPU I/O pins.
The output format for P80 to P83 which are general I/O ports is NMOS push-pull output.
Port 8 has the following registers.
• Port 8 data direction register (P8DDR)
• Port 8 data register (P8DR)
• Port 8 register (PORT8)
7.9.1
Port 8 Data Direction Register (P8DDR)
The individual bits in P8DDR specify input or output for the pins of port 8. The read value is
undefined.
Bit
Bit Name
7
P87DDR
6
P86DDR
5
P85DDR
4
P84DDR
3
P83DDR
2
P82DDR
1
P81DDR
0
P80DDR
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
While a general I/O port function is selected, the
corresponding port 8 pin is an output port when a
P8DDR bit is set to 1, and an input port when
cleared to 0.
Rev. 1.00, 09/03, page 183 of 704