Abstract: A method and apparatus for providing automatic power switching in a portable external defibrillator is disclosed. The power supply switching circuit includes a plurality of power supply ports for receiving power sources such as batteries and external power sources. The power supply switching circuit works with both batteries that include monitoring devices (smart batteries) and batteries that do not include monitoring devices (dumb batteries). The power supply switching circuit also includes microprocessor controllable switches for selectively coupling the power supply ports to the output of the power supply switching circuit, and a microprocessor for controlling the switches and for monitoring the power supply ports. Resident in the microprocessor is a control program for controlling the switching and monitoring operations. The control program uses data received from the power sources to select the best available power source to be used as the output for the power supply switching circuit.