在线咨询 切换到宽版
eetop公众号 创芯大讲堂 创芯人才网

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜帖子
楼主: zhuyuefeng2009

[求助] 单片机的中断是怎么实现的呢?硬件做死的?

[复制链接]
发表于 2013-9-26 16:56:19 | 显示全部楼层
硬件实现的吧,指令流水线设计那里设计好的。
回复 支持 反对

使用道具 举报

发表于 2013-9-28 18:11:15 | 显示全部楼层
中断向量表只是一个映射的列表
回复 支持 反对

使用道具 举报

发表于 2013-10-27 12:07:21 | 显示全部楼层
硬件实现,软件去应用
回复 支持 反对

使用道具 举报

发表于 2013-12-8 15:05:25 | 显示全部楼层
单片机硬件的功能
回复 支持 反对

使用道具 举报

发表于 2013-12-13 22:09:30 | 显示全部楼层
与功能寄存器有关,不过可以用软件实现
回复 支持 反对

使用道具 举报

发表于 2013-12-15 02:24:56 | 显示全部楼层
环境保护以后PC(PROGRAM COUNTER)转向中断向量指向的入口
回复 支持 反对

使用道具 举报

发表于 2014-3-11 16:36:02 | 显示全部楼层
You can jump to some different memory from predefined interrupt address. This is a general practice. In case of 8051 you can write 8 bytes of code in between 2 ISR vector location. If your code is large then you can have LCALL instruction. Write ISR handler to new location. You can change priority of interrupt. Startup code initializes memory and some cpu related registers and stack pointer
回复 支持 反对

使用道具 举报

发表于 2014-3-14 09:56:27 | 显示全部楼层
回复 17# kirannevaskar


That's make sense , but I have another quetions.   A simple question , that if pc and stack share the register in the R-8051, then after the interrupt how could the PC go back to position ,I mean a general idea, not too much detail, when I read the VHDL code of a R-8051code but confusing with this, where it maybe concern ? in the ITR part, or RAM&SFR&MEM Ctrl part?
回复 支持 反对

使用道具 举报

发表于 2014-3-14 16:07:42 | 显示全部楼层
硬件实现的,软件可配置
回复 支持 反对

使用道具 举报

发表于 2014-3-21 02:41:57 | 显示全部楼层
了解下CPU是怎么执行指令的,就可以了解程序如何被中断。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /3 下一条

手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-9-9 19:07 , Processed in 0.019488 second(s), 5 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表