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.

Smart RF05 BB GPIO use

Other Parts Discussed in Thread: CC2530EM

I am working on ZDK and I want to develop my own application to be burnt in RF05BB. I have studied that there are five GPIO on the two headers of the board available. I want to use them as input port pins. Please help me what changes i have to made in "Sensor Demo" software, so that i can read few limit switches data into CC2530EB.

Thanks a lot,

 

Mashood

  • Hi Mashood,

     

    First of all please refer to the CC2530 ZigBee Development Kit User’s Guide, appendix A (schematics)

    sections 1 and 4, there you can find and learn the interconnection of cc2530EM with smartRF05BB, which

    will help you to locate free GPIOs.

    Secondly, you should be referencing to the cc253x user guide, section 7 to understand the confguration/s

    to be made in order to use specific pins as inputs or outputs.

    In other words, in order to use some pin as input, you should be configuring (setting relevant register) this 

    pin as input with pullup/puldown... Also you should be doing the configuration process somewhere in the

    initialization section of your code.

    Once all the pins configured as you want, you should be polling it for results, or set an interrupt to catch

    some event on specific pin (i.e a switch connected to specific GPIO).

     

    Br,

    Igor

  • Thanks a lot for your kind and prompt response,

    In fact,  I am in a learning phase now. I am using IAR workbench for 8051 along with TI ZDK. We have read the IO ports through IAR debugger but I couldn't understand the process of polling and interrupt.

    I have checked the state of Push Button P0.1 appears changing if i see the P0 port on IAR debugger. How can I trigger some task with this switch. I mean where should i write my code in "DemoSensor" program. I have also checked the P0.4 pin availabe on RF05BB.

    Please guide,

    Take care,

    Mashood