打印

PSoC中断嵌套问题

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

请问,PSoC是不是也一样啊?
沙发
jinpaidianzi|  楼主 | 2012-2-18 21:49 | 只看该作者

使用特权

评论回复
板凳
创展和众| | 2012-2-18 21:58 | 只看该作者
不同.
  只要进入中断,就会自动关闭全局中断允许,不再响应任何中断.直到reti指令自动允许全局中断.
  你如果要中断嵌套,需要手动操作允许全局中断.

使用特权

评论回复
地板
teabottle| | 2012-2-18 23:04 | 只看该作者
我查了官方网站,相同的
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.

使用特权

评论回复
5
wangjinlili| | 2012-2-18 23:14 | 只看该作者
PSOC是任何中断都不再响应,注意是任何中断,即使更高优先级的中断.

使用特权

评论回复
6
meishizhaoshi| | 2012-2-18 23:27 | 只看该作者
在中断里打开全局中断就可以响应更高优先级了

使用特权

评论回复
7
Go_PSoC| | 2012-2-19 23:17 | 只看该作者
这里有视频和应用笔记,希望对你有帮助
PSoC® 3 and PSoC 5 Interrupts
http://www.cypress.com/?rID=38267

使用特权

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

本版积分规则

115

主题

1489

帖子

1

粉丝