您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 基于8051单片机的液晶屏接口设计
ComputerKnowledgeandTechnology:534(200912)80511,1,2(1.,430056;2.,430068):MGLS12864,,,。:,。:LCD;;:TP338:A:1009-3044(2009)34-9839-02TheDesignofLiquidCrystalDisplayInterfacewith8051SingleChipMicrocomputerDINGJian-jun1,WANGXi-hua1,2(1.PhysicsandInformationSchool,JianghanUniversity,Wuhan430056,China;2.MechanicalEngineeringSchool,HubeiUniversityofTechnology,Wuhan430068,China)Abstract:LiquidcrystaldisplayofMGLS12864isintroducedanditshardwareinterfacecircuitwith8051anditscontrolprincipleisde-scribed,andthedriversubroutineisgiven.Theadvantagesofthedesignarethattheinterfaceconnectsconvenientlyandtheprogramiseasytoprepare.Keywords:LCD;singlechipmicrocomputer;interface,,LCD,。LCD,、,LCD。,。1LCD,。,MGLS-12864。MGLS-12864LCD,5V±0.5V,HD61202HD61203。HD61202,64,64×64RAM,;HD61203。IntelMCS-518051。,,,,。2,I/O。1。8051P0.0-P0.7MGLS-12864DB0-DB7。。8051WRRD474LS20E。E,,E,。8051P2.7D/I,P2.7=1,,P2.7=0,;HD61202P2.6CSBP2.5CSA,CSACSB=01,HD61202,CSACSB=10,HD61202;P2.4,P2.4=1,,P2.4=0,。。33.1。RAM,,。,RAM,(0,0)RAM,(0,1)RAM,。2。3.2,,,1。:2009-08-16:(2007ABA302);(2008K057);(2003X008):(1969-),,,,,、。1ISSN1009-3044ComputerKnowledgeandTechnologyVol.5,No.34,December2009,pp.9839-9840E-mail:kfyj@cccc.net.cn:534(200912):/:DB0=1LCDRAM,DB0=0。:BUSY:1-0-;ON/OFF:1-0-;REST:1-0-3.3#include8051reg.h#defineRWP2.4//P2.4//#defineDIP2.7//P2.7,//delay(intd)////{inti,j;for(i=0;id;i++)for(j=0;j20;j++);}voidLCD_init()////{RS=0;RW=0;P0=0X3c;////P0=0X0e;////P0=0X01;////}voidLCD_command(unsignedcharc)////{P0=c;RW=0;DI=0;}voidLCD_print(unsignedchart)////{P0=t;RW=0;DI=1;}4,8051,,,,,。。:[1],,.MSP430[J].,2007,27(4):227-229.[2],,,.DSP[J].,2005(10):48-49.[3].8051C[M].:,1999.[4],.AT89S52[J].,2008(22):22-25.219840
本文标题:基于8051单片机的液晶屏接口设计
链接地址:https://www.777doc.com/doc-4726836 .html