Other Parts Discussed in Thread: BQ34Z100
Tool/software:
Hello,
My project involves a system using a BQ76952 AFE and a BQ34z100 gauge. In this system, I'm communicating with the AFE and the gauge using an MCU. Communication is done via two different I2C channels.
I have no problems with this communication using the gauge, but I'm having some issues with the AFE.
1) I want to read the charge/discharge currents via the AFE. Should I read the CC2_Current value?
2) When I read the CC2_Current value via the AFE, I get the correct (as expected) value for negative currents, but I'm having problems with positive currents. When I charge the board with a positive 8A current, the AFE reads inconsistent values with constantly changing values. What could be the reason for this? The current readings are analyzed both through BQ Studio and the MCU. Both show the same incorrect result.
3) Why does BQ Studio display incorrect positive current values when communicating via a separate I2C channel?
4) When I run the same setup with different code, I see that the AFE is reading positive currents correctly. Therefore, I don't think there's a problem with the setup. But how could an MCU code that communicates in the same way distort the current values displayed in BQ Studio?
By the way, I'm reading all AFE values correctly but only the CC2_Current value is showing this error.
I have also added the log table I got from BQtudio below.
When I read the correct value, the value of CC1 and CC3
CC3Current | CC1Current |
874 | 874 |
879 | 879 |
884 | 885 |
885 | 885 |
When I read wrong value CC1 and CC3 value
CC3Current | CC1Current |
1037 | 884 |
776 | 977 |
897 | 1051 |
813 | 1016 |