/*-------------------刹车和死区结构体初始化-------------------*/ TIM_BDTRInitTypeDef TIM_BDTRInitStructure; TIM_BDTRInitStructure.TIM_OSSRState = TIM_OSSRState_Enable; // TIM_BDTRInitStructure.TIM_OSSIState = TIM_OSSIState_Enable; TIM_BDTRInitStructure.TIM_LOCKLevel = TIM_LOCKLevel_1; TIM_BDTRInitStructure.TIM_DeadTime = 156;//2.5US // TIM_BDTRInitStructure.TIM_Break = TIM_Break_Enable; // TIM_BDTRInitStructure.TIM_BreakPolarity = TIM_BreakPolarity_High; // TIM_BDTRInitStructure.TIM_AutomaticOutput = TIM_AutomaticOutput_Enable; TIM_BDTRConfig(TIM1, &TIM_BDTRInitStructure); CPU是301CBT6,主频设置为60M, 如果DeadTime设置为120,理论计算2US,实际为2US; 如果DeadTime设置为156,理论计算2.5US,实际为3US; 如果DeadTime设置为180,理论计算3US,实际为3.8US; 这个计算有问题吗? |
评分
查看全部评分
知道了,谢谢