Advanced-control timers (TIM1&TIM8)
RM0090
538/1731
DocID018909 Rev 11
Figure 120. Complementary output with dead-time insertion.
Figure 121. Dead-time waveforms with delay greater than the negative pulse.
Figure 122. Dead-time waveforms with delay greater than the positive pulse.
The dead-time delay is the same for each of the channels and is programmable with the
DTG bits in the TIMx_BDTR register. Refer to
Section 17.4.18: TIM1&TIM8 break and dead-
time register (TIMx_BDTR) on page 576
for delay calculation.
Re-directing OCxREF to OCx or OCxN
In output mode (forced, output compare or PWM), OCxREF can be re-directed to the OCx
output or to OCxN output by configuring the CCxE and CCxNE bits in the TIMx_CCER
register.
This allows you to send a specific waveform (such as PWM or static active level) on one
output while the complementary remains at its inactive level. Other alternative possibilities
are to have both outputs at inactive level or both outputs active and complementary with
dead-time.
Note:
When only OCxN is enabled (CCxE=0, CCxNE=1), it is not complemented and becomes
active as soon as OCxREF is high. For example, if CCxNP=0 then OCxN=OCxRef. On the
other hand, when both OCx and OCxN are enabled (CCxE=CCxNE=1) OCx becomes
active when OCxREF is high whereas OCxN is complemented and becomes active when
OCxREF is low.
delay
delay
OCxREF
OCx
OCxN
delay
OCxREF
OCx
OCxN
delay
OCxREF
OCx
OCxN