LCD12864驱动程序

LCD12864驱动程序

ID:38364409

大小:38.50 KB

页数:9页

时间:2019-06-11

LCD12864驱动程序_第1页
LCD12864驱动程序_第2页
LCD12864驱动程序_第3页
LCD12864驱动程序_第4页
LCD12864驱动程序_第5页
资源描述:

《LCD12864驱动程序》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entityLCD_12864isgeneric(divide_500k:integer:=20;cnt1_value:integer:=50);port(clk,reset:instd_logic;psb:outstd_logic;rs,rw,en:outstd_logic;data:outstd_logic_vector(7downto0)--ss,,sg,fs,fg,ms,mg,ds,dg,js,j

2、g,ls,lg,mh:inSTD_LOGIC_VECTOR(7downto0));endentity;architecturebehaviorofLCD_12864istypeword1isarray(0to5)ofstd_logic_vector(7downto0);typeword2isarray(0to9)ofstd_logic_vector(7downto0);typeword3isarray(0to7)ofstd_logic_vector(7downto0);typestateis(set_dlnf1,set_dlnf2,set_c

3、ursor,set_dcb,set_shift,set_ddram1,set_ddram2,set_ddram3,set_ddram4,set_ddram5,write_shijian,write_ddshijian,write_zongje,write_licheng,write_xuexiao,over,sta1,sta2,sta3,sta4,write_shizhong1,write_shizhong2,write_shizhong3,write_shizhong4,write_shizhong5,write_shizhong6,wri

4、te_shizhong7,write_shizhong8,write_shizhong9,write_shizhong10,write_shizhong11,write_ddsj1,write_ddsj2,write_zje1,write_zje2,write_lc1,write_lc2);constantshijian:word1:=("11001010","10110001","10111100","11100100","10100001","11000011");constantddshijian:word2:=("10110101",

5、"11001000","10110100","11111101","11001010","10110001","10111100","11100100","10100001","11000011");constantzongje:word3:=("11010111","11011100","10111101","11110000","10110110","11101110","10100001","11000011");constantlicheng:word1:=("11000000","11101111","10110011","1100

6、1100","10100001","11000011");constantxuexiao:word3:=("11001101","10101101","11001000","11001010","11010001","10100111","11010100","10111010");signalpr_state:state;signalnewclk:std_logic;beginpsb<='1';process(clk)isvariablenum:integerrange0todivide_500k;beginif(clk'eventandc

7、lk='1')thennum:=num+1;if(num=divide_500k)thennum:=0;endif;if(num

8、ate<=set_dlnf1;cnt1:=0;cnt2:=0;en<='0';data<="ZZZZZZZZ";elsif(newclk'eventandnewcl

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。