Hardware manual
Rev. 3.0, 09/98, page 90 of 361
Input Pull-Up Transistors: Port 2 has built-in programmable input pull-up transistors that are
available in modes 2 and 3. The pull-up for each bit can be turned on and off individually. To
turn on an input pull-up in mode 2 or 3, set the corresponding P2PCR bit to “1” and clear the
corresponding P2DDR bit to “0.” P2PCR is cleared to H'00 by a reset and in the hardware
standby mode, turning all input pull-ups off. In software standby mode, the previous state is
maintained.
Table 6.7 indicates the states of the input pull-up transistors in each operating mode.
Table 6.7 States of Input Pull-Up Transistors (Port 2)
Mode Reset Hardware Standby Software Standby Other Operating Modes
1 Off Off Off Off
2 Off Off On/off On/off
3 Off Off On/off On/off
Notes: Off: The input pull-up transistor is always off.
On/off: The input pull-up transistor is on if P2PCR = “1” and P2DDR = “0,” but off
otherwise.