1.CC2530 Minimum system comprising:
- Crystal has two interfaces
- a high-speed oscillator (typically 32MHz) of the low-speed high-precision crystal oscillator (typically 32.768KHZ) - Decoupling capacitor (PIN_40) and a bias resistor (PIN_30)
- A reset circuit (PIN_20)
- Download Simulation (VCC, GND, RESET, P2_1, P2_2)
- RF circuit (PIN_25, PIN_26)
- A total of 21 general-purpose pins P0_0-P0_7, P1_0-P1_7, P2_0-P2_4.
2. Configuration Register
For example: P1_0 provided:
- Ordinary IO (P1SEL of 0 = 0), the default is 0:
//P1SEL=0x1111 1110
P1SEL & =0XFE
- Output mode (P1DIR bit 0 = 1):
//P1DIR=0x0000 0001
P1DIR |=0x01
- Level is low
P1_0 =0
Summary: set to 0 and set to 1 or
- Input states: on and tristate pulldown (ADC acquisition)
on the pull-down is 0, 1 tristate
particular is dependent on the drop-down high P2INP three: a pull-down, pull-0:
The fifth bit corresponds to: P0 Group
VI-correspondence: P1 group
seventh bit corresponds: P2 Group
note:
P2SEL low three configuration: P2_0, P2_3, P2_4
P2DIR low three configuration: P2_0, P2_3, P2_4
P2INP low three configuration: P2_0, P2_3, P2_4