This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1231H6PM: Simultaneous use of GPIO output and ADC input

Part Number: TM4C1231H6PM


Is it possible to cram a gpio output and an ADC input in the same pin? If seems possible from this block diagram from the spec sheet:

The ADC (red) is separated from the Pad input / output (blue) and that GPIODEN and GPIOAMSEL are separate control pins. Is my understanding of the diagram correct?

Many Thanks,


  • Hello Jacky,

    No, that is not possible. Each pin is multiplexed internally. So you need to configure the pin to function as either a GPIO or as an ADC input.

    What you missed in that diagram is that the peripherals that goes through the MUX are what receives ADC data and controls how the device operates. So even if the block diagram is 100% accurate (which I think it is simplified and doesn't work exactly like that by the way), the ADC data would not pass through to the peripheral and could not be accessed if the peripheral is configured as a GPIO.