电子信息工程专业毕业论文--12864液晶显示汉字控制电路与程序方案设计.doc
文本预览下载声明
目 录
摘要 1
一、液晶显示控制电路与程序方案设计 2
1.1系统设计思路与框图 2
1.2框图模块功能描述及技术指标分析 3
1.3 电路原理图 4
1.4 相关芯片介绍 5
1.5程序主流程图以及子流程图 7
二、ST7920指令说明 11
三、具体功能程序及硬件实现 15
3.1主要功能程序实现 14
3.2实验步骤 17
3.3毕业设计结果 19
3.4试验中遇到的问题 20
四、总结与体会 21
附录 22
参考文献 25
摘 要
因为汉字本身的特点,显示汉字始终是计算机在我国应用普及的一个障碍。随着单片机和显示技术的发展,加上人们不满足单片机系统采用LED数码管的简单显示,利用单片机控制液晶显示成为当前显示系统的主流。本文主要介绍了89C51单片机为控制设备,液晶显示器为显示设备。实现的一个可以显示汉字、字符和动态显示汉字的液晶显示器设备。通过汉字显示程序的地址,接着运行相应的程序取汉字机内码和西文字符的ASCII码,并在存储器中进行寻址找出相对应的显示代码或汉字字模,提取后作为阵显示信息送液晶显示器显示。再者通过按键控制可以实现显示的汉字左右移动。利用液晶显示器显示汉字操作灵活,汉字显示果可以大大提高。
关键词? 液晶显示 点阵显示? 按键控制
Because of the characteristics of Chinese characters, displaying Chinese characters itself is always computer is applied in our country popularity of an obstacle. With single-chip microcomputer and display technology development, and people dont satisfy SCM system using LED digital display, use simple tube of single-chip microcomputer control LCD display currently become the mainstream of the display system. This article mainly introduced the 89C51 of control equipment, LCD monitors for display device. Implements a can display Chinese characters, characters and dynamic display of Chinese LCD equipment. Through Chinese displaying a programs address, and then run the corresponding program take Chinese characters Machine code and cataloguing of ASCII characters, and in storage addressing find corresponding display code or Chinese character, after extraction word-model as Array display information sent LCD display. Moreover through button control can be realized display characters move around. Using LCD display characters operation is flexible and Chinese displaying fruit can improve greatly.
Keywords LCD dot matrix display button control
一、 液晶显示控制电路与程序方案设计
1.1系统设计思路与框图
液晶显示器YM12864R 的控制器ST7920 可以显示字母、数字符号、中文字型及自定图形显示,只要一个最小的微处理系统,将液晶显示模块的接口作为I/O 设备直接与之连接,就可以进行控制液晶显示器和数据传输,从而达到理想的显示效果。使用P3 口给液晶显示器提供控制信号,P0 口给液晶显示器传送数据。YM12864R 液晶显示器的控制信号有PSB、RS、R/W、E,其中RS、R/W、E分别对应接在AT89C51 的P3.0、P3.1、P3.2、P2.3 上,在本次设计中采用并行接口,故PSB接高电平,而8位数据口DB0~ DB7对应接在
显示全部