This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ25898: How to always set REG0D Bit [7] FORCE_ VINDPM to 1

Part Number: BQ25898


Hi,

Each time the USB is inserted/removed, the REG0D Bit [7] FORCE_VINDPM is "0" of default.

1) I always want to use FORCE_VINDPM="1," but could you tell me the appropriate time to set the REG0D Bit [7] FORCE_VINDPM?

2) Also, is there a way to always set REG0D Bit[7] FORCE_VINDPM to "1" even if the USB is inserted or removed?

Best Regards,

Nishie

  • Hi Nishie, 

    Thank you for reaching out via E2E. 

    Unfortunately there is no way to keep REG0D bit 7 FORCE_VINDPM = 1b at all times on the BQ25898 device. The device is designed such that VINDPM threshold is reset every time the input adapter is plugged in. 

    It is designed in this way to prevent a incorrectly set VINDPM threshold from preventing charge with an acceptable input source. For example, with FORCE_VINDPM = 1 and VINDPM threshold set to 8.5V for a 9V adapter if VINDPM was not reset at USB insert a valid 5V input supply would be considered below VINDPM and the converter would not start. 

    1) I always want to use FORCE_VINDPM="1," but could you tell me the appropriate time to set the REG0D Bit [7] FORCE_VINDPM?

    My best recommendation is to always write FORCE_VINDPM = 1 after an adapter is plugged in. FORCE_VINDPM will remain = 1 until the next time the USB input is inserted. An example firmware scheme would be to read PG_STAT bit in REG0B following an interrupt to host to check for adapter plug in. Once adapter plug in is confirmed set your desired VINDPM threshold in REG0D. 

    Best Regards,

    Garrett