General-purpose timers (TIM16/TIM17)
27.3.13
One-pulse mode
One-pulse mode (OPM) is a particular case of the previous modes. It allows the counter to
be started in response to a stimulus and to generate a pulse with a programmable length
after a programmable delay.
Starting the counter can be controlled through the slave mode controller. Generating the
waveform can be done in output compare mode or PWM mode. One-pulse mode is selected
by setting the OPM bit in the TIMx_CR1 register. This makes the counter stop automatically
at the next update event UEV.
A pulse can be correctly generated only if the compare value is different from the counter
initial value. Before starting (when the timer is waiting for the trigger), the configuration must
be:
•
CNT < CCRx ≤ ARR (in particular, 0 < CCRx)
918/1454
RM0453 Rev 2
RM0453
Need help?
Do you have a question about the STM32WL55JC and is the answer not in the manual?
Questions and answers