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.

TMS570LS3137: Establishing SPI interface between McBSP of TMS320F28335 and MibSPI of TMS570LS3137

Part Number: TMS570LS3137
Other Parts Discussed in Thread: TMS320F28335,

Hi,

We have configured McBSP-A in TMS320F28335 as SPI master to stream the data to MibSPI-3 in TMS570LS3137 as SPI slave using compatibility mode.

We established only 3-wire communication i.e., SIMO, CLK and CS as the commn., is uni-directional.

We are able to transmit the data from McBSP-A of 28335 @ 2.5MHz Clock through DXR-1 register but couldn't receive data in SPIBUF register of 3137 MibSPI-3.

Please suggest if any issues/limitations are there between the two interfaces and let us know if clock polarity can be same across both the controllers.

  • We are streaming 0xAA55 (16-bit data) continuously from McBSP-A of 28335 using DMA and able to see the CLK, CS and DATA on the oscilloscope but couldn't receive the data at 3137 (slave) side.
  • Hello Satya,

    Unfortunately, I don't see any information regarding how you have configured the MibSPI on the LS3137 device. For certain, it can operate up to a clk of 25MHz so the clock speed is not an issue. Also, it can be configured for positive or negative clock polarity so this shouldn't be an issue if you have configured it properly. If you can share more information regarding the configuration of the mibSPI, perhaps we can then identify what is missing. Also, if it is possible for you to share your project for the LS3137 including the .hcg and .dil files, we could check your code configuration and steps you are taking to receive the data as well.
  • Hello Chuck Davenport,

    I am providing the configurations below :


    TMS320F28335 - McBSP Channel- A configuration :

    Master mode - 1,
    Data word length - 2 (16 bits),
    Clock divide - 14 (2.5 MHz),
    Clock polarity - 1,
    Clock phase - 2,
    Frame Sync Polarity - 1

    TMS570LS3137 - MibSPI channel-3 configuration :

    We are using External clock,
    Prescale = 1F,
    Clock Polarity = 1,
    Clock phase = 1,
    Chip select number = FD (CS1),
    Functional Pins : 1(CS1) , SIMO , CLK,
    DMA compatibility mode = 1

    Please suggest at the earliest.
  • Thanks Chuck for your kind response.

    We are able to receive the data in MiBSPI-3 of 3137 controller now.

    By setting the clock phase to 0 in MibSPI-3 and polarity to 1, we are able to receive desired data.