6-Step Pwm Generation; Figure 149. 6-Step Generation, Com Example (Ossr=1) - ST STM32F446 Series Reference Manual

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

Advertisement

RM0390
16.3.14

6-step PWM generation

When complementary outputs are used on a channel, preload bits are available on the
OCxM, CCxE and CCxNE bits. The preload bits are transferred to the shadow bits at the
COM commutation event. Thus you can program in advance the configuration for the next
step and change the configuration of all the channels at the same time. COM can be
generated by software by setting the COM bit in the TIMx_EGR register or by hardware (on
TRGI rising edge).
A flag is set when the COM event occurs (COMIF bit in the TIMx_SR register), which can
generate an interrupt (if the COMIE bit is set in the TIMx_DIER register) or a DMA request
(if the COMDE bit is set in the TIMx_DIER register).
Figure 149
occurs, in 3 different examples of programmed configurations.
describes the behavior of the OCx and OCxN outputs when a COM event

Figure 149. 6-step generation, COM example (OSSR=1)

counter (CNT)
(CCRx)
OCxREF
COM event
CCxE=1
CCxNE=0
OCxM=100 (forced inactive)
OCx
Example 1
OCxN
CCxE=1
CCxNE=0
OCxM=100 (forced inactive)
OCx
Example 2
OCxN
CCxE=1
CCxNE=0
OCxM=100 (forced inactive)
OCx
Example 3
OCxN
Advanced-control timers (TIM1&TIM8)
Write COM to 1
write OCxM to 100
Write CCxNE to 1
and OCxM to 101
write CCxNE to 0
and OCxM to 100
RM0390 Rev 4
CCxE=1
CCxNE=0
OCxM=100
CCxE=0
CCxNE=1
OCxM=101
CCxE=1
CCxNE=0
OCxM=100
ai14910
483/1328
520

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Rm0390

Table of Contents

Save PDF