一、引言 ...............................................................................4
(一)课题研究的背景 .................................................................4
(二)课题研究的目的和意义 ...........................................................5
二、硬件电路的设计 .....................................................................5
(一)系统设计的框架 .................................................................5
(二)单片机最小系统电路 .............................................................6
(三)单片机的选型 ...................................................................6
1.STC89C52 单片机简介 ...........................................................6
2.STC89C52 单片机时序 ...........................................................7
3.STC89C52 单片机引脚介绍 .......................................................7
(四)温度传感器电路 .................................................................9
(五)系统电源电路的设计 ............................................................10
(六)LCD 显示电路 ...................................................................11
(七)串口通讯电路 ..................................................................12
(八)按键接口电路 ..................................................................13
(九)DS1302 时钟电路 ................................................................13
(十)存储器接口电路 ................................................................13
三、系统软件设计 ......................................................................14
(一)计算温度子程序 ................................................................15
(二)按键处理子程序 ................................................................15
(三)计算温度子程序 ................................................................16
(四)显示数据刷新子程序 ............................................................17
四、结束语 ............................................................................18
参考文献 ..............................................................................19
致谢 ..................................................................................20
附件 1:系统原理图 .....................................................................21
附件 2:系统相关程序 ...................................................................22
一、DS18B20 底层驱动程序 ...............................................................22
二、DS1302 时钟底层驱动程序 ............................................................27
三、数据存储底层驱动程序 ..............................................................33