@license MIT License
Copyright (c) 2026 lewis he
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Author
- Lewis He (lewis.nosp@m.he@o.nosp@m.utloo.nosp@m.k.co.nosp@m.m)
- Date
- 2026-04-09
BQ25896 Power Management Interface
This class provides control over power management functions including:
- System minimum voltage (VSYS minimum during load transients)
- Input voltage limit (VINDPM) - protects weak adapters
- Input current limit (IINDPM) - prevents adapter overloading
- OTG/Boost mode - supplies power to external USB devices
Management Features
VINDPM (Voltage Input Dynamic Power Management)
- Protects the input source (USB adapter) from being overloaded
- When VBUS voltage drops to VINDPM threshold due to high load, the charger reduces input current to prevent adapter collapse
- Can operate in relative mode (offset from VBUS no-load) or absolute mode (fixed voltage threshold)
IINDPM (Input Current Dynamic Power Management)
- Limits the current drawn from the input source
- Prevents drawing more current than the adapter can provide
- The ICO (Input Current Optimizer) feature can automatically determine the maximum safe input current
OTG/Boost Mode
- Converts battery power to 5V on VBUS to power external devices
- Useful for power bank applications
- Requires no VBUS input (must be battery powered)
- Can provide up to 2.15A depending on configuration
Parameters
- System minimum (VSYS): 3000-3700mV (100mV steps)
- Input voltage limit (VINDPM): 3900-15300mV (100mV steps)
- Input current limit: 100-3250mA (50mA steps)
- Boost voltage: 4550-5510mV (64mV steps)
Quantization
- Note
- All setter methods will automatically quantize input values to the nearest valid step if they do not match exactly.
Mode Parameters
- Warning
- When enabling boost mode, ensure:
- No USB cable is connected to VBUS (input)
- Battery voltage is above minimum threshold (2.5V default)
- Charger is disabled or in proper state Enabling boost while VBUS is present will fail and return false.
- See also
- BQ25896Power.cpp for implementation
-
BQ25896Regs.hpp for register definitions and parameter ranges
-
BQ25896RegisterMap.md for detailed register descriptions
Definition in file BQ25896Power.hpp.