Datasheet
Rev. 3.00, 03/04, page 204 of 830
8.6 Port 6
Port 6 is an 8-bit I/O port. Port 6 pins also function as the FRT input/output pin, keyboard input
pin, and noise cancel input pin. Port 6 functions change according to the operating mode. The port
can be used as the extended data bus (lower eight bits). Port 6 has the following registers.
• Port 6 data direction register (P6DDR)
• Port 6 data register (P6DR)
• Port 6 pull-up MOS control register (KMPCR6)
• System control register 2 (SYSCR2)
• Noise canceler enable register (P6NCE)
• Noise canceler decision control register (P6NCMC)
• Noise cancel cycle setting register (P6NCCS)
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
0 P60DDR 0 W
Normal extended mode (16-bit data bus):
The port functions as the data bus regardless of the
values in these bits.
Other mode:
If port 6 pins are specified for use as the general I/O
port, the corresponding port 6 pins are output ports
when the P6DDR bits are set to 1, and input ports
when cleared to 0.