The Zigbee CC2530 and minimum system configuration register (1)

1.CC2530 Minimum system comprising:

  1. Crystal has two interfaces
    - a high-speed oscillator (typically 32MHz) of the low-speed high-precision crystal oscillator (typically 32.768KHZ)
  2. Decoupling capacitor (PIN_40) and a bias resistor (PIN_30)
  3. A reset circuit (PIN_20)
  4. Download Simulation (VCC, GND, RESET, P2_1, P2_2)
  5. RF circuit (PIN_25, PIN_26)
  6. A total of 21 general-purpose pins P0_0-P0_7, P1_0-P1_7, P2_0-P2_4.

  7. CC2530 minimum system.  lai

2. Configuration Register

For example: P1_0 provided:
  1. Ordinary IO (P1SEL of 0 = 0), the default is 0:
//P1SEL=0x1111 1110
P1SEL & =0XFE
  1. Output mode (P1DIR bit 0 = 1):
//P1DIR=0x0000 0001
P1DIR |=0x01
  1. Level is low
P1_0 =0

Summary: set to 0 and set to 1 or

  1. 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

Released five original articles · won praise 0 · Views 200

Guess you like

Origin blog.csdn.net/EAyayaya/article/details/104793137
Recommended