1、0南通大学电气工程学院微机原理课程设计报告书课 题 名: 点阵屏显示屏 班 级: 自 113组 长: 孙帅 1112011079 组 员: 卫军会 1112011078 王锡霖 1112011080王栋伟 1112011076指导教师: 陈越1目录1. 设计目的22. 设计内容23. 设计要求24. 设计原理及流图35. 硬件电路图46. 程序代码47. 程序级系统硬件调试情况108. 设计总结与体会119. 参考文献112一、 设计目的课程设计是培养和锻炼学生在学习完本门课后综合应用所学理论知识,解决实际工程设计和应用问题的能力的重要教学环节。它具有动手、动脑和理论联系实际的特点,是培养在校
2、工科大学生理论联系实际、敢于动手、善于动手和独立自主解决设计实践中遇到的各种问题能力的一个重要教学环节。通过课程设计,要求学生熟悉和掌握微机系统的软件、硬件设计的方法、设计步骤,使学生得到微机开发应用方面的初步训练。让学生独立或集体讨论设计题目的总体设计方案、编程、软件硬件调试、编写设计报告等问题,真正做到理论联系实际,提高动手能力和分析问题、解决问题的能力,实现由学习知识到应用知识的初步过渡。通过本次课程设计使学生熟练掌握微机系统与接口扩展电路的设计方法,熟练应用 8086 汇编语言编写应用程序和实际设计中的硬软件调试方法和步骤,熟悉微机系统的硬软件开发工具的使用方法。通过课程设计实践,不仅
3、要培养学生事实求是和严肃认真的工作态度,培养学生的实际动手能力,检验学生对本门课学习的情况,更要培养学生在实际的工程设计中查阅资料,撰写设计报告表达设计思想和结果的能力。3二、 设计内容利用点阵屏显示汉字三、 设计要求(1) 通过四个 8*8 点阵组成 16*16 点阵屏(2) 一个 16*16 点阵显示多个汉字(3) 多个汉字循环在点阵屏上显示四、 设计原理LED 阵列的显示方式是按显示编码的顺序,一列一列地显示。每一列的显示时,由于人类的视觉暂留现象,将感觉到一列 LED 是在同时显示的。若显示的时间太短,则亮度不够,若显示的时间太长,将会感觉到闪烁。本文采用低电平逐列扫描,高电平输出显示
4、信号。即轮流给列信号输出低电平,在任意时刻只有一列发光二极管是处于可以被点亮的状态 ,其它行都处于熄灭状态。为了方便调试本文把 4 块 8*8 组成的 16*16 的点阵屏的行信号输出管脚连接到两个 74HC574 的输出端,列信号扫描输出管脚连接到另外两个 行低八XH EQU 9006H; 行高八YL EQU 9000H; 列低八YH EQU 9002H; 列高八DATA SEGMENTFont:DB 004H,000H,0E4H,0FFH,0E4H,0FFH,024H,008HDB 064H,009H,0E4H,009H,0A4H,009H,03FH,07FHDB 03FH,07FH,0A
5、4H,009H,0E4H,009H,064H,049HDB 024H,0C8H,0E4H,0FFH,0E4H,07FH,004H,000H;南 0DB 040H,080H,042H,0C0H,0CEH,07FH,0CCH,07FH8DB 000H,0C0H,0E2H,0FFH,0E2H,0FFH,02AH,089HDB 02AH,089H,0FAH,0BFH,0FAH,0BFH,02EH,0A9HDB 026H,0E9H,0E2H,0FFH,0E0H,0BFH,000H,080H;通 1DB 020H,080H,020H,080H,020H,0C0H,020H,060HDB 020H,030H
6、,020H,01CH,020H,00FH,0FFH,003HDB 0FFH,003H,020H,00FH,020H,01CH,020H,030HDB 020H,060H,020H,0C0H,020H,080H,020H,080H;大 2DB 040H,004H,070H,004H,031H,004H,097H,004HDB 096H,004H,090H,044H,091H,0C4H,097H,0FEHDB 096H,07EH,090H,007H,098H,005H,09CH,004HDB 017H,004H,053H,004H,070H,004H,030H,004H;学 3DB 000H,00
7、0H,000H,000H,0F8H,01FH,0F8H,01FHDB 088H,008H,088H,008H,088H,008H,0FFH,07FHDB 0FFH,0FFH,088H,088H,088H,088H,088H,088HDB 0F8H,09FH,0F8H,09FH,000H,0F0H,000H,0F0H;电 4DB 020H,000H,030H,000H,05CH,000H,04FH,000HDB 057H,000H,054H,000H,054H,000H,054H,000HDB 054H,000H,054H,000H,054H,000H,0D4H,00FHDB 0D4H,03FH
8、,004H,070H,004H,0F0H,000H,0F0H;气 5DB 000H,020H,004H,020H,004H,020H,004H,020HDB 004H,020H,004H,020H,004H,020H,0FCH,03FHDB 0FCH,03FH,004H,020H,004H,020H,004H,020HDB 004H,020H,004H,020H,004H,020H,000H,020H;工 6DB 024H,008H,024H,00EH,0A4H,007H,0FEH,0FFHDB 0FFH,0FFH,023H,007H,022H,046H,03EH,049HDB 03EH,04
9、9H,022H,049H,022H,07FH,022H,07FHDB 022H,049H,03EH,049H,03EH,049H,000H,041H;程 7DB 040H,004H,070H,004H,031H,004H,097H,004HDB 096H,004H,090H,044H,091H,0C4H,097H,0FEHDB 096H,07EH,090H,007H,098H,005H,09CH,004H9DB 017H,004H,053H,004H,070H,004H,030H,004H;学 8DB 000H,000H,0FEH,0FFH,0FEH,0FFH,07AH,00CHDB 0DEH
10、,00FH,096H,087H,01CH,0C1H,02CH,071HDB 024H,03FH,025H,00FH,027H,001H,026H,03FHDB 024H,07FH,034H,041H,01CH,071H,00CH,071H;院 9DB 000H,000H,000H,000H,000H,000H,0F8H,0FFHDB 0F8H,0FFH,08CH,044H,08EH,044H,08BH,044HDB 089H,044H,088H,044H,088H,044H,0F8H,0FFHDB 0F8H,0FFH,000H,000H,000H,000H,000H,000H;自 10DB 0
11、40H,010H,044H,03CH,0C4H,03FH,0C4H,013HDB 044H,014H,044H,0BCH,044H,0F8H,050H,070HDB 010H,03EH,0FFH,00FH,0FFH,041H,010H,0C0HDB 010H,0C0H,0F0H,07FH,0F0H,03FH,000H,000H;动 11DB 000H,001H,080H,001H,0E0H,000H,0F8H,0FFHDB 0FFH,0FFH,007H,004H,000H,006H,000H,003HDB 0FFH,03FH,0FFH,07FH,060H,040H,030H,040HDB 01
12、8H,040H,00CH,040H,004H,078H,000H,078H;化 12DB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000H;一 13DB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000HD
13、B 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000H;一 14DB 000H,020H,004H,020H,084H,020H,084H,020HDB 084H,020H,084H,020H,084H,020H,084H,020HDB 084H,020H,084H,020H,084H,020H,084H,020HDB 084H,020H,084H,020H,004H,020H,000H,020H;三 15DB 084H,010H,084H,030H,0FCH,03FH,0FCH,0
14、1FH10DB 084H,088H,084H,0CAH,0F8H,063H,0F8H,039HDB 0FFH,01FH,0FFH,007H,084H,020H,084H,020HDB 0FCH,03FH,0FCH,03FH,084H,020H,084H,020H;班 16DB 000H,002H,002H,002H,002H,043H,002H,0C1HDB 0F2H,0FFH,0FAH,07FH,0CEH,004H,046H,007HDB 0E0H,043H,0E0H,0C0H,0FFH,0FFH,0FFH,07FHDB 020H,000H,0E0H,000H,0C0H,007H,000H,
15、007H;孙 17DB 000H,000H,0FCH,087H,0FCH,0C7H,000H,070HDB 0FFH,03FH,0FFH,00FH,000H,000H,0F0H,01FHDB 0F0H,01FH,010H,000H,0FFH,0FFH,0FFH,0FFHDB 010H,018H,0F0H,01FH,0F0H,00FH,000H,000H;帅 18DB 000H,040H,002H,040H,082H,040H,082H,040HDB 082H,040H,082H,040H,082H,040H,0FEH,07FHDB 0FEH,07FH,082H,040H,082H,040H,0
16、82H,040HDB 082H,040H,082H,040H,002H,040H,000H,040H;王 19DB 020H,001H,030H,001H,03CH,001H,0EFH,07FHDB 0E7H,07FH,024H,031H,024H,035H,0FEH,0B6HDB 0FEH,0DBH,092H,06FH,092H,036H,092H,05EHDB 0FEH,0CEH,0FEH,0FEH,000H,07EH,000H,000H;锡 20DB 010H,020H,01CH,022H,00DH,032H,055H,01AHDB 0D5H,0FFH,0D5H,0FFH,055H,01
17、AH,07FH,032HDB 07FH,032H,055H,01AH,0D5H,0FFH,0D5H,0FFHDB 055H,00EH,015H,01AH,01CH,032H,00CH,020H;霖 21DB 000H,040H,002H,040H,002H,040H,002H,040HDB 002H,040H,002H,040H,0FEH,07FH,0FEH,07FHDB 002H,040H,002H,040H,002H,041H,002H,043HDB 0FEH,043H,0FEH,041H,000H,040H,000H,040H;卫 22DB 008H,010H,00EH,010H,026
18、H,012H,022H,013HDB 0A2H,013H,0E2H,012H,07AH,012H,0BAH,0FFHDB 0A2H,0FFH,022H,012H,022H,012H,022H,012H11DB 022H,012H,02AH,012H,00EH,010H,006H,010H;军 23DB 040H,000H,040H,002H,060H,042H,020H,0E2HDB 070H,0F2H,058H,05AH,04CH,04EH,047H,046HDB 047H,042H,04CH,042H,058H,052H,070H,072HDB 020H,0E2H,060H,0C2H,04
19、0H,002H,040H,000H;会 24DB 000H,040H,002H,040H,082H,040H,082H,040HDB 082H,040H,082H,040H,082H,040H,0FEH,07FHDB 0FEH,07FH,082H,040H,082H,040H,082H,040HDB 082H,040H,082H,040H,002H,040H,000H,040H;王 25DB 010H,004H,010H,007H,0D0H,003H,0FFH,0FFHDB 0FFH,0FFH,098H,021H,088H,031H,0E8H,01DHDB 078H,04DH,01FH,0C1
20、H,0EFH,0FFH,0E8H,07FHDB 008H,005H,008H,00DH,008H,039H,008H,030H;栋 26DB 000H,001H,080H,001H,0E0H,000H,0F8H,0FFHDB 0FFH,0FFH,00FH,002H,048H,002H,048H,002HDB 048H,002H,0FFH,0FFH,0FFH,0FFH,048H,002HDB 048H,012H,048H,032H,048H,03EH,008H,01EH;伟 27DB 004H,010H,024H,018H,064H,00EH,0C4H,007HDB 0E4H,083H,0FCH
21、,0CEH,0DCH,06CH,070H,038HDB 03FH,01EH,0CFH,007H,0C8H,007H,008H,01EHDB 028H,038H,038H,060H,018H,0C0H,000H,080H;欢 28DB 040H,000H,040H,040H,042H,060H,0CEH,03FHDB 0CCH,03FH,000H,060H,0FCH,04FH,0FCH,04FHDB 006H,046H,002H,042H,0FCH,07FH,0FCH,07FHDB 004H,046H,0FCH,047H,0FCH,043H,000H,040H;迎 29DB 020H,040H,
22、030H,070H,018H,030H,0FCH,077HDB 0FFH,0F7H,033H,081H,098H,089H,0EFH,0BAHDB 067H,0B6H,0F4H,087H,0F4H,083H,024H,0E0HDB 074H,0E0H,0DCH,011H,08CH,071H,000H,060H;您 3012RUN DW 1 ;行扫描charcount DW 1 ;汉字个数delaycount DW 1 ;延时时间ROROL DW 1 ;循环DATA ENDSSTACK SEGMENTSTA DB 100 DUP (?)TOP EQU LENGTH STASTACK ENDSCO
23、DE SEGMENTASSUME CS:CODE,DS:DATA,SS:STACKSTART: MOV AX, DATAMOV DS, AXMOV AX, STACKMOV SS, AXMOV AX, TOPMOV SP, AXMOV SI, oFFset Fontmain:MOV AL, 0MOV DX, XLOUT DX, ALMOV DX, XHOUT DX, AL ;将行取低电平MOV AL, 0FFhMOV DX, YL13OUT DX, ALMOV DX, YHOUT DX, AL ;将列取高电平next: MOV charcount, 0nextchar:MOV delaycou
24、nt, 500LOOP1: MOV RUN, 1MOV ROROL, 16MOV BX, charcountMOV AX, 32mul BXMOV BX, AXnextrow: MOV AL, 0FFHMOV DX, XLOUT DX, ALMOV DX, XHOUT DX, AL ;将行取高电平MOV AX, SI+BXMOV DX, YLOUT DX, ALMOV DX, YHMOV AL, ahOUT DX, AL ;将列取数据区的数据INC BXINC BXMOV AX, RUNMOV DX, XL14NOT ALOUT DX, ALMOV DX, XHMOV AL, ahNOT AL
25、OUT DX, ALMOV AX, RUNROL AX, 1MOV RUN, AX ;将行最低位取高电平NOPDEC ROROLJNZ nextrow ;如果小于汉字数的话继续扫描下一个字DEC delaycount ;延时JNZ LOOP1INC charcount ;汉字数加一MOV AX, charcountCMP AX, 31JNZ nextchar ;跳到下一个字JMP nextdelay : PUSH CXMOV CX,1delayl: LOOP delaylPOP CXRETCODE ENDSEND START15七、程序及硬件系统调试情况连好硬件电路图、载入程序后,点击运行键,
26、程序的运行与预期的结果很一样,能很好的完成汉字显示。16实验过程中遇到的问题有:1、显示延时时间没选择好,导致汉字呈闪烁状态。解决办法:减小显示时间。2、汉字循环显示太快。解决的办法是:增加每个字的显示时间。八、设计总结与体会通过本次的课程设计,我对微机相关方面的知识有了更进一步的认识和掌握。学会了如何运用理论知识解决实际问题,在设计过程中,拓展了思维,提高了自身综合能了。锻炼了我自己在学完本门课后综合应用所学理论知识,解决实际工程设计和应用问题的能力。要想做好此次的实验,我觉得首先做好如下工作:熟悉和掌握微机系统的软件、硬件设计的方法、设计步骤,独立或集体讨论设计题目的总体设计方案、编程、软
27、件硬件调试、编写设计报告等问题,真正做到理论联系实际,提高动手能力和分析问题、解决问题的能力,实现由学习知识到应用知识的初步过渡。通过本次课程设计使我熟练掌握了微机系统与接口扩展电路的设计方法,会熟练应用8086 汇编语言编写应用程序和实际设计中的硬软件调试方法和步骤,熟悉微机系统的硬软件开发工具的使用方法。17在这次的课程设计过程中,我跟同学相互协助,共同讨论,才顺利完成了相关的问题。培养自己事实求是和严肃认真的工作态度,培养自己的实际动手能力。这次的实验,我受益匪浅。九、参考文献1 顾晖等。微机原理与接口技术-基于 8086 和 Proteus 仿真M电子工业出版社陈继红等. 微机原理及应用M高等教育出版社,20102戴梅萼等.微型计算机技术及应用M清华大学3彭虎等. 微机原理与接口技术(第 2 版) M电子工业出版社,20084 张弥左,王兆月,邢立军等.微型计算机接口技术.北京:机械工业出版社