Hello,
We're trying to get synchronous current and voltage readings from the BQ. We got voltage working using the equation in the TRM, but we can't get the current to work properly. This is the equation I've been using:
Cell # current = ((cell # current adc values) - ((board current offset) / (coulomb counter offset samples))) * CC Gain
When reading board current offset and coulomb counter offset samples, we find that board offset is 0, so the equation essentially simplifies down to (cell # current ADC values * CC Gain). But when we do this, we get something wildly off. We played around with it and found that this equation came very close to our actual current reading, but it still had a 10% error:
Cell # current = adc value / CC gain
I'm not sure why dividing worked better, but it did.
Note: I've tried this with just the 32-bit adc value and also using the middle-bytes of the adc value. The most success I got was with the 32 bit value and not the 16 bit value.
Our CC Gain value is 15.9536 because we're using a 0.5 mΩ sense resistor.
Also, we're reading CC3 current as well, and that is very accurate. It's just the ADC conversion we're having trouble with.
Any ideas as to why it's not working?