Datasheet

Section 8 I/O Ports
Rev. 4.00 Jun 06, 2006 page 207 of 1004
REJ09B0301-0400
8.3.4 MOS Input Pull-Up Function
Port 2 has an on-chip MOS input pull-up function that can be controlled by software. This MOS
input pull-up function can be used in modes 2 and 3, and can be specified as on or off on a bit-by-
bit basis.
When a P2DDR bit is cleared to 0 in mode 2 or 3, setting the corresponding P2PCR bit to 1 turns
on the MOS input pull-up for that pin.
The MOS input pull-up function is in the off state after a reset and in hardware standby mode. The
prior state is retained in software standby mode.
Table 8.6 summarizes the MOS input pull-up states.
Table 8.6 MOS Input Pull-Up States (Port 2)
Mode Reset
Hardware
Standby Mode
Software
Standby Mode
In Other
Operations
1 Off Off Off Off
2, 3 Off Off On/Off On/Off
Legend:
Off: MOS input pull-up is always off.
On/Off: On when P2DDR = 0 and P2PCR = 1; otherwise off.