-
中断服务程序的关键是:1.保护进入中断时的状态,并在退出中断之前恢复进入时的状态。2.必须在中断程序中设定是否允许中断重入,即设置EX0位。
本例中使用了I...
中断服务程序的关键是:1.保护进入中断时的状态,并在退出中断之前恢复进入时的状态。2.必须在中断程序中设定是否允许中断重入,即设置EX0位。
本例中使用了INT0中断,一般中断程序进入时应保护PSW,ACC以及中断程序使用但非其专用的寄存器。本例的INT0程序保护了PSW,ACC,2等三个寄存器并且在退出前恢复了这三个寄存器。另外中断程序中涉及到关键数据的设置时应关中断,即设置时不允许重入。本例中没有涉及这种情况。
实验开始时K8应在H(高电平)端,要产生中断时先拨向L(低电平)端再拨回H端。
-Interrupt service s key is: 1. the protection enters when the interrupt condition, and when the withdrawal interrupt before regains enters the condition. 2. must in the interrupt routine establish whether to permit the interrupt re-entry, namely establishes the EX0 position. in this example has used the INT0 interrupt, generally the interrupt routine enters when should protect PSW, ACC as well as the interrupt routine use but non-its special-purpose register. This example INT0 program protection PSW, ACC,2 and so on three registers, and restored these three registers before the withdrawal. Moreover in the interrupt routine involves to when the essential data establishment should close the interrupt, namely when establishment does
- 2022-03-22 04:01:46下载
- 积分:1
-
公交车自动报站系统
资源描述
根据公交车的实时位置,分析当前车辆是否在某个公交站,并计算距离剩余公交站的站数,数据能够发送到各个站牌进行自动发布
- 2022-05-13 00:02:31下载
- 积分:1
-
简单的基本画图程序
简单的基本画图程序-simple program of basic paint
- 2023-04-23 04:15:02下载
- 积分:1
-
粒子群优化算法(PSO)应用于神经网络优化程序
粒子群优化算法(PSO)应用于神经网络优化程序-Particle Swarm Optimization (PSO) algorithm used neural network optimization procedures
- 2022-02-16 02:02:48下载
- 积分:1
-
获得mac的信息,
你可用来做很多事情
获得mac的信息,
你可用来做很多事情-Mac access to information, a lot of things you can do .....
- 2022-04-29 04:03:40下载
- 积分:1
-
动态链接库winIO.dll使用方法
vb下使用
vc++下使用
动态链接库winIO.dll使用方法
vb下使用
vc++下使用-Dynamic-link library to use winIO.dll
- 2023-06-12 22:15:03下载
- 积分:1
-
详细的介绍了windows环境的API函数的用法
详细的介绍了windows环境的API函数的用法-detailed account of the windows environment API usage
- 2022-08-09 01:35:40下载
- 积分:1
-
一个绘图按钮,从网上下载的,再次与大家共享
一个绘图按钮,从网上下载的,再次与大家共享-Drawing a button, downloaded from the Internet, and once again to share with you
- 2022-01-31 13:00:04下载
- 积分:1
-
这个小程序用于解锁注册表,虽然很小,但很实用。网上看到许多文件都说用.reg文件修改注册表的值可解锁注册表,那种方法是不用的,所以编了这个小软件。...
这个小程序用于解锁注册表,虽然很小,但很实用。网上看到许多文件都说用.reg文件修改注册表的值可解锁注册表,那种方法是不用的,所以编了这个小软件。-procedures for the small to unlock the registry, although small, but practical. Read said many documents used. Reg registry files can unlock the value of the registry, which is not, so part of the small software.
- 2022-09-24 13:25:03下载
- 积分:1
-
编写控制台程序的包装类
编写控制台程序的包装类-Wrap class for the console application
- 2022-03-14 02:20:44下载
- 积分:1