An apparatus for switching from a first power supply to a second power
supply. The embodiment may detect the charge or voltage of both the first
and second power supply, and power a device from the power supply having
the greatest voltage or charge. A single boost converter is used
regardless of which power supply is providing power.