Disclosed is a converter that routes power among multiple input/output ports, and one application of the invention is to charge battery from multiple sources.