摘要:以89C52单片机为控制核心,设计了一个16*16的LED点阵显示控制器,且在系统硬件线路中采用74HC595和74LS164实现串行输入、并行输出,用于扩展单片机I/O口。能够在点阵LED中实现图片和文字静态及动态上下左右切入显示。并且通过VB上位机编写上位机,通过串口远程监控,实现电脑绘画而LED点阵显示,电脑控制动画上下左右移动等功能。整个系统可靠性高,灵活性及趣性强可应用于广告显示,玩具,警告提示等领域。9288
关键词: 单片机 ;动画显示; 串口通信; 上位机
LED Dot Matrix Screen Display System Design Animation
Abstract: With 89C52 microcontroller core , designed a 16 * 16 LED dot matrix display controller , and used in the system hardware circuit 74HC595 and 74LS164 serial input , parallel output for extended microcontroller I / O port . Able to achieve in dot matrix LED pictures and text cut down about static and dynamic display . And by VB PC write PC through the serial port remote monitoring , and computer painting and LED dot matrix display , computer-controlled animation features such as up and down and move around . Overall system reliability , flexibility and strong interest can be used in advertising displays, toys, warning and other fields.
Keywords: Single-loop microcomputer;Animation;Serial communication;PC
目 录
摘 要 Ⅱ
ABSTRACT Ⅲ
第1章 引言 1
1.1 LED产业发展的意义以及背景 1
第2章 LED在中国的产业发展 2
2.1 LED产业发展历程与文献研究 2
2.2国内LED产业发展现状 2
2.2.1 LED产业特征 2
2.2.2 LED产业竞争格局 3
2.3 LED市场前景 3
第3章 硬件电路 5
3.1 单片机最小系统以及单片机的广泛应用 5
3.1.1 复位电路 8
3.1.2晶振电路 8
3.2 点阵板硬件电路 10
3.2.1 74LS164 10
3.2.2 74HC595 13
3.2.3 总电路硬件线路 15
3.3 项目概述 15
第4章串口通信技术 16
4.1 UART与RS232概述 16
4.1.1 UART简介 16
4.1.2 RS232接口 16
4.2 CP2102芯片简介 17
4.3 CP2102引脚封装及功能 18
第5章 汉字静态显示软件编程 19
5.1 软件编程实现的功能 19
5.1.1 目标功能 19
5.1.2 达成功能 19
5.2 软件编程 20
5.2.1 系统框图 20
5.2.2 点阵提取字模原理 20
5.2.3 具体编程 22
第6章 远程控制及绘图及动画功能的实现 26
6.1 绘图功能的实现 26
6.1.1 上位机程序设计 26
6.2 下位机点阵屏通信流程 29
6.2.1 实现上位机单片机画点功能通信流程 30
6.3 下位机点阵屏实现动画移动算法 32
结 论 40
致谢 41 参考文献 42