版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、Good is good, but better carries it.精益求精,善益求善。DSP實現(xiàn)液晶顯示電子日歷畫冊JIUJIANGUNIVERSITYDSP技術與應用課程設計題目LCD顯示電子日歷英文題目LCDdisplayelectroniccalendar院系電子工程學院專業(yè)電子信息工程姓名劉祥班級A1121學號11111010133指導教師楊世永二零一四年六月摘要傳統(tǒng)的液晶顯示往往采用單片機控制。但在系統(tǒng)有大量高速實時數(shù)據(jù)的情況下,單片機由于受到處理速度的限制就顯得力不從心。為了解決這些問題,本文提出了一種基于DSP控制的液晶顯示屏的設計,有效地解決以上所遇到的問題。本文提出了一
2、種基于DSP控制的液晶顯示數(shù)字日歷的設計。通過對DSP芯片TMS320LVC5416PGE和液晶模塊LCM12864ZK的分析和研究,利用TMS320LVC5416PGE的DSP最小系統(tǒng)板構建了一個時間顯示系統(tǒng),采用LCM12864ZK液晶模塊顯示時間,用按鍵調整時間。該時鐘系統(tǒng)包括硬件電路的實現(xiàn)和系統(tǒng)程序設計兩部分。對液晶顯示時鐘系統(tǒng)的硬件原理和主程序流程圖進行了介紹,并給出了定時器的初始化程序和按照液晶顯示模塊接口讀寫時序編寫的在DSP芯片TMS320LVC5416PGE上的液晶顯示初始化程序。關鍵詞:DSP;TMS320LVC5416PGE;LCM12864ZK液晶模塊AbstractE
3、lectroniccalendarwithstableperformance,highprecision,lowcost,convenientandpractical,andeasy-to-productandothercharacteristics.Suitableforfamilies,companiesandinstitutions,andmanyotherplaces,forpeoplesdailylife,travelrrangementsprovidedforconvenienceonly.ThispaperpresentsaDSP-basedcontrolLCDelectroni
4、ccalendardesign.ThroughtheDSPchipandLCDmodulesTMS320LVC5416PGEanalysisandresearch,theuseofTMS320LVC5416PGEtheDSPminimumsystemboardtobuildatimedisplaysystemthatusesaliquidcrystaldisplaymoduletime,withbuttonstoadjustthetime.Theclocksystemimplementationandsystemprograms,includinghardwarecircuitdesignin
5、twoparts.OntheLCDhardwareprincipleandthemainclocksystemflowchartwereintroduced,andgivesthetimerinitializationprocedureandinaccordancewiththeliquidcrystaldisplaymoduleinterfacetoreadandwritetiminginthepreparationofaliquidcrystaldisplayDSPchipTMS320LVC5416PGEinitializationprocedure.KeywordsdspTMS320LV
6、C5416PGELCDModule目錄HYPERLINKl_Toc169682820摘要AbstractTOCo1-3hzuHYPERLINKl_Toc326687752第一章緒論PAGEREF_Toc326687752h1HYPERLINKl_Toc3266877531.1LCD及電子日歷的簡述1HYPERLINKl_Toc3266877541.2本設計任務及要求.2.第二章系統(tǒng)硬件的組成2HYPERLINKl_Toc3266877572.1DSP模塊PAGEREF_Toc326687757h2HYPERLINKl_Toc3266877582.1.1TMS320C5416的特點和硬件組成框圖
7、PAGEREF_Toc326687758h3HYPERLINKl_Toc3266877602.2液晶顯示模塊PAGEREF_Toc326687760h4HYPERLINKl_Toc3266877612.2.1顯示數(shù)據(jù)控制方法PAGEREF_Toc326687761h5HYPERLINKl_Toc3266877622.2.2發(fā)送控制命令:PAGEREF_Toc326687762h5HYPERLINKl_Toc3266877632.2.3寫顯示數(shù)據(jù):PAGEREF_Toc326687763h6HYPERLINKl_Toc3266877642.2.4其它問題:PAGEREF_Toc326687764
8、h6HYPERLINKl_Toc3266877652.3鍵盤模塊.PAGEREF_Toc326687765h7HYPERLINKl_Toc326687766第三章程序設計PAGEREF_Toc326687766h7HYPERLINKl_Toc3266877673.1設計思路PAGEREF_Toc326687767h7HYPERLINKl_Toc3266877683.2主程序PAGEREF_Toc326687768h9HYPERLINKl_Toc326687769第四章總結PAGEREF_Toc326687769h54HYPERLINKl_Toc326687770參考文獻:PAGEREF_Toc
9、326687770h56第一章緒論DSP芯片,也稱數(shù)字信號處理器,是一種特別適合與數(shù)字信號處理運算的微處理器,其主要應用是實時快速地實現(xiàn)各種數(shù)字信號處理算法。既具有高速數(shù)字信號處理功能,又具有實時性強、功耗低、集成度高等嵌入式微計算機的特點,所以隨著科技的發(fā)展,DSP技術在機電控制領域的應用愈加廣泛。本文利用DSP芯片TMS320LVC5416PGE的數(shù)字I/O口來控制慢速LCM12864ZK液晶顯示模塊,用軟件編程來實現(xiàn)對外設LCM12864ZK液晶顯示模塊的讀寫接口時序,并且按照LCM12864ZK液晶顯示模塊的時序要求加入相應的等待延時來實現(xiàn)高速的DSP芯片和低速的液晶顯示模塊的工作匹配
10、,從而實現(xiàn)基于DSP的液晶顯示日歷設計。LCD及電子日歷的概述(1)LCD是LiquidCrystalDisplay的簡稱,它的構造是在兩片平行的玻璃基板當中放置液晶盒,下基板玻璃上設置TFT(薄膜HYPERLINK/doc/3069134.html晶體管),上基板玻璃上設置彩色濾光片,通過TFT上的信號與電壓改變來控制液晶分子的轉動方向,從而達到控制每個像素點偏振光出射與否而達到顯示目的。電子日歷是LCD顯示器,分時顯示當前時間和日歷。即時間(時:分),日歷(月:日)。利用盡可能小的小鍵盤實現(xiàn)其時間的加減。1.2本設計任務及要求第二章系統(tǒng)硬件組成完整系統(tǒng)所需的模塊有DSP模塊、液晶顯示模塊、
11、鍵盤模塊。2.1DSP模塊使用TI公司的TMS320LVC5416PGE型號的DSP芯片構成最小系統(tǒng)板,該系統(tǒng)板是DSP芯片工作的最小系統(tǒng),主要由DSP芯片TMS320LVC5416PGE、StaticRAM芯片CY7C1021和3.3V電源組成。DSP芯片的引腳可以在實驗中根據(jù)需要通過拓展插口引出。最小系統(tǒng)可引出的DSP功能有:I/O,AD,SPI,SCI,CAN,PWM,Interrupt,AP和電源引腳。根據(jù)本系統(tǒng)的需要,從最小系統(tǒng)板拓展插口引出所用到的DSP芯片引腳試驗箱上液晶顯示模塊的訪問、控制是由5416DSP對擴展I/O接口的操作完成。試驗箱上液晶顯示模塊的訪問、控制是由5416
12、DSP對擴展I/O接口的操作完成。2.1.1TMS320C5416的特點和硬件組成框圖TMS320C5416采用TMS320C54x系列內核,其主要特性如下所示:CPU先進的多總線結構。40位算術邏輯運算單元(ALU)。17位17位并行乘法器與40位專用加法器相連。比較、選擇、存儲單元(CSSU)。指數(shù)編碼器可以在單個周期內計算40位累加器中數(shù)值的指數(shù)。雙地址生成器包括8個輔助寄存器和兩個輔助寄存器算術運算單元(ARAU)。存儲器64K字程序存儲器、64K字數(shù)據(jù)存儲器以及64K字I/O空間。指令系統(tǒng)單指令重復和塊指令重復操作。塊存儲器傳送指令。32位長操作數(shù)指令。同時讀入兩個或3個操作數(shù)的指令
13、。并行存儲和并行加載的算術指令。條件存儲指令。從中斷快速返回指令在片外圍電路軟件可編程等待狀態(tài)發(fā)生器??删幊谭謪^(qū)轉換邏輯電路。帶有內部振蕩器。外部總線關斷控制,以斷開外部的數(shù)據(jù)總線、地址總線和控制信號。數(shù)據(jù)總線具有總線保持器特性??删幊潭〞r器。并行主機接口(HPl)。電源可用IDLEl、IDLE2和IDLE3指令控制功耗,以工作在省電方式??梢钥刂脐P斷CLKOUT輸出信號。在片仿真接口具有符合IEEEll49.1標準的在片仿真接口(JTAG)。速度單周期定點指令的執(zhí)行時間為25/20/15/12.5/10-ns(40MIPS/50MIPS/66MIPS/80MIPS/100MIPS)2.2液晶
14、顯示模塊LCM12864ZK液晶模塊用于字符、數(shù)字和漢字的顯示,該模塊有12864個像素,可以顯示4行漢字,每行8個,共計32個漢字;或者4行半角字符,每行16個,共計64個半角字符。通過各點亮滅的組合,即可顯示出文字、圖片的信息。需要強調的是,LCM12864ZK液晶模塊的VR和VO引腳端需要串連一個10SKIPIF10的可調電阻,且在初次使用時要微調10SKIPIF15)flag1=5;elseflag1=flag1+1;nKeyCode=0;nKeyCode=0;if(nKeyCode=4)if(flag112)yue=1;if(nKeyCode=2)nKeyCode=0;yue=yue
15、-1;if(yue=0)yue=12;if(flag1=2)/調日if(nKeyCode=8)nKeyCode=0;ri=ri+1;if(ri31)ri=1;if(nKeyCode=2)nKeyCode=0;ri=ri-1;if(ri=0)ri=31;if(flag1=3)/調時if(nKeyCode=8)nKeyCode=0;shi=shi+1;if(shi23)shi=0;if(nKeyCode=2)nKeyCode=0;shi=shi-1;if(shi59)fen=0;if(nKeyCode=2)nKeyCode=0;fen=fen-1;if(fen59)miao=0;if(nKeyCo
16、de=2)nKeyCode=0;miao=miao-1;if(miao9)x=0;miao=miao+1;if(miao59)miao=0;fen=fen+1;if(fen59)fen=0;shi=shi+1;if(shi23)shi=0;ri+;if(ri31)ri=1;yue+;if(yue12)yue=1;voidget_time()/uchari,j;shi_s=shi/10;shi_g=shi%10;fen_s=fen/10;fen_g=fen%10;miao_s=miao/10;miao_g=miao%10;yue_s=yue/10;yue_g=yue%10;ri_s=ri/10;
17、ri_g=ri%10;/*時間顯示部分*/voiddisp2()inti,j;/reg_shi_s=shi_s;/reg_shi_g=shi_g;/reg_fen_s=fen_s;/reg_fen_g=fen_g;/reg_miao_s=miao_s;/reg_miao_g=miao_g;/shi_s*/if(shi_s!=reg_shi_s)/reg_shi_s=shi_s;for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERA
18、DDRESS;/設置在從第0列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=3)switch(shi_s)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;elseif(flag1=3)/反顯switch(shi_s)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;/p
19、ort8004=(s1ji);/port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/shi_g*/reg_shi_s=shi_s;/reg_shi_g=shi_g;/reg_fen_s=fen_s;/reg_fen_g=fen_g;/reg_miao_s=miao_s;/reg_miao_g=miao_g;if(reg_shi_g!=shi_g)/reg_shi_g=shi_g;for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);port
20、8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+8;/設置在從第8列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=3)switch(shi_g)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004=(s
21、5ji);break;case6:port8004=(s6ji);break;case7:port8004=(s7ji);break;case8:port8004=(s8ji);break;case9:port8004=(s9ji);break;if(flag1=3)switch(shi_g)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port800
22、4=(s5ji);break;case6:port8004=(s6ji);break;case7:port8004=(s7ji);break;case8:port8004=(s8ji);break;case9:port8004=(s9ji);break;/port8004=(s1ji);/port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/*/if/reg_fen_s=fen_s;for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);por
23、t8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+24;/設置在從第24列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=4)switch(fen_s)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004
24、=(s5ji);break;if(flag1=4)switch(fen_s)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004=(s5ji);break;port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/reg_fen_g=fen_g;for(j=0;j2;
25、j+)port8001=LCDCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+32;/設置在從第32列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=4)switch(fen_g)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port8004
26、=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004=(s5ji);break;case6:port8004=(s6ji);break;case7:port8004=(s7ji);break;case8:port8004=(s8ji);break;case9:port8004=(s9ji);break;if(flag1=4)switch(fen_g)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port
27、8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004=(s5ji);break;case6:port8004=(s6ji);break;case7:port8004=(s7ji);break;case8:port8004=(s8ji);break;case9:port8004=(s9ji);break;/port8004=(s1ji);/port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/miao_s*/if(reg_miao_s!=miao_s
28、)/reg_miao_s=miao_s;for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+48;/設置在從第48列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=5)switch(miao_s)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port
29、8004=(s2ji);break;case3:port8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004=(s5ji);break;if(flag1=5)switch(miao_s)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004=(s5ji);break;/port
30、8004=(s1ji);/port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/miao_g*/if(reg_miao_g!=miao_g)/reg_miao_g=miao_g;for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+56;/設置在從第56列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELA
31、Y);for(i=0;i8;i+)if(flag1!=5)switch(miao_g)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004=(s5ji);break;case6:port8004=(s6ji);break;case7:port8004=(s7ji);break;case8:port8004=(s8ji);break;case9
32、:port8004=(s9ji);break;if(flag1=5)switch(miao_g)case0:port8004=(s0ji);break;case1:port8004=(s1ji);break;case2:port8004=(s2ji);break;case3:port8004=(s3ji);break;case4:port8004=(s4ji);break;case5:port8004=(s5ji);break;case6:port8004=(s6ji);break;case7:port8004=(s7ji);break;case8:port8004=(s8ji);break;
33、case9:port8004=(s9ji);break;/port8004=(s1ji);/port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/yue_s*/if(reg_yue_s!=yue_s)/reg_yue_s=yue_s;for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS;/設置在從第0列開始Delay(LCDDELAY);
34、port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=1)switch(yue_s)case0:port8003=(s0ji);break;case1:port8003=(s1ji);break;if(flag1=1)switch(yue_s)case0:port8003=(s0ji);break;case1:port8003=(s1ji);break;/port8004=(s1ji);/port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);for(j=0;j2;j+)
35、port8001=LCDCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+8;/設置在從第8列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=1)switch(yue_g)case0:port8003=(s0ji);break;case1:port8003=(s1ji);break;case2:port8003=(s2ji);break;case3:port8003=(s3j
36、i);break;case4:port8003=(s4ji);break;case5:port8003=(s5ji);break;case6:port8003=(s6ji);break;case7:port8003=(s7ji);break;case8:port8003=(s8ji);break;case9:port8003=(s9ji);break;if(flag1=1)switch(yue_g)case0:port8003=(s0ji);break;case1:port8003=(s1ji);break;case2:port8003=(s2ji);break;case3:port8003=
37、(s3ji);break;case4:port8003=(s4ji);break;case5:port8003=(s5ji);break;case6:port8003=(s6ji);break;case7:port8003=(s7ji);break;case8:port8003=(s8ji);break;case9:port8003=(s9ji);break;port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/ri_s*/if(reg_ri_s!=ri_s)/reg_ri_s=ri_s;for(j=0;j2;j+)port8001=LC
38、DCMDPAGE+j+6;/設置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+32;/設置在從第0列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=2)switch(ri_s)case0:port8003=(s0ji);break;case1:port8003=(s1ji);break;case2:port8003=(s2ji);break;case3:port8003=(s3ji);break;ca
39、se4:port8003=(s4ji);break;case5:port8003=(s5ji);break;case6:port8003=(s6ji);break;case7:port8003=(s7ji);break;case8:port8003=(s8ji);break;case9:port8003=(s9ji);break;port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);if(reg_ri_g!=ri_g)/reg_ri_g=ri_g;for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;/設置在從第6頁開
40、始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+40;/設置在從第32列開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)if(flag1!=2)switch(ri_g)case0:port8003=(s0ji);break;case1:port8003=(s1ji);break;case2:port8003=(s2ji);break;case3:port8003=(s3ji);break;case4:port8003=(s4ji);b
41、reak;case5:port8003=(s5ji);break;case6:port8003=(s6ji);break;case7:port8003=(s7ji);break;case8:port8003=(s8ji);break;case9:port8003=(s9ji);break;port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/voiddisp1()inti,j;for(j=0;j4;j+)port8001=LCDCMDPAGE+j;Delay(LCDDELAY);port8002=0;Delay(L
42、CDDELAY)port8001=LCDCMDVERADDRESS;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i32;i+)port8003=(ledkey1ji);/port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(j=0;j4;j+)port8001=LCDCMDPAGE+j;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+32;Delay(LCDDELAY);port8002
43、=0;Delay(LCDDELAY);for(i=0;i32;i+)port8003=(ledkey2ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);for(j=0;j4;j+)port8001=LCDCMDPAGE+j;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i32;i
44、+)port8004=(ledkey3ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);for(j=0;j4;j+)port8001=LCDCMDPAGE+j;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+32;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i32;i+)port8004=(ledkey4ji);/:(led
45、keynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(j=0;j2;j+)port8001=LCDCMDPAGE+4+j;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i16;i+)port8003=(ledkey5ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);por
46、t8002=0;Delay(LCDDELAY);/Delay(512);for(j=0;j4;j+)port8001=LCDCMDPAGE+j+4;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+16;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i16;i+)port8003=(ledkey6ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for
47、(j=0;j2;j+)port8001=LCDCMDPAGE+j+4;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+32;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i16;i+)port8003=(ledkey7ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);for(j=0;j2;j+)port8001=LCDCMDP
48、AGE+j+4;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i16;i+)port8004=(ledkey8ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(j=0;j2;j+)port8001=LCDCMDPAGE+j+4;Delay(LCDDELAY);port8002=0;Delay(L
49、CDDELAY);port8001=LCDCMDVERADDRESS+16;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i16;i+)port8004=(ledkey9ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/1*for(j=0;j2;j+)port8001=LCDCMDPAGE+j+4;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMD
50、VERADDRESS+32;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)port8004=(s1ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/1*for(j=0;j2;j+)port8001=LCDCMDPAGE+j+4;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+40;Delay(LCDDELAY);
51、port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)port8004=(s1ji);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/2*for(j=0;j2;j+)port8001=LCDCMDPAGE+j+4;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+48;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)port800
52、4=(s2ji);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/9*for(j=0;j2;j+)port8001=LCDCMDPAGE+j+4;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+56;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)port8004=(s7ji);port8002=0;Delay(LCDDELAY);port8002=0;D
53、elay(LCDDELAY);/Delay(512);/*for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+16;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i16;i+)port8003=(ledkey10ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(51
54、2);/*for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+48;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i16;i+)port8003=(ledkey11ji);/:(ledkeynCounti);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/Delay(512);/:*for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+16;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);for(i=0;i8;i+)port8004=(s10ji);port8002=0;Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);/:*for(j=0;j2;j+)port8001=LCDCMDPAGE+j+6;Del
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 五年級數(shù)學上冊蘇教版《釘子板上的多邊形》聽評課記錄
- 八年級數(shù)學上冊 14.3 因式分解 14.3.1 提公因式法聽評課記錄 新人教版
- 湘教版數(shù)學七年級上冊2.4《整式》聽評課記錄
- 青島版數(shù)學七年級下冊12.1《平方差公式》聽評課記錄
- 魯教版地理六年級下冊7.4《俄羅斯》聽課評課記錄1
- 人民版九年級政治全冊第三單元第八課依法治國第3-4喜中有憂我們共同的責任聽課評課記錄
- 中圖版地理八年級下冊7.4《巴西》聽課評課記錄
- 鋁合金窗產(chǎn)品質量監(jiān)督抽查實施細則
- 小學二年級數(shù)學口算練習題
- 一年級英語聽評課記錄
- 商務星球版地理八年級下冊全冊教案
- 天津市河西區(qū)2024-2025學年四年級(上)期末語文試卷(含答案)
- 2025年空白離婚協(xié)議書
- 校長在行政會上總結講話結合新課標精神給學校管理提出3點建議
- 北京市北京四中2025屆高三第四次模擬考試英語試卷含解析
- 2024年快遞行業(yè)無人機物流運輸合同范本及法規(guī)遵循3篇
- T-CSUS 69-2024 智慧水務技術標準
- 2025年護理質量與安全管理工作計劃
- 地下商業(yè)街的規(guī)劃設計
- 2024-2030年全球及中國低密度聚乙烯(LDPE)行業(yè)需求動態(tài)及未來發(fā)展趨勢預測報告
- 傷殘撫恤管理辦法實施細則
評論
0/150
提交評論