1、I 基于单片机的移动字幕的设计与仿真基于单片机的移动字幕的设计与仿真 摘摘 要要 LED 显示屏显示画面色彩鲜艳,立体感强,静如油画,动如电影,广泛应用于车站、 码头、机场、商场、医院、宾馆、银行、证券市场、建筑市场、拍卖行、工业企业管理 和其它公共场所。在实际应用中的显示屏由于成本和可靠性的因素常采用一种称为动态 扫描的显示方法。本文设计的是一个室内用 1616 的点阵 LED 图文显示屏,图形或文 字显示有静止、上移下移左移右移等显示方式。 本文采用 LED 点阵显示器和液晶显示器显示汉字 (或字符) , 并用移动效果实现多个 汉字 (或字符) 的显示。 控制器采用AVR单片机, 还有相应
2、的驱动芯片74LS164和74HC573。 【关键词】单片机,LED 显示屏,74LS164,74HC573 Abstract The LED display show scenes colourful, stereo sense is strong, still as oil painting, move such as movies, widely used in the station, port, airport, shopping mall, hospital, hotel, Banks, securities market, construction market, the auc
3、tion house, industrial enterprise management and other public places. In practical application screen because of cost and reliability often adopted a factor called dynamic scanning display method. In this paper the design is an indoor use 16 x16 matrix and LED display, the graph or the text indicate
4、 that the motionless, move up and move down the left right shift showing the way. This paper using of LED dot matrix display and liquid crystal display shows characters (or character), and mobile effect implement multiple characters (or character) display. The AVR single chip microcomputer controlle
5、r, and the corresponding drive chip 74 LS164 and 74 HC573. 【Key Words】A single-chip microcomputer, the LED display, 74 LS164, 74 HC573 目录 摘摘 要要 I Abstract II 绪绪 论论 1 1 工作原理及硬件分析工作原理及硬件分析 . 2 1.1 用点阵用点阵 LED 实现移动字符显示实现移动字符显示 2 1.1.1 单个字符的显示单个字符的显示 2 1.1.2 用用 16 16矩阵式矩阵式 LED 实现汉字显示实现汉字显示 4 1.1.3 移动字幕的实
6、现移动字幕的实现 4 1.2 字符型液晶的使用字符型液晶的使用 . 5 1.2.1 LCD1602 引脚功能简介引脚功能简介 5 1.2.2 LCD1602 的操作说明的操作说明 6 1.3 点阵点阵 LCD 的使用的使用 . 6 2 程序设计分析及源程序程序设计分析及源程序 7 2.1 用点阵用点阵 LED 实现移动字符显示程序设计分析实现移动字符显示程序设计分析 7 2.1.1 单个字符的显示程序设计分析单个字符的显示程序设计分析 7 2.1.2 用用 16 16矩阵式矩阵式 LED 实现汉字显示程序设计分析实现汉字显示程序设计分析 7 2.1.3 移动字幕的实现程序设计分析移动字幕的实现程序设计分析 8 2.2 字符型液晶的使用字符型液晶的使用 . 11 2.2.1 LCD1602 程序设计分析程序设计分析 11 2.3 点阵点阵 LCD 使用的程序设计使用的程序设计 16 2.3.1 RT19264 的常用函数的常用函数 . 16 结论结论 22 参考文献参考文献 23 附录一:附录一:RT19264-6 引脚功能说明引脚功能说明 24 致谢致谢 25 1 绪绪 论