This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Basic RF in CC2530

Other Parts Discussed in Thread: CC2530, TIMAC, SIMPLICITI, Z-STACK, CC2510

Hello,

Maybe someone could help or guide me on how to start a basic RF transmission on CC2530? I have seen the SimpliciTI, TIMAC, and Z-Stack but I think I don't need (for now) some of the Zig-Bee protocols and requirements like security, association, etc. I would like to know the simplest code, only to broadcast some bytes from one CC2530 module and receive it into another CC2530. I would like to implement it just by manipulating the CC2530 registers as explained on the CC2530 User's Guide.

I don't like abstractions and I think I can learn faster the ZigBee codes implemented by the software stacks by learning the basic RF routine. Is it hard to go on this way? Thanks.

JC de Dios

  • See http://focus.ti.com/docs/prod/folders/print/cc2530.html#toolssoftware CC2530 Software examples, specifically those in swrc135b[1].zip\source\components\radios\cc2530\hal_rf.c is a good start. This breaks down each step and has good comments.

    The files at http://www.ti.com/litv/zip/swrc117 are for the CC1110/CC2510. The CC2530 and CC1110/2510 share much the same 8051 architecture but have different Radios so I'm NOT saying this code to useable as is, it is not.  I still find these files useful for the CC2530 since these files are straight forward and written around the actual register labels without "nested" #defines, functions, and other isssues with the HAL files related to ZigBee. They can provide a less abstract view of the commands to enable the basic functions of the device.  While they may help you write a short script to send and receive a packet or two and possibly be better able to decipher the hal files related to the ZigBee libraries they will not help you understand the ZigBee protocol. Step one is to get a good book on ZigBee.

    For reference the SimpliciTI code is much more readable than the Ti ZigBee code.

     

  • I would also like to point out the CC USB  firmware library located here:
    http://focus.ti.com/docs/prod/folders/print/cc2531.html#toolssoftware

    Even though intended for use with the USB devices, it also contains code for the non-USB versions as well (CC1110, CC2510, CC2530). This code is more point-to-point focus and use the lower layers of SimpliciTI (MRFI) only. Gives you the basic functionality you need at register level which you can dig into to understand how the radio operates etc. I would say this could serve as a good starting point in addition to what H Stewart wrote above. There is no need to re-invent the wheel.

    Best regards,
    Kjetil

  • Thanks! The basic_rf.c and hal_rf.c from the software examples are exactly what I need. Thanks again