基于FPGA的LCD控制器设计修改版m - 图文

2019-04-09 18:12

吉林工程技术师范学院毕业论文

毕业论文设计

作 者: 刘喆 学 号 0701014308 学 院 信息工程学院 系(专业): 电子信息工程

题 目: 基于FPGA的液晶显示控制器设计

指导者: _________________李悦_________________

2011年 03 月 31日

- 1 -

老师

基于FPGA的LCD控制器设计

基于FPGA的LCD控制器设计

【摘要】

本课题主要任务是设计基于FPGA的LCD控制器,兼顾好程序的易用性,以方便之后模块的移植和应用。本课题的设计采用了带ST7920驱动的12864-12液晶模块,并使用Altera公司的cycloneII系列的EP2C5T144C8来作为核心的控制器。控制器部分采用VHDL语言编写,主体程序采用了状态机作为主要控制方式。该控制器分为字符显示模块和图片显示模块两个主要部分。在字符的显示功能上采用显示控制模块与字符调用RAM相结合的方式,使使用者能方便地调用液晶自带的字库来显示字符;而图片显示模块则通过特殊的处理算法解决了图像显示缓冲区X地址不断移位以及上下半屏分开的问题,通过读取图片ROM来显示图片。最后实现使用FPGA在LCD上的任意位置显示任意的16*16像素的中文字符以及16*8的英文字符,另外要能根据输入数据的变化同步变化LCD上显示的内容。同时要能将储存模块中的图片数据正常地显示在LCD上。

该课题的研究将有助于采用FPGA的系列产品的开发,特别是需要用到LCD的产品的开发。同时可以大大缩短FPGA的开发时间。另外,由于模块的易用性,也将使得更多的采用FPGA的产品之上出现LCD,增加人机之间的交互性,为行业和我们的生活带来新的变化。

【关键词】

12864-12,VHDL,LCD,FPGA,状态机

- 2 -

吉林工程技术师范学院毕业论文

Design of the LCD Control Module Based on FPGA

【Abstract】

In this project, the main object is to design a LCD controller based on FPGA, and at the same time emphasize on the convenience for the later application and migration. In this project, I used 12864-12 LCD module with the ST7920 driver. For the controller part, I chose the Cyclone II serial FPGA, the EP2C5T144C8, which developed by the Altera Cooperation. The program of the controller is written by VHDL language, and the main body of the program used state machine as the primary control method. In this LCD controller, there are two major parts, which are the character display module and the picture display module. The character display module put the Character Calling Ram and the display control module together to enable the user to call the embedded character library easily to display the information he/she needed. For the picture display module, the module, through specific algorithm, solved the problems that the x address of the picture display buffer kept stepping forward after every 16 times and the display screen are divided into 2 section by the buffer. And this module, by reading a picture ram, displayed picture which was put earlier.

In this project, I finally realized the following function. The first one is to display any 16*16 pixels Chinese character and 16*8 pixels English character on any position of the display screen. The second one is the display information will instantaneously update as the input data changes. The last function is that any given picture data can be displayed properly on the LCD screen.

The research of this project will contribute to the developing process of those products which use FPGAs, especially those products also use LCD. And at the same time, it can reduce dramatically on the developing time. In addition, for the convenience of this controller, more and more FPGA based products will come out with LCD screen. This change will enhance the interaction between human and the machine, and bring innovation to the industry and our lives.

【Key Words】

12864-12,VHDL,LCD,FPGA,State Machine.

- 3 -

基于FPGA的LCD控制器设计

目录

毕业论文设计 ························· - 1 - 基于FPGA的LCD控制器设计 ···················· - 2 - 【摘要】 ··························· - 2 - 第1章 绪论 ···························· 6 1.1 选题的背景与意义 ····················· 6 1.2 LCD的控制,应用和市场的发展现状 ·············· 7 1.3 课题的主要研究内容和重点、难点 ·············· 8 1.3.1 本课题主要研究内容和重点 ··············· 8 1.3.2 本课题的主要难点: ·················· 8 1.4 课题研究预期目标 ····················· 9 1.4.1 课题研究预期理论目标 ················· 9 1.4.2 课题研究预期技术目标 ················· 9 第2章 现代LCD技术 ························· 10 2.1 现代LCD技术简介 ······················ 10 2.2 STN-LCD技术的显示原理 ··················· 11 2.3 动态STN-LCD驱动方法 ···················· 12 第3章 现代FPGA技术 ························ 15 3.1 FPGA的发展历程 ······················ 15 3.2 FPGA的基本原理 ······················ 16 3.2.1 查找表的基本原理···················· 16 3.2.2 基于乘积项的FPGA的逻辑实现原理············· 16 3.3 FPGA的设计方法 ······················ 17 3.4 VHDL硬件描述语言 ····················· 18 3.5 Quartus II简介 ······················ 18 3.6 核心控制芯片选择 ····················· 20 3.7 FPGA的设计流程 ······················ 21 第4章 总体系统设计及资源 ····················· 24 4.1 系统设计要求 ······················· 24 4.2 系统设计总体框图 ····················· 24 4.3 系统开发选用资源 ····················· 25

4

吉林工程技术师范学院毕业论文

4.3.1 液晶模块选用 ····················· 25

4.3.2 FPGA的选择 ······················ 30 4.4 硬件设计 ························· 32 第5章 系统各部分模块的设计 ···················· 34

5.1 初始化模块设计 ····················· 34 5.1.1 LCD模块初始化原理 ··················· 34 5.1.2 时钟模块的设计····················· 36 5.1.3 字符显示前初始化模块的设计··············· 37 5.1.4 图片显示前初始化模块的设计··············· 40 5.2 写入数据模块的设计 ··················· 42 5.2.1 英文字符部分的数据模块················· 42 5.2.2 中文字符部分的数据模块················· 45 5.2.3 图片部分的数据模块··················· 46 5.3 显示控制模块的设计···················· 46 5.3.1 字符显示控制模块的设计················· 46 5.3.2 动态数据的显示控制··················· 48 5.3.3 图像数据的显示控制··················· 50 5.4 字符显示及图片显示整体模块 ················ 56 5.5 本章小结 ························· 57 4.1 Quartus II简介 ······················· 58 4.2.4 sdram接口部模块 ······················· 62 结束语 ······························ 64 参考文献 ····························· 65

5


基于FPGA的LCD控制器设计修改版m - 图文.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:减速器调研报告

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: