PSoC是不是也一样啊?

[复制链接]
641|10
 楼主| houcs 发表于 2016-1-7 18:55 | 显示全部楼层 |阅读模式
一般来说
当高优先级中断正在执行时,低优先级的中断是不响应的
liuzaiy 发表于 2016-1-7 18:55 | 显示全部楼层
 楼主| houcs 发表于 2016-1-7 18:56 | 显示全部楼层
怎么讲
yinxiangh 发表于 2016-1-7 18:56 | 显示全部楼层
只要进入中断,就会自动关闭全局中断允许,不再响应任何中断.直到reti指令自动允许全局中断.
pangb 发表于 2016-1-7 18:56 | 显示全部楼层

嗯,你如果要中断嵌套,需要手动操作允许全局中断.
chenjunt 发表于 2016-1-7 18:56 | 显示全部楼层
我查了官方网站,相同的
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.
ousj 发表于 2016-1-7 18:56 | 显示全部楼层

PSOC是任何中断都不再响应,注意是任何中断,即使更高优先级的中断.
morrisk 发表于 2016-1-7 18:57 | 显示全部楼层
在中断里打开全局中断就可以响应更高优先级了
zyf部长 发表于 2016-1-7 18:57 | 显示全部楼层
10ms就可以了,我们导师就是这么说的。。。
小小猫咪 发表于 2016-1-7 18:57 | 显示全部楼层
这里有视频和应用笔记,希望对你有帮助
PSoC® 3 and PSoC 5 Interrupts
http://www.cypress.com/?rID=38267
 楼主| houcs 发表于 2016-1-7 18:57 | 显示全部楼层
嗯,我看看,多谢大家
您需要登录后才可以回帖 登录 | 注册

本版积分规则

743

主题

8382

帖子

5

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