Datasheet

Section 8 I/O Ports
Rev. 4.00 Sep 27, 2006 page 230 of 1130
REJ09B0327-0400
8.3.3 Pin Functions in Each Mode
Mode 1
In mode 1, port 2 pins automatically function as address outputs. The port 2 pin functions are
shown in figure 8.6.
A15 (Output)
A14 (Output)
A13 (Output)
A12 (Output)
A11 (Output)
A10 (Output)
A9 (Output)
A8 (Output)
Port 2
Figure 8.6 Port 2 Pin Functions (Mode 1)
Modes 2 and 3 (EXPE = 1)
In modes 2 and 3 (when EXPE = 1), port 2 pins function as address outputs, PWM outputs, or I/O
ports, and input or output can be specified on a bit-by-bit basis. When a bit in P2DDR is set to 1,
the corresponding pin functions as an address output or PWM output, and when cleared to 0, as an
input port. P27 to P24 are switched from address outputs to output ports by setting the IOSE bit to
1. P27 can be used as an on-chip supporting module output pin regardless of the P27DDR setting,
but to ensure normal access to external space, P27 should not be set as an on-chip supporting
module output pin when port 2 pins are used as address output pins.
The port 2 pin functions are shown in figure 8.7.