register | effect | description |
P1 (0x90) | Port 1 | Port 1. General-purpose I/O port. It can be addressed from the SFR bit. |
P1SEL(0xF4) | Port 1 function selection | P1.7 to P0.0 function selection 0: General I/O 1: Peripheral function |
P1DIR (0xFE) | Port 1 direction | I/O direction from P1.7 to P1.0 0: Input 1: Output |
P1INP(0xF6) | Port 1 input mode | I/O input mode from P1.7 to P1.2. Since P1.0 and P1.1 do not have pull-up/pull-down functions, P1INP does not need to be configured for the time being. Learn to lay a foundation for the following experiments. 0: Pull-up/pull-down (see P2INP (0xF7)-Port 2 input mode) 1: Three state |
Since the default value of the CC2530 register is initialized (for detailed description, please refer to the CC2530 data sheet (Chinese).pdf):
P1SEL = 0x00;
P1DIR = 0x00;
P1INP = 0x00;