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: Discharging is not happening in bottom stack and 2 cells of Top stack in TMS570ls0714

Part Number: TMS570LS0714
Other Parts Discussed in Thread: EM1402EVM

Dear Sir,

we are doing active cell balancing in TMS570LS0714 PCb Board. DAC current value is coming proper if we changed current value in EMB VEST(0,2) function. During discharging, we are checking balancing in each cell. we have total 12 cells. top stack has 7 Cells.and bottom stack has 5 cells.During sending SPI command to EMB1428 chip, in top stack cell 1 and cell 2 Mosfet is not turning on.  Remaining 5 Cells Mosfet are turning on properly. EN and Done signals are also coming properly for 5 cells in top stack.Bottom stack, all cells Mosfet are not turning on properly. I am attaching my code and schematic diagram. please give suggestions. we are waiting for your reply.

Thank you,

Krunal desai4478.Schematics_New.pdf0550.23-7-LCU-SPI.zip

  • Hi Krunal,

    Can you clarify which board you are using on the active cell balancing side? Is it the EM1402 EVM or your own designed board? The TMS570 board has only the microcontroller on it, not the active cell balancing chipset.

    Regards,

    Leslie

     

  • Dear Leslie,

    We have designed our board which consist of the EM1402EVM + TMS570LS0714 IC.It is single board which consist of the TMS570Ls Microcontroller with EM1402EVM Board. Please give your valuable feedback to us.

    Thanks and Regards,

    Krunal Desai

  • Hi Krunal,

    We are currently aware of bugs that exist in the sample code provided, and it will therefore soon be deprecated. This unfortunately means that support for the software on this device is currently limited.

    With that said, I have reviewed the code and have a few suggestions. I see your code is based on the example code provided by TI, but that example code was developed for the EM1402 EVM which support balancing for 16 cells and the board has 3 EMB1428 devices to be able to support the large number of cells. 

    From your description, seems like you are only using 12 cells and 2 EMB1428 devices with cells switches distributed a different way from our example code and EVM. Therefore, you need to modify the code to control only 2 EMV1428 devices and their corresponding switches. The EMB_Start() function you have on your EMB1428.c file won't work for you application, and that is probably why you are not seeing the behavior you expect. The parameters you are passing to the EMB_Start_Command() function are incorrect:

    • The EMB_Start() function on your code is using nCS_BOTSTACK, nCS_MIDSTACK and nCS_TOPSTACK constants (defined in EMB1428.h), which define what chip to select: either the bottom, middle or top EMB1428.
    • In your application you are only using 2 of these devices, so you need to fix that. Then, you are defining 16 cases for 16 cells, but you only need 12 cases. 
    • The 3rd parameter value that you are passing to the EMB_Start_Command() function is also incorrect. The number next to "direction|" needs to correspond to the switch on the EMB device being used. 

    I recommend you review these as well as other functions you have on the EMB1428.c file to make sure your code is written correctly for your 12S application.

    Best regards,

    Leslie 

    [If I was able to assist you with your issue, please press This resolved my issue. Thanks!]