打印

当高优先级中断正在执行时,低优先级的中断响应吗

[复制链接]
3983|10
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
huwr|  楼主 | 2013-8-27 20:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
一般来说
当高优先级中断正在执行时,低优先级的中断是不响应的

请问,PSoC是不是也一样啊?
沙发
huanghuac| | 2013-8-27 20:33 | 只看该作者
不同.

使用特权

评论回复
板凳
huwr|  楼主 | 2013-8-27 20:35 | 只看该作者
怎么讲

使用特权

评论回复
地板
happy_10| | 2013-8-27 20:36 | 只看该作者
只要进入中断,就会自动关闭全局中断允许,不再响应任何中断.直到reti指令自动允许全局中断.

使用特权

评论回复
5
huanghuac| | 2013-8-27 20:37 | 只看该作者
嗯,你如果要中断嵌套,需要手动操作允许全局中断.

使用特权

评论回复
6
冰清玉洁| | 2013-8-27 21:57 | 只看该作者
我查了官方网站,相同的
Question:
Why do I have to re-enable global interrupts?

Response:
Global nterrupts are disabled in Interrupt Service Routines (ISRs) by default. Re-enabling the global interrupts inside an ISR allows the next pending interrupt to be serviced while inside the ISR that enabled global interrupts. If the pending interrupt is lower priority than the one that enabled global interrupts, it will still be serviced.

Note: If you enable global interrupts inside an ISR that posts interrupts faster than they can be serviced, you may overflow your stack by constantly entering an ISR without exiting it.

使用特权

评论回复
7
wenfen| | 2013-8-27 21:58 | 只看该作者
PSOC是任何中断都不再响应,注意是任何中断,即使更高优先级的中断.

使用特权

评论回复
8
zhuhuis| | 2013-8-27 21:59 | 只看该作者
在中断里打开全局中断就可以响应更高优先级了

使用特权

评论回复
9
zhuhuis| | 2013-8-27 22:00 | 只看该作者
10ms就可以了,我们导师就是这么说的。。。

使用特权

评论回复
10
tian111| | 2013-8-27 22:04 | 只看该作者
这里有视频和应用笔记,希望对你有帮助
PSoC® 3 and PSoC 5 Interrupts
http://www.cypress.com/?rID=38267

使用特权

评论回复
11
huwr|  楼主 | 2013-8-27 22:06 | 只看该作者
嗯,我看看,多谢大家

使用特权

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

本版积分规则

780

主题

8627

帖子

5

粉丝