I'm able to read correctly all registers (VCs - TS - BAT-HI and BAT-Low and all other registers) but CC seems not correct.
when I read CC in continuous mode, positive values are ok (charging) and show correct number of mV on shunt,
but negative values (discharging) always first bit (MSB of CC_HIGH) is 0... so values go from 32767 downwards... (although the difference from 32767 - read value is a correct measure of the mV on the shunt)
the 2's complement should use the MSB as sign I think... am I wrong?
what am I doing wrong?
(I am using as host an atmega328p)