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.

CCS/TMDS570LS31HDK: SPI

Part Number: TMDS570LS31HDK
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Provide us examples on SPI

  • These are the given examples:

    1. example_mibspi_trigger_tick.c
    2. example_mibspiDma.c

    I would like to start with basic, Could you please provide us basic example on how to transmit and receive data to and from external device like port expander, display drivers etc.

  • Hi Rahul,

    I suggest to use standard SPI example as the starting point for your study: example_spi_Master_Slave.c

    5340.example_spi_Master_Slave.c 

  • Could you please provide us hardware connection for the same.

  • Waiting for reply?

  • Hello Rahul,

    The hardware connection is listed in the files:

    *   PIN Connections must be as Below
    *     ---------------         ---------------
    *     SPI1 ( Master )          SPI2 ( SLave)
    *     ---------------         ---------------
    *     SIM0             --->    SIMO
    *     S0MI             <---    SOMI
    *     CLK              --->    CLK
    *     CS0              --->    CS0
    *
    HALCoGen Configuration:
    *  ------------------
    *  GUI configurations
    *  ------------------
    *  1) Driver TAB
    *       - Select SPI2
    *       - Select SPI1
    *  2) VIm Channel 0-31
    *       - Enable SPI2 Level 0 and Level 1 channels.
    *  3) SPI2 TAB
    *       - SPI2 Global SubTAB
    *           - Uncheck Master Mode
    *           - Uncheck Internal Clock
    *       - SPI2 Port SubTAB
    *           - Uncheck DIR for CS 0
    *  3) SPI1 TAB
    *       - Have it default
    *  4) Generate Code.
  • Please specify port pin number for the following connection?
         ---------------         ---------------
         SPI1 ( Master )          SPI2 ( SLave)
        ---------------         ---------------
         SIM0             --->    SIMO
        S0MI             <---    SOMI
        CLK              --->    CLK
        CS0              --->    CS0
  • Hi Rahul,

    Please check the LS31x datasheet.