RM0453
CCRx=4
CCRx=8
CCRx>8
CCRx=0
27.3.10
Complementary outputs and dead-time insertion
The TIM16/TIM17 general-purpose timers can output one complementary signal and
manage the switching-off and switching-on of the outputs.
This time is generally known as dead-time and it has to be adjusted depending on the
devices that are connected to the outputs and their characteristics (intrinsic delays of level-
shifters, delays due to power switches...)
The polarity of the outputs (main output OCx or complementary OCxN) can be selected
independently for each output. This is done by writing to the CCxP and CCxNP bits in the
TIMx_CCER register.
The complementary signals OCx and OCxN are activated by a combination of several
control bits: the CCxE and CCxNE bits in the TIMx_CCER register and the MOE, OISx,
OISxN, OSSI and OSSR bits in the TIMx_BDTR and TIMx_CR2 registers. Refer to
Table 187: Output control bits for complementary OCx and OCxN channels with break
feature (TIM16/17) on page 940
when switching to the idle state (MOE falling down to 0).
Dead-time insertion is enabled by setting both CCxE and CCxNE bits, and the MOE bit if the
break circuit is present. There is one 10-bit dead-time generator for each channel. From a
reference waveform OCxREF, it generates 2 outputs OCx and OCxN. If OCx and OCxN are
active high:
•
The OCx output signal is the same as the reference signal except for the rising edge,
which is delayed relative to the reference rising edge.
•
The OCxN output signal is the opposite of the reference signal except for the rising
edge, which is delayed relative to the reference falling edge.
Figure 254. Edge-aligned PWM waveforms (ARR=8)
0
Counter register
OCXREF
CCxIF
OCXREF
CCxIF
OCXREF
'1'
CCxIF
'0'
OCXREF
CCxIF
General-purpose timers (TIM16/TIM17)
1
2
3
4
5
for more details. In particular, the dead-time is activated
RM0453 Rev 1
6
7
8
0
1
MS31093V1
919/1461
952
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?
Questions and answers