Is it possible to use multiple functions on a single pin on STM32U5?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-25 7:56 AM
According to the RM, I think that it is possible to use multiple analog functions on a single pin.
Can we do the same with digital pins? What I would need is to put a timer channel (as input) and an external interrupt input on the same pin.
Solved! Go to Solution.
- Labels:
-
STM32U5 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-25 8:05 AM
In general, you can only use one peripheral (alternate function) at a time on a pin. However, EXTI operates independently from the peripherals, so you can use this independently. HAL doesn't support this, but it can be set up in code manually.
So yes, you can enable an EXTI interrupt on a pin while still using it as a digital input/output/AF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-25 8:05 AM
In general, you can only use one peripheral (alternate function) at a time on a pin. However, EXTI operates independently from the peripherals, so you can use this independently. HAL doesn't support this, but it can be set up in code manually.
So yes, you can enable an EXTI interrupt on a pin while still using it as a digital input/output/AF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-25 8:11 AM
That is a good feature
Thank you
