Lithium battery charging circuit current detection
For example when the battery is at 10V and the charger is at 9V, the battery is not charging. The battery is charging when the current is flowing across the diode and produces a voltage drop. To detect if a battery is charging, the battery voltage must be less than or equal to the charging input.