I'm working with the C5515 EVM and I'm trying to read the part number from Transciever (cc250) via SPI bus.
from some reason my code doesn't seem to work .
can someone send me an example code for DSP SPI interface?
Thanks in advanced
Talmor
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.
I'm working with the C5515 EVM and I'm trying to read the part number from Transciever (cc250) via SPI bus.
from some reason my code doesn't seem to work .
can someone send me an example code for DSP SPI interface?
Thanks in advanced
Talmor
Hi Talmor,
Have a look at the Chip Support Library examples for the SPI peripheral: http://focus.ti.com/docs/toolsw/folders/print/sprc133.html
Once installed the example is located under TMS320C55XXCSL-LOWPWR\c55xx_csl\ccs_v4.0_examples\spi\CSL_SPI_Example\
Hope this helps,
Mark
According to the cc2500 data sheet CSn pin has to be toggled before sending the reset STROBE to via SPI bus.
I'm writing the code on the EVM c5515 DSP . should I toggle the CSn of teh DSP side or it happened automaticaly once I'm sending the strobe command
Thanks
Talmor
Talmor,
Please review the SPI user's Guide first. http://focus.ti.com/lit/ug/sprufo3/sprufo3.pdf
Based on frame size, CS pin will be automatically toggled. In order to toggle CS at every word, you need to set frame size to 1 (FLEN =0).
Regards,
Peter Chung