The algorithm for this circuit is that the blocking MOSFET must be disabled if the battery voltage exceeds the battery charger output voltage. In this circuit MN1 is connected in the low side of the ...