The output voltage of my DC/DC converter and my power supply both slowly descend. I believe this is due to capacitors being close to the output of each device.
I want to get an instantaneous, or as close as possible, off signal from the power supply so that I can connect my backup supply at that moment.
I currently signal the base of a p-channel mosfet with the output of the power supply. Because the voltage slowly descends the mosfet is not signaled until much after the supply is disconnected which leads to a break in power.
It looks something like this, Where the 5V supply is the main off of the DC/DC converter or Power Supply, the 4.7V is the backup supply, and the 100k resistor is the load. (The load draws much more than a 100k resistor.)
I have tried adding a voltage divider at the base of the mosfet to lower the voltage and a cap at the output to smooth out the main signal. The problem with this is depending on the load the output capacitor has to be very large.
I have also tried using two NPN transformers to pull the mosfet directly to GND. They are signaled sooner than the mosfet but not fast enough.
Is there any way to quickly drain the power supply output caps without adding a constant power drain on the system or signal the mosfet as soon as the power supply starts to decrease its power?