Other Parts Discussed in Thread: EV2400, BQ25710, BQ25703, BQSTUDIO
Hello, hope you are doing well,
I am working on a project which involves my micro-controller (nRF52) controlling the BQ chip directly over I2C with no fuel gauge IC. I have been able to write to, and read from the host controlled 'input current limit register' 0x0E. I have verified this by updating the charge current register to a low value, and then reading value of the 'input current limit in use register' 0x24. The value of this register is updating consistently with changes I make to the host controlled input current limit register.
I am confident I can read the registers of the BQ chip correctly because the values I have been reading for input current and vbus are consistent with the power supply I am using to charge the device. Once the register value is read my process is to shift, mask, scale, and add the minimum value to the value read from the register. For example, with a register value of 0x0100 corresponding to 100mA:
shift = 8
mask = 0x7F (should have no effect, included for consistency with other read values)
scale = 50
minimum value= 50
read value = 0x0100
shifted value = 0x01
masked value = 0x01
scaled value = 50
scaled value plus minval = 100
(there seems to be some ambiguity between the data sheet and Battery Management Studio as to whether 0x0000 should be interpreted as 50mA or 0mA, but this difference is much smaller than my error).
In practice, however, the BQ chip seems to completely ignore whatever value is set in either input current register.
I have tried two different power supplies: one has a settable current limit, the other current limit is simply 2 amps. When the settable power supply is connected and I place a heavy load on the power system the settable power supply goes right up to its current limit despite the BQ chip's current limit being set well below the supplies limit (2.5A limit on the supply with 500mA input current limit programmed to the BQ chip). The 2 amp power supply simply stops delivering current when the system is under heavy load, and all current is supplied by the battery until the heavy load on the system is removed.
I'm aware it's rather inelegant, but relying on the current supply limit of the power supply isn't the end of the world for my design. What I'm afraid of is someone connecting a power supply with a higher current rating that my input power path can support to this device. I would like the BQ chip to limit this incoming current to a safe amperage.