《8微机原理课程设计.pdf》由会员分享,可在线阅读,更多相关《8微机原理课程设计.pdf(6页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、1/6 8086 微型计算机控制系统课程设计一、课程设计的目的本课程设计的目的是让同学掌握控制系统设计的一般步骤,掌握系统总体控制方案的设计方法、8086微型机的应用方法、控制算法的设计、硬件设计的方法。复习并学习用软件编程控制硬件。使学生了解和掌握8086微机应用系统的软硬件设计过程、方法及实现,为以后设计和实现8086微机应用系统打下良好的基础。二、控制系统设计的一般步骤、系统总体控制方案设计)确定控制任务)分配及协调软件和硬件的功能)扩展输入输出接口,选定控制方式)输入输出通道设计、微型计算机的选择本课程设计采用DICE-8086K 微机原理接口实验仪。、控制算法的设计应按控制对象、控制
2、指标及微机性能和处理能力,选择控制算法。)可选 PID控制方法)可选用并联或串联校正数字控制器)选用其他控制模型、软件设计)选用软件操作系统平台)语言加工系统选合理的编程语言选合理的编程编译、调试工具选合理的子程序库数据管理程序自诊断程序等、系统联调及开发工具联调)采取必要的测量、监视及保护措施)考虑安全和抗干扰需要)先做模块调试 再在模拟装置上调试开发工具()联机仿真器()汇编程序()仿真程序三、课程设计应完成的任务2/6、完成系统总体方案设计;、设计控制算法;、设计系统接线图;、完成控制软件的编写;、完成软件调试、运行;、编写课程设计说明书。四、课程设计课题 交通灯控制系统)一、交通灯控制
3、系统的基本原理现代城市交通日益拥挤,为保证交通安全,防止交通堵塞,使城市交通井然有序,交通信号灯在大多数城市得到了广泛的应用。设计一种用8086微机控制的交通灯系统,东西、南北两路的通车时间可调,时间可倒计时显示,并有急车可强行通过。、系统简介图是城市十字路口交通灯示意图,在十字路口东西、南北方向装设红、黄、绿灯和显示器。红、黄、绿灯按照一定的时序轮流发亮,显示器对每个方向的信号接通时间进行倒计时显示。图是城市十字路口交通灯示意图系统采用并行接口芯片8255,采用 A口、B口或 C口控制交通灯,LED 左两位为南北向倒计时,右两位为东西向倒计时。按键 9:复位兼启动开关 1:东西方向时间设定
4、2:南北方向时间设定 3:时间增加 4:时间减少 5:东西方向强通,强通结束 6:南北方向强通,强通结束 7:时间设定确定 8:状态切换 运行、时间设置)2、设计思路系统要求实现正常时序控制及急车强通两种控制方法,其时序如图2所示,启动开关接文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E
5、1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10
6、 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5
7、F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4
8、 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z
9、1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y
10、2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:
11、CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y23/6 通时,交通信号按图2的时序工作,并且各个方向的红、黄、绿灯接通时间倒计时显示。有急车来时,将急车强通开关按一次,不管原来信号灯的状态如何,一律强制让急车来车方向的绿灯亮,使急车放行,直至急车通过为止。急车一过,将开关再按一次,信号灯的状态全部转为急车放行方向上的绿灯闪次,随后按正常时序控制。急车强通信号只能响应一路方向的急车,若两个方向先后来急车,则响应先来的一方,随后再响应另一方,按图3的时序工作,急车强通时,显示器不显示时间。东西方向和南北方向的绿灯接通时间可以由外部设定。二、设计任务书、题目:交通灯自动控制
12、系统图2 正常控制时序文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W
13、4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文
14、档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT
15、4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S
16、2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 H
17、G2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2
18、W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y24/6 图3 急车强通控制时序图、设计要求()画出系统组成框图()交通灯采用红、黄、绿三色发光二极管构成()用数码管倒计时显示时间()绘出电原理图
19、()根据要求编制控制软件()写出设计总结报告、给定条件及原始收据()DICE-8086K 微机原理接口实验仪。()模拟交通灯参考程序见附件一。附件模拟交通灯管理参考程序一、实验内容用8255做输出口,控制十二个发光管亮灭,模拟交通灯管理。二、实验接线图三、编程指南通过 8255A控制发光二极管,PB4-PB7对应黄灯,PC0-PC3对应红灯,PC4-PC7对应绿灯,以模拟交通路灯的管理。文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2
20、T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6
21、B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO1
22、0Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T
23、3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编
24、码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S
25、7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F
26、10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y25/6 要完成本实验,必须先了解交通路灯的亮灭规律,设有一个十字路口l、3 为南北方向,2、4 为东西方向,初始状态为四个路口的红灯全亮,之后,1、3 路口的绿灯亮,2、4路口的红灯亮,1、3 路口方向通车。延时一段时间后,l、3 路口的绿灯熄灭,而l、3 路口的黄灯开始闪烁,闪烁若干次以后,l、3 路口红灯亮,而同时2、4 路口的绿灯亮,2、4 路口方向通车,延时一段时间后
27、,2、4 路口的绿灯熄灭,而黄灯开始闪烁,闪烁若干次以后,再切换到l、3 路口方向,之后,重复上述过程。程序中设定好8255A 的工作模式及三个端口均工作在方式0,并处于输出状态。各发光二极管共阳极,使其点亮应使8255A 相应端口的位清0。四、实验程序框图五、实验步骤在系统显示监控提示符“P.”时,按 SCAL 键。按图连好实验线路8255APC0L3PC1L7PC2 L11PC3L15PC4 L2PC5L6PC6 L10PC7 L14 PB4L1PB5 L5PB6 L9PB7 L13文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1
28、S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10
29、HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F
30、2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4
31、ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1
32、W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2
33、文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:C
34、T4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y26/6 在“P.”态时,输入 11E0后,按 EXEC 键;系统显示执行符“”,同时 Ll-Ll5 发光二极管模拟交通灯显示。六、实验程序清单CODE SEGMENT。H8255-2.ASM ASSUME CS:CODE IOCONPT EQU 0FF2BH IOAPT EQ
35、U 0FF28H IOBPT EQU 0FF29H IOCPT EQU 0FF2AH ORG 11e0H START:MOV AL,82H MOV DX,IOCONPT OUT DX,AL MOV DX,IOBPT IN AL,DX MOV BYTE PTR DS:0601H,AL MOV DX,IOCONPT MOV AL,80H OUT DX,AL MOV DX,IOBPT MOV AL,DS:0601H OR AL,0F0H OUT DX,AL MOV DX,IOCPT MOV AL,0F0H OUT DX,AL CALL DELAY1 IOLED0:MOV AL,10100101B M
36、OV DX,IOCPT OUT DX,AL CALL DELAY1 ALL DELAY1 OR AL,0F0H OUT DX,AL MOV CX,8H IOLED1:MOV DX,IOBPT MOV AL,DS:0601H AND AL,10101111B OUT DX,AL CALL DELAY2 OR AL,01010000B OUT DX,AL CALL DELAY2 LOOP IOLED1 MOV DX,IOCPT MOV AL,0F0H OUT DX,AL CALL DELAY2 MOV AL,01011010B OUT DX,AL CALL DELAY1 CALL DELAY1 O
37、R AL,0F0H OUT DX,AL MOV CX,8H IOLED2:MOV DX,IOBPT MOV AL,DS:0601H AND AL,01011111B OUT DX,AL CALL DELAY2 OR AL,10100000B OUT DX,AL CALL DELAY2 LOOP IOLED2 MOV DX,IOCPT MOV AL,0F0H OUT DX,AL CALL DELAY2 JMP IOLED0 DELAY1:PUSH AX PUSH CX MOV CX,0030H DELY2:CALL DELAY2 LOOP DELY2 POP CX POP AX RET DELA
38、Y2:PUSH CX MOV CX,8000H DELA1:LOOP DELA1 POP CX RET CODE ENDS END START文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 H
39、G2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2
40、W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 Z
41、O10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W
42、4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文
43、档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2文档编码:CT4S7E1S2F10 HG2T5F2W6B4 ZO10Z1W4T3Y2
限制150内