基于51单片机的LED点阵显示屏PROUTES 下载本文

****大学 毕业设计(论文)

题目名称:基于51单片机的LED点阵显示屏系统

的设计与实

本科生毕业论文

I

基于51单片机的LED点阵显示屏系统的设计与实现

摘要:本文介绍了一款以单片机AT89S51为控制器的LED点阵显示屏系统的设计。该系统可实现中英文字符的显示和动态特效显示。并且可以通过级连的方式来扩大显示屏幕的尺寸以达到增加显示内容的目的。系统采用PC机作为上位机,上位机向单片机发送控制命令和上位机所存储的显示代码,AT89S51单片机接收并处理PC机的控制命令以及显示代码,由显示驱动模块驱动一个16×16分辨率的LED点阵显示屏的扫描显示。PC机与单片机之间的通信采用RS—232C通信标准来实现。所选用的AT89S51单片机具有价格低廉程序写入方便的特点使得整个系统方便维护和检修。除此之外,该系统只占用了单片机少量的I /O口和内存,为系统留下了功能扩展的空间。

关键字:AT89S51;LED点阵显示;串行通信

本科生毕业论文

II

第1章 绪 论 ················································································· 错误!未定义书签。 1.1 课题背景·················································································· 错误!未定义书签。 1.1.1 选题背景 ·········································································· 错误!未定义书签。 1.1.2 研究现状及发展趋势 ······················································ 错误!未定义书签。 1.2 论文主要内容·········································································· 错误!未定义书签。 第2章 方案论证与选择 ··································································································· 1 2.1 系统硬件方案············································································································ 1 2.1.1 显示屏主控制器 ································································································ 1 2.1.2 通信系统 ············································································································ 2 2.1.3 LED点阵显示屏································································································ 3 2.1.4 硬件设计方案 ···································································································· 4 2.2 系统软件方案············································································································ 5 2.2.1 单片机编程语言 ································································································ 5 2.2.2 系统软件编译器介绍 ························································································ 6 2.2.3 上位机控制传输软件 ························································································ 6 第3章 系统硬件设计 ······································································································· 8 3.1 硬件整体设计概述及功能分析················································································ 8 3.2 控制单元设计············································································································ 9 3.2.1 AT89S51简介 ···································································································· 9 3.2.2 控制系统设计 ·································································································· 10 3.3 译码电路设计·········································································································· 12 3.3.1 串并转换器74LS164······················································································· 12 3.3.2 锁存器74L373 ································································································· 13 3.4 驱动电路设计·········································································································· 14 3.4.1 行驱动电路设计 ······························································································ 14 3.4.2 列驱动电路设计 ······························································································ 15 3.5 通信系统硬件设计·································································································· 15

本科生毕业论文

III

3.6 电源设计·················································································································· 16 3.7 级连大屏幕LED显示屏 ························································································ 17 第4章 系统软件设计 ····································································································· 19 4.1 程序设计·················································································································· 19 4.2 显示程序的设计······································································································ 20 4.2.1 LED显示屏的显示方式·················································································· 20 4.2.2 点阵数据表达方式 ·························································································· 21 4.2.3 显示程序的设计 ······························································································ 22 4.3 通信程序的设计······································································································ 23 第5章 系统调试 ············································································································· 26 5.1 系统硬件部分调试方法·························································································· 26 5.1.1 短路与虚焊检测 ······························································································ 27 5.1.2 上电测试 ·········································································································· 27 5.1.3 串口调试 ·········································································································· 27 5.2 系统软件调试方法·································································································· 28 5.3 系统联合调试及结果······························································································ 29 5.4 调试结果分析·········································································································· 29 结论 ····································································································································· 31 致谢 ····································································································································· 32 参考文献 ····························································································································· 33 附录1 系统硬件原理图 ·································································································· 34 附录2 设计程序 ·············································································································· 35 附录3 系统PCB图 ········································································································· 43