1、 单片机原理及应用课程设计报告 LED 点阵广告牌的设计点阵广告牌的设计 班 级: 学 号: 姓 名: 指导教师: 成 绩: 2012 年 6 月 14 日 I 摘要 本文介绍了一款以单片机 AT89C52 为控制器的 LED 点阵显示屏系统的设计。该系统可 实现中英文字符以及特殊字符的显示和动态特效显示,通过控制按钮,可以实现不同效果 间切换,达到实际应用中广告牌的要求。并且可以通过级连的方式来扩大显示屏幕的尺寸 以达到增加显示内容的目的。 系统采用 PC 机作为上位机,上位机向单片机发送控制命令和上位机所存储的显示代 码,AT89C52 单片机接收并处理 PC 机的控制命令以及显示代码,由
2、显示驱动模块驱动一个 1616 分辨率的 LED 点阵显示屏的扫描显示。选用两片 74HC138 译码器作为 I /O 口的扩 展,与 LED 点阵显示屏的控制列脚相连,1616 的点阵显示由 4 块 88 点阵组成。软件 选用 C 语言程序编写。外部中断 0 输入口接控制按钮实现不同效果间的转换。所选用的 AT89C52 单片机具有价格低廉程序写入方便的特点使得整个系统方便维护和检修。除此之 外,该系统只占用了单片机少量的 I /O 口和内存,为系统留下了功能扩展的空间。 关键词关键词 52 单片机;LED 点阵显示;广告牌 II Abstract This paper introduces
3、 a design of a LED matrix screen with a single chip microcomputer AT89C52 controller. The system can display the Chinese and English characters and special characters and show various dynamic effects.With the control button, it can realize the switch between different effects, which achieves the req
4、uirement of billboards in practical application. And by the way it can also expand the size of the screen in order to achieve the purpose of increasing the content by cascade. The system of upper computer is a PC. PC sends control command and store display codes to the single chip microcomputer. AT8
5、9C52 single-chip microcomputer receives and deals with the PC control commands and displays code.The display driver modules drive a 16 16 resolution of LED dot matrix display scanning display. We choose two pieces of 74 HC138 decoder as I/O the expansion of the interface,which is linked with LED dot
6、 matrix display listed feet.The 16 16 dot matrix screen consists of 4 pieces of 8 x 8 dot matrix screens. The codes are in C programming language. External interruption 0 input port is linked with control button which realizes the transformation between different effects. AT89C52 single-chip microcomputer is cheap and convenient to use and repair. In addition, the system takes only a little internal space and a few I/O ports,which saves a larg