Dear TI team,
I am trying to read the current from bq76952 to stm32 microcontroller , as per your given reference code we able to read the positive current by following function:-
float BQ769x2_ReadCurrent() // Reads PACK current
{
DirectCommands(CC2Current, 0x00, R);
return (RX_data[1]*256 + RX_data[0]); // current is reported in mA
}
and after some testing I found that,
during discharging(negative current) -> 65535 to 0 , we get counts and substrate that by the 65535 then we get the -ve current
during charging(positive current) -> 0 to 65535 , similarly we get counts , substrate that by the 65535 then we get +ve current
I have try all possible try from my side but not get the solution for the same please help me to overcome this porblem
thank and Regards