-
中断服务程序的关键是: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
-
p2p 点对点传输 服务器端实现 包括源码和编译后的可执行代码...
p2p 点对点传输 服务器端实现 包括源码和编译后的可执行代码-p2p peer-to-server-side implementation, including source code and compiled executable code
- 2023-08-27 11:00:02下载
- 积分:1
-
VC编写的一个小程序,可以修改单个或多个文件的修改时间。
VC编写的一个小程序,可以修改单个或多个文件的修改时间。-VC prepared by a small program can modify individual or multiple files modified.
- 2022-02-04 14:55:26下载
- 积分:1
-
一个简单的算法设计程序,用C++编写,实现流水线的调度。
一个简单的算法设计程序,用C++编写,实现流水线的调度。-a simple algorithm design process, using C, the realization of the pipeline scheduling.
- 2022-08-18 20:52:31下载
- 积分:1
-
java动画 模拟星空 效果不错
java动画 模拟星空 效果不错-space simulation results good
- 2022-02-05 10:50:33下载
- 积分:1
-
xml格式解析的源代码
xml格式解析的源代码-xml format parsing source code
- 2022-06-14 21:41:02下载
- 积分:1
-
用于定时删除指定目录下的前几天文件
用于定时删除指定目录下的前几天文件-used regularly to delete the specified directory paper a few days ago
- 2022-02-05 17:34:32下载
- 积分:1
-
名片管理软件
名片管理软件,名片管理软件,名片管理软件,名片管理软件,名片管理软件,名片管理软件,名片管理软件,名片管理软件。
- 2022-01-25 21:43:55下载
- 积分:1
-
HyperLink, is a simple link to the URL of a network of small procedures it
HyperLink,就是一个简单的联结网络URL的一个小程序吧-HyperLink, is a simple link to the URL of a network of small procedures it
- 2022-02-15 09:20:35下载
- 积分:1
-
矩阵乘法不使用数组
matrix multiplication without using array
only malloc and calloc are used to get memory
and multiplied matrix
- 2022-10-01 11:20:03下载
- 积分:1