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.
Hi,
I am trying to use two f28335 development boards for SPI communication. Here one board act as Master and another board acts as slave. Could anyone help me by sending a sample code. It is very hard to understand the application note as there is no clear direction to make it work.
Thanks.
K.K
Hi K.K.P,
Which application note are you referring to?
Have you checked the SPI examples in C2000WARE (C:\ti\c2000\C2000Ware_x\device_support\f2833x\examples\spi_loopback)?
We do not have examples for the slave side of the communication, but you can modify the code for the Master to fit the slave side.
Note: Make sure to disable the internal loopback in order to do external communication.
Best Regards,
Marlyn
Hi,
Are you using the LaunchPad or ControlCARD platform?
Have you looked at the signals on an oscilloscope? This will help guide you were the problem is. First make sure you have a clean CLK signal coming the Master and that you are indeed transmitting something from the Master. Once you have verified this you can check to see if the CLK on the slave side is correct and that you are able to send data there, taking into account the SPISTE signal.
Also, it would be useful to observe the SPITXBUF and SPIRXBUF in the expression watch window to verify the values are getting written to the buffers.
Best Regards,
Marlyn