135
8.3.4
Pin States
Table 8.7 shows the port 2 pin states in each operating mode.
Table 8.7
Port 2 Pin States
Pins
Reset
Sleep
Subsleep
Standby
Watch
Subactive Active
P2
7
/
IRQ
0
High-
impedance
High-
impedance
High-
impedance
High-
impedance
High-
impedance
High-
impedance
High-
impedance
P2
6
/TXD
P2
5
/RXD
P2
4
/SCK
3
P2
3
/SO
1
P2
2
/SI
1
P2
1
/SCK
1
P2
0
/
IRQ
4
/
ADTRG
High-
impedance
Retains
previous
state
Retains
previous
state
High-
impedance
*
Retains
previous
state
Functional Functional
Note:
*
High level output if the MOS pull-up is on.
8.3.5
MOS Input Pull-Up
Port 2 has a built-in MOS input pull-up function that can be controlled by software. When a PCR2
bit is cleared to 0, setting the corresponding PUCR2 bit to 1 turns on the MOS pull-up for that pin.
The MOS input pull-up function is in the off state after a reset.
PCR2
n
0
1
PUCR2
n
0
1
*
MOS input pull-up
Off
On
Off
Note:
*
Don’t care
(n = 6 to 0)
Note:
As P2
7
is an input-only pin, the MOS pull-up is turned off regardless of whether PUCR2
7
is set to 1 or cleared to 0.