General-purpose timer (TIM14)
PWM edge-aligned mode
In the following example, we consider PWM mode 1. The reference PWM signal OCxREF is
high as long as TIMx_CNT < TIMx_CCRx else it becomes low. If the compare value in
TIMx_CCRx is greater than the auto-reload value (in TIMx_ARR) then OCxREF is held at
'1'. If the compare value is 0 then OCxRef is held at '0'.
aligned PWM waveforms in an example where TIMx_ARR=8.
Figure 151. Edge-aligned PWM waveforms (ARR=8)
17.3.9
Debug mode
When the microcontroller enters debug mode (Cortex™-M0 core halted), the TIMx counter
either continues to work normally or stops, depending on DBG_TIMx_STOP configuration
bit in DBG module. .
364/742
0
1
Counter register
OCXREF
CCRx=4
CCxIF
OCXREF
CCRx=8
CCxIF
OCXREF
‘
CCRx>8
CCxIF
‘
OCXREF
CCRx=0
CCxIF
Doc ID 018940 Rev 1
Figure 151
shows some edge-
2
3
4
5
6
7
RM0091
8
0
1
Need help?
Do you have a question about the STM32F05 series and is the answer not in the manual?
Questions and answers