内容发布更新时间 : 2024/11/18 6:23:24星期一 下面是文章的全部内容请认真阅读。
摘 要
本文研究了基于AT89S51单片机LED8×8点阵显示屏的设计并运用PROTEUS软件进行原理图绘制,运用KEIL软件进行仿真和调试。主要介绍了LED8×8点显示屏的硬件电路设计、汇编程序设计与调试、PROTEUS软件绘制原理图和实物制作等方面的内容,本显示屏的设计具有体积小、硬件少、电路结构简单及容易实现等优点。能帮助广大电子爱好者了解点阵显示原理,认识单片机的基本结构、工作原理及应用方法,并提高单片机知识技术的运用能力。利用单片机来设计的系统,既能实现系统所需的功能,也可以满足计数的准确、迅速性,并且电路简单,操作简单,通用性强。
目 录
1.绪论···································································2
1.1 前言·······················································2 1.2国内外的研究概况············································2 2. 系统概述······················································3 3.课程设计目的··················································3 4.课程设计题目和任务············································3 5.设计内容······················································4
5.1系统功能的描述······················································4
5.2 系统硬件设计···············································4
5.2.1 AT89S51芯片的介绍···································4 5.2.2 单片机系统设计·······································7
5.2.3 单片机的发展趋势·····································8 5.2.4 时钟电路的设计········································9 5.2.5 复位电路的设计········································9 5.2.6驱动电路的设计········································10 5.2.7 8×8LED点阵………………………………………………………10 5.3 计数器初值计算·············································11 5.4 字母A到F点阵显示代码的形成·······························11 5.5 程序流程图·················································12 5.6 源程序·····················································12 6. 调试及性能分析 ···············································13 6.1系统调试···················································13
6.1.1软件调试··············································13 6.1.2硬件调试··············································14 6.2设计分析 ···················································14 7.设计总结·····················································14 附件 调试结果···················································15 参考书目························································16
1
1.绪论
1.1 前言
LED点阵显示屏是集微电子技术、计算机技术、信息处理技术于一体的大型显示屏系统。它以其色彩鲜艳,动态范围广,亮度高,寿命长,工作稳定可靠等优点而成为众多显示媒体以及户外作业显示的理想选择。同时也可广泛应用到军事、车站、宾馆、体育、新闻、金融、证券、广告以及交通运输等许多行业。目前大多数的LED点阵显示系统自带字库。其显示和动态效果(主要是显示内容的滚动)的实现主要依靠硬件扫描驱动,该方法虽然比较方便,但显示只能按照预先的设计进行。而实际上经常会遇到一些特殊要求的动态显示,比如电梯运行中指示箭头的上下移动、某些智能仪表幅值的条形显示、广告中厂家的商标显示等。这时一般的显示系统就很难达到要求。另外,由于受到存储器本身的局限,其特殊字符往往难以显示,同时显示内容也不能随意更改。 因此就提出了一种利用PC机和单片机控制的LED显示系统通信方法。该方法可以对显示内容进行实时控制,从而实现诸如动态显示效果。同时用户也可以在PC机上进行显示效果的预览,显示内容亦可以即时修改。同时它具有发光率高、使用寿命长、组态灵活、色彩丰富以及对室内外环境适应能力强等优点。并广泛的用于公交汽车、商店、体育场馆、车站、学校、银行、高速公路等公共场所的信息发布和广告宣传。LED 显示屏发展较快,本文讲述了基于AT89S51单片机8×8 LED点阵显示的基本原理、硬件组成与设计、程序编写与调试、Proteus软件仿真等基本 环节和相关技术。 1.2 国内外的研究概况
目前大多数的LED点阵显示系统自带字库。其显示和动态效果(主要是显示内容的滚动)的实现主要依靠硬件扫描驱动,该方法虽然比较方便,但显示只能按照预先的设计进行。而实际上经常会遇到一些特殊要求的动态显示,比如电梯运行中指示箭头的上下移动、某些智能仪表幅值的条形显示、广告中厂家的商标显示等。这时一般的显示系统就很难达到要求。另外,由于受到存储器本身的局限,其特殊字符或图案也往往难以显示,同时显示内容也不能随意更改。本文提出一种利用PC机和单片机控制的LED显示系统通讯方法。该方法可以对显示内容(包括汉字和特殊图符)进行实时控制,从而实现诸如闪动、滚动、打字等多种动态显示效果。该方法同时还可以调节动态显示的速度,同时用户也可以在PC
2