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.

joy stick connected to which port pins in SRF05EB

Other Parts Discussed in Thread: CC2530, Z-STACK

hi all,

I am using z-stack 2.3.1-1.4.0 and SRF05EB. i am using CC2530. I want to replace joy stick on the SRF05EB with my customised hardware. I went through the code and also the schematics of the SRF05EB as well as CC2530. i could not get to which PORT PINS is the JOY STICK ( up, down, right, left) connected to.

Pl. help me.

thanks in advance.

Regards,

Mahesh KV

  • You can find references for Joy stick from swru210a.

  • hi Yikai chen,

    I went through the document, but does not mention to which port pins the joy stick is connected.

    It mentions only up to EM connectors. P5 and P6.

    From here to which port pins of the CC2530 are these routed.

    Thanks,

    Mahesh KV

  • In my previous post, you can find the following descriptions in section 6.4 of swru210a. Please also refer to the hal_key.c in your project will show you the implementation details.

    6.4 Joystick

    The joystick detects five positions (centre, up, down, left, right) and one event (pushed). In case of moving the joystick from its centre position or pushing it, 5 discrete signals can be used to distinguish what happened. The discrete signals are routed the EM connectors. See section 0 for details.

    Note that not all EMs have access to all signals on these connectors (depending on pin-count). In order to still have the possibility to use the joystick, an analogue joystick level signal was implemented in order to save the number of pins required on the MCU.

    The two aggregated signals, JOY_MOVE and JOY_LEVEL, can be used to detect a joystick event. JOY_MOVE is high whenever the joystick is moved away from the centre position, including pushing. The other signal, JOY_LEVEL, is a voltage level signal that gives different values depending on the current position of the joystick. The table below shows these values. Note that the voltage levels are relative to the voltage on the board. 

  • Hi Mahesh,

    For the last part of the connection (from P5 and P6 and to the CC2530) you should have a look at the CC2530EM schematic. The P1 connector on the EM goes to the P5 socket on the EB.

    Cheers,

    Fredrik