Dead time for TIM1

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Faisal Mehmood
Posts: 25
Joined: Sat Jan 26, 2013 10:18 pm

Dead time for TIM1

Post by Faisal Mehmood »

Hey all

I am making a BLDC driver board using stm32f4 discovery

I need to introduce dead time in PWM channels... Can some one tell me how to do it??
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Dead time for TIM1

Post by Giovanni »

Hi,

You have to correctly program the field of the PWM configuration structure, this field is only enabled when STM32_PWM_USE_ADVANCED is enabled in mcuconf.h.

About *how* to use that field, I don't have an example so you have to read the documentation of the TIM1/TIM8 BDTR register in the STM32 Reference Manual, also read the section 13.3.11.

Giovanni
Post Reply