0南通大学电气工程学院微机原理课程设计报告书课题名:点阵屏显示屏班级:自113组长:孙帅1112011079组员:卫军会1112011078王锡霖1112011080王栋伟1112011076指导教师:陈越1目录1.设计目的…………………………22.设计内容…………………………23.设计要求…………………………24.设计原理及流图…………………35.硬件电路图………………………46.程序代码…………………………47.程序级系统硬件调试情况……108.设计总结与体会………………119.参考文献………………………112一、设计目的课程设计是培养和锻炼学生在学习完本门课后综合应用所学理论知识,解决实际工程设计和应用问题的能力的重要教学环节。它具有动手、动脑和理论联系实际的特点,是培养在校工科大学生理论联系实际、敢于动手、善于动手和独立自主解决设计实践中遇到的各种问题能力的一个重要教学环节。通过课程设计,要求学生熟悉和掌握微机系统的软件、硬件设计的方法、设计步骤,使学生得到微机开发应用方面的初步训练。让学生独立或集体讨论设计题目的总体设计方案、编程、软件硬件调试、编写设计报告等问题,真正做到理论联系实际,提高动手能力和分析问题、解决问题的能力,实现由学习知识到应用知识的初步过渡。通过本次课程设计使学生熟练掌握微机系统与接口扩展电路的设计方法,熟练应用8086汇编语言编写应用程序和实际设计中的硬软件调试方法和步骤,熟悉微机系统的硬软件开发工具的使用方法。通过课程设计实践,不仅要培养学生事实求是和严肃认真的工作态度,培养学生的实际动手能力,检验学生对本门课学习的情况,更要培养学生在实际的工程设计中查阅资料,撰写设计报告表达设计思想和结果的能力。3二、设计内容利用点阵屏显示汉字三、设计要求(1)通过四个8*8点阵组成16*16点阵屏(2)一个16*16点阵显示多个汉字(3)多个汉字循环在点阵屏上显示四、设计原理LED阵列的显示方式是按显示编码的顺序,一列一列地显示。每一列的显示时,由于人类的视觉暂留现象,将感觉到一列LED是在同时显示的。若显示的时间太短,则亮度不够,若显示的时间太长,将会感觉到闪烁。本文采用低电平逐列扫描,高电平输出显示信号。即轮流给列信号输出低电平,在任意时刻只有一列发光二极管是处于可以被点亮的状态,其它行都处于熄灭状态。为了方便调试本文把4块8*8组成的16*16的点阵屏的行信号输出管脚连接到两个74HC574的输出端,列信号扫描输出管脚连接到另外两个&¥HC574的输出端。程序流程图:4开始初始化将行取低电平将列取高电平行扫描列数据取数据区数据延时是否显示完汉字结束YN58*8点阵1).8X8点阵LED工作原理说明8X8点阵LED结构如下图所示从图上中可以看出,8X8点阵共需要64个发光二极管组成,且每个发光二极管是放置在行线和列线的交*点上,当对应的某一列置1电平,某一行置0电平,则相应的二极管就亮;因此要实现一根柱形的亮法,如图49所示,对应的一列为一根竖柱,或者对应的一行为一根横柱,因此实现柱的亮的方法如下所述:6一根竖柱:对应的列置1,而行则采用扫描的方法来实现。一根横柱:对应的行置0,而列则采用扫描的方法来实现。五、硬件电路图原理图:7六、程序代码XLEQU9004H;行低八XHEQU9006H;行高八YLEQU9000H;列低八YHEQU9002H;列高八DATASEGMENTFont:DB004H,000H,0E4H,0FFH,0E4H,0FFH,024H,008HDB064H,009H,0E4H,009H,0A4H,009H,03FH,07FHDB03FH,07FH,0A4H,009H,0E4H,009H,064H,049HDB024H,0C8H,0E4H,0FFH,0E4H,07FH,004H,000H;南0DB040H,080H,042H,0C0H,0CEH,07FH,0CCH,07FH8DB000H,0C0H,0E2H,0FFH,0E2H,0FFH,02AH,089HDB02AH,089H,0FAH,0BFH,0FAH,0BFH,02EH,0A9HDB026H,0E9H,0E2H,0FFH,0E0H,0BFH,000H,080H;通1DB020H,080H,020H,080H,020H,0C0H,020H,060HDB020H,030H,020H,01CH,020H,00FH,0FFH,003HDB0FFH,003H,020H,00FH,020H,01CH,020H,030HDB020H,060H,020H,0C0H,020H,080H,020H,080H;大2DB040H,004H,070H,004H,031H,004H,097H,004HDB096H,004H,090H,044H,091H,0C4H,097H,0FEHDB096H,07EH,090H,007H,098H,005H,09CH,004HDB017H,004H,053H,004H,070H,004H,030H,004H;学3DB000H,000H,000H,000H,0F8H,01FH,0F8H,01FHDB088H,008H,088H,008H,088H,008H,0FFH,07FHDB0FFH,0FFH,088H,088H,088H,088H,088H,088HDB0F8H,09FH,0F8H,09FH,000H,0F0H,000H,0F0H;电4DB020H,000H,030H,000H,05CH,000H,04FH,000HDB057H,000H,054H,000H,054H,000H,054H,000HDB054H,000H,054H,000H,054H,000H,0D4H,00FHDB0D4H,03FH,004H,070H,004H,0F0H,000H,0F0H;气5DB000H,020H,004H,020H,004H,020H,004H,020HDB004H,020H,004H,020H,004H,020H,0FCH,03FHDB0FCH,03FH,004H,020H,004H,020H,004H,020HDB004H,020H,004H,020H,004H,020H,000H,020H;工6DB024H,008H,024H,00EH,0A4H,007H,0FEH,0FFHDB0FFH,0FFH,023H,007H,022H,046H,03EH,049HDB03EH,049H,022H,049H,022H,07FH,022H,07FHDB022H,049H,03EH,049H,03EH,049H,000H,041H;程7DB040H,004H,070H,004H,031H,004H,097H,004HDB096H,004H,090H,044H,091H,0C4H,097H,0FEHDB096H,07EH,090H,007H,098H,005H,09CH,004H9DB017H,004H,053H,004H,070H,004H,030H,004H;学8DB000H,000H,0FEH,0FFH,0FEH,0FFH,07AH,00CHDB0DEH,00FH,096H,087H,01CH,0C1H,02CH,071HDB024H,03FH,025H,00FH,027H,001H,026H,03FHDB024H,07FH,034H,041H,01CH,071H,00CH,071H;院9DB000H,000H,000H,000H,000H,000H,0F8H,0FFHDB0F8H,0FFH,08CH,044H,08EH,044H,08BH,044HDB089H,044H,088H,044H,088H,044H,0F8H,0FFHDB0F8H,0FFH,000H,000H,000H,000H,000H,000H;自10DB040H,010H,044H,03CH,0C4H,03FH,0C4H,013HDB044H,014H,044H,0BCH,044H,0F8H,050H,070HDB010H,03EH,0FFH,00FH,0FFH,041H,010H,0C0HDB010H,0C0H,0F0H,07FH,0F0H,03FH,000H,000H;动11DB000H,001H,080H,001H,0E0H,000H,0F8H,0FFHDB0FFH,0FFH,007H,004H,000H,006H,000H,003HDB0FFH,03FH,0FFH,07FH,060H,040H,030H,040HDB018H,040H,00CH,040H,004H,078H,000H,078H;化12DB080H,000H,080H,000H,080H,000H,080H,000HDB080H,000H,080H,000H,080H,000H,080H,000HDB080H,000H,080H,000H,080H,000H,080H,000HDB080H,000H,080H,000H,080H,000H,080H,000H;一13DB080H,000H,080H,000H,080H,000H,080H,000HDB080H,000H,080H,000H,080H,000H,080H,000HDB080H,000H,080H,000H,080H,000H,080H,000HDB080H,000H,080H,000H,080H,000H,080H,000H;一14DB000H,020H,004H,020H,084H,020H,084H,020HDB084H,020H,084H,020H,084H,020H,084H,020HDB084H,020H,084H,020H,084H,020H,084H,020HDB084H,020H,084H,020H,004H,020H,000H,020H;三15DB084H,010H,084H,030H,0FCH,03FH,0FCH,01FH10DB084H,088H,084H,0CAH,0F8H,063H,0F8H,039HDB0FFH,01FH,0FFH,007H,084H,020H,084H,020HDB0FCH,03FH,0FCH,03FH,084H,020H,084H,020H;班16DB000H,002H,002H,002H,002H,043H,002H,0C1HDB0F2H,0FFH,0FAH,07FH,0CEH,004H,046H,007HDB0E0H,043H,0E0H,0C0H,0FFH,0FFH,0FFH,07FHDB020H,000H,0E0H,000H,0C0H,007H,000H,007H;孙17DB000H,000H,0FCH,087H,0FCH,0C7H,000H,070HDB0FFH,03FH,0FFH,00FH,000H,000H,0F0H,01FHDB0F0H,01FH,010H,000H,0FFH,0FFH,0FFH,0FFHDB010H,018H,0F0H,01FH,0F0H,00FH,000H,000H;帅18DB000H,040H,002H,040H,082H,040H,082H,040HDB082H,040H,082H,040H,082H,040H,0FEH,07FHDB0FEH,07FH,082H,040H,082H,040H,082H,040HDB082H,040H,082H,040H,002H,040H,000H,040H;王19DB020H,001H,030H,001H,03CH,001H,0EFH,07FHDB0E7H,07FH,024H,031H,024H,035H,0FEH,0B6HDB0FEH,0DBH,092H,06FH,092H,036H,092H,05EHDB0FEH,0CEH,0FEH,0FEH,000H,07EH,000H,000H;锡20DB010H,020H,01CH,022H,00DH,032H,055H,01AHDB0D5H,