Generate interrupts on rising and falling edges of PWM signal
I am experimenting with a STM32G431 dev board (breadboard friendly) but eventually the project will use a STM32H723 mcu.
I am generating PWM and PWMN signals with dead time using timer 15. I need to generate additional signals based on these two and I would like to configure interrupts on the PWM and PWMN rising and falling edges. I could short the PWM and PWMN pins to adjacent pins and configure those as EXTI inputs. However, in a reply to another thread user @TDK said it is possible to configure a pin as both PWM and EXTI input and thus generate interrupts directly from the PWM signal. This seems like a much better solution but unfortunately I haven't been able to figure out how to do it. In STM32CubeMX if I configure a pin for PWM, then try to configure the same pin as EXTI, the PWM is disabled and the pin is configured just for EXTI. And vice-versa.
Is it possible to do what I want? If so, how should I go about it?
Thanks
paul
