Turn on PWM for n cycles?
Hello there,
I was wondering either it is possible (with STM32L4) to turn on a PWM channel for a certain amount of cycles or for a certain amount of time? Ideally, without any interrupts during this period or at the end.
I am trying to figure out a way to re-trigger an external watchdog supervisor without breaking the MCU from sleep mode. For example, lets say the wdg device has to be retriggered every 500 ms and I would like to sleep the MCU for 2 seconds. With this functionality, I would configure the peripheral to do 4 cycles (assuming 500 ms period) or to work for 2 secs (any period less than 500 ms is ok).
Turning the pwm peripheral without any timeout could cause a deadlock in the application.
In case this is not possible, I thought of using an external multivibrator, that would make the additional line toggle for me while I am asleep... But its a bit too much.
I would appreciate all help.
