Advanced-control timers (TIM1/TIM8/TIM20) RM0440
1144/2126 RM0440 Rev 4
28.3.24 Pulse on compare mode
A pulse can be generated upon compare match event. A signal with a programmable
pulsewidth 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 326 below.
Figure 326. Pulse generator circuitry
The Figure 327 below shows how the pulse is generated for edge-aligned and encoder
operating modes.
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