Actions

EmSys

TM4C123GXL GPIO - Configure each pad in the port to have pull-up-pull-down-open drain

From EdWiki

Revision as of 06:12, 3 June 2019 by Jshankar (Talk | contribs)

GPIO - Configure each pad in the port to have pull-up, pull-down, or open drain

Optionally, you can configure each pad in the port to have pull-up, pull-down, or open drain function through the GPIOPUR, GPIOPDR , or GPIOODR register. Slew rate may also be configured, if needed, through the GPIOSLR register.

GPIO Pull-Up Select (GPIOPUR), GPIO Pull-Down Select (GPIOPDR)

  • The GPIOPUR register is the pull-up control register.
    When a bit is set, a weak pull-up resistor on the corresponding GPIO signal is enabled.
    Setting a bit in GPIOPUR automatically clears the corresponding bit in the GPIO Pull-Down Select (GPIOPDR) register.
  • The GPIOPDR register is the pull-down control register.
    When a bit is set, a weak pull-down resistor on the corresponding GPIO signal is enabled.
    Setting a bit in GPIOPDR automatically clears the corresponding bit in the GPIO Pull-Up Select (GPIOPUR) register.