General-purpose timers (TIM2/TIM3/TIM4/TIM5) RM0440
1272/2126 RM0440 Rev 4
Figure 401. Retriggerable one pulse mode
29.4.17 Pulse on compare mode
A pulse can be generated upon compare match event. A signal with a programmable pulse
width generated when the counter value equals a given compare value, for debugging or
synchronization purposes.
This mode is available for any slave mode selection, including encoder modes, in edge and
center aligned counting modes. It is solely available for channel 3 and channel 4. The pulse
generator is unique and is shared by the two channels, as shown on the Figure 402 below.
Figure 402. Pulse generator circuitry
The Figure 403 below shows how the pulse is generated for edge-aligned and encoder
operating modes.
MSv62345V1
tim_trgi
Counter
tim_ocx
MSv62346V1
PW[7:0]
OC3M = 1010
PWPRSC
[2:0]
CCR3 match
tim_oc3
tim_oc4
R/S
Set
Reset
R/S
Set
Reset
Enable
OC4M = 1010
CCR4 match
Enable
Pulse generator