资源描述:
《基于单片机的实时显示系统》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、┊┊┊┊┊┊┊┊┊┊┊┊┊装┊┊┊┊┊订┊┊┊┊┊线┊┊┊┊┊┊┊┊┊┊┊┊┊连云港职业技术学院毕业设计(论文)题目名称:基于单片机的实时显示系统学生姓名:朱慧敏学号:090104109专业:电子信息工程技术班级:电子091指导教师:李红军2012年5月┊┊┊┊┊┊┊┊┊┊┊┊┊装┊┊┊┊┊订┊┊┊┊┊线┊┊┊┊┊┊┊┊┊┊┊┊┊目录绪论……………………………………………………………………11实时显示系统的设计方案………………………………………………21.1实时显示系统的设计意义…………………………………………………21.2实时显示的工作原理………………
2、………………………………………22主要芯片介绍……………………………………………………………42.1实时时钟芯片的介绍与比较………………………………………………42.2STC89C51RC单片机介绍…………………………………………………52.31602液晶模块介绍………………………………………………………63系统硬件设计……………………………………………………………103.1主控制器电路设计………………………………………………………103.2其余各电路设计…………………………………………………………114系统软件设计…………………………………………………
3、…………164.1显示时、分、秒子程序流程图……………………………………………164.2显示年、月、日子程序流程图……………………………………………17总结……………………………………………………………18致谢…………………………………………………………………19参考文献………………………………………………………………20附录…………………………………………………………………21┊┊┊┊┊┊┊┊┊┊┊┊┊装┊┊┊┊┊订┊┊┊┊┊线┊┊┊┊┊┊┊┊┊┊┊┊┊摘要本文介绍了以STC89C51RC单片机,DS1302实时时钟芯片为基础的实时显示系统的设计。主要
4、介绍了实时显示的意义及其工作原理,系统设计所用到的主要芯片的介绍,以及设计的系统的软件和硬件的组成。其中DS1302是实时显示的主体。它是美国DALLAS公司推出的一种高性能、低功耗、带RAM的实时时钟电路,它可以对年、月、日、周日、时、分、秒进行计时。本设计可以由上位机通过串口给其提供数据,当独立于上位机存在时,可由8位按键控制年、月、日、周日、时、分、秒的显示。这样本设计既能满足人们对实时控制的需求,又能独立的进行时间的显示,满足人们对计时的需求。关键词:单片机DS1302LCD1602┊┊┊┊┊┊┊┊┊┊┊┊┊装┊┊┊┊┊订┊┊┊┊┊线┊┊┊┊┊┊
5、┊┊┊┊┊┊┊AbstractThissystemisdividedintosevenparts,themicrocontrolleristhecoreofthewholesystem.Whenthesystemafterpower,220Vofelectricitythroughtransformer,rectifier,filterandregulatorandconvertedinto5VDCvoltagetotheMCU,RTCandLCD1602power,thepowerlightindicatesnormalpowersupplyatthi
6、stime.Anotherindicatorissetintheprogramflashesonceeverytwoseconds,iftheflickerfrequencynormal,thenthesystemisworking.DS1302at5V,thistimetoworkfromtime,MCUfollowedbyself-inspection,self-correctinthecircumstances,theloopreadsthedataintheDS1302,andconstantlyrefreshtheLCD1602timedata
7、.Inthefirst,whenthesystempower,DS1302willregisterallofitsinitialization,forwhichwesetthesevenkeystofacilitatethecalibrationoftheRTCfortime.Therearetwowayswecanmakethesystemfortimingthetime,oneisthroughthePC'sserialporttosendregulartimedata,theotheristhroughthesystemtosettheirownb
8、utton,makesurenottocommunicatewiththehos