Difference between revisions of "TM4C123GXL GPIO - Configure each pad in the port to have pull-up-pull-down-open drain"
From EdWiki
m |
m |
||
Line 10: | Line 10: | ||
*: When a bit is set, a weak pull-down resistor on the corresponding GPIO signal is enabled. | *: 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. | *: Setting a bit in GPIOPDR automatically clears the corresponding bit in the GPIO Pull-Up Select (GPIOPUR) register. | ||
+ | |||
+ | === GPIO Pull-Up Select (GPIOPUR) Register === | ||
+ | [[image:tm4c_gpiopur_r.png|center]] | ||
+ | |||
+ | === GPIO Pull-Down Select (GPIOPDR) Register === | ||
+ | [[image:tm4c_gpiopdr_r.png|center]] |
Revision as of 06:28, 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.