Simulink Model for S32k144 and MC33771B BMS Cell balancing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Simulink Model for S32k144 and MC33771B BMS Cell balancing

803 Views
Joe_08
Contributor I

Hi,

Im currently trying to use a S32k144 and MC33771B CMSs to develop a BMS ecosystem for a formula student team. Although each CMS can read up to 14 cells, each of our battery segments is a 12s configuration and therefore each CMS reads 12 cells. In accordance with the MC33771B documentation I have made the hardware changes required to make this work, ie shorting cell sense pins 4-6.

I am able to read the cell voltages and temperatures successfully but have run into issues when cell balancing. Since our Accumulator uses multiple CMSs we use the S32k144 to individually cell balance. When enabling cell balancing the status feedback is 0u (success) but nothing happens. We are getting fault status for overvoltage and undervoltage which is weird because the cell voltages are all within the required range, minus the shorted cells. I assume its these faults that are causing the CMSs not to balance. To combat this I tried updating the fault mask registers but I am unsuccessful.

Im not sure if I'm updating the registers correctly or its an issue with the generated code. I did notice that the register write block has an issue, it states in the Mathworks documentation and the MC33771B documentation that the register value needs to be 16bit but the block only allows 8bit data type. Is there a cell balancing example that I can reference, and is there a fix for the register write block? I have been trying to get this working for Months now, so support is much appreciated. 

0 Kudos
Reply
0 Replies