English
Language : 

CC2430 Datasheet, PDF (85/212 Pages) Texas Instruments – A True System-on-Chip solution for 2.4 GHz IEEE 802.15.4 / ZigBee-TM
CC2430
P2DIR (0xFF) – Port 2 Direction
Bit Name
7:6 PRIP0[1:0]
Reset R/W
00
R/W
5-
0
R0
4:0 DIRP2_[4:0] 00000 R/W
Peripherals : I/O ports
Description
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
00 USART0 has priority over USART1
01 USART1 has priority OVER Timer1
10 Timer 1 channels 0 and 1has priority over USART1
11 Timer 1 channel 2 has priority over USART0
Not used
P2_4 to P2_0 I/O direction
0 Input
1 Output
P0INP (0x8F) – Port 0 Input Mode
Bit Name
7:0 MDP0_[7:0]
Reset R/W
0x00 R/W
Description
P0_7 to P0_0 I/O input mode
0 Pull-up / pull-down (see P2INP (0xF7) – Port 2 Input Mode)
1 Tristate
P1INP (0xF6) – Port 1 Input Mode
Bit Name
7:2 MDP1_[7:2]
Reset R/W
0x00 R/W
1:0 -
00
R0
Description
P1_7 to P1_2 I/O input mode
0 Pull-up / pull-down (see P2INP (0xF7) – Port 2 Input Mode)
1 Tristate
Not used
P2INP (0xF7) – Port 2 Input Mode
Bit Name
7 PDUP2
Reset R/W
0
R/W
6 PDUP1
0
R/W
5 PDUP0
0
R/W
4:0 MDP2_[4:0] 00000 R/W
Description
Port 2 pull-up/down select. Selects function for all Port 2 pins
configured as pull-up/pull-down inputs.
0 Pull-up
1 Pull-down
Port 1 pull-up/down select. Selects function for all Port 1 pins
configured as pull-up/pull-down inputs.
0 Pull-up
1 Pull-down
Port 0 pull-up/down select. Selects function for all Port 0 pins
configured as pull-up/pull-down inputs.
0 Pull-up
1 Pull-down
P2_4 to P2_0 I/O input mode
0 Pull-up / pull-down
1 Tristate
CC2430 Data Sheet (rev. 2.1) SWRS036F
Page 85 of 211