目录
程序查询方式
优点:接口设计简单、设备量少
缺点:CPU在信息传送过程中要花费很多时间用于查询和等待,而且在一段时间内只能和一台外设交换信息,效率大大降低。
程序查询方式接口结构
有个印象就好
外设传过来的数据是放在寄存器当中的,所以一次只能传输一个字。(寄存器的限制)
例题
本节回顾
程序中断方式
工作流程需要记住每一步任务
中断的基本概念
工作流程
中断请求
分类
中断请求标记
中断响应
判优实现
优先级设置
中断处理过程
中断隐指令
硬件向量法
中断类型号相当于给出了向量地址
中断服务程序
主要任务: