Balancing on bma7418

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

Balancing on bma7418

101 Views
blo
Contributor I

I am trying to configure balancing on BMA7418 using the provided CDD. The overall goal is for the application SW to request which (if any) cells should be discharged at any given time and for the CDD to configure the BCC accordingly.

In tresos I have enabled the "Enable BAL feature" and am now looking at the api of the CDD. We have Bcc_D1xx_BAL_SetGlobalConfiguration and Bcc_D1xx_BAL_SetChannelConfiguration.

I assume we want to enable all balancing in Bcc_D1xx_BAL_SetGlobalConfiguration one time and then at runtime configure the actual balancing using Bcc_D1xx_BAL_SetChannelConfiguration, is this correct?

Bcc_D1xx_BAL_SetGlobalConfiguration takes struct Bcc_D1xx_BalConfigurationType. Should we use FullEvenBal/FullOddBal or BalChannels(0/1)En? What is the point of TimerBasedBal, PreBalTimer and GlobalBalTimer?

Bcc_D1xx_BAL_SetChannelConfiguration takes struct Bcc_D1xx_BalChannelConfigurationType, Do I just give the channel id(not bitmasking possible?) and the pwm? what is the resolution of the timer?

If there is sample code for balancing available that would be great, I could not find it in the delivered CDD

Labels (1)
Tags (1)
0 Kudos
Reply
0 Replies