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.

TMS320F28335: TMS320F28335: F28335 SPI slave mode with MCP2210 breakout module.

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hello to all,

I am trying to operate a TMS320F28335 as a slave using SPI communication with my laptop and an MCP2210 breakout module.

In this situation, is there any example code for the F28335 that I can refer to?

Additionally, would there be any issues with using my setup (1 DSP, 1 laptop, 1 MCP2210) for SPI communication between the DSP and the PC?

Any recommendation will be highly appreciated.

Best regards.

  • Hello,

    All of our SPI examples are available in the C2000Ware SDK: C:\ti\c2000\C2000Ware_5_02_00_00\device_support\f2833x\examples

    There are several loopback examples that can be used as reference or modified to your application. Please refer to these for examples of SPI communication and the typical SPI configuration initializations.

    Some things to pay attention to are

    • The initializations (particularly the FIFO or nonFIFO settings as well as interrupt settings if using these)
    • Making sure you have your 4 SPI line connections in hardware and configure them in software.
    • Debugging, it is always helpful to scope the 4 lines first to help determine the cause of any issues or to verify it is working properly.
    • I would also suggest using internal loopback mode to check that your configurations function correctly within the F28335 device as well.

    Best Regards,

    Allison

  • Hello, Nguyen.

    Thank you for your response. Thanks to you, I found the example file!

    I have two more questions:

    1) I want to operate the F28335 DSP as a slave so that when a value is input from the PC, the output of the DSP's GPIO pin is controlled via SPI communication. Can this be achieved by modifying the example code slightly?

    2) Also, if I need to modify the code, which C file should I modify in the attached picture? The example file contains multiple C files, so it is confusing.