基于STC89C51单片机的车厢汉字显示系统设计,以单片机为核心,74HC138译码器为主要元件形成驱动电路,LED点阵显示字符。在设计方案完成后,完成了系统软硬件的设计。其中硬件设计主要是合理
摘要:衣食住行是人们衡量生活的一个标准,而如今对于“行”而言,选择的方式有很多,也占了人们日常生活中的一个重要部分。特别是地铁,已经变成了人们不可或缺的交通工具之一。在本文的设计中,为了提高乘客的乘车舒适度,也为了使乘客在声音嘈杂的车厢内也不至于丢失出行的正确信息,设计了一个基于SCM的LED显示系统,通过仿真软件Proteus介绍了驱动电路和点阵显示原理,并且通过仿真为后续的万用板焊接实物元器件提供了基础。在实物设计时本文选用STC89C51作为核心控制元件,因为它的可操作性强,有很强的灵活性且价格适中。通过结合驱动电路、LED显示屏、三极管等元件去完成地铁车厢内LED显示屏上的汉字显示,在硬件的基础上,用C语言编程去控制LED点阵汉字的显示来达到本文的目的。
关键词: LED点阵显示屏;单片机;C语言
Design of Chinese Character Display System
Abstract:Food, clothing and living are a standard for people to measure life. Nowadays, there are many ways for people to choose from, and they also account for an important part of people's daily life. Subway, in particular, has become one of the indispensable means of transportation. In the design of this article, in order to improve the passengers' riding comfort and to ensure that passengers do not lose the correct information of travel in a noisy car, an LED display system based on SCM was designed and introduced by simulation software Proteus. Drive circuit and dot matrix display principle, and provide a basis for the subsequent universal board welding of physical components through simulation. In the physical design, this article selects STC89C51 as the core control element because of its strong operability, strong flexibility, and affordable price. By combining the drive circuit, LED display, triode and other components to complete the display of Chinese characters on the LED display in the subway car, on the basis of hardware, using C language programming to control the display of LED dot matrix Chinese characters to achieve the purpose of this article.
Keywords: LED dot matrix display;Microcontrollers;C language
目录
1绪论 2
1.1 课题背景与研究意义 4
1.2 国内外研究现状与水平 4
1.3 本文的主要工作与内容安排 5
2 车厢汉字显示系统的硬件电路设计 6
2.1 车厢汉字显示系统总体设计方案 6
2.1.1 系统基本构成 6
2.1.2 系统设计方案与论证 7
2.1.3 系统的功能 8
2.2 系统主要元件介绍 9
2.2.1 单片机 9
2.2.2 STC89C51单片机的主要引脚功能 9
2.2.3 STC89C51芯片内部结构 11
2.2.4 74HC138性质及功能 12
2.3 车厢汉字显示系统的硬件设计 14
2.3.1 硬件电路构成 15
2.3.2 各电路模块及其工作原理 16
3 车厢汉字显示系统的软件设计 19
3.1 软件设计应用环境 19
3.2 主要程序模块设计 20
3.2.1 主程序 20
3.2.2 暂停/开始程序 21
3.2.3 左右移动程序 23
3.2.4 字模提取软件 25
4 实验与结果 27
4.1 仿真电路绘制与程序加载 28
4.2 Proteus系统仿真结果 29
4.2.1 左右移动显示设定 33
4.2.2 暂停/开始功能设定 34
4.3 实际电路结果 35
4.3.1 左右移动显示展示 37
4.3.2 循环播放功能展示 38
4.3.3 暂停/开始功能展示 39
5 总结与展望 40
致谢 41
参考文献 42
1 绪论
1.1 课题背景与研究意义
随着社会的高速发展,人们的出行方式发生了巨大的改变。尤其是1990年之后,国内的交通行业有了多元化的变化趋势,这使得人们出行的选择越来越多,出行方式的增多也使人们的出行更加便捷。如今,随着经济、科技和人民生活水平的提高,智能交通网络的发展越来越快。城市智能交通网络的主动脉,是城市生活的完美的运输系统,不仅能保证在城市生活中的人的交通流畅,物流时间的准时准点到位,还是我们对生命的延伸。