- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
LCD_driver(LCD_driver)
LCD_driver(LCD_driver)
# include“sys.h”
# include“delay.h”
# include“usart.h”
# include“LCD_driver.h”
# include“chinese.h”
# include“char.h”
颜色unsigned int[]= { 0 xf800,0 x07e0 0 x001f 0 xffe0,0 x0000 0 x07ff 0 xf81f 0 xffff },/ /颜色数据
空白LCD_Init(空白)
{
LCD_RST(1);/ /低电平复位
delayms(5);
LCD_RST(0);
delayms(5);
LCD_RST(1);
delayms(5);
LCD_CS(0);/ /打开片选低使能
delayms(10);
LCD_Write_COM(0 x00 0 x83);
LCD_Write_DATA(0 x00 0 x02);/ / TESTM = 1
LCD_Write_COM(0 x00 0 x85);
LCD_Write_DATA(0 x00 0 x03);/ / VDC_SEL = 011
LCD_Write_COM(0 x00 0 x8b);
LCD_Write_DATA(0 x00 0 x01);
LCD_Write_COM(0 x00 0 x8c);
LCD_Write_DATA(0 x00 0 x93);/ / STBA[7]= 1,STBA[25:4]= 1,STBA[1:0)= 11
LCD_Write_COM(0 x00 0 x91);
LCD_Write_DATA(0 x00 0 x01);/ / DCDC_SYNC = 1
LCD_Write_COM(0 x00 0 x83);
LCD_Write_DATA(0 x00 0 x00);/ / TESTM = 0
/ /伽马设定
LCD_Write_COM(0 x00 0 x3e);
LCD_Write_DATA(0 x00 0 xb0);
LCD_Write_COM(0 x00 0 x3f);
LCD_Write_DATA(0 x00 0 x03);
LCD_Write_COM(0 x00 0 x40);
LCD_Write_DATA(0 x00 0 x10);
LCD_Write_COM(0 x00 0 x41);
LCD_Write_DATA(0 x00 0 x56);
LCD_Write_COM(0 x00 0×);
LCD_Write_DATA(0 x00 0 * 13);
LCD_Write_COM(0 x00 0 x43);
LCD_Write_DATA(0 x00 0 x46);
LCD_Write_COM(0 x00 0 x44);
LCD_Write_DATA(0 x00 0 x23);
LCD_Write_COM(0 x00 0 x45);
LCD_Write_DATA(0 x00 0 x76);
LCD_Write_COM(0 x00 0 x46);
LCD_Write_DATA(0 x00 0 x00);
LCD_Write_COM(0 x00 0开发)x47;
LCD_Write_DATA(0 x00 0 x5e);
LCD_Write_COM(0 x00 0 x48);
LCD_Write_DATA(0 x00 0 x4f);
LCD_Write_COM(0 x00 0 x49);
LCD_Write_DATA(0 x00 0 x40);
/ / * * * * * * * * * *上电顺序* * * * * * * * * * * *
LCD_Write_COM(0 x00 0 x17);/ /设置晶振
LCD_Write_DATA(0 x00 0 x91);/ / 1001年为100%。
LCD_Write_COM(0 x00 0 x2b);
LCD_Write_DATA(0 x00 0 xf9);
delayms(10);
LCD_Write_COM(0 x00 0 x1b);
LCD_Write_DATA(0 x00 0 x62);
LCD_Write_COM(0 x00 0 x1a);/ / VBGP
LCD_Write_DATA(0 x00 0 x11);
LCD_Write_COM(0 x00 0 x1c);
LCD_Write_DATA(0 x00 0 x06);/ / VBGPx
LCD_Write_COM(0 x00 0 x1f);
LCD_Write_DATA(0 x00 0×);
delayms(20);
LCD_Write_COM(0 x00 0 x19);/ / GASENB:反常的掉电检
您可能关注的文档
- 20100906 元器件的性能变劣现象(The performance of components in the components of the transformer).doc
- A0502、消失模涂料配制(A0502, disappear die coating preparation).doc
- A68EROOT后可删应用整理文档(A68EROOT can be deleted to organize documents).doc
- A68E可删文档(A68E can be deleted).doc
- ABB F开关(ABB switch F).doc
- ABBREVIATION LIST(缩写列表).doc
- ABB变频器面板设定(ABB converter panel Settings).doc
- ABCC(ABCC).doc
- AD9238(AD9238).doc
- ACAA Flash 动画师模拟题(ACAA Flash animator simulation).doc
- LCD相关常用名词术语(Lcd-related common noun terms).doc
- LCM模组简介22(LCM module profile 22).doc
- LCM及液晶模组(LCM and liquid crystal module).doc
- LC_MS_MS快速测定不同采摘时间银杏叶中银杏内酯和白果内酯的含量(LC_MS_MS can quickly determine the content of ginkgo and white ginkgo in ginkgo leaf).doc
- Leber遗传性视神经病变(Leber inherited optic neuropathy).doc
- LED培训手册(LED training manual).doc
- LED分类及材质、散热、热流分折介绍(LED classification and material, heat dissipation, heat flow breakdown introduction).doc
- LED对于汽车灯的资料(LED information on car lamps).doc
- led封装工艺流程(Led packaging process).doc
- LED应用注意事项收集(LED application notes collection).doc
最近下载
- 家庭与社区的变化与发展.pptx VIP
- 丙肝防治培训课件.pptx VIP
- 《食物链》.ppt VIP
- 2025年辽宁丹东市融媒体中心招聘6人笔试模拟试题参考答案详解.docx VIP
- 2018湖北省市政工程定额(第十一册措施项目)PDF版.pdf VIP
- 4.1和面、揉面、饧面、搓条(课件)- 《中式面点制作基础教程》同步教学(劳保版).pptx VIP
- 2025年丹东市融媒体中心招聘考试笔试试题.docx VIP
- 铁路技术管理规程(普速铁路部分)题库 .pdf VIP
- 中国失眠症诊断和治疗指南(精选PPT).pptx VIP
- 2025年马鞍山市公安局第三季度招聘警务辅助人员139名笔试参考题库附答案解析.docx VIP
文档评论(0)