EasyManuals Logo

ST STM32F10 Series User Manual

ST STM32F10 Series
519 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #180 background imageLoading...
Page #180 background image
Advanced control timer (TIM1) UM0306
180/519
12.4.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 TIM1_EGR register or by hardware (on
TRGI rising edge).
A flag is set when the COM event occurs (COMIF bit in the TIM1_SR register), which can
generate an interrupt (if the COMIE bit is set in the TIM1_DIER register) or a DMA request
(if the COMDE bit is set in the TIM1_DIER register).
The Figure 63 describes the behavior of the OCx and OCxN outputs when a COM event
occurs, in 3 different examples of programmed configurations.
Figure 63. 6-step generation, COM example (OSSR=1)
counter (CNT)
OCxREF
(CCRx)
OCx
OCxN
CCxE=1
CCxNE=0
OCxM=110 (PWM1)
Write CCxE to 0
Write COM to 1
COM event
CCxE=1
CCxNE=0
OCxM=100
OCx
OCxN
CCxE=1
CCxNE=0
OCxM=100 (forced active)
Write CCxNE to 1 CCxE=0
CCxNE=1
OCxM=101
OCx
OCxN
CCxE=1
CCxNE=1
OCxM=110 (PWM1)
Write CCxE and CxNE to 0 CCxE=1
CCxNE=0
OCxM=100
EXAMPLE 1
EXAMPLE 2
EXAMPLE 3
www.BDTIC.com/ST

Table of Contents

Other manuals for ST STM32F10 Series

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F10 Series Specifications

General IconGeneral
BrandST
ModelSTM32F10 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals