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.

SPI ZStack

Other Parts Discussed in Thread: CC2520, Z-STACK

Hi,

I am using SPI communication between MSP430 and CC2520, now I would like to communicate with some sensor also uising SPI.Do I have to make changes in initialization of SPI and what should I change and add in ZStack code?

Thanks in advance.

  • Hi Zivorad,

    You have to use another USI module to access to your sensor. You must configurate

    the USI to work with this kind of sensor.

    Launix.

  • Ok, but how it would be done in Z-Stack code? Can you tell me a little bit more about how it should be implemented?

    Thanks for help Launix.

  • Hi Zivorad,

    Sorry for the suggestion. I tried to answer your questions and I do not know how to remove it.

    I worked with an SDI-12 sensor. The communications protocol for this sensor is similar to RS-232. I could not use the source code from Z-Stack for this sensor. I wrote my own functions based on the microcontroller examples. There are two examples for SPI. This is the link: http://www.ti.com/litv/zip/slac151d

    I do not know if you can use the source code foro Z-Stack for you SPI sensor or device. The HAL Driver API.pdf has not reference to SPI protocol...

    A greeting,

    Juan Antonio