I am using a buck converter with output commanded by a micontroncontroller to charge a lithium ion battery from one to three cells (3.0 to 4.2V, 6.0 to 8.4V or 9.0 to 12.6V) I would like to protect the out from reverse polarity conection of battery and reverse current.
I could use a simple diode but I want to avoid the voltage drop and loss of energy, so I am trying a solution with MOSFET.
I think this MOSFET works as protection when battery is connected wrongly with reverse polarity. But what happens when polarity is correct, but the battery voltage is upper than voltage generated by the buck converter?
For example, just at the beguining when battery is plugged the out of buck converter is zero volts until the battery is correctly identified.
This P-MOSFET would protect for reverse current?