App note: The FET-OR connection for power supplies

Here is a reference design from Maxim how to built a circuit that would seamlessly switch to the secondary power supply if the primary fails. This power-supply sequencer senses a loss of the main supply voltage and, by controlling the two FETs, automatically switches the load to the secondary (backup) supply.