资源描述:
《时钟温度显示设计》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、目录1系统设计······································11.1总体方案论证与比较··························11.1.1主控制器的选择与论证····················21.1.2时钟方案选择与论证·····················21.1.3温度检测方案选择·······················21.1.4显示模块方案选择·······················41.2系统组成······························
2、········42硬件单元电路设计··························42.1时钟模块······································42.1.1DS1302实时时钟芯片简介···············42.1.2DS1302应用电路设计····················52.2测温模块······································62.2.1DS18B20芯片简介·························62.2.220DS18B20应用
3、电路·························72.3LED显示模块·································82.4单片机最小系统·······························103系统测试分析·································113.1时钟测试·····································113.2温度测试·······································15结束语··············
4、·····························19参考文献···········································20附录一系统总图20时钟温度显示设计摘要本设计以单片机STC89C52作为各模块的控制中心,电路分为时钟电路模块,测温模块,LED显示模块,晶振电路模块,其中实时时钟DS1302,可实现时间数据的采集。温度检测模块由DS18B20集成温度传感器对现场环境温度进行实时检测,和两个4位共阳极数码管显示。可实现题目要求的时间显示,环境温度测量显示等功能。本设计通过单片机将各模块有机
5、地连接在一起,完美地实现了设计目的。关键词:实时时钟温度传感器AbstractInthisdesign,thecontrollerkernelofallthemoduleisbasedonMCUSTC89C52.Thecircuitiscomposedofthefollowingmodules:clockcircuitmodule,thermometrymodule,LEDdisplaymodule,replaceandcrystaloscillatemodule.Amongthis,realtimeclockDS1302canr
6、ealizethedisplayoftimeThermometrymoduleusesDS18B20compositivethermometricsenseorgancarrythroughtherealtimeexamimedtoenvironmentaltemperature.Man-machineinterfaceconsistoffourunattachedkeystrokesandtwosidebysideLEDdisplays.ThismeterthatmergestheMCUandothermodulesreache
7、stheoriginalgoal.Itsperformancereachestheprojectrequirement.Keywordsrealtimeclockthermometricsense201系统设计1.1总体方案论证与比较1.1.1主控制器的选择与论证方案一:采用CPLD作为主控制器,由于CPLD具有强大的资源,使用方便灵活,易于进行功能扩展,特别是结合了EDA,可以达到很高的效率。此方案逻辑电路复杂,且灵活性不高,不利于各种功能的扩展。方案二:基于STC89C52单片机来实现系统的控制,控制外围电路进行时钟显示,温度
8、测量,数码管显示,此系统控制灵活,能很好地满足本题的基本要求和扩展要求。1.1.2时钟方案选择与论证方案一:直接采用单片机实现时钟功能,利用单片机内部的定时器/计数器,定时中断进行时钟计时,此方案不须外部时钟电路,但运行时钟程序占用大量CPU资源,