cancel
Showing results for 
Search instead for 
Did you mean: 

I need 4 output with pwm feature. All pwm are the same period T of 200 Hz. All pwm have independent dc ( duty cycle ) and independent dt ( dead time ) . Is it possible configure the timer peripheral and the clock to have dead time configurable between 0 t

stst9187
Associate II
Posted on August 31, 2017 at 08:12

I need 4 output with pwm feature.

All pwm are the same period T of 200 Hz.

All pwm have independent dc ( duty cycle ) and independent dt ( dead time ) .

Is it possible configure the timer peripheral and the clock to have dead time configurable between 0 to T/2 ( half period )?

I'm using stm32f052 or stm32f072

thanks

Marco

11 REPLIES 11
Posted on September 06, 2017 at 17:48

the prescaler for dead time counter i 1 or 2 or 4 , in the datasheet I have found this:

TIM1 control register 1 (TIM1_CR1):

...... 

CKD[1:0]: Clock division

This bit-field indicates the division ratio between the timer clock (CK_INT) frequency and the

dead-time and sampling clock (tDTS)used by the dead-time generators and the digital filters

(ETR, TIx),

00: tDTS=tCK_INT

01: tDTS=2*tCK_INT

10: tDTS=4*tCK_INT

11: Reserved, do not
Posted on September 06, 2017 at 19:07

Hi Jan

I need 8 pwm ( 1out+1Nout ) x4  = 8

with 8 different duty cicle and 4 different dead time 

I share some images for the waves that I need:

fig2-outX_balance_100pctPower

0690X000006082AQAQ.png

fig3-outX_unbalanceDown_20pctPower

0690X000006087tQAA.png

fig3-outX_unbalanceDown_100pctPower

0690X0000060895QAA.png

fig4-outX_unbalanceUp_100pctPower

0690X000006089AQAQ.png

fig5-outX_balance_50pctPower

0690X000006089FQAQ.png

so in this case I will need 8 timer I don't know if stm32f051 has these feature.

I'm trying a solution but I don't find it