A multi-programmable input / output (I / O) circuit is disclosed. A programmable I / O circuit includes a
microcontroller and an interface circuit communicatively coupled to one another. The interface circuit includes an input circuit, a pull-up circuit, a pull-down circuit, and a measurement circuit. The
microcontroller is configured to generate first and second input signals that are provided to the input, and further configured to receive, on a measurement input, the measurement
signal. In response to assertion of the first input
signal, the input circuit activates the pull-up circuit to generate a pull-up
voltage on an output pin of the interface circuit. In response to assertion of the second input
signal, the input circuit activates the pull-down circuit to generate a pull-down
voltage on the output pin. The
microcontroller may also measure the value of an electrical parameter (e.g., a current or a
voltage) based on the measurement signal received from the measurement circuit.