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.

Problems about SPI and I2C interface

Hello everyone,

    There are two C6678 DSPs on my board.

   1.  The SPI  interface of two DSPs  are connected directly, which is set in the FPGA program.

 I want to transfer data between two DSPs through their SPI interfaces.

Can it  be implemented ? If the answer is Yes, then Could you give me some directions ?

Also, Are there any usful  code I can refer to? 

    2.The situation of I2C interface is the same with SPI. That is, The I2C  interface  of two DSPs  are connected directly.

 I want to transfer data between two DSPs through their I2C interfaces. Can it  be implemented ? If the answer is Yes, then

Could you give me some directions ? Also, Are there any usful  code I can refer to? 

    Hope someone helps. Thank you in advance.

Regards,

Nuoxi

  • Nuoxi,

    For SPI, since SPI module in C667x device only supports master mode, you may not connect two C6678 via SPI directly for the data transfer (SPI bus does not support multiple masters).

    For I2C, you should be able to connect multiple C667x devices to I2C bus. The section 2.2 in I2C User Guide (SPRUGV3) has some example diagrams for the connection.

    And for the programming reference, the C6678 PDK platform library should have some coding example for the I2C module. 

    Please take a look at the I2C source files in "C:\ti\pdk_C6678_xx\packages\ti\platform\evmc6678l\platform_lib\src".