假设设定PWM1与PWM4同步,PWM4发出同步信号,PWM1接受同步信号。另外PWM1在计数器为零时将触发一个事件。
如果PWM1比4计数快,那么PWM1计数器首先归零触发事件,而PWM4稍后归零。然而,PWM4归零时将产生同步信号使得PWM1再次归零,那么是不是会再一次触发PWM1的事件?如何解决这个问题?
还有一个附带的问题,在PWM周期寄存器设定为映射模式时,如何判断映射寄存器的值是否已经载入过周期寄存器中,从而可以将其覆盖?
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.