Datasheet
Section 8 I/O Ports
Rev. 3.00 Mar 21, 2006 page 178 of 788
REJ09B0300-0300
• P23/A11/PW11, P22/A10/PW10, P21/A9/PW9, P20/A8/PW8
The pin function is switched as shown below according to the combination of the OEm bit in
PWOERB of PWM, the P2nDDR bit, and operating mode.
Operating
Mode
Mode 1 Mode 2, 3 (EXPE = 1) Mode 2, 3 (EXPE = 0)
P2nDDR—0101
OEm — — 0 1 — 0 1
Pin Function A11 to A8
output
pins
P23 to
P20 input
pins
A11 to A8
output
pins
PW11 to
PW8
output
pins
P23 to
P20 input
pins
P23 to
P20
output
pins
PW11 to
PW8
output
pins
Note: n = 3 to 0
m = 11 to 8
8.3.5 Port 2 Input Pull-Up MOS
Port 2 has an on-chip input pull-up MOS function that can be controlled by software. This input
pull-up MOS function can be specified as on or off on a bit-by-bit basis.
Table 8.3 summarizes the input pull-up MOS states.
Table 8.3 Input Pull-Up MOS States (Port 2)
Mode Reset
Hardware
Standby Mode
Software
Standby Mode
In Other
Operations
1OffOff
2, 3
Off Off
On/Off On/Off
Legend:
Off: Input pull-up MOS is always off.
On/Off: On when the pin is in the input state, P2DDR = 0, and P2PCR = 1; otherwise off.