pekkaroi / bldc-drive

Cheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller
GNU General Public License v2.0
182 stars 92 forks source link

Dead time #4

Closed lonelymyp closed 7 years ago

lonelymyp commented 7 years ago

I want to customize the firmware, for my motor control board, where can I configure the deadtime?

pekkaroi commented 7 years ago

Hi, It is defined in pwm.h, the parameter BLDC_NOL (non-overlapping time)

lonelymyp commented 7 years ago

Thank you. and how this relates to stm32f10x_tim.c TIM_BDTRInitStruct->TIM_DeadTime = 0x00;

pekkaroi commented 7 years ago

in the pwm.c initialization, the TIM_DeadTime is set: TIM_BDTRInitStructure.TIM_DeadTime = BLDC_NOL;