This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
size hu,
看你的设置是 up-down mode下的OUTMOD_6, 对于同一个timer 输出的两路CCR1和CCR2对应的PWM,其周期应该是相同的,是由CCR0的值决定;CCR1, CCR2决定PWM波的占空比。你的CCR1和CCR2设置值是不同的,按照user guide说明,两路的波形是不可能完全相同的,只是周期相同而已。你若是把CCR1,CCR2设为一样的值,那么两路波形就完全相同了。