Other Parts Discussed in Thread: BQSTUDIO, BQ4050, EV2400
Tool/software:
Hello,
I"m having some trouble setting the charging current of my BQ25731. I am trying to debug this in-circuit, and unfortunately do not have the eval board for this part or the USB/I2C adapter BQstudio needs to be able to interface with this directly.
I seem to be able to read/write all registers just fine, except for the Charge Current register (0x03/0x02). I am trying to set it to 5A, however, I am unable to even lower it to 128mA to simply demonstrate ability to interact with this register.
I believe none of the conditions that should reset this register are met.
- CELL_BATPRESZ going LOW (battery removal)
- This measures about 4.5V
- STAT_AC is not valid(Adapter removal)
- Screenshot below shows my debug printout showing this bit as (1) when charger is connected
- RESET_REG is asserted and reset all registers
- I am not asserting this and all other registers are maintaining values as I read the BQ25731 at 1Hz
- Charge voltage is written to be 0 V
- Screenshot below shows my debug printout showing this setting as 16800mV for my 4s battery which is correct
- Watch dog event is triggered
- ChargeVoltage is set and WDTMR_ADJ bits are cleared to disable the watchdog function almost immediately on startup
Here is a debug printout. "[CHRG] Charge stat ok: 1" refers to this output pin being high as read by this board's MCU.
Note that the reported ADC_VBAT and ADC_VSYS are a bit lower than reported by the separate BMS IC in the design (the BQ4050) - could this be symptomatic of an issue with my configuration? (ADC_FULLSCALE = 1, and I am using 64mV/LSB).
These transactions seem to be valid attempts to write to 0x02 and 0x03, but the readback shows the 0x0080 POR value reflected in the debug printout above. Note that these transactions are what I am using to enable the charger when +12V is applied to VBUS, hence also accessing Charge Option 0 MSB (0x01) and IIN Host (0x0E and 0x0F) to disable low power mode and ensure the IIN Host value is set to 8A.
Based on some reading on this forum it seems like the BQ25731 will reject settings that demand more charging output power than input power, so I have set the charger for a minimum voltage of 11V and an input current of 8A, and the behavior is the same. Are there any other conditions like this that I'm not considering that would somehow restrict writing the charge current?
Here is my schematic for reference. The 4s 21700 li-ion battery connection to VBAT is on another sheet.
Any insight would be greatly appreciated. I am hoping there is something simple or obvious I've just overlooked.
Thanks!