Skip to content

P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the Texas Instruments CC2500 transceiver chip

License

Notifications You must be signed in to change notification settings

avsa242/cc2500-spin

Repository files navigation

cc2500-spin


This is a P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the TI CC2500 2.4GHz ISM-band transceiver chip.

IMPORTANT: This software is meant to be used with the spin-standard-library (P8X32A) or p2-spin-standard-library (P2X8C4M64P). Please install the applicable library first before attempting to use this code, otherwise you will be missing several files required to build the project.

Salient Features

  • SPI connection at up to 1MHz (P1), up to 6.5MHz (P2)
  • Supports setting carrier frequency from 2,400,000kHz to 2,483,500kHz
  • Set common RF parameters: Receive bandwidth, IF, carrier freq, DC block filter, RX Gain (LNA, DVGA), TX power, FSK deviation freq, modulation (2/4FSK, GFSK, MSK, ASK/OOK)
  • Supports on-air baud rates from 600bps to 500kbps
  • Set number of preamble bytes
  • Set function of CC2500's GPIO pins
  • Optional address filtering
  • Options for increasing transmission robustness: Data whitening, Manchester encoding, FEC, syncword, CRC calculation/checking
  • Packet radio options: arbitrary payload lengths (1..255), fixed or variable-length payloads
  • Supports appending optional packet reception statistics to packet payload (RX role)
  • Supports setting frequency by channel number (0..255), and modifiable channel spacing
  • RSSI measurement
  • FIFO: Read RX, TX states, flush

Requirements

P1/SPIN1:

  • spin-standard-library
  • P1: 1 extra core/cog for the PASM SPI engine (none if bytecode-based engine is used)

P2/SPIN2:

  • p2-spin-standard-library

Compiler Compatibility

Processor Language Compiler Backend Status
P1 SPIN1 FlexSpin (6.9.4) Bytecode OK
P1 SPIN1 FlexSpin (6.9.4) Native/PASM OK
P2 SPIN2 FlexSpin (6.9.4) NuCode Runtime issues
P2 SPIN2 FlexSpin (6.9.4) Native/PASM2 OK

(other versions or toolchains not listed are not supported, and may or may not work)

Limitations

  • Frequency units in carrierfreq() is non-standard (kHz) due to overflowing spin's variable size limit of s32

About

P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the Texas Instruments CC2500 transceiver chip

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published