毕业设计专业:电气自动化班级学号:电气一班-201103010142学生姓名:王力霞指导教师:高立兵讲师二〇一四年三月甘肃有色冶金职业技术学院毕业设计基于51单片机控制的液晶显示器控制电路51Liquidcrystaldisplaycontrolcircuitofsingle-chipmicrocomputercontrolSCMcontrolLCDapplications专业班级:电气自动化1101班学生姓名:王力霞指导教师:高立兵老师系别:机电工程系2014年3月摘要本文研制一种基于51单片机实时控制的LCD液晶显示屏控制系统。硬件系统由单片机最小系统和液晶显示系统组成,PC机进行显示内容的编辑和字模数据的提取;液晶显示系统由主控模块T6963C和LCD液晶显示模块接口电路组成,主控模块负责接收单片机字模数据并控制各显示模块工作,显示模块以T6963C主控制器为核心,控制LCD液晶显示屏显示,为了方便系统扩展,各模块之间的连接采用接插式结构,单片机与PC机之间采用RS232标准接口进行数据和命令的串行通信。本文不仅从总体上对系统进行了整体规划,还以其中一个实例详细介绍了PC机字模的提取、字模数据的发送、单片机串行接收数据、液晶显示屏的显示等部分的软硬件设计及实现过程。本系统的设计优点硬件电路简单,软件功能完善,控制系统可靠,性价比较高等特点,具有一定的使用和参考价值。关键词:液晶显示器;89C51;串行通信;单片机AbstractThisresearchbasedon51singlechipreal-timecontroloftheLCDliquidcrystaldisplaycontrolsystem.HardwaresystembysingletabletsmachineminimumsystemandLCDdisplayedsystemcomposed,PCmachinefordisplayedcontentofeditandCHARACTdataofextraction;LCDdisplayedsystembymaincontrolledmoduleT6963CandLCDdisplayedmoduleinterfacecircuitcomposed,maincontrolledmoduleisresponsibleforreceivessingletabletsmachineCHARACTdataandcontrolthedisplayedmodulework,displayedmoduletoT6963Cmaincontrollerforcore,ControlLCDdisplay,inordertofacilitatesystemexpansion,theconnectionsbetweenthemodulesusingplug-instructure,SCMandPCmachineusingtheRS232standardserialcommunicationinterfacefordataandcommand.Thisarticlenotonlyintermsofoverallplanningofsystemsasawhole,withoneinstancedetailedintroducedPCmachineextractionoffonts,fontdata,single-chipserialreceivedatasent,LCDdisplaysandotherpartsofthehardwareandsoftwaredesignandimplementationprocess.Thedesignadvantagesofthesystemhardwarecircuitissimple,softwareisfullyfunctional,reliablecontrolsystem,highcostperformanceandothercharacteristics,ithassomeuseandreferencevalue.Keywords:LCDmonitor89C51serialcommunicationbetweensingle-chipcomputer目录1概述.....................................................................................................................................11.1系统背景....................................................................................................................11.2系统概述....................................................................................................................22方案论证.............................................................................................................................32.1字模数据的存储.......................................................................................................32.2通信电路....................................................................................................................43液晶显示模块简介...........................................................................................................43.1显示控制器...............................................................................................................63.1.1驱动方式的设置.............................................................................................63.1.2显示窗口宽度设置........................................................................................73.1.3显示字符的字体设置....................................................................................83.1.4振荡器的晶体振荡器的选择......................................................................83.2列驱动方式.............................................................................................................103.3行驱动方式.............................................................................................................114.1硬件电路设计要求................................................................................................114.2总体电路设计构架...............................................................................................114.3单片机与液晶显示模块接口.............................................................................124.4单片机与计算机的通信接口.............................................................................134.5电源电路..................................................................................................................145系统软件设计..................................................................................................................145.1内置T6963C控制器软件特性...........................................................................145.1.1液晶显示模块指令说明如下:....................................................................155.2初始化子程序设计................................................................................................175.3显示控制子程序设计...........................................................................................186系统调试...........................................................................................................................206.1分步调试..................................................................................................................206.1.1LCD液晶显示电路调试显示...................................................................206.1.2计算机串行口调试.....................................................................................216.1.3计算机与单片机通信电路调试..............................................................216.2系统统一调试.....................