Microelectromechanical (MEMS) switches are used to implement a flying capacitor circuit transferring of electrical power while preserving electrical isolation for size critical applications where transformers or coupling capacitors would not be practical. In one embodiment, the invention may be used to provide input circuits that present a programmable input impedance. The circuit may be modified to provide for power regulation.