Figure 386. Center-Aligned Pwm Waveforms (Arr=8) - ST STM32G4 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

RM0440
(DIR) in the TIMx_CR1 register is updated by hardware and must not be changed by
software. Refer to
Figure 386
TIMx_ARR=8,
PWM mode is the PWM mode 1,
The flag is set when the counter counts down corresponding to the center-aligned
mode 1 selected for CMS=01 in TIMx_CR1 register.
Counter register
tim_ocxref
CCRx = 4
tim_ocxref
CCRx=7
tim_ocxref
CCRx=8
tim_ocxref
CCRx>8
tim_ocxref
CCRx=0
Hints on using center-aligned mode:
When starting in center-aligned mode, the current up-down configuration is used. It
means that the counter counts up or down depending on the value written in the DIR bit
Center-aligned mode (up/down counting) on page
shows some center-aligned PWM waveforms in an example where:

Figure 386. Center-aligned PWM waveforms (ARR=8)

0
1
2
3
CMS=01
CCxIF
CMS=10
CMS=11
CMS=10 or 11
CCxIF
'1'
CMS=01
CCxIF
CMS=10
CMS=11
'1'
CMS=01
CCxIF
CMS=10
CMS=11
'0'
CMS=01
CCxIF
CMS=10
CMS=11
General-purpose timers (TIM2/TIM3/TIM4/TIM5)
4
5
6
7
8
RM0440 Rev 1
1198.
7
6
5
4
3
2
1
0
1
MSv62328V1
1215/2083
1297

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G4 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF