CC2430
Peripherals : I/O ports
P2DIR (0xFF) – Port 2 Direction
Bit
Name
Reset
R/W
Description
7:6
00
R/W
Port 0 peripheral priority control. These bits shall determine the
order of priority in the case when PERCFG assigns several
peripherals to the same pins
PRIP0[1:0]
00
01
10
11
USART0 has priority over USART1
USART1 has priority OVER Timer1
Timer 1 channels 0 and 1has priority over USART1
Timer 1 channel 2 has priority over USART0
5
0
R0
Not used
-
4:0
00000
R/W
P2_4 to P2_0 I/O direction
DIRP2_[4:0]
0
1
Input
Output
P0INP (0x8F) – Port 0 Input Mode
Bit
Name
Reset
R/W
Description
7:0
0x00
R/W
P0_7 to P0_0 I/O input mode
MDP0_[7:0]
0
1
Pull-up / pull-down (see P2INP (0xF7) – Port 2 Input Mode)
Tristate
P1INP (0xF6) – Port 1 Input Mode
Bit
Name
Reset
R/W
Description
7:2
0x00
R/W
P1_7 to P1_2 I/O input mode
MDP1_[7:2]
0
1
Pull-up / pull-down (see P2INP (0xF7) – Port 2 Input Mode)
Tristate
1:0
00
R0
Not used
-
P2INP (0xF7) – Port 2 Input Mode
Bit
Name
Reset
R/W
Description
7
0
R/W
Port 2 pull-up/down select. Selects function for all Port 2 pins
configured as pull-up/pull-down inputs.
PDUP2
0
1
Pull-up
Pull-down
6
0
R/W
R/W
R/W
Port 1 pull-up/down select. Selects function for all Port 1 pins
configured as pull-up/pull-down inputs.
PDUP1
0
1
Pull-up
Pull-down
5
0
Port 0 pull-up/down select. Selects function for all Port 0 pins
configured as pull-up/pull-down inputs.
PDUP0
0
1
Pull-up
Pull-down
4:0
00000
P2_4 to P2_0 I/O input mode
MDP2_[4:0]
0
1
Pull-up / pull-down
Tristate
CC2430 Data Sheet (rev. 2.1) SWRS036F
Page 85 of 211