English
Language : 

HD64F2168 Datasheet, PDF (227/874 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
8.2 Port 2
Port 2 is an 8-bit I/O port. Port 2 pins also function as an address bus, PWM output pins, and
address-data multiplex bus. Port 2 functions change according to the operating mode. Port 2 has
the following registers.
• Port 2 data direction register (P2DDR)
• Port 2 data register (P2DR)
• Port 2 pull-up MOS control register (P2PCR)
8.2.1 Port 2 Data Direction Register (P2DDR)
The individual bits of P2DDR specify input or output for the pins of port 2.
Bit Bit Name Initial Value R/W
7
P27DDR 0
W
6
P26DDR 0
W
5
P25DDR 0
W
4
P24DDR 0
W
3
P23DDR 0
W
2
P22DDR 0
W
1
P21DDR 0
W
0
P20DDR 0
W
Description
In normal extended mode (ADMXE = 0):
The corresponding port 2 pins are address output
ports when the P2DDR bits are set to 1, and input
ports when cleared to 0.
Pins function as the address output port depending
on the setting of bits IOSE and CS256E in SYSCR.
Address/data multiplex extended mode (ADMXE =
1):
The upper 8-bit of address/data multiplex bus.
In single-chip mode:
The corresponding port 2 pins are output ports or
PWM outputs when the P2DDR bits are set to 1,
and input ports when cleared to 0.
Rev. 3.00, 03/04, page 187 of 830