COMPx_OUT as a retriggerable monostable output
Hi,
I am using an STM32L4 MCU and I need to make the COMPx_OUT acting as a retriggerable monostable output.
I know I can use timers as blinking source for COMPx_OUT, but this would not help, and as far I understand, the only way to solve my problem via firmware would be, at each EXTI interrupt:
- Set to VOH the GPIO output
- Start a one shot timer for t seconds
- Set to VOL the GPIO once the timer has overflowed.
Am I missing something or is there any better automated firmware solution ?
Thanks for any hint.
Regards.
s
