想用通用定时器PWM代替MotionPWM,如何立刻关断输出呢?类似MotionPWM的 PWMOutputState()函数!
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.
TimerMatchSet(TIMER0_BASE, TIMER_A,0);这样来关断,会不会 有一个 Pulse呢 ?如果我的PWM 是 20K Hz,会不会 看似关断了,实际上 有 20K Hz的pulse 呢 ?The output PWM signal asserts when the counter is at the value of the GPTMTnILR and GPTMTnPR registers (its start state), and is deasserted when the counter value equals the value in the GPTMTnMATCHR and GPTMTnPMR registers.