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

[复制链接]
6741|7
 楼主| snakeemail 发表于 2013-1-31 18:38 | 显示全部楼层 |阅读模式
    当外部引脚检查到电平变化后,
    PORT_ISFR_REG有标志位,   
  怎么 PORT_PCR_REG也有标志位?我x,到底清哪个,我试了半天,都可以呢,不能这样搞呀,datasheet都不说,这样搞要死人的
阿南 发表于 2013-2-1 09:17 | 显示全部楼层
呵呵,保险点都清吧
jlass 发表于 2013-2-1 09:24 | 显示全部楼层
可能两者稍有差异,但是datasheet什么会不说呢?
会不会在其他的文档里啊。
 楼主| snakeemail 发表于 2013-2-2 13:03 | 显示全部楼层
哪里都没有呀,就1个文档
airwill 发表于 2013-2-3 18:10 | 显示全部楼层
PORT_PCR_REG 好象是专门用作清除标志的.
这么设计一定是有道理的, 楼主最好去手册上看明白说明再决定.
 楼主| 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.
 楼主| snakeemail 发表于 2013-2-5 18:53 | 显示全部楼层

如楼上
强仔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

主题

1909

帖子

8

粉丝
快速回复 在线客服 返回列表 返回顶部