我想通过程序控制互补PWM输出和不输出。
现在互补的PWM输出正常,当通过下面两条语句,可以把互补的PWM关闭TIM_CCxCmd(TIM1,TIM_Channel_1,TIM_CCx_Disable);
TIM_CCxNCmd(TIM1,TIM_Channel_1,TIM_CCx_Disable);
当我想重新再输出互补的PWM时,程序执行完下面两条语句后,
TIM_CCxCmd(TIM1,TIM_Channel_1,TIM_CCx_Enable);
TIM_CCxNCmd(TIM1,TIM_Channel_1,TIM_CCx_Enable);
发现,只有TIM1_CH1是有输出的,TIM1的互补通道TIM1_CH1N没输出。
求教,如何控制互补PWM的输出和不输出? |