版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、Good is good, but better carries it.精益求精,善益求善。DSP實現(xiàn)液晶顯示電子日歷畫冊JIUJIANGUNIVERSITYDSP技術(shù)與應(yīng)用課程設(shè)計題目LCD顯示電子日歷英文題目LCDdisplayelectroniccalendar院系電子工程學(xué)院專業(yè)電子信息工程姓名劉祥班級A1121學(xué)號11111010133指導(dǎo)教師楊世永二零一四年六月摘要傳統(tǒng)的液晶顯示往往采用單片機(jī)控制。但在系統(tǒng)有大量高速實時數(shù)據(jù)的情況下,單片機(jī)由于受到處理速度的限制就顯得力不從心。為了解決這些問題,本文提出了一種基于DSP控制的液晶顯示屏的設(shè)計,有效地解決以上所遇到的問題。本文提出了一
2、種基于DSP控制的液晶顯示數(shù)字日歷的設(shè)計。通過對DSP芯片TMS320LVC5416PGE和液晶模塊LCM12864ZK的分析和研究,利用TMS320LVC5416PGE的DSP最小系統(tǒng)板構(gòu)建了一個時間顯示系統(tǒng),采用LCM12864ZK液晶模塊顯示時間,用按鍵調(diào)整時間。該時鐘系統(tǒng)包括硬件電路的實現(xiàn)和系統(tǒng)程序設(shè)計兩部分。對液晶顯示時鐘系統(tǒng)的硬件原理和主程序流程圖進(jìn)行了介紹,并給出了定時器的初始化程序和按照液晶顯示模塊接口讀寫時序編寫的在DSP芯片TMS320LVC5416PGE上的液晶顯示初始化程序。關(guān)鍵詞: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第一章緒論P(yáng)AGEREF_Toc326687752h1HYPERLINKl_Toc3266877531.1LCD及電子日歷的簡述1HYPERLINKl_Toc3266877541.2本設(shè)計任務(wù)及要求.2.第二章系統(tǒng)硬件的組成2HYPERLINKl_Toc3266877572.1DSP模塊PAGEREF_Toc326687757h2HYPERLINKl_Toc3266877582.1.1TMS320C5416的特點(diǎn)和硬件組成框圖
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第三章程序設(shè)計PAGEREF_Toc326687766h7HYPERLINKl_Toc3266877673.1設(shè)計思路PAGEREF_Toc326687767h7HYPERLINKl_Toc3266877683.2主程序PAGEREF_Toc326687768h9HYPERLINKl_Toc326687769第四章總結(jié)PAGEREF_Toc326687769h54HYPERLINKl_Toc326687770參考文獻(xiàn):PAGEREF_Toc
9、326687770h56第一章緒論DSP芯片,也稱數(shù)字信號處理器,是一種特別適合與數(shù)字信號處理運(yùn)算的微處理器,其主要應(yīng)用是實時快速地實現(xiàn)各種數(shù)字信號處理算法。既具有高速數(shù)字信號處理功能,又具有實時性強(qiáng)、功耗低、集成度高等嵌入式微計算機(jī)的特點(diǎn),所以隨著科技的發(fā)展,DSP技術(shù)在機(jī)電控制領(lǐng)域的應(yīng)用愈加廣泛。本文利用DSP芯片TMS320LVC5416PGE的數(shù)字I/O口來控制慢速LCM12864ZK液晶顯示模塊,用軟件編程來實現(xiàn)對外設(shè)LCM12864ZK液晶顯示模塊的讀寫接口時序,并且按照LCM12864ZK液晶顯示模塊的時序要求加入相應(yīng)的等待延時來實現(xiàn)高速的DSP芯片和低速的液晶顯示模塊的工作匹配
10、,從而實現(xiàn)基于DSP的液晶顯示日歷設(shè)計。LCD及電子日歷的概述(1)LCD是LiquidCrystalDisplay的簡稱,它的構(gòu)造是在兩片平行的玻璃基板當(dāng)中放置液晶盒,下基板玻璃上設(shè)置TFT(薄膜HYPERLINK/doc/3069134.html晶體管),上基板玻璃上設(shè)置彩色濾光片,通過TFT上的信號與電壓改變來控制液晶分子的轉(zhuǎn)動方向,從而達(dá)到控制每個像素點(diǎn)偏振光出射與否而達(dá)到顯示目的。電子日歷是LCD顯示器,分時顯示當(dāng)前時間和日歷。即時間(時:分),日歷(月:日)。利用盡可能小的小鍵盤實現(xiàn)其時間的加減。1.2本設(shè)計任務(wù)及要求第二章系統(tǒng)硬件組成完整系統(tǒng)所需的模塊有DSP模塊、液晶顯示模塊、
11、鍵盤模塊。2.1DSP模塊使用TI公司的TMS320LVC5416PGE型號的DSP芯片構(gòu)成最小系統(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對擴(kuò)展I/O接口的操作完成。試驗箱上液晶顯示模塊的訪問、控制是由5416
12、DSP對擴(kuò)展I/O接口的操作完成。2.1.1TMS320C5416的特點(diǎn)和硬件組成框圖TMS320C5416采用TMS320C54x系列內(nèi)核,其主要特性如下所示:CPU先進(jìn)的多總線結(jié)構(gòu)。40位算術(shù)邏輯運(yùn)算單元(ALU)。17位17位并行乘法器與40位專用加法器相連。比較、選擇、存儲單元(CSSU)。指數(shù)編碼器可以在單個周期內(nèi)計算40位累加器中數(shù)值的指數(shù)。雙地址生成器包括8個輔助寄存器和兩個輔助寄存器算術(shù)運(yùn)算單元(ARAU)。存儲器64K字程序存儲器、64K字?jǐn)?shù)據(jù)存儲器以及64K字I/O空間。指令系統(tǒng)單指令重復(fù)和塊指令重復(fù)操作。塊存儲器傳送指令。32位長操作數(shù)指令。同時讀入兩個或3個操作數(shù)的指令
13、。并行存儲和并行加載的算術(shù)指令。條件存儲指令。從中斷快速返回指令在片外圍電路軟件可編程等待狀態(tài)發(fā)生器??删幊谭謪^(qū)轉(zhuǎn)換邏輯電路。帶有內(nèi)部振蕩器。外部總線關(guān)斷控制,以斷開外部的數(shù)據(jù)總線、地址總線和控制信號。數(shù)據(jù)總線具有總線保持器特性??删幊潭〞r器。并行主機(jī)接口(HPl)。電源可用IDLEl、IDLE2和IDLE3指令控制功耗,以工作在省電方式。可以控制關(guān)斷CLKOUT輸出信號。在片仿真接口具有符合IEEEll49.1標(biāo)準(zhǔn)的在片仿真接口(JTAG)。速度單周期定點(diǎn)指令的執(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個半角字符。通過各點(diǎn)亮滅的組合,即可顯示出文字、圖片的信息。需要強(qiáng)調(diào)的是,LCM12864ZK液晶模塊的VR和VO引腳端需要串連一個10SKIPIF10的可調(diào)電阻,且在初次使用時要微調(diào)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)/調(diào)日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)/調(diào)時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;/設(shè)置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERA
18、DDRESS;/設(shè)置在從第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;/設(shè)置在從第6頁開始Delay(LCDDELAY);port
20、8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+8;/設(shè)置在從第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;/設(shè)置在從第6頁開始Delay(LCDDELAY);por
23、t8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+24;/設(shè)置在從第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;/設(shè)置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+32;/設(shè)置在從第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;/設(shè)置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+48;/設(shè)置在從第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;/設(shè)置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+56;/設(shè)置在從第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;/設(shè)置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS;/設(shè)置在從第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;/設(shè)置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+8;/設(shè)置在從第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;/設(shè)置在從第6頁開始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+32;/設(shè)置在從第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;/設(shè)置在從第6頁開
40、始Delay(LCDDELAY);port8002=0;Delay(LCDDELAY);port8001=LCDCMDVERADDRESS+40;/設(shè)置在從第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)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 衛(wèi)生潔具市場細(xì)分領(lǐng)域開發(fā)策略與零售商市場布局規(guī)劃考核試卷
- 醫(yī)療設(shè)備租賃國際市場開發(fā)考核試卷
- 2025-2030年國際美食節(jié)堅果展臺行業(yè)深度調(diào)研及發(fā)展戰(zhàn)略咨詢報告
- 2025-2030年復(fù)古風(fēng)格男士牛仔褲系列行業(yè)深度調(diào)研及發(fā)展戰(zhàn)略咨詢報告
- 2025-2030年文化用品藝術(shù)展覽行業(yè)深度調(diào)研及發(fā)展戰(zhàn)略咨詢報告
- 2025-2030年文化用品跨界合展行業(yè)深度調(diào)研及發(fā)展戰(zhàn)略咨詢報告
- 2025-2030年戶外攀巖塔行業(yè)跨境出海戰(zhàn)略研究報告
- 2025年度農(nóng)家樂資產(chǎn)轉(zhuǎn)租合同范本(含租金支付條款)
- 2025-2030年可變換造型首飾行業(yè)跨境出海戰(zhàn)略研究報告
- 2025-2030年戶外溯溪涼鞋設(shè)計行業(yè)跨境出海戰(zhàn)略研究報告
- 成都四川成都簡陽市簡城街道便民服務(wù)和智慧蓉城運(yùn)行中心招聘綜治巡防隊員10人筆試歷年參考題庫附帶答案詳解
- 2025-2030全球廢棄食用油 (UCO) 轉(zhuǎn)化為可持續(xù)航空燃料 (SAF) 的催化劑行業(yè)調(diào)研及趨勢分析報告
- 山東省臨沂市蘭山區(qū)2024-2025學(xué)年七年級上學(xué)期期末考試生物試卷(含答案)
- 湖北省武漢市2024-2025學(xué)年度高三元月調(diào)考英語試題(含答案無聽力音頻有聽力原文)
- 商務(wù)星球版地理八年級下冊全冊教案
- 天津市河西區(qū)2024-2025學(xué)年四年級(上)期末語文試卷(含答案)
- 2025年空白離婚協(xié)議書
- 校長在行政會上總結(jié)講話結(jié)合新課標(biāo)精神給學(xué)校管理提出3點(diǎn)建議
- 北京市北京四中2025屆高三第四次模擬考試英語試卷含解析
- 2024年快遞行業(yè)無人機(jī)物流運(yùn)輸合同范本及法規(guī)遵循3篇
- 2025年護(hù)理質(zhì)量與安全管理工作計劃
評論
0/150
提交評論