An interface circuit and an electronic device are used for expanding an output port of a micro processing unit. The interface circuit includes an input port electrically connected to the output port of the micro processing unit for receiving a control signals, and a plurality of output ports selectively driven to control external circuits by inputting different values of the control signal at the input port.