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.

New to TI CC2530

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

I started working on a project for my graduation we are using TI CC2530 and TiMac software stack. please advise me what are the required skills and knowledge I need to possess to be able to work efficiently with this development kit.

  • You will need a good knowledge of C programming language and to thoroughly read and follow users guides.

    I would suggest that you start be setting up the MSA (Mac Sample Application) on 2 SmartRF05+CC2530. The documentation will describe this. You can start by download the SW from here:

    http://www.ti.com/tool/timac

    Once installed you should read the MAC User's Guide - CC2530.pdf in the Documents folder.

    Once you have this up and running look through the code and read "Mac Sample Application - Software Design.pdf" to figure out how the SW works.

    From there you can come up with some objectives for your project and change the TIMAC MSA SW to realize these objective. The API documents in Documents/API will help in developing new SW for TIMAC.

    Good luck!

    Regards, TC.

  • Thanks for your reply. 

    I already downloaded and debugged the Mac Sample application on the 2 SmartRF05 boards seamlessly without any problems. Just wanted to make sure if a good knowledge of C programming is enough or as well I should understand 8051 Micro-controller Inside out, because I am finding difficulties to modify the sample application code to benefit from timer 2 and extract hardware timestamps. 

  • Yes, this does depend on the project you undertake, something simple like sending data on top of the TI MAC API would only require knowledge of C to change the SW. Acquiring data to send would require some knowledge of HW and the Device. You can find the user guide and data sheet from http://www.ti.com/lit/gpn/cc2530 and http://www.ti.com/product/CC2530/technicaldocuments#doctype6

    I would recommend that you steer clear of Timer 2, this is critical to MAC execution. You can use the OSAL timer if you can live with granularity >1ms. If you need better granularity you could use a HW timer. You can find a working hal_timer.c for the CC2530 in Z-Stack Lighting 1.0.2\Components\hal\target\CC2530PMP4712 downloadable from http://www.ti.com/tool/z-stack (Z-STACK-LIGHTING).

    Regards, TC.

  • I am seeking a granuilty of few nano seconds, so the OSAL timer wont be enough. If you please can advise me of any hardware timers that are compatible with the kit I am using.And I actually was reading about the timer 2 and how it uses the 32 MHz crystal to timestamp the frames received and sent depending on the SFD domain was hoping I could benefit from it for my project, but if its critical for the MAC I would try other viable options.

    Thanks 

  • Then yes you should use Timer 1, the drivers I mentioned are compatible with the kit and configure timer1. The application uses this for driving a PWM, but you should be able to use the driver to set up the Timer and read it for a time stamp:

    "If you need better granularity you could use a HW timer. You can find a working hal_timer.c for the CC2530 in Z-Stack Lighting 1.0.2\Components\hal\target\CC2530PMP4712 downloadable from http://www.ti.com/tool/z-stack (Z-STACK-LIGHTING)."

     

    Regards, TC.

  • Thanks and what is the accuracy of this clock 

  • It is a 16b timer that can run at 1953.125 Hz and the highest is 32 MHz. The best you will get is 31.25nS granularity and it will count from 0-2.048ms. However there will be a latency in reading the timer to get the time stamp.

    The HW timer is described in section 9 of  http://www.ti.com/product/CC2530/technicaldocuments#doctype6

    Regards, TC.

  • Thanks for your help, but just one last question are the libraries and functions included in the Z-stack lighting 1.0.2 enough to start with my own project. 

  • Hi Ali,

    Yes, Z-Stack is enough to start your project.