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.

BQ40Z50-R1: Is there a way to detect mains power is connected when not charging?

Part Number: BQ40Z50-R1

Hi Folks, 

I am already able to detect if a device is charging, but is there a method to detect a device is connected to external power but not charging?

Some examples: 

Battery is 100% charged, and connected to an external power source.

Battery is <100% charged, and connected to external power, but not charging.

Thanks for your suggestions. 

  • You can check the OperationStatus()[XCHG] bit, ChargingCurrent() and ChargingVoltage(). 

    100% RSOC usually occurs when a valid charge termination is detected and then the CHG FET turns off. OperationStatus()[XCHG] will be set to 1, which means charging is disabled. Both ChargingCurrent() and ChargingVoltage() should return 0.

    Andy