单片机控制LCD显示电子时钟设计方案.pdf
1/32 基于单片机控制 LCD 显示电子时钟设计摘要本设计使用 11.0592MHZ 晶振与单片机 AT89C52 相连接,以 AT89C52芯片为核心,采用1602 的并行操作方式显示。通过使用该单片机,实现把时间和温度显示在 1602 液晶上,并且按秒实时更新。STC89C52 单片机是由深圳宏晶科技公司推出的,功耗小,电压可选用46V 电压供电。通过板子上的按键可随时调节时钟的年、月、日、星期、时、分、秒,按键设计3 个有效按键,分别有功能选择键、数值增大键、数值减小键。在每次的按键按下时,蜂鸣器有“滴”的提示声。再利用DS12887 设计实现断电自动保护显示数字的功能,当下次上电时会 接着 上次 上电 前的 时间继 续运 行。本设计的+5V 电源采用LM1117 电压转换元件,将电源适配器转换得到的12V 电压直接变成 5V 电压供系统使用。通过软硬件结合达到最终目的。关键词:单片机 AT89C52。1602液晶。电子时钟。DS12887芯片2/32 Abstract The design uses a 11.0592MHz crystal with AT89C52 microcontroller is connected to the AT89C52 chip as the core,and 1602 parallel operation.By using the microcontroller,the time is displayed in 1602,and updated in real time in seconds.STC89C52 microcontroller is launched by the Shenzhen-Hong Crystal Technology,Inc.,low power consumption,voltage can be used to 6V voltage power supply.Through the keys on the board can always adjust the clock of the year,month,day,week,when,minutes,seconds,button design 3 effective keys,function selection key,increase the value of the key,key decreases the value.Each time the button is pressed,the buzzer tone drop.Re-use the DS12887 design power-off automatically to protect the display number,then the last time before the power to continue running when the next power.The design of the 5V power supply using LM1117 voltage conversion device,power adapter converted directly into 12V voltage 5V voltage for system use.Through a combination of hardware and software to achieve the ultimate objective.Keywords:Microcontroller AT89C52。1602 LCD。Electronicclock。DS12887chip 文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J13/32 目录第 1 章绪论 11.1 电子时钟的研究背景11.2 电子时钟的国内外研究现状1第 2 章设计思路与方案选择32.1 系统的设计思路32.2 方案选择 32.2.1 单片机芯片的选择32.2.2 显示模块及时钟芯片的选择42.2.3 温度系统方案选择42.2.4 报警系统的方案比较42.2.5 键盘控制方案选择4第 3 章系统的硬件设计与实现53.1 电路设计框图 53.2 主要硬件电路的设计53.2.1 单片机主控制模块的设计53.2.2 显示模块的设计93.2.3 时钟电路模块的设计123.2.4 温度采集模块设计173.2.5 按键调整系统模块设计173.2.6 蜂鸣器报警模块18第 4 章软件设计 19文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J14/32 4.1 软件设计总体说明194.2 程序软件的实现19第 5 章总结 24参考文献 25致谢 26文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J11/32 第1章 绪论1.1电子时钟的研究背景20世纪末,在电子技术极速发展的推动下,现代电子产品以及各种高科技产品渗透到了社会的多个领域,这有力地推动了社会信息化程度以及综合科技水平的提高,但产品更新的也越来越快。随着科技的发展和全球化竞争的日益激烈,人们对数字时钟的要求越来越高,传统的时钟已不能满足人们的需求。多功能电子钟不管在性能、样式还是用途上都发生了重大的变化,许多电子钟都已具备电子秒表、电子闹钟、温度检测等功能。多功能电子时钟除了具有基本功能外,还可以对环境温度进行检测。在许多行业生产及日常生活中,对温度的测量及控制十分重要。目前,较为典型的温度检测控制系统是由模拟式温度传感器、A/D转换电路和各种单片机组成。由于模拟式温度传感器输出的模拟信号必须经过A/D转换环节转换为数字信号后才能与单片机等微处理器接口进行读写的操作,所以硬件电路会比较复杂,且成本较高。而以 DS18B20为代表的新型单线总线数字式温度传感器改变了这一模式,它集温度测量和A/D转换于一体,这类传感器可以直接输出数字量,同时与单片机接口电路结构简单,可以广泛用于各种场合,具有较强的推广应用价值1。数字电子时钟采用数字电路实现对时、分、秒数字显示,广泛用于家庭,办公室,车站等场所,由于数字集成电路的发展和石英晶体振荡器的推广使用,数字时钟的精度大大提高,数字化钟表给人们的生产生活带来了极大的方便,而且功能得到了拓展。例如按时自动打铃、定时自动报警、时间程序自动控制、自动启闭路灯、定时广播、通断动力设备、定时开关冰箱等,所有这些都以钟表数字化为基础。因此,研究数字时钟及扩大其应用,有着非常现实的意义2。1.2电子时钟的国内外研究现状数字电子时钟给人们的学习、生活、工作、娱乐带来极大的方便,但随着科学技术的不断发展,生活节奏的加快,人们对时间计量的精度要求越来越高文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J12/32。可以说时间的准确已成为各行各业安全运行的基础,如果时间出现误差而不能及时校正,会造成一系列严重的后果和经济损失3。电子时钟的设计方法有很多种,可用中小规模集成电路组成电子钟,也可以用单片机编程来实现电子钟。其中,利用单片机实现的电子时钟具有编程灵活、硬件结构简单、便于功能扩展等特点。用单片机作为数字钟的核心控制器,可以通过它的时钟信号实现计时功能,将时间数据经单片机输出,并利用显示器显示。通过键盘进行定时、校时。输出设备显示器可以采用液晶显示技术或者数码管显示技术4。温度是一种基本的环境参数,传统方式是采用热电偶或热电阻进行测控,但是由于其复杂性已逐渐被代替。近年来,美国DALLAS 公司生产的以 DSl8B20 为代表的新型单总线数字式温度传感器以其突出优点广泛使用于仓储管理、气象观测、科学研究、工农业生产制造以及日常生活中。DSl8B20 集A/D 转换和温度测量于一体,直接输出数字量,传输距离远,可以方便地实现多点测量,硬件电路结构简单,与单片机接口几乎不需要外围元件5。智能温度传感器于上世纪 90年代中期问世,此类传感器是计算机技术、微电子技术和自动测试技术的结晶。智能温度传感器内部一般包含温度传感器、信号处理器、A/D转换器、存储器 或寄存器)和接口电路。有的产品还带多路选择器、随机存取存储器、只读存储器和中央控制器。智能温度传感器能实时更新并输出温度数据,适配于各种微控制器也就是通常所说的单片机,并可通过软件来实现显示功能,其智能化取决于软件和硬件的综合开发水平。目前,新型温度传感器正从模拟式向数字式、集成化向智能化及网络化的方向发展6。21世纪后,智能温度传感器毫无疑问正朝着高精度、多功能、总线标准化、高可靠性及高安全性等高科技的方向迅速发展,开发虚拟传感器和网络传感器、研制更先进的单片测温系统已是刻不容缓7。在日常生活和自动控制系统中,我们时常会有对时间和温度同时进行实时监控的需求。这就给多功能的时钟提供了市场,本文给出了一种基于单片机实现带温度检测的电子时钟的设计方法和实现过程。文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J13/32 第2章 设计思路与方案选择2.1 系统的设计思路本次设计完成电子时钟精确时间的显示、环境温度测量以及定时闹钟的功能。由于 DS12887时钟芯片内置一个锂电池,所以即使出现断电情况依然可以运行十年以上不丢失数据,且重新上电后不用校正时钟。硬件电路包括单片机最小系统电路、DS12887实时时钟芯片电路模块、LCD1602液晶显示模块、DS18B20温度传感器模块、按键模块、蜂鸣器报警电路模块;软件部分主要通过c程序的编程实现对时钟芯片进行时间数据的读写,然后通过液晶显示时间、按键操作实现功能转换及屏幕切换8。2.2方案选择2.2.1单片机芯片的选择STC89C52单片机的主要特性如下:?与MCS-51产品指令系统完全兼容?全静态工作模式:033MHz?4K字节的在线编程 Flash存储器,1000次擦写周期?4.0 5.5V的工作电压范围?三级程序存储器锁?1288字节内部 RAM?32个可编程 I/O口线?2个16位定时/计数器?6个中断源?低功耗空闲和掉电模式?全双工串行 UART通道?中断可从空闲模式唤醒系统?看门狗 WDT)及双数据指针文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8Y2C3P10Z5 ZD7M9I10H4J1文档编码:CU2K1R5S3L10 HY8