Datasheet

Section 8 I/O Ports
Rev. 2.00 Sep. 28, 2009 Page 203 of 870
REJ09B0429-0200
8.6 Port 6
Port 6 is an 8-bit I/O port. Port 6 pins can also function as the bidirectional data bus and SCIF
control input/output 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 (D7 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)
Noise canceler enable register (P6NCE)
Noise canceler mode control register (P6NCMC)
Noise cancel cycle setting register (NCCS)
8.6.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
3 P63DDR 0 W
2 P62DDR 0 W
1 P61DDR 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.
0 P60DDR 0 W