为什么会影响到Epwm控制的中断呢?

2019-08-07 19:10发布

开启了cap中断(上升沿捕捉)之后,为什么会影响到有Epwm1控制的中断呢?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
2条回答
huangfeng33
1楼-- · 2019-08-07 22:44
关于捕捉单元的中断,2812的英文手册上是这么说的:

Capture Interrupt

When a capture is made by a capture unit and there is already at least one valid value in the FIFO (indicated by CAPxFIFO bits not equal to zero), the corresponding interrupt flag is set, and if unmasked, a peripheral interrupt request is generated. Thus, a pair of captured counter values can be read by an interrupt service routine if the interrupt is used. If an interrupt is not desired, either

the interrupt flag or the status bits can be polled to determine if two captures have occurred allowing the captured counter values to be read
zhangmangui
2楼-- · 2019-08-08 03:36
 精彩回答 2  元偷偷看……

一周热门 更多>