Difference between revisions of "TM4C123GXL GPIO - Configure each pad in the port to have pull-up-pull-down-open drain"
From EdWiki
(Created page with "__NOTOC__ == 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,...") |
m |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
== GPIO - Configure each pad in the port to have pull-up, pull-down, or open drain == | == 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. | + | 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. |
Revision as of 06:12, 3 June 2019
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.