请问如何在CC3200 PWM输出低电平时进入中断处理程序?
时间:10-02
整理:3721RD
点击:
请问如何在CC3200 PMW输出低电平时进入中断处理程序?使用PIN17作为PWM输出引脚
我看到手册里有些The timer is capable of generating interrupts based on three types of events: rising edge, falling edge, or both. The event is configured by the TnEVENT field of the GPTMCTL register, and the interrupt is enabled by setting the TnPWMIE bit in the GPTMTnMR register.
这个是只有捕捉信号才会产生中断吗?我现在需要在PWM输出低电平时进入中断处理程序,并且在PWM输出高电平时推出处理程序,请问有什么方法来完成这个功能?谢谢