Datasheet

Rev. 3.00, 03/04, page 190 of 830
P2nDDR 0 1
ADMXE 0 1 0 1
Pin function P2n input pins AD10 to AD8
input/output pins
A10 to A8 output
pins
AD10 to AD8
input/output pins
[Legend]
n = 7 to 0
Single-Chip Mode (EXPE = 0):
The function of port 2 pins is switched as shown below according to the combination of the OEm
bit in PWOERB of PWR and the P2nDDR bit.
P2nDDR 0 1
OEm 0 1
Pin function P27 to P20 input pins P27 to P20 output pins PW15 to PW8 output pins
[Legend]
n = 7 to 0
m = 15 to 8
8.2.5 Port 2 Input Pull-Up MOS
Port 2 has a built-in input pull-up MOS that can be controlled by software. This input pull-up
MOS can be used regardless of the operating mode. Table 8.3 summarizes the input pull-up MOS
states.
Table 8.3 Port 2 Input Pull-Up MOS States
Reset
Hardware Standby
Mode
Software Standby
Mode
In Other Operations
Off Off On/Off On/Off
[Legend]
Off: Always off.
On/Off: On when P2DDR = 0 and P2PCR = 1; otherwise off.