Hi Perry,
The internal Pull-up/Pull-down functionality can be set through SYSCFG1 registers
- PUPD_ENA Pull-up/Pull-down Enable Register
- PUPD_SEL Pull-up/Pull-down Selection Register
You need to specify the pin group CP [0...31] in which you’re going to use the Pull-up/Pull-down functionality
GPIO peripheral provides dedicated general-purpose pins that can be configured as either inputs or Output .You don’t have control over Pull-up/Pull-down selection in the GPIO peripheral registers.
That is already set in the SYSCFG1 registers regardless of the GPIO direction ( Input/output) set in the direction register .So, the Pull-up/Pull-down functionality remains the same as we set in the SYSCFG1 register, if you don’t want that option you need to disable it the PUPD_ENA resister.
Regards
Antony
- --------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
--------------------------------------------------------------------------------------------------------