1、 摘 要 LED 点阵显示屏作为一种新兴的显示器件,是由多个独立的 LED 发光二极管封装 而成. LED 点阵显示屏可以显示数字或符号, 通常用来显示时间、速度、系统状态等。 本设计是4个88点阵 LED 电子显示屏的设计。整机以美国 ATMEL 公司生产的40 脚单片机 AT89C51为核心,介绍了以它为控制系统的 LED 点阵电子显示屏的动态设计 和开发过程。该电子显示屏可以显示各种文字或单色图像,全屏能显示1个汉字,采 用4块88点阵 LED 显示模块来组成1个1616点阵显示模式。显示采用动态显示,使 得图形或文字能够实现静止、移入移出等多种显示方式。文中详细介绍了 LED 点阵显
2、示的硬件设计思路、硬件电路各个部分的功能及原理、相应软件的程序设计,以及使 用说明等。 关键词:AT89C51;LED;点阵显示;动态显示 Abstract As a new display, LED dot matrix display is formed by the multiple independent LED light emitting diode package. LED dot matrix display can display the numbers or symbols, often used to display time, speed, and system sta
3、te. The design is four 8 8 dot matrix LED display design. Machine production in the United States ATMEL 40 pin AT89C51 microcontroller as the core, and introduced it for the control system of LED dot matrix electronic display dynamic design and development process. The electronic display can display
4、 a variety of text or monochrome images, full screen display of a Chinese character, four 88 dot matrix LED display module to form a 16 16 dot matrix display mode. Displays the dynamic display, graphics or text to achieve stationary, moved out of the other display. LED dot matrix display hardware de
5、sign ideas, features and principles of the various parts of the hardware circuit, the corresponding software programming, and instructions for use, etc. in detail. Key words : AT89C51;LED;LatticeDisplay;DynamicDisplay 目 录 1 问题描述 1 2 需求分析 1 2.1 要求 . 1 2.2 任务 . 1 2.3 运行环境 1 2.4 开发工具 1 3 硬件设计 1 3.1 总体设
6、计 . 2 3.2 电源、单片机系统及其管脚 3 3.3 点阵及其驱动部分 4 4 软件设计 7 4.1 显示驱动程序 7 4.2 系统主程序 8 5 调试及性能分析 . 8 总 结 . 11 致 谢 . 12 附 录 . 12 1 1 问题描述 本设计主要是设计一个实用的 4 个 88 点阵屏的图文显示, 要求在目测条 件下 LED 显示屏各点亮度均匀、 充足, 可显示图形和文字, 显示图形或文字稳定、 清晰无串扰。图形或文字显示有静止和移入移出等显示方式。本文还重点介绍了 单片机对 LED 点阵屏的控制电路,驱动电路的设计方法,并根据 LED 点阵屏的硬 件特点, 对其软件实现的算法给出了具体的分析。从而实现了显示的字体能够 进行自下向上移动。 2 需求分析 2.1 要求 (1)设计一个能显示 4 个 88 点阵图文 LED 显示屏; (2)要求能显示图形或文字; (3)有静止、上移、下移等显示方式(此项应有 2 种以上) 。 2.2 任务 (1)首先设计单片机系统及外围电路、列驱动电路和行驱动电路; (2)画出主模块的流程图; (3)编写代码; (4)程序分