Configuring input pull-up or pull-down
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-06-22 11:54 AM
Posted on June 22, 2012 at 20:54
Hi,
I am using the STM32F103ZG device and looking through the reference manual (RM0008) I cannot find how, when a pin is configured as ''Input Pull-up/pull-down'', to select the pull-up or pull-down option. Having done some experimentation it appears that this can be done by setting the ports output level high (for pull-up) and low (for pull-down) operation after the pin has been configured as an input. Is this the indended way to do this? If not, an explanation on how it should be done would be appreciated. Regards Farmer #gpio-mode
Labels:
- Labels:
-
GPIO-EXTI
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-06-22 1:24 PM
Posted on June 22, 2012 at 22:24
In RM0008 it is described in Table 20. Port bit configuration table, Page 156
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-06-22 3:37 PM
Posted on June 23, 2012 at 00:37
Looked at the very table, must have just missed it. Problem sorted - many thanks.
Regards Farmer