《单片机技术》课程设计说明书基于12864的模拟电子钟摘要单片机应用技术飞速发展,纵观我们现在生活的各个领域,从导弹的导航装置,到飞机上各种仪表的控制,从计算机的网络通讯与数据传输,到工业自动化过程的实时控制和数据处理,以及我们生活中广泛使用的各种智能IC卡、电子宠物等,单片机都起到了举足轻重的作用。所以单片机技术也日趋成熟。单片机是集CPU,RAM,ROM,定时,计数和多种接口于一体的微控制器。它体积小,成本低,功能强。而52系列单片机是各单片机中最为典型和最有代表性的一种。此次单片机课程设计是通过利用52单片机来完成对电子钟的设计,且由12864液晶显示屏来显示时钟信息,并带有DS18B20输出的实时温度显示。此次课程设计达到了学习、了解单片机相关指令在各方面的应用,以及初步了解开发软、硬件的知识。关键词:单片机;12864液晶屏;DS18B20;实时温度ABSTRACTMCUapplicationtechnologyrapiddevelopmentthroughoutallareasoflifewearenow,themissilefromthenavigationdevicetocontrolavarietyofinstrumentsontheplane,networkcommunicationsanddatatransferfromthecomputertothereal-timecontrolanddataprocessingindustrialautomationprocess,andweliveinavarietyofwidelyusedsmartICcards,electronicpets,MCUhaveplayedapivotalrole.Somicrocontrollertechnologymatures.MCUisasetofCPU,RAM,ROM,timing,counting,andmultipleinterfacesinonemicrocontroller.Itssmallsize,lowcost,highfunctionality.The52Seriessingle-chipmicrocontrollerisallthemosttypicalandmostrepresentativeone.Thecourseisdesignedbytheuseofsingle-chipmicrocontroller52tocompletetheelectronicclockdesign,andthe12864LCDscreentodisplaytheclockinformationandreal-timetemperaturedisplaywithDS18B20output.ThecurriculumdesignedtomeetthelearningandunderstandingofMCU-relatedinstructioninallaspectsoftheapplication,aswellasapreliminaryunderstandingofthedevelopmentofsoftwareandhardwareknowledge.KeywordsMCU;12864LCDscreen;DS18B20;real-timetemperature目录第一章绪论....................................................-1-1.112864液晶显示概述......................................-1-1.212864的特点............................................-1-1.312864液晶的工作原理....................................-1-1.4基于单片机控制液晶显示系统的设计任务摘要...............-2-第2章总体方案论证与设计.....................................-3-2.1方案的设计.............................................-3-2.2方案的选择.............................................-3-2.3总体硬件组成框图.......................................-4-第3章系统硬件设计............................................-5-3.1主芯片模块.............................................-5-3.2晶振电路...............................................-6-3.3复位电路模块...........................................-6-3.4控制按钮模块...........................................-7-3.5DS18B20温度采集电路....................................-7-3.6显示电路模块...........................................-8-第4章系统的软件设计..........................................-9-4.1主程序设计.............................................-9-4.2文字显示...............................................-9-第5章系统调试与测试结果分析.................................-10-5.1使用的仪器仪表........................................-10-5.2系统调试..............................................-10-5.2.1硬件调试..........................................-10-5.2.2软件调试..........................................-10-5.3测试结果..............................................-10-第六章总结..................................