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.

CC2530: How to remap USART SPI P1.4

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK, Z-STACK-ARCHIVE, MSP430F5529

Hi,

I have a Zigbee module that does not bring out CC2530 P1.4 (SS) to the module I/O.  Is there a way to remap the SPI SS from P1.4 to  P0.2 and keep the other SPI pins on P1 (P1.7, P1.6, P1.5)?

Thanks,

Ed

  • SPI SS is a GPO control and it should be no problem to use P0.2 instead of P1.4.
  • Hi Ed,

    What stack and project are you using? As a warning, Z-Stack 3.0.1 does not support SPI for the ZNP but it is configured to control a LCD.

    Regards,
    Ryan
  • Hi YiKai,

    So I can use P0.2 with P1.7, P1.6, P1.5 to complete the SPI interface?  I don't need to switch all P1 pins to P0 pins as a group?

    I am configuring the SPI interface as slave mode because it is connected to the MSP430 device.

    Please confirm if my understanding of what you are saying is correct?

    Thank you,

    Edward

  • Hi Ryan,
    I am using Z-Stack 2.5.1a and I am connecting the MSP430 to CC2530 over the SPI interface (ZNP interface). Why would the Z-Stack 3.0.1 remove the ZNP interface, how would one connect a MSP430 to it?

    Thanks,
    Ed
  • Z-Stack 3.0.1 still has ZNP but it only uses UART for communication.
  • Hi Ed,

    Configured as a SPI slave, a four-wire interface is required with the slave-select (SSN) pin as an input to the SPI. You cannot swap between Alt pins on USART X either. You will therefore either need to use P1.4-P1.7 (Alt2) or P0.2-P0.5 (Alt1) for USART 1 SPI. You might also investigate USART 0 SPI Alt2 (P1.2-P1.5). Refer to znp_spi.c for more register details.

    Z-Stack 2.5.1a is extremely old and I highly recommend that you use one of the stacks available in Z-STACK or Z-STACK-ARCHIVE.

    Regards,
    Ryan
  • Hi Ryan,

    Thank you for your response, what you said makes sense.  I also find it hard to believe some of these Zigbee modules do not support SPI interface and instead are UART (RX/TX).  I find the SPI interface a much better interface for the MSP430F5529 device as the SPI master.  I will look at a newer Z-STACK since I need to over-write the module CC2530 image to enable SPI ZNP interface.

    Regards,

    Ed