Datasheet
Section 8 I/O Ports
Rev. 2.00 Aug. 20, 2008 Page 221 of 1198
REJ09B0403-0200
8.1.6 Port 6
Port 6 is an 8-bit I/O port. Port 6 pins can also function as the bidirectional data bus, PWMX
output, SCIF and SSU control input/output, and interrupt input pins. The pin functions change
according to the operating mode. In addition, port 6 pins can also be used as the extended data bus
pins (D0 to D0). Port 6 has the following registers.
• Port 6 data direction register (P6DDR)
• Port 6 data register (P6DR)
• Port 6 pull-up MOS control register (P6PCR)
(1) Port 6 Data Direction Register (P6DDR)
The individual bits of P6DDR specify input or output for the pins of port 6.
Bit Bit Name Initial Value R/W Description
7 P67DDR 0 W
6 P66DDR 0 W
5 P65DDR 0 W
4 P64DDR 0 W
If port 6 pins are specified for use as the general I/O
port, the corresponding pins function as output port
when the P6DDR bits are set to 1, and as input ports
when cleared to 0.
3 P63DDR 0 W
2 P62DDR 0 W
1 P61DDR 0 W
0 P60DDR 0 W
• Normal extended mode (16-bit bus)
These bits have no effect on operation.
• Other modes
If port 6 pins are specified for use as the general
I/O port, the corresponding pins function as output
port when the P6DDR bits are set to 1, and as
input port when cleared to 0.










