Other Parts Discussed in Thread: BQ25798, BQ4050, BQSTUDIO
Hi, I am working on a product where the CE Pin is always pulled low, and we need firmware control over the charging on/off conditions for battery. In the middle of the charge cycle, if I write EN_CHG=0 in REG0F_Charger_Control_0 register, then the charging doesn't stop. The REG0F_Charger_Control_0 register reads back as 0xE1. Subsequently, setting the register value to 0xA2 doesn't work and continues to report 0xE1. The only way to recover is to disconnect the power adapter and battery.
What is the correct approach to disable charging thru I2C while power adapter is plugged in and battery is being actively charged and CE pin is hardwired to always be low?