Quick overview of what I'm trying to do:
I'm working on a design where a BQ24161 is used for charging the battery and power path management. If the system is shut down, a downstream regulator is turned off, effectively killing the system (BQ24161 stays alive through the battery). The system can be turned on using a power switch or by plugging in an external power source. This is done by enabling the downstream regulator. In order to power up when an external power source is plugged in, the BGATE signal of the BQ24161 is used. The idea is that BGATE is low (connecting the battery to V_SYS) when the system is powered off. When an external power source is plugged in, BGATE will go high to disconnect the battery from V_SYS and use the external power for V_SYS instead. BGATE going high will enable the downstream regulator.
This is the problem I'm having:
The above mentioned procedure works ok, except that in some cases, plugging in an external power source will NOT power the system up. After running a few experiments, I found that if I put the BQ24161 into High-Z mode before shutdown, it will always power back up, but only in the next 30 seconds (before the watchdog timer expires). After that, the charger goes into DEFAULT mode and plugging a power source in will not result in BGATE toggling or changing. In DEFAULT mode all register settings are reset, meaning that the charge regulation voltage goes back to 3.6V. Therefore, if the battery voltage is above 3.6V when an external power source is plugged in, the charger won't attempt to charge it.
Questions:
- Is what I'm trying to do feasible? If not, what would be a good solution without adding a lot of external parts?
- Is there a way to keep the BQ24161 in High-Z mode even when the host turns off? What I'm seeing right now is that it goes back into the DEFAULT state 30 seconds after the host powers down. I'm using both the _CD pin and the internal HZ_MODE bit.
- General question about High-Z mode: Shouldn't the charger be in and stay in High-Z mode when the system is completely powered down? It seems to me that this is a major drawback that it will go back to the default state 30 seconds after the host powers off. This is where I would think High-Z would be needed the most. Or am I misunderstanding the purpose of High-Z?
Any feedback would be greatly appreciated.