搜索
bottom↓
回复: 6

PSoC中断嵌套问题

[复制链接]

出0入0汤圆

发表于 2009-10-13 16:52:14 | 显示全部楼层 |阅读模式
一般来说
当高优先级中断正在执行时,低优先级的中断是不响应的

请问,PSoC是不是也一样啊?

出0入0汤圆

 楼主| 发表于 2009-10-13 19:18:26 | 显示全部楼层

出0入0汤圆

发表于 2009-10-15 16:53:20 | 显示全部楼层
不同.
  只要进入中断,就会自动关闭全局中断允许,不再响应任何中断.直到reti指令自动允许全局中断.
  你如果要中断嵌套,需要手动操作允许全局中断.

出0入0汤圆

 楼主| 发表于 2009-10-15 16:59:12 | 显示全部楼层
我查了官方网站,相同的
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.

出0入0汤圆

发表于 2009-10-15 17:18:24 | 显示全部楼层
误会了.
  你提问"当高优先级中断正在执行时,低优先级的中断是不响应的",我的理解:潜台词是更高优先级能响应.
  PSOC是任何中断都不再响应,注意是任何中断,即使更高优先级的中断.

出0入0汤圆

 楼主| 发表于 2009-10-16 08:18:54 | 显示全部楼层
在中断里打开全局中断就可以响应更高优先级了

出0入0汤圆

发表于 2010-3-2 20:18:36 | 显示全部楼层
意思是不是说PSOC没有中断嵌套,即当低优先级中断正在执行时,此时若有个高优先级的中断产生,CPU是不会跳转去完成高优先级的中断.
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-4-29 13:40

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表