Switching and protecting batteries from external power
my device can work from external power source as well as from two AA batteries, so voltage in this case is 3V, but external supply is 5v. I need to protect my circuit and power supplies in case of connecting all power sources