Power supply for input, output derived from microprocessor pin