MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 341

no-image

MCBSTM32EXL

Manufacturer Part Number
MCBSTM32EXL
Description
BOARD EVALUATION FOR STM32F103ZE
Manufacturer
Keil
Datasheets

Specifications of MCBSTM32EXL

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
RM0008
Figure 130. Center-aligned PWM waveforms (ARR=8)
Hints on using center-aligned mode:
CCRx > 8
CCRx = 0
CCRx = 4
CCRx = 7
CCRx = 8
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
in the TIMx_CR1 register. Moreover, the DIR and CMS bits must not be changed at the
same time by the software.
Writing to the counter while running in center-aligned mode is not recommended as it
can lead to unexpected results. In particular:
The safest way to use center-aligned mode is to generate an update by software
(setting the UG bit in the TIMx_EGR register) just before starting the counter and not to
write the counter while it is running.
Counter register
The direction is not updated if you write a value in the counter that is greater than
the auto-reload value (TIMx_CNT>TIMx_ARR). For example, if the counter was
counting up, it continues to count up.
The direction is updated if you write 0 or write the TIMx_ARR value in the counter
but no Update Event UEV is generated.
OCxREF
OCxREF
OCxREF
OCxREF
OCxREF
CCxIF
CCxIF
CCxIF
CCxIF
CCxIF
'1'
'0'
'1'
0
CMS=10 or 11
CMS=01
CMS=10
CMS=11
CMS=01
CMS=10
CMS=11
CMS=01
CMS=10
CMS=11
CMS=01
CMS=10
CMS=11
1
2
Doc ID 13902 Rev 9
3
4
5
6
7
8
7
6
General-purpose timer (TIMx)
5
4
3
2
1
0
ai14681
1
341/995

Related parts for MCBSTM32EXL