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.
设置每进一次PWM中断,变量tch加一。但波形显示它会加到某个值后突变,可能是什么原因造成的?下图是tch的波形,尝试换成Timer0中断也是这样的结果。
已解决:对tch数据类型正确定义。