PSoC是不是也一样啊?

[复制链接]
743|10
 楼主| llljh 发表于 2018-11-13 18:43 | 显示全部楼层 |阅读模式
一般来说
当高优先级中断正在执行时,低优先级的中断是不响应的
pengf 发表于 2018-11-13 18:48 | 显示全部楼层
 楼主| llljh 发表于 2018-11-13 18:53 | 显示全部楼层
怎么讲
supernan 发表于 2018-11-13 18:56 | 显示全部楼层
只要进入中断,就会自动关闭全局中断允许,不再响应任何中断.直到reti指令自动允许全局中断.
renyaq 发表于 2018-11-13 18:59 | 显示全部楼层
嗯,你如果要中断嵌套,需要手动操作允许全局中断.
houcs 发表于 2018-11-13 19:03 | 显示全部楼层

我查了官方网站,相同的
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.
liuzaiy 发表于 2018-11-13 19:09 | 显示全部楼层
PSOC是任何中断都不再响应,注意是任何中断,即使更高优先级的中断.
liuzaiy 发表于 2018-11-13 19:09 | 显示全部楼层
在中断里打开全局中断就可以响应更高优先级了
chenjunt 发表于 2018-11-13 19:13 | 显示全部楼层
10ms就可以了,我们导师就是这么说的。。。
juventus9554 发表于 2018-11-13 19:18 | 显示全部楼层

这里有视频和应用笔记,希望对你有帮助
PSoC® 3 and PSoC 5 Interrupts
http://www.cypress.com/?rID=38267
 楼主| llljh 发表于 2018-11-13 19:22 | 显示全部楼层
其实还是不大明白,我再琢磨琢磨吧,多谢了哈,结贴了先
您需要登录后才可以回帖 登录 | 注册

本版积分规则

855

主题

11301

帖子

6

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