Download Print this page

Advertisement

8.1.2

Port 2

Port 2 is an 8-bit I/O port. Port 2 pins can also function as the SCIF modem control signal, address
bus, and address-data multiplex bus pins. The pin 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)
(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
7
P27DDR
6
P26DDR
5
P25DDR
4
P24DDR
3
P23DDR
2
P22DDR
1
P21DDR
0
P20DDR
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
When set to 1, the corresponding pins function as
output port pins; when cleared to 0, function as
input port pins.
Normal extended mode (ADMXE = 0)
When set to 1, the corresponding pins function
as address output pins; when cleared to 0,
function as input port pins.
The address output pins used are in accord
with the settings of the IOSE and CS256E bits
of SYSCR.
Address-data multiplex extended mode
(ADMXE = 1)
These bits correspond to the AD11 to AD8 pins
of the address-data multiplex bus.
Single-chip mode
When set to 1, the corresponding pins function
as output port pins; when cleared to 0, function
as input port pins.
Rev. 1.00 Mar. 12, 2008 Page 195 of 1178
Section 8 I/O Ports
REJ09B0403-0100

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472