2021-11-25 07: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.
2021-11-25 08: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.
2021-11-25 08: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.
2021-11-25 08:11 AM
That is a good feature
Thank you