您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 基于51单片机的液晶显示万年历设计
I基于51单片机的液晶显示万年历设计摘要随着社会的进步和发展,电子万年历作为日常计时工具被广泛地应用。此电子万年历在硬件方面主要采用STC89C51单片机作为主控核心,由DS1302时钟芯片提供时钟及1602LCD液晶显示屏显示。STC89C51单片机是由宏晶公司公司生产的,功耗小,电压可选用3.4v~5.5v电压供电;DS1302时钟芯片是美国DALLAS公司推出的低功耗实时时钟芯片,它可以对年、月、日、星期、时、分、秒进行计时,而且DS1302的使用寿命长,误差小;对于数字电子万年历采用直观的数字显示,数字显示是采用的1602LCD液晶显示屏来显示,可以同时显示年、月、日、星期、时、分、秒、温度等信息。此外,该电子万年历在软件方面主要包括日历程序、时间调整程序,显示程序等。所有程序编写完成后,在Keil软件中进行调试,确定没有问题后,烧写到单片机上进行测试。本次课程设计主要由时钟芯片DS1302和温度传感器DS18B20采集数据到单片机进行处理再通过LCD1602显示出来,本设计主要研究了液晶显示器LCD及时钟芯片DS1302,温度传感器DS18B20与单片机之间的硬件互联及通信,对数种硬件连接方案进行了详尽的比较。关键词:单片机;DS1302;DS18B20;LCD1602IIABSTRACTWiththesocialprogressanddevelopment,Electroniccalendariswidelyusedasadailytimingtool.TheelectroniccalendarinhardwareusingSTC89C51microcontrollerasthemaincontrolcenter,providedbytheDS1302clockchipand1602LCDLCDdisplay.STC89C51microcontrollerisproducedbythemacrocrystalcompany,smallpowerconsumption,thevoltagecanbechoosenamong3.4V~5.5Vforpowersupply;DS1302clockchipisalowpowerreal-timeclockchipproducedbyDALLAS,itcanbeatimeofyears,months,days,weeks,hours,minutes,seconds,andDS1302hasalongservicelife.Theerrorissmall;forthedigitalelectroniccalendarusingvisualdigitaldisplay,1602LCDdigitaldisplayisusedtodisplayLCDscreenthatcandisplayyears,months,days,weeks,hours,minutesandseconds,temperatureandotherinformation.Inaddition,theelectroniccalendarmainlyincludescalendarprogram,timetoadjustprocedures,displayprogrametcinsofeware.Afterthecompletionofalltheprocedures,intheKeilsoftwaredebugging,determinenoproblemafter,andburningtothemicrocontrollertest.ThecurriculumdesignmainlybytheclockchipDS1302andtemperaturesensorDS18B20collectingdatatothemicrocontrollerforprocessingandthenthroughtheLCD1602display,thisdesignmainlystudiestheliquidcrystaldisplayLCDandtheclockchipDS1302,thehardwareconnectionandcommunicationbetweenthetemperaturesensorDS18B20andtheMCU,anumberofhardwareconnectionschemeforadetailedcomparison.Keywords:SCM,DS1302,DS18B20,LCD1602目录第一章绪论-------------------------------------------------------------------------------------------------------------1-1.1单片机的概述--------------------------------------------------------------------------------------------------1-1.1.1单片机的概念----------------------------------------------------------------------------------------1-1.1.2单片机的特点----------------------------------------------------------------------------------------1-1.2课题背景--------------------------------------------------------------------------------------------------------1-1.3课题内容--------------------------------------------------------------------------------------------------------2-第二章设计要求和方案----------------------------------------------------------------------------------------------3-2.1设计要求--------------------------------------------------------------------------------------------------------3-2.2设计方案--------------------------------------------------------------------------------------------------------3-2.2.1单片机芯片的选择----------------------------------------------------------------------------------3-2.2.2各模块方案选择-------------------------------------------------------------------------------------3-2.3工作原理--------------------------------------------------------------------------------------------------------4-第三章系统的硬件设计及实现-------------------------------------------------------------------------------------7-3.1电路设计原理框图-------------------------------------------------------------------------------------------7-3.2STC89C51单片机的介绍------------------------------------------------------------------------------------7-3.2.1主要功能及性能参数------------------------------------------------------------------------------7-3.2.2单片机的引脚功能说明----------------------------------------------------------------------------8-3.3各模块电路的设计及原理图------------------------------------------------------------------------------9-3.3.1时钟电路模块的设计------------------------------------------------------------------------------9-3.3.2温度采集模块的设计及原理图----------------------------------------------------------------11-3.3.3显示模块的设计及原理--------------------------------------------------------------------------11-第四章系统的软件设计---------------------------------------------------------------------------------------------13-4.1程序流程框图-------------------------------------------------------------------------------------------------13-4.2时间调整程序流程图---------------------------------------------------------------------------------------14-第五章系统测试-------------------------------------------------------------------------------------------------------15-5.1硬件测试-------------------------------------------------------------------------------------------------------15-5.2软件测试-------------------------------------------------------------------------------------------------------15-第六章总结与致谢----------------------------------------------------------------------------------------------------17-6.1总结--------------------------------------------------------------------------------------------------------------17-6.2致谢----------------------------------------------------------
本文标题:基于51单片机的液晶显示万年历设计
链接地址:https://www.777doc.com/doc-4720115 .html