打印

k60的外部中断,怎么有两个中断标志位?我到底要clear哪个

[复制链接]
5756|7
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
snakeemail|  楼主 | 2013-1-31 18:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
阿南| | 2013-2-1 09:17 | 只看该作者
呵呵,保险点都清吧

使用特权

评论回复
板凳
jlass| | 2013-2-1 09:24 | 只看该作者
可能两者稍有差异,但是datasheet什么会不说呢?
会不会在其他的文档里啊。

使用特权

评论回复
地板
snakeemail|  楼主 | 2013-2-2 13:03 | 只看该作者
哪里都没有呀,就1个文档

使用特权

评论回复
5
airwill| | 2013-2-3 18:10 | 只看该作者
PORT_PCR_REG 好象是专门用作清除标志的.
这么设计一定是有道理的, 楼主最好去手册上看明白说明再决定.

使用特权

评论回复
6
snakeemail|  楼主 | 2013-2-5 18:52 | 只看该作者
一.PORTx_PCRn 的ISF标志Interrupt Status Flag
The pin interrupt configuration is valid in all digital pin muxing modes.
0 Configured interrupt has not been detected.
1 Configured interrupt has been detected. If pin is configured to generate a DMA request then the
corresponding flag will be cleared automatically at the completion of the requested DMA transfer,
otherwise the flag remains set until a logic one is written to that flag. If configured for a level sensitive
interrupt that remains asserted then flag will set again immediately.

二. PORTx_ISFR, 31-0Interrupt Status Flag
Each bit in the field indicates the detection of the configured interrupt of the same number as the bit.
0 Configured interrupt has not been detected.
1 Configured interrupt has been detected. If pin is configured to generate a DMA request then the
corresponding flag will be cleared automatically at the completion of the requested DMA transfer,
otherwise the flag remains set until a logic one is written to the flag. If configured for a level sensitive
interrupt and the pin remains asserted then the flag will set again immediately after it is cleared.

使用特权

评论回复
7
snakeemail|  楼主 | 2013-2-5 18:53 | 只看该作者

如楼上

使用特权

评论回复
8
强仔00001| | 2014-2-22 11:50 | 只看该作者
搞K60的很蛋疼

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:提供500W线性 交流电源。0~300VAC,45~500Hz 提供10KW,0-330V直流电源,具体见http://blog.21ic.com/user1/3639/archives/2012/88528.html

547

主题

1910

帖子

8

粉丝