Can a pin that is configured as an external interrupt be also read?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-12 6:59 AM
Pretty much what the Q above says. Is it possible to do a HAL_GPIO_ReadPin on a pin that has been configured as an external interrupt?
Labels:
- Labels:
-
GPIO-EXTI
-
STM32Cube MCU Packages
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-12 7:00 AM
Yes.
JW
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-12 7:52 AM
As far as I'm aware GPIOx->IDR is always an accurate representation of the current pin state whether in GPIO or AF modes. Analogue IN turns off the schmitt trigger on the digital input side, so perhaps not then.
Should be workable on all STM32 models/families
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
‎2021-03-12 7:52 AM
Thanks!
