STM32L412 One-pulse Timer not resetting at update event
Hi all,
I am trying to get a single pulse out of TIM1, triggered by a rising edge on a Pin.
I got it almost working, but the problem is that after the counter reached ARR value, the output channel is reset...
I use PWM mode and the complementary output channel to get the polarity I need.
I could do it with custom IRS, but I quite like the thought to use the dedicated hardware for this task.
In other words, what I want is:
when a rising edge occurs on a pin, the output should go high and stay there for a certain time (CCR), then go low and stay there
The "stay there" part is the one that I don't get working, because on update event the output is reset to low.
Is there any way to change this behaviour and force the output to remain unchanged on update event?
Or another Timer ode that is more suitable for this task?
Cheers,
Bob
