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.

TMS570LS0714: Cell balancing not working using MIBSPI

Part Number: TMS570LS0714
Other Parts Discussed in Thread: EM1402EVM, , HALCOGEN

Hi,

I am doing Active cell balancing in TMS570LS0714. i am using EM1402EVM example code for the same.

In our design, we are are using two SPI communication. SPI2 we are using for DAC output and MIBSPI1 we are using for switch matrix IC(EMB1428).

We are able to send data for DAC output. but, While sending EMB_COMMAND from MIBSPI we are unable to get data.

i am attaching my project. kindly go through it and give me suggestion regarding HALCOGEN configuration settings and if there is any need to change API regarding mibspi.c. please guide us.

8156.LCU_MIBSPI.zip

Thank you,

Regards,

Gargi Pancholi

  • Hello Gargi,

    1. please make sure the signals mapping are correct: SPI_CLK, SPI_SOMI, SPI_SIMO, SPI_nCS
    2. Make sure the SPI_CLK is below the maximum clock the switch matrix can support
    3. Both master and device should use the same polarity and clock phase
    4. Both master and device should use the same charlen