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 znp spi problem

Other Parts Discussed in Thread: CC2530, Z-STACK

i am trying to interface cc2530 custom made DVK with my AVR atmega8 controller as ZAP, i already interfaced this DVK with C8051F340 before successfully and now i am willing to port the application code on my ATmega. i am using SPI in the ATmega everything seems to be fine from the controller side on my logic analyzer but the problem is that the MISO line always change to zero at the moment i send the CS to the CC2530 here are the readings from my logic analyzer

this is the system induced reset command, channel0 show the reset where after the reset the cc2530 pulls the slave ready low as expected

next step i send 3 byte poll commands of zero and then check if slave ready is high, if it's ok i read 9 bytes of the reset call back functions which unfortunately are all zeros

here is zoom in for the first 3 bytes i send for the poll command

and here is zoom in for the 9 bytes i am supposed to read which are all read as zeros

  • Hi,
    Have you also checked if the MRDY and SRDY lines are connected and working as explained in the ZNP Interface Specification document section 2.2. This section provides better description for the SPI interface at C:\Texas Instruments\Z-Stack Home 1.2.1\Documents\API\CC2530.
    Also (you may already have) have you configured the ZNP for SPI mode correctly? see section 2 of the ZNP Interface specification document.
    Regards
  • I did and I couldn't know where the problem is, I used 8051 controller before from silabs and it worked using spi with cc2530. with the atmega I used uart and it's working now but not using spi