Chapter 4 I/O Ports
IV - 18
Port 2
4-4-2 Registers
Figure 4-4-1 Port 2 Registers
01245672
P2OUT
P2OUT7
0
1
Low (V
SS
level)
Output data
High (V
DD
level)
P2OUT
01245672
P2IN
P2IN7 P2IN4 P2IN2 P2IN2 P2IN1 P2IN0
0
1
Pin is Low (V
SS
level).
Input data
Pin is High (V
DD
level).
P2IN
01245672
P2PLU
P2PLU4 P2PLU2 P2PLU2 P2PLU1 P2PLU0
0
1
No pull-up resistor
Pull-up resistor selection
Pull-up resistor
P2PLU
Port 2 output register(P2OUT : x'02F12', R/W)
Port 2 input register(P2IN : x'02F22', R)
Port 2 pull-up resistor control register(P2PLU : x'02F42', R/W)
( At reset : - - - 0 0 0 0 0 )
( At reset : 1 - - X X X X X )
( At reset : 1 - - 0 0 0 0 0 )
01245673
P2DIR
P2DIR4 P2DIR2 P2DIR2 P2DIR1 P2DIR0
0
1
Input mode
I/O mode selection
Output mode
P2DIR
Port 2 direction control register (P2DIR : x'02F32', R/W)
( At reset : - - - 0 0 0 0 0 )
P2OUT4 P2OUT3 P2OUT2 P2OUT1 P2OUT0