在控制电机过程中,由于驱动模式采取的cmos模式,即上桥pmos,下桥nmos,所以在pwm驱动上也要和一般的nn驱动模式有所差别,应有的驱动波形如图所示,但是在实现的过程中,其中看到有人在换相时有几句操作,如下:
/* PhaseA configura
tion */
TIM_CCxCmd(BLDC_TIMER_NUM, TIM_Channel_1, TIM_CCx_Disable); // 0
TIM_OC1NPolarityConfig(BLDC_TIMER_NUM, TIM_OCNPolarity_High); //和ocxref信号极性相同
TIM_CCxNCmd(BLDC_TIMER_NUM, TIM_Channel_1, TIM_CCxN_Disable); // 0
/* PhaseB configuration */
TIM_CCxCmd(BLDC_TIMER_NUM, TIM_Channel_2, TIM_CCx_Enable); // 1
TIM_CCxNCmd(BLDC_TIMER_NUM, TIM_Channel_2, TIM_CCxN_Enable); //同步整流,上下桥皆导通
/* PhaseC configuration */
TIM_CCxCmd(BLDC_TIMER_NUM, TIM_Channel_3, TIM_CCx_Disable); // 0
TIM_OC3NPolarityConfig(BLDC_TIMER_NUM, TIM_OCNPolarity_Low); //和ocxref信号极性相反
TIM_CCxNCmd(BLDC_TIMER_NUM, TIM_Channel_3, TIM_CCxN_Disable); //下桥通
其中phasec的下桥配置我不是很明白,用
TIM_OC3NPolarityConfig(BLDC_TIMER_NUM, TIM_OCNPolarity_Low); //和ocxref信号极性相反
TIM_CCxNCmd(BLDC_TIMER_NUM, TIM_Channel_3, TIM_CCxN_Disable); //下桥通
这2句到底在对c相下桥做什么?能使c下桥导通吗?如果可以,原理是什么呢?我做过软件
仿真,貌似不能使下桥导通啊,很不明白,求大神指点一二。
一周热门 更多>