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.

How to get input from S2 button of SmartRF05e​b?

Other Parts Discussed in Thread: CC2530EM, CC2530

Hello,


I am a newcomer of CC2530 Development Kit: include two SmartRF05eb Rev 1.8.1 and two CC2530EM. I have tried TI's example: "light_switch - srf05_cc2530_91". I found the program use MCU_IO_GET(HAL_BOARD_IO_BTN_1_PORT, HAL_BOARD_IO_BTN_1_PIN) to get input from Button S1, and HAL_BOARD_IO_BTN_1_PORT = 0, HAL_BOARD_IO_BTN_1_PIN = 1. So it read input from P0.1 to know whether Button S1 has been pushed down.


My question is how to get input from Button S2, what is the port number, and what is the pin number?

I have read SmartRF05 Evaluation Board User’s Guide, and CC2530 Development Kit User’s Guide. But I could not get those information. Where could I get this kind of information?


Thank you very much for your help!


Best regards,
Pinocchio

  • Hi Pinocchio,

    S2 on SmartRF05eb isn't connected directly to the CC2530em.

    However you can connect it manually in the following way:

    1. Locate P20 header on your SmartRF05 evaluation board, pin #16 connected to S2.
    2. Use the cc2530DK user's guide schematics section (appendix C) to locate some
      cc2530 GPIO that isn't being in use by hardware or application.
      The interconecctions between the CC2530em and SmartRF05eb are: P1<->P5,
      P2<->P6 (for P1 and P2 go to sheet #1. For P5 and P6 go to sheet #5). 
    3. Place a jumper to connect pin#16 on P20 to the selected pin located on P20, or
      p18 headers.

    In case you need more information about finding the interconnection between the

    CC2530em and SmartRF05eb, please let me know, I'll try to help you.

    Hope this helps,

    Br,

    Igor

  • Hi Igor,

    Thanks a lot for your precious advice. I will try to implement the jumper connection and try to GPIO setting as your direction. I will come back again when I have questions. Thanks!

    Best regards,

    Pinocchio