您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 微机原理课程设计报告
1微型计算机技术课程设计指导教师:班级:姓名:学号:班内序号:课设日期:_________________________2目录一、课程设计题目..................错误!未定义书签。二、设计目的......................错误!未定义书签。三、设计内容......................错误!未定义书签。四、设计所需器材与工具...........................3五、设计思路......................错误!未定义书签。六、设计步骤(含流程图和代码)......错误!未定义书签。七、课程设计小结................................363一、课程设计题目:点阵显示系统电路及程序设计利用《汇编语言与微型计算机技术》课程中所学的可编程接口芯片8253、8255A、8259设计一个基于微机控制的点阵显示系统。二、设计目的1.通过本设计,使学生综合运用《汇编语言与微型计算机技术》、《数字电子技术》等课程的内容,为今后从事计算机检测与控制工作奠定一定的基础。2.掌握接口芯片8253、8255A、8259等可编程器件、译码器74LS138、8路同相三态双向总线收发器74LS245、点阵显示器件的使用。3.学会用汇编语言编写一个较完整的实用程序。4.掌握微型计算机技术应用开发的全过程,包括需求分析、原理图设计、元器件选用、布线、编程、调试、撰写报告等步骤。三、设计内容1.点阵显示系统启动后的初始状态在计算机显示器上出现菜单:dotmatrixdisplaysystem1.←leftshiftdisplay2.↑upshiftdisplay3.sstop4.EscExit2.点阵显示系统运行状态按计算机光标←键,点阵逐列向左移动并显示:“微型计算机技术课程设计,点阵显示系统,计科11302班,陈嘉敏,彭晓”。按计算机光标↑键,点阵逐行向上移动并显示:“微型计算机技术课程设计,点阵显示系统,计科11302班,陈嘉敏,彭晓”。按计算机光标s键,点阵停止移动并显示当前字符。3.结束程序运行状态按计算机Esc键,结束点阵显示系统运行状态并显示“停”。四.设计所需器材与工具1.一块实验面包板(内含时钟信号1MHz或2MHz)。2.可编程芯片8253、8255、74LS245、74LS138各一片,16×16点阵显示器件一片。43.导线若干。4.示波器、万用表、常用工具等共用(从实验室现借现还)。五、设计思路1.利用74LS138设计地址译码电路,8255端口地址:300H~303H,8253端口地址:304H~307H。2.74LS245用于总线和8253、8255之间的双向传输和隔离。3.利用面包板上时钟(1MHz或2MHz)和8253设计一个1毫秒定时电路,将定时信号(1毫秒方波)接到总线的IRQ2或IRQ10送给8259控制点阵左移或上移。4.选择8255的PA0、PA4、PA5和PB4、PB5、PB6、PB7,7个位控制点阵显示器件行和列的数据串行输入、输入脉冲、锁存脉冲(并行输出脉冲)。六、设计步骤1.电路原件介绍(1)74LS245数据总路线缓冲器图6-1-174LS245的功能表图6-1-25图6-1-3(2)74LS138图6-1-46标准地址译码电路图6-1-58255CS对应的地址为300H~303H,8253CS对应的地址为304H~307H。简化后的非标准地址译码电路图6-1-67(3).8253定时/计数器图6-1-7(4).8255A图6-1-88(5).点阵显示器件图6-1-9图6-1-10附4、课程设计所用器件图6-1-129附5、点阵生成图图6-1-13图6-1-1410图6-1-15图6-1-1611图6-1-17图6-1-1812图6-1-19图6-1-20132.流程图3.电路图图6-3-1开始初始化8253、8255A及8259芯片,选择计数器1、2,输出端口A、B,工作方式0显示主界面信息,点阵显示出字模,停止不移动中断服务程序,不断扫描键盘,等待有键按下(1.2.3.4)并执行相应服务程序按键1启动LeftShift功能,调用左移程序,并显示在点阵上按键2启动UpShift功能,调用上移程序,并显示在点阵上按键3启动StopDisplay功能,调用停止程序,点阵停止移动并显示当前字符按键4启动Esc功能,调用退出程序,点阵显示“停”,并结束显示。14注:(1)电路箱总芯片上已集成8259芯片,实际连接时8253的OUT2直接接到总芯片的IRQ10处;(2)实际连接时,是由8255A芯片的PA0、PA4、PA5、PB4、PB5、PB6、PB7控制点阵显示屛;PA0→R1、PA4→SCK、PA5→LATCH、PB4→A、PB5→B、PB6→C、PB7→D。GND和EN/OE接地,+5V接电源正极。4.正确运用所给器件布线,搭接硬件电路初始接线图图6-4-1测试中发现8255无法正常工作,检查得知面包板底下有短路,重新申请新的面包板,更改部分线路,最后得到线路图如下,并测试成功。15最终接线图及测试图6-4-2165.详细汇编代码DATASEGMENT微db12H,10H,12H,10H,2AH,90H,4AH,0A4H,8AH,0BEH,1FH,0C4H,20H,24H,7FH,0A8H,0A0H,28H,2FH,28H,29H,10H,29H,50H,29H,0A8H,29H,28H,30H,46H,20H,84H型db01H,04H,7FH,84H,12H,24H,12H,24H,12H,24H,0FFH,0A4H,12H,24H,12H,24H,12H,04H,23H,14H,41H,08H,7FH,0FCH,01H,00H,01H,04H,0FFH,0FEH,00H,00H计db00H,40H,20H,40H,10H,40H,10H,40H,00H,40H,00H,44H,0F7H,0FEH,10H,40H,10H,40H,10H,40H,10H,40H,12H,40H,14H,40H,18H,40H,10H,40H,00H,40H算db20H,80H,3EH,0FCH,49H,20H,9FH,0F0H,10H,10H,1FH,0F0H,10H,10H,1FH,0F0H,10H,10H,1FH,0F0H,08H,24H,0FFH,0FEH,08H,20H,08H,20H,10H,20H,20H,20H机db10H,00H,10H,10H,11H,0F8H,11H,10H,0FDH,10H,11H,10H,31H,10H,39H,10H,55H,10H,51H,10H,91H,10H,11H,10H,11H,12H,12H,12H,14H,0EH,18H,00H技db10H,40H,10H,40H,10H,48H,13H,0FCH,0FCH,40H,10H,40H,10H,40H,13H,0F8H,1AH,08H,31H,10H,0D1H,10H,10H,0A0H,10H,40H,10H,0B0H,51H,0EH,26H,04H术db01H,00H,01H,40H,01H,30H,01H,10H,01H,04H,0FFH,0FEH,01H,00H,03H,80H,05H,40H,09H,20H,11H,10H,21H,0EH,0C1H,04H,01H,00H,01H,00H,01H,00H课db00H,08H,43H,0FCH,22H,48H,22H,48H,03H,0F8H,02H,48H,0E2H,48H,23H,0F8H,20H,40H,2FH,0FEH,20H,0E0H,29H,50H,32H,48H,24H,4EH,08H,44H,00H,40H程db08H,04H,1DH,0FEH,0F1H,04H,11H,04H,11H,04H,0FFH,04H,11H,0FCH,38H,00H,37H,0FEH,54H,20H,50H,28H,91H,0FCH,10H,20H,10H,24H,17H,0FEH,10H,00H设db01H,0F0H,21H,10H,11H,10H,11H,10H,01H,10H,02H,0EH,0F4H,00H,13H,0F8H,11H,08H,11H,10H,10H,90H,10H,0A0H,14H,40H,18H,0B0H,13H,0EH,0CH,04H计Db00H,40H,20H,40H,10H,40H,10H,40H,00H,40H,00H,44H,0F7H,0FEH,10H,40H,10H,40H,10H,40H,10H,40H,12H,40H,14H,40H,18H,40H,10H,40H,00H,40HDou0db00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,18H,00H,18H,00H,10H,00H,20H,00H,00H,00H,00H,00H点db02H,00H,02H,00H,02H,08H,03H,0FCH,02H,00H,02H,10H,3FH,0F8H,20H,10H,20H,10H,20H,10H,3FH,0F0H,00H,00H,29H,10H,24H,0C8H,44H,44H,80H,04H阵db00H,80H,78H,84H,4FH,0FEH,50H,80H,50H,0A0H,61H,20H,51H,28H,4BH,0FCH,48H,20H,48H,20H,68H,24H,57H,0FEH,40H,1720H,40H,20H,40H,20H,40H,20H显db00H,10H,1FH,0F8H,10H,10H,10H,10H,1FH,0F0H,10H,10H,10H,10H,1FH,0F0H,14H,50H,44H,44H,34H,4CH,14H,50H,04H,40H,04H,44H,0FFH,0FEH,00H,00H示db00H,10H,3FH,0F8H,00H,00H,00H,00H,00H,00H,00H,04H,0FFH,0FEH,01H,00H,01H,00H,09H,20H,19H,18H,21H,0CH,41H,04H,01H,00H,05H,00H,02H,00H系db00H,38H,7FH,0C0H,04H,00H,04H,10H,08H,20H,3FH,0C0H,01H,00H,02H,20H,04H,10H,3FH,0F8H,01H,08H,09H,20H,09H,10H,11H,08H,25H,08H,02H,00H统db10H,80H,10H,40H,20H,48H,27H,0FCH,48H,80H,0F9H,10H,12H,08H,27H,0FCH,41H,24H,0F9H,20H,41H,20H,01H,20H,1AH,22H,0E2H,22H,44H,1EH,08H,00HDou2db00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,18H,00H,18H,00H,10H,00H,20H,00H,00H,00H,00H,00HZhangDb09H,00H,0FDH,08H,09H,08H,09H,10H,09H,20H,79H,40H,41H,04H,47H,0FEH,41H,40H,79H,40H,09H,20H,09H,20H,09H,10H,09H,4EH,51H,84H,21H,00HstrmenuDB'dotmatrixdisplaysystem',0AH,0DH,'1.','L','leftshiftdisplay',0AH,0DH,'2.','U','upshiftdisplay',0AH,0DH,'3.Sstop',0AH,0DH,'4.EscExi
本文标题:微机原理课程设计报告
链接地址:https://www.777doc.com/doc-2291815 .html